gcc.info 2.9 MB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111271122711327114271152711627117271182711927120271212712227123271242712527126271272712827129271302713127132271332713427135271362713727138271392714027141271422714327144271452714627147271482714927150271512715227153271542715527156271572715827159271602716127162271632716427165271662716727168271692717027171271722717327174271752717627177271782717927180271812718227183271842718527186271872718827189271902719127192271932719427195271962719727198271992720027201272022720327204272052720627207272082720927210272112721227213272142721527216272172721827219272202722127222272232722427225272262722727228272292723027231272322723327234272352723627237272382723927240272412724227243272442724527246272472724827249272502725127252272532725427255272562725727258272592726027261272622726327264272652726627267272682726927270272712727227273272742727527276272772727827279272802728127282272832728427285272862728727288272892729027291272922729327294272952729627297272982729927300273012730227303273042730527306273072730827309273102731127312273132731427315273162731727318273192732027321273222732327324273252732627327273282732927330273312733227333273342733527336273372733827339273402734127342273432734427345273462734727348273492735027351273522735327354273552735627357273582735927360273612736227363273642736527366273672736827369273702737127372273732737427375273762737727378273792738027381273822738327384273852738627387273882738927390273912739227393273942739527396273972739827399274002740127402274032740427405274062740727408274092741027411274122741327414274152741627417274182741927420274212742227423274242742527426274272742827429274302743127432274332743427435274362743727438274392744027441274422744327444274452744627447274482744927450274512745227453274542745527456274572745827459274602746127462274632746427465274662746727468274692747027471274722747327474274752747627477274782747927480274812748227483274842748527486274872748827489274902749127492274932749427495274962749727498274992750027501275022750327504275052750627507275082750927510275112751227513275142751527516275172751827519275202752127522275232752427525275262752727528275292753027531275322753327534275352753627537275382753927540275412754227543275442754527546275472754827549275502755127552275532755427555275562755727558275592756027561275622756327564275652756627567275682756927570275712757227573275742757527576275772757827579275802758127582275832758427585275862758727588275892759027591275922759327594275952759627597275982759927600276012760227603276042760527606276072760827609276102761127612276132761427615276162761727618276192762027621276222762327624276252762627627276282762927630276312763227633276342763527636276372763827639276402764127642276432764427645276462764727648276492765027651276522765327654276552765627657276582765927660276612766227663276642766527666276672766827669276702767127672276732767427675276762767727678276792768027681276822768327684276852768627687276882768927690276912769227693276942769527696276972769827699277002770127702277032770427705277062770727708277092771027711277122771327714277152771627717277182771927720277212772227723277242772527726277272772827729277302773127732277332773427735277362773727738277392774027741277422774327744277452774627747277482774927750277512775227753277542775527756277572775827759277602776127762277632776427765277662776727768277692777027771277722777327774277752777627777277782777927780277812778227783277842778527786277872778827789277902779127792277932779427795277962779727798277992780027801278022780327804278052780627807278082780927810278112781227813278142781527816278172781827819278202782127822278232782427825278262782727828278292783027831278322783327834278352783627837278382783927840278412784227843278442784527846278472784827849278502785127852278532785427855278562785727858278592786027861278622786327864278652786627867278682786927870278712787227873278742787527876278772787827879278802788127882278832788427885278862788727888278892789027891278922789327894278952789627897278982789927900279012790227903279042790527906279072790827909279102791127912279132791427915279162791727918279192792027921279222792327924279252792627927279282792927930279312793227933279342793527936279372793827939279402794127942279432794427945279462794727948279492795027951279522795327954279552795627957279582795927960279612796227963279642796527966279672796827969279702797127972279732797427975279762797727978279792798027981279822798327984279852798627987279882798927990279912799227993279942799527996279972799827999280002800128002280032800428005280062800728008280092801028011280122801328014280152801628017280182801928020280212802228023280242802528026280272802828029280302803128032280332803428035280362803728038280392804028041280422804328044280452804628047280482804928050280512805228053280542805528056280572805828059280602806128062280632806428065280662806728068280692807028071280722807328074280752807628077280782807928080280812808228083280842808528086280872808828089280902809128092280932809428095280962809728098280992810028101281022810328104281052810628107281082810928110281112811228113281142811528116281172811828119281202812128122281232812428125281262812728128281292813028131281322813328134281352813628137281382813928140281412814228143281442814528146281472814828149281502815128152281532815428155281562815728158281592816028161281622816328164281652816628167281682816928170281712817228173281742817528176281772817828179281802818128182281832818428185281862818728188281892819028191281922819328194281952819628197281982819928200282012820228203282042820528206282072820828209282102821128212282132821428215282162821728218282192822028221282222822328224282252822628227282282822928230282312823228233282342823528236282372823828239282402824128242282432824428245282462824728248282492825028251282522825328254282552825628257282582825928260282612826228263282642826528266282672826828269282702827128272282732827428275282762827728278282792828028281282822828328284282852828628287282882828928290282912829228293282942829528296282972829828299283002830128302283032830428305283062830728308283092831028311283122831328314283152831628317283182831928320283212832228323283242832528326283272832828329283302833128332283332833428335283362833728338283392834028341283422834328344283452834628347283482834928350283512835228353283542835528356283572835828359283602836128362283632836428365283662836728368283692837028371283722837328374283752837628377283782837928380283812838228383283842838528386283872838828389283902839128392283932839428395283962839728398283992840028401284022840328404284052840628407284082840928410284112841228413284142841528416284172841828419284202842128422284232842428425284262842728428284292843028431284322843328434284352843628437284382843928440284412844228443284442844528446284472844828449284502845128452284532845428455284562845728458284592846028461284622846328464284652846628467284682846928470284712847228473284742847528476284772847828479284802848128482284832848428485284862848728488284892849028491284922849328494284952849628497284982849928500285012850228503285042850528506285072850828509285102851128512285132851428515285162851728518285192852028521285222852328524285252852628527285282852928530285312853228533285342853528536285372853828539285402854128542285432854428545285462854728548285492855028551285522855328554285552855628557285582855928560285612856228563285642856528566285672856828569285702857128572285732857428575285762857728578285792858028581285822858328584285852858628587285882858928590285912859228593285942859528596285972859828599286002860128602286032860428605286062860728608286092861028611286122861328614286152861628617286182861928620286212862228623286242862528626286272862828629286302863128632286332863428635286362863728638286392864028641286422864328644286452864628647286482864928650286512865228653286542865528656286572865828659286602866128662286632866428665286662866728668286692867028671286722867328674286752867628677286782867928680286812868228683286842868528686286872868828689286902869128692286932869428695286962869728698286992870028701287022870328704287052870628707287082870928710287112871228713287142871528716287172871828719287202872128722287232872428725287262872728728287292873028731287322873328734287352873628737287382873928740287412874228743287442874528746287472874828749287502875128752287532875428755287562875728758287592876028761287622876328764287652876628767287682876928770287712877228773287742877528776287772877828779287802878128782287832878428785287862878728788287892879028791287922879328794287952879628797287982879928800288012880228803288042880528806288072880828809288102881128812288132881428815288162881728818288192882028821288222882328824288252882628827288282882928830288312883228833288342883528836288372883828839288402884128842288432884428845288462884728848288492885028851288522885328854288552885628857288582885928860288612886228863288642886528866288672886828869288702887128872288732887428875288762887728878288792888028881288822888328884288852888628887288882888928890288912889228893288942889528896288972889828899289002890128902289032890428905289062890728908289092891028911289122891328914289152891628917289182891928920289212892228923289242892528926289272892828929289302893128932289332893428935289362893728938289392894028941289422894328944289452894628947289482894928950289512895228953289542895528956289572895828959289602896128962289632896428965289662896728968289692897028971289722897328974289752897628977289782897928980289812898228983289842898528986289872898828989289902899128992289932899428995289962899728998289992900029001290022900329004290052900629007290082900929010290112901229013290142901529016290172901829019290202902129022290232902429025290262902729028290292903029031290322903329034290352903629037290382903929040290412904229043290442904529046290472904829049290502905129052290532905429055290562905729058290592906029061290622906329064290652906629067290682906929070290712907229073290742907529076290772907829079290802908129082290832908429085290862908729088290892909029091290922909329094290952909629097290982909929100291012910229103291042910529106291072910829109291102911129112291132911429115291162911729118291192912029121291222912329124291252912629127291282912929130291312913229133291342913529136291372913829139291402914129142291432914429145291462914729148291492915029151291522915329154291552915629157291582915929160291612916229163291642916529166291672916829169291702917129172291732917429175291762917729178291792918029181291822918329184291852918629187291882918929190291912919229193291942919529196291972919829199292002920129202292032920429205292062920729208292092921029211292122921329214292152921629217292182921929220292212922229223292242922529226292272922829229292302923129232292332923429235292362923729238292392924029241292422924329244292452924629247292482924929250292512925229253292542925529256292572925829259292602926129262292632926429265292662926729268292692927029271292722927329274292752927629277292782927929280292812928229283292842928529286292872928829289292902929129292292932929429295292962929729298292992930029301293022930329304293052930629307293082930929310293112931229313293142931529316293172931829319293202932129322293232932429325293262932729328293292933029331293322933329334293352933629337293382933929340293412934229343293442934529346293472934829349293502935129352293532935429355293562935729358293592936029361293622936329364293652936629367293682936929370293712937229373293742937529376293772937829379293802938129382293832938429385293862938729388293892939029391293922939329394293952939629397293982939929400294012940229403294042940529406294072940829409294102941129412294132941429415294162941729418294192942029421294222942329424294252942629427294282942929430294312943229433294342943529436294372943829439294402944129442294432944429445294462944729448294492945029451294522945329454294552945629457294582945929460294612946229463294642946529466294672946829469294702947129472294732947429475294762947729478294792948029481294822948329484294852948629487294882948929490294912949229493294942949529496294972949829499295002950129502295032950429505295062950729508295092951029511295122951329514295152951629517295182951929520295212952229523295242952529526295272952829529295302953129532295332953429535295362953729538295392954029541295422954329544295452954629547295482954929550295512955229553295542955529556295572955829559295602956129562295632956429565295662956729568295692957029571295722957329574295752957629577295782957929580295812958229583295842958529586295872958829589295902959129592295932959429595295962959729598295992960029601296022960329604296052960629607296082960929610296112961229613296142961529616296172961829619296202962129622296232962429625296262962729628296292963029631296322963329634296352963629637296382963929640296412964229643296442964529646296472964829649296502965129652296532965429655296562965729658296592966029661296622966329664296652966629667296682966929670296712967229673296742967529676296772967829679296802968129682296832968429685296862968729688296892969029691296922969329694296952969629697296982969929700297012970229703297042970529706297072970829709297102971129712297132971429715297162971729718297192972029721297222972329724297252972629727297282972929730297312973229733297342973529736297372973829739297402974129742297432974429745297462974729748297492975029751297522975329754297552975629757297582975929760297612976229763297642976529766297672976829769297702977129772297732977429775297762977729778297792978029781297822978329784297852978629787297882978929790297912979229793297942979529796297972979829799298002980129802298032980429805298062980729808298092981029811298122981329814298152981629817298182981929820298212982229823298242982529826298272982829829298302983129832298332983429835298362983729838298392984029841298422984329844298452984629847298482984929850298512985229853298542985529856298572985829859298602986129862298632986429865298662986729868298692987029871298722987329874298752987629877298782987929880298812988229883298842988529886298872988829889298902989129892298932989429895298962989729898298992990029901299022990329904299052990629907299082990929910299112991229913299142991529916299172991829919299202992129922299232992429925299262992729928299292993029931299322993329934299352993629937299382993929940299412994229943299442994529946299472994829949299502995129952299532995429955299562995729958299592996029961299622996329964299652996629967299682996929970299712997229973299742997529976299772997829979299802998129982299832998429985299862998729988299892999029991299922999329994299952999629997299982999930000300013000230003300043000530006300073000830009300103001130012300133001430015300163001730018300193002030021300223002330024300253002630027300283002930030300313003230033300343003530036300373003830039300403004130042300433004430045300463004730048300493005030051300523005330054300553005630057300583005930060300613006230063300643006530066300673006830069300703007130072300733007430075300763007730078300793008030081300823008330084300853008630087300883008930090300913009230093300943009530096300973009830099301003010130102301033010430105301063010730108301093011030111301123011330114301153011630117301183011930120301213012230123301243012530126301273012830129301303013130132301333013430135301363013730138301393014030141301423014330144301453014630147301483014930150301513015230153301543015530156301573015830159301603016130162301633016430165301663016730168301693017030171301723017330174301753017630177301783017930180301813018230183301843018530186301873018830189301903019130192301933019430195301963019730198301993020030201302023020330204302053020630207302083020930210302113021230213302143021530216302173021830219302203022130222302233022430225302263022730228302293023030231302323023330234302353023630237302383023930240302413024230243302443024530246302473024830249302503025130252302533025430255302563025730258302593026030261302623026330264302653026630267302683026930270302713027230273302743027530276302773027830279302803028130282302833028430285302863028730288302893029030291302923029330294302953029630297302983029930300303013030230303303043030530306303073030830309303103031130312303133031430315303163031730318303193032030321303223032330324303253032630327303283032930330303313033230333303343033530336303373033830339303403034130342303433034430345303463034730348303493035030351303523035330354303553035630357303583035930360303613036230363303643036530366303673036830369303703037130372303733037430375303763037730378303793038030381303823038330384303853038630387303883038930390303913039230393303943039530396303973039830399304003040130402304033040430405304063040730408304093041030411304123041330414304153041630417304183041930420304213042230423304243042530426304273042830429304303043130432304333043430435304363043730438304393044030441304423044330444304453044630447304483044930450304513045230453304543045530456304573045830459304603046130462304633046430465304663046730468304693047030471304723047330474304753047630477304783047930480304813048230483304843048530486304873048830489304903049130492304933049430495304963049730498304993050030501305023050330504305053050630507305083050930510305113051230513305143051530516305173051830519305203052130522305233052430525305263052730528305293053030531305323053330534305353053630537305383053930540305413054230543305443054530546305473054830549305503055130552305533055430555305563055730558305593056030561305623056330564305653056630567305683056930570305713057230573305743057530576305773057830579305803058130582305833058430585305863058730588305893059030591305923059330594305953059630597305983059930600306013060230603306043060530606306073060830609306103061130612306133061430615306163061730618306193062030621306223062330624306253062630627306283062930630306313063230633306343063530636306373063830639306403064130642306433064430645306463064730648306493065030651306523065330654306553065630657306583065930660306613066230663306643066530666306673066830669306703067130672306733067430675306763067730678306793068030681306823068330684306853068630687306883068930690306913069230693306943069530696306973069830699307003070130702307033070430705307063070730708307093071030711307123071330714307153071630717307183071930720307213072230723307243072530726307273072830729307303073130732307333073430735307363073730738307393074030741307423074330744307453074630747307483074930750307513075230753307543075530756307573075830759307603076130762307633076430765307663076730768307693077030771307723077330774307753077630777307783077930780307813078230783307843078530786307873078830789307903079130792307933079430795307963079730798307993080030801308023080330804308053080630807308083080930810308113081230813308143081530816308173081830819308203082130822308233082430825308263082730828308293083030831308323083330834308353083630837308383083930840308413084230843308443084530846308473084830849308503085130852308533085430855308563085730858308593086030861308623086330864308653086630867308683086930870308713087230873308743087530876308773087830879308803088130882308833088430885308863088730888308893089030891308923089330894308953089630897308983089930900309013090230903309043090530906309073090830909309103091130912309133091430915309163091730918309193092030921309223092330924309253092630927309283092930930309313093230933309343093530936309373093830939309403094130942309433094430945309463094730948309493095030951309523095330954309553095630957309583095930960309613096230963309643096530966309673096830969309703097130972309733097430975309763097730978309793098030981309823098330984309853098630987309883098930990309913099230993309943099530996309973099830999310003100131002310033100431005310063100731008310093101031011310123101331014310153101631017310183101931020310213102231023310243102531026310273102831029310303103131032310333103431035310363103731038310393104031041310423104331044310453104631047310483104931050310513105231053310543105531056310573105831059310603106131062310633106431065310663106731068310693107031071310723107331074310753107631077310783107931080310813108231083310843108531086310873108831089310903109131092310933109431095310963109731098310993110031101311023110331104311053110631107311083110931110311113111231113311143111531116311173111831119311203112131122311233112431125311263112731128311293113031131311323113331134311353113631137311383113931140311413114231143311443114531146311473114831149311503115131152311533115431155311563115731158311593116031161311623116331164311653116631167311683116931170311713117231173311743117531176311773117831179311803118131182311833118431185311863118731188311893119031191311923119331194311953119631197311983119931200312013120231203312043120531206312073120831209312103121131212312133121431215312163121731218312193122031221312223122331224312253122631227312283122931230312313123231233312343123531236312373123831239312403124131242312433124431245312463124731248312493125031251312523125331254312553125631257312583125931260312613126231263312643126531266312673126831269312703127131272312733127431275312763127731278312793128031281312823128331284312853128631287312883128931290312913129231293312943129531296312973129831299313003130131302313033130431305313063130731308313093131031311313123131331314313153131631317313183131931320313213132231323313243132531326313273132831329313303133131332313333133431335313363133731338313393134031341313423134331344313453134631347313483134931350313513135231353313543135531356313573135831359313603136131362313633136431365313663136731368313693137031371313723137331374313753137631377313783137931380313813138231383313843138531386313873138831389313903139131392313933139431395313963139731398313993140031401314023140331404314053140631407314083140931410314113141231413314143141531416314173141831419314203142131422314233142431425314263142731428314293143031431314323143331434314353143631437314383143931440314413144231443314443144531446314473144831449314503145131452314533145431455314563145731458314593146031461314623146331464314653146631467314683146931470314713147231473314743147531476314773147831479314803148131482314833148431485314863148731488314893149031491314923149331494314953149631497314983149931500315013150231503315043150531506315073150831509315103151131512315133151431515315163151731518315193152031521315223152331524315253152631527315283152931530315313153231533315343153531536315373153831539315403154131542315433154431545315463154731548315493155031551315523155331554315553155631557315583155931560315613156231563315643156531566315673156831569315703157131572315733157431575315763157731578315793158031581315823158331584315853158631587315883158931590315913159231593315943159531596315973159831599316003160131602316033160431605316063160731608316093161031611316123161331614316153161631617316183161931620316213162231623316243162531626316273162831629316303163131632316333163431635316363163731638316393164031641316423164331644316453164631647316483164931650316513165231653316543165531656316573165831659316603166131662316633166431665316663166731668316693167031671316723167331674316753167631677316783167931680316813168231683316843168531686316873168831689316903169131692316933169431695316963169731698316993170031701317023170331704317053170631707317083170931710317113171231713317143171531716317173171831719317203172131722317233172431725317263172731728317293173031731317323173331734317353173631737317383173931740317413174231743317443174531746317473174831749317503175131752317533175431755317563175731758317593176031761317623176331764317653176631767317683176931770317713177231773317743177531776317773177831779317803178131782317833178431785317863178731788317893179031791317923179331794317953179631797317983179931800318013180231803318043180531806318073180831809318103181131812318133181431815318163181731818318193182031821318223182331824318253182631827318283182931830318313183231833318343183531836318373183831839318403184131842318433184431845318463184731848318493185031851318523185331854318553185631857318583185931860318613186231863318643186531866318673186831869318703187131872318733187431875318763187731878318793188031881318823188331884318853188631887318883188931890318913189231893318943189531896318973189831899319003190131902319033190431905319063190731908319093191031911319123191331914319153191631917319183191931920319213192231923319243192531926319273192831929319303193131932319333193431935319363193731938319393194031941319423194331944319453194631947319483194931950319513195231953319543195531956319573195831959319603196131962319633196431965319663196731968319693197031971319723197331974319753197631977319783197931980319813198231983319843198531986319873198831989319903199131992319933199431995319963199731998319993200032001320023200332004320053200632007320083200932010320113201232013320143201532016320173201832019320203202132022320233202432025320263202732028320293203032031320323203332034320353203632037320383203932040320413204232043320443204532046320473204832049320503205132052320533205432055320563205732058320593206032061320623206332064320653206632067320683206932070320713207232073320743207532076320773207832079320803208132082320833208432085320863208732088320893209032091320923209332094320953209632097320983209932100321013210232103321043210532106321073210832109321103211132112321133211432115321163211732118321193212032121321223212332124321253212632127321283212932130321313213232133321343213532136321373213832139321403214132142321433214432145321463214732148321493215032151321523215332154321553215632157321583215932160321613216232163321643216532166321673216832169321703217132172321733217432175321763217732178321793218032181321823218332184321853218632187321883218932190321913219232193321943219532196321973219832199322003220132202322033220432205322063220732208322093221032211322123221332214322153221632217322183221932220322213222232223322243222532226322273222832229322303223132232322333223432235322363223732238322393224032241322423224332244322453224632247322483224932250322513225232253322543225532256322573225832259322603226132262322633226432265322663226732268322693227032271322723227332274322753227632277322783227932280322813228232283322843228532286322873228832289322903229132292322933229432295322963229732298322993230032301323023230332304323053230632307323083230932310323113231232313323143231532316323173231832319323203232132322323233232432325323263232732328323293233032331323323233332334323353233632337323383233932340323413234232343323443234532346323473234832349323503235132352323533235432355323563235732358323593236032361323623236332364323653236632367323683236932370323713237232373323743237532376323773237832379323803238132382323833238432385323863238732388323893239032391323923239332394323953239632397323983239932400324013240232403324043240532406324073240832409324103241132412324133241432415324163241732418324193242032421324223242332424324253242632427324283242932430324313243232433324343243532436324373243832439324403244132442324433244432445324463244732448324493245032451324523245332454324553245632457324583245932460324613246232463324643246532466324673246832469324703247132472324733247432475324763247732478324793248032481324823248332484324853248632487324883248932490324913249232493324943249532496324973249832499325003250132502325033250432505325063250732508325093251032511325123251332514325153251632517325183251932520325213252232523325243252532526325273252832529325303253132532325333253432535325363253732538325393254032541325423254332544325453254632547325483254932550325513255232553325543255532556325573255832559325603256132562325633256432565325663256732568325693257032571325723257332574325753257632577325783257932580325813258232583325843258532586325873258832589325903259132592325933259432595325963259732598325993260032601326023260332604326053260632607326083260932610326113261232613326143261532616326173261832619326203262132622326233262432625326263262732628326293263032631326323263332634326353263632637326383263932640326413264232643326443264532646326473264832649326503265132652326533265432655326563265732658326593266032661326623266332664326653266632667326683266932670326713267232673326743267532676326773267832679326803268132682326833268432685326863268732688326893269032691326923269332694326953269632697326983269932700327013270232703327043270532706327073270832709327103271132712327133271432715327163271732718327193272032721327223272332724327253272632727327283272932730327313273232733327343273532736327373273832739327403274132742327433274432745327463274732748327493275032751327523275332754327553275632757327583275932760327613276232763327643276532766327673276832769327703277132772327733277432775327763277732778327793278032781327823278332784327853278632787327883278932790327913279232793327943279532796327973279832799328003280132802328033280432805328063280732808328093281032811328123281332814328153281632817328183281932820328213282232823328243282532826328273282832829328303283132832328333283432835328363283732838328393284032841328423284332844328453284632847328483284932850328513285232853328543285532856328573285832859328603286132862328633286432865328663286732868328693287032871328723287332874328753287632877328783287932880328813288232883328843288532886328873288832889328903289132892328933289432895328963289732898328993290032901329023290332904329053290632907329083290932910329113291232913329143291532916329173291832919329203292132922329233292432925329263292732928329293293032931329323293332934329353293632937329383293932940329413294232943329443294532946329473294832949329503295132952329533295432955329563295732958329593296032961329623296332964329653296632967329683296932970329713297232973329743297532976329773297832979329803298132982329833298432985329863298732988329893299032991329923299332994329953299632997329983299933000330013300233003330043300533006330073300833009330103301133012330133301433015330163301733018330193302033021330223302333024330253302633027330283302933030330313303233033330343303533036330373303833039330403304133042330433304433045330463304733048330493305033051330523305333054330553305633057330583305933060330613306233063330643306533066330673306833069330703307133072330733307433075330763307733078330793308033081330823308333084330853308633087330883308933090330913309233093330943309533096330973309833099331003310133102331033310433105331063310733108331093311033111331123311333114331153311633117331183311933120331213312233123331243312533126331273312833129331303313133132331333313433135331363313733138331393314033141331423314333144331453314633147331483314933150331513315233153331543315533156331573315833159331603316133162331633316433165331663316733168331693317033171331723317333174331753317633177331783317933180331813318233183331843318533186331873318833189331903319133192331933319433195331963319733198331993320033201332023320333204332053320633207332083320933210332113321233213332143321533216332173321833219332203322133222332233322433225332263322733228332293323033231332323323333234332353323633237332383323933240332413324233243332443324533246332473324833249332503325133252332533325433255332563325733258332593326033261332623326333264332653326633267332683326933270332713327233273332743327533276332773327833279332803328133282332833328433285332863328733288332893329033291332923329333294332953329633297332983329933300333013330233303333043330533306333073330833309333103331133312333133331433315333163331733318333193332033321333223332333324333253332633327333283332933330333313333233333333343333533336333373333833339333403334133342333433334433345333463334733348333493335033351333523335333354333553335633357333583335933360333613336233363333643336533366333673336833369333703337133372333733337433375333763337733378333793338033381333823338333384333853338633387333883338933390333913339233393333943339533396333973339833399334003340133402334033340433405334063340733408334093341033411334123341333414334153341633417334183341933420334213342233423334243342533426334273342833429334303343133432334333343433435334363343733438334393344033441334423344333444334453344633447334483344933450334513345233453334543345533456334573345833459334603346133462334633346433465334663346733468334693347033471334723347333474334753347633477334783347933480334813348233483334843348533486334873348833489334903349133492334933349433495334963349733498334993350033501335023350333504335053350633507335083350933510335113351233513335143351533516335173351833519335203352133522335233352433525335263352733528335293353033531335323353333534335353353633537335383353933540335413354233543335443354533546335473354833549335503355133552335533355433555335563355733558335593356033561335623356333564335653356633567335683356933570335713357233573335743357533576335773357833579335803358133582335833358433585335863358733588335893359033591335923359333594335953359633597335983359933600336013360233603336043360533606336073360833609336103361133612336133361433615336163361733618336193362033621336223362333624336253362633627336283362933630336313363233633336343363533636336373363833639336403364133642336433364433645336463364733648336493365033651336523365333654336553365633657336583365933660336613366233663336643366533666336673366833669336703367133672336733367433675336763367733678336793368033681336823368333684336853368633687336883368933690336913369233693336943369533696336973369833699337003370133702337033370433705337063370733708337093371033711337123371333714337153371633717337183371933720337213372233723337243372533726337273372833729337303373133732337333373433735337363373733738337393374033741337423374333744337453374633747337483374933750337513375233753337543375533756337573375833759337603376133762337633376433765337663376733768337693377033771337723377333774337753377633777337783377933780337813378233783337843378533786337873378833789337903379133792337933379433795337963379733798337993380033801338023380333804338053380633807338083380933810338113381233813338143381533816338173381833819338203382133822338233382433825338263382733828338293383033831338323383333834338353383633837338383383933840338413384233843338443384533846338473384833849338503385133852338533385433855338563385733858338593386033861338623386333864338653386633867338683386933870338713387233873338743387533876338773387833879338803388133882338833388433885338863388733888338893389033891338923389333894338953389633897338983389933900339013390233903339043390533906339073390833909339103391133912339133391433915339163391733918339193392033921339223392333924339253392633927339283392933930339313393233933339343393533936339373393833939339403394133942339433394433945339463394733948339493395033951339523395333954339553395633957339583395933960339613396233963339643396533966339673396833969339703397133972339733397433975339763397733978339793398033981339823398333984339853398633987339883398933990339913399233993339943399533996339973399833999340003400134002340033400434005340063400734008340093401034011340123401334014340153401634017340183401934020340213402234023340243402534026340273402834029340303403134032340333403434035340363403734038340393404034041340423404334044340453404634047340483404934050340513405234053340543405534056340573405834059340603406134062340633406434065340663406734068340693407034071340723407334074340753407634077340783407934080340813408234083340843408534086340873408834089340903409134092340933409434095340963409734098340993410034101341023410334104341053410634107341083410934110341113411234113341143411534116341173411834119341203412134122341233412434125341263412734128341293413034131341323413334134341353413634137341383413934140341413414234143341443414534146341473414834149341503415134152341533415434155341563415734158341593416034161341623416334164341653416634167341683416934170341713417234173341743417534176341773417834179341803418134182341833418434185341863418734188341893419034191341923419334194341953419634197341983419934200342013420234203342043420534206342073420834209342103421134212342133421434215342163421734218342193422034221342223422334224342253422634227342283422934230342313423234233342343423534236342373423834239342403424134242342433424434245342463424734248342493425034251342523425334254342553425634257342583425934260342613426234263342643426534266342673426834269342703427134272342733427434275342763427734278342793428034281342823428334284342853428634287342883428934290342913429234293342943429534296342973429834299343003430134302343033430434305343063430734308343093431034311343123431334314343153431634317343183431934320343213432234323343243432534326343273432834329343303433134332343333433434335343363433734338343393434034341343423434334344343453434634347343483434934350343513435234353343543435534356343573435834359343603436134362343633436434365343663436734368343693437034371343723437334374343753437634377343783437934380343813438234383343843438534386343873438834389343903439134392343933439434395343963439734398343993440034401344023440334404344053440634407344083440934410344113441234413344143441534416344173441834419344203442134422344233442434425344263442734428344293443034431344323443334434344353443634437344383443934440344413444234443344443444534446344473444834449344503445134452344533445434455344563445734458344593446034461344623446334464344653446634467344683446934470344713447234473344743447534476344773447834479344803448134482344833448434485344863448734488344893449034491344923449334494344953449634497344983449934500345013450234503345043450534506345073450834509345103451134512345133451434515345163451734518345193452034521345223452334524345253452634527345283452934530345313453234533345343453534536345373453834539345403454134542345433454434545345463454734548345493455034551345523455334554345553455634557345583455934560345613456234563345643456534566345673456834569345703457134572345733457434575345763457734578345793458034581345823458334584345853458634587345883458934590345913459234593345943459534596345973459834599346003460134602346033460434605346063460734608346093461034611346123461334614346153461634617346183461934620346213462234623346243462534626346273462834629346303463134632346333463434635346363463734638346393464034641346423464334644346453464634647346483464934650346513465234653346543465534656346573465834659346603466134662346633466434665346663466734668346693467034671346723467334674346753467634677346783467934680346813468234683346843468534686346873468834689346903469134692346933469434695346963469734698346993470034701347023470334704347053470634707347083470934710347113471234713347143471534716347173471834719347203472134722347233472434725347263472734728347293473034731347323473334734347353473634737347383473934740347413474234743347443474534746347473474834749347503475134752347533475434755347563475734758347593476034761347623476334764347653476634767347683476934770347713477234773347743477534776347773477834779347803478134782347833478434785347863478734788347893479034791347923479334794347953479634797347983479934800348013480234803348043480534806348073480834809348103481134812348133481434815348163481734818348193482034821348223482334824348253482634827348283482934830348313483234833348343483534836348373483834839348403484134842348433484434845348463484734848348493485034851348523485334854348553485634857348583485934860348613486234863348643486534866348673486834869348703487134872348733487434875348763487734878348793488034881348823488334884348853488634887348883488934890348913489234893348943489534896348973489834899349003490134902349033490434905349063490734908349093491034911349123491334914349153491634917349183491934920349213492234923349243492534926349273492834929349303493134932349333493434935349363493734938349393494034941349423494334944349453494634947349483494934950349513495234953349543495534956349573495834959349603496134962349633496434965349663496734968349693497034971349723497334974349753497634977349783497934980349813498234983349843498534986349873498834989349903499134992349933499434995349963499734998349993500035001350023500335004350053500635007350083500935010350113501235013350143501535016350173501835019350203502135022350233502435025350263502735028350293503035031350323503335034350353503635037350383503935040350413504235043350443504535046350473504835049350503505135052350533505435055350563505735058350593506035061350623506335064350653506635067350683506935070350713507235073350743507535076350773507835079350803508135082350833508435085350863508735088350893509035091350923509335094350953509635097350983509935100351013510235103351043510535106351073510835109351103511135112351133511435115351163511735118351193512035121351223512335124351253512635127351283512935130351313513235133351343513535136351373513835139351403514135142351433514435145351463514735148351493515035151351523515335154351553515635157351583515935160351613516235163351643516535166351673516835169351703517135172351733517435175351763517735178351793518035181351823518335184351853518635187351883518935190351913519235193351943519535196351973519835199352003520135202352033520435205352063520735208352093521035211352123521335214352153521635217352183521935220352213522235223352243522535226352273522835229352303523135232352333523435235352363523735238352393524035241352423524335244352453524635247352483524935250352513525235253352543525535256352573525835259352603526135262352633526435265352663526735268352693527035271352723527335274352753527635277352783527935280352813528235283352843528535286352873528835289352903529135292352933529435295352963529735298352993530035301353023530335304353053530635307353083530935310353113531235313353143531535316353173531835319353203532135322353233532435325353263532735328353293533035331353323533335334353353533635337353383533935340353413534235343353443534535346353473534835349353503535135352353533535435355353563535735358353593536035361353623536335364353653536635367353683536935370353713537235373353743537535376353773537835379353803538135382353833538435385353863538735388353893539035391353923539335394353953539635397353983539935400354013540235403354043540535406354073540835409354103541135412354133541435415354163541735418354193542035421354223542335424354253542635427354283542935430354313543235433354343543535436354373543835439354403544135442354433544435445354463544735448354493545035451354523545335454354553545635457354583545935460354613546235463354643546535466354673546835469354703547135472354733547435475354763547735478354793548035481354823548335484354853548635487354883548935490354913549235493354943549535496354973549835499355003550135502355033550435505355063550735508355093551035511355123551335514355153551635517355183551935520355213552235523355243552535526355273552835529355303553135532355333553435535355363553735538355393554035541355423554335544355453554635547355483554935550355513555235553355543555535556355573555835559355603556135562355633556435565355663556735568355693557035571355723557335574355753557635577355783557935580355813558235583355843558535586355873558835589355903559135592355933559435595355963559735598355993560035601356023560335604356053560635607356083560935610356113561235613356143561535616356173561835619356203562135622356233562435625356263562735628356293563035631356323563335634356353563635637356383563935640356413564235643356443564535646356473564835649356503565135652356533565435655356563565735658356593566035661356623566335664356653566635667356683566935670356713567235673356743567535676356773567835679356803568135682356833568435685356863568735688356893569035691356923569335694356953569635697356983569935700357013570235703357043570535706357073570835709357103571135712357133571435715357163571735718357193572035721357223572335724357253572635727357283572935730357313573235733357343573535736357373573835739357403574135742357433574435745357463574735748357493575035751357523575335754357553575635757357583575935760357613576235763357643576535766357673576835769357703577135772357733577435775357763577735778357793578035781357823578335784357853578635787357883578935790357913579235793357943579535796357973579835799358003580135802358033580435805358063580735808358093581035811358123581335814358153581635817358183581935820358213582235823358243582535826358273582835829358303583135832358333583435835358363583735838358393584035841358423584335844358453584635847358483584935850358513585235853358543585535856358573585835859358603586135862358633586435865358663586735868358693587035871358723587335874358753587635877358783587935880358813588235883358843588535886358873588835889358903589135892358933589435895358963589735898358993590035901359023590335904359053590635907359083590935910359113591235913359143591535916359173591835919359203592135922359233592435925359263592735928359293593035931359323593335934359353593635937359383593935940359413594235943359443594535946359473594835949359503595135952359533595435955359563595735958359593596035961359623596335964359653596635967359683596935970359713597235973359743597535976359773597835979359803598135982359833598435985359863598735988359893599035991359923599335994359953599635997359983599936000360013600236003360043600536006360073600836009360103601136012360133601436015360163601736018360193602036021360223602336024360253602636027360283602936030360313603236033360343603536036360373603836039360403604136042360433604436045360463604736048360493605036051360523605336054360553605636057360583605936060360613606236063360643606536066360673606836069360703607136072360733607436075360763607736078360793608036081360823608336084360853608636087360883608936090360913609236093360943609536096360973609836099361003610136102361033610436105361063610736108361093611036111361123611336114361153611636117361183611936120361213612236123361243612536126361273612836129361303613136132361333613436135361363613736138361393614036141361423614336144361453614636147361483614936150361513615236153361543615536156361573615836159361603616136162361633616436165361663616736168361693617036171361723617336174361753617636177361783617936180361813618236183361843618536186361873618836189361903619136192361933619436195361963619736198361993620036201362023620336204362053620636207362083620936210362113621236213362143621536216362173621836219362203622136222362233622436225362263622736228362293623036231362323623336234362353623636237362383623936240362413624236243362443624536246362473624836249362503625136252362533625436255362563625736258362593626036261362623626336264362653626636267362683626936270362713627236273362743627536276362773627836279362803628136282362833628436285362863628736288362893629036291362923629336294362953629636297362983629936300363013630236303363043630536306363073630836309363103631136312363133631436315363163631736318363193632036321363223632336324363253632636327363283632936330363313633236333363343633536336363373633836339363403634136342363433634436345363463634736348363493635036351363523635336354363553635636357363583635936360363613636236363363643636536366363673636836369363703637136372363733637436375363763637736378363793638036381363823638336384363853638636387363883638936390363913639236393363943639536396363973639836399364003640136402364033640436405364063640736408364093641036411364123641336414364153641636417364183641936420364213642236423364243642536426364273642836429364303643136432364333643436435364363643736438364393644036441364423644336444364453644636447364483644936450364513645236453364543645536456364573645836459364603646136462364633646436465364663646736468364693647036471364723647336474364753647636477364783647936480364813648236483364843648536486364873648836489364903649136492364933649436495364963649736498364993650036501365023650336504365053650636507365083650936510365113651236513365143651536516365173651836519365203652136522365233652436525365263652736528365293653036531365323653336534365353653636537365383653936540365413654236543365443654536546365473654836549365503655136552365533655436555365563655736558365593656036561365623656336564365653656636567365683656936570365713657236573365743657536576365773657836579365803658136582365833658436585365863658736588365893659036591365923659336594365953659636597365983659936600366013660236603366043660536606366073660836609366103661136612366133661436615366163661736618366193662036621366223662336624366253662636627366283662936630366313663236633366343663536636366373663836639366403664136642366433664436645366463664736648366493665036651366523665336654366553665636657366583665936660366613666236663366643666536666366673666836669366703667136672366733667436675366763667736678366793668036681366823668336684366853668636687366883668936690366913669236693366943669536696366973669836699367003670136702367033670436705367063670736708367093671036711367123671336714367153671636717367183671936720367213672236723367243672536726367273672836729367303673136732367333673436735367363673736738367393674036741367423674336744367453674636747367483674936750367513675236753367543675536756367573675836759367603676136762367633676436765367663676736768367693677036771367723677336774367753677636777367783677936780367813678236783367843678536786367873678836789367903679136792367933679436795367963679736798367993680036801368023680336804368053680636807368083680936810368113681236813368143681536816368173681836819368203682136822368233682436825368263682736828368293683036831368323683336834368353683636837368383683936840368413684236843368443684536846368473684836849368503685136852368533685436855368563685736858368593686036861368623686336864368653686636867368683686936870368713687236873368743687536876368773687836879368803688136882368833688436885368863688736888368893689036891368923689336894368953689636897368983689936900369013690236903369043690536906369073690836909369103691136912369133691436915369163691736918369193692036921369223692336924369253692636927369283692936930369313693236933369343693536936369373693836939369403694136942369433694436945369463694736948369493695036951369523695336954369553695636957369583695936960369613696236963369643696536966369673696836969369703697136972369733697436975369763697736978369793698036981369823698336984369853698636987369883698936990369913699236993369943699536996369973699836999370003700137002370033700437005370063700737008370093701037011370123701337014370153701637017370183701937020370213702237023370243702537026370273702837029370303703137032370333703437035370363703737038370393704037041370423704337044370453704637047370483704937050370513705237053370543705537056370573705837059370603706137062370633706437065370663706737068370693707037071370723707337074370753707637077370783707937080370813708237083370843708537086370873708837089370903709137092370933709437095370963709737098370993710037101371023710337104371053710637107371083710937110371113711237113371143711537116371173711837119371203712137122371233712437125371263712737128371293713037131371323713337134371353713637137371383713937140371413714237143371443714537146371473714837149371503715137152371533715437155371563715737158371593716037161371623716337164371653716637167371683716937170371713717237173371743717537176371773717837179371803718137182371833718437185371863718737188371893719037191371923719337194371953719637197371983719937200372013720237203372043720537206372073720837209372103721137212372133721437215372163721737218372193722037221372223722337224372253722637227372283722937230372313723237233372343723537236372373723837239372403724137242372433724437245372463724737248372493725037251372523725337254372553725637257372583725937260372613726237263372643726537266372673726837269372703727137272372733727437275372763727737278372793728037281372823728337284372853728637287372883728937290372913729237293372943729537296372973729837299373003730137302373033730437305373063730737308373093731037311373123731337314373153731637317373183731937320373213732237323373243732537326373273732837329373303733137332373333733437335373363733737338373393734037341373423734337344373453734637347373483734937350373513735237353373543735537356373573735837359373603736137362373633736437365373663736737368373693737037371373723737337374373753737637377373783737937380373813738237383373843738537386373873738837389373903739137392373933739437395373963739737398373993740037401374023740337404374053740637407374083740937410374113741237413374143741537416374173741837419374203742137422374233742437425374263742737428374293743037431374323743337434374353743637437374383743937440374413744237443374443744537446374473744837449374503745137452374533745437455374563745737458374593746037461374623746337464374653746637467374683746937470374713747237473374743747537476374773747837479374803748137482374833748437485374863748737488374893749037491374923749337494374953749637497374983749937500375013750237503375043750537506375073750837509375103751137512375133751437515375163751737518375193752037521375223752337524375253752637527375283752937530375313753237533375343753537536375373753837539375403754137542375433754437545375463754737548375493755037551375523755337554375553755637557375583755937560375613756237563375643756537566375673756837569375703757137572375733757437575375763757737578375793758037581375823758337584375853758637587375883758937590375913759237593375943759537596375973759837599376003760137602376033760437605376063760737608376093761037611376123761337614376153761637617376183761937620376213762237623376243762537626376273762837629376303763137632376333763437635376363763737638376393764037641376423764337644376453764637647376483764937650376513765237653376543765537656376573765837659376603766137662376633766437665376663766737668376693767037671376723767337674376753767637677376783767937680376813768237683376843768537686376873768837689376903769137692376933769437695376963769737698376993770037701377023770337704377053770637707377083770937710377113771237713377143771537716377173771837719377203772137722377233772437725377263772737728377293773037731377323773337734377353773637737377383773937740377413774237743377443774537746377473774837749377503775137752377533775437755377563775737758377593776037761377623776337764377653776637767377683776937770377713777237773377743777537776377773777837779377803778137782377833778437785377863778737788377893779037791377923779337794377953779637797377983779937800378013780237803378043780537806378073780837809378103781137812378133781437815378163781737818378193782037821378223782337824378253782637827378283782937830378313783237833378343783537836378373783837839378403784137842378433784437845378463784737848378493785037851378523785337854378553785637857378583785937860378613786237863378643786537866378673786837869378703787137872378733787437875378763787737878378793788037881378823788337884378853788637887378883788937890378913789237893378943789537896378973789837899379003790137902379033790437905379063790737908379093791037911379123791337914379153791637917379183791937920379213792237923379243792537926379273792837929379303793137932379333793437935379363793737938379393794037941379423794337944379453794637947379483794937950379513795237953379543795537956379573795837959379603796137962379633796437965379663796737968379693797037971379723797337974379753797637977379783797937980379813798237983379843798537986379873798837989379903799137992379933799437995379963799737998379993800038001380023800338004380053800638007380083800938010380113801238013380143801538016380173801838019380203802138022380233802438025380263802738028380293803038031380323803338034380353803638037380383803938040380413804238043380443804538046380473804838049380503805138052380533805438055380563805738058380593806038061380623806338064380653806638067380683806938070380713807238073380743807538076380773807838079380803808138082380833808438085380863808738088380893809038091380923809338094380953809638097380983809938100381013810238103381043810538106381073810838109381103811138112381133811438115381163811738118381193812038121381223812338124381253812638127381283812938130381313813238133381343813538136381373813838139381403814138142381433814438145381463814738148381493815038151381523815338154381553815638157381583815938160381613816238163381643816538166381673816838169381703817138172381733817438175381763817738178381793818038181381823818338184381853818638187381883818938190381913819238193381943819538196381973819838199382003820138202382033820438205382063820738208382093821038211382123821338214382153821638217382183821938220382213822238223382243822538226382273822838229382303823138232382333823438235382363823738238382393824038241382423824338244382453824638247382483824938250382513825238253382543825538256382573825838259382603826138262382633826438265382663826738268382693827038271382723827338274382753827638277382783827938280382813828238283382843828538286382873828838289382903829138292382933829438295382963829738298382993830038301383023830338304383053830638307383083830938310383113831238313383143831538316383173831838319383203832138322383233832438325383263832738328383293833038331383323833338334383353833638337383383833938340383413834238343383443834538346383473834838349383503835138352383533835438355383563835738358383593836038361383623836338364383653836638367383683836938370383713837238373383743837538376383773837838379383803838138382383833838438385383863838738388383893839038391383923839338394383953839638397383983839938400384013840238403384043840538406384073840838409384103841138412384133841438415384163841738418384193842038421384223842338424384253842638427384283842938430384313843238433384343843538436384373843838439384403844138442384433844438445384463844738448384493845038451384523845338454384553845638457384583845938460384613846238463384643846538466384673846838469384703847138472384733847438475384763847738478384793848038481384823848338484384853848638487384883848938490384913849238493384943849538496384973849838499385003850138502385033850438505385063850738508385093851038511385123851338514385153851638517385183851938520385213852238523385243852538526385273852838529385303853138532385333853438535385363853738538385393854038541385423854338544385453854638547385483854938550385513855238553385543855538556385573855838559385603856138562385633856438565385663856738568385693857038571385723857338574385753857638577385783857938580385813858238583385843858538586385873858838589385903859138592385933859438595385963859738598385993860038601386023860338604386053860638607386083860938610386113861238613386143861538616386173861838619386203862138622386233862438625386263862738628386293863038631386323863338634386353863638637386383863938640386413864238643386443864538646386473864838649386503865138652386533865438655386563865738658386593866038661386623866338664386653866638667386683866938670386713867238673386743867538676386773867838679386803868138682386833868438685386863868738688386893869038691386923869338694386953869638697386983869938700387013870238703387043870538706387073870838709387103871138712387133871438715387163871738718387193872038721387223872338724387253872638727387283872938730387313873238733387343873538736387373873838739387403874138742387433874438745387463874738748387493875038751387523875338754387553875638757387583875938760387613876238763387643876538766387673876838769387703877138772387733877438775387763877738778387793878038781387823878338784387853878638787387883878938790387913879238793387943879538796387973879838799388003880138802388033880438805388063880738808388093881038811388123881338814388153881638817388183881938820388213882238823388243882538826388273882838829388303883138832388333883438835388363883738838388393884038841388423884338844388453884638847388483884938850388513885238853388543885538856388573885838859388603886138862388633886438865388663886738868388693887038871388723887338874388753887638877388783887938880388813888238883388843888538886388873888838889388903889138892388933889438895388963889738898388993890038901389023890338904389053890638907389083890938910389113891238913389143891538916389173891838919389203892138922389233892438925389263892738928389293893038931389323893338934389353893638937389383893938940389413894238943389443894538946389473894838949389503895138952389533895438955389563895738958389593896038961389623896338964389653896638967389683896938970389713897238973389743897538976389773897838979389803898138982389833898438985389863898738988389893899038991389923899338994389953899638997389983899939000390013900239003390043900539006390073900839009390103901139012390133901439015390163901739018390193902039021390223902339024390253902639027390283902939030390313903239033390343903539036390373903839039390403904139042390433904439045390463904739048390493905039051390523905339054390553905639057390583905939060390613906239063390643906539066390673906839069390703907139072390733907439075390763907739078390793908039081390823908339084390853908639087390883908939090390913909239093390943909539096390973909839099391003910139102391033910439105391063910739108391093911039111391123911339114391153911639117391183911939120391213912239123391243912539126391273912839129391303913139132391333913439135391363913739138391393914039141391423914339144391453914639147391483914939150391513915239153391543915539156391573915839159391603916139162391633916439165391663916739168391693917039171391723917339174391753917639177391783917939180391813918239183391843918539186391873918839189391903919139192391933919439195391963919739198391993920039201392023920339204392053920639207392083920939210392113921239213392143921539216392173921839219392203922139222392233922439225392263922739228392293923039231392323923339234392353923639237392383923939240392413924239243392443924539246392473924839249392503925139252392533925439255392563925739258392593926039261392623926339264392653926639267392683926939270392713927239273392743927539276392773927839279392803928139282392833928439285392863928739288392893929039291392923929339294392953929639297392983929939300393013930239303393043930539306393073930839309393103931139312393133931439315393163931739318393193932039321393223932339324393253932639327393283932939330393313933239333393343933539336393373933839339393403934139342393433934439345393463934739348393493935039351393523935339354393553935639357393583935939360393613936239363393643936539366393673936839369393703937139372393733937439375393763937739378393793938039381393823938339384393853938639387393883938939390393913939239393393943939539396393973939839399394003940139402394033940439405394063940739408394093941039411394123941339414394153941639417394183941939420394213942239423394243942539426394273942839429394303943139432394333943439435394363943739438394393944039441394423944339444394453944639447394483944939450394513945239453394543945539456394573945839459394603946139462394633946439465394663946739468394693947039471394723947339474394753947639477394783947939480394813948239483394843948539486394873948839489394903949139492394933949439495394963949739498394993950039501395023950339504395053950639507395083950939510395113951239513395143951539516395173951839519395203952139522395233952439525395263952739528395293953039531395323953339534395353953639537395383953939540395413954239543395443954539546395473954839549395503955139552395533955439555395563955739558395593956039561395623956339564395653956639567395683956939570395713957239573395743957539576395773957839579395803958139582395833958439585395863958739588395893959039591395923959339594395953959639597395983959939600396013960239603396043960539606396073960839609396103961139612396133961439615396163961739618396193962039621396223962339624396253962639627396283962939630396313963239633396343963539636396373963839639396403964139642396433964439645396463964739648396493965039651396523965339654396553965639657396583965939660396613966239663396643966539666396673966839669396703967139672396733967439675396763967739678396793968039681396823968339684396853968639687396883968939690396913969239693396943969539696396973969839699397003970139702397033970439705397063970739708397093971039711397123971339714397153971639717397183971939720397213972239723397243972539726397273972839729397303973139732397333973439735397363973739738397393974039741397423974339744397453974639747397483974939750397513975239753397543975539756397573975839759397603976139762397633976439765397663976739768397693977039771397723977339774397753977639777397783977939780397813978239783397843978539786397873978839789397903979139792397933979439795397963979739798397993980039801398023980339804398053980639807398083980939810398113981239813398143981539816398173981839819398203982139822398233982439825398263982739828398293983039831398323983339834398353983639837398383983939840398413984239843398443984539846398473984839849398503985139852398533985439855398563985739858398593986039861398623986339864398653986639867398683986939870398713987239873398743987539876398773987839879398803988139882398833988439885398863988739888398893989039891398923989339894398953989639897398983989939900399013990239903399043990539906399073990839909399103991139912399133991439915399163991739918399193992039921399223992339924399253992639927399283992939930399313993239933399343993539936399373993839939399403994139942399433994439945399463994739948399493995039951399523995339954399553995639957399583995939960399613996239963399643996539966399673996839969399703997139972399733997439975399763997739978399793998039981399823998339984399853998639987399883998939990399913999239993399943999539996399973999839999400004000140002400034000440005400064000740008400094001040011400124001340014400154001640017400184001940020400214002240023400244002540026400274002840029400304003140032400334003440035400364003740038400394004040041400424004340044400454004640047400484004940050400514005240053400544005540056400574005840059400604006140062400634006440065400664006740068400694007040071400724007340074400754007640077400784007940080400814008240083400844008540086400874008840089400904009140092400934009440095400964009740098400994010040101401024010340104401054010640107401084010940110401114011240113401144011540116401174011840119401204012140122401234012440125401264012740128401294013040131401324013340134401354013640137401384013940140401414014240143401444014540146401474014840149401504015140152401534015440155401564015740158401594016040161401624016340164401654016640167401684016940170401714017240173401744017540176401774017840179401804018140182401834018440185401864018740188401894019040191401924019340194401954019640197401984019940200402014020240203402044020540206402074020840209402104021140212402134021440215402164021740218402194022040221402224022340224402254022640227402284022940230402314023240233402344023540236402374023840239402404024140242402434024440245402464024740248402494025040251402524025340254402554025640257402584025940260402614026240263402644026540266402674026840269402704027140272402734027440275402764027740278402794028040281402824028340284402854028640287402884028940290402914029240293402944029540296402974029840299403004030140302403034030440305403064030740308403094031040311403124031340314403154031640317403184031940320403214032240323403244032540326403274032840329403304033140332403334033440335403364033740338403394034040341403424034340344403454034640347403484034940350403514035240353403544035540356403574035840359403604036140362403634036440365403664036740368403694037040371403724037340374403754037640377403784037940380403814038240383403844038540386403874038840389403904039140392403934039440395403964039740398403994040040401404024040340404404054040640407404084040940410404114041240413404144041540416404174041840419404204042140422404234042440425404264042740428404294043040431404324043340434404354043640437404384043940440404414044240443404444044540446404474044840449404504045140452404534045440455404564045740458404594046040461404624046340464404654046640467404684046940470404714047240473404744047540476404774047840479404804048140482404834048440485404864048740488404894049040491404924049340494404954049640497404984049940500405014050240503405044050540506405074050840509405104051140512405134051440515405164051740518405194052040521405224052340524405254052640527405284052940530405314053240533405344053540536405374053840539405404054140542405434054440545405464054740548405494055040551405524055340554405554055640557405584055940560405614056240563405644056540566405674056840569405704057140572405734057440575405764057740578405794058040581405824058340584405854058640587405884058940590405914059240593405944059540596405974059840599406004060140602406034060440605406064060740608406094061040611406124061340614406154061640617406184061940620406214062240623406244062540626406274062840629406304063140632406334063440635406364063740638406394064040641406424064340644406454064640647406484064940650406514065240653406544065540656406574065840659406604066140662406634066440665406664066740668406694067040671406724067340674406754067640677406784067940680406814068240683406844068540686406874068840689406904069140692406934069440695406964069740698406994070040701407024070340704407054070640707407084070940710407114071240713407144071540716407174071840719407204072140722407234072440725407264072740728407294073040731407324073340734407354073640737407384073940740407414074240743407444074540746407474074840749407504075140752407534075440755407564075740758407594076040761407624076340764407654076640767407684076940770407714077240773407744077540776407774077840779407804078140782407834078440785407864078740788407894079040791407924079340794407954079640797407984079940800408014080240803408044080540806408074080840809408104081140812408134081440815408164081740818408194082040821408224082340824408254082640827408284082940830408314083240833408344083540836408374083840839408404084140842408434084440845408464084740848408494085040851408524085340854408554085640857408584085940860408614086240863408644086540866408674086840869408704087140872408734087440875408764087740878408794088040881408824088340884408854088640887408884088940890408914089240893408944089540896408974089840899409004090140902409034090440905409064090740908409094091040911409124091340914409154091640917409184091940920409214092240923409244092540926409274092840929409304093140932409334093440935409364093740938409394094040941409424094340944409454094640947409484094940950409514095240953409544095540956409574095840959409604096140962409634096440965409664096740968409694097040971409724097340974409754097640977409784097940980409814098240983409844098540986409874098840989409904099140992409934099440995409964099740998409994100041001410024100341004410054100641007410084100941010410114101241013410144101541016410174101841019410204102141022410234102441025410264102741028410294103041031410324103341034410354103641037410384103941040410414104241043410444104541046410474104841049410504105141052410534105441055410564105741058410594106041061410624106341064410654106641067410684106941070410714107241073410744107541076410774107841079410804108141082410834108441085410864108741088410894109041091410924109341094410954109641097410984109941100411014110241103411044110541106411074110841109411104111141112411134111441115411164111741118411194112041121411224112341124411254112641127411284112941130411314113241133411344113541136411374113841139411404114141142411434114441145411464114741148411494115041151411524115341154411554115641157411584115941160411614116241163411644116541166411674116841169411704117141172411734117441175411764117741178411794118041181411824118341184411854118641187411884118941190411914119241193411944119541196411974119841199412004120141202412034120441205412064120741208412094121041211412124121341214412154121641217412184121941220412214122241223412244122541226412274122841229412304123141232412334123441235412364123741238412394124041241412424124341244412454124641247412484124941250412514125241253412544125541256412574125841259412604126141262412634126441265412664126741268412694127041271412724127341274412754127641277412784127941280412814128241283412844128541286412874128841289412904129141292412934129441295412964129741298412994130041301413024130341304413054130641307413084130941310413114131241313413144131541316413174131841319413204132141322413234132441325413264132741328413294133041331413324133341334413354133641337413384133941340413414134241343413444134541346413474134841349413504135141352413534135441355413564135741358413594136041361413624136341364413654136641367413684136941370413714137241373413744137541376413774137841379413804138141382413834138441385413864138741388413894139041391413924139341394413954139641397413984139941400414014140241403414044140541406414074140841409414104141141412414134141441415414164141741418414194142041421414224142341424414254142641427414284142941430414314143241433414344143541436414374143841439414404144141442414434144441445414464144741448414494145041451414524145341454414554145641457414584145941460414614146241463414644146541466414674146841469414704147141472414734147441475414764147741478414794148041481414824148341484414854148641487414884148941490414914149241493414944149541496414974149841499415004150141502415034150441505415064150741508415094151041511415124151341514415154151641517415184151941520415214152241523415244152541526415274152841529415304153141532415334153441535415364153741538415394154041541415424154341544415454154641547415484154941550415514155241553415544155541556415574155841559415604156141562415634156441565415664156741568415694157041571415724157341574415754157641577415784157941580415814158241583415844158541586415874158841589415904159141592415934159441595415964159741598415994160041601416024160341604416054160641607416084160941610416114161241613416144161541616416174161841619416204162141622416234162441625416264162741628416294163041631416324163341634416354163641637416384163941640416414164241643416444164541646416474164841649416504165141652416534165441655416564165741658416594166041661416624166341664416654166641667416684166941670416714167241673416744167541676416774167841679416804168141682416834168441685416864168741688416894169041691416924169341694416954169641697416984169941700417014170241703417044170541706417074170841709417104171141712417134171441715417164171741718417194172041721417224172341724417254172641727417284172941730417314173241733417344173541736417374173841739417404174141742417434174441745417464174741748417494175041751417524175341754417554175641757417584175941760417614176241763417644176541766417674176841769417704177141772417734177441775417764177741778417794178041781417824178341784417854178641787417884178941790417914179241793417944179541796417974179841799418004180141802418034180441805418064180741808418094181041811418124181341814418154181641817418184181941820418214182241823418244182541826418274182841829418304183141832418334183441835418364183741838418394184041841418424184341844418454184641847418484184941850418514185241853418544185541856418574185841859418604186141862418634186441865418664186741868418694187041871418724187341874418754187641877418784187941880418814188241883418844188541886418874188841889418904189141892418934189441895418964189741898418994190041901419024190341904419054190641907419084190941910419114191241913419144191541916419174191841919419204192141922419234192441925419264192741928419294193041931419324193341934419354193641937419384193941940419414194241943419444194541946419474194841949419504195141952419534195441955419564195741958419594196041961419624196341964419654196641967419684196941970419714197241973419744197541976419774197841979419804198141982419834198441985419864198741988419894199041991419924199341994419954199641997419984199942000420014200242003420044200542006420074200842009420104201142012420134201442015420164201742018420194202042021420224202342024420254202642027420284202942030420314203242033420344203542036420374203842039420404204142042420434204442045420464204742048420494205042051420524205342054420554205642057420584205942060420614206242063420644206542066420674206842069420704207142072420734207442075420764207742078420794208042081420824208342084420854208642087420884208942090420914209242093420944209542096420974209842099421004210142102421034210442105421064210742108421094211042111421124211342114421154211642117421184211942120421214212242123421244212542126421274212842129421304213142132421334213442135421364213742138421394214042141421424214342144421454214642147421484214942150421514215242153421544215542156421574215842159421604216142162421634216442165421664216742168421694217042171421724217342174421754217642177421784217942180421814218242183421844218542186421874218842189421904219142192421934219442195421964219742198421994220042201422024220342204422054220642207422084220942210422114221242213422144221542216422174221842219422204222142222422234222442225422264222742228422294223042231422324223342234422354223642237422384223942240422414224242243422444224542246422474224842249422504225142252422534225442255422564225742258422594226042261422624226342264422654226642267422684226942270422714227242273422744227542276422774227842279422804228142282422834228442285422864228742288422894229042291422924229342294422954229642297422984229942300423014230242303423044230542306423074230842309423104231142312423134231442315423164231742318423194232042321423224232342324423254232642327423284232942330423314233242333423344233542336423374233842339423404234142342423434234442345423464234742348423494235042351423524235342354423554235642357423584235942360423614236242363423644236542366423674236842369423704237142372423734237442375423764237742378423794238042381423824238342384423854238642387423884238942390423914239242393423944239542396423974239842399424004240142402424034240442405424064240742408424094241042411424124241342414424154241642417424184241942420424214242242423424244242542426424274242842429424304243142432424334243442435424364243742438424394244042441424424244342444424454244642447424484244942450424514245242453424544245542456424574245842459424604246142462424634246442465424664246742468424694247042471424724247342474424754247642477424784247942480424814248242483424844248542486424874248842489424904249142492424934249442495424964249742498424994250042501425024250342504425054250642507425084250942510425114251242513425144251542516425174251842519425204252142522425234252442525425264252742528425294253042531425324253342534425354253642537425384253942540425414254242543425444254542546425474254842549425504255142552425534255442555425564255742558425594256042561425624256342564425654256642567425684256942570425714257242573425744257542576425774257842579425804258142582425834258442585425864258742588425894259042591425924259342594425954259642597425984259942600426014260242603426044260542606426074260842609426104261142612426134261442615426164261742618426194262042621426224262342624426254262642627426284262942630426314263242633426344263542636426374263842639426404264142642426434264442645426464264742648426494265042651426524265342654426554265642657426584265942660426614266242663426644266542666426674266842669426704267142672426734267442675426764267742678426794268042681426824268342684426854268642687426884268942690426914269242693426944269542696426974269842699427004270142702427034270442705427064270742708427094271042711427124271342714427154271642717427184271942720427214272242723427244272542726427274272842729427304273142732427334273442735427364273742738427394274042741427424274342744427454274642747427484274942750427514275242753427544275542756427574275842759427604276142762427634276442765427664276742768427694277042771427724277342774427754277642777427784277942780427814278242783427844278542786427874278842789427904279142792427934279442795427964279742798427994280042801428024280342804428054280642807428084280942810428114281242813428144281542816428174281842819428204282142822428234282442825428264282742828428294283042831428324283342834428354283642837428384283942840428414284242843428444284542846428474284842849428504285142852428534285442855428564285742858428594286042861428624286342864428654286642867428684286942870428714287242873428744287542876428774287842879428804288142882428834288442885428864288742888428894289042891428924289342894428954289642897428984289942900429014290242903429044290542906429074290842909429104291142912429134291442915429164291742918429194292042921429224292342924429254292642927429284292942930429314293242933429344293542936429374293842939429404294142942429434294442945429464294742948429494295042951429524295342954429554295642957429584295942960429614296242963429644296542966429674296842969429704297142972429734297442975429764297742978429794298042981429824298342984429854298642987429884298942990429914299242993429944299542996429974299842999430004300143002430034300443005430064300743008430094301043011430124301343014430154301643017430184301943020430214302243023430244302543026430274302843029430304303143032430334303443035430364303743038430394304043041430424304343044430454304643047430484304943050430514305243053430544305543056430574305843059430604306143062430634306443065430664306743068430694307043071430724307343074430754307643077430784307943080430814308243083430844308543086430874308843089430904309143092430934309443095430964309743098430994310043101431024310343104431054310643107431084310943110431114311243113431144311543116431174311843119431204312143122431234312443125431264312743128431294313043131431324313343134431354313643137431384313943140431414314243143431444314543146431474314843149431504315143152431534315443155431564315743158431594316043161431624316343164431654316643167431684316943170431714317243173431744317543176431774317843179431804318143182431834318443185431864318743188431894319043191431924319343194431954319643197431984319943200432014320243203432044320543206432074320843209432104321143212432134321443215432164321743218432194322043221432224322343224432254322643227432284322943230432314323243233432344323543236432374323843239432404324143242432434324443245432464324743248432494325043251432524325343254432554325643257432584325943260432614326243263432644326543266432674326843269432704327143272432734327443275432764327743278432794328043281432824328343284432854328643287432884328943290432914329243293432944329543296432974329843299433004330143302433034330443305433064330743308433094331043311433124331343314433154331643317433184331943320433214332243323433244332543326433274332843329433304333143332433334333443335433364333743338433394334043341433424334343344433454334643347433484334943350433514335243353433544335543356433574335843359433604336143362433634336443365433664336743368433694337043371433724337343374433754337643377433784337943380433814338243383433844338543386433874338843389433904339143392433934339443395433964339743398433994340043401434024340343404434054340643407434084340943410434114341243413434144341543416434174341843419434204342143422434234342443425434264342743428434294343043431434324343343434434354343643437434384343943440434414344243443434444344543446434474344843449434504345143452434534345443455434564345743458434594346043461434624346343464434654346643467434684346943470434714347243473434744347543476434774347843479434804348143482434834348443485434864348743488434894349043491434924349343494434954349643497434984349943500435014350243503435044350543506435074350843509435104351143512435134351443515435164351743518435194352043521435224352343524435254352643527435284352943530435314353243533435344353543536435374353843539435404354143542435434354443545435464354743548435494355043551435524355343554435554355643557435584355943560435614356243563435644356543566435674356843569435704357143572435734357443575435764357743578435794358043581435824358343584435854358643587435884358943590435914359243593435944359543596435974359843599436004360143602436034360443605436064360743608436094361043611436124361343614436154361643617436184361943620436214362243623436244362543626436274362843629436304363143632436334363443635436364363743638436394364043641436424364343644436454364643647436484364943650436514365243653436544365543656436574365843659436604366143662436634366443665436664366743668436694367043671436724367343674436754367643677436784367943680436814368243683436844368543686436874368843689436904369143692436934369443695436964369743698436994370043701437024370343704437054370643707437084370943710437114371243713437144371543716437174371843719437204372143722437234372443725437264372743728437294373043731437324373343734437354373643737437384373943740437414374243743437444374543746437474374843749437504375143752437534375443755437564375743758437594376043761437624376343764437654376643767437684376943770437714377243773437744377543776437774377843779437804378143782437834378443785437864378743788437894379043791437924379343794437954379643797437984379943800438014380243803438044380543806438074380843809438104381143812438134381443815438164381743818438194382043821438224382343824438254382643827438284382943830438314383243833438344383543836438374383843839438404384143842438434384443845438464384743848438494385043851438524385343854438554385643857438584385943860438614386243863438644386543866438674386843869438704387143872438734387443875438764387743878438794388043881438824388343884438854388643887438884388943890438914389243893438944389543896438974389843899439004390143902439034390443905439064390743908439094391043911439124391343914439154391643917439184391943920439214392243923439244392543926439274392843929439304393143932439334393443935439364393743938439394394043941439424394343944439454394643947439484394943950439514395243953439544395543956439574395843959439604396143962439634396443965439664396743968439694397043971439724397343974439754397643977439784397943980439814398243983439844398543986439874398843989439904399143992439934399443995439964399743998439994400044001440024400344004440054400644007440084400944010440114401244013440144401544016440174401844019440204402144022440234402444025440264402744028440294403044031440324403344034440354403644037440384403944040440414404244043440444404544046440474404844049440504405144052440534405444055440564405744058440594406044061440624406344064440654406644067440684406944070440714407244073440744407544076440774407844079440804408144082440834408444085440864408744088440894409044091440924409344094440954409644097440984409944100441014410244103441044410544106441074410844109441104411144112441134411444115441164411744118441194412044121441224412344124441254412644127441284412944130441314413244133441344413544136441374413844139441404414144142441434414444145441464414744148441494415044151441524415344154441554415644157441584415944160441614416244163441644416544166441674416844169441704417144172441734417444175441764417744178441794418044181441824418344184441854418644187441884418944190441914419244193441944419544196441974419844199442004420144202442034420444205442064420744208442094421044211442124421344214442154421644217442184421944220442214422244223442244422544226442274422844229442304423144232442334423444235442364423744238442394424044241442424424344244442454424644247442484424944250442514425244253442544425544256442574425844259442604426144262442634426444265442664426744268442694427044271442724427344274442754427644277442784427944280442814428244283442844428544286442874428844289442904429144292442934429444295442964429744298442994430044301443024430344304443054430644307443084430944310443114431244313443144431544316443174431844319443204432144322443234432444325443264432744328443294433044331443324433344334443354433644337443384433944340443414434244343443444434544346443474434844349443504435144352443534435444355443564435744358443594436044361443624436344364443654436644367443684436944370443714437244373443744437544376443774437844379443804438144382443834438444385443864438744388443894439044391443924439344394443954439644397443984439944400444014440244403444044440544406444074440844409444104441144412444134441444415444164441744418444194442044421444224442344424444254442644427444284442944430444314443244433444344443544436444374443844439444404444144442444434444444445444464444744448444494445044451444524445344454444554445644457444584445944460444614446244463444644446544466444674446844469444704447144472444734447444475444764447744478444794448044481444824448344484444854448644487444884448944490444914449244493444944449544496444974449844499445004450144502445034450444505445064450744508445094451044511445124451344514445154451644517445184451944520445214452244523445244452544526445274452844529445304453144532445334453444535445364453744538445394454044541445424454344544445454454644547445484454944550445514455244553445544455544556445574455844559445604456144562445634456444565445664456744568445694457044571445724457344574445754457644577445784457944580445814458244583445844458544586445874458844589445904459144592445934459444595445964459744598445994460044601446024460344604446054460644607446084460944610446114461244613446144461544616446174461844619446204462144622446234462444625446264462744628446294463044631446324463344634446354463644637446384463944640446414464244643446444464544646446474464844649446504465144652446534465444655446564465744658446594466044661446624466344664446654466644667446684466944670446714467244673446744467544676446774467844679446804468144682446834468444685446864468744688446894469044691446924469344694446954469644697446984469944700447014470244703447044470544706447074470844709447104471144712447134471444715447164471744718447194472044721447224472344724447254472644727447284472944730447314473244733447344473544736447374473844739447404474144742447434474444745447464474744748447494475044751447524475344754447554475644757447584475944760447614476244763447644476544766447674476844769447704477144772447734477444775447764477744778447794478044781447824478344784447854478644787447884478944790447914479244793447944479544796447974479844799448004480144802448034480444805448064480744808448094481044811448124481344814448154481644817448184481944820448214482244823448244482544826448274482844829448304483144832448334483444835448364483744838448394484044841448424484344844448454484644847448484484944850448514485244853448544485544856448574485844859448604486144862448634486444865448664486744868448694487044871448724487344874448754487644877448784487944880448814488244883448844488544886448874488844889448904489144892448934489444895448964489744898448994490044901449024490344904449054490644907449084490944910449114491244913449144491544916449174491844919449204492144922449234492444925449264492744928449294493044931449324493344934449354493644937449384493944940449414494244943449444494544946449474494844949449504495144952449534495444955449564495744958449594496044961449624496344964449654496644967449684496944970449714497244973449744497544976449774497844979449804498144982449834498444985449864498744988449894499044991449924499344994449954499644997449984499945000450014500245003450044500545006450074500845009450104501145012450134501445015450164501745018450194502045021450224502345024450254502645027450284502945030450314503245033450344503545036450374503845039450404504145042450434504445045450464504745048450494505045051450524505345054450554505645057450584505945060450614506245063450644506545066450674506845069450704507145072450734507445075450764507745078450794508045081450824508345084450854508645087450884508945090450914509245093450944509545096450974509845099451004510145102451034510445105451064510745108451094511045111451124511345114451154511645117451184511945120451214512245123451244512545126451274512845129451304513145132451334513445135451364513745138451394514045141451424514345144451454514645147451484514945150451514515245153451544515545156451574515845159451604516145162451634516445165451664516745168451694517045171451724517345174451754517645177451784517945180451814518245183451844518545186451874518845189451904519145192451934519445195451964519745198451994520045201452024520345204452054520645207452084520945210452114521245213452144521545216452174521845219452204522145222452234522445225452264522745228452294523045231452324523345234452354523645237452384523945240452414524245243452444524545246452474524845249452504525145252452534525445255452564525745258452594526045261452624526345264452654526645267452684526945270452714527245273452744527545276452774527845279452804528145282452834528445285452864528745288452894529045291452924529345294452954529645297452984529945300453014530245303453044530545306453074530845309453104531145312453134531445315453164531745318453194532045321453224532345324453254532645327453284532945330453314533245333453344533545336453374533845339453404534145342453434534445345453464534745348453494535045351453524535345354453554535645357453584535945360453614536245363453644536545366453674536845369453704537145372453734537445375453764537745378453794538045381453824538345384453854538645387453884538945390453914539245393453944539545396453974539845399454004540145402454034540445405454064540745408454094541045411454124541345414454154541645417454184541945420454214542245423454244542545426454274542845429454304543145432454334543445435454364543745438454394544045441454424544345444454454544645447454484544945450454514545245453454544545545456454574545845459454604546145462454634546445465454664546745468454694547045471454724547345474454754547645477454784547945480454814548245483454844548545486454874548845489454904549145492454934549445495454964549745498454994550045501455024550345504455054550645507455084550945510455114551245513455144551545516455174551845519455204552145522455234552445525455264552745528455294553045531455324553345534455354553645537455384553945540455414554245543455444554545546455474554845549455504555145552455534555445555455564555745558455594556045561455624556345564455654556645567455684556945570455714557245573455744557545576455774557845579455804558145582455834558445585455864558745588455894559045591455924559345594455954559645597455984559945600456014560245603456044560545606456074560845609456104561145612456134561445615456164561745618456194562045621456224562345624456254562645627456284562945630456314563245633456344563545636456374563845639456404564145642456434564445645456464564745648456494565045651456524565345654456554565645657456584565945660456614566245663456644566545666456674566845669456704567145672456734567445675456764567745678456794568045681456824568345684456854568645687456884568945690456914569245693456944569545696456974569845699457004570145702457034570445705457064570745708457094571045711457124571345714457154571645717457184571945720457214572245723457244572545726457274572845729457304573145732457334573445735457364573745738457394574045741457424574345744457454574645747457484574945750457514575245753457544575545756457574575845759457604576145762457634576445765457664576745768457694577045771457724577345774457754577645777457784577945780457814578245783457844578545786457874578845789457904579145792457934579445795457964579745798457994580045801458024580345804458054580645807458084580945810458114581245813458144581545816458174581845819458204582145822458234582445825458264582745828458294583045831458324583345834458354583645837458384583945840458414584245843458444584545846458474584845849458504585145852458534585445855458564585745858458594586045861458624586345864458654586645867458684586945870458714587245873458744587545876458774587845879458804588145882458834588445885458864588745888458894589045891458924589345894458954589645897458984589945900459014590245903459044590545906459074590845909459104591145912459134591445915459164591745918459194592045921459224592345924459254592645927459284592945930459314593245933459344593545936459374593845939459404594145942459434594445945459464594745948459494595045951459524595345954459554595645957459584595945960459614596245963459644596545966459674596845969459704597145972459734597445975459764597745978459794598045981459824598345984459854598645987459884598945990459914599245993459944599545996459974599845999460004600146002460034600446005460064600746008460094601046011460124601346014460154601646017460184601946020460214602246023460244602546026460274602846029460304603146032460334603446035460364603746038460394604046041460424604346044460454604646047460484604946050460514605246053460544605546056460574605846059460604606146062460634606446065460664606746068460694607046071460724607346074460754607646077460784607946080460814608246083460844608546086460874608846089460904609146092460934609446095460964609746098460994610046101461024610346104461054610646107461084610946110461114611246113461144611546116461174611846119461204612146122461234612446125461264612746128461294613046131461324613346134461354613646137461384613946140461414614246143461444614546146461474614846149461504615146152461534615446155461564615746158461594616046161461624616346164461654616646167461684616946170461714617246173461744617546176461774617846179461804618146182461834618446185461864618746188461894619046191461924619346194461954619646197461984619946200462014620246203462044620546206462074620846209462104621146212462134621446215462164621746218462194622046221462224622346224462254622646227462284622946230462314623246233462344623546236462374623846239462404624146242462434624446245462464624746248462494625046251462524625346254462554625646257462584625946260462614626246263462644626546266462674626846269462704627146272462734627446275462764627746278462794628046281462824628346284462854628646287462884628946290462914629246293462944629546296462974629846299463004630146302463034630446305463064630746308463094631046311463124631346314463154631646317463184631946320463214632246323463244632546326463274632846329463304633146332463334633446335463364633746338463394634046341463424634346344463454634646347463484634946350463514635246353463544635546356463574635846359463604636146362463634636446365463664636746368463694637046371463724637346374463754637646377463784637946380463814638246383463844638546386463874638846389463904639146392463934639446395463964639746398463994640046401464024640346404464054640646407464084640946410464114641246413464144641546416464174641846419464204642146422464234642446425464264642746428464294643046431464324643346434464354643646437464384643946440464414644246443464444644546446464474644846449464504645146452464534645446455464564645746458464594646046461464624646346464464654646646467464684646946470464714647246473464744647546476464774647846479464804648146482464834648446485464864648746488464894649046491464924649346494464954649646497464984649946500465014650246503465044650546506465074650846509465104651146512465134651446515465164651746518465194652046521465224652346524465254652646527465284652946530465314653246533465344653546536465374653846539465404654146542465434654446545465464654746548465494655046551465524655346554465554655646557465584655946560465614656246563465644656546566465674656846569465704657146572465734657446575465764657746578465794658046581465824658346584465854658646587465884658946590465914659246593465944659546596465974659846599466004660146602466034660446605466064660746608466094661046611466124661346614466154661646617466184661946620466214662246623466244662546626466274662846629466304663146632466334663446635466364663746638466394664046641466424664346644466454664646647466484664946650466514665246653466544665546656466574665846659466604666146662466634666446665466664666746668466694667046671466724667346674466754667646677466784667946680466814668246683466844668546686466874668846689466904669146692466934669446695466964669746698466994670046701467024670346704467054670646707467084670946710467114671246713467144671546716467174671846719467204672146722467234672446725467264672746728467294673046731467324673346734467354673646737467384673946740467414674246743467444674546746467474674846749467504675146752467534675446755467564675746758467594676046761467624676346764467654676646767467684676946770467714677246773467744677546776467774677846779467804678146782467834678446785467864678746788467894679046791467924679346794467954679646797467984679946800468014680246803468044680546806468074680846809468104681146812468134681446815468164681746818468194682046821468224682346824468254682646827468284682946830468314683246833468344683546836468374683846839468404684146842468434684446845468464684746848468494685046851468524685346854468554685646857468584685946860468614686246863468644686546866468674686846869468704687146872468734687446875468764687746878468794688046881468824688346884468854688646887468884688946890468914689246893468944689546896468974689846899469004690146902469034690446905469064690746908469094691046911469124691346914469154691646917469184691946920469214692246923469244692546926469274692846929469304693146932469334693446935469364693746938469394694046941469424694346944469454694646947469484694946950469514695246953469544695546956469574695846959469604696146962469634696446965469664696746968469694697046971469724697346974469754697646977469784697946980469814698246983469844698546986469874698846989469904699146992469934699446995469964699746998469994700047001470024700347004470054700647007470084700947010470114701247013470144701547016470174701847019470204702147022470234702447025470264702747028470294703047031470324703347034470354703647037470384703947040470414704247043470444704547046470474704847049470504705147052470534705447055470564705747058470594706047061470624706347064470654706647067470684706947070470714707247073470744707547076470774707847079470804708147082470834708447085470864708747088470894709047091470924709347094470954709647097470984709947100471014710247103471044710547106471074710847109471104711147112471134711447115471164711747118471194712047121471224712347124471254712647127471284712947130471314713247133471344713547136471374713847139471404714147142471434714447145471464714747148471494715047151471524715347154471554715647157471584715947160471614716247163471644716547166471674716847169471704717147172471734717447175471764717747178471794718047181471824718347184471854718647187471884718947190471914719247193471944719547196471974719847199472004720147202472034720447205472064720747208472094721047211472124721347214472154721647217472184721947220472214722247223472244722547226472274722847229472304723147232472334723447235472364723747238472394724047241472424724347244472454724647247472484724947250472514725247253472544725547256472574725847259472604726147262472634726447265472664726747268472694727047271472724727347274472754727647277472784727947280472814728247283472844728547286472874728847289472904729147292472934729447295472964729747298472994730047301473024730347304473054730647307473084730947310473114731247313473144731547316473174731847319473204732147322473234732447325473264732747328473294733047331473324733347334473354733647337473384733947340473414734247343473444734547346473474734847349473504735147352473534735447355473564735747358473594736047361473624736347364473654736647367473684736947370473714737247373473744737547376473774737847379473804738147382473834738447385473864738747388473894739047391473924739347394473954739647397473984739947400474014740247403474044740547406474074740847409474104741147412474134741447415474164741747418474194742047421474224742347424474254742647427474284742947430474314743247433474344743547436474374743847439474404744147442474434744447445474464744747448474494745047451474524745347454474554745647457474584745947460474614746247463474644746547466474674746847469474704747147472474734747447475474764747747478474794748047481474824748347484474854748647487474884748947490474914749247493474944749547496474974749847499475004750147502475034750447505475064750747508475094751047511475124751347514475154751647517475184751947520475214752247523475244752547526475274752847529475304753147532475334753447535475364753747538475394754047541475424754347544475454754647547475484754947550475514755247553475544755547556475574755847559475604756147562475634756447565475664756747568475694757047571475724757347574475754757647577475784757947580475814758247583475844758547586475874758847589475904759147592475934759447595475964759747598475994760047601476024760347604476054760647607476084760947610476114761247613476144761547616476174761847619476204762147622476234762447625476264762747628476294763047631476324763347634476354763647637476384763947640476414764247643476444764547646476474764847649476504765147652476534765447655476564765747658476594766047661476624766347664476654766647667476684766947670476714767247673476744767547676476774767847679476804768147682476834768447685476864768747688476894769047691476924769347694476954769647697476984769947700477014770247703477044770547706477074770847709477104771147712477134771447715477164771747718477194772047721477224772347724477254772647727477284772947730477314773247733477344773547736477374773847739477404774147742477434774447745477464774747748477494775047751477524775347754477554775647757477584775947760477614776247763477644776547766477674776847769477704777147772477734777447775477764777747778477794778047781477824778347784477854778647787477884778947790477914779247793477944779547796477974779847799478004780147802478034780447805478064780747808478094781047811478124781347814478154781647817478184781947820478214782247823478244782547826478274782847829478304783147832478334783447835478364783747838478394784047841478424784347844478454784647847478484784947850478514785247853478544785547856478574785847859478604786147862478634786447865478664786747868478694787047871478724787347874478754787647877478784787947880478814788247883478844788547886478874788847889478904789147892478934789447895478964789747898478994790047901479024790347904479054790647907479084790947910479114791247913479144791547916479174791847919479204792147922479234792447925479264792747928479294793047931479324793347934479354793647937479384793947940479414794247943479444794547946479474794847949479504795147952479534795447955479564795747958479594796047961479624796347964479654796647967479684796947970479714797247973479744797547976479774797847979479804798147982479834798447985479864798747988479894799047991479924799347994479954799647997479984799948000480014800248003480044800548006480074800848009480104801148012480134801448015480164801748018480194802048021480224802348024480254802648027480284802948030480314803248033480344803548036480374803848039480404804148042480434804448045480464804748048480494805048051480524805348054480554805648057480584805948060480614806248063480644806548066480674806848069480704807148072480734807448075480764807748078480794808048081480824808348084480854808648087480884808948090480914809248093480944809548096480974809848099481004810148102481034810448105481064810748108481094811048111481124811348114481154811648117481184811948120481214812248123481244812548126481274812848129481304813148132481334813448135481364813748138481394814048141481424814348144481454814648147481484814948150481514815248153481544815548156481574815848159481604816148162481634816448165481664816748168481694817048171481724817348174481754817648177481784817948180481814818248183481844818548186481874818848189481904819148192481934819448195481964819748198481994820048201482024820348204482054820648207482084820948210482114821248213482144821548216482174821848219482204822148222482234822448225482264822748228482294823048231482324823348234482354823648237482384823948240482414824248243482444824548246482474824848249482504825148252482534825448255482564825748258482594826048261482624826348264482654826648267482684826948270482714827248273482744827548276482774827848279482804828148282482834828448285482864828748288482894829048291482924829348294482954829648297482984829948300483014830248303483044830548306483074830848309483104831148312483134831448315483164831748318483194832048321483224832348324483254832648327483284832948330483314833248333483344833548336483374833848339483404834148342483434834448345483464834748348483494835048351483524835348354483554835648357483584835948360483614836248363483644836548366483674836848369483704837148372483734837448375483764837748378483794838048381483824838348384483854838648387483884838948390483914839248393483944839548396483974839848399484004840148402484034840448405484064840748408484094841048411484124841348414484154841648417484184841948420484214842248423484244842548426484274842848429484304843148432484334843448435484364843748438484394844048441484424844348444484454844648447484484844948450484514845248453484544845548456484574845848459484604846148462484634846448465484664846748468484694847048471484724847348474484754847648477484784847948480484814848248483484844848548486484874848848489484904849148492484934849448495484964849748498484994850048501485024850348504485054850648507485084850948510485114851248513485144851548516485174851848519485204852148522485234852448525485264852748528485294853048531485324853348534485354853648537485384853948540485414854248543485444854548546485474854848549485504855148552485534855448555485564855748558485594856048561485624856348564485654856648567485684856948570485714857248573485744857548576485774857848579485804858148582485834858448585485864858748588485894859048591485924859348594485954859648597485984859948600486014860248603486044860548606486074860848609486104861148612486134861448615486164861748618486194862048621486224862348624486254862648627486284862948630486314863248633486344863548636486374863848639486404864148642486434864448645486464864748648486494865048651486524865348654486554865648657486584865948660486614866248663486644866548666486674866848669486704867148672486734867448675486764867748678486794868048681486824868348684486854868648687486884868948690486914869248693486944869548696486974869848699487004870148702487034870448705487064870748708487094871048711487124871348714487154871648717487184871948720487214872248723487244872548726487274872848729487304873148732487334873448735487364873748738487394874048741487424874348744487454874648747487484874948750487514875248753487544875548756487574875848759487604876148762487634876448765487664876748768487694877048771487724877348774487754877648777487784877948780487814878248783487844878548786487874878848789487904879148792487934879448795487964879748798487994880048801488024880348804488054880648807488084880948810488114881248813488144881548816488174881848819488204882148822488234882448825488264882748828488294883048831488324883348834488354883648837488384883948840488414884248843488444884548846488474884848849488504885148852488534885448855488564885748858488594886048861488624886348864488654886648867488684886948870488714887248873488744887548876488774887848879488804888148882488834888448885488864888748888488894889048891488924889348894488954889648897488984889948900489014890248903489044890548906489074890848909489104891148912489134891448915489164891748918489194892048921489224892348924489254892648927489284892948930489314893248933489344893548936489374893848939489404894148942489434894448945489464894748948489494895048951489524895348954489554895648957489584895948960489614896248963489644896548966489674896848969489704897148972489734897448975489764897748978489794898048981489824898348984489854898648987489884898948990489914899248993489944899548996489974899848999490004900149002490034900449005490064900749008490094901049011490124901349014490154901649017490184901949020490214902249023490244902549026490274902849029490304903149032490334903449035490364903749038490394904049041490424904349044490454904649047490484904949050490514905249053490544905549056490574905849059490604906149062490634906449065490664906749068490694907049071490724907349074490754907649077490784907949080490814908249083490844908549086490874908849089490904909149092490934909449095490964909749098490994910049101491024910349104491054910649107491084910949110491114911249113491144911549116491174911849119491204912149122491234912449125491264912749128491294913049131491324913349134491354913649137491384913949140491414914249143491444914549146491474914849149491504915149152491534915449155491564915749158491594916049161491624916349164491654916649167491684916949170491714917249173491744917549176491774917849179491804918149182491834918449185491864918749188491894919049191491924919349194491954919649197491984919949200492014920249203492044920549206492074920849209492104921149212492134921449215492164921749218492194922049221492224922349224492254922649227492284922949230492314923249233492344923549236492374923849239492404924149242492434924449245492464924749248492494925049251492524925349254492554925649257492584925949260492614926249263492644926549266492674926849269492704927149272492734927449275492764927749278492794928049281492824928349284492854928649287492884928949290492914929249293492944929549296492974929849299493004930149302493034930449305493064930749308493094931049311493124931349314493154931649317493184931949320493214932249323493244932549326493274932849329493304933149332493334933449335493364933749338493394934049341493424934349344493454934649347493484934949350493514935249353493544935549356493574935849359493604936149362493634936449365493664936749368493694937049371493724937349374493754937649377493784937949380493814938249383493844938549386493874938849389493904939149392493934939449395493964939749398493994940049401494024940349404494054940649407494084940949410494114941249413494144941549416494174941849419494204942149422494234942449425494264942749428494294943049431494324943349434494354943649437494384943949440494414944249443494444944549446494474944849449494504945149452494534945449455494564945749458494594946049461494624946349464494654946649467494684946949470494714947249473494744947549476494774947849479494804948149482494834948449485494864948749488494894949049491494924949349494494954949649497494984949949500495014950249503495044950549506495074950849509495104951149512495134951449515495164951749518495194952049521495224952349524495254952649527495284952949530495314953249533495344953549536495374953849539495404954149542495434954449545495464954749548495494955049551495524955349554495554955649557495584955949560495614956249563495644956549566495674956849569495704957149572495734957449575495764957749578495794958049581495824958349584495854958649587495884958949590495914959249593495944959549596495974959849599496004960149602496034960449605496064960749608496094961049611496124961349614496154961649617496184961949620496214962249623496244962549626496274962849629496304963149632496334963449635496364963749638496394964049641496424964349644496454964649647496484964949650496514965249653496544965549656496574965849659496604966149662496634966449665496664966749668496694967049671496724967349674496754967649677496784967949680496814968249683496844968549686496874968849689496904969149692496934969449695496964969749698496994970049701497024970349704497054970649707497084970949710497114971249713497144971549716497174971849719497204972149722497234972449725497264972749728497294973049731497324973349734497354973649737497384973949740497414974249743497444974549746497474974849749497504975149752497534975449755497564975749758497594976049761497624976349764497654976649767497684976949770497714977249773497744977549776497774977849779497804978149782497834978449785497864978749788497894979049791497924979349794497954979649797497984979949800498014980249803498044980549806498074980849809498104981149812498134981449815498164981749818498194982049821498224982349824498254982649827498284982949830498314983249833498344983549836498374983849839498404984149842498434984449845498464984749848498494985049851498524985349854498554985649857498584985949860498614986249863498644986549866498674986849869498704987149872498734987449875498764987749878498794988049881498824988349884498854988649887498884988949890498914989249893498944989549896498974989849899499004990149902499034990449905499064990749908499094991049911499124991349914499154991649917499184991949920499214992249923499244992549926499274992849929499304993149932499334993449935499364993749938499394994049941499424994349944499454994649947499484994949950499514995249953499544995549956499574995849959499604996149962499634996449965499664996749968499694997049971499724997349974499754997649977499784997949980499814998249983499844998549986499874998849989499904999149992499934999449995499964999749998499995000050001500025000350004500055000650007500085000950010500115001250013500145001550016500175001850019500205002150022500235002450025500265002750028500295003050031500325003350034500355003650037500385003950040500415004250043500445004550046500475004850049500505005150052500535005450055500565005750058500595006050061500625006350064500655006650067500685006950070500715007250073500745007550076500775007850079500805008150082500835008450085500865008750088500895009050091500925009350094500955009650097500985009950100501015010250103501045010550106501075010850109501105011150112501135011450115501165011750118501195012050121501225012350124501255012650127501285012950130501315013250133501345013550136501375013850139501405014150142501435014450145501465014750148501495015050151501525015350154501555015650157501585015950160501615016250163501645016550166501675016850169501705017150172501735017450175501765017750178501795018050181501825018350184501855018650187501885018950190501915019250193501945019550196501975019850199502005020150202502035020450205502065020750208502095021050211502125021350214502155021650217502185021950220502215022250223502245022550226502275022850229502305023150232502335023450235502365023750238502395024050241502425024350244502455024650247502485024950250502515025250253502545025550256502575025850259502605026150262502635026450265502665026750268502695027050271502725027350274502755027650277502785027950280502815028250283502845028550286502875028850289502905029150292502935029450295502965029750298502995030050301503025030350304503055030650307503085030950310503115031250313503145031550316503175031850319503205032150322503235032450325503265032750328503295033050331503325033350334503355033650337503385033950340503415034250343503445034550346503475034850349503505035150352503535035450355503565035750358503595036050361503625036350364503655036650367503685036950370503715037250373503745037550376503775037850379503805038150382503835038450385503865038750388503895039050391503925039350394503955039650397503985039950400504015040250403504045040550406504075040850409504105041150412504135041450415504165041750418504195042050421504225042350424504255042650427504285042950430504315043250433504345043550436504375043850439504405044150442504435044450445504465044750448504495045050451504525045350454504555045650457504585045950460504615046250463504645046550466504675046850469504705047150472504735047450475504765047750478504795048050481504825048350484504855048650487504885048950490504915049250493504945049550496504975049850499505005050150502505035050450505505065050750508505095051050511505125051350514505155051650517505185051950520505215052250523505245052550526505275052850529505305053150532505335053450535505365053750538505395054050541505425054350544505455054650547505485054950550505515055250553505545055550556505575055850559505605056150562505635056450565505665056750568505695057050571505725057350574505755057650577505785057950580505815058250583505845058550586505875058850589505905059150592505935059450595505965059750598505995060050601506025060350604506055060650607506085060950610506115061250613506145061550616506175061850619506205062150622506235062450625506265062750628506295063050631506325063350634506355063650637506385063950640506415064250643506445064550646506475064850649506505065150652506535065450655506565065750658506595066050661506625066350664506655066650667506685066950670506715067250673506745067550676506775067850679506805068150682506835068450685506865068750688506895069050691506925069350694506955069650697506985069950700507015070250703507045070550706507075070850709507105071150712507135071450715507165071750718507195072050721507225072350724507255072650727507285072950730507315073250733507345073550736507375073850739507405074150742507435074450745507465074750748507495075050751507525075350754507555075650757507585075950760507615076250763507645076550766507675076850769507705077150772507735077450775507765077750778507795078050781507825078350784507855078650787507885078950790507915079250793507945079550796507975079850799508005080150802508035080450805508065080750808508095081050811508125081350814508155081650817508185081950820508215082250823508245082550826508275082850829508305083150832508335083450835508365083750838508395084050841508425084350844508455084650847508485084950850508515085250853508545085550856508575085850859508605086150862508635086450865508665086750868508695087050871508725087350874508755087650877508785087950880508815088250883508845088550886508875088850889508905089150892508935089450895508965089750898508995090050901509025090350904509055090650907509085090950910509115091250913509145091550916509175091850919509205092150922509235092450925509265092750928509295093050931509325093350934509355093650937509385093950940509415094250943509445094550946509475094850949509505095150952509535095450955509565095750958509595096050961509625096350964509655096650967509685096950970509715097250973509745097550976509775097850979509805098150982509835098450985509865098750988509895099050991509925099350994509955099650997509985099951000510015100251003510045100551006510075100851009510105101151012510135101451015510165101751018510195102051021510225102351024510255102651027510285102951030510315103251033510345103551036510375103851039510405104151042510435104451045510465104751048510495105051051510525105351054510555105651057510585105951060510615106251063510645106551066510675106851069510705107151072510735107451075510765107751078510795108051081510825108351084510855108651087510885108951090510915109251093510945109551096510975109851099511005110151102511035110451105511065110751108511095111051111511125111351114511155111651117511185111951120511215112251123511245112551126511275112851129511305113151132511335113451135511365113751138511395114051141511425114351144511455114651147511485114951150511515115251153511545115551156511575115851159511605116151162511635116451165511665116751168511695117051171511725117351174511755117651177511785117951180511815118251183511845118551186511875118851189511905119151192511935119451195511965119751198511995120051201512025120351204512055120651207512085120951210512115121251213512145121551216512175121851219512205122151222512235122451225512265122751228512295123051231512325123351234512355123651237512385123951240512415124251243512445124551246512475124851249512505125151252512535125451255512565125751258512595126051261512625126351264512655126651267512685126951270512715127251273512745127551276512775127851279512805128151282512835128451285512865128751288512895129051291512925129351294512955129651297512985129951300513015130251303513045130551306513075130851309513105131151312513135131451315513165131751318513195132051321513225132351324513255132651327513285132951330513315133251333513345133551336513375133851339513405134151342513435134451345513465134751348513495135051351513525135351354513555135651357513585135951360513615136251363513645136551366513675136851369513705137151372513735137451375513765137751378513795138051381513825138351384513855138651387513885138951390513915139251393513945139551396513975139851399514005140151402514035140451405514065140751408514095141051411514125141351414514155141651417514185141951420514215142251423514245142551426514275142851429514305143151432514335143451435514365143751438514395144051441514425144351444514455144651447514485144951450514515145251453514545145551456514575145851459514605146151462514635146451465514665146751468514695147051471514725147351474514755147651477514785147951480514815148251483514845148551486514875148851489514905149151492514935149451495514965149751498514995150051501515025150351504515055150651507515085150951510515115151251513515145151551516515175151851519515205152151522515235152451525515265152751528515295153051531515325153351534515355153651537515385153951540515415154251543515445154551546515475154851549515505155151552515535155451555515565155751558515595156051561515625156351564515655156651567515685156951570515715157251573515745157551576515775157851579515805158151582515835158451585515865158751588515895159051591515925159351594515955159651597515985159951600516015160251603516045160551606516075160851609516105161151612516135161451615516165161751618516195162051621516225162351624516255162651627516285162951630516315163251633516345163551636516375163851639516405164151642516435164451645516465164751648516495165051651516525165351654516555165651657516585165951660516615166251663516645166551666516675166851669516705167151672516735167451675516765167751678516795168051681516825168351684516855168651687516885168951690516915169251693516945169551696516975169851699517005170151702517035170451705517065170751708517095171051711517125171351714517155171651717517185171951720517215172251723517245172551726517275172851729517305173151732517335173451735517365173751738517395174051741517425174351744517455174651747517485174951750517515175251753517545175551756517575175851759517605176151762517635176451765517665176751768517695177051771517725177351774517755177651777517785177951780517815178251783517845178551786517875178851789517905179151792517935179451795517965179751798517995180051801518025180351804518055180651807518085180951810518115181251813518145181551816518175181851819518205182151822518235182451825518265182751828518295183051831518325183351834518355183651837518385183951840518415184251843518445184551846518475184851849518505185151852518535185451855518565185751858518595186051861518625186351864518655186651867518685186951870518715187251873518745187551876518775187851879518805188151882518835188451885518865188751888518895189051891518925189351894518955189651897518985189951900519015190251903519045190551906519075190851909519105191151912519135191451915519165191751918519195192051921519225192351924519255192651927519285192951930519315193251933519345193551936519375193851939519405194151942519435194451945519465194751948519495195051951519525195351954519555195651957519585195951960519615196251963519645196551966519675196851969519705197151972519735197451975519765197751978519795198051981519825198351984519855198651987519885198951990519915199251993519945199551996519975199851999520005200152002520035200452005520065200752008520095201052011520125201352014520155201652017520185201952020520215202252023520245202552026520275202852029520305203152032520335203452035520365203752038520395204052041520425204352044520455204652047520485204952050520515205252053520545205552056520575205852059520605206152062520635206452065520665206752068520695207052071520725207352074520755207652077520785207952080520815208252083520845208552086520875208852089520905209152092520935209452095520965209752098520995210052101521025210352104521055210652107521085210952110521115211252113521145211552116521175211852119521205212152122521235212452125521265212752128521295213052131521325213352134521355213652137521385213952140521415214252143521445214552146521475214852149521505215152152521535215452155521565215752158521595216052161521625216352164521655216652167521685216952170521715217252173521745217552176521775217852179521805218152182521835218452185521865218752188521895219052191521925219352194521955219652197521985219952200522015220252203522045220552206522075220852209522105221152212522135221452215522165221752218522195222052221522225222352224522255222652227522285222952230522315223252233522345223552236522375223852239522405224152242522435224452245522465224752248522495225052251522525225352254522555225652257522585225952260522615226252263522645226552266522675226852269522705227152272522735227452275522765227752278522795228052281522825228352284522855228652287522885228952290522915229252293522945229552296522975229852299523005230152302523035230452305523065230752308523095231052311523125231352314523155231652317523185231952320523215232252323523245232552326523275232852329523305233152332523335233452335523365233752338523395234052341523425234352344523455234652347523485234952350523515235252353523545235552356523575235852359523605236152362523635236452365523665236752368523695237052371523725237352374523755237652377523785237952380523815238252383523845238552386523875238852389523905239152392523935239452395523965239752398523995240052401524025240352404524055240652407524085240952410524115241252413524145241552416524175241852419524205242152422524235242452425524265242752428524295243052431524325243352434524355243652437524385243952440524415244252443524445244552446524475244852449524505245152452524535245452455524565245752458524595246052461524625246352464524655246652467524685246952470524715247252473524745247552476524775247852479524805248152482524835248452485524865248752488524895249052491524925249352494524955249652497524985249952500525015250252503525045250552506525075250852509525105251152512525135251452515525165251752518525195252052521525225252352524525255252652527525285252952530525315253252533525345253552536525375253852539525405254152542525435254452545525465254752548525495255052551525525255352554525555255652557525585255952560525615256252563525645256552566525675256852569525705257152572525735257452575525765257752578525795258052581525825258352584525855258652587525885258952590525915259252593525945259552596525975259852599526005260152602526035260452605526065260752608526095261052611526125261352614526155261652617526185261952620526215262252623526245262552626526275262852629526305263152632526335263452635526365263752638526395264052641526425264352644526455264652647526485264952650526515265252653526545265552656526575265852659526605266152662526635266452665526665266752668526695267052671526725267352674526755267652677526785267952680526815268252683526845268552686526875268852689526905269152692526935269452695526965269752698526995270052701527025270352704527055270652707527085270952710527115271252713527145271552716527175271852719527205272152722527235272452725527265272752728527295273052731527325273352734527355273652737527385273952740527415274252743527445274552746527475274852749527505275152752527535275452755527565275752758527595276052761527625276352764527655276652767527685276952770527715277252773527745277552776527775277852779527805278152782527835278452785527865278752788527895279052791527925279352794527955279652797527985279952800528015280252803528045280552806528075280852809528105281152812528135281452815528165281752818528195282052821528225282352824528255282652827528285282952830528315283252833528345283552836528375283852839528405284152842528435284452845528465284752848528495285052851528525285352854528555285652857528585285952860528615286252863528645286552866528675286852869528705287152872528735287452875528765287752878528795288052881528825288352884528855288652887528885288952890528915289252893528945289552896528975289852899529005290152902529035290452905529065290752908529095291052911529125291352914529155291652917529185291952920529215292252923529245292552926529275292852929529305293152932529335293452935529365293752938529395294052941529425294352944529455294652947529485294952950529515295252953529545295552956529575295852959529605296152962529635296452965529665296752968529695297052971529725297352974529755297652977529785297952980529815298252983529845298552986529875298852989529905299152992529935299452995529965299752998529995300053001530025300353004530055300653007530085300953010530115301253013530145301553016530175301853019530205302153022530235302453025530265302753028530295303053031530325303353034530355303653037530385303953040530415304253043530445304553046530475304853049530505305153052530535305453055530565305753058530595306053061530625306353064530655306653067530685306953070530715307253073530745307553076530775307853079530805308153082530835308453085530865308753088530895309053091530925309353094530955309653097530985309953100531015310253103531045310553106531075310853109531105311153112531135311453115531165311753118531195312053121531225312353124531255312653127531285312953130531315313253133531345313553136531375313853139531405314153142531435314453145531465314753148531495315053151531525315353154531555315653157531585315953160531615316253163531645316553166531675316853169531705317153172531735317453175531765317753178531795318053181531825318353184531855318653187531885318953190531915319253193531945319553196531975319853199532005320153202532035320453205532065320753208532095321053211532125321353214532155321653217532185321953220532215322253223532245322553226532275322853229532305323153232532335323453235532365323753238532395324053241532425324353244532455324653247532485324953250532515325253253532545325553256532575325853259532605326153262532635326453265532665326753268532695327053271532725327353274532755327653277532785327953280532815328253283532845328553286532875328853289532905329153292532935329453295532965329753298532995330053301533025330353304533055330653307533085330953310533115331253313533145331553316533175331853319533205332153322533235332453325533265332753328533295333053331533325333353334533355333653337533385333953340533415334253343533445334553346533475334853349533505335153352533535335453355533565335753358533595336053361533625336353364533655336653367533685336953370533715337253373533745337553376533775337853379533805338153382533835338453385533865338753388533895339053391533925339353394533955339653397533985339953400534015340253403534045340553406534075340853409534105341153412534135341453415534165341753418534195342053421534225342353424534255342653427534285342953430534315343253433534345343553436534375343853439534405344153442534435344453445534465344753448534495345053451534525345353454534555345653457534585345953460534615346253463534645346553466534675346853469534705347153472534735347453475534765347753478534795348053481534825348353484534855348653487534885348953490534915349253493534945349553496534975349853499535005350153502535035350453505535065350753508535095351053511535125351353514535155351653517535185351953520535215352253523535245352553526535275352853529535305353153532535335353453535535365353753538535395354053541535425354353544535455354653547535485354953550535515355253553535545355553556535575355853559535605356153562535635356453565535665356753568535695357053571535725357353574535755357653577535785357953580535815358253583535845358553586535875358853589535905359153592535935359453595535965359753598535995360053601536025360353604536055360653607536085360953610536115361253613536145361553616536175361853619536205362153622536235362453625536265362753628536295363053631536325363353634536355363653637536385363953640536415364253643536445364553646536475364853649536505365153652536535365453655536565365753658536595366053661536625366353664536655366653667536685366953670536715367253673536745367553676536775367853679536805368153682536835368453685536865368753688536895369053691536925369353694536955369653697536985369953700537015370253703537045370553706537075370853709537105371153712537135371453715537165371753718537195372053721537225372353724537255372653727537285372953730537315373253733537345373553736537375373853739537405374153742537435374453745537465374753748537495375053751537525375353754537555375653757537585375953760537615376253763537645376553766537675376853769537705377153772537735377453775537765377753778537795378053781537825378353784537855378653787537885378953790537915379253793537945379553796537975379853799538005380153802538035380453805538065380753808538095381053811538125381353814538155381653817538185381953820538215382253823538245382553826538275382853829538305383153832538335383453835538365383753838538395384053841538425384353844538455384653847538485384953850538515385253853538545385553856538575385853859538605386153862538635386453865538665386753868538695387053871538725387353874538755387653877538785387953880538815388253883538845388553886538875388853889538905389153892538935389453895538965389753898538995390053901539025390353904539055390653907539085390953910539115391253913539145391553916539175391853919539205392153922539235392453925539265392753928539295393053931539325393353934539355393653937539385393953940539415394253943539445394553946539475394853949539505395153952539535395453955539565395753958539595396053961539625396353964539655396653967539685396953970539715397253973539745397553976539775397853979539805398153982539835398453985539865398753988539895399053991539925399353994539955399653997539985399954000540015400254003540045400554006540075400854009540105401154012540135401454015540165401754018540195402054021540225402354024540255402654027540285402954030540315403254033540345403554036540375403854039540405404154042540435404454045540465404754048540495405054051540525405354054540555405654057540585405954060540615406254063540645406554066540675406854069540705407154072540735407454075540765407754078540795408054081540825408354084540855408654087540885408954090540915409254093540945409554096540975409854099541005410154102541035410454105541065410754108541095411054111541125411354114541155411654117541185411954120541215412254123541245412554126541275412854129541305413154132541335413454135541365413754138541395414054141541425414354144541455414654147541485414954150541515415254153541545415554156541575415854159541605416154162541635416454165541665416754168541695417054171541725417354174541755417654177541785417954180541815418254183541845418554186541875418854189541905419154192541935419454195541965419754198541995420054201542025420354204542055420654207542085420954210542115421254213542145421554216542175421854219542205422154222542235422454225542265422754228542295423054231542325423354234542355423654237542385423954240542415424254243542445424554246542475424854249542505425154252542535425454255542565425754258542595426054261542625426354264542655426654267542685426954270542715427254273542745427554276542775427854279542805428154282542835428454285542865428754288542895429054291542925429354294542955429654297542985429954300543015430254303543045430554306543075430854309543105431154312543135431454315543165431754318543195432054321543225432354324543255432654327543285432954330543315433254333543345433554336543375433854339543405434154342543435434454345543465434754348543495435054351543525435354354543555435654357543585435954360543615436254363543645436554366543675436854369543705437154372543735437454375543765437754378543795438054381543825438354384543855438654387543885438954390543915439254393543945439554396543975439854399544005440154402544035440454405544065440754408544095441054411544125441354414544155441654417544185441954420544215442254423544245442554426544275442854429544305443154432544335443454435544365443754438544395444054441544425444354444544455444654447544485444954450544515445254453544545445554456544575445854459544605446154462544635446454465544665446754468544695447054471544725447354474544755447654477544785447954480544815448254483544845448554486544875448854489544905449154492544935449454495544965449754498544995450054501545025450354504545055450654507545085450954510545115451254513545145451554516545175451854519545205452154522545235452454525545265452754528545295453054531545325453354534545355453654537545385453954540545415454254543545445454554546545475454854549545505455154552545535455454555545565455754558545595456054561545625456354564545655456654567545685456954570545715457254573545745457554576545775457854579545805458154582545835458454585545865458754588545895459054591545925459354594545955459654597545985459954600546015460254603546045460554606546075460854609546105461154612546135461454615546165461754618546195462054621546225462354624546255462654627546285462954630546315463254633546345463554636546375463854639546405464154642546435464454645546465464754648546495465054651546525465354654546555465654657546585465954660546615466254663546645466554666546675466854669546705467154672546735467454675546765467754678546795468054681546825468354684546855468654687546885468954690546915469254693546945469554696546975469854699547005470154702547035470454705547065470754708547095471054711547125471354714547155471654717547185471954720547215472254723547245472554726547275472854729547305473154732547335473454735547365473754738547395474054741547425474354744547455474654747547485474954750547515475254753547545475554756547575475854759547605476154762547635476454765547665476754768547695477054771547725477354774547755477654777547785477954780547815478254783547845478554786547875478854789547905479154792547935479454795547965479754798547995480054801548025480354804548055480654807548085480954810548115481254813548145481554816548175481854819548205482154822548235482454825548265482754828548295483054831548325483354834548355483654837548385483954840548415484254843548445484554846548475484854849548505485154852548535485454855548565485754858548595486054861548625486354864548655486654867548685486954870548715487254873548745487554876548775487854879548805488154882548835488454885548865488754888548895489054891548925489354894548955489654897548985489954900549015490254903549045490554906549075490854909549105491154912549135491454915549165491754918549195492054921549225492354924549255492654927549285492954930549315493254933549345493554936549375493854939549405494154942549435494454945549465494754948549495495054951549525495354954549555495654957549585495954960549615496254963549645496554966549675496854969549705497154972549735497454975549765497754978549795498054981549825498354984549855498654987549885498954990549915499254993549945499554996549975499854999550005500155002550035500455005550065500755008550095501055011550125501355014550155501655017550185501955020550215502255023550245502555026550275502855029550305503155032550335503455035550365503755038550395504055041550425504355044550455504655047550485504955050550515505255053550545505555056550575505855059550605506155062550635506455065550665506755068550695507055071550725507355074550755507655077550785507955080550815508255083550845508555086550875508855089550905509155092550935509455095550965509755098550995510055101551025510355104551055510655107551085510955110551115511255113551145511555116551175511855119551205512155122551235512455125551265512755128551295513055131551325513355134551355513655137551385513955140551415514255143551445514555146551475514855149551505515155152551535515455155551565515755158551595516055161551625516355164551655516655167551685516955170551715517255173551745517555176551775517855179551805518155182551835518455185551865518755188551895519055191551925519355194551955519655197551985519955200552015520255203552045520555206552075520855209552105521155212552135521455215552165521755218552195522055221552225522355224552255522655227552285522955230552315523255233552345523555236552375523855239552405524155242552435524455245552465524755248552495525055251552525525355254552555525655257552585525955260552615526255263552645526555266552675526855269552705527155272552735527455275552765527755278552795528055281552825528355284552855528655287552885528955290552915529255293552945529555296552975529855299553005530155302553035530455305553065530755308553095531055311553125531355314553155531655317553185531955320553215532255323553245532555326553275532855329553305533155332553335533455335553365533755338553395534055341553425534355344553455534655347553485534955350553515535255353553545535555356553575535855359553605536155362553635536455365553665536755368553695537055371553725537355374553755537655377553785537955380553815538255383553845538555386553875538855389553905539155392553935539455395553965539755398553995540055401554025540355404554055540655407554085540955410554115541255413554145541555416554175541855419554205542155422554235542455425554265542755428554295543055431554325543355434554355543655437554385543955440554415544255443554445544555446554475544855449554505545155452554535545455455554565545755458554595546055461554625546355464554655546655467554685546955470554715547255473554745547555476554775547855479554805548155482554835548455485554865548755488554895549055491554925549355494554955549655497554985549955500555015550255503555045550555506555075550855509555105551155512555135551455515555165551755518555195552055521555225552355524555255552655527555285552955530555315553255533555345553555536555375553855539555405554155542555435554455545555465554755548555495555055551555525555355554555555555655557555585555955560555615556255563555645556555566555675556855569555705557155572555735557455575555765557755578555795558055581555825558355584555855558655587555885558955590555915559255593555945559555596555975559855599556005560155602556035560455605556065560755608556095561055611556125561355614556155561655617556185561955620556215562255623556245562555626556275562855629556305563155632556335563455635556365563755638556395564055641556425564355644556455564655647556485564955650556515565255653556545565555656556575565855659556605566155662556635566455665556665566755668556695567055671556725567355674556755567655677556785567955680556815568255683556845568555686556875568855689556905569155692556935569455695556965569755698556995570055701557025570355704557055570655707557085570955710557115571255713557145571555716557175571855719557205572155722557235572455725557265572755728557295573055731557325573355734557355573655737557385573955740557415574255743557445574555746557475574855749557505575155752557535575455755557565575755758557595576055761557625576355764557655576655767557685576955770557715577255773557745577555776557775577855779557805578155782557835578455785557865578755788557895579055791557925579355794557955579655797557985579955800558015580255803558045580555806558075580855809558105581155812558135581455815558165581755818558195582055821558225582355824558255582655827558285582955830558315583255833558345583555836558375583855839558405584155842558435584455845558465584755848558495585055851558525585355854558555585655857558585585955860558615586255863558645586555866558675586855869558705587155872558735587455875558765587755878558795588055881558825588355884558855588655887558885588955890558915589255893558945589555896558975589855899559005590155902559035590455905559065590755908559095591055911559125591355914559155591655917559185591955920559215592255923559245592555926559275592855929559305593155932559335593455935559365593755938559395594055941559425594355944559455594655947559485594955950559515595255953559545595555956559575595855959559605596155962559635596455965559665596755968559695597055971559725597355974559755597655977559785597955980559815598255983559845598555986559875598855989559905599155992559935599455995559965599755998559995600056001560025600356004560055600656007560085600956010560115601256013560145601556016560175601856019560205602156022560235602456025560265602756028560295603056031560325603356034560355603656037560385603956040560415604256043560445604556046560475604856049560505605156052560535605456055560565605756058560595606056061560625606356064560655606656067560685606956070560715607256073560745607556076560775607856079560805608156082560835608456085560865608756088560895609056091560925609356094560955609656097560985609956100561015610256103561045610556106561075610856109561105611156112561135611456115561165611756118561195612056121561225612356124561255612656127561285612956130561315613256133561345613556136561375613856139561405614156142561435614456145561465614756148561495615056151561525615356154561555615656157561585615956160561615616256163561645616556166561675616856169561705617156172561735617456175561765617756178561795618056181561825618356184561855618656187561885618956190561915619256193561945619556196561975619856199562005620156202562035620456205562065620756208562095621056211562125621356214562155621656217562185621956220562215622256223562245622556226562275622856229562305623156232562335623456235562365623756238562395624056241562425624356244562455624656247562485624956250562515625256253562545625556256562575625856259562605626156262562635626456265562665626756268562695627056271562725627356274562755627656277562785627956280562815628256283562845628556286562875628856289562905629156292562935629456295562965629756298562995630056301563025630356304563055630656307563085630956310563115631256313563145631556316563175631856319563205632156322563235632456325563265632756328563295633056331563325633356334563355633656337563385633956340563415634256343563445634556346563475634856349563505635156352563535635456355563565635756358563595636056361563625636356364563655636656367563685636956370563715637256373563745637556376563775637856379563805638156382563835638456385563865638756388563895639056391563925639356394563955639656397563985639956400564015640256403564045640556406564075640856409564105641156412564135641456415564165641756418564195642056421564225642356424564255642656427564285642956430564315643256433564345643556436564375643856439564405644156442564435644456445564465644756448564495645056451564525645356454564555645656457564585645956460564615646256463564645646556466564675646856469564705647156472564735647456475564765647756478564795648056481564825648356484564855648656487564885648956490564915649256493564945649556496564975649856499565005650156502565035650456505565065650756508565095651056511565125651356514565155651656517565185651956520565215652256523565245652556526565275652856529565305653156532565335653456535565365653756538565395654056541565425654356544565455654656547565485654956550565515655256553565545655556556565575655856559565605656156562565635656456565565665656756568565695657056571565725657356574565755657656577565785657956580565815658256583565845658556586565875658856589565905659156592565935659456595565965659756598565995660056601566025660356604566055660656607566085660956610566115661256613566145661556616566175661856619566205662156622566235662456625566265662756628566295663056631566325663356634566355663656637566385663956640566415664256643566445664556646566475664856649566505665156652566535665456655566565665756658566595666056661566625666356664566655666656667566685666956670566715667256673566745667556676566775667856679566805668156682566835668456685566865668756688566895669056691566925669356694566955669656697566985669956700567015670256703567045670556706567075670856709567105671156712567135671456715567165671756718567195672056721567225672356724567255672656727567285672956730567315673256733567345673556736567375673856739567405674156742567435674456745567465674756748567495675056751567525675356754567555675656757567585675956760567615676256763567645676556766567675676856769567705677156772567735677456775567765677756778567795678056781567825678356784567855678656787567885678956790567915679256793567945679556796567975679856799568005680156802568035680456805568065680756808568095681056811568125681356814568155681656817568185681956820568215682256823568245682556826568275682856829568305683156832568335683456835568365683756838568395684056841568425684356844568455684656847568485684956850568515685256853568545685556856568575685856859568605686156862568635686456865568665686756868568695687056871568725687356874568755687656877568785687956880568815688256883568845688556886568875688856889568905689156892568935689456895568965689756898568995690056901569025690356904569055690656907569085690956910569115691256913569145691556916569175691856919569205692156922569235692456925569265692756928569295693056931569325693356934569355693656937569385693956940569415694256943569445694556946569475694856949569505695156952569535695456955569565695756958569595696056961569625696356964569655696656967569685696956970569715697256973569745697556976569775697856979569805698156982569835698456985569865698756988569895699056991569925699356994569955699656997569985699957000570015700257003570045700557006570075700857009570105701157012570135701457015570165701757018570195702057021570225702357024570255702657027570285702957030570315703257033570345703557036570375703857039570405704157042570435704457045570465704757048570495705057051570525705357054570555705657057570585705957060570615706257063570645706557066570675706857069570705707157072570735707457075570765707757078570795708057081570825708357084570855708657087570885708957090570915709257093570945709557096570975709857099571005710157102571035710457105571065710757108571095711057111571125711357114571155711657117571185711957120571215712257123571245712557126571275712857129571305713157132571335713457135571365713757138571395714057141571425714357144571455714657147571485714957150571515715257153571545715557156571575715857159571605716157162571635716457165571665716757168571695717057171571725717357174571755717657177571785717957180571815718257183571845718557186571875718857189571905719157192571935719457195571965719757198571995720057201572025720357204572055720657207572085720957210572115721257213572145721557216572175721857219572205722157222572235722457225572265722757228572295723057231572325723357234572355723657237572385723957240572415724257243572445724557246572475724857249572505725157252572535725457255572565725757258572595726057261572625726357264572655726657267572685726957270572715727257273572745727557276572775727857279572805728157282572835728457285572865728757288572895729057291572925729357294572955729657297572985729957300573015730257303573045730557306573075730857309573105731157312573135731457315573165731757318573195732057321573225732357324573255732657327573285732957330573315733257333573345733557336573375733857339573405734157342573435734457345573465734757348573495735057351573525735357354573555735657357573585735957360573615736257363573645736557366573675736857369573705737157372573735737457375573765737757378573795738057381573825738357384573855738657387573885738957390573915739257393573945739557396573975739857399574005740157402574035740457405574065740757408574095741057411574125741357414574155741657417574185741957420574215742257423574245742557426574275742857429574305743157432574335743457435574365743757438574395744057441574425744357444574455744657447574485744957450574515745257453574545745557456574575745857459574605746157462574635746457465574665746757468574695747057471574725747357474574755747657477574785747957480574815748257483574845748557486574875748857489574905749157492574935749457495574965749757498574995750057501575025750357504575055750657507575085750957510575115751257513575145751557516575175751857519575205752157522575235752457525575265752757528575295753057531575325753357534575355753657537575385753957540575415754257543575445754557546575475754857549575505755157552575535755457555575565755757558575595756057561575625756357564575655756657567575685756957570575715757257573575745757557576575775757857579575805758157582575835758457585575865758757588575895759057591575925759357594575955759657597575985759957600576015760257603576045760557606576075760857609576105761157612576135761457615576165761757618576195762057621576225762357624576255762657627576285762957630576315763257633576345763557636576375763857639576405764157642576435764457645576465764757648576495765057651576525765357654576555765657657576585765957660576615766257663576645766557666576675766857669576705767157672576735767457675576765767757678576795768057681576825768357684576855768657687576885768957690576915769257693576945769557696576975769857699577005770157702577035770457705577065770757708577095771057711577125771357714577155771657717577185771957720577215772257723577245772557726577275772857729577305773157732577335773457735577365773757738577395774057741577425774357744577455774657747577485774957750577515775257753577545775557756577575775857759577605776157762577635776457765577665776757768577695777057771577725777357774577755777657777577785777957780577815778257783577845778557786577875778857789577905779157792577935779457795577965779757798577995780057801578025780357804578055780657807578085780957810578115781257813578145781557816578175781857819578205782157822578235782457825578265782757828578295783057831578325783357834578355783657837578385783957840578415784257843578445784557846578475784857849578505785157852578535785457855578565785757858578595786057861578625786357864578655786657867578685786957870578715787257873578745787557876578775787857879578805788157882578835788457885578865788757888578895789057891578925789357894578955789657897578985789957900579015790257903579045790557906579075790857909579105791157912579135791457915579165791757918579195792057921579225792357924579255792657927579285792957930579315793257933579345793557936579375793857939579405794157942579435794457945579465794757948579495795057951579525795357954579555795657957579585795957960579615796257963579645796557966579675796857969579705797157972579735797457975579765797757978579795798057981579825798357984579855798657987579885798957990579915799257993579945799557996579975799857999580005800158002580035800458005580065800758008580095801058011580125801358014580155801658017580185801958020580215802258023580245802558026580275802858029580305803158032580335803458035580365803758038580395804058041580425804358044580455804658047580485804958050580515805258053580545805558056580575805858059580605806158062580635806458065580665806758068580695807058071580725807358074580755807658077580785807958080580815808258083580845808558086580875808858089580905809158092580935809458095580965809758098580995810058101581025810358104581055810658107581085810958110581115811258113581145811558116581175811858119581205812158122581235812458125581265812758128581295813058131581325813358134581355813658137581385813958140581415814258143581445814558146581475814858149581505815158152581535815458155581565815758158581595816058161581625816358164581655816658167581685816958170581715817258173581745817558176581775817858179581805818158182581835818458185581865818758188581895819058191581925819358194581955819658197581985819958200582015820258203582045820558206582075820858209582105821158212582135821458215582165821758218582195822058221582225822358224582255822658227582285822958230582315823258233582345823558236582375823858239582405824158242582435824458245582465824758248582495825058251582525825358254582555825658257582585825958260582615826258263582645826558266582675826858269582705827158272582735827458275582765827758278582795828058281582825828358284582855828658287582885828958290582915829258293582945829558296582975829858299583005830158302583035830458305583065830758308583095831058311583125831358314583155831658317583185831958320583215832258323583245832558326583275832858329583305833158332583335833458335583365833758338583395834058341583425834358344583455834658347583485834958350583515835258353583545835558356583575835858359583605836158362583635836458365583665836758368583695837058371583725837358374583755837658377583785837958380583815838258383583845838558386583875838858389583905839158392583935839458395583965839758398583995840058401584025840358404584055840658407584085840958410584115841258413584145841558416584175841858419584205842158422584235842458425584265842758428584295843058431584325843358434584355843658437584385843958440584415844258443584445844558446584475844858449584505845158452584535845458455584565845758458584595846058461584625846358464584655846658467584685846958470584715847258473584745847558476584775847858479584805848158482584835848458485584865848758488584895849058491584925849358494584955849658497584985849958500585015850258503585045850558506585075850858509585105851158512585135851458515585165851758518585195852058521585225852358524585255852658527585285852958530585315853258533585345853558536585375853858539585405854158542585435854458545585465854758548585495855058551585525855358554585555855658557585585855958560585615856258563585645856558566585675856858569585705857158572585735857458575585765857758578585795858058581585825858358584585855858658587585885858958590585915859258593585945859558596585975859858599586005860158602586035860458605586065860758608586095861058611586125861358614586155861658617586185861958620586215862258623586245862558626586275862858629586305863158632586335863458635586365863758638586395864058641586425864358644586455864658647586485864958650586515865258653586545865558656586575865858659586605866158662586635866458665586665866758668586695867058671586725867358674586755867658677586785867958680586815868258683586845868558686586875868858689586905869158692586935869458695586965869758698586995870058701587025870358704587055870658707587085870958710587115871258713587145871558716587175871858719587205872158722587235872458725587265872758728587295873058731587325873358734587355873658737587385873958740587415874258743587445874558746587475874858749587505875158752587535875458755587565875758758587595876058761587625876358764587655876658767587685876958770587715877258773587745877558776587775877858779587805878158782587835878458785587865878758788587895879058791587925879358794587955879658797587985879958800588015880258803588045880558806588075880858809588105881158812588135881458815588165881758818588195882058821588225882358824588255882658827588285882958830588315883258833588345883558836588375883858839588405884158842588435884458845588465884758848588495885058851588525885358854588555885658857588585885958860588615886258863588645886558866588675886858869588705887158872588735887458875588765887758878588795888058881588825888358884588855888658887588885888958890588915889258893588945889558896588975889858899589005890158902589035890458905589065890758908589095891058911589125891358914589155891658917589185891958920589215892258923589245892558926589275892858929589305893158932589335893458935589365893758938589395894058941589425894358944589455894658947589485894958950589515895258953589545895558956589575895858959589605896158962589635896458965589665896758968589695897058971589725897358974589755897658977589785897958980589815898258983589845898558986589875898858989589905899158992589935899458995589965899758998589995900059001590025900359004590055900659007590085900959010590115901259013590145901559016590175901859019590205902159022590235902459025590265902759028590295903059031590325903359034590355903659037590385903959040590415904259043590445904559046590475904859049590505905159052590535905459055590565905759058590595906059061590625906359064590655906659067590685906959070590715907259073590745907559076590775907859079590805908159082590835908459085590865908759088590895909059091590925909359094590955909659097590985909959100591015910259103591045910559106591075910859109591105911159112591135911459115591165911759118591195912059121591225912359124591255912659127591285912959130591315913259133591345913559136591375913859139591405914159142591435914459145591465914759148591495915059151591525915359154591555915659157591585915959160591615916259163591645916559166591675916859169591705917159172591735917459175591765917759178591795918059181591825918359184591855918659187591885918959190591915919259193591945919559196591975919859199592005920159202592035920459205592065920759208592095921059211592125921359214592155921659217592185921959220592215922259223592245922559226592275922859229592305923159232592335923459235592365923759238592395924059241592425924359244592455924659247592485924959250592515925259253592545925559256592575925859259592605926159262592635926459265592665926759268592695927059271592725927359274592755927659277592785927959280592815928259283592845928559286592875928859289592905929159292592935929459295592965929759298592995930059301593025930359304593055930659307593085930959310593115931259313593145931559316593175931859319593205932159322593235932459325593265932759328593295933059331593325933359334593355933659337593385933959340593415934259343593445934559346593475934859349593505935159352593535935459355593565935759358593595936059361593625936359364593655936659367593685936959370593715937259373593745937559376593775937859379593805938159382593835938459385593865938759388593895939059391593925939359394593955939659397593985939959400594015940259403594045940559406594075940859409594105941159412594135941459415594165941759418594195942059421594225942359424594255942659427594285942959430594315943259433594345943559436594375943859439594405944159442594435944459445594465944759448594495945059451594525945359454594555945659457594585945959460594615946259463594645946559466594675946859469594705947159472594735947459475594765947759478594795948059481594825948359484594855948659487594885948959490594915949259493594945949559496594975949859499595005950159502595035950459505595065950759508595095951059511595125951359514595155951659517595185951959520595215952259523595245952559526595275952859529595305953159532595335953459535595365953759538595395954059541595425954359544595455954659547595485954959550595515955259553595545955559556595575955859559595605956159562595635956459565595665956759568595695957059571595725957359574595755957659577595785957959580595815958259583595845958559586595875958859589595905959159592595935959459595595965959759598595995960059601596025960359604596055960659607596085960959610596115961259613596145961559616596175961859619596205962159622596235962459625596265962759628596295963059631596325963359634596355963659637596385963959640596415964259643596445964559646596475964859649596505965159652596535965459655596565965759658596595966059661596625966359664596655966659667596685966959670596715967259673596745967559676596775967859679596805968159682596835968459685596865968759688596895969059691596925969359694596955969659697596985969959700597015970259703597045970559706597075970859709597105971159712597135971459715597165971759718597195972059721597225972359724597255972659727597285972959730597315973259733597345973559736597375973859739597405974159742597435974459745597465974759748597495975059751597525975359754597555975659757597585975959760597615976259763597645976559766597675976859769597705977159772597735977459775597765977759778597795978059781597825978359784597855978659787597885978959790597915979259793597945979559796597975979859799598005980159802598035980459805598065980759808598095981059811598125981359814598155981659817598185981959820598215982259823598245982559826598275982859829598305983159832598335983459835598365983759838598395984059841598425984359844598455984659847598485984959850598515985259853598545985559856598575985859859598605986159862598635986459865598665986759868598695987059871598725987359874598755987659877598785987959880598815988259883598845988559886598875988859889598905989159892598935989459895598965989759898598995990059901599025990359904599055990659907599085990959910599115991259913599145991559916599175991859919599205992159922599235992459925599265992759928599295993059931599325993359934599355993659937599385993959940599415994259943599445994559946599475994859949599505995159952599535995459955599565995759958599595996059961599625996359964599655996659967599685996959970599715997259973599745997559976599775997859979599805998159982599835998459985599865998759988599895999059991599925999359994599955999659997599985999960000600016000260003600046000560006600076000860009600106001160012600136001460015600166001760018600196002060021600226002360024600256002660027600286002960030600316003260033600346003560036600376003860039600406004160042600436004460045600466004760048600496005060051600526005360054600556005660057600586005960060600616006260063600646006560066600676006860069600706007160072600736007460075600766007760078600796008060081600826008360084600856008660087600886008960090600916009260093600946009560096600976009860099601006010160102601036010460105601066010760108601096011060111601126011360114601156011660117601186011960120601216012260123601246012560126601276012860129601306013160132601336013460135601366013760138601396014060141601426014360144601456014660147601486014960150601516015260153601546015560156601576015860159601606016160162601636016460165601666016760168601696017060171601726017360174601756017660177601786017960180601816018260183601846018560186601876018860189601906019160192601936019460195601966019760198601996020060201602026020360204602056020660207602086020960210602116021260213602146021560216602176021860219602206022160222602236022460225602266022760228602296023060231602326023360234602356023660237602386023960240602416024260243602446024560246602476024860249602506025160252602536025460255602566025760258602596026060261602626026360264602656026660267602686026960270602716027260273602746027560276602776027860279602806028160282602836028460285602866028760288602896029060291602926029360294602956029660297602986029960300603016030260303603046030560306603076030860309603106031160312603136031460315603166031760318603196032060321603226032360324603256032660327603286032960330603316033260333603346033560336603376033860339603406034160342603436034460345603466034760348603496035060351603526035360354603556035660357603586035960360603616036260363603646036560366603676036860369603706037160372603736037460375603766037760378603796038060381603826038360384603856038660387603886038960390603916039260393603946039560396603976039860399604006040160402604036040460405604066040760408604096041060411604126041360414604156041660417604186041960420604216042260423604246042560426604276042860429604306043160432604336043460435604366043760438604396044060441604426044360444604456044660447604486044960450604516045260453604546045560456604576045860459604606046160462604636046460465604666046760468604696047060471604726047360474604756047660477604786047960480604816048260483604846048560486604876048860489604906049160492604936049460495604966049760498604996050060501605026050360504605056050660507605086050960510605116051260513605146051560516605176051860519605206052160522605236052460525605266052760528605296053060531605326053360534605356053660537605386053960540605416054260543605446054560546605476054860549605506055160552605536055460555605566055760558605596056060561605626056360564605656056660567605686056960570605716057260573605746057560576605776057860579605806058160582605836058460585605866058760588605896059060591605926059360594605956059660597605986059960600606016060260603606046060560606606076060860609606106061160612606136061460615606166061760618606196062060621606226062360624606256062660627606286062960630606316063260633606346063560636606376063860639606406064160642606436064460645606466064760648606496065060651606526065360654606556065660657606586065960660606616066260663606646066560666606676066860669606706067160672606736067460675606766067760678606796068060681606826068360684606856068660687606886068960690606916069260693606946069560696606976069860699607006070160702607036070460705607066070760708607096071060711607126071360714607156071660717607186071960720607216072260723607246072560726607276072860729607306073160732607336073460735607366073760738607396074060741607426074360744607456074660747607486074960750607516075260753607546075560756607576075860759607606076160762607636076460765607666076760768607696077060771607726077360774607756077660777607786077960780607816078260783607846078560786607876078860789607906079160792607936079460795607966079760798607996080060801608026080360804608056080660807608086080960810608116081260813608146081560816608176081860819608206082160822608236082460825608266082760828608296083060831608326083360834608356083660837608386083960840608416084260843608446084560846608476084860849608506085160852608536085460855608566085760858608596086060861608626086360864608656086660867608686086960870608716087260873608746087560876608776087860879608806088160882608836088460885608866088760888608896089060891608926089360894608956089660897608986089960900609016090260903609046090560906609076090860909609106091160912609136091460915609166091760918609196092060921609226092360924609256092660927609286092960930609316093260933609346093560936609376093860939609406094160942609436094460945609466094760948609496095060951609526095360954609556095660957609586095960960609616096260963609646096560966609676096860969609706097160972609736097460975609766097760978609796098060981609826098360984609856098660987609886098960990609916099260993609946099560996609976099860999610006100161002610036100461005610066100761008610096101061011610126101361014610156101661017610186101961020610216102261023610246102561026610276102861029610306103161032610336103461035610366103761038610396104061041610426104361044610456104661047610486104961050610516105261053610546105561056610576105861059610606106161062610636106461065610666106761068610696107061071610726107361074610756107661077610786107961080610816108261083610846108561086610876108861089610906109161092610936109461095610966109761098610996110061101611026110361104611056110661107611086110961110611116111261113611146111561116611176111861119611206112161122611236112461125611266112761128611296113061131611326113361134611356113661137611386113961140611416114261143611446114561146611476114861149611506115161152611536115461155611566115761158611596116061161611626116361164611656116661167611686116961170611716117261173611746117561176611776117861179611806118161182611836118461185611866118761188611896119061191611926119361194611956119661197611986119961200612016120261203612046120561206612076120861209612106121161212612136121461215612166121761218612196122061221612226122361224612256122661227612286122961230612316123261233612346123561236612376123861239612406124161242612436124461245612466124761248612496125061251612526125361254612556125661257612586125961260612616126261263612646126561266612676126861269612706127161272612736127461275612766127761278612796128061281612826128361284612856128661287612886128961290612916129261293612946129561296612976129861299613006130161302613036130461305613066130761308613096131061311613126131361314613156131661317613186131961320613216132261323613246132561326613276132861329613306133161332613336133461335613366133761338613396134061341613426134361344613456134661347613486134961350613516135261353613546135561356613576135861359613606136161362613636136461365613666136761368613696137061371613726137361374613756137661377613786137961380613816138261383613846138561386613876138861389613906139161392613936139461395613966139761398613996140061401614026140361404614056140661407614086140961410614116141261413614146141561416614176141861419614206142161422614236142461425614266142761428614296143061431614326143361434614356143661437614386143961440614416144261443614446144561446614476144861449614506145161452614536145461455614566145761458614596146061461614626146361464614656146661467614686146961470614716147261473614746147561476614776147861479614806148161482614836148461485614866148761488614896149061491614926149361494614956149661497614986149961500615016150261503615046150561506615076150861509615106151161512615136151461515615166151761518615196152061521615226152361524615256152661527615286152961530615316153261533615346153561536615376153861539615406154161542615436154461545615466154761548615496155061551615526155361554615556155661557615586155961560615616156261563615646156561566615676156861569615706157161572615736157461575615766157761578615796158061581615826158361584615856158661587615886158961590615916159261593615946159561596615976159861599616006160161602616036160461605616066160761608616096161061611616126161361614616156161661617616186161961620616216162261623616246162561626616276162861629616306163161632616336163461635616366163761638616396164061641616426164361644616456164661647616486164961650616516165261653616546165561656616576165861659616606166161662616636166461665616666166761668616696167061671616726167361674616756167661677616786167961680616816168261683616846168561686616876168861689616906169161692616936169461695616966169761698616996170061701617026170361704617056170661707617086170961710617116171261713617146171561716617176171861719617206172161722617236172461725617266172761728617296173061731617326173361734617356173661737617386173961740617416174261743617446174561746617476174861749617506175161752617536175461755617566175761758617596176061761617626176361764617656176661767617686176961770617716177261773617746177561776617776177861779617806178161782617836178461785617866178761788617896179061791617926179361794617956179661797617986179961800618016180261803618046180561806618076180861809618106181161812618136181461815618166181761818618196182061821618226182361824618256182661827618286182961830618316183261833618346183561836618376183861839618406184161842618436184461845618466184761848618496185061851618526185361854618556185661857618586185961860618616186261863618646186561866618676186861869618706187161872618736187461875618766187761878618796188061881618826188361884618856188661887618886188961890618916189261893618946189561896618976189861899619006190161902619036190461905619066190761908619096191061911619126191361914619156191661917619186191961920619216192261923619246192561926619276192861929619306193161932619336193461935619366193761938619396194061941619426194361944619456194661947619486194961950619516195261953619546195561956619576195861959619606196161962619636196461965619666196761968619696197061971619726197361974619756197661977619786197961980619816198261983619846198561986619876198861989619906199161992619936199461995619966199761998619996200062001620026200362004620056200662007620086200962010620116201262013620146201562016620176201862019620206202162022620236202462025620266202762028620296203062031620326203362034620356203662037620386203962040620416204262043620446204562046620476204862049620506205162052620536205462055620566205762058620596206062061620626206362064620656206662067620686206962070620716207262073620746207562076620776207862079620806208162082620836208462085620866208762088620896209062091620926209362094620956209662097620986209962100621016210262103621046210562106621076210862109621106211162112621136211462115621166211762118621196212062121621226212362124621256212662127621286212962130621316213262133621346213562136621376213862139621406214162142621436214462145621466214762148621496215062151621526215362154621556215662157621586215962160621616216262163621646216562166621676216862169621706217162172621736217462175621766217762178621796218062181621826218362184621856218662187621886218962190621916219262193621946219562196621976219862199622006220162202622036220462205622066220762208622096221062211622126221362214622156221662217622186221962220622216222262223622246222562226622276222862229622306223162232622336223462235622366223762238622396224062241622426224362244622456224662247622486224962250622516225262253622546225562256622576225862259622606226162262622636226462265622666226762268622696227062271622726227362274622756227662277622786227962280622816228262283622846228562286622876228862289622906229162292622936229462295622966229762298622996230062301623026230362304623056230662307623086230962310623116231262313623146231562316623176231862319623206232162322623236232462325623266232762328623296233062331623326233362334623356233662337623386233962340623416234262343623446234562346623476234862349623506235162352623536235462355623566235762358623596236062361623626236362364623656236662367623686236962370623716237262373623746237562376623776237862379623806238162382623836238462385623866238762388623896239062391623926239362394623956239662397623986239962400624016240262403624046240562406624076240862409624106241162412624136241462415624166241762418624196242062421624226242362424624256242662427624286242962430624316243262433624346243562436624376243862439624406244162442624436244462445624466244762448624496245062451624526245362454624556245662457624586245962460624616246262463624646246562466624676246862469624706247162472624736247462475624766247762478624796248062481624826248362484624856248662487624886248962490624916249262493624946249562496624976249862499625006250162502625036250462505625066250762508625096251062511625126251362514625156251662517625186251962520625216252262523625246252562526625276252862529625306253162532625336253462535625366253762538625396254062541625426254362544625456254662547625486254962550625516255262553625546255562556625576255862559625606256162562625636256462565625666256762568625696257062571625726257362574625756257662577625786257962580625816258262583625846258562586625876258862589625906259162592625936259462595625966259762598625996260062601626026260362604626056260662607626086260962610626116261262613626146261562616626176261862619626206262162622626236262462625626266262762628626296263062631626326263362634626356263662637626386263962640626416264262643626446264562646626476264862649626506265162652626536265462655626566265762658626596266062661626626266362664626656266662667626686266962670626716267262673626746267562676626776267862679626806268162682626836268462685626866268762688626896269062691626926269362694626956269662697626986269962700627016270262703627046270562706627076270862709627106271162712627136271462715627166271762718627196272062721627226272362724627256272662727627286272962730627316273262733627346273562736627376273862739627406274162742627436274462745627466274762748627496275062751627526275362754627556275662757627586275962760627616276262763627646276562766627676276862769627706277162772627736277462775627766277762778627796278062781627826278362784627856278662787627886278962790627916279262793627946279562796627976279862799628006280162802628036280462805628066280762808628096281062811628126281362814628156281662817628186281962820628216282262823628246282562826628276282862829628306283162832628336283462835628366283762838628396284062841628426284362844628456284662847628486284962850628516285262853628546285562856628576285862859628606286162862628636286462865628666286762868628696287062871628726287362874628756287662877628786287962880628816288262883628846288562886628876288862889628906289162892628936289462895628966289762898628996290062901629026290362904629056290662907629086290962910629116291262913629146291562916629176291862919629206292162922629236292462925629266292762928629296293062931629326293362934629356293662937629386293962940629416294262943629446294562946629476294862949629506295162952629536295462955629566295762958629596296062961629626296362964629656296662967629686296962970629716297262973629746297562976629776297862979629806298162982629836298462985629866298762988629896299062991629926299362994629956299662997629986299963000630016300263003630046300563006630076300863009630106301163012630136301463015630166301763018630196302063021630226302363024630256302663027630286302963030630316303263033630346303563036630376303863039630406304163042630436304463045630466304763048630496305063051630526305363054630556305663057630586305963060630616306263063630646306563066630676306863069630706307163072630736307463075630766307763078630796308063081630826308363084630856308663087630886308963090630916309263093630946309563096630976309863099631006310163102631036310463105631066310763108631096311063111631126311363114631156311663117631186311963120631216312263123631246312563126631276312863129631306313163132631336313463135631366313763138631396314063141631426314363144631456314663147631486314963150631516315263153631546315563156631576315863159631606316163162631636316463165631666316763168631696317063171631726317363174631756317663177631786317963180631816318263183631846318563186631876318863189631906319163192631936319463195631966319763198631996320063201632026320363204632056320663207632086320963210632116321263213632146321563216632176321863219632206322163222632236322463225632266322763228632296323063231632326323363234632356323663237632386323963240632416324263243632446324563246632476324863249632506325163252632536325463255632566325763258632596326063261632626326363264632656326663267632686326963270632716327263273632746327563276632776327863279632806328163282632836328463285632866328763288632896329063291632926329363294632956329663297632986329963300633016330263303633046330563306633076330863309633106331163312633136331463315633166331763318633196332063321633226332363324633256332663327633286332963330633316333263333633346333563336633376333863339633406334163342633436334463345633466334763348633496335063351633526335363354633556335663357633586335963360633616336263363633646336563366633676336863369633706337163372633736337463375633766337763378633796338063381633826338363384633856338663387633886338963390633916339263393633946339563396633976339863399634006340163402634036340463405634066340763408634096341063411634126341363414634156341663417634186341963420634216342263423634246342563426634276342863429634306343163432634336343463435634366343763438634396344063441634426344363444634456344663447634486344963450634516345263453634546345563456634576345863459634606346163462634636346463465634666346763468634696347063471634726347363474634756347663477634786347963480634816348263483634846348563486634876348863489634906349163492634936349463495634966349763498634996350063501635026350363504635056350663507635086350963510635116351263513635146351563516635176351863519635206352163522635236352463525635266352763528635296353063531635326353363534635356353663537635386353963540635416354263543635446354563546635476354863549635506355163552635536355463555635566355763558635596356063561635626356363564635656356663567635686356963570635716357263573635746357563576635776357863579635806358163582635836358463585635866358763588635896359063591635926359363594635956359663597635986359963600636016360263603636046360563606636076360863609636106361163612636136361463615636166361763618636196362063621636226362363624636256362663627636286362963630636316363263633636346363563636636376363863639636406364163642636436364463645636466364763648636496365063651636526365363654636556365663657636586365963660636616366263663636646366563666636676366863669636706367163672636736367463675636766367763678636796368063681636826368363684636856368663687636886368963690636916369263693636946369563696636976369863699637006370163702637036370463705637066370763708637096371063711637126371363714637156371663717637186371963720637216372263723637246372563726637276372863729637306373163732637336373463735637366373763738637396374063741637426374363744637456374663747637486374963750637516375263753637546375563756637576375863759637606376163762637636376463765637666376763768637696377063771637726377363774637756377663777637786377963780637816378263783637846378563786637876378863789637906379163792637936379463795637966379763798637996380063801638026380363804638056380663807638086380963810638116381263813638146381563816638176381863819638206382163822638236382463825638266382763828638296383063831638326383363834638356383663837638386383963840638416384263843638446384563846638476384863849638506385163852638536385463855638566385763858638596386063861638626386363864638656386663867638686386963870638716387263873638746387563876638776387863879638806388163882638836388463885638866388763888638896389063891638926389363894638956389663897638986389963900639016390263903639046390563906639076390863909639106391163912639136391463915639166391763918639196392063921639226392363924639256392663927639286392963930639316393263933639346393563936639376393863939639406394163942639436394463945639466394763948639496395063951639526395363954639556395663957639586395963960639616396263963639646396563966639676396863969639706397163972639736397463975639766397763978639796398063981639826398363984639856398663987639886398963990639916399263993639946399563996639976399863999640006400164002640036400464005640066400764008640096401064011640126401364014640156401664017640186401964020640216402264023640246402564026640276402864029640306403164032640336403464035640366403764038640396404064041640426404364044640456404664047640486404964050640516405264053640546405564056640576405864059640606406164062640636406464065640666406764068640696407064071640726407364074640756407664077640786407964080640816408264083640846408564086640876408864089640906409164092640936409464095640966409764098640996410064101641026410364104641056410664107641086410964110641116411264113641146411564116641176411864119641206412164122641236412464125641266412764128641296413064131641326413364134641356413664137641386413964140641416414264143641446414564146641476414864149641506415164152641536415464155641566415764158641596416064161641626416364164641656416664167641686416964170641716417264173641746417564176641776417864179641806418164182641836418464185641866418764188641896419064191641926419364194641956419664197641986419964200642016420264203642046420564206642076420864209642106421164212642136421464215642166421764218642196422064221642226422364224642256422664227642286422964230642316423264233642346423564236642376423864239642406424164242642436424464245642466424764248642496425064251642526425364254642556425664257642586425964260642616426264263642646426564266642676426864269642706427164272642736427464275642766427764278642796428064281642826428364284642856428664287642886428964290642916429264293642946429564296642976429864299643006430164302643036430464305643066430764308643096431064311643126431364314643156431664317643186431964320643216432264323643246432564326643276432864329643306433164332643336433464335643366433764338643396434064341643426434364344643456434664347643486434964350643516435264353643546435564356643576435864359643606436164362643636436464365643666436764368643696437064371643726437364374643756437664377643786437964380643816438264383643846438564386643876438864389643906439164392643936439464395643966439764398643996440064401644026440364404644056440664407644086440964410644116441264413644146441564416644176441864419644206442164422644236442464425644266442764428644296443064431644326443364434644356443664437644386443964440644416444264443644446444564446644476444864449644506445164452644536445464455644566445764458644596446064461644626446364464644656446664467644686446964470644716447264473644746447564476644776447864479644806448164482644836448464485644866448764488644896449064491644926449364494644956449664497644986449964500645016450264503645046450564506645076450864509645106451164512645136451464515645166451764518645196452064521645226452364524645256452664527645286452964530645316453264533645346453564536645376453864539645406454164542645436454464545645466454764548645496455064551645526455364554645556455664557645586455964560645616456264563645646456564566645676456864569645706457164572645736457464575645766457764578645796458064581645826458364584645856458664587645886458964590645916459264593645946459564596645976459864599646006460164602646036460464605646066460764608646096461064611646126461364614646156461664617646186461964620646216462264623646246462564626646276462864629646306463164632646336463464635646366463764638646396464064641646426464364644646456464664647646486464964650646516465264653646546465564656646576465864659646606466164662646636466464665646666466764668646696467064671646726467364674646756467664677646786467964680646816468264683646846468564686646876468864689646906469164692646936469464695646966469764698646996470064701647026470364704647056470664707647086470964710647116471264713647146471564716647176471864719647206472164722647236472464725647266472764728647296473064731647326473364734647356473664737647386473964740647416474264743647446474564746647476474864749647506475164752647536475464755647566475764758647596476064761647626476364764647656476664767647686476964770647716477264773647746477564776647776477864779647806478164782647836478464785647866478764788647896479064791647926479364794647956479664797647986479964800648016480264803648046480564806648076480864809648106481164812648136481464815648166481764818648196482064821648226482364824648256482664827648286482964830648316483264833648346483564836648376483864839648406484164842648436484464845648466484764848648496485064851648526485364854648556485664857648586485964860648616486264863648646486564866648676486864869648706487164872648736487464875648766487764878648796488064881648826488364884648856488664887648886488964890648916489264893648946489564896648976489864899649006490164902649036490464905649066490764908649096491064911649126491364914649156491664917649186491964920649216492264923649246492564926649276492864929649306493164932649336493464935649366493764938649396494064941649426494364944649456494664947649486494964950649516495264953649546495564956649576495864959649606496164962649636496464965649666496764968649696497064971649726497364974649756497664977649786497964980649816498264983649846498564986649876498864989649906499164992649936499464995649966499764998649996500065001650026500365004650056500665007650086500965010650116501265013650146501565016650176501865019650206502165022650236502465025650266502765028650296503065031650326503365034650356503665037650386503965040650416504265043650446504565046650476504865049650506505165052650536505465055650566505765058650596506065061650626506365064650656506665067650686506965070650716507265073650746507565076650776507865079650806508165082650836508465085650866508765088650896509065091650926509365094650956509665097650986509965100651016510265103651046510565106651076510865109651106511165112651136511465115651166511765118651196512065121651226512365124651256512665127651286512965130651316513265133651346513565136651376513865139651406514165142651436514465145651466514765148651496515065151651526515365154651556515665157651586515965160651616516265163651646516565166651676516865169651706517165172651736517465175651766517765178651796518065181651826518365184651856518665187651886518965190651916519265193651946519565196651976519865199652006520165202652036520465205652066520765208652096521065211652126521365214652156521665217652186521965220652216522265223652246522565226652276522865229652306523165232652336523465235652366523765238652396524065241652426524365244652456524665247652486524965250652516525265253652546525565256652576525865259652606526165262652636526465265652666526765268652696527065271652726527365274652756527665277652786527965280652816528265283652846528565286652876528865289652906529165292652936529465295652966529765298652996530065301653026530365304653056530665307653086530965310653116531265313653146531565316653176531865319653206532165322653236532465325653266532765328653296533065331653326533365334653356533665337653386533965340653416534265343653446534565346653476534865349653506535165352653536535465355653566535765358653596536065361653626536365364653656536665367653686536965370653716537265373653746537565376653776537865379653806538165382653836538465385653866538765388653896539065391653926539365394653956539665397653986539965400654016540265403654046540565406654076540865409654106541165412654136541465415654166541765418654196542065421654226542365424654256542665427654286542965430654316543265433654346543565436654376543865439654406544165442654436544465445654466544765448654496545065451654526545365454654556545665457654586545965460654616546265463654646546565466654676546865469654706547165472654736547465475654766547765478654796548065481654826548365484654856548665487654886548965490654916549265493654946549565496654976549865499655006550165502655036550465505655066550765508655096551065511655126551365514655156551665517655186551965520655216552265523655246552565526655276552865529655306553165532655336553465535655366553765538655396554065541655426554365544655456554665547655486554965550655516555265553655546555565556655576555865559655606556165562655636556465565655666556765568655696557065571655726557365574655756557665577655786557965580655816558265583655846558565586655876558865589655906559165592655936559465595655966559765598655996560065601656026560365604656056560665607656086560965610656116561265613656146561565616656176561865619656206562165622656236562465625656266562765628656296563065631656326563365634656356563665637656386563965640656416564265643656446564565646656476564865649656506565165652656536565465655656566565765658656596566065661656626566365664656656566665667656686566965670656716567265673656746567565676656776567865679656806568165682656836568465685656866568765688656896569065691656926569365694656956569665697656986569965700657016570265703657046570565706657076570865709657106571165712657136571465715657166571765718657196572065721657226572365724657256572665727657286572965730657316573265733657346573565736657376573865739657406574165742657436574465745657466574765748657496575065751657526575365754657556575665757657586575965760657616576265763657646576565766657676576865769657706577165772657736577465775657766577765778657796578065781657826578365784657856578665787657886578965790657916579265793657946579565796657976579865799658006580165802658036580465805658066580765808658096581065811658126581365814658156581665817658186581965820658216582265823658246582565826658276582865829658306583165832658336583465835658366583765838658396584065841658426584365844658456584665847658486584965850658516585265853658546585565856658576585865859658606586165862658636586465865658666586765868658696587065871658726587365874658756587665877658786587965880658816588265883658846588565886658876588865889658906589165892658936589465895658966589765898658996590065901659026590365904659056590665907659086590965910659116591265913659146591565916659176591865919659206592165922659236592465925659266592765928659296593065931659326593365934659356593665937659386593965940659416594265943659446594565946659476594865949659506595165952659536595465955659566595765958659596596065961659626596365964659656596665967659686596965970659716597265973659746597565976659776597865979659806598165982659836598465985659866598765988659896599065991659926599365994659956599665997659986599966000660016600266003660046600566006660076600866009660106601166012660136601466015660166601766018660196602066021660226602366024660256602666027660286602966030660316603266033660346603566036660376603866039660406604166042660436604466045660466604766048660496605066051660526605366054660556605666057660586605966060660616606266063660646606566066660676606866069660706607166072660736607466075660766607766078660796608066081660826608366084660856608666087660886608966090660916609266093660946609566096660976609866099661006610166102661036610466105661066610766108661096611066111661126611366114661156611666117661186611966120661216612266123661246612566126661276612866129661306613166132661336613466135661366613766138661396614066141661426614366144661456614666147661486614966150661516615266153661546615566156661576615866159661606616166162661636616466165661666616766168661696617066171661726617366174661756617666177661786617966180661816618266183661846618566186661876618866189661906619166192661936619466195661966619766198661996620066201662026620366204662056620666207662086620966210662116621266213662146621566216662176621866219662206622166222662236622466225662266622766228662296623066231662326623366234662356623666237662386623966240662416624266243662446624566246662476624866249662506625166252662536625466255662566625766258662596626066261662626626366264662656626666267662686626966270662716627266273662746627566276662776627866279662806628166282662836628466285662866628766288662896629066291662926629366294662956629666297662986629966300663016630266303663046630566306663076630866309663106631166312663136631466315663166631766318663196632066321663226632366324663256632666327663286632966330663316633266333663346633566336663376633866339663406634166342663436634466345663466634766348663496635066351663526635366354663556635666357663586635966360663616636266363663646636566366663676636866369663706637166372663736637466375663766637766378663796638066381663826638366384663856638666387663886638966390663916639266393663946639566396663976639866399664006640166402664036640466405664066640766408664096641066411664126641366414664156641666417664186641966420664216642266423664246642566426664276642866429664306643166432664336643466435664366643766438664396644066441664426644366444664456644666447664486644966450664516645266453664546645566456664576645866459664606646166462664636646466465664666646766468664696647066471664726647366474664756647666477664786647966480664816648266483664846648566486664876648866489664906649166492664936649466495664966649766498664996650066501665026650366504665056650666507665086650966510665116651266513665146651566516665176651866519665206652166522665236652466525665266652766528665296653066531665326653366534665356653666537665386653966540665416654266543665446654566546665476654866549665506655166552665536655466555665566655766558665596656066561665626656366564665656656666567665686656966570665716657266573665746657566576665776657866579665806658166582665836658466585665866658766588665896659066591665926659366594665956659666597665986659966600666016660266603666046660566606666076660866609666106661166612666136661466615666166661766618666196662066621666226662366624666256662666627666286662966630666316663266633666346663566636666376663866639666406664166642666436664466645666466664766648666496665066651666526665366654666556665666657666586665966660666616666266663666646666566666666676666866669666706667166672666736667466675666766667766678666796668066681666826668366684666856668666687666886668966690666916669266693666946669566696666976669866699667006670166702667036670466705667066670766708667096671066711667126671366714667156671666717667186671966720667216672266723667246672566726667276672866729667306673166732667336673466735667366673766738667396674066741667426674366744667456674666747667486674966750667516675266753667546675566756667576675866759667606676166762667636676466765667666676766768667696677066771667726677366774667756677666777667786677966780667816678266783667846678566786667876678866789667906679166792667936679466795667966679766798667996680066801668026680366804668056680666807668086680966810668116681266813668146681566816668176681866819668206682166822668236682466825668266682766828668296683066831668326683366834668356683666837668386683966840668416684266843668446684566846668476684866849668506685166852668536685466855668566685766858668596686066861668626686366864668656686666867668686686966870668716687266873668746687566876668776687866879668806688166882668836688466885668866688766888668896689066891668926689366894668956689666897668986689966900669016690266903669046690566906669076690866909669106691166912669136691466915669166691766918669196692066921669226692366924669256692666927669286692966930669316693266933669346693566936669376693866939669406694166942669436694466945669466694766948669496695066951669526695366954669556695666957669586695966960669616696266963669646696566966669676696866969669706697166972669736697466975669766697766978669796698066981669826698366984669856698666987669886698966990669916699266993669946699566996669976699866999670006700167002670036700467005670066700767008670096701067011670126701367014670156701667017670186701967020670216702267023670246702567026670276702867029670306703167032670336703467035670366703767038670396704067041670426704367044670456704667047670486704967050670516705267053670546705567056670576705867059670606706167062670636706467065670666706767068670696707067071670726707367074670756707667077670786707967080670816708267083670846708567086670876708867089670906709167092670936709467095670966709767098670996710067101671026710367104671056710667107671086710967110671116711267113671146711567116671176711867119671206712167122671236712467125671266712767128671296713067131671326713367134671356713667137671386713967140671416714267143671446714567146671476714867149671506715167152671536715467155671566715767158671596716067161671626716367164671656716667167671686716967170671716717267173671746717567176671776717867179671806718167182671836718467185671866718767188671896719067191671926719367194671956719667197671986719967200672016720267203672046720567206672076720867209672106721167212672136721467215672166721767218672196722067221672226722367224672256722667227672286722967230672316723267233672346723567236672376723867239672406724167242672436724467245672466724767248672496725067251672526725367254672556725667257672586725967260672616726267263672646726567266672676726867269672706727167272672736727467275672766727767278672796728067281672826728367284672856728667287672886728967290672916729267293672946729567296672976729867299673006730167302673036730467305673066730767308673096731067311673126731367314673156731667317673186731967320673216732267323673246732567326673276732867329673306733167332673336733467335673366733767338673396734067341673426734367344673456734667347673486734967350673516735267353673546735567356673576735867359673606736167362673636736467365673666736767368673696737067371673726737367374673756737667377673786737967380
  1. This is gcc.info, produced by makeinfo version 6.1 from gcc.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. * gcc: (gcc). The GNU Compiler Collection.
  19. * g++: (gcc). The GNU C++ compiler.
  20. * gcov: (gcc) Gcov. 'gcov'--a test coverage program.
  21. * gcov-tool: (gcc) Gcov-tool. 'gcov-tool'--an offline gcda profile processing program.
  22. * gcov-dump: (gcc) Gcov-dump. 'gcov-dump'--an offline gcda and gcno profile dump tool.
  23. * lto-dump: (gcc) lto-dump. 'lto-dump'--Tool for
  24. dumping LTO object files.
  25. END-INFO-DIR-ENTRY
  26. This file documents the use of the GNU compilers.
  27. Copyright (C) 1988-2020 Free Software Foundation, Inc.
  28. Permission is granted to copy, distribute and/or modify this document
  29. under the terms of the GNU Free Documentation License, Version 1.3 or
  30. any later version published by the Free Software Foundation; with the
  31. Invariant Sections being "Funding Free Software", the Front-Cover Texts
  32. being (a) (see below), and with the Back-Cover Texts being (b) (see
  33. below). A copy of the license is included in the section entitled "GNU
  34. Free Documentation License".
  35. (a) The FSF's Front-Cover Text is:
  36. A GNU Manual
  37. (b) The FSF's Back-Cover Text is:
  38. You have freedom to copy and modify this GNU Manual, like GNU software.
  39. Copies published by the Free Software Foundation raise funds for GNU
  40. development.
  41. 
  42. File: gcc.info, Node: Top, Next: G++ and GCC
  43. Introduction
  44. ************
  45. This manual documents how to use the GNU compilers, as well as their
  46. features and incompatibilities, and how to report bugs. It corresponds
  47. to the compilers (GCC) version 10.1.0. The internals of the GNU
  48. compilers, including how to port them to new targets and some
  49. information about how to write front ends for new languages, are
  50. documented in a separate manual. *Note Introduction: (gccint)Top.
  51. * Menu:
  52. * G++ and GCC:: You can compile C or C++ programs.
  53. * Standards:: Language standards supported by GCC.
  54. * Invoking GCC:: Command options supported by 'gcc'.
  55. * C Implementation:: How GCC implements the ISO C specification.
  56. * C++ Implementation:: How GCC implements the ISO C++ specification.
  57. * C Extensions:: GNU extensions to the C language family.
  58. * C++ Extensions:: GNU extensions to the C++ language.
  59. * Objective-C:: GNU Objective-C runtime features.
  60. * Compatibility:: Binary Compatibility
  61. * Gcov:: 'gcov'--a test coverage program.
  62. * Gcov-tool:: 'gcov-tool'--an offline gcda profile processing program.
  63. * Gcov-dump:: 'gcov-dump'--an offline gcda and gcno profile dump tool.
  64. * lto-dump:: 'lto-dump'--Tool for dumping LTO
  65. object files.
  66. * Trouble:: If you have trouble using GCC.
  67. * Bugs:: How, why and where to report bugs.
  68. * Service:: How To Get Help with GCC
  69. * Contributing:: How to contribute to testing and developing GCC.
  70. * Funding:: How to help assure funding for free software.
  71. * GNU Project:: The GNU Project and GNU/Linux.
  72. * Copying:: GNU General Public License says
  73. how you can copy and share GCC.
  74. * GNU Free Documentation License:: How you can copy and share this manual.
  75. * Contributors:: People who have contributed to GCC.
  76. * Option Index:: Index to command line options.
  77. * Keyword Index:: Index of concepts and symbol names.
  78. 
  79. File: gcc.info, Node: G++ and GCC, Next: Standards, Up: Top
  80. 1 Programming Languages Supported by GCC
  81. ****************************************
  82. GCC stands for "GNU Compiler Collection". GCC is an integrated
  83. distribution of compilers for several major programming languages.
  84. These languages currently include C, C++, Objective-C, Objective-C++,
  85. Fortran, Ada, D, Go, and BRIG (HSAIL).
  86. The abbreviation "GCC" has multiple meanings in common use. The
  87. current official meaning is "GNU Compiler Collection", which refers
  88. generically to the complete suite of tools. The name historically stood
  89. for "GNU C Compiler", and this usage is still common when the emphasis
  90. is on compiling C programs. Finally, the name is also used when
  91. speaking of the "language-independent" component of GCC: code shared
  92. among the compilers for all supported languages.
  93. The language-independent component of GCC includes the majority of the
  94. optimizers, as well as the "back ends" that generate machine code for
  95. various processors.
  96. The part of a compiler that is specific to a particular language is
  97. called the "front end". In addition to the front ends that are
  98. integrated components of GCC, there are several other front ends that
  99. are maintained separately. These support languages such as Mercury, and
  100. COBOL. To use these, they must be built together with GCC proper.
  101. Most of the compilers for languages other than C have their own names.
  102. The C++ compiler is G++, the Ada compiler is GNAT, and so on. When we
  103. talk about compiling one of those languages, we might refer to that
  104. compiler by its own name, or as GCC. Either is correct.
  105. Historically, compilers for many languages, including C++ and Fortran,
  106. have been implemented as "preprocessors" which emit another high level
  107. language such as C. None of the compilers included in GCC are
  108. implemented this way; they all generate machine code directly. This
  109. sort of preprocessor should not be confused with the "C preprocessor",
  110. which is an integral feature of the C, C++, Objective-C and
  111. Objective-C++ languages.
  112. 
  113. File: gcc.info, Node: Standards, Next: Invoking GCC, Prev: G++ and GCC, Up: Top
  114. 2 Language Standards Supported by GCC
  115. *************************************
  116. For each language compiled by GCC for which there is a standard, GCC
  117. attempts to follow one or more versions of that standard, possibly with
  118. some exceptions, and possibly with some extensions.
  119. 2.1 C Language
  120. ==============
  121. The original ANSI C standard (X3.159-1989) was ratified in 1989 and
  122. published in 1990. This standard was ratified as an ISO standard
  123. (ISO/IEC 9899:1990) later in 1990. There were no technical differences
  124. between these publications, although the sections of the ANSI standard
  125. were renumbered and became clauses in the ISO standard. The ANSI
  126. standard, but not the ISO standard, also came with a Rationale document.
  127. This standard, in both its forms, is commonly known as "C89", or
  128. occasionally as "C90", from the dates of ratification. To select this
  129. standard in GCC, use one of the options '-ansi', '-std=c90' or
  130. '-std=iso9899:1990'; to obtain all the diagnostics required by the
  131. standard, you should also specify '-pedantic' (or '-pedantic-errors' if
  132. you want them to be errors rather than warnings). *Note Options
  133. Controlling C Dialect: C Dialect Options.
  134. Errors in the 1990 ISO C standard were corrected in two Technical
  135. Corrigenda published in 1994 and 1996. GCC does not support the
  136. uncorrected version.
  137. An amendment to the 1990 standard was published in 1995. This
  138. amendment added digraphs and '__STDC_VERSION__' to the language, but
  139. otherwise concerned the library. This amendment is commonly known as
  140. "AMD1"; the amended standard is sometimes known as "C94" or "C95". To
  141. select this standard in GCC, use the option '-std=iso9899:199409' (with,
  142. as for other standard versions, '-pedantic' to receive all required
  143. diagnostics).
  144. A new edition of the ISO C standard was published in 1999 as ISO/IEC
  145. 9899:1999, and is commonly known as "C99". (While in development,
  146. drafts of this standard version were referred to as "C9X".) GCC has
  147. substantially complete support for this standard version; see
  148. <http://gcc.gnu.org/c99status.html> for details. To select this
  149. standard, use '-std=c99' or '-std=iso9899:1999'.
  150. Errors in the 1999 ISO C standard were corrected in three Technical
  151. Corrigenda published in 2001, 2004 and 2007. GCC does not support the
  152. uncorrected version.
  153. A fourth version of the C standard, known as "C11", was published in
  154. 2011 as ISO/IEC 9899:2011. (While in development, drafts of this
  155. standard version were referred to as "C1X".) GCC has substantially
  156. complete support for this standard, enabled with '-std=c11' or
  157. '-std=iso9899:2011'. A version with corrections integrated was prepared
  158. in 2017 and published in 2018 as ISO/IEC 9899:2018; it is known as "C17"
  159. and is supported with '-std=c17' or '-std=iso9899:2017'; the corrections
  160. are also applied with '-std=c11', and the only difference between the
  161. options is the value of '__STDC_VERSION__'.
  162. A further version of the C standard, known as "C2X", is under
  163. development; experimental and incomplete support for this is enabled
  164. with '-std=c2x'.
  165. By default, GCC provides some extensions to the C language that, on
  166. rare occasions conflict with the C standard. *Note Extensions to the C
  167. Language Family: C Extensions. Some features that are part of the C99
  168. standard are accepted as extensions in C90 mode, and some features that
  169. are part of the C11 standard are accepted as extensions in C90 and C99
  170. modes. Use of the '-std' options listed above disables these extensions
  171. where they conflict with the C standard version selected. You may also
  172. select an extended version of the C language explicitly with
  173. '-std=gnu90' (for C90 with GNU extensions), '-std=gnu99' (for C99 with
  174. GNU extensions) or '-std=gnu11' (for C11 with GNU extensions).
  175. The default, if no C language dialect options are given, is
  176. '-std=gnu11'.
  177. The ISO C standard defines (in clause 4) two classes of conforming
  178. implementation. A "conforming hosted implementation" supports the whole
  179. standard including all the library facilities; a "conforming
  180. freestanding implementation" is only required to provide certain library
  181. facilities: those in '<float.h>', '<limits.h>', '<stdarg.h>', and
  182. '<stddef.h>'; since AMD1, also those in '<iso646.h>'; since C99, also
  183. those in '<stdbool.h>' and '<stdint.h>'; and since C11, also those in
  184. '<stdalign.h>' and '<stdnoreturn.h>'. In addition, complex types, added
  185. in C99, are not required for freestanding implementations.
  186. The standard also defines two environments for programs, a
  187. "freestanding environment", required of all implementations and which
  188. may not have library facilities beyond those required of freestanding
  189. implementations, where the handling of program startup and termination
  190. are implementation-defined; and a "hosted environment", which is not
  191. required, in which all the library facilities are provided and startup
  192. is through a function 'int main (void)' or 'int main (int, char *[])'.
  193. An OS kernel is an example of a program running in a freestanding
  194. environment; a program using the facilities of an operating system is an
  195. example of a program running in a hosted environment.
  196. GCC aims towards being usable as a conforming freestanding
  197. implementation, or as the compiler for a conforming hosted
  198. implementation. By default, it acts as the compiler for a hosted
  199. implementation, defining '__STDC_HOSTED__' as '1' and presuming that
  200. when the names of ISO C functions are used, they have the semantics
  201. defined in the standard. To make it act as a conforming freestanding
  202. implementation for a freestanding environment, use the option
  203. '-ffreestanding'; it then defines '__STDC_HOSTED__' to '0' and does not
  204. make assumptions about the meanings of function names from the standard
  205. library, with exceptions noted below. To build an OS kernel, you may
  206. well still need to make your own arrangements for linking and startup.
  207. *Note Options Controlling C Dialect: C Dialect Options.
  208. GCC does not provide the library facilities required only of hosted
  209. implementations, nor yet all the facilities required by C99 of
  210. freestanding implementations on all platforms. To use the facilities of
  211. a hosted environment, you need to find them elsewhere (for example, in
  212. the GNU C library). *Note Standard Libraries: Standard Libraries.
  213. Most of the compiler support routines used by GCC are present in
  214. 'libgcc', but there are a few exceptions. GCC requires the freestanding
  215. environment provide 'memcpy', 'memmove', 'memset' and 'memcmp'.
  216. Finally, if '__builtin_trap' is used, and the target does not implement
  217. the 'trap' pattern, then GCC emits a call to 'abort'.
  218. For references to Technical Corrigenda, Rationale documents and
  219. information concerning the history of C that is available online, see
  220. <http://gcc.gnu.org/readings.html>
  221. 2.2 C++ Language
  222. ================
  223. GCC supports the original ISO C++ standard published in 1998, and the
  224. 2011 and 2014 revisions.
  225. The original ISO C++ standard was published as the ISO standard
  226. (ISO/IEC 14882:1998) and amended by a Technical Corrigenda published in
  227. 2003 (ISO/IEC 14882:2003). These standards are referred to as C++98 and
  228. C++03, respectively. GCC implements the majority of C++98 ('export' is
  229. a notable exception) and most of the changes in C++03. To select this
  230. standard in GCC, use one of the options '-ansi', '-std=c++98', or
  231. '-std=c++03'; to obtain all the diagnostics required by the standard,
  232. you should also specify '-pedantic' (or '-pedantic-errors' if you want
  233. them to be errors rather than warnings).
  234. A revised ISO C++ standard was published in 2011 as ISO/IEC 14882:2011,
  235. and is referred to as C++11; before its publication it was commonly
  236. referred to as C++0x. C++11 contains several changes to the C++
  237. language, all of which have been implemented in GCC. For details see
  238. <https://gcc.gnu.org/projects/cxx-status.html#cxx11>. To select this
  239. standard in GCC, use the option '-std=c++11'.
  240. Another revised ISO C++ standard was published in 2014 as ISO/IEC
  241. 14882:2014, and is referred to as C++14; before its publication it was
  242. sometimes referred to as C++1y. C++14 contains several further changes
  243. to the C++ language, all of which have been implemented in GCC. For
  244. details see <https://gcc.gnu.org/projects/cxx-status.html#cxx14>. To
  245. select this standard in GCC, use the option '-std=c++14'.
  246. The C++ language was further revised in 2017 and ISO/IEC 14882:2017 was
  247. published. This is referred to as C++17, and before publication was
  248. often referred to as C++1z. GCC supports all the changes in the new
  249. specification. For further details see
  250. <https://gcc.gnu.org/projects/cxx-status.html#cxx1z>. Use the option
  251. '-std=c++17' to select this variant of C++.
  252. More information about the C++ standards is available on the ISO C++
  253. committee's web site at <http://www.open-std.org/jtc1/sc22/wg21/>.
  254. To obtain all the diagnostics required by any of the standard versions
  255. described above you should specify '-pedantic' or '-pedantic-errors',
  256. otherwise GCC will allow some non-ISO C++ features as extensions. *Note
  257. Warning Options::.
  258. By default, GCC also provides some additional extensions to the C++
  259. language that on rare occasions conflict with the C++ standard. *Note
  260. Options Controlling C++ Dialect: C++ Dialect Options. Use of the '-std'
  261. options listed above disables these extensions where they they conflict
  262. with the C++ standard version selected. You may also select an extended
  263. version of the C++ language explicitly with '-std=gnu++98' (for C++98
  264. with GNU extensions), or '-std=gnu++11' (for C++11 with GNU extensions),
  265. or '-std=gnu++14' (for C++14 with GNU extensions), or '-std=gnu++17'
  266. (for C++17 with GNU extensions).
  267. The default, if no C++ language dialect options are given, is
  268. '-std=gnu++14'.
  269. 2.3 Objective-C and Objective-C++ Languages
  270. ===========================================
  271. GCC supports "traditional" Objective-C (also known as "Objective-C 1.0")
  272. and contains support for the Objective-C exception and synchronization
  273. syntax. It has also support for a number of "Objective-C 2.0" language
  274. extensions, including properties, fast enumeration (only for
  275. Objective-C), method attributes and the @optional and @required keywords
  276. in protocols. GCC supports Objective-C++ and features available in
  277. Objective-C are also available in Objective-C++.
  278. GCC by default uses the GNU Objective-C runtime library, which is part
  279. of GCC and is not the same as the Apple/NeXT Objective-C runtime library
  280. used on Apple systems. There are a number of differences documented in
  281. this manual. The options '-fgnu-runtime' and '-fnext-runtime' allow you
  282. to switch between producing output that works with the GNU Objective-C
  283. runtime library and output that works with the Apple/NeXT Objective-C
  284. runtime library.
  285. There is no formal written standard for Objective-C or Objective-C++.
  286. The authoritative manual on traditional Objective-C (1.0) is
  287. "Object-Oriented Programming and the Objective-C Language":
  288. <http://www.gnustep.org/resources/documentation/ObjectivCBook.pdf> is
  289. the original NeXTstep document.
  290. The Objective-C exception and synchronization syntax (that is, the
  291. keywords '@try', '@throw', '@catch', '@finally' and '@synchronized') is
  292. supported by GCC and is enabled with the option '-fobjc-exceptions'.
  293. The syntax is briefly documented in this manual and in the Objective-C
  294. 2.0 manuals from Apple.
  295. The Objective-C 2.0 language extensions and features are automatically
  296. enabled; they include properties (via the '@property', '@synthesize' and
  297. '@dynamic keywords'), fast enumeration (not available in Objective-C++),
  298. attributes for methods (such as 'deprecated', 'noreturn', 'sentinel',
  299. 'format'), the 'unused' attribute for method arguments, the '@package'
  300. keyword for instance variables and the '@optional' and '@required'
  301. keywords in protocols. You can disable all these Objective-C 2.0
  302. language extensions with the option '-fobjc-std=objc1', which causes the
  303. compiler to recognize the same Objective-C language syntax recognized by
  304. GCC 4.0, and to produce an error if one of the new features is used.
  305. GCC has currently no support for non-fragile instance variables.
  306. The authoritative manual on Objective-C 2.0 is available from Apple:
  307. *
  308. <https://developer.apple.com/library/archive/documentation/Cocoa/Conceptual/ProgrammingWithObjectiveC/Introduction/Introduction.html>
  309. For more information concerning the history of Objective-C that is
  310. available online, see <http://gcc.gnu.org/readings.html>
  311. 2.4 Go Language
  312. ===============
  313. As of the GCC 4.7.1 release, GCC supports the Go 1 language standard,
  314. described at <https://golang.org/doc/go1>.
  315. 2.5 HSA Intermediate Language (HSAIL)
  316. =====================================
  317. GCC can compile the binary representation (BRIG) of the HSAIL text
  318. format as described in HSA Programmer's Reference Manual version 1.0.1.
  319. This capability is typically utilized to implement the HSA runtime API's
  320. HSAIL finalization extension for a gcc supported processor. HSA
  321. standards are freely available at
  322. <http://www.hsafoundation.com/standards/>.
  323. 2.6 D language
  324. ==============
  325. GCC supports the D 2.0 programming language. The D language itself is
  326. currently defined by its reference implementation and supporting
  327. language specification, described at <https://dlang.org/spec/spec.html>.
  328. 2.7 References for Other Languages
  329. ==================================
  330. *Note GNAT Reference Manual: (gnat_rm)Top, for information on standard
  331. conformance and compatibility of the Ada compiler.
  332. *Note Standards: (gfortran)Standards, for details of standards
  333. supported by GNU Fortran.
  334. 
  335. File: gcc.info, Node: Invoking GCC, Next: C Implementation, Prev: Standards, Up: Top
  336. 3 GCC Command Options
  337. *********************
  338. When you invoke GCC, it normally does preprocessing, compilation,
  339. assembly and linking. The "overall options" allow you to stop this
  340. process at an intermediate stage. For example, the '-c' option says not
  341. to run the linker. Then the output consists of object files output by
  342. the assembler. *Note Options Controlling the Kind of Output: Overall
  343. Options.
  344. Other options are passed on to one or more stages of processing. Some
  345. options control the preprocessor and others the compiler itself. Yet
  346. other options control the assembler and linker; most of these are not
  347. documented here, since you rarely need to use any of them.
  348. Most of the command-line options that you can use with GCC are useful
  349. for C programs; when an option is only useful with another language
  350. (usually C++), the explanation says so explicitly. If the description
  351. for a particular option does not mention a source language, you can use
  352. that option with all supported languages.
  353. The usual way to run GCC is to run the executable called 'gcc', or
  354. 'MACHINE-gcc' when cross-compiling, or 'MACHINE-gcc-VERSION' to run a
  355. specific version of GCC. When you compile C++ programs, you should
  356. invoke GCC as 'g++' instead. *Note Compiling C++ Programs: Invoking
  357. G++, for information about the differences in behavior between 'gcc' and
  358. 'g++' when compiling C++ programs.
  359. The 'gcc' program accepts options and file names as operands. Many
  360. options have multi-letter names; therefore multiple single-letter
  361. options may _not_ be grouped: '-dv' is very different from '-d -v'.
  362. You can mix options and other arguments. For the most part, the order
  363. you use doesn't matter. Order does matter when you use several options
  364. of the same kind; for example, if you specify '-L' more than once, the
  365. directories are searched in the order specified. Also, the placement of
  366. the '-l' option is significant.
  367. Many options have long names starting with '-f' or with '-W'--for
  368. example, '-fmove-loop-invariants', '-Wformat' and so on. Most of these
  369. have both positive and negative forms; the negative form of '-ffoo' is
  370. '-fno-foo'. This manual documents only one of these two forms,
  371. whichever one is not the default.
  372. Some options take one or more arguments typically separated either by a
  373. space or by the equals sign ('=') from the option name. Unless
  374. documented otherwise, an argument can be either numeric or a string.
  375. Numeric arguments must typically be small unsigned decimal or
  376. hexadecimal integers. Hexadecimal arguments must begin with the '0x'
  377. prefix. Arguments to options that specify a size threshold of some sort
  378. may be arbitrarily large decimal or hexadecimal integers followed by a
  379. byte size suffix designating a multiple of bytes such as 'kB' and 'KiB'
  380. for kilobyte and kibibyte, respectively, 'MB' and 'MiB' for megabyte and
  381. mebibyte, 'GB' and 'GiB' for gigabyte and gigibyte, and so on. Such
  382. arguments are designated by BYTE-SIZE in the following text. Refer to
  383. the NIST, IEC, and other relevant national and international standards
  384. for the full listing and explanation of the binary and decimal byte size
  385. prefixes.
  386. *Note Option Index::, for an index to GCC's options.
  387. * Menu:
  388. * Option Summary:: Brief list of all options, without explanations.
  389. * Overall Options:: Controlling the kind of output:
  390. an executable, object files, assembler files,
  391. or preprocessed source.
  392. * Invoking G++:: Compiling C++ programs.
  393. * C Dialect Options:: Controlling the variant of C language compiled.
  394. * C++ Dialect Options:: Variations on C++.
  395. * Objective-C and Objective-C++ Dialect Options:: Variations on Objective-C
  396. and Objective-C++.
  397. * Diagnostic Message Formatting Options:: Controlling how diagnostics should
  398. be formatted.
  399. * Warning Options:: How picky should the compiler be?
  400. * Static Analyzer Options:: More expensive warnings.
  401. * Debugging Options:: Producing debuggable code.
  402. * Optimize Options:: How much optimization?
  403. * Instrumentation Options:: Enabling profiling and extra run-time error checking.
  404. * Preprocessor Options:: Controlling header files and macro definitions.
  405. Also, getting dependency information for Make.
  406. * Assembler Options:: Passing options to the assembler.
  407. * Link Options:: Specifying libraries and so on.
  408. * Directory Options:: Where to find header files and libraries.
  409. Where to find the compiler executable files.
  410. * Code Gen Options:: Specifying conventions for function calls, data layout
  411. and register usage.
  412. * Developer Options:: Printing GCC configuration info, statistics, and
  413. debugging dumps.
  414. * Submodel Options:: Target-specific options, such as compiling for a
  415. specific processor variant.
  416. * Spec Files:: How to pass switches to sub-processes.
  417. * Environment Variables:: Env vars that affect GCC.
  418. * Precompiled Headers:: Compiling a header once, and using it many times.
  419. 
  420. File: gcc.info, Node: Option Summary, Next: Overall Options, Up: Invoking GCC
  421. 3.1 Option Summary
  422. ==================
  423. Here is a summary of all the options, grouped by type. Explanations are
  424. in the following sections.
  425. _Overall Options_
  426. *Note Options Controlling the Kind of Output: Overall Options.
  427. -c -S -E -o FILE -x LANGUAGE
  428. -v -### --help[=CLASS[,...]] --target-help --version
  429. -pass-exit-codes -pipe -specs=FILE -wrapper
  430. @FILE -ffile-prefix-map=OLD=NEW
  431. -fplugin=FILE -fplugin-arg-NAME=ARG
  432. -fdump-ada-spec[-slim] -fada-spec-parent=UNIT -fdump-go-spec=FILE
  433. _C Language Options_
  434. *Note Options Controlling C Dialect: C Dialect Options.
  435. -ansi -std=STANDARD -fgnu89-inline
  436. -fpermitted-flt-eval-methods=STANDARD
  437. -aux-info FILENAME -fallow-parameterless-variadic-functions
  438. -fno-asm -fno-builtin -fno-builtin-FUNCTION -fgimple
  439. -fhosted -ffreestanding
  440. -fopenacc -fopenacc-dim=GEOM
  441. -fopenmp -fopenmp-simd
  442. -fms-extensions -fplan9-extensions -fsso-struct=ENDIANNESS
  443. -fallow-single-precision -fcond-mismatch -flax-vector-conversions
  444. -fsigned-bitfields -fsigned-char
  445. -funsigned-bitfields -funsigned-char
  446. _C++ Language Options_
  447. *Note Options Controlling C++ Dialect: C++ Dialect Options.
  448. -fabi-version=N -fno-access-control
  449. -faligned-new=N -fargs-in-order=N -fchar8_t -fcheck-new
  450. -fconstexpr-depth=N -fconstexpr-cache-depth=N
  451. -fconstexpr-loop-limit=N -fconstexpr-ops-limit=N
  452. -fno-elide-constructors
  453. -fno-enforce-eh-specs
  454. -fno-gnu-keywords
  455. -fno-implicit-templates
  456. -fno-implicit-inline-templates
  457. -fno-implement-inlines -fms-extensions
  458. -fnew-inheriting-ctors
  459. -fnew-ttp-matching
  460. -fno-nonansi-builtins -fnothrow-opt -fno-operator-names
  461. -fno-optional-diags -fpermissive
  462. -fno-pretty-templates
  463. -fno-rtti -fsized-deallocation
  464. -ftemplate-backtrace-limit=N
  465. -ftemplate-depth=N
  466. -fno-threadsafe-statics -fuse-cxa-atexit
  467. -fno-weak -nostdinc++
  468. -fvisibility-inlines-hidden
  469. -fvisibility-ms-compat
  470. -fext-numeric-literals
  471. -Wabi-tag -Wcatch-value -Wcatch-value=N
  472. -Wno-class-conversion -Wclass-memaccess
  473. -Wcomma-subscript -Wconditionally-supported
  474. -Wno-conversion-null -Wctor-dtor-privacy -Wno-delete-incomplete
  475. -Wdelete-non-virtual-dtor -Wdeprecated-copy -Wdeprecated-copy-dtor
  476. -Weffc++ -Wextra-semi -Wno-inaccessible-base
  477. -Wno-inherited-variadic-ctor -Wno-init-list-lifetime
  478. -Wno-invalid-offsetof -Wno-literal-suffix -Wmismatched-tags
  479. -Wmultiple-inheritance -Wnamespaces -Wnarrowing
  480. -Wnoexcept -Wnoexcept-type -Wnon-virtual-dtor
  481. -Wpessimizing-move -Wno-placement-new -Wplacement-new=N
  482. -Wredundant-move -Wredundant-tags
  483. -Wreorder -Wregister
  484. -Wstrict-null-sentinel -Wno-subobject-linkage -Wtemplates
  485. -Wno-non-template-friend -Wold-style-cast
  486. -Woverloaded-virtual -Wno-pmf-conversions -Wsign-promo
  487. -Wsized-deallocation -Wsuggest-final-methods
  488. -Wsuggest-final-types -Wsuggest-override
  489. -Wno-terminate -Wuseless-cast -Wvirtual-inheritance
  490. -Wno-virtual-move-assign -Wvolatile -Wzero-as-null-pointer-constant
  491. _Objective-C and Objective-C++ Language Options_
  492. *Note Options Controlling Objective-C and Objective-C++ Dialects:
  493. Objective-C and Objective-C++ Dialect Options.
  494. -fconstant-string-class=CLASS-NAME
  495. -fgnu-runtime -fnext-runtime
  496. -fno-nil-receivers
  497. -fobjc-abi-version=N
  498. -fobjc-call-cxx-cdtors
  499. -fobjc-direct-dispatch
  500. -fobjc-exceptions
  501. -fobjc-gc
  502. -fobjc-nilcheck
  503. -fobjc-std=objc1
  504. -fno-local-ivars
  505. -fivar-visibility=[public|protected|private|package]
  506. -freplace-objc-classes
  507. -fzero-link
  508. -gen-decls
  509. -Wassign-intercept -Wno-property-assign-default
  510. -Wno-protocol -Wselector
  511. -Wstrict-selector-match
  512. -Wundeclared-selector
  513. _Diagnostic Message Formatting Options_
  514. *Note Options to Control Diagnostic Messages Formatting: Diagnostic
  515. Message Formatting Options.
  516. -fmessage-length=N
  517. -fdiagnostics-show-location=[once|every-line]
  518. -fdiagnostics-color=[auto|never|always]
  519. -fdiagnostics-urls=[auto|never|always]
  520. -fdiagnostics-format=[text|json]
  521. -fno-diagnostics-show-option -fno-diagnostics-show-caret
  522. -fno-diagnostics-show-labels -fno-diagnostics-show-line-numbers
  523. -fno-diagnostics-show-cwe
  524. -fdiagnostics-minimum-margin-width=WIDTH
  525. -fdiagnostics-parseable-fixits -fdiagnostics-generate-patch
  526. -fdiagnostics-show-template-tree -fno-elide-type
  527. -fdiagnostics-path-format=[none|separate-events|inline-events]
  528. -fdiagnostics-show-path-depths
  529. -fno-show-column
  530. _Warning Options_
  531. *Note Options to Request or Suppress Warnings: Warning Options.
  532. -fsyntax-only -fmax-errors=N -Wpedantic
  533. -pedantic-errors
  534. -w -Wextra -Wall -Wabi=N
  535. -Waddress -Wno-address-of-packed-member -Waggregate-return
  536. -Walloc-size-larger-than=BYTE-SIZE -Walloc-zero
  537. -Walloca -Walloca-larger-than=BYTE-SIZE
  538. -Wno-aggressive-loop-optimizations
  539. -Warith-conversion
  540. -Warray-bounds -Warray-bounds=N
  541. -Wno-attributes -Wattribute-alias=N -Wno-attribute-alias
  542. -Wno-attribute-warning -Wbool-compare -Wbool-operation
  543. -Wno-builtin-declaration-mismatch
  544. -Wno-builtin-macro-redefined -Wc90-c99-compat -Wc99-c11-compat
  545. -Wc11-c2x-compat
  546. -Wc++-compat -Wc++11-compat -Wc++14-compat -Wc++17-compat
  547. -Wc++20-compat
  548. -Wcast-align -Wcast-align=strict -Wcast-function-type -Wcast-qual
  549. -Wchar-subscripts
  550. -Wclobbered -Wcomment
  551. -Wconversion -Wno-coverage-mismatch -Wno-cpp
  552. -Wdangling-else -Wdate-time
  553. -Wno-deprecated -Wno-deprecated-declarations -Wno-designated-init
  554. -Wdisabled-optimization
  555. -Wno-discarded-array-qualifiers -Wno-discarded-qualifiers
  556. -Wno-div-by-zero -Wdouble-promotion
  557. -Wduplicated-branches -Wduplicated-cond
  558. -Wempty-body -Wno-endif-labels -Wenum-compare -Wenum-conversion
  559. -Werror -Werror=* -Wexpansion-to-defined -Wfatal-errors
  560. -Wfloat-conversion -Wfloat-equal -Wformat -Wformat=2
  561. -Wno-format-contains-nul -Wno-format-extra-args
  562. -Wformat-nonliteral -Wformat-overflow=N
  563. -Wformat-security -Wformat-signedness -Wformat-truncation=N
  564. -Wformat-y2k -Wframe-address
  565. -Wframe-larger-than=BYTE-SIZE -Wno-free-nonheap-object
  566. -Wno-hsa -Wno-if-not-aligned -Wno-ignored-attributes
  567. -Wignored-qualifiers -Wno-incompatible-pointer-types
  568. -Wimplicit -Wimplicit-fallthrough -Wimplicit-fallthrough=N
  569. -Wno-implicit-function-declaration -Wno-implicit-int
  570. -Winit-self -Winline -Wno-int-conversion -Wint-in-bool-context
  571. -Wno-int-to-pointer-cast -Wno-invalid-memory-model
  572. -Winvalid-pch -Wjump-misses-init -Wlarger-than=BYTE-SIZE
  573. -Wlogical-not-parentheses -Wlogical-op -Wlong-long
  574. -Wno-lto-type-mismatch -Wmain -Wmaybe-uninitialized
  575. -Wmemset-elt-size -Wmemset-transposed-args
  576. -Wmisleading-indentation -Wmissing-attributes -Wmissing-braces
  577. -Wmissing-field-initializers -Wmissing-format-attribute
  578. -Wmissing-include-dirs -Wmissing-noreturn -Wno-missing-profile
  579. -Wno-multichar -Wmultistatement-macros -Wnonnull -Wnonnull-compare
  580. -Wnormalized=[none|id|nfc|nfkc]
  581. -Wnull-dereference -Wno-odr -Wopenmp-simd
  582. -Wno-overflow -Woverlength-strings -Wno-override-init-side-effects
  583. -Wpacked -Wno-packed-bitfield-compat -Wpacked-not-aligned -Wpadded
  584. -Wparentheses -Wno-pedantic-ms-format
  585. -Wpointer-arith -Wno-pointer-compare -Wno-pointer-to-int-cast
  586. -Wno-pragmas -Wno-prio-ctor-dtor -Wredundant-decls
  587. -Wrestrict -Wno-return-local-addr -Wreturn-type
  588. -Wno-scalar-storage-order -Wsequence-point
  589. -Wshadow -Wshadow=global -Wshadow=local -Wshadow=compatible-local
  590. -Wno-shadow-ivar
  591. -Wno-shift-count-negative -Wno-shift-count-overflow -Wshift-negative-value
  592. -Wno-shift-overflow -Wshift-overflow=N
  593. -Wsign-compare -Wsign-conversion
  594. -Wno-sizeof-array-argument
  595. -Wsizeof-pointer-div -Wsizeof-pointer-memaccess
  596. -Wstack-protector -Wstack-usage=BYTE-SIZE -Wstrict-aliasing
  597. -Wstrict-aliasing=n -Wstrict-overflow -Wstrict-overflow=N
  598. -Wstring-compare
  599. -Wstringop-overflow=N -Wno-stringop-truncation
  600. -Wsuggest-attribute=[pure|const|noreturn|format|malloc]
  601. -Wswitch -Wno-switch-bool -Wswitch-default -Wswitch-enum
  602. -Wno-switch-outside-range -Wno-switch-unreachable -Wsync-nand
  603. -Wsystem-headers -Wtautological-compare -Wtrampolines -Wtrigraphs
  604. -Wtype-limits -Wundef
  605. -Wuninitialized -Wunknown-pragmas
  606. -Wunsuffixed-float-constants -Wunused
  607. -Wunused-but-set-parameter -Wunused-but-set-variable
  608. -Wunused-const-variable -Wunused-const-variable=N
  609. -Wunused-function -Wunused-label -Wunused-local-typedefs
  610. -Wunused-macros
  611. -Wunused-parameter -Wno-unused-result
  612. -Wunused-value -Wunused-variable
  613. -Wno-varargs -Wvariadic-macros
  614. -Wvector-operation-performance
  615. -Wvla -Wvla-larger-than=BYTE-SIZE -Wno-vla-larger-than
  616. -Wvolatile-register-var -Wwrite-strings
  617. -Wzero-length-bounds
  618. _Static Analyzer Options_
  619. -fanalyzer
  620. -fanalyzer-call-summaries
  621. -fanalyzer-checker=NAME
  622. -fanalyzer-fine-grained
  623. -fanalyzer-state-merge
  624. -fanalyzer-state-purge
  625. -fanalyzer-transitivity
  626. -fanalyzer-verbose-edges
  627. -fanalyzer-verbose-state-changes
  628. -fanalyzer-verbosity=LEVEL
  629. -fdump-analyzer
  630. -fdump-analyzer-stderr
  631. -fdump-analyzer-callgraph
  632. -fdump-analyzer-exploded-graph
  633. -fdump-analyzer-exploded-nodes
  634. -fdump-analyzer-exploded-nodes-2
  635. -fdump-analyzer-exploded-nodes-3
  636. -fdump-analyzer-state-purge
  637. -fdump-analyzer-supergraph
  638. -Wno-analyzer-double-fclose
  639. -Wno-analyzer-double-free
  640. -Wno-analyzer-exposure-through-output-file
  641. -Wno-analyzer-file-leak
  642. -Wno-analyzer-free-of-non-heap
  643. -Wno-analyzer-malloc-leak
  644. -Wno-analyzer-null-argument
  645. -Wno-analyzer-null-dereference
  646. -Wno-analyzer-possible-null-argument
  647. -Wno-analyzer-possible-null-dereference
  648. -Wno-analyzer-stale-setjmp-buffer
  649. -Wno-analyzer-tainted-array-index
  650. -Wanalyzer-too-complex
  651. -Wno-analyzer-unsafe-call-within-signal-handler
  652. -Wno-analyzer-use-after-free
  653. -Wno-analyzer-use-of-pointer-in-stale-stack-frame
  654. -Wno-analyzer-use-of-uninitialized-value
  655. _C and Objective-C-only Warning Options_
  656. -Wbad-function-cast -Wmissing-declarations
  657. -Wmissing-parameter-type -Wmissing-prototypes -Wnested-externs
  658. -Wold-style-declaration -Wold-style-definition
  659. -Wstrict-prototypes -Wtraditional -Wtraditional-conversion
  660. -Wdeclaration-after-statement -Wpointer-sign
  661. _Debugging Options_
  662. *Note Options for Debugging Your Program: Debugging Options.
  663. -g -gLEVEL -gdwarf -gdwarf-VERSION
  664. -ggdb -grecord-gcc-switches -gno-record-gcc-switches
  665. -gstabs -gstabs+ -gstrict-dwarf -gno-strict-dwarf
  666. -gas-loc-support -gno-as-loc-support
  667. -gas-locview-support -gno-as-locview-support
  668. -gcolumn-info -gno-column-info
  669. -gstatement-frontiers -gno-statement-frontiers
  670. -gvariable-location-views -gno-variable-location-views
  671. -ginternal-reset-location-views -gno-internal-reset-location-views
  672. -ginline-points -gno-inline-points
  673. -gvms -gxcoff -gxcoff+ -gz[=TYPE]
  674. -gsplit-dwarf -gdescribe-dies -gno-describe-dies
  675. -fdebug-prefix-map=OLD=NEW -fdebug-types-section
  676. -fno-eliminate-unused-debug-types
  677. -femit-struct-debug-baseonly -femit-struct-debug-reduced
  678. -femit-struct-debug-detailed[=SPEC-LIST]
  679. -fno-eliminate-unused-debug-symbols -femit-class-debug-always
  680. -fno-merge-debug-strings -fno-dwarf2-cfi-asm
  681. -fvar-tracking -fvar-tracking-assignments
  682. _Optimization Options_
  683. *Note Options that Control Optimization: Optimize Options.
  684. -faggressive-loop-optimizations
  685. -falign-functions[=N[:M:[N2[:M2]]]]
  686. -falign-jumps[=N[:M:[N2[:M2]]]]
  687. -falign-labels[=N[:M:[N2[:M2]]]]
  688. -falign-loops[=N[:M:[N2[:M2]]]]
  689. -fno-allocation-dce -fallow-store-data-races
  690. -fassociative-math -fauto-profile -fauto-profile[=PATH]
  691. -fauto-inc-dec -fbranch-probabilities
  692. -fcaller-saves
  693. -fcombine-stack-adjustments -fconserve-stack
  694. -fcompare-elim -fcprop-registers -fcrossjumping
  695. -fcse-follow-jumps -fcse-skip-blocks -fcx-fortran-rules
  696. -fcx-limited-range
  697. -fdata-sections -fdce -fdelayed-branch
  698. -fdelete-null-pointer-checks -fdevirtualize -fdevirtualize-speculatively
  699. -fdevirtualize-at-ltrans -fdse
  700. -fearly-inlining -fipa-sra -fexpensive-optimizations -ffat-lto-objects
  701. -ffast-math -ffinite-math-only -ffloat-store -fexcess-precision=STYLE
  702. -ffinite-loops
  703. -fforward-propagate -ffp-contract=STYLE -ffunction-sections
  704. -fgcse -fgcse-after-reload -fgcse-las -fgcse-lm -fgraphite-identity
  705. -fgcse-sm -fhoist-adjacent-loads -fif-conversion
  706. -fif-conversion2 -findirect-inlining
  707. -finline-functions -finline-functions-called-once -finline-limit=N
  708. -finline-small-functions -fipa-cp -fipa-cp-clone
  709. -fipa-bit-cp -fipa-vrp -fipa-pta -fipa-profile -fipa-pure-const
  710. -fipa-reference -fipa-reference-addressable
  711. -fipa-stack-alignment -fipa-icf -fira-algorithm=ALGORITHM
  712. -flive-patching=LEVEL
  713. -fira-region=REGION -fira-hoist-pressure
  714. -fira-loop-pressure -fno-ira-share-save-slots
  715. -fno-ira-share-spill-slots
  716. -fisolate-erroneous-paths-dereference -fisolate-erroneous-paths-attribute
  717. -fivopts -fkeep-inline-functions -fkeep-static-functions
  718. -fkeep-static-consts -flimit-function-alignment -flive-range-shrinkage
  719. -floop-block -floop-interchange -floop-strip-mine
  720. -floop-unroll-and-jam -floop-nest-optimize
  721. -floop-parallelize-all -flra-remat -flto -flto-compression-level
  722. -flto-partition=ALG -fmerge-all-constants
  723. -fmerge-constants -fmodulo-sched -fmodulo-sched-allow-regmoves
  724. -fmove-loop-invariants -fno-branch-count-reg
  725. -fno-defer-pop -fno-fp-int-builtin-inexact -fno-function-cse
  726. -fno-guess-branch-probability -fno-inline -fno-math-errno -fno-peephole
  727. -fno-peephole2 -fno-printf-return-value -fno-sched-interblock
  728. -fno-sched-spec -fno-signed-zeros
  729. -fno-toplevel-reorder -fno-trapping-math -fno-zero-initialized-in-bss
  730. -fomit-frame-pointer -foptimize-sibling-calls
  731. -fpartial-inlining -fpeel-loops -fpredictive-commoning
  732. -fprefetch-loop-arrays
  733. -fprofile-correction
  734. -fprofile-use -fprofile-use=PATH -fprofile-partial-training
  735. -fprofile-values -fprofile-reorder-functions
  736. -freciprocal-math -free -frename-registers -freorder-blocks
  737. -freorder-blocks-algorithm=ALGORITHM
  738. -freorder-blocks-and-partition -freorder-functions
  739. -frerun-cse-after-loop -freschedule-modulo-scheduled-loops
  740. -frounding-math -fsave-optimization-record
  741. -fsched2-use-superblocks -fsched-pressure
  742. -fsched-spec-load -fsched-spec-load-dangerous
  743. -fsched-stalled-insns-dep[=N] -fsched-stalled-insns[=N]
  744. -fsched-group-heuristic -fsched-critical-path-heuristic
  745. -fsched-spec-insn-heuristic -fsched-rank-heuristic
  746. -fsched-last-insn-heuristic -fsched-dep-count-heuristic
  747. -fschedule-fusion
  748. -fschedule-insns -fschedule-insns2 -fsection-anchors
  749. -fselective-scheduling -fselective-scheduling2
  750. -fsel-sched-pipelining -fsel-sched-pipelining-outer-loops
  751. -fsemantic-interposition -fshrink-wrap -fshrink-wrap-separate
  752. -fsignaling-nans
  753. -fsingle-precision-constant -fsplit-ivs-in-unroller -fsplit-loops
  754. -fsplit-paths
  755. -fsplit-wide-types -fsplit-wide-types-early -fssa-backprop -fssa-phiopt
  756. -fstdarg-opt -fstore-merging -fstrict-aliasing
  757. -fthread-jumps -ftracer -ftree-bit-ccp
  758. -ftree-builtin-call-dce -ftree-ccp -ftree-ch
  759. -ftree-coalesce-vars -ftree-copy-prop -ftree-dce -ftree-dominator-opts
  760. -ftree-dse -ftree-forwprop -ftree-fre -fcode-hoisting
  761. -ftree-loop-if-convert -ftree-loop-im
  762. -ftree-phiprop -ftree-loop-distribution -ftree-loop-distribute-patterns
  763. -ftree-loop-ivcanon -ftree-loop-linear -ftree-loop-optimize
  764. -ftree-loop-vectorize
  765. -ftree-parallelize-loops=N -ftree-pre -ftree-partial-pre -ftree-pta
  766. -ftree-reassoc -ftree-scev-cprop -ftree-sink -ftree-slsr -ftree-sra
  767. -ftree-switch-conversion -ftree-tail-merge
  768. -ftree-ter -ftree-vectorize -ftree-vrp -funconstrained-commons
  769. -funit-at-a-time -funroll-all-loops -funroll-loops
  770. -funsafe-math-optimizations -funswitch-loops
  771. -fipa-ra -fvariable-expansion-in-unroller -fvect-cost-model -fvpt
  772. -fweb -fwhole-program -fwpa -fuse-linker-plugin
  773. --param NAME=VALUE
  774. -O -O0 -O1 -O2 -O3 -Os -Ofast -Og
  775. _Program Instrumentation Options_
  776. *Note Program Instrumentation Options: Instrumentation Options.
  777. -p -pg -fprofile-arcs --coverage -ftest-coverage
  778. -fprofile-abs-path
  779. -fprofile-dir=PATH -fprofile-generate -fprofile-generate=PATH
  780. -fprofile-note=PATH -fprofile-prefix-path=PATH
  781. -fprofile-update=METHOD -fprofile-filter-files=REGEX
  782. -fprofile-exclude-files=REGEX -fprofile-reproducibility
  783. -fsanitize=STYLE -fsanitize-recover -fsanitize-recover=STYLE
  784. -fasan-shadow-offset=NUMBER -fsanitize-sections=S1,S2,...
  785. -fsanitize-undefined-trap-on-error -fbounds-check
  786. -fcf-protection=[full|branch|return|none]
  787. -fstack-protector -fstack-protector-all -fstack-protector-strong
  788. -fstack-protector-explicit -fstack-check
  789. -fstack-limit-register=REG -fstack-limit-symbol=SYM
  790. -fno-stack-limit -fsplit-stack
  791. -fvtable-verify=[std|preinit|none]
  792. -fvtv-counts -fvtv-debug
  793. -finstrument-functions
  794. -finstrument-functions-exclude-function-list=SYM,SYM,...
  795. -finstrument-functions-exclude-file-list=FILE,FILE,...
  796. _Preprocessor Options_
  797. *Note Options Controlling the Preprocessor: Preprocessor Options.
  798. -AQUESTION=ANSWER
  799. -A-QUESTION[=ANSWER]
  800. -C -CC -DMACRO[=DEFN]
  801. -dD -dI -dM -dN -dU
  802. -fdebug-cpp -fdirectives-only -fdollars-in-identifiers
  803. -fexec-charset=CHARSET -fextended-identifiers
  804. -finput-charset=CHARSET -fmacro-prefix-map=OLD=NEW
  805. -fmax-include-depth=DEPTH
  806. -fno-canonical-system-headers -fpch-deps -fpch-preprocess
  807. -fpreprocessed -ftabstop=WIDTH -ftrack-macro-expansion
  808. -fwide-exec-charset=CHARSET -fworking-directory
  809. -H -imacros FILE -include FILE
  810. -M -MD -MF -MG -MM -MMD -MP -MQ -MT
  811. -no-integrated-cpp -P -pthread -remap
  812. -traditional -traditional-cpp -trigraphs
  813. -UMACRO -undef
  814. -Wp,OPTION -Xpreprocessor OPTION
  815. _Assembler Options_
  816. *Note Passing Options to the Assembler: Assembler Options.
  817. -Wa,OPTION -Xassembler OPTION
  818. _Linker Options_
  819. *Note Options for Linking: Link Options.
  820. OBJECT-FILE-NAME -fuse-ld=LINKER -lLIBRARY
  821. -nostartfiles -nodefaultlibs -nolibc -nostdlib
  822. -e ENTRY --entry=ENTRY
  823. -pie -pthread -r -rdynamic
  824. -s -static -static-pie -static-libgcc -static-libstdc++
  825. -static-libasan -static-libtsan -static-liblsan -static-libubsan
  826. -shared -shared-libgcc -symbolic
  827. -T SCRIPT -Wl,OPTION -Xlinker OPTION
  828. -u SYMBOL -z KEYWORD
  829. _Directory Options_
  830. *Note Options for Directory Search: Directory Options.
  831. -BPREFIX -IDIR -I-
  832. -idirafter DIR
  833. -imacros FILE -imultilib DIR
  834. -iplugindir=DIR -iprefix FILE
  835. -iquote DIR -isysroot DIR -isystem DIR
  836. -iwithprefix DIR -iwithprefixbefore DIR
  837. -LDIR -no-canonical-prefixes --no-sysroot-suffix
  838. -nostdinc -nostdinc++ --sysroot=DIR
  839. _Code Generation Options_
  840. *Note Options for Code Generation Conventions: Code Gen Options.
  841. -fcall-saved-REG -fcall-used-REG
  842. -ffixed-REG -fexceptions
  843. -fnon-call-exceptions -fdelete-dead-exceptions -funwind-tables
  844. -fasynchronous-unwind-tables
  845. -fno-gnu-unique
  846. -finhibit-size-directive -fcommon -fno-ident
  847. -fpcc-struct-return -fpic -fPIC -fpie -fPIE -fno-plt
  848. -fno-jump-tables
  849. -frecord-gcc-switches
  850. -freg-struct-return -fshort-enums -fshort-wchar
  851. -fverbose-asm -fpack-struct[=N]
  852. -fleading-underscore -ftls-model=MODEL
  853. -fstack-reuse=REUSE_LEVEL
  854. -ftrampolines -ftrapv -fwrapv
  855. -fvisibility=[default|internal|hidden|protected]
  856. -fstrict-volatile-bitfields -fsync-libcalls
  857. _Developer Options_
  858. *Note GCC Developer Options: Developer Options.
  859. -dLETTERS -dumpspecs -dumpmachine -dumpversion
  860. -dumpfullversion -fcallgraph-info[=su,da]
  861. -fchecking -fchecking=N
  862. -fdbg-cnt-list -fdbg-cnt=COUNTER-VALUE-LIST
  863. -fdisable-ipa-PASS_NAME
  864. -fdisable-rtl-PASS_NAME
  865. -fdisable-rtl-PASS-NAME=RANGE-LIST
  866. -fdisable-tree-PASS_NAME
  867. -fdisable-tree-PASS-NAME=RANGE-LIST
  868. -fdump-debug -fdump-earlydebug
  869. -fdump-noaddr -fdump-unnumbered -fdump-unnumbered-links
  870. -fdump-final-insns[=FILE]
  871. -fdump-ipa-all -fdump-ipa-cgraph -fdump-ipa-inline
  872. -fdump-lang-all
  873. -fdump-lang-SWITCH
  874. -fdump-lang-SWITCH-OPTIONS
  875. -fdump-lang-SWITCH-OPTIONS=FILENAME
  876. -fdump-passes
  877. -fdump-rtl-PASS -fdump-rtl-PASS=FILENAME
  878. -fdump-statistics
  879. -fdump-tree-all
  880. -fdump-tree-SWITCH
  881. -fdump-tree-SWITCH-OPTIONS
  882. -fdump-tree-SWITCH-OPTIONS=FILENAME
  883. -fcompare-debug[=OPTS] -fcompare-debug-second
  884. -fenable-KIND-PASS
  885. -fenable-KIND-PASS=RANGE-LIST
  886. -fira-verbose=N
  887. -flto-report -flto-report-wpa -fmem-report-wpa
  888. -fmem-report -fpre-ipa-mem-report -fpost-ipa-mem-report
  889. -fopt-info -fopt-info-OPTIONS[=FILE]
  890. -fprofile-report
  891. -frandom-seed=STRING -fsched-verbose=N
  892. -fsel-sched-verbose -fsel-sched-dump-cfg -fsel-sched-pipelining-verbose
  893. -fstats -fstack-usage -ftime-report -ftime-report-details
  894. -fvar-tracking-assignments-toggle -gtoggle
  895. -print-file-name=LIBRARY -print-libgcc-file-name
  896. -print-multi-directory -print-multi-lib -print-multi-os-directory
  897. -print-prog-name=PROGRAM -print-search-dirs -Q
  898. -print-sysroot -print-sysroot-headers-suffix
  899. -save-temps -save-temps=cwd -save-temps=obj -time[=FILE]
  900. _Machine-Dependent Options_
  901. *Note Machine-Dependent Options: Submodel Options.
  902. _AArch64 Options_
  903. -mabi=NAME -mbig-endian -mlittle-endian
  904. -mgeneral-regs-only
  905. -mcmodel=tiny -mcmodel=small -mcmodel=large
  906. -mstrict-align -mno-strict-align
  907. -momit-leaf-frame-pointer
  908. -mtls-dialect=desc -mtls-dialect=traditional
  909. -mtls-size=SIZE
  910. -mfix-cortex-a53-835769 -mfix-cortex-a53-843419
  911. -mlow-precision-recip-sqrt -mlow-precision-sqrt -mlow-precision-div
  912. -mpc-relative-literal-loads
  913. -msign-return-address=SCOPE
  914. -mbranch-protection=NONE|STANDARD|PAC-RET[+LEAF
  915. +B-KEY]|BTI
  916. -march=NAME -mcpu=NAME -mtune=NAME
  917. -moverride=STRING -mverbose-cost-dump
  918. -mstack-protector-guard=GUARD -mstack-protector-guard-reg=SYSREG
  919. -mstack-protector-guard-offset=OFFSET -mtrack-speculation
  920. -moutline-atomics
  921. _Adapteva Epiphany Options_
  922. -mhalf-reg-file -mprefer-short-insn-regs
  923. -mbranch-cost=NUM -mcmove -mnops=NUM -msoft-cmpsf
  924. -msplit-lohi -mpost-inc -mpost-modify -mstack-offset=NUM
  925. -mround-nearest -mlong-calls -mshort-calls -msmall16
  926. -mfp-mode=MODE -mvect-double -max-vect-align=NUM
  927. -msplit-vecmove-early -m1reg-REG
  928. _AMD GCN Options_
  929. -march=GPU -mtune=GPU -mstack-size=BYTES
  930. _ARC Options_
  931. -mbarrel-shifter -mjli-always
  932. -mcpu=CPU -mA6 -mARC600 -mA7 -mARC700
  933. -mdpfp -mdpfp-compact -mdpfp-fast -mno-dpfp-lrsr
  934. -mea -mno-mpy -mmul32x16 -mmul64 -matomic
  935. -mnorm -mspfp -mspfp-compact -mspfp-fast -msimd -msoft-float -mswap
  936. -mcrc -mdsp-packa -mdvbf -mlock -mmac-d16 -mmac-24 -mrtsc -mswape
  937. -mtelephony -mxy -misize -mannotate-align -marclinux -marclinux_prof
  938. -mlong-calls -mmedium-calls -msdata -mirq-ctrl-saved
  939. -mrgf-banked-regs -mlpc-width=WIDTH -G NUM
  940. -mvolatile-cache -mtp-regno=REGNO
  941. -malign-call -mauto-modify-reg -mbbit-peephole -mno-brcc
  942. -mcase-vector-pcrel -mcompact-casesi -mno-cond-exec -mearly-cbranchsi
  943. -mexpand-adddi -mindexed-loads -mlra -mlra-priority-none
  944. -mlra-priority-compact mlra-priority-noncompact -mmillicode
  945. -mmixed-code -mq-class -mRcq -mRcw -msize-level=LEVEL
  946. -mtune=CPU -mmultcost=NUM -mcode-density-frame
  947. -munalign-prob-threshold=PROBABILITY -mmpy-option=MULTO
  948. -mdiv-rem -mcode-density -mll64 -mfpu=FPU -mrf16 -mbranch-index
  949. _ARM Options_
  950. -mapcs-frame -mno-apcs-frame
  951. -mabi=NAME
  952. -mapcs-stack-check -mno-apcs-stack-check
  953. -mapcs-reentrant -mno-apcs-reentrant
  954. -mgeneral-regs-only
  955. -msched-prolog -mno-sched-prolog
  956. -mlittle-endian -mbig-endian
  957. -mbe8 -mbe32
  958. -mfloat-abi=NAME
  959. -mfp16-format=NAME
  960. -mthumb-interwork -mno-thumb-interwork
  961. -mcpu=NAME -march=NAME -mfpu=NAME
  962. -mtune=NAME -mprint-tune-info
  963. -mstructure-size-boundary=N
  964. -mabort-on-noreturn
  965. -mlong-calls -mno-long-calls
  966. -msingle-pic-base -mno-single-pic-base
  967. -mpic-register=REG
  968. -mnop-fun-dllimport
  969. -mpoke-function-name
  970. -mthumb -marm -mflip-thumb
  971. -mtpcs-frame -mtpcs-leaf-frame
  972. -mcaller-super-interworking -mcallee-super-interworking
  973. -mtp=NAME -mtls-dialect=DIALECT
  974. -mword-relocations
  975. -mfix-cortex-m3-ldrd
  976. -munaligned-access
  977. -mneon-for-64bits
  978. -mslow-flash-data
  979. -masm-syntax-unified
  980. -mrestrict-it
  981. -mverbose-cost-dump
  982. -mpure-code
  983. -mcmse
  984. -mfdpic
  985. _AVR Options_
  986. -mmcu=MCU -mabsdata -maccumulate-args
  987. -mbranch-cost=COST
  988. -mcall-prologues -mgas-isr-prologues -mint8
  989. -mdouble=BITS -mlong-double=BITS
  990. -mn_flash=SIZE -mno-interrupts
  991. -mmain-is-OS_task -mrelax -mrmw -mstrict-X -mtiny-stack
  992. -mfract-convert-truncate
  993. -mshort-calls -nodevicelib -nodevicespecs
  994. -Waddr-space-convert -Wmisspelled-isr
  995. _Blackfin Options_
  996. -mcpu=CPU[-SIREVISION]
  997. -msim -momit-leaf-frame-pointer -mno-omit-leaf-frame-pointer
  998. -mspecld-anomaly -mno-specld-anomaly -mcsync-anomaly -mno-csync-anomaly
  999. -mlow-64k -mno-low64k -mstack-check-l1 -mid-shared-library
  1000. -mno-id-shared-library -mshared-library-id=N
  1001. -mleaf-id-shared-library -mno-leaf-id-shared-library
  1002. -msep-data -mno-sep-data -mlong-calls -mno-long-calls
  1003. -mfast-fp -minline-plt -mmulticore -mcorea -mcoreb -msdram
  1004. -micplb
  1005. _C6X Options_
  1006. -mbig-endian -mlittle-endian -march=CPU
  1007. -msim -msdata=SDATA-TYPE
  1008. _CRIS Options_
  1009. -mcpu=CPU -march=CPU -mtune=CPU
  1010. -mmax-stack-frame=N -melinux-stacksize=N
  1011. -metrax4 -metrax100 -mpdebug -mcc-init -mno-side-effects
  1012. -mstack-align -mdata-align -mconst-align
  1013. -m32-bit -m16-bit -m8-bit -mno-prologue-epilogue -mno-gotplt
  1014. -melf -maout -melinux -mlinux -sim -sim2
  1015. -mmul-bug-workaround -mno-mul-bug-workaround
  1016. _CR16 Options_
  1017. -mmac
  1018. -mcr16cplus -mcr16c
  1019. -msim -mint32 -mbit-ops
  1020. -mdata-model=MODEL
  1021. _C-SKY Options_
  1022. -march=ARCH -mcpu=CPU
  1023. -mbig-endian -EB -mlittle-endian -EL
  1024. -mhard-float -msoft-float -mfpu=FPU -mdouble-float -mfdivdu
  1025. -melrw -mistack -mmp -mcp -mcache -msecurity -mtrust
  1026. -mdsp -medsp -mvdsp
  1027. -mdiv -msmart -mhigh-registers -manchor
  1028. -mpushpop -mmultiple-stld -mconstpool -mstack-size -mccrt
  1029. -mbranch-cost=N -mcse-cc -msched-prolog
  1030. _Darwin Options_
  1031. -all_load -allowable_client -arch -arch_errors_fatal
  1032. -arch_only -bind_at_load -bundle -bundle_loader
  1033. -client_name -compatibility_version -current_version
  1034. -dead_strip
  1035. -dependency-file -dylib_file -dylinker_install_name
  1036. -dynamic -dynamiclib -exported_symbols_list
  1037. -filelist -flat_namespace -force_cpusubtype_ALL
  1038. -force_flat_namespace -headerpad_max_install_names
  1039. -iframework
  1040. -image_base -init -install_name -keep_private_externs
  1041. -multi_module -multiply_defined -multiply_defined_unused
  1042. -noall_load -no_dead_strip_inits_and_terms
  1043. -nofixprebinding -nomultidefs -noprebind -noseglinkedit
  1044. -pagezero_size -prebind -prebind_all_twolevel_modules
  1045. -private_bundle -read_only_relocs -sectalign
  1046. -sectobjectsymbols -whyload -seg1addr
  1047. -sectcreate -sectobjectsymbols -sectorder
  1048. -segaddr -segs_read_only_addr -segs_read_write_addr
  1049. -seg_addr_table -seg_addr_table_filename -seglinkedit
  1050. -segprot -segs_read_only_addr -segs_read_write_addr
  1051. -single_module -static -sub_library -sub_umbrella
  1052. -twolevel_namespace -umbrella -undefined
  1053. -unexported_symbols_list -weak_reference_mismatches
  1054. -whatsloaded -F -gused -gfull -mmacosx-version-min=VERSION
  1055. -mkernel -mone-byte-bool
  1056. _DEC Alpha Options_
  1057. -mno-fp-regs -msoft-float
  1058. -mieee -mieee-with-inexact -mieee-conformant
  1059. -mfp-trap-mode=MODE -mfp-rounding-mode=MODE
  1060. -mtrap-precision=MODE -mbuild-constants
  1061. -mcpu=CPU-TYPE -mtune=CPU-TYPE
  1062. -mbwx -mmax -mfix -mcix
  1063. -mfloat-vax -mfloat-ieee
  1064. -mexplicit-relocs -msmall-data -mlarge-data
  1065. -msmall-text -mlarge-text
  1066. -mmemory-latency=TIME
  1067. _eBPF Options_
  1068. -mbig-endian -mlittle-endian -mkernel=VERSION
  1069. -mframe-limit=BYTES
  1070. _FR30 Options_
  1071. -msmall-model -mno-lsim
  1072. _FT32 Options_
  1073. -msim -mlra -mnodiv -mft32b -mcompress -mnopm
  1074. _FRV Options_
  1075. -mgpr-32 -mgpr-64 -mfpr-32 -mfpr-64
  1076. -mhard-float -msoft-float
  1077. -malloc-cc -mfixed-cc -mdword -mno-dword
  1078. -mdouble -mno-double
  1079. -mmedia -mno-media -mmuladd -mno-muladd
  1080. -mfdpic -minline-plt -mgprel-ro -multilib-library-pic
  1081. -mlinked-fp -mlong-calls -malign-labels
  1082. -mlibrary-pic -macc-4 -macc-8
  1083. -mpack -mno-pack -mno-eflags -mcond-move -mno-cond-move
  1084. -moptimize-membar -mno-optimize-membar
  1085. -mscc -mno-scc -mcond-exec -mno-cond-exec
  1086. -mvliw-branch -mno-vliw-branch
  1087. -mmulti-cond-exec -mno-multi-cond-exec -mnested-cond-exec
  1088. -mno-nested-cond-exec -mtomcat-stats
  1089. -mTLS -mtls
  1090. -mcpu=CPU
  1091. _GNU/Linux Options_
  1092. -mglibc -muclibc -mmusl -mbionic -mandroid
  1093. -tno-android-cc -tno-android-ld
  1094. _H8/300 Options_
  1095. -mrelax -mh -ms -mn -mexr -mno-exr -mint32 -malign-300
  1096. _HPPA Options_
  1097. -march=ARCHITECTURE-TYPE
  1098. -mcaller-copies -mdisable-fpregs -mdisable-indexing
  1099. -mfast-indirect-calls -mgas -mgnu-ld -mhp-ld
  1100. -mfixed-range=REGISTER-RANGE
  1101. -mjump-in-delay -mlinker-opt -mlong-calls
  1102. -mlong-load-store -mno-disable-fpregs
  1103. -mno-disable-indexing -mno-fast-indirect-calls -mno-gas
  1104. -mno-jump-in-delay -mno-long-load-store
  1105. -mno-portable-runtime -mno-soft-float
  1106. -mno-space-regs -msoft-float -mpa-risc-1-0
  1107. -mpa-risc-1-1 -mpa-risc-2-0 -mportable-runtime
  1108. -mschedule=CPU-TYPE -mspace-regs -msio -mwsio
  1109. -munix=UNIX-STD -nolibdld -static -threads
  1110. _IA-64 Options_
  1111. -mbig-endian -mlittle-endian -mgnu-as -mgnu-ld -mno-pic
  1112. -mvolatile-asm-stop -mregister-names -msdata -mno-sdata
  1113. -mconstant-gp -mauto-pic -mfused-madd
  1114. -minline-float-divide-min-latency
  1115. -minline-float-divide-max-throughput
  1116. -mno-inline-float-divide
  1117. -minline-int-divide-min-latency
  1118. -minline-int-divide-max-throughput
  1119. -mno-inline-int-divide
  1120. -minline-sqrt-min-latency -minline-sqrt-max-throughput
  1121. -mno-inline-sqrt
  1122. -mdwarf2-asm -mearly-stop-bits
  1123. -mfixed-range=REGISTER-RANGE -mtls-size=TLS-SIZE
  1124. -mtune=CPU-TYPE -milp32 -mlp64
  1125. -msched-br-data-spec -msched-ar-data-spec -msched-control-spec
  1126. -msched-br-in-data-spec -msched-ar-in-data-spec -msched-in-control-spec
  1127. -msched-spec-ldc -msched-spec-control-ldc
  1128. -msched-prefer-non-data-spec-insns -msched-prefer-non-control-spec-insns
  1129. -msched-stop-bits-after-every-cycle -msched-count-spec-in-critical-path
  1130. -msel-sched-dont-check-control-spec -msched-fp-mem-deps-zero-cost
  1131. -msched-max-memory-insns-hard-limit -msched-max-memory-insns=MAX-INSNS
  1132. _LM32 Options_
  1133. -mbarrel-shift-enabled -mdivide-enabled -mmultiply-enabled
  1134. -msign-extend-enabled -muser-enabled
  1135. _M32R/D Options_
  1136. -m32r2 -m32rx -m32r
  1137. -mdebug
  1138. -malign-loops -mno-align-loops
  1139. -missue-rate=NUMBER
  1140. -mbranch-cost=NUMBER
  1141. -mmodel=CODE-SIZE-MODEL-TYPE
  1142. -msdata=SDATA-TYPE
  1143. -mno-flush-func -mflush-func=NAME
  1144. -mno-flush-trap -mflush-trap=NUMBER
  1145. -G NUM
  1146. _M32C Options_
  1147. -mcpu=CPU -msim -memregs=NUMBER
  1148. _M680x0 Options_
  1149. -march=ARCH -mcpu=CPU -mtune=TUNE
  1150. -m68000 -m68020 -m68020-40 -m68020-60 -m68030 -m68040
  1151. -m68060 -mcpu32 -m5200 -m5206e -m528x -m5307 -m5407
  1152. -mcfv4e -mbitfield -mno-bitfield -mc68000 -mc68020
  1153. -mnobitfield -mrtd -mno-rtd -mdiv -mno-div -mshort
  1154. -mno-short -mhard-float -m68881 -msoft-float -mpcrel
  1155. -malign-int -mstrict-align -msep-data -mno-sep-data
  1156. -mshared-library-id=n -mid-shared-library -mno-id-shared-library
  1157. -mxgot -mno-xgot -mlong-jump-table-offsets
  1158. _MCore Options_
  1159. -mhardlit -mno-hardlit -mdiv -mno-div -mrelax-immediates
  1160. -mno-relax-immediates -mwide-bitfields -mno-wide-bitfields
  1161. -m4byte-functions -mno-4byte-functions -mcallgraph-data
  1162. -mno-callgraph-data -mslow-bytes -mno-slow-bytes -mno-lsim
  1163. -mlittle-endian -mbig-endian -m210 -m340 -mstack-increment
  1164. _MeP Options_
  1165. -mabsdiff -mall-opts -maverage -mbased=N -mbitops
  1166. -mc=N -mclip -mconfig=NAME -mcop -mcop32 -mcop64 -mivc2
  1167. -mdc -mdiv -meb -mel -mio-volatile -ml -mleadz -mm -mminmax
  1168. -mmult -mno-opts -mrepeat -ms -msatur -msdram -msim -msimnovec -mtf
  1169. -mtiny=N
  1170. _MicroBlaze Options_
  1171. -msoft-float -mhard-float -msmall-divides -mcpu=CPU
  1172. -mmemcpy -mxl-soft-mul -mxl-soft-div -mxl-barrel-shift
  1173. -mxl-pattern-compare -mxl-stack-check -mxl-gp-opt -mno-clearbss
  1174. -mxl-multiply-high -mxl-float-convert -mxl-float-sqrt
  1175. -mbig-endian -mlittle-endian -mxl-reorder -mxl-mode-APP-MODEL
  1176. -mpic-data-is-text-relative
  1177. _MIPS Options_
  1178. -EL -EB -march=ARCH -mtune=ARCH
  1179. -mips1 -mips2 -mips3 -mips4 -mips32 -mips32r2 -mips32r3 -mips32r5
  1180. -mips32r6 -mips64 -mips64r2 -mips64r3 -mips64r5 -mips64r6
  1181. -mips16 -mno-mips16 -mflip-mips16
  1182. -minterlink-compressed -mno-interlink-compressed
  1183. -minterlink-mips16 -mno-interlink-mips16
  1184. -mabi=ABI -mabicalls -mno-abicalls
  1185. -mshared -mno-shared -mplt -mno-plt -mxgot -mno-xgot
  1186. -mgp32 -mgp64 -mfp32 -mfpxx -mfp64 -mhard-float -msoft-float
  1187. -mno-float -msingle-float -mdouble-float
  1188. -modd-spreg -mno-odd-spreg
  1189. -mabs=MODE -mnan=ENCODING
  1190. -mdsp -mno-dsp -mdspr2 -mno-dspr2
  1191. -mmcu -mmno-mcu
  1192. -meva -mno-eva
  1193. -mvirt -mno-virt
  1194. -mxpa -mno-xpa
  1195. -mcrc -mno-crc
  1196. -mginv -mno-ginv
  1197. -mmicromips -mno-micromips
  1198. -mmsa -mno-msa
  1199. -mloongson-mmi -mno-loongson-mmi
  1200. -mloongson-ext -mno-loongson-ext
  1201. -mloongson-ext2 -mno-loongson-ext2
  1202. -mfpu=FPU-TYPE
  1203. -msmartmips -mno-smartmips
  1204. -mpaired-single -mno-paired-single -mdmx -mno-mdmx
  1205. -mips3d -mno-mips3d -mmt -mno-mt -mllsc -mno-llsc
  1206. -mlong64 -mlong32 -msym32 -mno-sym32
  1207. -GNUM -mlocal-sdata -mno-local-sdata
  1208. -mextern-sdata -mno-extern-sdata -mgpopt -mno-gopt
  1209. -membedded-data -mno-embedded-data
  1210. -muninit-const-in-rodata -mno-uninit-const-in-rodata
  1211. -mcode-readable=SETTING
  1212. -msplit-addresses -mno-split-addresses
  1213. -mexplicit-relocs -mno-explicit-relocs
  1214. -mcheck-zero-division -mno-check-zero-division
  1215. -mdivide-traps -mdivide-breaks
  1216. -mload-store-pairs -mno-load-store-pairs
  1217. -mmemcpy -mno-memcpy -mlong-calls -mno-long-calls
  1218. -mmad -mno-mad -mimadd -mno-imadd -mfused-madd -mno-fused-madd -nocpp
  1219. -mfix-24k -mno-fix-24k
  1220. -mfix-r4000 -mno-fix-r4000 -mfix-r4400 -mno-fix-r4400
  1221. -mfix-r5900 -mno-fix-r5900
  1222. -mfix-r10000 -mno-fix-r10000 -mfix-rm7000 -mno-fix-rm7000
  1223. -mfix-vr4120 -mno-fix-vr4120
  1224. -mfix-vr4130 -mno-fix-vr4130 -mfix-sb1 -mno-fix-sb1
  1225. -mflush-func=FUNC -mno-flush-func
  1226. -mbranch-cost=NUM -mbranch-likely -mno-branch-likely
  1227. -mcompact-branches=POLICY
  1228. -mfp-exceptions -mno-fp-exceptions
  1229. -mvr4130-align -mno-vr4130-align -msynci -mno-synci
  1230. -mlxc1-sxc1 -mno-lxc1-sxc1 -mmadd4 -mno-madd4
  1231. -mrelax-pic-calls -mno-relax-pic-calls -mmcount-ra-address
  1232. -mframe-header-opt -mno-frame-header-opt
  1233. _MMIX Options_
  1234. -mlibfuncs -mno-libfuncs -mepsilon -mno-epsilon -mabi=gnu
  1235. -mabi=mmixware -mzero-extend -mknuthdiv -mtoplevel-symbols
  1236. -melf -mbranch-predict -mno-branch-predict -mbase-addresses
  1237. -mno-base-addresses -msingle-exit -mno-single-exit
  1238. _MN10300 Options_
  1239. -mmult-bug -mno-mult-bug
  1240. -mno-am33 -mam33 -mam33-2 -mam34
  1241. -mtune=CPU-TYPE
  1242. -mreturn-pointer-on-d0
  1243. -mno-crt0 -mrelax -mliw -msetlb
  1244. _Moxie Options_
  1245. -meb -mel -mmul.x -mno-crt0
  1246. _MSP430 Options_
  1247. -msim -masm-hex -mmcu= -mcpu= -mlarge -msmall -mrelax
  1248. -mwarn-mcu
  1249. -mcode-region= -mdata-region=
  1250. -msilicon-errata= -msilicon-errata-warn=
  1251. -mhwmult= -minrt -mtiny-printf
  1252. _NDS32 Options_
  1253. -mbig-endian -mlittle-endian
  1254. -mreduced-regs -mfull-regs
  1255. -mcmov -mno-cmov
  1256. -mext-perf -mno-ext-perf
  1257. -mext-perf2 -mno-ext-perf2
  1258. -mext-string -mno-ext-string
  1259. -mv3push -mno-v3push
  1260. -m16bit -mno-16bit
  1261. -misr-vector-size=NUM
  1262. -mcache-block-size=NUM
  1263. -march=ARCH
  1264. -mcmodel=CODE-MODEL
  1265. -mctor-dtor -mrelax
  1266. _Nios II Options_
  1267. -G NUM -mgpopt=OPTION -mgpopt -mno-gpopt
  1268. -mgprel-sec=REGEXP -mr0rel-sec=REGEXP
  1269. -mel -meb
  1270. -mno-bypass-cache -mbypass-cache
  1271. -mno-cache-volatile -mcache-volatile
  1272. -mno-fast-sw-div -mfast-sw-div
  1273. -mhw-mul -mno-hw-mul -mhw-mulx -mno-hw-mulx -mno-hw-div -mhw-div
  1274. -mcustom-INSN=N -mno-custom-INSN
  1275. -mcustom-fpu-cfg=NAME
  1276. -mhal -msmallc -msys-crt0=NAME -msys-lib=NAME
  1277. -march=ARCH -mbmx -mno-bmx -mcdx -mno-cdx
  1278. _Nvidia PTX Options_
  1279. -m32 -m64 -mmainkernel -moptimize
  1280. _OpenRISC Options_
  1281. -mboard=NAME -mnewlib -mhard-mul -mhard-div
  1282. -msoft-mul -msoft-div
  1283. -msoft-float -mhard-float -mdouble-float -munordered-float
  1284. -mcmov -mror -mrori -msext -msfimm -mshftimm
  1285. _PDP-11 Options_
  1286. -mfpu -msoft-float -mac0 -mno-ac0 -m40 -m45 -m10
  1287. -mint32 -mno-int16 -mint16 -mno-int32
  1288. -msplit -munix-asm -mdec-asm -mgnu-asm -mlra
  1289. _picoChip Options_
  1290. -mae=AE_TYPE -mvliw-lookahead=N
  1291. -msymbol-as-address -mno-inefficient-warnings
  1292. _PowerPC Options_ See RS/6000 and PowerPC Options.
  1293. _PRU Options_
  1294. -mmcu=MCU -minrt -mno-relax -mloop
  1295. -mabi=VARIANT
  1296. _RISC-V Options_
  1297. -mbranch-cost=N-INSTRUCTION
  1298. -mplt -mno-plt
  1299. -mabi=ABI-STRING
  1300. -mfdiv -mno-fdiv
  1301. -mdiv -mno-div
  1302. -march=ISA-STRING
  1303. -mtune=PROCESSOR-STRING
  1304. -mpreferred-stack-boundary=NUM
  1305. -msmall-data-limit=N-BYTES
  1306. -msave-restore -mno-save-restore
  1307. -mshorten-memrefs -mno-shorten-memrefs
  1308. -mstrict-align -mno-strict-align
  1309. -mcmodel=medlow -mcmodel=medany
  1310. -mexplicit-relocs -mno-explicit-relocs
  1311. -mrelax -mno-relax
  1312. -mriscv-attribute -mmo-riscv-attribute
  1313. -malign-data=TYPE
  1314. _RL78 Options_
  1315. -msim -mmul=none -mmul=g13 -mmul=g14 -mallregs
  1316. -mcpu=g10 -mcpu=g13 -mcpu=g14 -mg10 -mg13 -mg14
  1317. -m64bit-doubles -m32bit-doubles -msave-mduc-in-interrupts
  1318. _RS/6000 and PowerPC Options_
  1319. -mcpu=CPU-TYPE
  1320. -mtune=CPU-TYPE
  1321. -mcmodel=CODE-MODEL
  1322. -mpowerpc64
  1323. -maltivec -mno-altivec
  1324. -mpowerpc-gpopt -mno-powerpc-gpopt
  1325. -mpowerpc-gfxopt -mno-powerpc-gfxopt
  1326. -mmfcrf -mno-mfcrf -mpopcntb -mno-popcntb -mpopcntd -mno-popcntd
  1327. -mfprnd -mno-fprnd
  1328. -mcmpb -mno-cmpb -mhard-dfp -mno-hard-dfp
  1329. -mfull-toc -mminimal-toc -mno-fp-in-toc -mno-sum-in-toc
  1330. -m64 -m32 -mxl-compat -mno-xl-compat -mpe
  1331. -malign-power -malign-natural
  1332. -msoft-float -mhard-float -mmultiple -mno-multiple
  1333. -mupdate -mno-update
  1334. -mavoid-indexed-addresses -mno-avoid-indexed-addresses
  1335. -mfused-madd -mno-fused-madd -mbit-align -mno-bit-align
  1336. -mstrict-align -mno-strict-align -mrelocatable
  1337. -mno-relocatable -mrelocatable-lib -mno-relocatable-lib
  1338. -mtoc -mno-toc -mlittle -mlittle-endian -mbig -mbig-endian
  1339. -mdynamic-no-pic -mswdiv -msingle-pic-base
  1340. -mprioritize-restricted-insns=PRIORITY
  1341. -msched-costly-dep=DEPENDENCE_TYPE
  1342. -minsert-sched-nops=SCHEME
  1343. -mcall-aixdesc -mcall-eabi -mcall-freebsd
  1344. -mcall-linux -mcall-netbsd -mcall-openbsd
  1345. -mcall-sysv -mcall-sysv-eabi -mcall-sysv-noeabi
  1346. -mtraceback=TRACEBACK_TYPE
  1347. -maix-struct-return -msvr4-struct-return
  1348. -mabi=ABI-TYPE -msecure-plt -mbss-plt
  1349. -mlongcall -mno-longcall -mpltseq -mno-pltseq
  1350. -mblock-move-inline-limit=NUM
  1351. -mblock-compare-inline-limit=NUM
  1352. -mblock-compare-inline-loop-limit=NUM
  1353. -mstring-compare-inline-limit=NUM
  1354. -misel -mno-isel
  1355. -mvrsave -mno-vrsave
  1356. -mmulhw -mno-mulhw
  1357. -mdlmzb -mno-dlmzb
  1358. -mprototype -mno-prototype
  1359. -msim -mmvme -mads -myellowknife -memb -msdata
  1360. -msdata=OPT -mreadonly-in-sdata -mvxworks -G NUM
  1361. -mrecip -mrecip=OPT -mno-recip -mrecip-precision
  1362. -mno-recip-precision
  1363. -mveclibabi=TYPE -mfriz -mno-friz
  1364. -mpointers-to-nested-functions -mno-pointers-to-nested-functions
  1365. -msave-toc-indirect -mno-save-toc-indirect
  1366. -mpower8-fusion -mno-mpower8-fusion -mpower8-vector -mno-power8-vector
  1367. -mcrypto -mno-crypto -mhtm -mno-htm
  1368. -mquad-memory -mno-quad-memory
  1369. -mquad-memory-atomic -mno-quad-memory-atomic
  1370. -mcompat-align-parm -mno-compat-align-parm
  1371. -mfloat128 -mno-float128 -mfloat128-hardware -mno-float128-hardware
  1372. -mgnu-attribute -mno-gnu-attribute
  1373. -mstack-protector-guard=GUARD -mstack-protector-guard-reg=REG
  1374. -mstack-protector-guard-offset=OFFSET -mprefixed -mno-prefixed
  1375. -mpcrel -mno-pcrel
  1376. _RX Options_
  1377. -m64bit-doubles -m32bit-doubles -fpu -nofpu
  1378. -mcpu=
  1379. -mbig-endian-data -mlittle-endian-data
  1380. -msmall-data
  1381. -msim -mno-sim
  1382. -mas100-syntax -mno-as100-syntax
  1383. -mrelax
  1384. -mmax-constant-size=
  1385. -mint-register=
  1386. -mpid
  1387. -mallow-string-insns -mno-allow-string-insns
  1388. -mjsr
  1389. -mno-warn-multiple-fast-interrupts
  1390. -msave-acc-in-interrupts
  1391. _S/390 and zSeries Options_
  1392. -mtune=CPU-TYPE -march=CPU-TYPE
  1393. -mhard-float -msoft-float -mhard-dfp -mno-hard-dfp
  1394. -mlong-double-64 -mlong-double-128
  1395. -mbackchain -mno-backchain -mpacked-stack -mno-packed-stack
  1396. -msmall-exec -mno-small-exec -mmvcle -mno-mvcle
  1397. -m64 -m31 -mdebug -mno-debug -mesa -mzarch
  1398. -mhtm -mvx -mzvector
  1399. -mtpf-trace -mno-tpf-trace -mtpf-trace-skip -mno-tpf-trace-skip
  1400. -mfused-madd -mno-fused-madd
  1401. -mwarn-framesize -mwarn-dynamicstack -mstack-size -mstack-guard
  1402. -mhotpatch=HALFWORDS,HALFWORDS
  1403. _Score Options_
  1404. -meb -mel
  1405. -mnhwloop
  1406. -muls
  1407. -mmac
  1408. -mscore5 -mscore5u -mscore7 -mscore7d
  1409. _SH Options_
  1410. -m1 -m2 -m2e
  1411. -m2a-nofpu -m2a-single-only -m2a-single -m2a
  1412. -m3 -m3e
  1413. -m4-nofpu -m4-single-only -m4-single -m4
  1414. -m4a-nofpu -m4a-single-only -m4a-single -m4a -m4al
  1415. -mb -ml -mdalign -mrelax
  1416. -mbigtable -mfmovd -mrenesas -mno-renesas -mnomacsave
  1417. -mieee -mno-ieee -mbitops -misize -minline-ic_invalidate -mpadstruct
  1418. -mprefergot -musermode -multcost=NUMBER -mdiv=STRATEGY
  1419. -mdivsi3_libfunc=NAME -mfixed-range=REGISTER-RANGE
  1420. -maccumulate-outgoing-args
  1421. -matomic-model=ATOMIC-MODEL
  1422. -mbranch-cost=NUM -mzdcbranch -mno-zdcbranch
  1423. -mcbranch-force-delay-slot
  1424. -mfused-madd -mno-fused-madd -mfsca -mno-fsca -mfsrra -mno-fsrra
  1425. -mpretend-cmove -mtas
  1426. _Solaris 2 Options_
  1427. -mclear-hwcap -mno-clear-hwcap -mimpure-text -mno-impure-text
  1428. -pthreads
  1429. _SPARC Options_
  1430. -mcpu=CPU-TYPE
  1431. -mtune=CPU-TYPE
  1432. -mcmodel=CODE-MODEL
  1433. -mmemory-model=MEM-MODEL
  1434. -m32 -m64 -mapp-regs -mno-app-regs
  1435. -mfaster-structs -mno-faster-structs -mflat -mno-flat
  1436. -mfpu -mno-fpu -mhard-float -msoft-float
  1437. -mhard-quad-float -msoft-quad-float
  1438. -mstack-bias -mno-stack-bias
  1439. -mstd-struct-return -mno-std-struct-return
  1440. -munaligned-doubles -mno-unaligned-doubles
  1441. -muser-mode -mno-user-mode
  1442. -mv8plus -mno-v8plus -mvis -mno-vis
  1443. -mvis2 -mno-vis2 -mvis3 -mno-vis3
  1444. -mvis4 -mno-vis4 -mvis4b -mno-vis4b
  1445. -mcbcond -mno-cbcond -mfmaf -mno-fmaf -mfsmuld -mno-fsmuld
  1446. -mpopc -mno-popc -msubxc -mno-subxc
  1447. -mfix-at697f -mfix-ut699 -mfix-ut700 -mfix-gr712rc
  1448. -mlra -mno-lra
  1449. _System V Options_
  1450. -Qy -Qn -YP,PATHS -Ym,DIR
  1451. _TILE-Gx Options_
  1452. -mcpu=CPU -m32 -m64 -mbig-endian -mlittle-endian
  1453. -mcmodel=CODE-MODEL
  1454. _TILEPro Options_
  1455. -mcpu=CPU -m32
  1456. _V850 Options_
  1457. -mlong-calls -mno-long-calls -mep -mno-ep
  1458. -mprolog-function -mno-prolog-function -mspace
  1459. -mtda=N -msda=N -mzda=N
  1460. -mapp-regs -mno-app-regs
  1461. -mdisable-callt -mno-disable-callt
  1462. -mv850e2v3 -mv850e2 -mv850e1 -mv850es
  1463. -mv850e -mv850 -mv850e3v5
  1464. -mloop
  1465. -mrelax
  1466. -mlong-jumps
  1467. -msoft-float
  1468. -mhard-float
  1469. -mgcc-abi
  1470. -mrh850-abi
  1471. -mbig-switch
  1472. _VAX Options_
  1473. -mg -mgnu -munix
  1474. _Visium Options_
  1475. -mdebug -msim -mfpu -mno-fpu -mhard-float -msoft-float
  1476. -mcpu=CPU-TYPE -mtune=CPU-TYPE -msv-mode -muser-mode
  1477. _VMS Options_
  1478. -mvms-return-codes -mdebug-main=PREFIX -mmalloc64
  1479. -mpointer-size=SIZE
  1480. _VxWorks Options_
  1481. -mrtp -non-static -Bstatic -Bdynamic
  1482. -Xbind-lazy -Xbind-now
  1483. _x86 Options_
  1484. -mtune=CPU-TYPE -march=CPU-TYPE
  1485. -mtune-ctrl=FEATURE-LIST -mdump-tune-features -mno-default
  1486. -mfpmath=UNIT
  1487. -masm=DIALECT -mno-fancy-math-387
  1488. -mno-fp-ret-in-387 -m80387 -mhard-float -msoft-float
  1489. -mno-wide-multiply -mrtd -malign-double
  1490. -mpreferred-stack-boundary=NUM
  1491. -mincoming-stack-boundary=NUM
  1492. -mcld -mcx16 -msahf -mmovbe -mcrc32
  1493. -mrecip -mrecip=OPT
  1494. -mvzeroupper -mprefer-avx128 -mprefer-vector-width=OPT
  1495. -mmmx -msse -msse2 -msse3 -mssse3 -msse4.1 -msse4.2 -msse4 -mavx
  1496. -mavx2 -mavx512f -mavx512pf -mavx512er -mavx512cd -mavx512vl
  1497. -mavx512bw -mavx512dq -mavx512ifma -mavx512vbmi -msha -maes
  1498. -mpclmul -mfsgsbase -mrdrnd -mf16c -mfma -mpconfig -mwbnoinvd
  1499. -mptwrite -mprefetchwt1 -mclflushopt -mclwb -mxsavec -mxsaves
  1500. -msse4a -m3dnow -m3dnowa -mpopcnt -mabm -mbmi -mtbm -mfma4 -mxop
  1501. -madx -mlzcnt -mbmi2 -mfxsr -mxsave -mxsaveopt -mrtm -mhle -mlwp
  1502. -mmwaitx -mclzero -mpku -mthreads -mgfni -mvaes -mwaitpkg
  1503. -mshstk -mmanual-endbr -mforce-indirect-call -mavx512vbmi2 -mavx512bf16 -menqcmd
  1504. -mvpclmulqdq -mavx512bitalg -mmovdiri -mmovdir64b -mavx512vpopcntdq
  1505. -mavx5124fmaps -mavx512vnni -mavx5124vnniw -mprfchw -mrdpid
  1506. -mrdseed -msgx -mavx512vp2intersect
  1507. -mcldemote -mms-bitfields -mno-align-stringops -minline-all-stringops
  1508. -minline-stringops-dynamically -mstringop-strategy=ALG
  1509. -mmemcpy-strategy=STRATEGY -mmemset-strategy=STRATEGY
  1510. -mpush-args -maccumulate-outgoing-args -m128bit-long-double
  1511. -m96bit-long-double -mlong-double-64 -mlong-double-80 -mlong-double-128
  1512. -mregparm=NUM -msseregparm
  1513. -mveclibabi=TYPE -mvect8-ret-in-mem
  1514. -mpc32 -mpc64 -mpc80 -mstackrealign
  1515. -momit-leaf-frame-pointer -mno-red-zone -mno-tls-direct-seg-refs
  1516. -mcmodel=CODE-MODEL -mabi=NAME -maddress-mode=MODE
  1517. -m32 -m64 -mx32 -m16 -miamcu -mlarge-data-threshold=NUM
  1518. -msse2avx -mfentry -mrecord-mcount -mnop-mcount -m8bit-idiv
  1519. -minstrument-return=TYPE -mfentry-name=NAME -mfentry-section=NAME
  1520. -mavx256-split-unaligned-load -mavx256-split-unaligned-store
  1521. -malign-data=TYPE -mstack-protector-guard=GUARD
  1522. -mstack-protector-guard-reg=REG
  1523. -mstack-protector-guard-offset=OFFSET
  1524. -mstack-protector-guard-symbol=SYMBOL
  1525. -mgeneral-regs-only -mcall-ms2sysv-xlogues
  1526. -mindirect-branch=CHOICE -mfunction-return=CHOICE
  1527. -mindirect-branch-register
  1528. _x86 Windows Options_
  1529. -mconsole -mcygwin -mno-cygwin -mdll
  1530. -mnop-fun-dllimport -mthread
  1531. -municode -mwin32 -mwindows -fno-set-stack-executable
  1532. _Xstormy16 Options_
  1533. -msim
  1534. _Xtensa Options_
  1535. -mconst16 -mno-const16
  1536. -mfused-madd -mno-fused-madd
  1537. -mforce-no-pic
  1538. -mserialize-volatile -mno-serialize-volatile
  1539. -mtext-section-literals -mno-text-section-literals
  1540. -mauto-litpools -mno-auto-litpools
  1541. -mtarget-align -mno-target-align
  1542. -mlongcalls -mno-longcalls
  1543. _zSeries Options_ See S/390 and zSeries Options.
  1544. 
  1545. File: gcc.info, Node: Overall Options, Next: Invoking G++, Prev: Option Summary, Up: Invoking GCC
  1546. 3.2 Options Controlling the Kind of Output
  1547. ==========================================
  1548. Compilation can involve up to four stages: preprocessing, compilation
  1549. proper, assembly and linking, always in that order. GCC is capable of
  1550. preprocessing and compiling several files either into several assembler
  1551. input files, or into one assembler input file; then each assembler input
  1552. file produces an object file, and linking combines all the object files
  1553. (those newly compiled, and those specified as input) into an executable
  1554. file.
  1555. For any given input file, the file name suffix determines what kind of
  1556. compilation is done:
  1557. 'FILE.c'
  1558. C source code that must be preprocessed.
  1559. 'FILE.i'
  1560. C source code that should not be preprocessed.
  1561. 'FILE.ii'
  1562. C++ source code that should not be preprocessed.
  1563. 'FILE.m'
  1564. Objective-C source code. Note that you must link with the
  1565. 'libobjc' library to make an Objective-C program work.
  1566. 'FILE.mi'
  1567. Objective-C source code that should not be preprocessed.
  1568. 'FILE.mm'
  1569. 'FILE.M'
  1570. Objective-C++ source code. Note that you must link with the
  1571. 'libobjc' library to make an Objective-C++ program work. Note that
  1572. '.M' refers to a literal capital M.
  1573. 'FILE.mii'
  1574. Objective-C++ source code that should not be preprocessed.
  1575. 'FILE.h'
  1576. C, C++, Objective-C or Objective-C++ header file to be turned into
  1577. a precompiled header (default), or C, C++ header file to be turned
  1578. into an Ada spec (via the '-fdump-ada-spec' switch).
  1579. 'FILE.cc'
  1580. 'FILE.cp'
  1581. 'FILE.cxx'
  1582. 'FILE.cpp'
  1583. 'FILE.CPP'
  1584. 'FILE.c++'
  1585. 'FILE.C'
  1586. C++ source code that must be preprocessed. Note that in '.cxx',
  1587. the last two letters must both be literally 'x'. Likewise, '.C'
  1588. refers to a literal capital C.
  1589. 'FILE.mm'
  1590. 'FILE.M'
  1591. Objective-C++ source code that must be preprocessed.
  1592. 'FILE.mii'
  1593. Objective-C++ source code that should not be preprocessed.
  1594. 'FILE.hh'
  1595. 'FILE.H'
  1596. 'FILE.hp'
  1597. 'FILE.hxx'
  1598. 'FILE.hpp'
  1599. 'FILE.HPP'
  1600. 'FILE.h++'
  1601. 'FILE.tcc'
  1602. C++ header file to be turned into a precompiled header or Ada spec.
  1603. 'FILE.f'
  1604. 'FILE.for'
  1605. 'FILE.ftn'
  1606. Fixed form Fortran source code that should not be preprocessed.
  1607. 'FILE.F'
  1608. 'FILE.FOR'
  1609. 'FILE.fpp'
  1610. 'FILE.FPP'
  1611. 'FILE.FTN'
  1612. Fixed form Fortran source code that must be preprocessed (with the
  1613. traditional preprocessor).
  1614. 'FILE.f90'
  1615. 'FILE.f95'
  1616. 'FILE.f03'
  1617. 'FILE.f08'
  1618. Free form Fortran source code that should not be preprocessed.
  1619. 'FILE.F90'
  1620. 'FILE.F95'
  1621. 'FILE.F03'
  1622. 'FILE.F08'
  1623. Free form Fortran source code that must be preprocessed (with the
  1624. traditional preprocessor).
  1625. 'FILE.go'
  1626. Go source code.
  1627. 'FILE.brig'
  1628. BRIG files (binary representation of HSAIL).
  1629. 'FILE.d'
  1630. D source code.
  1631. 'FILE.di'
  1632. D interface file.
  1633. 'FILE.dd'
  1634. D documentation code (Ddoc).
  1635. 'FILE.ads'
  1636. Ada source code file that contains a library unit declaration (a
  1637. declaration of a package, subprogram, or generic, or a generic
  1638. instantiation), or a library unit renaming declaration (a package,
  1639. generic, or subprogram renaming declaration). Such files are also
  1640. called "specs".
  1641. 'FILE.adb'
  1642. Ada source code file containing a library unit body (a subprogram
  1643. or package body). Such files are also called "bodies".
  1644. 'FILE.s'
  1645. Assembler code.
  1646. 'FILE.S'
  1647. 'FILE.sx'
  1648. Assembler code that must be preprocessed.
  1649. 'OTHER'
  1650. An object file to be fed straight into linking. Any file name with
  1651. no recognized suffix is treated this way.
  1652. You can specify the input language explicitly with the '-x' option:
  1653. '-x LANGUAGE'
  1654. Specify explicitly the LANGUAGE for the following input files
  1655. (rather than letting the compiler choose a default based on the
  1656. file name suffix). This option applies to all following input
  1657. files until the next '-x' option. Possible values for LANGUAGE
  1658. are:
  1659. c c-header cpp-output
  1660. c++ c++-header c++-cpp-output
  1661. objective-c objective-c-header objective-c-cpp-output
  1662. objective-c++ objective-c++-header objective-c++-cpp-output
  1663. assembler assembler-with-cpp
  1664. ada
  1665. d
  1666. f77 f77-cpp-input f95 f95-cpp-input
  1667. go
  1668. brig
  1669. '-x none'
  1670. Turn off any specification of a language, so that subsequent files
  1671. are handled according to their file name suffixes (as they are if
  1672. '-x' has not been used at all).
  1673. If you only want some of the stages of compilation, you can use '-x'
  1674. (or filename suffixes) to tell 'gcc' where to start, and one of the
  1675. options '-c', '-S', or '-E' to say where 'gcc' is to stop. Note that
  1676. some combinations (for example, '-x cpp-output -E') instruct 'gcc' to do
  1677. nothing at all.
  1678. '-c'
  1679. Compile or assemble the source files, but do not link. The linking
  1680. stage simply is not done. The ultimate output is in the form of an
  1681. object file for each source file.
  1682. By default, the object file name for a source file is made by
  1683. replacing the suffix '.c', '.i', '.s', etc., with '.o'.
  1684. Unrecognized input files, not requiring compilation or assembly,
  1685. are ignored.
  1686. '-S'
  1687. Stop after the stage of compilation proper; do not assemble. The
  1688. output is in the form of an assembler code file for each
  1689. non-assembler input file specified.
  1690. By default, the assembler file name for a source file is made by
  1691. replacing the suffix '.c', '.i', etc., with '.s'.
  1692. Input files that don't require compilation are ignored.
  1693. '-E'
  1694. Stop after the preprocessing stage; do not run the compiler proper.
  1695. The output is in the form of preprocessed source code, which is
  1696. sent to the standard output.
  1697. Input files that don't require preprocessing are ignored.
  1698. '-o FILE'
  1699. Place output in file FILE. This applies to whatever sort of output
  1700. is being produced, whether it be an executable file, an object
  1701. file, an assembler file or preprocessed C code.
  1702. If '-o' is not specified, the default is to put an executable file
  1703. in 'a.out', the object file for 'SOURCE.SUFFIX' in 'SOURCE.o', its
  1704. assembler file in 'SOURCE.s', a precompiled header file in
  1705. 'SOURCE.SUFFIX.gch', and all preprocessed C source on standard
  1706. output.
  1707. '-v'
  1708. Print (on standard error output) the commands executed to run the
  1709. stages of compilation. Also print the version number of the
  1710. compiler driver program and of the preprocessor and the compiler
  1711. proper.
  1712. '-###'
  1713. Like '-v' except the commands are not executed and arguments are
  1714. quoted unless they contain only alphanumeric characters or './-_'.
  1715. This is useful for shell scripts to capture the driver-generated
  1716. command lines.
  1717. '--help'
  1718. Print (on the standard output) a description of the command-line
  1719. options understood by 'gcc'. If the '-v' option is also specified
  1720. then '--help' is also passed on to the various processes invoked by
  1721. 'gcc', so that they can display the command-line options they
  1722. accept. If the '-Wextra' option has also been specified (prior to
  1723. the '--help' option), then command-line options that have no
  1724. documentation associated with them are also displayed.
  1725. '--target-help'
  1726. Print (on the standard output) a description of target-specific
  1727. command-line options for each tool. For some targets extra
  1728. target-specific information may also be printed.
  1729. '--help={CLASS|[^]QUALIFIER}[,...]'
  1730. Print (on the standard output) a description of the command-line
  1731. options understood by the compiler that fit into all specified
  1732. classes and qualifiers. These are the supported classes:
  1733. 'optimizers'
  1734. Display all of the optimization options supported by the
  1735. compiler.
  1736. 'warnings'
  1737. Display all of the options controlling warning messages
  1738. produced by the compiler.
  1739. 'target'
  1740. Display target-specific options. Unlike the '--target-help'
  1741. option however, target-specific options of the linker and
  1742. assembler are not displayed. This is because those tools do
  1743. not currently support the extended '--help=' syntax.
  1744. 'params'
  1745. Display the values recognized by the '--param' option.
  1746. LANGUAGE
  1747. Display the options supported for LANGUAGE, where LANGUAGE is
  1748. the name of one of the languages supported in this version of
  1749. GCC. If an option is supported by all languages, one needs to
  1750. select 'common' class.
  1751. 'common'
  1752. Display the options that are common to all languages.
  1753. These are the supported qualifiers:
  1754. 'undocumented'
  1755. Display only those options that are undocumented.
  1756. 'joined'
  1757. Display options taking an argument that appears after an equal
  1758. sign in the same continuous piece of text, such as:
  1759. '--help=target'.
  1760. 'separate'
  1761. Display options taking an argument that appears as a separate
  1762. word following the original option, such as: '-o output-file'.
  1763. Thus for example to display all the undocumented target-specific
  1764. switches supported by the compiler, use:
  1765. --help=target,undocumented
  1766. The sense of a qualifier can be inverted by prefixing it with the
  1767. '^' character, so for example to display all binary warning options
  1768. (i.e., ones that are either on or off and that do not take an
  1769. argument) that have a description, use:
  1770. --help=warnings,^joined,^undocumented
  1771. The argument to '--help=' should not consist solely of inverted
  1772. qualifiers.
  1773. Combining several classes is possible, although this usually
  1774. restricts the output so much that there is nothing to display. One
  1775. case where it does work, however, is when one of the classes is
  1776. TARGET. For example, to display all the target-specific
  1777. optimization options, use:
  1778. --help=target,optimizers
  1779. The '--help=' option can be repeated on the command line. Each
  1780. successive use displays its requested class of options, skipping
  1781. those that have already been displayed. If '--help' is also
  1782. specified anywhere on the command line then this takes precedence
  1783. over any '--help=' option.
  1784. If the '-Q' option appears on the command line before the '--help='
  1785. option, then the descriptive text displayed by '--help=' is
  1786. changed. Instead of describing the displayed options, an
  1787. indication is given as to whether the option is enabled, disabled
  1788. or set to a specific value (assuming that the compiler knows this
  1789. at the point where the '--help=' option is used).
  1790. Here is a truncated example from the ARM port of 'gcc':
  1791. % gcc -Q -mabi=2 --help=target -c
  1792. The following options are target specific:
  1793. -mabi= 2
  1794. -mabort-on-noreturn [disabled]
  1795. -mapcs [disabled]
  1796. The output is sensitive to the effects of previous command-line
  1797. options, so for example it is possible to find out which
  1798. optimizations are enabled at '-O2' by using:
  1799. -Q -O2 --help=optimizers
  1800. Alternatively you can discover which binary optimizations are
  1801. enabled by '-O3' by using:
  1802. gcc -c -Q -O3 --help=optimizers > /tmp/O3-opts
  1803. gcc -c -Q -O2 --help=optimizers > /tmp/O2-opts
  1804. diff /tmp/O2-opts /tmp/O3-opts | grep enabled
  1805. '--version'
  1806. Display the version number and copyrights of the invoked GCC.
  1807. '-pass-exit-codes'
  1808. Normally the 'gcc' program exits with the code of 1 if any phase of
  1809. the compiler returns a non-success return code. If you specify
  1810. '-pass-exit-codes', the 'gcc' program instead returns with the
  1811. numerically highest error produced by any phase returning an error
  1812. indication. The C, C++, and Fortran front ends return 4 if an
  1813. internal compiler error is encountered.
  1814. '-pipe'
  1815. Use pipes rather than temporary files for communication between the
  1816. various stages of compilation. This fails to work on some systems
  1817. where the assembler is unable to read from a pipe; but the GNU
  1818. assembler has no trouble.
  1819. '-specs=FILE'
  1820. Process FILE after the compiler reads in the standard 'specs' file,
  1821. in order to override the defaults which the 'gcc' driver program
  1822. uses when determining what switches to pass to 'cc1', 'cc1plus',
  1823. 'as', 'ld', etc. More than one '-specs=FILE' can be specified on
  1824. the command line, and they are processed in order, from left to
  1825. right. *Note Spec Files::, for information about the format of the
  1826. FILE.
  1827. '-wrapper'
  1828. Invoke all subcommands under a wrapper program. The name of the
  1829. wrapper program and its parameters are passed as a comma separated
  1830. list.
  1831. gcc -c t.c -wrapper gdb,--args
  1832. This invokes all subprograms of 'gcc' under 'gdb --args', thus the
  1833. invocation of 'cc1' is 'gdb --args cc1 ...'.
  1834. '-ffile-prefix-map=OLD=NEW'
  1835. When compiling files residing in directory 'OLD', record any
  1836. references to them in the result of the compilation as if the files
  1837. resided in directory 'NEW' instead. Specifying this option is
  1838. equivalent to specifying all the individual '-f*-prefix-map'
  1839. options. This can be used to make reproducible builds that are
  1840. location independent. See also '-fmacro-prefix-map' and
  1841. '-fdebug-prefix-map'.
  1842. '-fplugin=NAME.so'
  1843. Load the plugin code in file NAME.so, assumed to be a shared object
  1844. to be dlopen'd by the compiler. The base name of the shared object
  1845. file is used to identify the plugin for the purposes of argument
  1846. parsing (See '-fplugin-arg-NAME-KEY=VALUE' below). Each plugin
  1847. should define the callback functions specified in the Plugins API.
  1848. '-fplugin-arg-NAME-KEY=VALUE'
  1849. Define an argument called KEY with a value of VALUE for the plugin
  1850. called NAME.
  1851. '-fdump-ada-spec[-slim]'
  1852. For C and C++ source and include files, generate corresponding Ada
  1853. specs. *Note (gnat_ugn)Generating Ada Bindings for C and C++
  1854. headers::, which provides detailed documentation on this feature.
  1855. '-fada-spec-parent=UNIT'
  1856. In conjunction with '-fdump-ada-spec[-slim]' above, generate Ada
  1857. specs as child units of parent UNIT.
  1858. '-fdump-go-spec=FILE'
  1859. For input files in any language, generate corresponding Go
  1860. declarations in FILE. This generates Go 'const', 'type', 'var',
  1861. and 'func' declarations which may be a useful way to start writing
  1862. a Go interface to code written in some other language.
  1863. '@FILE'
  1864. Read command-line options from FILE. The options read are inserted
  1865. in place of the original @FILE option. If FILE does not exist, or
  1866. cannot be read, then the option will be treated literally, and not
  1867. removed.
  1868. Options in FILE are separated by whitespace. A whitespace
  1869. character may be included in an option by surrounding the entire
  1870. option in either single or double quotes. Any character (including
  1871. a backslash) may be included by prefixing the character to be
  1872. included with a backslash. The FILE may itself contain additional
  1873. @FILE options; any such options will be processed recursively.
  1874. 
  1875. File: gcc.info, Node: Invoking G++, Next: C Dialect Options, Prev: Overall Options, Up: Invoking GCC
  1876. 3.3 Compiling C++ Programs
  1877. ==========================
  1878. C++ source files conventionally use one of the suffixes '.C', '.cc',
  1879. '.cpp', '.CPP', '.c++', '.cp', or '.cxx'; C++ header files often use
  1880. '.hh', '.hpp', '.H', or (for shared template code) '.tcc'; and
  1881. preprocessed C++ files use the suffix '.ii'. GCC recognizes files with
  1882. these names and compiles them as C++ programs even if you call the
  1883. compiler the same way as for compiling C programs (usually with the name
  1884. 'gcc').
  1885. However, the use of 'gcc' does not add the C++ library. 'g++' is a
  1886. program that calls GCC and automatically specifies linking against the
  1887. C++ library. It treats '.c', '.h' and '.i' files as C++ source files
  1888. instead of C source files unless '-x' is used. This program is also
  1889. useful when precompiling a C header file with a '.h' extension for use
  1890. in C++ compilations. On many systems, 'g++' is also installed with the
  1891. name 'c++'.
  1892. When you compile C++ programs, you may specify many of the same
  1893. command-line options that you use for compiling programs in any
  1894. language; or command-line options meaningful for C and related
  1895. languages; or options that are meaningful only for C++ programs. *Note
  1896. Options Controlling C Dialect: C Dialect Options, for explanations of
  1897. options for languages related to C. *Note Options Controlling C++
  1898. Dialect: C++ Dialect Options, for explanations of options that are
  1899. meaningful only for C++ programs.
  1900. 
  1901. File: gcc.info, Node: C Dialect Options, Next: C++ Dialect Options, Prev: Invoking G++, Up: Invoking GCC
  1902. 3.4 Options Controlling C Dialect
  1903. =================================
  1904. The following options control the dialect of C (or languages derived
  1905. from C, such as C++, Objective-C and Objective-C++) that the compiler
  1906. accepts:
  1907. '-ansi'
  1908. In C mode, this is equivalent to '-std=c90'. In C++ mode, it is
  1909. equivalent to '-std=c++98'.
  1910. This turns off certain features of GCC that are incompatible with
  1911. ISO C90 (when compiling C code), or of standard C++ (when compiling
  1912. C++ code), such as the 'asm' and 'typeof' keywords, and predefined
  1913. macros such as 'unix' and 'vax' that identify the type of system
  1914. you are using. It also enables the undesirable and rarely used ISO
  1915. trigraph feature. For the C compiler, it disables recognition of
  1916. C++ style '//' comments as well as the 'inline' keyword.
  1917. The alternate keywords '__asm__', '__extension__', '__inline__' and
  1918. '__typeof__' continue to work despite '-ansi'. You would not want
  1919. to use them in an ISO C program, of course, but it is useful to put
  1920. them in header files that might be included in compilations done
  1921. with '-ansi'. Alternate predefined macros such as '__unix__' and
  1922. '__vax__' are also available, with or without '-ansi'.
  1923. The '-ansi' option does not cause non-ISO programs to be rejected
  1924. gratuitously. For that, '-Wpedantic' is required in addition to
  1925. '-ansi'. *Note Warning Options::.
  1926. The macro '__STRICT_ANSI__' is predefined when the '-ansi' option
  1927. is used. Some header files may notice this macro and refrain from
  1928. declaring certain functions or defining certain macros that the ISO
  1929. standard doesn't call for; this is to avoid interfering with any
  1930. programs that might use these names for other things.
  1931. Functions that are normally built in but do not have semantics
  1932. defined by ISO C (such as 'alloca' and 'ffs') are not built-in
  1933. functions when '-ansi' is used. *Note Other built-in functions
  1934. provided by GCC: Other Builtins, for details of the functions
  1935. affected.
  1936. '-std='
  1937. Determine the language standard. *Note Language Standards
  1938. Supported by GCC: Standards, for details of these standard
  1939. versions. This option is currently only supported when compiling C
  1940. or C++.
  1941. The compiler can accept several base standards, such as 'c90' or
  1942. 'c++98', and GNU dialects of those standards, such as 'gnu90' or
  1943. 'gnu++98'. When a base standard is specified, the compiler accepts
  1944. all programs following that standard plus those using GNU
  1945. extensions that do not contradict it. For example, '-std=c90'
  1946. turns off certain features of GCC that are incompatible with ISO
  1947. C90, such as the 'asm' and 'typeof' keywords, but not other GNU
  1948. extensions that do not have a meaning in ISO C90, such as omitting
  1949. the middle term of a '?:' expression. On the other hand, when a
  1950. GNU dialect of a standard is specified, all features supported by
  1951. the compiler are enabled, even when those features change the
  1952. meaning of the base standard. As a result, some strict-conforming
  1953. programs may be rejected. The particular standard is used by
  1954. '-Wpedantic' to identify which features are GNU extensions given
  1955. that version of the standard. For example '-std=gnu90 -Wpedantic'
  1956. warns about C++ style '//' comments, while '-std=gnu99 -Wpedantic'
  1957. does not.
  1958. A value for this option must be provided; possible values are
  1959. 'c90'
  1960. 'c89'
  1961. 'iso9899:1990'
  1962. Support all ISO C90 programs (certain GNU extensions that
  1963. conflict with ISO C90 are disabled). Same as '-ansi' for C
  1964. code.
  1965. 'iso9899:199409'
  1966. ISO C90 as modified in amendment 1.
  1967. 'c99'
  1968. 'c9x'
  1969. 'iso9899:1999'
  1970. 'iso9899:199x'
  1971. ISO C99. This standard is substantially completely supported,
  1972. modulo bugs and floating-point issues (mainly but not entirely
  1973. relating to optional C99 features from Annexes F and G). See
  1974. <http://gcc.gnu.org/c99status.html> for more information. The
  1975. names 'c9x' and 'iso9899:199x' are deprecated.
  1976. 'c11'
  1977. 'c1x'
  1978. 'iso9899:2011'
  1979. ISO C11, the 2011 revision of the ISO C standard. This
  1980. standard is substantially completely supported, modulo bugs,
  1981. floating-point issues (mainly but not entirely relating to
  1982. optional C11 features from Annexes F and G) and the optional
  1983. Annexes K (Bounds-checking interfaces) and L (Analyzability).
  1984. The name 'c1x' is deprecated.
  1985. 'c17'
  1986. 'c18'
  1987. 'iso9899:2017'
  1988. 'iso9899:2018'
  1989. ISO C17, the 2017 revision of the ISO C standard (published in
  1990. 2018). This standard is same as C11 except for corrections of
  1991. defects (all of which are also applied with '-std=c11') and a
  1992. new value of '__STDC_VERSION__', and so is supported to the
  1993. same extent as C11.
  1994. 'c2x'
  1995. The next version of the ISO C standard, still under
  1996. development. The support for this version is experimental and
  1997. incomplete.
  1998. 'gnu90'
  1999. 'gnu89'
  2000. GNU dialect of ISO C90 (including some C99 features).
  2001. 'gnu99'
  2002. 'gnu9x'
  2003. GNU dialect of ISO C99. The name 'gnu9x' is deprecated.
  2004. 'gnu11'
  2005. 'gnu1x'
  2006. GNU dialect of ISO C11. The name 'gnu1x' is deprecated.
  2007. 'gnu17'
  2008. 'gnu18'
  2009. GNU dialect of ISO C17. This is the default for C code.
  2010. 'gnu2x'
  2011. The next version of the ISO C standard, still under
  2012. development, plus GNU extensions. The support for this
  2013. version is experimental and incomplete.
  2014. 'c++98'
  2015. 'c++03'
  2016. The 1998 ISO C++ standard plus the 2003 technical corrigendum
  2017. and some additional defect reports. Same as '-ansi' for C++
  2018. code.
  2019. 'gnu++98'
  2020. 'gnu++03'
  2021. GNU dialect of '-std=c++98'.
  2022. 'c++11'
  2023. 'c++0x'
  2024. The 2011 ISO C++ standard plus amendments. The name 'c++0x'
  2025. is deprecated.
  2026. 'gnu++11'
  2027. 'gnu++0x'
  2028. GNU dialect of '-std=c++11'. The name 'gnu++0x' is
  2029. deprecated.
  2030. 'c++14'
  2031. 'c++1y'
  2032. The 2014 ISO C++ standard plus amendments. The name 'c++1y'
  2033. is deprecated.
  2034. 'gnu++14'
  2035. 'gnu++1y'
  2036. GNU dialect of '-std=c++14'. This is the default for C++
  2037. code. The name 'gnu++1y' is deprecated.
  2038. 'c++17'
  2039. 'c++1z'
  2040. The 2017 ISO C++ standard plus amendments. The name 'c++1z'
  2041. is deprecated.
  2042. 'gnu++17'
  2043. 'gnu++1z'
  2044. GNU dialect of '-std=c++17'. The name 'gnu++1z' is
  2045. deprecated.
  2046. 'c++20'
  2047. 'c++2a'
  2048. The next revision of the ISO C++ standard, planned for 2020.
  2049. Support is highly experimental, and will almost certainly
  2050. change in incompatible ways in future releases.
  2051. 'gnu++20'
  2052. 'gnu++2a'
  2053. GNU dialect of '-std=c++20'. Support is highly experimental,
  2054. and will almost certainly change in incompatible ways in
  2055. future releases.
  2056. '-fgnu89-inline'
  2057. The option '-fgnu89-inline' tells GCC to use the traditional GNU
  2058. semantics for 'inline' functions when in C99 mode. *Note An Inline
  2059. Function is As Fast As a Macro: Inline. Using this option is
  2060. roughly equivalent to adding the 'gnu_inline' function attribute to
  2061. all inline functions (*note Function Attributes::).
  2062. The option '-fno-gnu89-inline' explicitly tells GCC to use the C99
  2063. semantics for 'inline' when in C99 or gnu99 mode (i.e., it
  2064. specifies the default behavior). This option is not supported in
  2065. '-std=c90' or '-std=gnu90' mode.
  2066. The preprocessor macros '__GNUC_GNU_INLINE__' and
  2067. '__GNUC_STDC_INLINE__' may be used to check which semantics are in
  2068. effect for 'inline' functions. *Note (cpp)Common Predefined
  2069. Macros::.
  2070. '-fpermitted-flt-eval-methods=STYLE'
  2071. ISO/IEC TS 18661-3 defines new permissible values for
  2072. 'FLT_EVAL_METHOD' that indicate that operations and constants with
  2073. a semantic type that is an interchange or extended format should be
  2074. evaluated to the precision and range of that type. These new
  2075. values are a superset of those permitted under C99/C11, which does
  2076. not specify the meaning of other positive values of
  2077. 'FLT_EVAL_METHOD'. As such, code conforming to C11 may not have
  2078. been written expecting the possibility of the new values.
  2079. '-fpermitted-flt-eval-methods' specifies whether the compiler
  2080. should allow only the values of 'FLT_EVAL_METHOD' specified in
  2081. C99/C11, or the extended set of values specified in ISO/IEC TS
  2082. 18661-3.
  2083. STYLE is either 'c11' or 'ts-18661-3' as appropriate.
  2084. The default when in a standards compliant mode ('-std=c11' or
  2085. similar) is '-fpermitted-flt-eval-methods=c11'. The default when
  2086. in a GNU dialect ('-std=gnu11' or similar) is
  2087. '-fpermitted-flt-eval-methods=ts-18661-3'.
  2088. '-aux-info FILENAME'
  2089. Output to the given filename prototyped declarations for all
  2090. functions declared and/or defined in a translation unit, including
  2091. those in header files. This option is silently ignored in any
  2092. language other than C.
  2093. Besides declarations, the file indicates, in comments, the origin
  2094. of each declaration (source file and line), whether the declaration
  2095. was implicit, prototyped or unprototyped ('I', 'N' for new or 'O'
  2096. for old, respectively, in the first character after the line number
  2097. and the colon), and whether it came from a declaration or a
  2098. definition ('C' or 'F', respectively, in the following character).
  2099. In the case of function definitions, a K&R-style list of arguments
  2100. followed by their declarations is also provided, inside comments,
  2101. after the declaration.
  2102. '-fallow-parameterless-variadic-functions'
  2103. Accept variadic functions without named parameters.
  2104. Although it is possible to define such a function, this is not very
  2105. useful as it is not possible to read the arguments. This is only
  2106. supported for C as this construct is allowed by C++.
  2107. '-fno-asm'
  2108. Do not recognize 'asm', 'inline' or 'typeof' as a keyword, so that
  2109. code can use these words as identifiers. You can use the keywords
  2110. '__asm__', '__inline__' and '__typeof__' instead. '-ansi' implies
  2111. '-fno-asm'.
  2112. In C++, this switch only affects the 'typeof' keyword, since 'asm'
  2113. and 'inline' are standard keywords. You may want to use the
  2114. '-fno-gnu-keywords' flag instead, which has the same effect. In
  2115. C99 mode ('-std=c99' or '-std=gnu99'), this switch only affects the
  2116. 'asm' and 'typeof' keywords, since 'inline' is a standard keyword
  2117. in ISO C99.
  2118. '-fno-builtin'
  2119. '-fno-builtin-FUNCTION'
  2120. Don't recognize built-in functions that do not begin with
  2121. '__builtin_' as prefix. *Note Other built-in functions provided by
  2122. GCC: Other Builtins, for details of the functions affected,
  2123. including those which are not built-in functions when '-ansi' or
  2124. '-std' options for strict ISO C conformance are used because they
  2125. do not have an ISO standard meaning.
  2126. GCC normally generates special code to handle certain built-in
  2127. functions more efficiently; for instance, calls to 'alloca' may
  2128. become single instructions which adjust the stack directly, and
  2129. calls to 'memcpy' may become inline copy loops. The resulting code
  2130. is often both smaller and faster, but since the function calls no
  2131. longer appear as such, you cannot set a breakpoint on those calls,
  2132. nor can you change the behavior of the functions by linking with a
  2133. different library. In addition, when a function is recognized as a
  2134. built-in function, GCC may use information about that function to
  2135. warn about problems with calls to that function, or to generate
  2136. more efficient code, even if the resulting code still contains
  2137. calls to that function. For example, warnings are given with
  2138. '-Wformat' for bad calls to 'printf' when 'printf' is built in and
  2139. 'strlen' is known not to modify global memory.
  2140. With the '-fno-builtin-FUNCTION' option only the built-in function
  2141. FUNCTION is disabled. FUNCTION must not begin with '__builtin_'.
  2142. If a function is named that is not built-in in this version of GCC,
  2143. this option is ignored. There is no corresponding
  2144. '-fbuiltin-FUNCTION' option; if you wish to enable built-in
  2145. functions selectively when using '-fno-builtin' or
  2146. '-ffreestanding', you may define macros such as:
  2147. #define abs(n) __builtin_abs ((n))
  2148. #define strcpy(d, s) __builtin_strcpy ((d), (s))
  2149. '-fgimple'
  2150. Enable parsing of function definitions marked with '__GIMPLE'.
  2151. This is an experimental feature that allows unit testing of GIMPLE
  2152. passes.
  2153. '-fhosted'
  2154. Assert that compilation targets a hosted environment. This implies
  2155. '-fbuiltin'. A hosted environment is one in which the entire
  2156. standard library is available, and in which 'main' has a return
  2157. type of 'int'. Examples are nearly everything except a kernel.
  2158. This is equivalent to '-fno-freestanding'.
  2159. '-ffreestanding'
  2160. Assert that compilation targets a freestanding environment. This
  2161. implies '-fno-builtin'. A freestanding environment is one in which
  2162. the standard library may not exist, and program startup may not
  2163. necessarily be at 'main'. The most obvious example is an OS
  2164. kernel. This is equivalent to '-fno-hosted'.
  2165. *Note Language Standards Supported by GCC: Standards, for details
  2166. of freestanding and hosted environments.
  2167. '-fopenacc'
  2168. Enable handling of OpenACC directives '#pragma acc' in C/C++ and
  2169. '!$acc' in Fortran. When '-fopenacc' is specified, the compiler
  2170. generates accelerated code according to the OpenACC Application
  2171. Programming Interface v2.6 <https://www.openacc.org>. This option
  2172. implies '-pthread', and thus is only supported on targets that have
  2173. support for '-pthread'.
  2174. '-fopenacc-dim=GEOM'
  2175. Specify default compute dimensions for parallel offload regions
  2176. that do not explicitly specify. The GEOM value is a triple of
  2177. ':'-separated sizes, in order 'gang', 'worker' and, 'vector'. A
  2178. size can be omitted, to use a target-specific default value.
  2179. '-fopenmp'
  2180. Enable handling of OpenMP directives '#pragma omp' in C/C++ and
  2181. '!$omp' in Fortran. When '-fopenmp' is specified, the compiler
  2182. generates parallel code according to the OpenMP Application Program
  2183. Interface v4.5 <https://www.openmp.org>. This option implies
  2184. '-pthread', and thus is only supported on targets that have support
  2185. for '-pthread'. '-fopenmp' implies '-fopenmp-simd'.
  2186. '-fopenmp-simd'
  2187. Enable handling of OpenMP's SIMD directives with '#pragma omp' in
  2188. C/C++ and '!$omp' in Fortran. Other OpenMP directives are ignored.
  2189. '-fgnu-tm'
  2190. When the option '-fgnu-tm' is specified, the compiler generates
  2191. code for the Linux variant of Intel's current Transactional Memory
  2192. ABI specification document (Revision 1.1, May 6 2009). This is an
  2193. experimental feature whose interface may change in future versions
  2194. of GCC, as the official specification changes. Please note that
  2195. not all architectures are supported for this feature.
  2196. For more information on GCC's support for transactional memory,
  2197. *Note The GNU Transactional Memory Library: (libitm)Enabling
  2198. libitm.
  2199. Note that the transactional memory feature is not supported with
  2200. non-call exceptions ('-fnon-call-exceptions').
  2201. '-fms-extensions'
  2202. Accept some non-standard constructs used in Microsoft header files.
  2203. In C++ code, this allows member names in structures to be similar
  2204. to previous types declarations.
  2205. typedef int UOW;
  2206. struct ABC {
  2207. UOW UOW;
  2208. };
  2209. Some cases of unnamed fields in structures and unions are only
  2210. accepted with this option. *Note Unnamed struct/union fields
  2211. within structs/unions: Unnamed Fields, for details.
  2212. Note that this option is off for all targets except for x86 targets
  2213. using ms-abi.
  2214. '-fplan9-extensions'
  2215. Accept some non-standard constructs used in Plan 9 code.
  2216. This enables '-fms-extensions', permits passing pointers to
  2217. structures with anonymous fields to functions that expect pointers
  2218. to elements of the type of the field, and permits referring to
  2219. anonymous fields declared using a typedef. *Note Unnamed
  2220. struct/union fields within structs/unions: Unnamed Fields, for
  2221. details. This is only supported for C, not C++.
  2222. '-fcond-mismatch'
  2223. Allow conditional expressions with mismatched types in the second
  2224. and third arguments. The value of such an expression is void.
  2225. This option is not supported for C++.
  2226. '-flax-vector-conversions'
  2227. Allow implicit conversions between vectors with differing numbers
  2228. of elements and/or incompatible element types. This option should
  2229. not be used for new code.
  2230. '-funsigned-char'
  2231. Let the type 'char' be unsigned, like 'unsigned char'.
  2232. Each kind of machine has a default for what 'char' should be. It
  2233. is either like 'unsigned char' by default or like 'signed char' by
  2234. default.
  2235. Ideally, a portable program should always use 'signed char' or
  2236. 'unsigned char' when it depends on the signedness of an object.
  2237. But many programs have been written to use plain 'char' and expect
  2238. it to be signed, or expect it to be unsigned, depending on the
  2239. machines they were written for. This option, and its inverse, let
  2240. you make such a program work with the opposite default.
  2241. The type 'char' is always a distinct type from each of 'signed
  2242. char' or 'unsigned char', even though its behavior is always just
  2243. like one of those two.
  2244. '-fsigned-char'
  2245. Let the type 'char' be signed, like 'signed char'.
  2246. Note that this is equivalent to '-fno-unsigned-char', which is the
  2247. negative form of '-funsigned-char'. Likewise, the option
  2248. '-fno-signed-char' is equivalent to '-funsigned-char'.
  2249. '-fsigned-bitfields'
  2250. '-funsigned-bitfields'
  2251. '-fno-signed-bitfields'
  2252. '-fno-unsigned-bitfields'
  2253. These options control whether a bit-field is signed or unsigned,
  2254. when the declaration does not use either 'signed' or 'unsigned'.
  2255. By default, such a bit-field is signed, because this is consistent:
  2256. the basic integer types such as 'int' are signed types.
  2257. '-fsso-struct=ENDIANNESS'
  2258. Set the default scalar storage order of structures and unions to
  2259. the specified endianness. The accepted values are 'big-endian',
  2260. 'little-endian' and 'native' for the native endianness of the
  2261. target (the default). This option is not supported for C++.
  2262. *Warning:* the '-fsso-struct' switch causes GCC to generate code
  2263. that is not binary compatible with code generated without it if the
  2264. specified endianness is not the native endianness of the target.
  2265. 
  2266. File: gcc.info, Node: C++ Dialect Options, Next: Objective-C and Objective-C++ Dialect Options, Prev: C Dialect Options, Up: Invoking GCC
  2267. 3.5 Options Controlling C++ Dialect
  2268. ===================================
  2269. This section describes the command-line options that are only meaningful
  2270. for C++ programs. You can also use most of the GNU compiler options
  2271. regardless of what language your program is in. For example, you might
  2272. compile a file 'firstClass.C' like this:
  2273. g++ -g -fstrict-enums -O -c firstClass.C
  2274. In this example, only '-fstrict-enums' is an option meant only for C++
  2275. programs; you can use the other options with any language supported by
  2276. GCC.
  2277. Some options for compiling C programs, such as '-std', are also
  2278. relevant for C++ programs. *Note Options Controlling C Dialect: C
  2279. Dialect Options.
  2280. Here is a list of options that are _only_ for compiling C++ programs:
  2281. '-fabi-version=N'
  2282. Use version N of the C++ ABI. The default is version 0.
  2283. Version 0 refers to the version conforming most closely to the C++
  2284. ABI specification. Therefore, the ABI obtained using version 0
  2285. will change in different versions of G++ as ABI bugs are fixed.
  2286. Version 1 is the version of the C++ ABI that first appeared in G++
  2287. 3.2.
  2288. Version 2 is the version of the C++ ABI that first appeared in G++
  2289. 3.4, and was the default through G++ 4.9.
  2290. Version 3 corrects an error in mangling a constant address as a
  2291. template argument.
  2292. Version 4, which first appeared in G++ 4.5, implements a standard
  2293. mangling for vector types.
  2294. Version 5, which first appeared in G++ 4.6, corrects the mangling
  2295. of attribute const/volatile on function pointer types, decltype of
  2296. a plain decl, and use of a function parameter in the declaration of
  2297. another parameter.
  2298. Version 6, which first appeared in G++ 4.7, corrects the promotion
  2299. behavior of C++11 scoped enums and the mangling of template
  2300. argument packs, const/static_cast, prefix ++ and -, and a class
  2301. scope function used as a template argument.
  2302. Version 7, which first appeared in G++ 4.8, that treats nullptr_t
  2303. as a builtin type and corrects the mangling of lambdas in default
  2304. argument scope.
  2305. Version 8, which first appeared in G++ 4.9, corrects the
  2306. substitution behavior of function types with
  2307. function-cv-qualifiers.
  2308. Version 9, which first appeared in G++ 5.2, corrects the alignment
  2309. of 'nullptr_t'.
  2310. Version 10, which first appeared in G++ 6.1, adds mangling of
  2311. attributes that affect type identity, such as ia32 calling
  2312. convention attributes (e.g. 'stdcall').
  2313. Version 11, which first appeared in G++ 7, corrects the mangling of
  2314. sizeof... expressions and operator names. For multiple entities
  2315. with the same name within a function, that are declared in
  2316. different scopes, the mangling now changes starting with the
  2317. twelfth occurrence. It also implies '-fnew-inheriting-ctors'.
  2318. Version 12, which first appeared in G++ 8, corrects the calling
  2319. conventions for empty classes on the x86_64 target and for classes
  2320. with only deleted copy/move constructors. It accidentally changes
  2321. the calling convention for classes with a deleted copy constructor
  2322. and a trivial move constructor.
  2323. Version 13, which first appeared in G++ 8.2, fixes the accidental
  2324. change in version 12.
  2325. Version 14, which first appeared in G++ 10, corrects the mangling
  2326. of the nullptr expression.
  2327. See also '-Wabi'.
  2328. '-fabi-compat-version=N'
  2329. On targets that support strong aliases, G++ works around mangling
  2330. changes by creating an alias with the correct mangled name when
  2331. defining a symbol with an incorrect mangled name. This switch
  2332. specifies which ABI version to use for the alias.
  2333. With '-fabi-version=0' (the default), this defaults to 11 (GCC 7
  2334. compatibility). If another ABI version is explicitly selected,
  2335. this defaults to 0. For compatibility with GCC versions 3.2
  2336. through 4.9, use '-fabi-compat-version=2'.
  2337. If this option is not provided but '-Wabi=N' is, that version is
  2338. used for compatibility aliases. If this option is provided along
  2339. with '-Wabi' (without the version), the version from this option is
  2340. used for the warning.
  2341. '-fno-access-control'
  2342. Turn off all access checking. This switch is mainly useful for
  2343. working around bugs in the access control code.
  2344. '-faligned-new'
  2345. Enable support for C++17 'new' of types that require more alignment
  2346. than 'void* ::operator new(std::size_t)' provides. A numeric
  2347. argument such as '-faligned-new=32' can be used to specify how much
  2348. alignment (in bytes) is provided by that function, but few users
  2349. will need to override the default of 'alignof(std::max_align_t)'.
  2350. This flag is enabled by default for '-std=c++17'.
  2351. '-fchar8_t'
  2352. '-fno-char8_t'
  2353. Enable support for 'char8_t' as adopted for C++2a. This includes
  2354. the addition of a new 'char8_t' fundamental type, changes to the
  2355. types of UTF-8 string and character literals, new signatures for
  2356. user-defined literals, associated standard library updates, and new
  2357. '__cpp_char8_t' and '__cpp_lib_char8_t' feature test macros.
  2358. This option enables functions to be overloaded for ordinary and
  2359. UTF-8 strings:
  2360. int f(const char *); // #1
  2361. int f(const char8_t *); // #2
  2362. int v1 = f("text"); // Calls #1
  2363. int v2 = f(u8"text"); // Calls #2
  2364. and introduces new signatures for user-defined literals:
  2365. int operator""_udl1(char8_t);
  2366. int v3 = u8'x'_udl1;
  2367. int operator""_udl2(const char8_t*, std::size_t);
  2368. int v4 = u8"text"_udl2;
  2369. template<typename T, T...> int operator""_udl3();
  2370. int v5 = u8"text"_udl3;
  2371. The change to the types of UTF-8 string and character literals
  2372. introduces incompatibilities with ISO C++11 and later standards.
  2373. For example, the following code is well-formed under ISO C++11, but
  2374. is ill-formed when '-fchar8_t' is specified.
  2375. char ca[] = u8"xx"; // error: char-array initialized from wide
  2376. // string
  2377. const char *cp = u8"xx";// error: invalid conversion from
  2378. // `const char8_t*' to `const char*'
  2379. int f(const char*);
  2380. auto v = f(u8"xx"); // error: invalid conversion from
  2381. // `const char8_t*' to `const char*'
  2382. std::string s{u8"xx"}; // error: no matching function for call to
  2383. // `std::basic_string<char>::basic_string()'
  2384. using namespace std::literals;
  2385. s = u8"xx"s; // error: conversion from
  2386. // `basic_string<char8_t>' to non-scalar
  2387. // type `basic_string<char>' requested
  2388. '-fcheck-new'
  2389. Check that the pointer returned by 'operator new' is non-null
  2390. before attempting to modify the storage allocated. This check is
  2391. normally unnecessary because the C++ standard specifies that
  2392. 'operator new' only returns '0' if it is declared 'throw()', in
  2393. which case the compiler always checks the return value even without
  2394. this option. In all other cases, when 'operator new' has a
  2395. non-empty exception specification, memory exhaustion is signalled
  2396. by throwing 'std::bad_alloc'. See also 'new (nothrow)'.
  2397. '-fconcepts'
  2398. '-fconcepts-ts'
  2399. Below '-std=c++2a', '-fconcepts' enables support for the C++
  2400. Extensions for Concepts Technical Specification, ISO 19217 (2015).
  2401. With '-std=c++2a' and above, Concepts are part of the language
  2402. standard, so '-fconcepts' defaults to on. But the standard
  2403. specification of Concepts differs significantly from the TS, so
  2404. some constructs that were allowed in the TS but didn't make it into
  2405. the standard can still be enabled by '-fconcepts-ts'.
  2406. '-fconstexpr-depth=N'
  2407. Set the maximum nested evaluation depth for C++11 constexpr
  2408. functions to N. A limit is needed to detect endless recursion
  2409. during constant expression evaluation. The minimum specified by
  2410. the standard is 512.
  2411. '-fconstexpr-cache-depth=N'
  2412. Set the maximum level of nested evaluation depth for C++11
  2413. constexpr functions that will be cached to N. This is a heuristic
  2414. that trades off compilation speed (when the cache avoids repeated
  2415. calculations) against memory consumption (when the cache grows very
  2416. large from highly recursive evaluations). The default is 8. Very
  2417. few users are likely to want to adjust it, but if your code does
  2418. heavy constexpr calculations you might want to experiment to find
  2419. which value works best for you.
  2420. '-fconstexpr-loop-limit=N'
  2421. Set the maximum number of iterations for a loop in C++14 constexpr
  2422. functions to N. A limit is needed to detect infinite loops during
  2423. constant expression evaluation. The default is 262144 (1<<18).
  2424. '-fconstexpr-ops-limit=N'
  2425. Set the maximum number of operations during a single constexpr
  2426. evaluation. Even when number of iterations of a single loop is
  2427. limited with the above limit, if there are several nested loops and
  2428. each of them has many iterations but still smaller than the above
  2429. limit, or if in a body of some loop or even outside of a loop too
  2430. many expressions need to be evaluated, the resulting constexpr
  2431. evaluation might take too long. The default is 33554432 (1<<25).
  2432. '-fcoroutines'
  2433. Enable support for the C++ coroutines extension (experimental).
  2434. '-fno-elide-constructors'
  2435. The C++ standard allows an implementation to omit creating a
  2436. temporary that is only used to initialize another object of the
  2437. same type. Specifying this option disables that optimization, and
  2438. forces G++ to call the copy constructor in all cases. This option
  2439. also causes G++ to call trivial member functions which otherwise
  2440. would be expanded inline.
  2441. In C++17, the compiler is required to omit these temporaries, but
  2442. this option still affects trivial member functions.
  2443. '-fno-enforce-eh-specs'
  2444. Don't generate code to check for violation of exception
  2445. specifications at run time. This option violates the C++ standard,
  2446. but may be useful for reducing code size in production builds, much
  2447. like defining 'NDEBUG'. This does not give user code permission to
  2448. throw exceptions in violation of the exception specifications; the
  2449. compiler still optimizes based on the specifications, so throwing
  2450. an unexpected exception results in undefined behavior at run time.
  2451. '-fextern-tls-init'
  2452. '-fno-extern-tls-init'
  2453. The C++11 and OpenMP standards allow 'thread_local' and
  2454. 'threadprivate' variables to have dynamic (runtime) initialization.
  2455. To support this, any use of such a variable goes through a wrapper
  2456. function that performs any necessary initialization. When the use
  2457. and definition of the variable are in the same translation unit,
  2458. this overhead can be optimized away, but when the use is in a
  2459. different translation unit there is significant overhead even if
  2460. the variable doesn't actually need dynamic initialization. If the
  2461. programmer can be sure that no use of the variable in a
  2462. non-defining TU needs to trigger dynamic initialization (either
  2463. because the variable is statically initialized, or a use of the
  2464. variable in the defining TU will be executed before any uses in
  2465. another TU), they can avoid this overhead with the
  2466. '-fno-extern-tls-init' option.
  2467. On targets that support symbol aliases, the default is
  2468. '-fextern-tls-init'. On targets that do not support symbol
  2469. aliases, the default is '-fno-extern-tls-init'.
  2470. '-fno-gnu-keywords'
  2471. Do not recognize 'typeof' as a keyword, so that code can use this
  2472. word as an identifier. You can use the keyword '__typeof__'
  2473. instead. This option is implied by the strict ISO C++ dialects:
  2474. '-ansi', '-std=c++98', '-std=c++11', etc.
  2475. '-fno-implicit-templates'
  2476. Never emit code for non-inline templates that are instantiated
  2477. implicitly (i.e. by use); only emit code for explicit
  2478. instantiations. If you use this option, you must take care to
  2479. structure your code to include all the necessary explicit
  2480. instantiations to avoid getting undefined symbols at link time.
  2481. *Note Template Instantiation::, for more information.
  2482. '-fno-implicit-inline-templates'
  2483. Don't emit code for implicit instantiations of inline templates,
  2484. either. The default is to handle inlines differently so that
  2485. compiles with and without optimization need the same set of
  2486. explicit instantiations.
  2487. '-fno-implement-inlines'
  2488. To save space, do not emit out-of-line copies of inline functions
  2489. controlled by '#pragma implementation'. This causes linker errors
  2490. if these functions are not inlined everywhere they are called.
  2491. '-fms-extensions'
  2492. Disable Wpedantic warnings about constructs used in MFC, such as
  2493. implicit int and getting a pointer to member function via
  2494. non-standard syntax.
  2495. '-fnew-inheriting-ctors'
  2496. Enable the P0136 adjustment to the semantics of C++11 constructor
  2497. inheritance. This is part of C++17 but also considered to be a
  2498. Defect Report against C++11 and C++14. This flag is enabled by
  2499. default unless '-fabi-version=10' or lower is specified.
  2500. '-fnew-ttp-matching'
  2501. Enable the P0522 resolution to Core issue 150, template template
  2502. parameters and default arguments: this allows a template with
  2503. default template arguments as an argument for a template template
  2504. parameter with fewer template parameters. This flag is enabled by
  2505. default for '-std=c++17'.
  2506. '-fno-nonansi-builtins'
  2507. Disable built-in declarations of functions that are not mandated by
  2508. ANSI/ISO C. These include 'ffs', 'alloca', '_exit', 'index',
  2509. 'bzero', 'conjf', and other related functions.
  2510. '-fnothrow-opt'
  2511. Treat a 'throw()' exception specification as if it were a
  2512. 'noexcept' specification to reduce or eliminate the text size
  2513. overhead relative to a function with no exception specification.
  2514. If the function has local variables of types with non-trivial
  2515. destructors, the exception specification actually makes the
  2516. function smaller because the EH cleanups for those variables can be
  2517. optimized away. The semantic effect is that an exception thrown
  2518. out of a function with such an exception specification results in a
  2519. call to 'terminate' rather than 'unexpected'.
  2520. '-fno-operator-names'
  2521. Do not treat the operator name keywords 'and', 'bitand', 'bitor',
  2522. 'compl', 'not', 'or' and 'xor' as synonyms as keywords.
  2523. '-fno-optional-diags'
  2524. Disable diagnostics that the standard says a compiler does not need
  2525. to issue. Currently, the only such diagnostic issued by G++ is the
  2526. one for a name having multiple meanings within a class.
  2527. '-fpermissive'
  2528. Downgrade some diagnostics about nonconformant code from errors to
  2529. warnings. Thus, using '-fpermissive' allows some nonconforming
  2530. code to compile.
  2531. '-fno-pretty-templates'
  2532. When an error message refers to a specialization of a function
  2533. template, the compiler normally prints the signature of the
  2534. template followed by the template arguments and any typedefs or
  2535. typenames in the signature (e.g. 'void f(T) [with T = int]' rather
  2536. than 'void f(int)') so that it's clear which template is involved.
  2537. When an error message refers to a specialization of a class
  2538. template, the compiler omits any template arguments that match the
  2539. default template arguments for that template. If either of these
  2540. behaviors make it harder to understand the error message rather
  2541. than easier, you can use '-fno-pretty-templates' to disable them.
  2542. '-fno-rtti'
  2543. Disable generation of information about every class with virtual
  2544. functions for use by the C++ run-time type identification features
  2545. ('dynamic_cast' and 'typeid'). If you don't use those parts of the
  2546. language, you can save some space by using this flag. Note that
  2547. exception handling uses the same information, but G++ generates it
  2548. as needed. The 'dynamic_cast' operator can still be used for casts
  2549. that do not require run-time type information, i.e. casts to 'void
  2550. *' or to unambiguous base classes.
  2551. Mixing code compiled with '-frtti' with that compiled with
  2552. '-fno-rtti' may not work. For example, programs may fail to link
  2553. if a class compiled with '-fno-rtti' is used as a base for a class
  2554. compiled with '-frtti'.
  2555. '-fsized-deallocation'
  2556. Enable the built-in global declarations
  2557. void operator delete (void *, std::size_t) noexcept;
  2558. void operator delete[] (void *, std::size_t) noexcept;
  2559. as introduced in C++14. This is useful for user-defined
  2560. replacement deallocation functions that, for example, use the size
  2561. of the object to make deallocation faster. Enabled by default
  2562. under '-std=c++14' and above. The flag '-Wsized-deallocation'
  2563. warns about places that might want to add a definition.
  2564. '-fstrict-enums'
  2565. Allow the compiler to optimize using the assumption that a value of
  2566. enumerated type can only be one of the values of the enumeration
  2567. (as defined in the C++ standard; basically, a value that can be
  2568. represented in the minimum number of bits needed to represent all
  2569. the enumerators). This assumption may not be valid if the program
  2570. uses a cast to convert an arbitrary integer value to the enumerated
  2571. type.
  2572. '-fstrong-eval-order'
  2573. Evaluate member access, array subscripting, and shift expressions
  2574. in left-to-right order, and evaluate assignment in right-to-left
  2575. order, as adopted for C++17. Enabled by default with '-std=c++17'.
  2576. '-fstrong-eval-order=some' enables just the ordering of member
  2577. access and shift expressions, and is the default without
  2578. '-std=c++17'.
  2579. '-ftemplate-backtrace-limit=N'
  2580. Set the maximum number of template instantiation notes for a single
  2581. warning or error to N. The default value is 10.
  2582. '-ftemplate-depth=N'
  2583. Set the maximum instantiation depth for template classes to N. A
  2584. limit on the template instantiation depth is needed to detect
  2585. endless recursions during template class instantiation. ANSI/ISO
  2586. C++ conforming programs must not rely on a maximum depth greater
  2587. than 17 (changed to 1024 in C++11). The default value is 900, as
  2588. the compiler can run out of stack space before hitting 1024 in some
  2589. situations.
  2590. '-fno-threadsafe-statics'
  2591. Do not emit the extra code to use the routines specified in the C++
  2592. ABI for thread-safe initialization of local statics. You can use
  2593. this option to reduce code size slightly in code that doesn't need
  2594. to be thread-safe.
  2595. '-fuse-cxa-atexit'
  2596. Register destructors for objects with static storage duration with
  2597. the '__cxa_atexit' function rather than the 'atexit' function.
  2598. This option is required for fully standards-compliant handling of
  2599. static destructors, but only works if your C library supports
  2600. '__cxa_atexit'.
  2601. '-fno-use-cxa-get-exception-ptr'
  2602. Don't use the '__cxa_get_exception_ptr' runtime routine. This
  2603. causes 'std::uncaught_exception' to be incorrect, but is necessary
  2604. if the runtime routine is not available.
  2605. '-fvisibility-inlines-hidden'
  2606. This switch declares that the user does not attempt to compare
  2607. pointers to inline functions or methods where the addresses of the
  2608. two functions are taken in different shared objects.
  2609. The effect of this is that GCC may, effectively, mark inline
  2610. methods with '__attribute__ ((visibility ("hidden")))' so that they
  2611. do not appear in the export table of a DSO and do not require a PLT
  2612. indirection when used within the DSO. Enabling this option can
  2613. have a dramatic effect on load and link times of a DSO as it
  2614. massively reduces the size of the dynamic export table when the
  2615. library makes heavy use of templates.
  2616. The behavior of this switch is not quite the same as marking the
  2617. methods as hidden directly, because it does not affect static
  2618. variables local to the function or cause the compiler to deduce
  2619. that the function is defined in only one shared object.
  2620. You may mark a method as having a visibility explicitly to negate
  2621. the effect of the switch for that method. For example, if you do
  2622. want to compare pointers to a particular inline method, you might
  2623. mark it as having default visibility. Marking the enclosing class
  2624. with explicit visibility has no effect.
  2625. Explicitly instantiated inline methods are unaffected by this
  2626. option as their linkage might otherwise cross a shared library
  2627. boundary. *Note Template Instantiation::.
  2628. '-fvisibility-ms-compat'
  2629. This flag attempts to use visibility settings to make GCC's C++
  2630. linkage model compatible with that of Microsoft Visual Studio.
  2631. The flag makes these changes to GCC's linkage model:
  2632. 1. It sets the default visibility to 'hidden', like
  2633. '-fvisibility=hidden'.
  2634. 2. Types, but not their members, are not hidden by default.
  2635. 3. The One Definition Rule is relaxed for types without explicit
  2636. visibility specifications that are defined in more than one
  2637. shared object: those declarations are permitted if they are
  2638. permitted when this option is not used.
  2639. In new code it is better to use '-fvisibility=hidden' and export
  2640. those classes that are intended to be externally visible.
  2641. Unfortunately it is possible for code to rely, perhaps
  2642. accidentally, on the Visual Studio behavior.
  2643. Among the consequences of these changes are that static data
  2644. members of the same type with the same name but defined in
  2645. different shared objects are different, so changing one does not
  2646. change the other; and that pointers to function members defined in
  2647. different shared objects may not compare equal. When this flag is
  2648. given, it is a violation of the ODR to define types with the same
  2649. name differently.
  2650. '-fno-weak'
  2651. Do not use weak symbol support, even if it is provided by the
  2652. linker. By default, G++ uses weak symbols if they are available.
  2653. This option exists only for testing, and should not be used by
  2654. end-users; it results in inferior code and has no benefits. This
  2655. option may be removed in a future release of G++.
  2656. '-fext-numeric-literals (C++ and Objective-C++ only)'
  2657. Accept imaginary, fixed-point, or machine-defined literal number
  2658. suffixes as GNU extensions. When this option is turned off these
  2659. suffixes are treated as C++11 user-defined literal numeric
  2660. suffixes. This is on by default for all pre-C++11 dialects and all
  2661. GNU dialects: '-std=c++98', '-std=gnu++98', '-std=gnu++11',
  2662. '-std=gnu++14'. This option is off by default for ISO C++11
  2663. onwards ('-std=c++11', ...).
  2664. '-nostdinc++'
  2665. Do not search for header files in the standard directories specific
  2666. to C++, but do still search the other standard directories. (This
  2667. option is used when building the C++ library.)
  2668. In addition, these warning options have meanings only for C++ programs:
  2669. '-Wabi-tag (C++ and Objective-C++ only)'
  2670. Warn when a type with an ABI tag is used in a context that does not
  2671. have that ABI tag. See *note C++ Attributes:: for more information
  2672. about ABI tags.
  2673. '-Wcomma-subscript (C++ and Objective-C++ only)'
  2674. Warn about uses of a comma expression within a subscripting
  2675. expression. This usage was deprecated in C++2a. However, a comma
  2676. expression wrapped in '( )' is not deprecated. Example:
  2677. void f(int *a, int b, int c) {
  2678. a[b,c]; // deprecated
  2679. a[(b,c)]; // OK
  2680. }
  2681. Enabled by default with '-std=c++2a'.
  2682. '-Wctor-dtor-privacy (C++ and Objective-C++ only)'
  2683. Warn when a class seems unusable because all the constructors or
  2684. destructors in that class are private, and it has neither friends
  2685. nor public static member functions. Also warn if there are no
  2686. non-private methods, and there's at least one private member
  2687. function that isn't a constructor or destructor.
  2688. '-Wdelete-non-virtual-dtor (C++ and Objective-C++ only)'
  2689. Warn when 'delete' is used to destroy an instance of a class that
  2690. has virtual functions and non-virtual destructor. It is unsafe to
  2691. delete an instance of a derived class through a pointer to a base
  2692. class if the base class does not have a virtual destructor. This
  2693. warning is enabled by '-Wall'.
  2694. '-Wdeprecated-copy (C++ and Objective-C++ only)'
  2695. Warn that the implicit declaration of a copy constructor or copy
  2696. assignment operator is deprecated if the class has a user-provided
  2697. copy constructor or copy assignment operator, in C++11 and up.
  2698. This warning is enabled by '-Wextra'. With
  2699. '-Wdeprecated-copy-dtor', also deprecate if the class has a
  2700. user-provided destructor.
  2701. '-Wno-init-list-lifetime (C++ and Objective-C++ only)'
  2702. Do not warn about uses of 'std::initializer_list' that are likely
  2703. to result in dangling pointers. Since the underlying array for an
  2704. 'initializer_list' is handled like a normal C++ temporary object,
  2705. it is easy to inadvertently keep a pointer to the array past the
  2706. end of the array's lifetime. For example:
  2707. * If a function returns a temporary 'initializer_list', or a
  2708. local 'initializer_list' variable, the array's lifetime ends
  2709. at the end of the return statement, so the value returned has
  2710. a dangling pointer.
  2711. * If a new-expression creates an 'initializer_list', the array
  2712. only lives until the end of the enclosing full-expression, so
  2713. the 'initializer_list' in the heap has a dangling pointer.
  2714. * When an 'initializer_list' variable is assigned from a
  2715. brace-enclosed initializer list, the temporary array created
  2716. for the right side of the assignment only lives until the end
  2717. of the full-expression, so at the next statement the
  2718. 'initializer_list' variable has a dangling pointer.
  2719. // li's initial underlying array lives as long as li
  2720. std::initializer_list<int> li = { 1,2,3 };
  2721. // assignment changes li to point to a temporary array
  2722. li = { 4, 5 };
  2723. // now the temporary is gone and li has a dangling pointer
  2724. int i = li.begin()[0] // undefined behavior
  2725. * When a list constructor stores the 'begin' pointer from the
  2726. 'initializer_list' argument, this doesn't extend the lifetime
  2727. of the array, so if a class variable is constructed from a
  2728. temporary 'initializer_list', the pointer is left dangling by
  2729. the end of the variable declaration statement.
  2730. '-Wno-literal-suffix (C++ and Objective-C++ only)'
  2731. Do not warn when a string or character literal is followed by a
  2732. ud-suffix which does not begin with an underscore. As a conforming
  2733. extension, GCC treats such suffixes as separate preprocessing
  2734. tokens in order to maintain backwards compatibility with code that
  2735. uses formatting macros from '<inttypes.h>'. For example:
  2736. #define __STDC_FORMAT_MACROS
  2737. #include <inttypes.h>
  2738. #include <stdio.h>
  2739. int main() {
  2740. int64_t i64 = 123;
  2741. printf("My int64: %" PRId64"\n", i64);
  2742. }
  2743. In this case, 'PRId64' is treated as a separate preprocessing
  2744. token.
  2745. This option also controls warnings when a user-defined literal
  2746. operator is declared with a literal suffix identifier that doesn't
  2747. begin with an underscore. Literal suffix identifiers that don't
  2748. begin with an underscore are reserved for future standardization.
  2749. These warnings are enabled by default.
  2750. '-Wno-narrowing (C++ and Objective-C++ only)'
  2751. For C++11 and later standards, narrowing conversions are diagnosed
  2752. by default, as required by the standard. A narrowing conversion
  2753. from a constant produces an error, and a narrowing conversion from
  2754. a non-constant produces a warning, but '-Wno-narrowing' suppresses
  2755. the diagnostic. Note that this does not affect the meaning of
  2756. well-formed code; narrowing conversions are still considered
  2757. ill-formed in SFINAE contexts.
  2758. With '-Wnarrowing' in C++98, warn when a narrowing conversion
  2759. prohibited by C++11 occurs within '{ }', e.g.
  2760. int i = { 2.2 }; // error: narrowing from double to int
  2761. This flag is included in '-Wall' and '-Wc++11-compat'.
  2762. '-Wnoexcept (C++ and Objective-C++ only)'
  2763. Warn when a noexcept-expression evaluates to false because of a
  2764. call to a function that does not have a non-throwing exception
  2765. specification (i.e. 'throw()' or 'noexcept') but is known by the
  2766. compiler to never throw an exception.
  2767. '-Wnoexcept-type (C++ and Objective-C++ only)'
  2768. Warn if the C++17 feature making 'noexcept' part of a function type
  2769. changes the mangled name of a symbol relative to C++14. Enabled by
  2770. '-Wabi' and '-Wc++17-compat'.
  2771. As an example:
  2772. template <class T> void f(T t) { t(); };
  2773. void g() noexcept;
  2774. void h() { f(g); }
  2775. In C++14, 'f' calls 'f<void(*)()>', but in C++17 it calls
  2776. 'f<void(*)()noexcept>'.
  2777. '-Wclass-memaccess (C++ and Objective-C++ only)'
  2778. Warn when the destination of a call to a raw memory function such
  2779. as 'memset' or 'memcpy' is an object of class type, and when
  2780. writing into such an object might bypass the class non-trivial or
  2781. deleted constructor or copy assignment, violate const-correctness
  2782. or encapsulation, or corrupt virtual table pointers. Modifying the
  2783. representation of such objects may violate invariants maintained by
  2784. member functions of the class. For example, the call to 'memset'
  2785. below is undefined because it modifies a non-trivial class object
  2786. and is, therefore, diagnosed. The safe way to either initialize or
  2787. clear the storage of objects of such types is by using the
  2788. appropriate constructor or assignment operator, if one is
  2789. available.
  2790. std::string str = "abc";
  2791. memset (&str, 0, sizeof str);
  2792. The '-Wclass-memaccess' option is enabled by '-Wall'. Explicitly
  2793. casting the pointer to the class object to 'void *' or to a type
  2794. that can be safely accessed by the raw memory function suppresses
  2795. the warning.
  2796. '-Wnon-virtual-dtor (C++ and Objective-C++ only)'
  2797. Warn when a class has virtual functions and an accessible
  2798. non-virtual destructor itself or in an accessible polymorphic base
  2799. class, in which case it is possible but unsafe to delete an
  2800. instance of a derived class through a pointer to the class itself
  2801. or base class. This warning is automatically enabled if '-Weffc++'
  2802. is specified.
  2803. '-Wregister (C++ and Objective-C++ only)'
  2804. Warn on uses of the 'register' storage class specifier, except when
  2805. it is part of the GNU *note Explicit Register Variables::
  2806. extension. The use of the 'register' keyword as storage class
  2807. specifier has been deprecated in C++11 and removed in C++17.
  2808. Enabled by default with '-std=c++17'.
  2809. '-Wreorder (C++ and Objective-C++ only)'
  2810. Warn when the order of member initializers given in the code does
  2811. not match the order in which they must be executed. For instance:
  2812. struct A {
  2813. int i;
  2814. int j;
  2815. A(): j (0), i (1) { }
  2816. };
  2817. The compiler rearranges the member initializers for 'i' and 'j' to
  2818. match the declaration order of the members, emitting a warning to
  2819. that effect. This warning is enabled by '-Wall'.
  2820. '-Wno-pessimizing-move (C++ and Objective-C++ only)'
  2821. This warning warns when a call to 'std::move' prevents copy
  2822. elision. A typical scenario when copy elision can occur is when
  2823. returning in a function with a class return type, when the
  2824. expression being returned is the name of a non-volatile automatic
  2825. object, and is not a function parameter, and has the same type as
  2826. the function return type.
  2827. struct T {
  2828. ...
  2829. };
  2830. T fn()
  2831. {
  2832. T t;
  2833. ...
  2834. return std::move (t);
  2835. }
  2836. But in this example, the 'std::move' call prevents copy elision.
  2837. This warning is enabled by '-Wall'.
  2838. '-Wno-redundant-move (C++ and Objective-C++ only)'
  2839. This warning warns about redundant calls to 'std::move'; that is,
  2840. when a move operation would have been performed even without the
  2841. 'std::move' call. This happens because the compiler is forced to
  2842. treat the object as if it were an rvalue in certain situations such
  2843. as returning a local variable, where copy elision isn't applicable.
  2844. Consider:
  2845. struct T {
  2846. ...
  2847. };
  2848. T fn(T t)
  2849. {
  2850. ...
  2851. return std::move (t);
  2852. }
  2853. Here, the 'std::move' call is redundant. Because G++ implements
  2854. Core Issue 1579, another example is:
  2855. struct T { // convertible to U
  2856. ...
  2857. };
  2858. struct U {
  2859. ...
  2860. };
  2861. U fn()
  2862. {
  2863. T t;
  2864. ...
  2865. return std::move (t);
  2866. }
  2867. In this example, copy elision isn't applicable because the type of
  2868. the expression being returned and the function return type differ,
  2869. yet G++ treats the return value as if it were designated by an
  2870. rvalue.
  2871. This warning is enabled by '-Wextra'.
  2872. '-Wredundant-tags (C++ and Objective-C++ only)'
  2873. Warn about redundant class-key and enum-key in references to class
  2874. types and enumerated types in contexts where the key can be
  2875. eliminated without causing an ambiguity. For example:
  2876. struct foo;
  2877. struct foo *p; // warn that keyword struct can be eliminated
  2878. On the other hand, in this example there is no warning:
  2879. struct foo;
  2880. void foo (); // "hides" struct foo
  2881. void bar (struct foo&); // no warning, keyword struct is necessary
  2882. '-Wno-subobject-linkage (C++ and Objective-C++ only)'
  2883. Do not warn if a class type has a base or a field whose type uses
  2884. the anonymous namespace or depends on a type with no linkage. If a
  2885. type A depends on a type B with no or internal linkage, defining it
  2886. in multiple translation units would be an ODR violation because the
  2887. meaning of B is different in each translation unit. If A only
  2888. appears in a single translation unit, the best way to silence the
  2889. warning is to give it internal linkage by putting it in an
  2890. anonymous namespace as well. The compiler doesn't give this
  2891. warning for types defined in the main .C file, as those are
  2892. unlikely to have multiple definitions. '-Wsubobject-linkage' is
  2893. enabled by default.
  2894. '-Weffc++ (C++ and Objective-C++ only)'
  2895. Warn about violations of the following style guidelines from Scott
  2896. Meyers' 'Effective C++' series of books:
  2897. * Define a copy constructor and an assignment operator for
  2898. classes with dynamically-allocated memory.
  2899. * Prefer initialization to assignment in constructors.
  2900. * Have 'operator=' return a reference to '*this'.
  2901. * Don't try to return a reference when you must return an
  2902. object.
  2903. * Distinguish between prefix and postfix forms of increment and
  2904. decrement operators.
  2905. * Never overload '&&', '||', or ','.
  2906. This option also enables '-Wnon-virtual-dtor', which is also one of
  2907. the effective C++ recommendations. However, the check is extended
  2908. to warn about the lack of virtual destructor in accessible
  2909. non-polymorphic bases classes too.
  2910. When selecting this option, be aware that the standard library
  2911. headers do not obey all of these guidelines; use 'grep -v' to
  2912. filter out those warnings.
  2913. '-Wstrict-null-sentinel (C++ and Objective-C++ only)'
  2914. Warn about the use of an uncasted 'NULL' as sentinel. When
  2915. compiling only with GCC this is a valid sentinel, as 'NULL' is
  2916. defined to '__null'. Although it is a null pointer constant rather
  2917. than a null pointer, it is guaranteed to be of the same size as a
  2918. pointer. But this use is not portable across different compilers.
  2919. '-Wno-non-template-friend (C++ and Objective-C++ only)'
  2920. Disable warnings when non-template friend functions are declared
  2921. within a template. In very old versions of GCC that predate
  2922. implementation of the ISO standard, declarations such as 'friend
  2923. int foo(int)', where the name of the friend is an unqualified-id,
  2924. could be interpreted as a particular specialization of a template
  2925. function; the warning exists to diagnose compatibility problems,
  2926. and is enabled by default.
  2927. '-Wold-style-cast (C++ and Objective-C++ only)'
  2928. Warn if an old-style (C-style) cast to a non-void type is used
  2929. within a C++ program. The new-style casts ('dynamic_cast',
  2930. 'static_cast', 'reinterpret_cast', and 'const_cast') are less
  2931. vulnerable to unintended effects and much easier to search for.
  2932. '-Woverloaded-virtual (C++ and Objective-C++ only)'
  2933. Warn when a function declaration hides virtual functions from a
  2934. base class. For example, in:
  2935. struct A {
  2936. virtual void f();
  2937. };
  2938. struct B: public A {
  2939. void f(int);
  2940. };
  2941. the 'A' class version of 'f' is hidden in 'B', and code like:
  2942. B* b;
  2943. b->f();
  2944. fails to compile.
  2945. '-Wno-pmf-conversions (C++ and Objective-C++ only)'
  2946. Disable the diagnostic for converting a bound pointer to member
  2947. function to a plain pointer.
  2948. '-Wsign-promo (C++ and Objective-C++ only)'
  2949. Warn when overload resolution chooses a promotion from unsigned or
  2950. enumerated type to a signed type, over a conversion to an unsigned
  2951. type of the same size. Previous versions of G++ tried to preserve
  2952. unsignedness, but the standard mandates the current behavior.
  2953. '-Wtemplates (C++ and Objective-C++ only)'
  2954. Warn when a primary template declaration is encountered. Some
  2955. coding rules disallow templates, and this may be used to enforce
  2956. that rule. The warning is inactive inside a system header file,
  2957. such as the STL, so one can still use the STL. One may also
  2958. instantiate or specialize templates.
  2959. '-Wmismatched-tags (C++ and Objective-C++ only)'
  2960. Warn for declarations of structs, classes, and class templates and
  2961. their specializations with a class-key that does not match either
  2962. the definition or the first declaration if no definition is
  2963. provided.
  2964. For example, the declaration of 'struct Object' in the argument
  2965. list of 'draw' triggers the warning. To avoid it, either remove
  2966. the redundant class-key 'struct' or replace it with 'class' to
  2967. match its definition.
  2968. class Object {
  2969. public:
  2970. virtual ~Object () = 0;
  2971. };
  2972. void draw (struct Object*);
  2973. It is not wrong to declare a class with the class-key 'struct' as
  2974. the example above shows. The '-Wmismatched-tags' option is
  2975. intended to help achieve a consistent style of class declarations.
  2976. In code that is intended to be portable to Windows-based compilers
  2977. the warning helps prevent unresolved references due to the
  2978. difference in the mangling of symbols declared with different
  2979. class-keys. The option can be used either on its own or in
  2980. conjunction with '-Wredundant-tags'.
  2981. '-Wmultiple-inheritance (C++ and Objective-C++ only)'
  2982. Warn when a class is defined with multiple direct base classes.
  2983. Some coding rules disallow multiple inheritance, and this may be
  2984. used to enforce that rule. The warning is inactive inside a system
  2985. header file, such as the STL, so one can still use the STL. One may
  2986. also define classes that indirectly use multiple inheritance.
  2987. '-Wvirtual-inheritance'
  2988. Warn when a class is defined with a virtual direct base class.
  2989. Some coding rules disallow multiple inheritance, and this may be
  2990. used to enforce that rule. The warning is inactive inside a system
  2991. header file, such as the STL, so one can still use the STL. One may
  2992. also define classes that indirectly use virtual inheritance.
  2993. '-Wno-virtual-move-assign'
  2994. Suppress warnings about inheriting from a virtual base with a
  2995. non-trivial C++11 move assignment operator. This is dangerous
  2996. because if the virtual base is reachable along more than one path,
  2997. it is moved multiple times, which can mean both objects end up in
  2998. the moved-from state. If the move assignment operator is written
  2999. to avoid moving from a moved-from object, this warning can be
  3000. disabled.
  3001. '-Wnamespaces'
  3002. Warn when a namespace definition is opened. Some coding rules
  3003. disallow namespaces, and this may be used to enforce that rule.
  3004. The warning is inactive inside a system header file, such as the
  3005. STL, so one can still use the STL. One may also use using
  3006. directives and qualified names.
  3007. '-Wno-terminate (C++ and Objective-C++ only)'
  3008. Disable the warning about a throw-expression that will immediately
  3009. result in a call to 'terminate'.
  3010. '-Wno-class-conversion (C++ and Objective-C++ only)'
  3011. Do not warn when a conversion function converts an object to the
  3012. same type, to a base class of that type, or to void; such a
  3013. conversion function will never be called.
  3014. '-Wvolatile (C++ and Objective-C++ only)'
  3015. Warn about deprecated uses of the 'volatile' qualifier. This
  3016. includes postfix and prefix '++' and '--' expressions of
  3017. 'volatile'-qualified types, using simple assignments where the left
  3018. operand is a 'volatile'-qualified non-class type for their value,
  3019. compound assignments where the left operand is a
  3020. 'volatile'-qualified non-class type, 'volatile'-qualified function
  3021. return type, 'volatile'-qualified parameter type, and structured
  3022. bindings of a 'volatile'-qualified type. This usage was deprecated
  3023. in C++20.
  3024. Enabled by default with '-std=c++2a'.
  3025. '-Wzero-as-null-pointer-constant (C++ and Objective-C++ only)'
  3026. Warn when a literal '0' is used as null pointer constant. This can
  3027. be useful to facilitate the conversion to 'nullptr' in C++11.
  3028. '-Waligned-new'
  3029. Warn about a new-expression of a type that requires greater
  3030. alignment than the 'alignof(std::max_align_t)' but uses an
  3031. allocation function without an explicit alignment parameter. This
  3032. option is enabled by '-Wall'.
  3033. Normally this only warns about global allocation functions, but
  3034. '-Waligned-new=all' also warns about class member allocation
  3035. functions.
  3036. '-Wno-placement-new'
  3037. '-Wplacement-new=N'
  3038. Warn about placement new expressions with undefined behavior, such
  3039. as constructing an object in a buffer that is smaller than the type
  3040. of the object. For example, the placement new expression below is
  3041. diagnosed because it attempts to construct an array of 64 integers
  3042. in a buffer only 64 bytes large.
  3043. char buf [64];
  3044. new (buf) int[64];
  3045. This warning is enabled by default.
  3046. '-Wplacement-new=1'
  3047. This is the default warning level of '-Wplacement-new'. At
  3048. this level the warning is not issued for some strictly
  3049. undefined constructs that GCC allows as extensions for
  3050. compatibility with legacy code. For example, the following
  3051. 'new' expression is not diagnosed at this level even though it
  3052. has undefined behavior according to the C++ standard because
  3053. it writes past the end of the one-element array.
  3054. struct S { int n, a[1]; };
  3055. S *s = (S *)malloc (sizeof *s + 31 * sizeof s->a[0]);
  3056. new (s->a)int [32]();
  3057. '-Wplacement-new=2'
  3058. At this level, in addition to diagnosing all the same
  3059. constructs as at level 1, a diagnostic is also issued for
  3060. placement new expressions that construct an object in the last
  3061. member of structure whose type is an array of a single element
  3062. and whose size is less than the size of the object being
  3063. constructed. While the previous example would be diagnosed,
  3064. the following construct makes use of the flexible member array
  3065. extension to avoid the warning at level 2.
  3066. struct S { int n, a[]; };
  3067. S *s = (S *)malloc (sizeof *s + 32 * sizeof s->a[0]);
  3068. new (s->a)int [32]();
  3069. '-Wcatch-value'
  3070. '-Wcatch-value=N (C++ and Objective-C++ only)'
  3071. Warn about catch handlers that do not catch via reference. With
  3072. '-Wcatch-value=1' (or '-Wcatch-value' for short) warn about
  3073. polymorphic class types that are caught by value. With
  3074. '-Wcatch-value=2' warn about all class types that are caught by
  3075. value. With '-Wcatch-value=3' warn about all types that are not
  3076. caught by reference. '-Wcatch-value' is enabled by '-Wall'.
  3077. '-Wconditionally-supported (C++ and Objective-C++ only)'
  3078. Warn for conditionally-supported (C++11 [intro.defs]) constructs.
  3079. '-Wno-delete-incomplete (C++ and Objective-C++ only)'
  3080. Do not warn when deleting a pointer to incomplete type, which may
  3081. cause undefined behavior at runtime. This warning is enabled by
  3082. default.
  3083. '-Wextra-semi (C++, Objective-C++ only)'
  3084. Warn about redundant semicolons after in-class function
  3085. definitions.
  3086. '-Wno-inaccessible-base (C++, Objective-C++ only)'
  3087. This option controls warnings when a base class is inaccessible in
  3088. a class derived from it due to ambiguity. The warning is enabled
  3089. by default. Note that the warning for ambiguous virtual bases is
  3090. enabled by the '-Wextra' option.
  3091. struct A { int a; };
  3092. struct B : A { };
  3093. struct C : B, A { };
  3094. '-Wno-inherited-variadic-ctor'
  3095. Suppress warnings about use of C++11 inheriting constructors when
  3096. the base class inherited from has a C variadic constructor; the
  3097. warning is on by default because the ellipsis is not inherited.
  3098. '-Wno-invalid-offsetof (C++ and Objective-C++ only)'
  3099. Suppress warnings from applying the 'offsetof' macro to a non-POD
  3100. type. According to the 2014 ISO C++ standard, applying 'offsetof'
  3101. to a non-standard-layout type is undefined. In existing C++
  3102. implementations, however, 'offsetof' typically gives meaningful
  3103. results. This flag is for users who are aware that they are
  3104. writing nonportable code and who have deliberately chosen to ignore
  3105. the warning about it.
  3106. The restrictions on 'offsetof' may be relaxed in a future version
  3107. of the C++ standard.
  3108. '-Wsized-deallocation (C++ and Objective-C++ only)'
  3109. Warn about a definition of an unsized deallocation function
  3110. void operator delete (void *) noexcept;
  3111. void operator delete[] (void *) noexcept;
  3112. without a definition of the corresponding sized deallocation
  3113. function
  3114. void operator delete (void *, std::size_t) noexcept;
  3115. void operator delete[] (void *, std::size_t) noexcept;
  3116. or vice versa. Enabled by '-Wextra' along with
  3117. '-fsized-deallocation'.
  3118. '-Wsuggest-final-types'
  3119. Warn about types with virtual methods where code quality would be
  3120. improved if the type were declared with the C++11 'final'
  3121. specifier, or, if possible, declared in an anonymous namespace.
  3122. This allows GCC to more aggressively devirtualize the polymorphic
  3123. calls. This warning is more effective with link-time optimization,
  3124. where the information about the class hierarchy graph is more
  3125. complete.
  3126. '-Wsuggest-final-methods'
  3127. Warn about virtual methods where code quality would be improved if
  3128. the method were declared with the C++11 'final' specifier, or, if
  3129. possible, its type were declared in an anonymous namespace or with
  3130. the 'final' specifier. This warning is more effective with
  3131. link-time optimization, where the information about the class
  3132. hierarchy graph is more complete. It is recommended to first
  3133. consider suggestions of '-Wsuggest-final-types' and then rebuild
  3134. with new annotations.
  3135. '-Wsuggest-override'
  3136. Warn about overriding virtual functions that are not marked with
  3137. the 'override' keyword.
  3138. '-Wuseless-cast (C++ and Objective-C++ only)'
  3139. Warn when an expression is casted to its own type.
  3140. '-Wno-conversion-null (C++ and Objective-C++ only)'
  3141. Do not warn for conversions between 'NULL' and non-pointer types.
  3142. '-Wconversion-null' is enabled by default.
  3143. 
  3144. File: gcc.info, Node: Objective-C and Objective-C++ Dialect Options, Next: Diagnostic Message Formatting Options, Prev: C++ Dialect Options, Up: Invoking GCC
  3145. 3.6 Options Controlling Objective-C and Objective-C++ Dialects
  3146. ==============================================================
  3147. (NOTE: This manual does not describe the Objective-C and Objective-C++
  3148. languages themselves. *Note Language Standards Supported by GCC:
  3149. Standards, for references.)
  3150. This section describes the command-line options that are only
  3151. meaningful for Objective-C and Objective-C++ programs. You can also use
  3152. most of the language-independent GNU compiler options. For example, you
  3153. might compile a file 'some_class.m' like this:
  3154. gcc -g -fgnu-runtime -O -c some_class.m
  3155. In this example, '-fgnu-runtime' is an option meant only for Objective-C
  3156. and Objective-C++ programs; you can use the other options with any
  3157. language supported by GCC.
  3158. Note that since Objective-C is an extension of the C language,
  3159. Objective-C compilations may also use options specific to the C
  3160. front-end (e.g., '-Wtraditional'). Similarly, Objective-C++
  3161. compilations may use C++-specific options (e.g., '-Wabi').
  3162. Here is a list of options that are _only_ for compiling Objective-C and
  3163. Objective-C++ programs:
  3164. '-fconstant-string-class=CLASS-NAME'
  3165. Use CLASS-NAME as the name of the class to instantiate for each
  3166. literal string specified with the syntax '@"..."'. The default
  3167. class name is 'NXConstantString' if the GNU runtime is being used,
  3168. and 'NSConstantString' if the NeXT runtime is being used (see
  3169. below). The '-fconstant-cfstrings' option, if also present,
  3170. overrides the '-fconstant-string-class' setting and cause '@"..."'
  3171. literals to be laid out as constant CoreFoundation strings.
  3172. '-fgnu-runtime'
  3173. Generate object code compatible with the standard GNU Objective-C
  3174. runtime. This is the default for most types of systems.
  3175. '-fnext-runtime'
  3176. Generate output compatible with the NeXT runtime. This is the
  3177. default for NeXT-based systems, including Darwin and Mac OS X. The
  3178. macro '__NEXT_RUNTIME__' is predefined if (and only if) this option
  3179. is used.
  3180. '-fno-nil-receivers'
  3181. Assume that all Objective-C message dispatches ('[receiver
  3182. message:arg]') in this translation unit ensure that the receiver is
  3183. not 'nil'. This allows for more efficient entry points in the
  3184. runtime to be used. This option is only available in conjunction
  3185. with the NeXT runtime and ABI version 0 or 1.
  3186. '-fobjc-abi-version=N'
  3187. Use version N of the Objective-C ABI for the selected runtime.
  3188. This option is currently supported only for the NeXT runtime. In
  3189. that case, Version 0 is the traditional (32-bit) ABI without
  3190. support for properties and other Objective-C 2.0 additions.
  3191. Version 1 is the traditional (32-bit) ABI with support for
  3192. properties and other Objective-C 2.0 additions. Version 2 is the
  3193. modern (64-bit) ABI. If nothing is specified, the default is
  3194. Version 0 on 32-bit target machines, and Version 2 on 64-bit target
  3195. machines.
  3196. '-fobjc-call-cxx-cdtors'
  3197. For each Objective-C class, check if any of its instance variables
  3198. is a C++ object with a non-trivial default constructor. If so,
  3199. synthesize a special '- (id) .cxx_construct' instance method which
  3200. runs non-trivial default constructors on any such instance
  3201. variables, in order, and then return 'self'. Similarly, check if
  3202. any instance variable is a C++ object with a non-trivial
  3203. destructor, and if so, synthesize a special '- (void)
  3204. .cxx_destruct' method which runs all such default destructors, in
  3205. reverse order.
  3206. The '- (id) .cxx_construct' and '- (void) .cxx_destruct' methods
  3207. thusly generated only operate on instance variables declared in the
  3208. current Objective-C class, and not those inherited from
  3209. superclasses. It is the responsibility of the Objective-C runtime
  3210. to invoke all such methods in an object's inheritance hierarchy.
  3211. The '- (id) .cxx_construct' methods are invoked by the runtime
  3212. immediately after a new object instance is allocated; the '- (void)
  3213. .cxx_destruct' methods are invoked immediately before the runtime
  3214. deallocates an object instance.
  3215. As of this writing, only the NeXT runtime on Mac OS X 10.4 and
  3216. later has support for invoking the '- (id) .cxx_construct' and '-
  3217. (void) .cxx_destruct' methods.
  3218. '-fobjc-direct-dispatch'
  3219. Allow fast jumps to the message dispatcher. On Darwin this is
  3220. accomplished via the comm page.
  3221. '-fobjc-exceptions'
  3222. Enable syntactic support for structured exception handling in
  3223. Objective-C, similar to what is offered by C++. This option is
  3224. required to use the Objective-C keywords '@try', '@throw',
  3225. '@catch', '@finally' and '@synchronized'. This option is available
  3226. with both the GNU runtime and the NeXT runtime (but not available
  3227. in conjunction with the NeXT runtime on Mac OS X 10.2 and earlier).
  3228. '-fobjc-gc'
  3229. Enable garbage collection (GC) in Objective-C and Objective-C++
  3230. programs. This option is only available with the NeXT runtime; the
  3231. GNU runtime has a different garbage collection implementation that
  3232. does not require special compiler flags.
  3233. '-fobjc-nilcheck'
  3234. For the NeXT runtime with version 2 of the ABI, check for a nil
  3235. receiver in method invocations before doing the actual method call.
  3236. This is the default and can be disabled using '-fno-objc-nilcheck'.
  3237. Class methods and super calls are never checked for nil in this way
  3238. no matter what this flag is set to. Currently this flag does
  3239. nothing when the GNU runtime, or an older version of the NeXT
  3240. runtime ABI, is used.
  3241. '-fobjc-std=objc1'
  3242. Conform to the language syntax of Objective-C 1.0, the language
  3243. recognized by GCC 4.0. This only affects the Objective-C additions
  3244. to the C/C++ language; it does not affect conformance to C/C++
  3245. standards, which is controlled by the separate C/C++ dialect option
  3246. flags. When this option is used with the Objective-C or
  3247. Objective-C++ compiler, any Objective-C syntax that is not
  3248. recognized by GCC 4.0 is rejected. This is useful if you need to
  3249. make sure that your Objective-C code can be compiled with older
  3250. versions of GCC.
  3251. '-freplace-objc-classes'
  3252. Emit a special marker instructing 'ld(1)' not to statically link in
  3253. the resulting object file, and allow 'dyld(1)' to load it in at run
  3254. time instead. This is used in conjunction with the
  3255. Fix-and-Continue debugging mode, where the object file in question
  3256. may be recompiled and dynamically reloaded in the course of program
  3257. execution, without the need to restart the program itself.
  3258. Currently, Fix-and-Continue functionality is only available in
  3259. conjunction with the NeXT runtime on Mac OS X 10.3 and later.
  3260. '-fzero-link'
  3261. When compiling for the NeXT runtime, the compiler ordinarily
  3262. replaces calls to 'objc_getClass("...")' (when the name of the
  3263. class is known at compile time) with static class references that
  3264. get initialized at load time, which improves run-time performance.
  3265. Specifying the '-fzero-link' flag suppresses this behavior and
  3266. causes calls to 'objc_getClass("...")' to be retained. This is
  3267. useful in Zero-Link debugging mode, since it allows for individual
  3268. class implementations to be modified during program execution. The
  3269. GNU runtime currently always retains calls to
  3270. 'objc_get_class("...")' regardless of command-line options.
  3271. '-fno-local-ivars'
  3272. By default instance variables in Objective-C can be accessed as if
  3273. they were local variables from within the methods of the class
  3274. they're declared in. This can lead to shadowing between instance
  3275. variables and other variables declared either locally inside a
  3276. class method or globally with the same name. Specifying the
  3277. '-fno-local-ivars' flag disables this behavior thus avoiding
  3278. variable shadowing issues.
  3279. '-fivar-visibility=[public|protected|private|package]'
  3280. Set the default instance variable visibility to the specified
  3281. option so that instance variables declared outside the scope of any
  3282. access modifier directives default to the specified visibility.
  3283. '-gen-decls'
  3284. Dump interface declarations for all classes seen in the source file
  3285. to a file named 'SOURCENAME.decl'.
  3286. '-Wassign-intercept (Objective-C and Objective-C++ only)'
  3287. Warn whenever an Objective-C assignment is being intercepted by the
  3288. garbage collector.
  3289. '-Wno-property-assign-default (Objective-C and Objective-C++ only)'
  3290. Do not warn if a property for an Objective-C object has no assign
  3291. semantics specified.
  3292. '-Wno-protocol (Objective-C and Objective-C++ only)'
  3293. If a class is declared to implement a protocol, a warning is issued
  3294. for every method in the protocol that is not implemented by the
  3295. class. The default behavior is to issue a warning for every method
  3296. not explicitly implemented in the class, even if a method
  3297. implementation is inherited from the superclass. If you use the
  3298. '-Wno-protocol' option, then methods inherited from the superclass
  3299. are considered to be implemented, and no warning is issued for
  3300. them.
  3301. '-Wselector (Objective-C and Objective-C++ only)'
  3302. Warn if multiple methods of different types for the same selector
  3303. are found during compilation. The check is performed on the list
  3304. of methods in the final stage of compilation. Additionally, a
  3305. check is performed for each selector appearing in a
  3306. '@selector(...)' expression, and a corresponding method for that
  3307. selector has been found during compilation. Because these checks
  3308. scan the method table only at the end of compilation, these
  3309. warnings are not produced if the final stage of compilation is not
  3310. reached, for example because an error is found during compilation,
  3311. or because the '-fsyntax-only' option is being used.
  3312. '-Wstrict-selector-match (Objective-C and Objective-C++ only)'
  3313. Warn if multiple methods with differing argument and/or return
  3314. types are found for a given selector when attempting to send a
  3315. message using this selector to a receiver of type 'id' or 'Class'.
  3316. When this flag is off (which is the default behavior), the compiler
  3317. omits such warnings if any differences found are confined to types
  3318. that share the same size and alignment.
  3319. '-Wundeclared-selector (Objective-C and Objective-C++ only)'
  3320. Warn if a '@selector(...)' expression referring to an undeclared
  3321. selector is found. A selector is considered undeclared if no
  3322. method with that name has been declared before the '@selector(...)'
  3323. expression, either explicitly in an '@interface' or '@protocol'
  3324. declaration, or implicitly in an '@implementation' section. This
  3325. option always performs its checks as soon as a '@selector(...)'
  3326. expression is found, while '-Wselector' only performs its checks in
  3327. the final stage of compilation. This also enforces the coding
  3328. style convention that methods and selectors must be declared before
  3329. being used.
  3330. '-print-objc-runtime-info'
  3331. Generate C header describing the largest structure that is passed
  3332. by value, if any.
  3333. 
  3334. File: gcc.info, Node: Diagnostic Message Formatting Options, Next: Warning Options, Prev: Objective-C and Objective-C++ Dialect Options, Up: Invoking GCC
  3335. 3.7 Options to Control Diagnostic Messages Formatting
  3336. =====================================================
  3337. Traditionally, diagnostic messages have been formatted irrespective of
  3338. the output device's aspect (e.g. its width, ...). You can use the
  3339. options described below to control the formatting algorithm for
  3340. diagnostic messages, e.g. how many characters per line, how often source
  3341. location information should be reported. Note that some language front
  3342. ends may not honor these options.
  3343. '-fmessage-length=N'
  3344. Try to format error messages so that they fit on lines of about N
  3345. characters. If N is zero, then no line-wrapping is done; each
  3346. error message appears on a single line. This is the default for
  3347. all front ends.
  3348. Note - this option also affects the display of the '#error' and
  3349. '#warning' pre-processor directives, and the 'deprecated'
  3350. function/type/variable attribute. It does not however affect the
  3351. 'pragma GCC warning' and 'pragma GCC error' pragmas.
  3352. '-fdiagnostics-show-location=once'
  3353. Only meaningful in line-wrapping mode. Instructs the diagnostic
  3354. messages reporter to emit source location information _once_; that
  3355. is, in case the message is too long to fit on a single physical
  3356. line and has to be wrapped, the source location won't be emitted
  3357. (as prefix) again, over and over, in subsequent continuation lines.
  3358. This is the default behavior.
  3359. '-fdiagnostics-show-location=every-line'
  3360. Only meaningful in line-wrapping mode. Instructs the diagnostic
  3361. messages reporter to emit the same source location information (as
  3362. prefix) for physical lines that result from the process of breaking
  3363. a message which is too long to fit on a single line.
  3364. '-fdiagnostics-color[=WHEN]'
  3365. '-fno-diagnostics-color'
  3366. Use color in diagnostics. WHEN is 'never', 'always', or 'auto'.
  3367. The default depends on how the compiler has been configured, it can
  3368. be any of the above WHEN options or also 'never' if 'GCC_COLORS'
  3369. environment variable isn't present in the environment, and 'auto'
  3370. otherwise. 'auto' makes GCC use color only when the standard error
  3371. is a terminal, and when not executing in an emacs shell. The forms
  3372. '-fdiagnostics-color' and '-fno-diagnostics-color' are aliases for
  3373. '-fdiagnostics-color=always' and '-fdiagnostics-color=never',
  3374. respectively.
  3375. The colors are defined by the environment variable 'GCC_COLORS'.
  3376. Its value is a colon-separated list of capabilities and Select
  3377. Graphic Rendition (SGR) substrings. SGR commands are interpreted
  3378. by the terminal or terminal emulator. (See the section in the
  3379. documentation of your text terminal for permitted values and their
  3380. meanings as character attributes.) These substring values are
  3381. integers in decimal representation and can be concatenated with
  3382. semicolons. Common values to concatenate include '1' for bold, '4'
  3383. for underline, '5' for blink, '7' for inverse, '39' for default
  3384. foreground color, '30' to '37' for foreground colors, '90' to '97'
  3385. for 16-color mode foreground colors, '38;5;0' to '38;5;255' for
  3386. 88-color and 256-color modes foreground colors, '49' for default
  3387. background color, '40' to '47' for background colors, '100' to
  3388. '107' for 16-color mode background colors, and '48;5;0' to
  3389. '48;5;255' for 88-color and 256-color modes background colors.
  3390. The default 'GCC_COLORS' is
  3391. error=01;31:warning=01;35:note=01;36:range1=32:range2=34:locus=01:\
  3392. quote=01:path=01;36:fixit-insert=32:fixit-delete=31:\
  3393. diff-filename=01:diff-hunk=32:diff-delete=31:diff-insert=32:\
  3394. type-diff=01;32
  3395. where '01;31' is bold red, '01;35' is bold magenta, '01;36' is bold
  3396. cyan, '32' is green, '34' is blue, '01' is bold, and '31' is red.
  3397. Setting 'GCC_COLORS' to the empty string disables colors.
  3398. Supported capabilities are as follows.
  3399. 'error='
  3400. SGR substring for error: markers.
  3401. 'warning='
  3402. SGR substring for warning: markers.
  3403. 'note='
  3404. SGR substring for note: markers.
  3405. 'path='
  3406. SGR substring for colorizing paths of control-flow events as
  3407. printed via '-fdiagnostics-path-format=', such as the
  3408. identifiers of individual events and lines indicating
  3409. interprocedural calls and returns.
  3410. 'range1='
  3411. SGR substring for first additional range.
  3412. 'range2='
  3413. SGR substring for second additional range.
  3414. 'locus='
  3415. SGR substring for location information, 'file:line' or
  3416. 'file:line:column' etc.
  3417. 'quote='
  3418. SGR substring for information printed within quotes.
  3419. 'fixit-insert='
  3420. SGR substring for fix-it hints suggesting text to be inserted
  3421. or replaced.
  3422. 'fixit-delete='
  3423. SGR substring for fix-it hints suggesting text to be deleted.
  3424. 'diff-filename='
  3425. SGR substring for filename headers within generated patches.
  3426. 'diff-hunk='
  3427. SGR substring for the starts of hunks within generated
  3428. patches.
  3429. 'diff-delete='
  3430. SGR substring for deleted lines within generated patches.
  3431. 'diff-insert='
  3432. SGR substring for inserted lines within generated patches.
  3433. 'type-diff='
  3434. SGR substring for highlighting mismatching types within
  3435. template arguments in the C++ frontend.
  3436. '-fdiagnostics-urls[=WHEN]'
  3437. Use escape sequences to embed URLs in diagnostics. For example,
  3438. when '-fdiagnostics-show-option' emits text showing the
  3439. command-line option controlling a diagnostic, embed a URL for
  3440. documentation of that option.
  3441. WHEN is 'never', 'always', or 'auto'. 'auto' makes GCC use URL
  3442. escape sequences only when the standard error is a terminal, and
  3443. when not executing in an emacs shell or any graphical terminal
  3444. which is known to be incompatible with this feature, see below.
  3445. The default depends on how the compiler has been configured. It
  3446. can be any of the above WHEN options.
  3447. GCC can also be configured (via the
  3448. '--with-diagnostics-urls=auto-if-env' configure-time option) so
  3449. that the default is affected by environment variables. Under such
  3450. a configuration, GCC defaults to using 'auto' if either 'GCC_URLS'
  3451. or 'TERM_URLS' environment variables are present and non-empty in
  3452. the environment of the compiler, or 'never' if neither are.
  3453. However, even with '-fdiagnostics-urls=always' the behavior is
  3454. dependent on those environment variables: If 'GCC_URLS' is set to
  3455. empty or 'no', do not embed URLs in diagnostics. If set to 'st',
  3456. URLs use ST escape sequences. If set to 'bel', the default, URLs
  3457. use BEL escape sequences. Any other non-empty value enables the
  3458. feature. If 'GCC_URLS' is not set, use 'TERM_URLS' as a fallback.
  3459. Note: ST is an ANSI escape sequence, string terminator 'ESC \', BEL
  3460. is an ASCII character, CTRL-G that usually sounds like a beep.
  3461. At this time GCC tries to detect also a few terminals that are
  3462. known to not implement the URL feature, and have bugs or at least
  3463. had bugs in some versions that are still in use, where the URL
  3464. escapes are likely to misbehave, i.e. print garbage on the screen.
  3465. That list is currently xfce4-terminal, certain known to be buggy
  3466. gnome-terminal versions, the linux console, and mingw. This check
  3467. can be skipped with the '-fdiagnostics-urls=always'.
  3468. '-fno-diagnostics-show-option'
  3469. By default, each diagnostic emitted includes text indicating the
  3470. command-line option that directly controls the diagnostic (if such
  3471. an option is known to the diagnostic machinery). Specifying the
  3472. '-fno-diagnostics-show-option' flag suppresses that behavior.
  3473. '-fno-diagnostics-show-caret'
  3474. By default, each diagnostic emitted includes the original source
  3475. line and a caret '^' indicating the column. This option suppresses
  3476. this information. The source line is truncated to N characters, if
  3477. the '-fmessage-length=n' option is given. When the output is done
  3478. to the terminal, the width is limited to the width given by the
  3479. 'COLUMNS' environment variable or, if not set, to the terminal
  3480. width.
  3481. '-fno-diagnostics-show-labels'
  3482. By default, when printing source code (via
  3483. '-fdiagnostics-show-caret'), diagnostics can label ranges of source
  3484. code with pertinent information, such as the types of expressions:
  3485. printf ("foo %s bar", long_i + long_j);
  3486. ~^ ~~~~~~~~~~~~~~~
  3487. | |
  3488. char * long int
  3489. This option suppresses the printing of these labels (in the example
  3490. above, the vertical bars and the "char *" and "long int" text).
  3491. '-fno-diagnostics-show-cwe'
  3492. Diagnostic messages can optionally have an associated CWE
  3493. (https://cwe.mitre.org/index.html) identifier. GCC itself only
  3494. provides such metadata for some of the '-fanalyzer' diagnostics.
  3495. GCC plugins may also provide diagnostics with such metadata. By
  3496. default, if this information is present, it will be printed with
  3497. the diagnostic. This option suppresses the printing of this
  3498. metadata.
  3499. '-fno-diagnostics-show-line-numbers'
  3500. By default, when printing source code (via
  3501. '-fdiagnostics-show-caret'), a left margin is printed, showing line
  3502. numbers. This option suppresses this left margin.
  3503. '-fdiagnostics-minimum-margin-width=WIDTH'
  3504. This option controls the minimum width of the left margin printed
  3505. by '-fdiagnostics-show-line-numbers'. It defaults to 6.
  3506. '-fdiagnostics-parseable-fixits'
  3507. Emit fix-it hints in a machine-parseable format, suitable for
  3508. consumption by IDEs. For each fix-it, a line will be printed after
  3509. the relevant diagnostic, starting with the string "fix-it:". For
  3510. example:
  3511. fix-it:"test.c":{45:3-45:21}:"gtk_widget_show_all"
  3512. The location is expressed as a half-open range, expressed as a
  3513. count of bytes, starting at byte 1 for the initial column. In the
  3514. above example, bytes 3 through 20 of line 45 of "test.c" are to be
  3515. replaced with the given string:
  3516. 00000000011111111112222222222
  3517. 12345678901234567890123456789
  3518. gtk_widget_showall (dlg);
  3519. ^^^^^^^^^^^^^^^^^^
  3520. gtk_widget_show_all
  3521. The filename and replacement string escape backslash as "\\", tab
  3522. as "\t", newline as "\n", double quotes as "\"", non-printable
  3523. characters as octal (e.g. vertical tab as "\013").
  3524. An empty replacement string indicates that the given range is to be
  3525. removed. An empty range (e.g. "45:3-45:3") indicates that the
  3526. string is to be inserted at the given position.
  3527. '-fdiagnostics-generate-patch'
  3528. Print fix-it hints to stderr in unified diff format, after any
  3529. diagnostics are printed. For example:
  3530. --- test.c
  3531. +++ test.c
  3532. @ -42,5 +42,5 @
  3533. void show_cb(GtkDialog *dlg)
  3534. {
  3535. - gtk_widget_showall(dlg);
  3536. + gtk_widget_show_all(dlg);
  3537. }
  3538. The diff may or may not be colorized, following the same rules as
  3539. for diagnostics (see '-fdiagnostics-color').
  3540. '-fdiagnostics-show-template-tree'
  3541. In the C++ frontend, when printing diagnostics showing mismatching
  3542. template types, such as:
  3543. could not convert 'std::map<int, std::vector<double> >()'
  3544. from 'map<[...],vector<double>>' to 'map<[...],vector<float>>
  3545. the '-fdiagnostics-show-template-tree' flag enables printing a
  3546. tree-like structure showing the common and differing parts of the
  3547. types, such as:
  3548. map<
  3549. [...],
  3550. vector<
  3551. [double != float]>>
  3552. The parts that differ are highlighted with color ("double" and
  3553. "float" in this case).
  3554. '-fno-elide-type'
  3555. By default when the C++ frontend prints diagnostics showing
  3556. mismatching template types, common parts of the types are printed
  3557. as "[...]" to simplify the error message. For example:
  3558. could not convert 'std::map<int, std::vector<double> >()'
  3559. from 'map<[...],vector<double>>' to 'map<[...],vector<float>>
  3560. Specifying the '-fno-elide-type' flag suppresses that behavior.
  3561. This flag also affects the output of the
  3562. '-fdiagnostics-show-template-tree' flag.
  3563. '-fdiagnostics-path-format=KIND'
  3564. Specify how to print paths of control-flow events for diagnostics
  3565. that have such a path associated with them.
  3566. KIND is 'none', 'separate-events', or 'inline-events', the default.
  3567. 'none' means to not print diagnostic paths.
  3568. 'separate-events' means to print a separate "note" diagnostic for
  3569. each event within the diagnostic. For example:
  3570. test.c:29:5: error: passing NULL as argument 1 to 'PyList_Append' which requires a non-NULL parameter
  3571. test.c:25:10: note: (1) when 'PyList_New' fails, returning NULL
  3572. test.c:27:3: note: (2) when 'i < count'
  3573. test.c:29:5: note: (3) when calling 'PyList_Append', passing NULL from (1) as argument 1
  3574. 'inline-events' means to print the events "inline" within the
  3575. source code. This view attempts to consolidate the events into
  3576. runs of sufficiently-close events, printing them as labelled ranges
  3577. within the source.
  3578. For example, the same events as above might be printed as:
  3579. 'test': events 1-3
  3580. |
  3581. | 25 | list = PyList_New(0);
  3582. | | ^~~~~~~~~~~~~
  3583. | | |
  3584. | | (1) when 'PyList_New' fails, returning NULL
  3585. | 26 |
  3586. | 27 | for (i = 0; i < count; i++) {
  3587. | | ~~~
  3588. | | |
  3589. | | (2) when 'i < count'
  3590. | 28 | item = PyLong_FromLong(random());
  3591. | 29 | PyList_Append(list, item);
  3592. | | ~~~~~~~~~~~~~~~~~~~~~~~~~
  3593. | | |
  3594. | | (3) when calling 'PyList_Append', passing NULL from (1) as argument 1
  3595. |
  3596. Interprocedural control flow is shown by grouping the events by
  3597. stack frame, and using indentation to show how stack frames are
  3598. nested, pushed, and popped.
  3599. For example:
  3600. 'test': events 1-2
  3601. |
  3602. | 133 | {
  3603. | | ^
  3604. | | |
  3605. | | (1) entering 'test'
  3606. | 134 | boxed_int *obj = make_boxed_int (i);
  3607. | | ~~~~~~~~~~~~~~~~~~
  3608. | | |
  3609. | | (2) calling 'make_boxed_int'
  3610. |
  3611. +--> 'make_boxed_int': events 3-4
  3612. |
  3613. | 120 | {
  3614. | | ^
  3615. | | |
  3616. | | (3) entering 'make_boxed_int'
  3617. | 121 | boxed_int *result = (boxed_int *)wrapped_malloc (sizeof (boxed_int));
  3618. | | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  3619. | | |
  3620. | | (4) calling 'wrapped_malloc'
  3621. |
  3622. +--> 'wrapped_malloc': events 5-6
  3623. |
  3624. | 7 | {
  3625. | | ^
  3626. | | |
  3627. | | (5) entering 'wrapped_malloc'
  3628. | 8 | return malloc (size);
  3629. | | ~~~~~~~~~~~~~
  3630. | | |
  3631. | | (6) calling 'malloc'
  3632. |
  3633. <-------------+
  3634. |
  3635. 'test': event 7
  3636. |
  3637. | 138 | free_boxed_int (obj);
  3638. | | ^~~~~~~~~~~~~~~~~~~~
  3639. | | |
  3640. | | (7) calling 'free_boxed_int'
  3641. |
  3642. (etc)
  3643. '-fdiagnostics-show-path-depths'
  3644. This option provides additional information when printing
  3645. control-flow paths associated with a diagnostic.
  3646. If this is option is provided then the stack depth will be printed
  3647. for each run of events within
  3648. '-fdiagnostics-path-format=separate-events'.
  3649. This is intended for use by GCC developers and plugin developers
  3650. when debugging diagnostics that report interprocedural control
  3651. flow.
  3652. '-fno-show-column'
  3653. Do not print column numbers in diagnostics. This may be necessary
  3654. if diagnostics are being scanned by a program that does not
  3655. understand the column numbers, such as 'dejagnu'.
  3656. '-fdiagnostics-format=FORMAT'
  3657. Select a different format for printing diagnostics. FORMAT is
  3658. 'text' or 'json'. The default is 'text'.
  3659. The 'json' format consists of a top-level JSON array containing
  3660. JSON objects representing the diagnostics.
  3661. The JSON is emitted as one line, without formatting; the examples
  3662. below have been formatted for clarity.
  3663. Diagnostics can have child diagnostics. For example, this error
  3664. and note:
  3665. misleading-indentation.c:15:3: warning: this 'if' clause does not
  3666. guard... [-Wmisleading-indentation]
  3667. 15 | if (flag)
  3668. | ^~
  3669. misleading-indentation.c:17:5: note: ...this statement, but the latter
  3670. is misleadingly indented as if it were guarded by the 'if'
  3671. 17 | y = 2;
  3672. | ^
  3673. might be printed in JSON form (after formatting) like this:
  3674. [
  3675. {
  3676. "kind": "warning",
  3677. "locations": [
  3678. {
  3679. "caret": {
  3680. "column": 3,
  3681. "file": "misleading-indentation.c",
  3682. "line": 15
  3683. },
  3684. "finish": {
  3685. "column": 4,
  3686. "file": "misleading-indentation.c",
  3687. "line": 15
  3688. }
  3689. }
  3690. ],
  3691. "message": "this \u2018if\u2019 clause does not guard...",
  3692. "option": "-Wmisleading-indentation",
  3693. "option_url": "https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wmisleading-indentation",
  3694. "children": [
  3695. {
  3696. "kind": "note",
  3697. "locations": [
  3698. {
  3699. "caret": {
  3700. "column": 5,
  3701. "file": "misleading-indentation.c",
  3702. "line": 17
  3703. }
  3704. }
  3705. ],
  3706. "message": "...this statement, but the latter is ..."
  3707. }
  3708. ]
  3709. },
  3710. ...
  3711. ]
  3712. where the 'note' is a child of the 'warning'.
  3713. A diagnostic has a 'kind'. If this is 'warning', then there is an
  3714. 'option' key describing the command-line option controlling the
  3715. warning.
  3716. A diagnostic can contain zero or more locations. Each location has
  3717. up to three positions within it: a 'caret' position and optional
  3718. 'start' and 'finish' positions. A location can also have an
  3719. optional 'label' string. For example, this error:
  3720. bad-binary-ops.c:64:23: error: invalid operands to binary + (have 'S' {aka
  3721. 'struct s'} and 'T' {aka 'struct t'})
  3722. 64 | return callee_4a () + callee_4b ();
  3723. | ~~~~~~~~~~~~ ^ ~~~~~~~~~~~~
  3724. | | |
  3725. | | T {aka struct t}
  3726. | S {aka struct s}
  3727. has three locations. Its primary location is at the "+" token at
  3728. column 23. It has two secondary locations, describing the left and
  3729. right-hand sides of the expression, which have labels. It might be
  3730. printed in JSON form as:
  3731. {
  3732. "children": [],
  3733. "kind": "error",
  3734. "locations": [
  3735. {
  3736. "caret": {
  3737. "column": 23, "file": "bad-binary-ops.c", "line": 64
  3738. }
  3739. },
  3740. {
  3741. "caret": {
  3742. "column": 10, "file": "bad-binary-ops.c", "line": 64
  3743. },
  3744. "finish": {
  3745. "column": 21, "file": "bad-binary-ops.c", "line": 64
  3746. },
  3747. "label": "S {aka struct s}"
  3748. },
  3749. {
  3750. "caret": {
  3751. "column": 25, "file": "bad-binary-ops.c", "line": 64
  3752. },
  3753. "finish": {
  3754. "column": 36, "file": "bad-binary-ops.c", "line": 64
  3755. },
  3756. "label": "T {aka struct t}"
  3757. }
  3758. ],
  3759. "message": "invalid operands to binary + ..."
  3760. }
  3761. If a diagnostic contains fix-it hints, it has a 'fixits' array,
  3762. consisting of half-open intervals, similar to the output of
  3763. '-fdiagnostics-parseable-fixits'. For example, this diagnostic
  3764. with a replacement fix-it hint:
  3765. demo.c:8:15: error: 'struct s' has no member named 'colour'; did you
  3766. mean 'color'?
  3767. 8 | return ptr->colour;
  3768. | ^~~~~~
  3769. | color
  3770. might be printed in JSON form as:
  3771. {
  3772. "children": [],
  3773. "fixits": [
  3774. {
  3775. "next": {
  3776. "column": 21,
  3777. "file": "demo.c",
  3778. "line": 8
  3779. },
  3780. "start": {
  3781. "column": 15,
  3782. "file": "demo.c",
  3783. "line": 8
  3784. },
  3785. "string": "color"
  3786. }
  3787. ],
  3788. "kind": "error",
  3789. "locations": [
  3790. {
  3791. "caret": {
  3792. "column": 15,
  3793. "file": "demo.c",
  3794. "line": 8
  3795. },
  3796. "finish": {
  3797. "column": 20,
  3798. "file": "demo.c",
  3799. "line": 8
  3800. }
  3801. }
  3802. ],
  3803. "message": "\u2018struct s\u2019 has no member named ..."
  3804. }
  3805. where the fix-it hint suggests replacing the text from 'start' up
  3806. to but not including 'next' with 'string''s value. Deletions are
  3807. expressed via an empty value for 'string', insertions by having
  3808. 'start' equal 'next'.
  3809. If the diagnostic has a path of control-flow events associated with
  3810. it, it has a 'path' array of objects representing the events. Each
  3811. event object has a 'description' string, a 'location' object, along
  3812. with a 'function' string and a 'depth' number for representing
  3813. interprocedural paths. The 'function' represents the current
  3814. function at that event, and the 'depth' represents the stack depth
  3815. relative to some baseline: the higher, the more frames are within
  3816. the stack.
  3817. For example, the intraprocedural example shown for
  3818. '-fdiagnostics-path-format=' might have this JSON for its path:
  3819. "path": [
  3820. {
  3821. "depth": 0,
  3822. "description": "when 'PyList_New' fails, returning NULL",
  3823. "function": "test",
  3824. "location": {
  3825. "column": 10,
  3826. "file": "test.c",
  3827. "line": 25
  3828. }
  3829. },
  3830. {
  3831. "depth": 0,
  3832. "description": "when 'i < count'",
  3833. "function": "test",
  3834. "location": {
  3835. "column": 3,
  3836. "file": "test.c",
  3837. "line": 27
  3838. }
  3839. },
  3840. {
  3841. "depth": 0,
  3842. "description": "when calling 'PyList_Append', passing NULL from (1) as argument 1",
  3843. "function": "test",
  3844. "location": {
  3845. "column": 5,
  3846. "file": "test.c",
  3847. "line": 29
  3848. }
  3849. }
  3850. ]
  3851. 
  3852. File: gcc.info, Node: Warning Options, Next: Static Analyzer Options, Prev: Diagnostic Message Formatting Options, Up: Invoking GCC
  3853. 3.8 Options to Request or Suppress Warnings
  3854. ===========================================
  3855. Warnings are diagnostic messages that report constructions that are not
  3856. inherently erroneous but that are risky or suggest there may have been
  3857. an error.
  3858. The following language-independent options do not enable specific
  3859. warnings but control the kinds of diagnostics produced by GCC.
  3860. '-fsyntax-only'
  3861. Check the code for syntax errors, but don't do anything beyond
  3862. that.
  3863. '-fmax-errors=N'
  3864. Limits the maximum number of error messages to N, at which point
  3865. GCC bails out rather than attempting to continue processing the
  3866. source code. If N is 0 (the default), there is no limit on the
  3867. number of error messages produced. If '-Wfatal-errors' is also
  3868. specified, then '-Wfatal-errors' takes precedence over this option.
  3869. '-w'
  3870. Inhibit all warning messages.
  3871. '-Werror'
  3872. Make all warnings into errors.
  3873. '-Werror='
  3874. Make the specified warning into an error. The specifier for a
  3875. warning is appended; for example '-Werror=switch' turns the
  3876. warnings controlled by '-Wswitch' into errors. This switch takes a
  3877. negative form, to be used to negate '-Werror' for specific
  3878. warnings; for example '-Wno-error=switch' makes '-Wswitch' warnings
  3879. not be errors, even when '-Werror' is in effect.
  3880. The warning message for each controllable warning includes the
  3881. option that controls the warning. That option can then be used
  3882. with '-Werror=' and '-Wno-error=' as described above. (Printing of
  3883. the option in the warning message can be disabled using the
  3884. '-fno-diagnostics-show-option' flag.)
  3885. Note that specifying '-Werror='FOO automatically implies '-W'FOO.
  3886. However, '-Wno-error='FOO does not imply anything.
  3887. '-Wfatal-errors'
  3888. This option causes the compiler to abort compilation on the first
  3889. error occurred rather than trying to keep going and printing
  3890. further error messages.
  3891. You can request many specific warnings with options beginning with
  3892. '-W', for example '-Wimplicit' to request warnings on implicit
  3893. declarations. Each of these specific warning options also has a
  3894. negative form beginning '-Wno-' to turn off warnings; for example,
  3895. '-Wno-implicit'. This manual lists only one of the two forms, whichever
  3896. is not the default. For further language-specific options also refer to
  3897. *note C++ Dialect Options:: and *note Objective-C and Objective-C++
  3898. Dialect Options::. Additional warnings can be produced by enabling the
  3899. static analyzer; *Note Static Analyzer Options::.
  3900. Some options, such as '-Wall' and '-Wextra', turn on other options,
  3901. such as '-Wunused', which may turn on further options, such as
  3902. '-Wunused-value'. The combined effect of positive and negative forms is
  3903. that more specific options have priority over less specific ones,
  3904. independently of their position in the command-line. For options of the
  3905. same specificity, the last one takes effect. Options enabled or
  3906. disabled via pragmas (*note Diagnostic Pragmas::) take effect as if they
  3907. appeared at the end of the command-line.
  3908. When an unrecognized warning option is requested (e.g.,
  3909. '-Wunknown-warning'), GCC emits a diagnostic stating that the option is
  3910. not recognized. However, if the '-Wno-' form is used, the behavior is
  3911. slightly different: no diagnostic is produced for '-Wno-unknown-warning'
  3912. unless other diagnostics are being produced. This allows the use of new
  3913. '-Wno-' options with old compilers, but if something goes wrong, the
  3914. compiler warns that an unrecognized option is present.
  3915. The effectiveness of some warnings depends on optimizations also being
  3916. enabled. For example '-Wsuggest-final-types' is more effective with
  3917. link-time optimization and '-Wmaybe-uninitialized' does not warn at all
  3918. unless optimization is enabled.
  3919. '-Wpedantic'
  3920. '-pedantic'
  3921. Issue all the warnings demanded by strict ISO C and ISO C++; reject
  3922. all programs that use forbidden extensions, and some other programs
  3923. that do not follow ISO C and ISO C++. For ISO C, follows the
  3924. version of the ISO C standard specified by any '-std' option used.
  3925. Valid ISO C and ISO C++ programs should compile properly with or
  3926. without this option (though a rare few require '-ansi' or a '-std'
  3927. option specifying the required version of ISO C). However, without
  3928. this option, certain GNU extensions and traditional C and C++
  3929. features are supported as well. With this option, they are
  3930. rejected.
  3931. '-Wpedantic' does not cause warning messages for use of the
  3932. alternate keywords whose names begin and end with '__'. This
  3933. alternate format can also be used to disable warnings for non-ISO
  3934. '__intN' types, i.e. '__intN__'. Pedantic warnings are also
  3935. disabled in the expression that follows '__extension__'. However,
  3936. only system header files should use these escape routes;
  3937. application programs should avoid them. *Note Alternate
  3938. Keywords::.
  3939. Some users try to use '-Wpedantic' to check programs for strict ISO
  3940. C conformance. They soon find that it does not do quite what they
  3941. want: it finds some non-ISO practices, but not all--only those for
  3942. which ISO C _requires_ a diagnostic, and some others for which
  3943. diagnostics have been added.
  3944. A feature to report any failure to conform to ISO C might be useful
  3945. in some instances, but would require considerable additional work
  3946. and would be quite different from '-Wpedantic'. We don't have
  3947. plans to support such a feature in the near future.
  3948. Where the standard specified with '-std' represents a GNU extended
  3949. dialect of C, such as 'gnu90' or 'gnu99', there is a corresponding
  3950. "base standard", the version of ISO C on which the GNU extended
  3951. dialect is based. Warnings from '-Wpedantic' are given where they
  3952. are required by the base standard. (It does not make sense for
  3953. such warnings to be given only for features not in the specified
  3954. GNU C dialect, since by definition the GNU dialects of C include
  3955. all features the compiler supports with the given option, and there
  3956. would be nothing to warn about.)
  3957. '-pedantic-errors'
  3958. Give an error whenever the "base standard" (see '-Wpedantic')
  3959. requires a diagnostic, in some cases where there is undefined
  3960. behavior at compile-time and in some other cases that do not
  3961. prevent compilation of programs that are valid according to the
  3962. standard. This is not equivalent to '-Werror=pedantic', since
  3963. there are errors enabled by this option and not enabled by the
  3964. latter and vice versa.
  3965. '-Wall'
  3966. This enables all the warnings about constructions that some users
  3967. consider questionable, and that are easy to avoid (or modify to
  3968. prevent the warning), even in conjunction with macros. This also
  3969. enables some language-specific warnings described in *note C++
  3970. Dialect Options:: and *note Objective-C and Objective-C++ Dialect
  3971. Options::.
  3972. '-Wall' turns on the following warning flags:
  3973. -Waddress
  3974. -Warray-bounds=1 (only with -O2)
  3975. -Wbool-compare
  3976. -Wbool-operation
  3977. -Wc++11-compat -Wc++14-compat
  3978. -Wcatch-value (C++ and Objective-C++ only)
  3979. -Wchar-subscripts
  3980. -Wcomment
  3981. -Wduplicate-decl-specifier (C and Objective-C only)
  3982. -Wenum-compare (in C/ObjC; this is on by default in C++)
  3983. -Wenum-conversion in C/ObjC;
  3984. -Wformat
  3985. -Wformat-overflow
  3986. -Wformat-truncation
  3987. -Wint-in-bool-context
  3988. -Wimplicit (C and Objective-C only)
  3989. -Wimplicit-int (C and Objective-C only)
  3990. -Wimplicit-function-declaration (C and Objective-C only)
  3991. -Winit-self (only for C++)
  3992. -Wlogical-not-parentheses
  3993. -Wmain (only for C/ObjC and unless -ffreestanding)
  3994. -Wmaybe-uninitialized
  3995. -Wmemset-elt-size
  3996. -Wmemset-transposed-args
  3997. -Wmisleading-indentation (only for C/C++)
  3998. -Wmissing-attributes
  3999. -Wmissing-braces (only for C/ObjC)
  4000. -Wmultistatement-macros
  4001. -Wnarrowing (only for C++)
  4002. -Wnonnull
  4003. -Wnonnull-compare
  4004. -Wopenmp-simd
  4005. -Wparentheses
  4006. -Wpessimizing-move (only for C++)
  4007. -Wpointer-sign
  4008. -Wreorder
  4009. -Wrestrict
  4010. -Wreturn-type
  4011. -Wsequence-point
  4012. -Wsign-compare (only in C++)
  4013. -Wsizeof-pointer-div
  4014. -Wsizeof-pointer-memaccess
  4015. -Wstrict-aliasing
  4016. -Wstrict-overflow=1
  4017. -Wswitch
  4018. -Wtautological-compare
  4019. -Wtrigraphs
  4020. -Wuninitialized
  4021. -Wunknown-pragmas
  4022. -Wunused-function
  4023. -Wunused-label
  4024. -Wunused-value
  4025. -Wunused-variable
  4026. -Wvolatile-register-var
  4027. -Wzero-length-bounds
  4028. Note that some warning flags are not implied by '-Wall'. Some of
  4029. them warn about constructions that users generally do not consider
  4030. questionable, but which occasionally you might wish to check for;
  4031. others warn about constructions that are necessary or hard to avoid
  4032. in some cases, and there is no simple way to modify the code to
  4033. suppress the warning. Some of them are enabled by '-Wextra' but
  4034. many of them must be enabled individually.
  4035. '-Wextra'
  4036. This enables some extra warning flags that are not enabled by
  4037. '-Wall'. (This option used to be called '-W'. The older name is
  4038. still supported, but the newer name is more descriptive.)
  4039. -Wclobbered
  4040. -Wcast-function-type
  4041. -Wdeprecated-copy (C++ only)
  4042. -Wempty-body
  4043. -Wignored-qualifiers
  4044. -Wimplicit-fallthrough=3
  4045. -Wmissing-field-initializers
  4046. -Wmissing-parameter-type (C only)
  4047. -Wold-style-declaration (C only)
  4048. -Woverride-init
  4049. -Wsign-compare (C only)
  4050. -Wstring-compare
  4051. -Wredundant-move (only for C++)
  4052. -Wtype-limits
  4053. -Wuninitialized
  4054. -Wshift-negative-value (in C++03 and in C99 and newer)
  4055. -Wunused-parameter (only with -Wunused or -Wall)
  4056. -Wunused-but-set-parameter (only with -Wunused or -Wall)
  4057. The option '-Wextra' also prints warning messages for the following
  4058. cases:
  4059. * A pointer is compared against integer zero with '<', '<=',
  4060. '>', or '>='.
  4061. * (C++ only) An enumerator and a non-enumerator both appear in a
  4062. conditional expression.
  4063. * (C++ only) Ambiguous virtual bases.
  4064. * (C++ only) Subscripting an array that has been declared
  4065. 'register'.
  4066. * (C++ only) Taking the address of a variable that has been
  4067. declared 'register'.
  4068. * (C++ only) A base class is not initialized in the copy
  4069. constructor of a derived class.
  4070. '-Wabi (C, Objective-C, C++ and Objective-C++ only)'
  4071. Warn about code affected by ABI changes. This includes code that
  4072. may not be compatible with the vendor-neutral C++ ABI as well as
  4073. the psABI for the particular target.
  4074. Since G++ now defaults to updating the ABI with each major release,
  4075. normally '-Wabi' warns only about C++ ABI compatibility problems if
  4076. there is a check added later in a release series for an ABI issue
  4077. discovered since the initial release. '-Wabi' warns about more
  4078. things if an older ABI version is selected (with
  4079. '-fabi-version=N').
  4080. '-Wabi' can also be used with an explicit version number to warn
  4081. about C++ ABI compatibility with a particular '-fabi-version'
  4082. level, e.g. '-Wabi=2' to warn about changes relative to
  4083. '-fabi-version=2'.
  4084. If an explicit version number is provided and
  4085. '-fabi-compat-version' is not specified, the version number from
  4086. this option is used for compatibility aliases. If no explicit
  4087. version number is provided with this option, but
  4088. '-fabi-compat-version' is specified, that version number is used
  4089. for C++ ABI warnings.
  4090. Although an effort has been made to warn about all such cases,
  4091. there are probably some cases that are not warned about, even
  4092. though G++ is generating incompatible code. There may also be
  4093. cases where warnings are emitted even though the code that is
  4094. generated is compatible.
  4095. You should rewrite your code to avoid these warnings if you are
  4096. concerned about the fact that code generated by G++ may not be
  4097. binary compatible with code generated by other compilers.
  4098. Known incompatibilities in '-fabi-version=2' (which was the default
  4099. from GCC 3.4 to 4.9) include:
  4100. * A template with a non-type template parameter of reference
  4101. type was mangled incorrectly:
  4102. extern int N;
  4103. template <int &> struct S {};
  4104. void n (S<N>) {2}
  4105. This was fixed in '-fabi-version=3'.
  4106. * SIMD vector types declared using '__attribute ((vector_size))'
  4107. were mangled in a non-standard way that does not allow for
  4108. overloading of functions taking vectors of different sizes.
  4109. The mangling was changed in '-fabi-version=4'.
  4110. * '__attribute ((const))' and 'noreturn' were mangled as type
  4111. qualifiers, and 'decltype' of a plain declaration was folded
  4112. away.
  4113. These mangling issues were fixed in '-fabi-version=5'.
  4114. * Scoped enumerators passed as arguments to a variadic function
  4115. are promoted like unscoped enumerators, causing 'va_arg' to
  4116. complain. On most targets this does not actually affect the
  4117. parameter passing ABI, as there is no way to pass an argument
  4118. smaller than 'int'.
  4119. Also, the ABI changed the mangling of template argument packs,
  4120. 'const_cast', 'static_cast', prefix increment/decrement, and a
  4121. class scope function used as a template argument.
  4122. These issues were corrected in '-fabi-version=6'.
  4123. * Lambdas in default argument scope were mangled incorrectly,
  4124. and the ABI changed the mangling of 'nullptr_t'.
  4125. These issues were corrected in '-fabi-version=7'.
  4126. * When mangling a function type with function-cv-qualifiers, the
  4127. un-qualified function type was incorrectly treated as a
  4128. substitution candidate.
  4129. This was fixed in '-fabi-version=8', the default for GCC 5.1.
  4130. * 'decltype(nullptr)' incorrectly had an alignment of 1, leading
  4131. to unaligned accesses. Note that this did not affect the ABI
  4132. of a function with a 'nullptr_t' parameter, as parameters have
  4133. a minimum alignment.
  4134. This was fixed in '-fabi-version=9', the default for GCC 5.2.
  4135. * Target-specific attributes that affect the identity of a type,
  4136. such as ia32 calling conventions on a function type (stdcall,
  4137. regparm, etc.), did not affect the mangled name, leading to
  4138. name collisions when function pointers were used as template
  4139. arguments.
  4140. This was fixed in '-fabi-version=10', the default for GCC 6.1.
  4141. This option also enables warnings about psABI-related changes. The
  4142. known psABI changes at this point include:
  4143. * For SysV/x86-64, unions with 'long double' members are passed
  4144. in memory as specified in psABI. Prior to GCC 4.4, this was
  4145. not the case. For example:
  4146. union U {
  4147. long double ld;
  4148. int i;
  4149. };
  4150. 'union U' is now always passed in memory.
  4151. '-Wchar-subscripts'
  4152. Warn if an array subscript has type 'char'. This is a common cause
  4153. of error, as programmers often forget that this type is signed on
  4154. some machines. This warning is enabled by '-Wall'.
  4155. '-Wno-coverage-mismatch'
  4156. Warn if feedback profiles do not match when using the
  4157. '-fprofile-use' option. If a source file is changed between
  4158. compiling with '-fprofile-generate' and with '-fprofile-use', the
  4159. files with the profile feedback can fail to match the source file
  4160. and GCC cannot use the profile feedback information. By default,
  4161. this warning is enabled and is treated as an error.
  4162. '-Wno-coverage-mismatch' can be used to disable the warning or
  4163. '-Wno-error=coverage-mismatch' can be used to disable the error.
  4164. Disabling the error for this warning can result in poorly optimized
  4165. code and is useful only in the case of very minor changes such as
  4166. bug fixes to an existing code-base. Completely disabling the
  4167. warning is not recommended.
  4168. '-Wno-cpp'
  4169. (C, Objective-C, C++, Objective-C++ and Fortran only) Suppress
  4170. warning messages emitted by '#warning' directives.
  4171. '-Wdouble-promotion (C, C++, Objective-C and Objective-C++ only)'
  4172. Give a warning when a value of type 'float' is implicitly promoted
  4173. to 'double'. CPUs with a 32-bit "single-precision" floating-point
  4174. unit implement 'float' in hardware, but emulate 'double' in
  4175. software. On such a machine, doing computations using 'double'
  4176. values is much more expensive because of the overhead required for
  4177. software emulation.
  4178. It is easy to accidentally do computations with 'double' because
  4179. floating-point literals are implicitly of type 'double'. For
  4180. example, in:
  4181. float area(float radius)
  4182. {
  4183. return 3.14159 * radius * radius;
  4184. }
  4185. the compiler performs the entire computation with 'double' because
  4186. the floating-point literal is a 'double'.
  4187. '-Wduplicate-decl-specifier (C and Objective-C only)'
  4188. Warn if a declaration has duplicate 'const', 'volatile', 'restrict'
  4189. or '_Atomic' specifier. This warning is enabled by '-Wall'.
  4190. '-Wformat'
  4191. '-Wformat=N'
  4192. Check calls to 'printf' and 'scanf', etc., to make sure that the
  4193. arguments supplied have types appropriate to the format string
  4194. specified, and that the conversions specified in the format string
  4195. make sense. This includes standard functions, and others specified
  4196. by format attributes (*note Function Attributes::), in the
  4197. 'printf', 'scanf', 'strftime' and 'strfmon' (an X/Open extension,
  4198. not in the C standard) families (or other target-specific
  4199. families). Which functions are checked without format attributes
  4200. having been specified depends on the standard version selected, and
  4201. such checks of functions without the attribute specified are
  4202. disabled by '-ffreestanding' or '-fno-builtin'.
  4203. The formats are checked against the format features supported by
  4204. GNU libc version 2.2. These include all ISO C90 and C99 features,
  4205. as well as features from the Single Unix Specification and some BSD
  4206. and GNU extensions. Other library implementations may not support
  4207. all these features; GCC does not support warning about features
  4208. that go beyond a particular library's limitations. However, if
  4209. '-Wpedantic' is used with '-Wformat', warnings are given about
  4210. format features not in the selected standard version (but not for
  4211. 'strfmon' formats, since those are not in any version of the C
  4212. standard). *Note Options Controlling C Dialect: C Dialect Options.
  4213. '-Wformat=1'
  4214. '-Wformat'
  4215. Option '-Wformat' is equivalent to '-Wformat=1', and
  4216. '-Wno-format' is equivalent to '-Wformat=0'. Since '-Wformat'
  4217. also checks for null format arguments for several functions,
  4218. '-Wformat' also implies '-Wnonnull'. Some aspects of this
  4219. level of format checking can be disabled by the options:
  4220. '-Wno-format-contains-nul', '-Wno-format-extra-args', and
  4221. '-Wno-format-zero-length'. '-Wformat' is enabled by '-Wall'.
  4222. '-Wformat=2'
  4223. Enable '-Wformat' plus additional format checks. Currently
  4224. equivalent to '-Wformat -Wformat-nonliteral -Wformat-security
  4225. -Wformat-y2k'.
  4226. '-Wno-format-contains-nul'
  4227. If '-Wformat' is specified, do not warn about format strings that
  4228. contain NUL bytes.
  4229. '-Wno-format-extra-args'
  4230. If '-Wformat' is specified, do not warn about excess arguments to a
  4231. 'printf' or 'scanf' format function. The C standard specifies that
  4232. such arguments are ignored.
  4233. Where the unused arguments lie between used arguments that are
  4234. specified with '$' operand number specifications, normally warnings
  4235. are still given, since the implementation could not know what type
  4236. to pass to 'va_arg' to skip the unused arguments. However, in the
  4237. case of 'scanf' formats, this option suppresses the warning if the
  4238. unused arguments are all pointers, since the Single Unix
  4239. Specification says that such unused arguments are allowed.
  4240. '-Wformat-overflow'
  4241. '-Wformat-overflow=LEVEL'
  4242. Warn about calls to formatted input/output functions such as
  4243. 'sprintf' and 'vsprintf' that might overflow the destination
  4244. buffer. When the exact number of bytes written by a format
  4245. directive cannot be determined at compile-time it is estimated
  4246. based on heuristics that depend on the LEVEL argument and on
  4247. optimization. While enabling optimization will in most cases
  4248. improve the accuracy of the warning, it may also result in false
  4249. positives.
  4250. '-Wformat-overflow'
  4251. '-Wformat-overflow=1'
  4252. Level 1 of '-Wformat-overflow' enabled by '-Wformat' employs a
  4253. conservative approach that warns only about calls that most
  4254. likely overflow the buffer. At this level, numeric arguments
  4255. to format directives with unknown values are assumed to have
  4256. the value of one, and strings of unknown length to be empty.
  4257. Numeric arguments that are known to be bounded to a subrange
  4258. of their type, or string arguments whose output is bounded
  4259. either by their directive's precision or by a finite set of
  4260. string literals, are assumed to take on the value within the
  4261. range that results in the most bytes on output. For example,
  4262. the call to 'sprintf' below is diagnosed because even with
  4263. both A and B equal to zero, the terminating NUL character
  4264. (''\0'') appended by the function to the destination buffer
  4265. will be written past its end. Increasing the size of the
  4266. buffer by a single byte is sufficient to avoid the warning,
  4267. though it may not be sufficient to avoid the overflow.
  4268. void f (int a, int b)
  4269. {
  4270. char buf [13];
  4271. sprintf (buf, "a = %i, b = %i\n", a, b);
  4272. }
  4273. '-Wformat-overflow=2'
  4274. Level 2 warns also about calls that might overflow the
  4275. destination buffer given an argument of sufficient length or
  4276. magnitude. At level 2, unknown numeric arguments are assumed
  4277. to have the minimum representable value for signed types with
  4278. a precision greater than 1, and the maximum representable
  4279. value otherwise. Unknown string arguments whose length cannot
  4280. be assumed to be bounded either by the directive's precision,
  4281. or by a finite set of string literals they may evaluate to, or
  4282. the character array they may point to, are assumed to be 1
  4283. character long.
  4284. At level 2, the call in the example above is again diagnosed,
  4285. but this time because with A equal to a 32-bit 'INT_MIN' the
  4286. first '%i' directive will write some of its digits beyond the
  4287. end of the destination buffer. To make the call safe
  4288. regardless of the values of the two variables, the size of the
  4289. destination buffer must be increased to at least 34 bytes.
  4290. GCC includes the minimum size of the buffer in an
  4291. informational note following the warning.
  4292. An alternative to increasing the size of the destination
  4293. buffer is to constrain the range of formatted values. The
  4294. maximum length of string arguments can be bounded by
  4295. specifying the precision in the format directive. When
  4296. numeric arguments of format directives can be assumed to be
  4297. bounded by less than the precision of their type, choosing an
  4298. appropriate length modifier to the format specifier will
  4299. reduce the required buffer size. For example, if A and B in
  4300. the example above can be assumed to be within the precision of
  4301. the 'short int' type then using either the '%hi' format
  4302. directive or casting the argument to 'short' reduces the
  4303. maximum required size of the buffer to 24 bytes.
  4304. void f (int a, int b)
  4305. {
  4306. char buf [23];
  4307. sprintf (buf, "a = %hi, b = %i\n", a, (short)b);
  4308. }
  4309. '-Wno-format-zero-length'
  4310. If '-Wformat' is specified, do not warn about zero-length formats.
  4311. The C standard specifies that zero-length formats are allowed.
  4312. '-Wformat-nonliteral'
  4313. If '-Wformat' is specified, also warn if the format string is not a
  4314. string literal and so cannot be checked, unless the format function
  4315. takes its format arguments as a 'va_list'.
  4316. '-Wformat-security'
  4317. If '-Wformat' is specified, also warn about uses of format
  4318. functions that represent possible security problems. At present,
  4319. this warns about calls to 'printf' and 'scanf' functions where the
  4320. format string is not a string literal and there are no format
  4321. arguments, as in 'printf (foo);'. This may be a security hole if
  4322. the format string came from untrusted input and contains '%n'.
  4323. (This is currently a subset of what '-Wformat-nonliteral' warns
  4324. about, but in future warnings may be added to '-Wformat-security'
  4325. that are not included in '-Wformat-nonliteral'.)
  4326. '-Wformat-signedness'
  4327. If '-Wformat' is specified, also warn if the format string requires
  4328. an unsigned argument and the argument is signed and vice versa.
  4329. '-Wformat-truncation'
  4330. '-Wformat-truncation=LEVEL'
  4331. Warn about calls to formatted input/output functions such as
  4332. 'snprintf' and 'vsnprintf' that might result in output truncation.
  4333. When the exact number of bytes written by a format directive cannot
  4334. be determined at compile-time it is estimated based on heuristics
  4335. that depend on the LEVEL argument and on optimization. While
  4336. enabling optimization will in most cases improve the accuracy of
  4337. the warning, it may also result in false positives. Except as
  4338. noted otherwise, the option uses the same logic
  4339. '-Wformat-overflow'.
  4340. '-Wformat-truncation'
  4341. '-Wformat-truncation=1'
  4342. Level 1 of '-Wformat-truncation' enabled by '-Wformat' employs
  4343. a conservative approach that warns only about calls to bounded
  4344. functions whose return value is unused and that will most
  4345. likely result in output truncation.
  4346. '-Wformat-truncation=2'
  4347. Level 2 warns also about calls to bounded functions whose
  4348. return value is used and that might result in truncation given
  4349. an argument of sufficient length or magnitude.
  4350. '-Wformat-y2k'
  4351. If '-Wformat' is specified, also warn about 'strftime' formats that
  4352. may yield only a two-digit year.
  4353. '-Wnonnull'
  4354. Warn about passing a null pointer for arguments marked as requiring
  4355. a non-null value by the 'nonnull' function attribute.
  4356. '-Wnonnull' is included in '-Wall' and '-Wformat'. It can be
  4357. disabled with the '-Wno-nonnull' option.
  4358. '-Wnonnull-compare'
  4359. Warn when comparing an argument marked with the 'nonnull' function
  4360. attribute against null inside the function.
  4361. '-Wnonnull-compare' is included in '-Wall'. It can be disabled
  4362. with the '-Wno-nonnull-compare' option.
  4363. '-Wnull-dereference'
  4364. Warn if the compiler detects paths that trigger erroneous or
  4365. undefined behavior due to dereferencing a null pointer. This
  4366. option is only active when '-fdelete-null-pointer-checks' is
  4367. active, which is enabled by optimizations in most targets. The
  4368. precision of the warnings depends on the optimization options used.
  4369. '-Winit-self (C, C++, Objective-C and Objective-C++ only)'
  4370. Warn about uninitialized variables that are initialized with
  4371. themselves. Note this option can only be used with the
  4372. '-Wuninitialized' option.
  4373. For example, GCC warns about 'i' being uninitialized in the
  4374. following snippet only when '-Winit-self' has been specified:
  4375. int f()
  4376. {
  4377. int i = i;
  4378. return i;
  4379. }
  4380. This warning is enabled by '-Wall' in C++.
  4381. '-Wno-implicit-int (C and Objective-C only)'
  4382. This option controls warnings when a declaration does not specify a
  4383. type. This warning is enabled by default in C99 and later dialects
  4384. of C, and also by '-Wall'.
  4385. '-Wno-implicit-function-declaration (C and Objective-C only)'
  4386. This option controls warnings when a function is used before being
  4387. declared. This warning is enabled by default in C99 and later
  4388. dialects of C, and also by '-Wall'. The warning is made into an
  4389. error by '-pedantic-errors'.
  4390. '-Wimplicit (C and Objective-C only)'
  4391. Same as '-Wimplicit-int' and '-Wimplicit-function-declaration'.
  4392. This warning is enabled by '-Wall'.
  4393. '-Wimplicit-fallthrough'
  4394. '-Wimplicit-fallthrough' is the same as '-Wimplicit-fallthrough=3'
  4395. and '-Wno-implicit-fallthrough' is the same as
  4396. '-Wimplicit-fallthrough=0'.
  4397. '-Wimplicit-fallthrough=N'
  4398. Warn when a switch case falls through. For example:
  4399. switch (cond)
  4400. {
  4401. case 1:
  4402. a = 1;
  4403. break;
  4404. case 2:
  4405. a = 2;
  4406. case 3:
  4407. a = 3;
  4408. break;
  4409. }
  4410. This warning does not warn when the last statement of a case cannot
  4411. fall through, e.g. when there is a return statement or a call to
  4412. function declared with the noreturn attribute.
  4413. '-Wimplicit-fallthrough=' also takes into account control flow
  4414. statements, such as ifs, and only warns when appropriate. E.g.
  4415. switch (cond)
  4416. {
  4417. case 1:
  4418. if (i > 3) {
  4419. bar (5);
  4420. break;
  4421. } else if (i < 1) {
  4422. bar (0);
  4423. } else
  4424. return;
  4425. default:
  4426. ...
  4427. }
  4428. Since there are occasions where a switch case fall through is
  4429. desirable, GCC provides an attribute, '__attribute__
  4430. ((fallthrough))', that is to be used along with a null statement to
  4431. suppress this warning that would normally occur:
  4432. switch (cond)
  4433. {
  4434. case 1:
  4435. bar (0);
  4436. __attribute__ ((fallthrough));
  4437. default:
  4438. ...
  4439. }
  4440. C++17 provides a standard way to suppress the
  4441. '-Wimplicit-fallthrough' warning using '[[fallthrough]];' instead
  4442. of the GNU attribute. In C++11 or C++14 users can use
  4443. '[[gnu::fallthrough]];', which is a GNU extension. Instead of
  4444. these attributes, it is also possible to add a fallthrough comment
  4445. to silence the warning. The whole body of the C or C++ style
  4446. comment should match the given regular expressions listed below.
  4447. The option argument N specifies what kind of comments are accepted:
  4448. * '-Wimplicit-fallthrough=0' disables the warning altogether.
  4449. * '-Wimplicit-fallthrough=1' matches '.*' regular expression,
  4450. any comment is used as fallthrough comment.
  4451. * '-Wimplicit-fallthrough=2' case insensitively matches
  4452. '.*falls?[ \t-]*thr(ough|u).*' regular expression.
  4453. * '-Wimplicit-fallthrough=3' case sensitively matches one of the
  4454. following regular expressions:
  4455. * '-fallthrough'
  4456. * '@fallthrough@'
  4457. * 'lint -fallthrough[ \t]*'
  4458. * '[ \t.!]*(ELSE,? |INTENTIONAL(LY)? )?
  4459. FALL(S | |-)?THR(OUGH|U)[ \t.!]*(-[^\n\r]*)?'
  4460. * '[ \t.!]*(Else,? |Intentional(ly)? )?
  4461. Fall((s | |-)[Tt]|t)hr(ough|u)[ \t.!]*(-[^\n\r]*)?'
  4462. * '[ \t.!]*([Ee]lse,? |[Ii]ntentional(ly)? )?
  4463. fall(s | |-)?thr(ough|u)[ \t.!]*(-[^\n\r]*)?'
  4464. * '-Wimplicit-fallthrough=4' case sensitively matches one of the
  4465. following regular expressions:
  4466. * '-fallthrough'
  4467. * '@fallthrough@'
  4468. * 'lint -fallthrough[ \t]*'
  4469. * '[ \t]*FALLTHR(OUGH|U)[ \t]*'
  4470. * '-Wimplicit-fallthrough=5' doesn't recognize any comments as
  4471. fallthrough comments, only attributes disable the warning.
  4472. The comment needs to be followed after optional whitespace and
  4473. other comments by 'case' or 'default' keywords or by a user label
  4474. that precedes some 'case' or 'default' label.
  4475. switch (cond)
  4476. {
  4477. case 1:
  4478. bar (0);
  4479. /* FALLTHRU */
  4480. default:
  4481. ...
  4482. }
  4483. The '-Wimplicit-fallthrough=3' warning is enabled by '-Wextra'.
  4484. '-Wno-if-not-aligned (C, C++, Objective-C and Objective-C++ only)'
  4485. Control if warnings triggered by the 'warn_if_not_aligned'
  4486. attribute should be issued. These warnings are enabled by default.
  4487. '-Wignored-qualifiers (C and C++ only)'
  4488. Warn if the return type of a function has a type qualifier such as
  4489. 'const'. For ISO C such a type qualifier has no effect, since the
  4490. value returned by a function is not an lvalue. For C++, the
  4491. warning is only emitted for scalar types or 'void'. ISO C
  4492. prohibits qualified 'void' return types on function definitions, so
  4493. such return types always receive a warning even without this
  4494. option.
  4495. This warning is also enabled by '-Wextra'.
  4496. '-Wno-ignored-attributes (C and C++ only)'
  4497. This option controls warnings when an attribute is ignored. This
  4498. is different from the '-Wattributes' option in that it warns
  4499. whenever the compiler decides to drop an attribute, not that the
  4500. attribute is either unknown, used in a wrong place, etc. This
  4501. warning is enabled by default.
  4502. '-Wmain'
  4503. Warn if the type of 'main' is suspicious. 'main' should be a
  4504. function with external linkage, returning int, taking either zero
  4505. arguments, two, or three arguments of appropriate types. This
  4506. warning is enabled by default in C++ and is enabled by either
  4507. '-Wall' or '-Wpedantic'.
  4508. '-Wmisleading-indentation (C and C++ only)'
  4509. Warn when the indentation of the code does not reflect the block
  4510. structure. Specifically, a warning is issued for 'if', 'else',
  4511. 'while', and 'for' clauses with a guarded statement that does not
  4512. use braces, followed by an unguarded statement with the same
  4513. indentation.
  4514. In the following example, the call to "bar" is misleadingly
  4515. indented as if it were guarded by the "if" conditional.
  4516. if (some_condition ())
  4517. foo ();
  4518. bar (); /* Gotcha: this is not guarded by the "if". */
  4519. In the case of mixed tabs and spaces, the warning uses the
  4520. '-ftabstop=' option to determine if the statements line up
  4521. (defaulting to 8).
  4522. The warning is not issued for code involving multiline preprocessor
  4523. logic such as the following example.
  4524. if (flagA)
  4525. foo (0);
  4526. #if SOME_CONDITION_THAT_DOES_NOT_HOLD
  4527. if (flagB)
  4528. #endif
  4529. foo (1);
  4530. The warning is not issued after a '#line' directive, since this
  4531. typically indicates autogenerated code, and no assumptions can be
  4532. made about the layout of the file that the directive references.
  4533. This warning is enabled by '-Wall' in C and C++.
  4534. '-Wmissing-attributes'
  4535. Warn when a declaration of a function is missing one or more
  4536. attributes that a related function is declared with and whose
  4537. absence may adversely affect the correctness or efficiency of
  4538. generated code. For example, the warning is issued for
  4539. declarations of aliases that use attributes to specify less
  4540. restrictive requirements than those of their targets. This
  4541. typically represents a potential optimization opportunity. By
  4542. contrast, the '-Wattribute-alias=2' option controls warnings issued
  4543. when the alias is more restrictive than the target, which could
  4544. lead to incorrect code generation. Attributes considered include
  4545. 'alloc_align', 'alloc_size', 'cold', 'const', 'hot', 'leaf',
  4546. 'malloc', 'nonnull', 'noreturn', 'nothrow', 'pure',
  4547. 'returns_nonnull', and 'returns_twice'.
  4548. In C++, the warning is issued when an explicit specialization of a
  4549. primary template declared with attribute 'alloc_align',
  4550. 'alloc_size', 'assume_aligned', 'format', 'format_arg', 'malloc',
  4551. or 'nonnull' is declared without it. Attributes 'deprecated',
  4552. 'error', and 'warning' suppress the warning. (*note Function
  4553. Attributes::).
  4554. You can use the 'copy' attribute to apply the same set of
  4555. attributes to a declaration as that on another declaration without
  4556. explicitly enumerating the attributes. This attribute can be
  4557. applied to declarations of functions (*note Common Function
  4558. Attributes::), variables (*note Common Variable Attributes::), or
  4559. types (*note Common Type Attributes::).
  4560. '-Wmissing-attributes' is enabled by '-Wall'.
  4561. For example, since the declaration of the primary function template
  4562. below makes use of both attribute 'malloc' and 'alloc_size' the
  4563. declaration of the explicit specialization of the template is
  4564. diagnosed because it is missing one of the attributes.
  4565. template <class T>
  4566. T* __attribute__ ((malloc, alloc_size (1)))
  4567. allocate (size_t);
  4568. template <>
  4569. void* __attribute__ ((malloc)) // missing alloc_size
  4570. allocate<void> (size_t);
  4571. '-Wmissing-braces'
  4572. Warn if an aggregate or union initializer is not fully bracketed.
  4573. In the following example, the initializer for 'a' is not fully
  4574. bracketed, but that for 'b' is fully bracketed.
  4575. int a[2][2] = { 0, 1, 2, 3 };
  4576. int b[2][2] = { { 0, 1 }, { 2, 3 } };
  4577. This warning is enabled by '-Wall'.
  4578. '-Wmissing-include-dirs (C, C++, Objective-C and Objective-C++ only)'
  4579. Warn if a user-supplied include directory does not exist.
  4580. '-Wno-missing-profile'
  4581. This option controls warnings if feedback profiles are missing when
  4582. using the '-fprofile-use' option. This option diagnoses those
  4583. cases where a new function or a new file is added between compiling
  4584. with '-fprofile-generate' and with '-fprofile-use', without
  4585. regenerating the profiles. In these cases, the profile feedback
  4586. data files do not contain any profile feedback information for the
  4587. newly added function or file respectively. Also, in the case when
  4588. profile count data (.gcda) files are removed, GCC cannot use any
  4589. profile feedback information. In all these cases, warnings are
  4590. issued to inform you that a profile generation step is due.
  4591. Ignoring the warning can result in poorly optimized code.
  4592. '-Wno-missing-profile' can be used to disable the warning, but this
  4593. is not recommended and should be done only when non-existent
  4594. profile data is justified.
  4595. '-Wmultistatement-macros'
  4596. Warn about unsafe multiple statement macros that appear to be
  4597. guarded by a clause such as 'if', 'else', 'for', 'switch', or
  4598. 'while', in which only the first statement is actually guarded
  4599. after the macro is expanded.
  4600. For example:
  4601. #define DOIT x++; y++
  4602. if (c)
  4603. DOIT;
  4604. will increment 'y' unconditionally, not just when 'c' holds. The
  4605. can usually be fixed by wrapping the macro in a do-while loop:
  4606. #define DOIT do { x++; y++; } while (0)
  4607. if (c)
  4608. DOIT;
  4609. This warning is enabled by '-Wall' in C and C++.
  4610. '-Wparentheses'
  4611. Warn if parentheses are omitted in certain contexts, such as when
  4612. there is an assignment in a context where a truth value is
  4613. expected, or when operators are nested whose precedence people
  4614. often get confused about.
  4615. Also warn if a comparison like 'x<=y<=z' appears; this is
  4616. equivalent to '(x<=y ? 1 : 0) <= z', which is a different
  4617. interpretation from that of ordinary mathematical notation.
  4618. Also warn for dangerous uses of the GNU extension to '?:' with
  4619. omitted middle operand. When the condition in the '?': operator is
  4620. a boolean expression, the omitted value is always 1. Often
  4621. programmers expect it to be a value computed inside the conditional
  4622. expression instead.
  4623. For C++ this also warns for some cases of unnecessary parentheses
  4624. in declarations, which can indicate an attempt at a function call
  4625. instead of a declaration:
  4626. {
  4627. // Declares a local variable called mymutex.
  4628. std::unique_lock<std::mutex> (mymutex);
  4629. // User meant std::unique_lock<std::mutex> lock (mymutex);
  4630. }
  4631. This warning is enabled by '-Wall'.
  4632. '-Wsequence-point'
  4633. Warn about code that may have undefined semantics because of
  4634. violations of sequence point rules in the C and C++ standards.
  4635. The C and C++ standards define the order in which expressions in a
  4636. C/C++ program are evaluated in terms of "sequence points", which
  4637. represent a partial ordering between the execution of parts of the
  4638. program: those executed before the sequence point, and those
  4639. executed after it. These occur after the evaluation of a full
  4640. expression (one which is not part of a larger expression), after
  4641. the evaluation of the first operand of a '&&', '||', '? :' or ','
  4642. (comma) operator, before a function is called (but after the
  4643. evaluation of its arguments and the expression denoting the called
  4644. function), and in certain other places. Other than as expressed by
  4645. the sequence point rules, the order of evaluation of subexpressions
  4646. of an expression is not specified. All these rules describe only a
  4647. partial order rather than a total order, since, for example, if two
  4648. functions are called within one expression with no sequence point
  4649. between them, the order in which the functions are called is not
  4650. specified. However, the standards committee have ruled that
  4651. function calls do not overlap.
  4652. It is not specified when between sequence points modifications to
  4653. the values of objects take effect. Programs whose behavior depends
  4654. on this have undefined behavior; the C and C++ standards specify
  4655. that "Between the previous and next sequence point an object shall
  4656. have its stored value modified at most once by the evaluation of an
  4657. expression. Furthermore, the prior value shall be read only to
  4658. determine the value to be stored.". If a program breaks these
  4659. rules, the results on any particular implementation are entirely
  4660. unpredictable.
  4661. Examples of code with undefined behavior are 'a = a++;', 'a[n] =
  4662. b[n++]' and 'a[i++] = i;'. Some more complicated cases are not
  4663. diagnosed by this option, and it may give an occasional false
  4664. positive result, but in general it has been found fairly effective
  4665. at detecting this sort of problem in programs.
  4666. The C++17 standard will define the order of evaluation of operands
  4667. in more cases: in particular it requires that the right-hand side
  4668. of an assignment be evaluated before the left-hand side, so the
  4669. above examples are no longer undefined. But this option will still
  4670. warn about them, to help people avoid writing code that is
  4671. undefined in C and earlier revisions of C++.
  4672. The standard is worded confusingly, therefore there is some debate
  4673. over the precise meaning of the sequence point rules in subtle
  4674. cases. Links to discussions of the problem, including proposed
  4675. formal definitions, may be found on the GCC readings page, at
  4676. <http://gcc.gnu.org/readings.html>.
  4677. This warning is enabled by '-Wall' for C and C++.
  4678. '-Wno-return-local-addr'
  4679. Do not warn about returning a pointer (or in C++, a reference) to a
  4680. variable that goes out of scope after the function returns.
  4681. '-Wreturn-type'
  4682. Warn whenever a function is defined with a return type that
  4683. defaults to 'int'. Also warn about any 'return' statement with no
  4684. return value in a function whose return type is not 'void' (falling
  4685. off the end of the function body is considered returning without a
  4686. value).
  4687. For C only, warn about a 'return' statement with an expression in a
  4688. function whose return type is 'void', unless the expression type is
  4689. also 'void'. As a GNU extension, the latter case is accepted
  4690. without a warning unless '-Wpedantic' is used. Attempting to use
  4691. the return value of a non-'void' function other than 'main' that
  4692. flows off the end by reaching the closing curly brace that
  4693. terminates the function is undefined.
  4694. Unlike in C, in C++, flowing off the end of a non-'void' function
  4695. other than 'main' results in undefined behavior even when the value
  4696. of the function is not used.
  4697. This warning is enabled by default in C++ and by '-Wall' otherwise.
  4698. '-Wno-shift-count-negative'
  4699. Controls warnings if a shift count is negative. This warning is
  4700. enabled by default.
  4701. '-Wno-shift-count-overflow'
  4702. Controls warnings if a shift count is greater than or equal to the
  4703. bit width of the type. This warning is enabled by default.
  4704. '-Wshift-negative-value'
  4705. Warn if left shifting a negative value. This warning is enabled by
  4706. '-Wextra' in C99 and C++11 modes (and newer).
  4707. '-Wno-shift-overflow'
  4708. '-Wshift-overflow=N'
  4709. These options control warnings about left shift overflows.
  4710. '-Wshift-overflow=1'
  4711. This is the warning level of '-Wshift-overflow' and is enabled
  4712. by default in C99 and C++11 modes (and newer). This warning
  4713. level does not warn about left-shifting 1 into the sign bit.
  4714. (However, in C, such an overflow is still rejected in contexts
  4715. where an integer constant expression is required.) No warning
  4716. is emitted in C++2A mode (and newer), as signed left shifts
  4717. always wrap.
  4718. '-Wshift-overflow=2'
  4719. This warning level also warns about left-shifting 1 into the
  4720. sign bit, unless C++14 mode (or newer) is active.
  4721. '-Wswitch'
  4722. Warn whenever a 'switch' statement has an index of enumerated type
  4723. and lacks a 'case' for one or more of the named codes of that
  4724. enumeration. (The presence of a 'default' label prevents this
  4725. warning.) 'case' labels outside the enumeration range also provoke
  4726. warnings when this option is used (even if there is a 'default'
  4727. label). This warning is enabled by '-Wall'.
  4728. '-Wswitch-default'
  4729. Warn whenever a 'switch' statement does not have a 'default' case.
  4730. '-Wswitch-enum'
  4731. Warn whenever a 'switch' statement has an index of enumerated type
  4732. and lacks a 'case' for one or more of the named codes of that
  4733. enumeration. 'case' labels outside the enumeration range also
  4734. provoke warnings when this option is used. The only difference
  4735. between '-Wswitch' and this option is that this option gives a
  4736. warning about an omitted enumeration code even if there is a
  4737. 'default' label.
  4738. '-Wno-switch-bool'
  4739. Do not warn when a 'switch' statement has an index of boolean type
  4740. and the case values are outside the range of a boolean type. It is
  4741. possible to suppress this warning by casting the controlling
  4742. expression to a type other than 'bool'. For example:
  4743. switch ((int) (a == 4))
  4744. {
  4745. ...
  4746. }
  4747. This warning is enabled by default for C and C++ programs.
  4748. '-Wno-switch-outside-range'
  4749. This option controls warnings when a 'switch' case has a value that
  4750. is outside of its respective type range. This warning is enabled
  4751. by default for C and C++ programs.
  4752. '-Wno-switch-unreachable'
  4753. Do not warn when a 'switch' statement contains statements between
  4754. the controlling expression and the first case label, which will
  4755. never be executed. For example:
  4756. switch (cond)
  4757. {
  4758. i = 15;
  4759. ...
  4760. case 5:
  4761. ...
  4762. }
  4763. '-Wswitch-unreachable' does not warn if the statement between the
  4764. controlling expression and the first case label is just a
  4765. declaration:
  4766. switch (cond)
  4767. {
  4768. int i;
  4769. ...
  4770. case 5:
  4771. i = 5;
  4772. ...
  4773. }
  4774. This warning is enabled by default for C and C++ programs.
  4775. '-Wsync-nand (C and C++ only)'
  4776. Warn when '__sync_fetch_and_nand' and '__sync_nand_and_fetch'
  4777. built-in functions are used. These functions changed semantics in
  4778. GCC 4.4.
  4779. '-Wunused-but-set-parameter'
  4780. Warn whenever a function parameter is assigned to, but otherwise
  4781. unused (aside from its declaration).
  4782. To suppress this warning use the 'unused' attribute (*note Variable
  4783. Attributes::).
  4784. This warning is also enabled by '-Wunused' together with '-Wextra'.
  4785. '-Wunused-but-set-variable'
  4786. Warn whenever a local variable is assigned to, but otherwise unused
  4787. (aside from its declaration). This warning is enabled by '-Wall'.
  4788. To suppress this warning use the 'unused' attribute (*note Variable
  4789. Attributes::).
  4790. This warning is also enabled by '-Wunused', which is enabled by
  4791. '-Wall'.
  4792. '-Wunused-function'
  4793. Warn whenever a static function is declared but not defined or a
  4794. non-inline static function is unused. This warning is enabled by
  4795. '-Wall'.
  4796. '-Wunused-label'
  4797. Warn whenever a label is declared but not used. This warning is
  4798. enabled by '-Wall'.
  4799. To suppress this warning use the 'unused' attribute (*note Variable
  4800. Attributes::).
  4801. '-Wunused-local-typedefs (C, Objective-C, C++ and Objective-C++ only)'
  4802. Warn when a typedef locally defined in a function is not used.
  4803. This warning is enabled by '-Wall'.
  4804. '-Wunused-parameter'
  4805. Warn whenever a function parameter is unused aside from its
  4806. declaration.
  4807. To suppress this warning use the 'unused' attribute (*note Variable
  4808. Attributes::).
  4809. '-Wno-unused-result'
  4810. Do not warn if a caller of a function marked with attribute
  4811. 'warn_unused_result' (*note Function Attributes::) does not use its
  4812. return value. The default is '-Wunused-result'.
  4813. '-Wunused-variable'
  4814. Warn whenever a local or static variable is unused aside from its
  4815. declaration. This option implies '-Wunused-const-variable=1' for
  4816. C, but not for C++. This warning is enabled by '-Wall'.
  4817. To suppress this warning use the 'unused' attribute (*note Variable
  4818. Attributes::).
  4819. '-Wunused-const-variable'
  4820. '-Wunused-const-variable=N'
  4821. Warn whenever a constant static variable is unused aside from its
  4822. declaration. '-Wunused-const-variable=1' is enabled by
  4823. '-Wunused-variable' for C, but not for C++. In C this declares
  4824. variable storage, but in C++ this is not an error since const
  4825. variables take the place of '#define's.
  4826. To suppress this warning use the 'unused' attribute (*note Variable
  4827. Attributes::).
  4828. '-Wunused-const-variable=1'
  4829. This is the warning level that is enabled by
  4830. '-Wunused-variable' for C. It warns only about unused static
  4831. const variables defined in the main compilation unit, but not
  4832. about static const variables declared in any header included.
  4833. '-Wunused-const-variable=2'
  4834. This warning level also warns for unused constant static
  4835. variables in headers (excluding system headers). This is the
  4836. warning level of '-Wunused-const-variable' and must be
  4837. explicitly requested since in C++ this isn't an error and in C
  4838. it might be harder to clean up all headers included.
  4839. '-Wunused-value'
  4840. Warn whenever a statement computes a result that is explicitly not
  4841. used. To suppress this warning cast the unused expression to
  4842. 'void'. This includes an expression-statement or the left-hand
  4843. side of a comma expression that contains no side effects. For
  4844. example, an expression such as 'x[i,j]' causes a warning, while
  4845. 'x[(void)i,j]' does not.
  4846. This warning is enabled by '-Wall'.
  4847. '-Wunused'
  4848. All the above '-Wunused' options combined.
  4849. In order to get a warning about an unused function parameter, you
  4850. must either specify '-Wextra -Wunused' (note that '-Wall' implies
  4851. '-Wunused'), or separately specify '-Wunused-parameter'.
  4852. '-Wuninitialized'
  4853. Warn if an automatic variable is used without first being
  4854. initialized. In C++, warn if a non-static reference or non-static
  4855. 'const' member appears in a class without constructors.
  4856. If you want to warn about code that uses the uninitialized value of
  4857. the variable in its own initializer, use the '-Winit-self' option.
  4858. These warnings occur for individual uninitialized elements of
  4859. structure, union or array variables as well as for variables that
  4860. are uninitialized as a whole. They do not occur for variables or
  4861. elements declared 'volatile'. Because these warnings depend on
  4862. optimization, the exact variables or elements for which there are
  4863. warnings depend on the precise optimization options and version of
  4864. GCC used.
  4865. Note that there may be no warning about a variable that is used
  4866. only to compute a value that itself is never used, because such
  4867. computations may be deleted by data flow analysis before the
  4868. warnings are printed.
  4869. '-Wno-invalid-memory-model'
  4870. This option controls warnings for invocations of *note __atomic
  4871. Builtins::, *note __sync Builtins::, and the C11 atomic generic
  4872. functions with a memory consistency argument that is either invalid
  4873. for the operation or outside the range of values of the
  4874. 'memory_order' enumeration. For example, since the
  4875. '__atomic_store' and '__atomic_store_n' built-ins are only defined
  4876. for the relaxed, release, and sequentially consistent memory orders
  4877. the following code is diagnosed:
  4878. void store (int *i)
  4879. {
  4880. __atomic_store_n (i, 0, memory_order_consume);
  4881. }
  4882. '-Winvalid-memory-model' is enabled by default.
  4883. '-Wmaybe-uninitialized'
  4884. For an automatic (i.e. local) variable, if there exists a path from
  4885. the function entry to a use of the variable that is initialized,
  4886. but there exist some other paths for which the variable is not
  4887. initialized, the compiler emits a warning if it cannot prove the
  4888. uninitialized paths are not executed at run time.
  4889. These warnings are only possible in optimizing compilation, because
  4890. otherwise GCC does not keep track of the state of variables.
  4891. These warnings are made optional because GCC may not be able to
  4892. determine when the code is correct in spite of appearing to have an
  4893. error. Here is one example of how this can happen:
  4894. {
  4895. int x;
  4896. switch (y)
  4897. {
  4898. case 1: x = 1;
  4899. break;
  4900. case 2: x = 4;
  4901. break;
  4902. case 3: x = 5;
  4903. }
  4904. foo (x);
  4905. }
  4906. If the value of 'y' is always 1, 2 or 3, then 'x' is always
  4907. initialized, but GCC doesn't know this. To suppress the warning,
  4908. you need to provide a default case with assert(0) or similar code.
  4909. This option also warns when a non-volatile automatic variable might
  4910. be changed by a call to 'longjmp'. The compiler sees only the
  4911. calls to 'setjmp'. It cannot know where 'longjmp' will be called;
  4912. in fact, a signal handler could call it at any point in the code.
  4913. As a result, you may get a warning even when there is in fact no
  4914. problem because 'longjmp' cannot in fact be called at the place
  4915. that would cause a problem.
  4916. Some spurious warnings can be avoided if you declare all the
  4917. functions you use that never return as 'noreturn'. *Note Function
  4918. Attributes::.
  4919. This warning is enabled by '-Wall' or '-Wextra'.
  4920. '-Wunknown-pragmas'
  4921. Warn when a '#pragma' directive is encountered that is not
  4922. understood by GCC. If this command-line option is used, warnings
  4923. are even issued for unknown pragmas in system header files. This
  4924. is not the case if the warnings are only enabled by the '-Wall'
  4925. command-line option.
  4926. '-Wno-pragmas'
  4927. Do not warn about misuses of pragmas, such as incorrect parameters,
  4928. invalid syntax, or conflicts between pragmas. See also
  4929. '-Wunknown-pragmas'.
  4930. '-Wno-prio-ctor-dtor'
  4931. Do not warn if a priority from 0 to 100 is used for constructor or
  4932. destructor. The use of constructor and destructor attributes allow
  4933. you to assign a priority to the constructor/destructor to control
  4934. its order of execution before 'main' is called or after it returns.
  4935. The priority values must be greater than 100 as the compiler
  4936. reserves priority values between 0-100 for the implementation.
  4937. '-Wstrict-aliasing'
  4938. This option is only active when '-fstrict-aliasing' is active. It
  4939. warns about code that might break the strict aliasing rules that
  4940. the compiler is using for optimization. The warning does not catch
  4941. all cases, but does attempt to catch the more common pitfalls. It
  4942. is included in '-Wall'. It is equivalent to '-Wstrict-aliasing=3'
  4943. '-Wstrict-aliasing=n'
  4944. This option is only active when '-fstrict-aliasing' is active. It
  4945. warns about code that might break the strict aliasing rules that
  4946. the compiler is using for optimization. Higher levels correspond
  4947. to higher accuracy (fewer false positives). Higher levels also
  4948. correspond to more effort, similar to the way '-O' works.
  4949. '-Wstrict-aliasing' is equivalent to '-Wstrict-aliasing=3'.
  4950. Level 1: Most aggressive, quick, least accurate. Possibly useful
  4951. when higher levels do not warn but '-fstrict-aliasing' still breaks
  4952. the code, as it has very few false negatives. However, it has many
  4953. false positives. Warns for all pointer conversions between
  4954. possibly incompatible types, even if never dereferenced. Runs in
  4955. the front end only.
  4956. Level 2: Aggressive, quick, not too precise. May still have many
  4957. false positives (not as many as level 1 though), and few false
  4958. negatives (but possibly more than level 1). Unlike level 1, it
  4959. only warns when an address is taken. Warns about incomplete types.
  4960. Runs in the front end only.
  4961. Level 3 (default for '-Wstrict-aliasing'): Should have very few
  4962. false positives and few false negatives. Slightly slower than
  4963. levels 1 or 2 when optimization is enabled. Takes care of the
  4964. common pun+dereference pattern in the front end:
  4965. '*(int*)&some_float'. If optimization is enabled, it also runs in
  4966. the back end, where it deals with multiple statement cases using
  4967. flow-sensitive points-to information. Only warns when the
  4968. converted pointer is dereferenced. Does not warn about incomplete
  4969. types.
  4970. '-Wstrict-overflow'
  4971. '-Wstrict-overflow=N'
  4972. This option is only active when signed overflow is undefined. It
  4973. warns about cases where the compiler optimizes based on the
  4974. assumption that signed overflow does not occur. Note that it does
  4975. not warn about all cases where the code might overflow: it only
  4976. warns about cases where the compiler implements some optimization.
  4977. Thus this warning depends on the optimization level.
  4978. An optimization that assumes that signed overflow does not occur is
  4979. perfectly safe if the values of the variables involved are such
  4980. that overflow never does, in fact, occur. Therefore this warning
  4981. can easily give a false positive: a warning about code that is not
  4982. actually a problem. To help focus on important issues, several
  4983. warning levels are defined. No warnings are issued for the use of
  4984. undefined signed overflow when estimating how many iterations a
  4985. loop requires, in particular when determining whether a loop will
  4986. be executed at all.
  4987. '-Wstrict-overflow=1'
  4988. Warn about cases that are both questionable and easy to avoid.
  4989. For example the compiler simplifies 'x + 1 > x' to '1'. This
  4990. level of '-Wstrict-overflow' is enabled by '-Wall'; higher
  4991. levels are not, and must be explicitly requested.
  4992. '-Wstrict-overflow=2'
  4993. Also warn about other cases where a comparison is simplified
  4994. to a constant. For example: 'abs (x) >= 0'. This can only be
  4995. simplified when signed integer overflow is undefined, because
  4996. 'abs (INT_MIN)' overflows to 'INT_MIN', which is less than
  4997. zero. '-Wstrict-overflow' (with no level) is the same as
  4998. '-Wstrict-overflow=2'.
  4999. '-Wstrict-overflow=3'
  5000. Also warn about other cases where a comparison is simplified.
  5001. For example: 'x + 1 > 1' is simplified to 'x > 0'.
  5002. '-Wstrict-overflow=4'
  5003. Also warn about other simplifications not covered by the above
  5004. cases. For example: '(x * 10) / 5' is simplified to 'x * 2'.
  5005. '-Wstrict-overflow=5'
  5006. Also warn about cases where the compiler reduces the magnitude
  5007. of a constant involved in a comparison. For example: 'x + 2 >
  5008. y' is simplified to 'x + 1 >= y'. This is reported only at
  5009. the highest warning level because this simplification applies
  5010. to many comparisons, so this warning level gives a very large
  5011. number of false positives.
  5012. '-Wstring-compare'
  5013. Warn for calls to 'strcmp' and 'strncmp' whose result is determined
  5014. to be either zero or non-zero in tests for such equality owing to
  5015. the length of one argument being greater than the size of the array
  5016. the other argument is stored in (or the bound in the case of
  5017. 'strncmp'). Such calls could be mistakes. For example, the call
  5018. to 'strcmp' below is diagnosed because its result is necessarily
  5019. non-zero irrespective of the contents of the array 'a'.
  5020. extern char a[4];
  5021. void f (char *d)
  5022. {
  5023. strcpy (d, "string");
  5024. ...
  5025. if (0 == strcmp (a, d)) // cannot be true
  5026. puts ("a and d are the same");
  5027. }
  5028. '-Wstring-compare' is enabled by '-Wextra'.
  5029. '-Wstringop-overflow'
  5030. '-Wstringop-overflow=TYPE'
  5031. Warn for calls to string manipulation functions such as 'memcpy'
  5032. and 'strcpy' that are determined to overflow the destination
  5033. buffer. The optional argument is one greater than the type of
  5034. Object Size Checking to perform to determine the size of the
  5035. destination. *Note Object Size Checking::. The argument is
  5036. meaningful only for functions that operate on character arrays but
  5037. not for raw memory functions like 'memcpy' which always make use of
  5038. Object Size type-0. The option also warns for calls that specify a
  5039. size in excess of the largest possible object or at most 'SIZE_MAX
  5040. / 2' bytes. The option produces the best results with optimization
  5041. enabled but can detect a small subset of simple buffer overflows
  5042. even without optimization in calls to the GCC built-in functions
  5043. like '__builtin_memcpy' that correspond to the standard functions.
  5044. In any case, the option warns about just a subset of buffer
  5045. overflows detected by the corresponding overflow checking
  5046. built-ins. For example, the option issues a warning for the
  5047. 'strcpy' call below because it copies at least 5 characters (the
  5048. string '"blue"' including the terminating NUL) into the buffer of
  5049. size 4.
  5050. enum Color { blue, purple, yellow };
  5051. const char* f (enum Color clr)
  5052. {
  5053. static char buf [4];
  5054. const char *str;
  5055. switch (clr)
  5056. {
  5057. case blue: str = "blue"; break;
  5058. case purple: str = "purple"; break;
  5059. case yellow: str = "yellow"; break;
  5060. }
  5061. return strcpy (buf, str); // warning here
  5062. }
  5063. Option '-Wstringop-overflow=2' is enabled by default.
  5064. '-Wstringop-overflow'
  5065. '-Wstringop-overflow=1'
  5066. The '-Wstringop-overflow=1' option uses type-zero Object Size
  5067. Checking to determine the sizes of destination objects. This
  5068. is the default setting of the option. At this setting the
  5069. option does not warn for writes past the end of subobjects of
  5070. larger objects accessed by pointers unless the size of the
  5071. largest surrounding object is known. When the destination may
  5072. be one of several objects it is assumed to be the largest one
  5073. of them. On Linux systems, when optimization is enabled at
  5074. this setting the option warns for the same code as when the
  5075. '_FORTIFY_SOURCE' macro is defined to a non-zero value.
  5076. '-Wstringop-overflow=2'
  5077. The '-Wstringop-overflow=2' option uses type-one Object Size
  5078. Checking to determine the sizes of destination objects. At
  5079. this setting the option warna about overflows when writing to
  5080. members of the largest complete objects whose exact size is
  5081. known. However, it does not warn for excessive writes to the
  5082. same members of unknown objects referenced by pointers since
  5083. they may point to arrays containing unknown numbers of
  5084. elements.
  5085. '-Wstringop-overflow=3'
  5086. The '-Wstringop-overflow=3' option uses type-two Object Size
  5087. Checking to determine the sizes of destination objects. At
  5088. this setting the option warns about overflowing the smallest
  5089. object or data member. This is the most restrictive setting
  5090. of the option that may result in warnings for safe code.
  5091. '-Wstringop-overflow=4'
  5092. The '-Wstringop-overflow=4' option uses type-three Object Size
  5093. Checking to determine the sizes of destination objects. At
  5094. this setting the option warns about overflowing any data
  5095. members, and when the destination is one of several objects it
  5096. uses the size of the largest of them to decide whether to
  5097. issue a warning. Similarly to '-Wstringop-overflow=3' this
  5098. setting of the option may result in warnings for benign code.
  5099. '-Wno-stringop-truncation'
  5100. Do not warn for calls to bounded string manipulation functions such
  5101. as 'strncat', 'strncpy', and 'stpncpy' that may either truncate the
  5102. copied string or leave the destination unchanged.
  5103. In the following example, the call to 'strncat' specifies a bound
  5104. that is less than the length of the source string. As a result,
  5105. the copy of the source will be truncated and so the call is
  5106. diagnosed. To avoid the warning use 'bufsize - strlen (buf) - 1)'
  5107. as the bound.
  5108. void append (char *buf, size_t bufsize)
  5109. {
  5110. strncat (buf, ".txt", 3);
  5111. }
  5112. As another example, the following call to 'strncpy' results in
  5113. copying to 'd' just the characters preceding the terminating NUL,
  5114. without appending the NUL to the end. Assuming the result of
  5115. 'strncpy' is necessarily a NUL-terminated string is a common
  5116. mistake, and so the call is diagnosed. To avoid the warning when
  5117. the result is not expected to be NUL-terminated, call 'memcpy'
  5118. instead.
  5119. void copy (char *d, const char *s)
  5120. {
  5121. strncpy (d, s, strlen (s));
  5122. }
  5123. In the following example, the call to 'strncpy' specifies the size
  5124. of the destination buffer as the bound. If the length of the
  5125. source string is equal to or greater than this size the result of
  5126. the copy will not be NUL-terminated. Therefore, the call is also
  5127. diagnosed. To avoid the warning, specify 'sizeof buf - 1' as the
  5128. bound and set the last element of the buffer to 'NUL'.
  5129. void copy (const char *s)
  5130. {
  5131. char buf[80];
  5132. strncpy (buf, s, sizeof buf);
  5133. ...
  5134. }
  5135. In situations where a character array is intended to store a
  5136. sequence of bytes with no terminating 'NUL' such an array may be
  5137. annotated with attribute 'nonstring' to avoid this warning. Such
  5138. arrays, however, are not suitable arguments to functions that
  5139. expect 'NUL'-terminated strings. To help detect accidental misuses
  5140. of such arrays GCC issues warnings unless it can prove that the use
  5141. is safe. *Note Common Variable Attributes::.
  5142. '-Wsuggest-attribute=[pure|const|noreturn|format|cold|malloc]'
  5143. Warn for cases where adding an attribute may be beneficial. The
  5144. attributes currently supported are listed below.
  5145. '-Wsuggest-attribute=pure'
  5146. '-Wsuggest-attribute=const'
  5147. '-Wsuggest-attribute=noreturn'
  5148. '-Wmissing-noreturn'
  5149. '-Wsuggest-attribute=malloc'
  5150. Warn about functions that might be candidates for attributes
  5151. 'pure', 'const' or 'noreturn' or 'malloc'. The compiler only
  5152. warns for functions visible in other compilation units or (in
  5153. the case of 'pure' and 'const') if it cannot prove that the
  5154. function returns normally. A function returns normally if it
  5155. doesn't contain an infinite loop or return abnormally by
  5156. throwing, calling 'abort' or trapping. This analysis requires
  5157. option '-fipa-pure-const', which is enabled by default at '-O'
  5158. and higher. Higher optimization levels improve the accuracy
  5159. of the analysis.
  5160. '-Wsuggest-attribute=format'
  5161. '-Wmissing-format-attribute'
  5162. Warn about function pointers that might be candidates for
  5163. 'format' attributes. Note these are only possible candidates,
  5164. not absolute ones. GCC guesses that function pointers with
  5165. 'format' attributes that are used in assignment,
  5166. initialization, parameter passing or return statements should
  5167. have a corresponding 'format' attribute in the resulting type.
  5168. I.e. the left-hand side of the assignment or initialization,
  5169. the type of the parameter variable, or the return type of the
  5170. containing function respectively should also have a 'format'
  5171. attribute to avoid the warning.
  5172. GCC also warns about function definitions that might be
  5173. candidates for 'format' attributes. Again, these are only
  5174. possible candidates. GCC guesses that 'format' attributes
  5175. might be appropriate for any function that calls a function
  5176. like 'vprintf' or 'vscanf', but this might not always be the
  5177. case, and some functions for which 'format' attributes are
  5178. appropriate may not be detected.
  5179. '-Wsuggest-attribute=cold'
  5180. Warn about functions that might be candidates for 'cold'
  5181. attribute. This is based on static detection and generally
  5182. only warns about functions which always leads to a call to
  5183. another 'cold' function such as wrappers of C++ 'throw' or
  5184. fatal error reporting functions leading to 'abort'.
  5185. '-Walloc-zero'
  5186. Warn about calls to allocation functions decorated with attribute
  5187. 'alloc_size' that specify zero bytes, including those to the
  5188. built-in forms of the functions 'aligned_alloc', 'alloca',
  5189. 'calloc', 'malloc', and 'realloc'. Because the behavior of these
  5190. functions when called with a zero size differs among
  5191. implementations (and in the case of 'realloc' has been deprecated)
  5192. relying on it may result in subtle portability bugs and should be
  5193. avoided.
  5194. '-Walloc-size-larger-than=BYTE-SIZE'
  5195. Warn about calls to functions decorated with attribute 'alloc_size'
  5196. that attempt to allocate objects larger than the specified number
  5197. of bytes, or where the result of the size computation in an integer
  5198. type with infinite precision would exceed the value of
  5199. 'PTRDIFF_MAX' on the target.
  5200. '-Walloc-size-larger-than=''PTRDIFF_MAX' is enabled by default.
  5201. Warnings controlled by the option can be disabled either by
  5202. specifying BYTE-SIZE of 'SIZE_MAX' or more or by
  5203. '-Wno-alloc-size-larger-than'. *Note Function Attributes::.
  5204. '-Wno-alloc-size-larger-than'
  5205. Disable '-Walloc-size-larger-than=' warnings. The option is
  5206. equivalent to '-Walloc-size-larger-than=''SIZE_MAX' or larger.
  5207. '-Walloca'
  5208. This option warns on all uses of 'alloca' in the source.
  5209. '-Walloca-larger-than=BYTE-SIZE'
  5210. This option warns on calls to 'alloca' with an integer argument
  5211. whose value is either zero, or that is not bounded by a controlling
  5212. predicate that limits its value to at most BYTE-SIZE. It also
  5213. warns for calls to 'alloca' where the bound value is unknown.
  5214. Arguments of non-integer types are considered unbounded even if
  5215. they appear to be constrained to the expected range.
  5216. For example, a bounded case of 'alloca' could be:
  5217. void func (size_t n)
  5218. {
  5219. void *p;
  5220. if (n <= 1000)
  5221. p = alloca (n);
  5222. else
  5223. p = malloc (n);
  5224. f (p);
  5225. }
  5226. In the above example, passing '-Walloca-larger-than=1000' would not
  5227. issue a warning because the call to 'alloca' is known to be at most
  5228. 1000 bytes. However, if '-Walloca-larger-than=500' were passed,
  5229. the compiler would emit a warning.
  5230. Unbounded uses, on the other hand, are uses of 'alloca' with no
  5231. controlling predicate constraining its integer argument. For
  5232. example:
  5233. void func ()
  5234. {
  5235. void *p = alloca (n);
  5236. f (p);
  5237. }
  5238. If '-Walloca-larger-than=500' were passed, the above would trigger
  5239. a warning, but this time because of the lack of bounds checking.
  5240. Note, that even seemingly correct code involving signed integers
  5241. could cause a warning:
  5242. void func (signed int n)
  5243. {
  5244. if (n < 500)
  5245. {
  5246. p = alloca (n);
  5247. f (p);
  5248. }
  5249. }
  5250. In the above example, N could be negative, causing a larger than
  5251. expected argument to be implicitly cast into the 'alloca' call.
  5252. This option also warns when 'alloca' is used in a loop.
  5253. '-Walloca-larger-than=''PTRDIFF_MAX' is enabled by default but is
  5254. usually only effective when '-ftree-vrp' is active (default for
  5255. '-O2' and above).
  5256. See also '-Wvla-larger-than=''byte-size'.
  5257. '-Wno-alloca-larger-than'
  5258. Disable '-Walloca-larger-than=' warnings. The option is equivalent
  5259. to '-Walloca-larger-than=''SIZE_MAX' or larger.
  5260. '-Warith-conversion'
  5261. Do warn about implicit conversions from arithmetic operations even
  5262. when conversion of the operands to the same type cannot change
  5263. their values. This affects warnings from '-Wconversion',
  5264. '-Wfloat-conversion', and '-Wsign-conversion'.
  5265. void f (char c, int i)
  5266. {
  5267. c = c + i; // warns with -Wconversion
  5268. c = c + 1; // only warns with -Warith-conversion
  5269. }
  5270. '-Warray-bounds'
  5271. '-Warray-bounds=N'
  5272. This option is only active when '-ftree-vrp' is active (default for
  5273. '-O2' and above). It warns about subscripts to arrays that are
  5274. always out of bounds. This warning is enabled by '-Wall'.
  5275. '-Warray-bounds=1'
  5276. This is the warning level of '-Warray-bounds' and is enabled
  5277. by '-Wall'; higher levels are not, and must be explicitly
  5278. requested.
  5279. '-Warray-bounds=2'
  5280. This warning level also warns about out of bounds access for
  5281. arrays at the end of a struct and for arrays accessed through
  5282. pointers. This warning level may give a larger number of
  5283. false positives and is deactivated by default.
  5284. '-Wattribute-alias=N'
  5285. '-Wno-attribute-alias'
  5286. Warn about declarations using the 'alias' and similar attributes
  5287. whose target is incompatible with the type of the alias. *Note
  5288. Declaring Attributes of Functions: Function Attributes.
  5289. '-Wattribute-alias=1'
  5290. The default warning level of the '-Wattribute-alias' option
  5291. diagnoses incompatibilities between the type of the alias
  5292. declaration and that of its target. Such incompatibilities
  5293. are typically indicative of bugs.
  5294. '-Wattribute-alias=2'
  5295. At this level '-Wattribute-alias' also diagnoses cases where
  5296. the attributes of the alias declaration are more restrictive
  5297. than the attributes applied to its target. These mismatches
  5298. can potentially result in incorrect code generation. In other
  5299. cases they may be benign and could be resolved simply by
  5300. adding the missing attribute to the target. For comparison,
  5301. see the '-Wmissing-attributes' option, which controls
  5302. diagnostics when the alias declaration is less restrictive
  5303. than the target, rather than more restrictive.
  5304. Attributes considered include 'alloc_align', 'alloc_size',
  5305. 'cold', 'const', 'hot', 'leaf', 'malloc', 'nonnull',
  5306. 'noreturn', 'nothrow', 'pure', 'returns_nonnull', and
  5307. 'returns_twice'.
  5308. '-Wattribute-alias' is equivalent to '-Wattribute-alias=1'. This
  5309. is the default. You can disable these warnings with either
  5310. '-Wno-attribute-alias' or '-Wattribute-alias=0'.
  5311. '-Wbool-compare'
  5312. Warn about boolean expression compared with an integer value
  5313. different from 'true'/'false'. For instance, the following
  5314. comparison is always false:
  5315. int n = 5;
  5316. ...
  5317. if ((n > 1) == 2) { ... }
  5318. This warning is enabled by '-Wall'.
  5319. '-Wbool-operation'
  5320. Warn about suspicious operations on expressions of a boolean type.
  5321. For instance, bitwise negation of a boolean is very likely a bug in
  5322. the program. For C, this warning also warns about incrementing or
  5323. decrementing a boolean, which rarely makes sense. (In C++,
  5324. decrementing a boolean is always invalid. Incrementing a boolean
  5325. is invalid in C++17, and deprecated otherwise.)
  5326. This warning is enabled by '-Wall'.
  5327. '-Wduplicated-branches'
  5328. Warn when an if-else has identical branches. This warning detects
  5329. cases like
  5330. if (p != NULL)
  5331. return 0;
  5332. else
  5333. return 0;
  5334. It doesn't warn when both branches contain just a null statement.
  5335. This warning also warn for conditional operators:
  5336. int i = x ? *p : *p;
  5337. '-Wduplicated-cond'
  5338. Warn about duplicated conditions in an if-else-if chain. For
  5339. instance, warn for the following code:
  5340. if (p->q != NULL) { ... }
  5341. else if (p->q != NULL) { ... }
  5342. '-Wframe-address'
  5343. Warn when the '__builtin_frame_address' or
  5344. '__builtin_return_address' is called with an argument greater than
  5345. 0. Such calls may return indeterminate values or crash the
  5346. program. The warning is included in '-Wall'.
  5347. '-Wno-discarded-qualifiers (C and Objective-C only)'
  5348. Do not warn if type qualifiers on pointers are being discarded.
  5349. Typically, the compiler warns if a 'const char *' variable is
  5350. passed to a function that takes a 'char *' parameter. This option
  5351. can be used to suppress such a warning.
  5352. '-Wno-discarded-array-qualifiers (C and Objective-C only)'
  5353. Do not warn if type qualifiers on arrays which are pointer targets
  5354. are being discarded. Typically, the compiler warns if a 'const int
  5355. (*)[]' variable is passed to a function that takes a 'int (*)[]'
  5356. parameter. This option can be used to suppress such a warning.
  5357. '-Wno-incompatible-pointer-types (C and Objective-C only)'
  5358. Do not warn when there is a conversion between pointers that have
  5359. incompatible types. This warning is for cases not covered by
  5360. '-Wno-pointer-sign', which warns for pointer argument passing or
  5361. assignment with different signedness.
  5362. '-Wno-int-conversion (C and Objective-C only)'
  5363. Do not warn about incompatible integer to pointer and pointer to
  5364. integer conversions. This warning is about implicit conversions;
  5365. for explicit conversions the warnings '-Wno-int-to-pointer-cast'
  5366. and '-Wno-pointer-to-int-cast' may be used.
  5367. '-Wzero-length-bounds'
  5368. Warn about accesses to elements of zero-length array members that
  5369. might overlap other members of the same object. Declaring interior
  5370. zero-length arrays is discouraged because accesses to them are
  5371. undefined. See *Note Zero Length::.
  5372. For example, the first two stores in function 'bad' are diagnosed
  5373. because the array elements overlap the subsequent members 'b' and
  5374. 'c'. The third store is diagnosed by '-Warray-bounds' because it
  5375. is beyond the bounds of the enclosing object.
  5376. struct X { int a[0]; int b, c; };
  5377. struct X x;
  5378. void bad (void)
  5379. {
  5380. x.a[0] = 0; // -Wzero-length-bounds
  5381. x.a[1] = 1; // -Wzero-length-bounds
  5382. x.a[2] = 2; // -Warray-bounds
  5383. }
  5384. Option '-Wzero-length-bounds' is enabled by '-Warray-bounds'.
  5385. '-Wno-div-by-zero'
  5386. Do not warn about compile-time integer division by zero.
  5387. Floating-point division by zero is not warned about, as it can be a
  5388. legitimate way of obtaining infinities and NaNs.
  5389. '-Wsystem-headers'
  5390. Print warning messages for constructs found in system header files.
  5391. Warnings from system headers are normally suppressed, on the
  5392. assumption that they usually do not indicate real problems and
  5393. would only make the compiler output harder to read. Using this
  5394. command-line option tells GCC to emit warnings from system headers
  5395. as if they occurred in user code. However, note that using '-Wall'
  5396. in conjunction with this option does _not_ warn about unknown
  5397. pragmas in system headers--for that, '-Wunknown-pragmas' must also
  5398. be used.
  5399. '-Wtautological-compare'
  5400. Warn if a self-comparison always evaluates to true or false. This
  5401. warning detects various mistakes such as:
  5402. int i = 1;
  5403. ...
  5404. if (i > i) { ... }
  5405. This warning also warns about bitwise comparisons that always
  5406. evaluate to true or false, for instance:
  5407. if ((a & 16) == 10) { ... }
  5408. will always be false.
  5409. This warning is enabled by '-Wall'.
  5410. '-Wtrampolines'
  5411. Warn about trampolines generated for pointers to nested functions.
  5412. A trampoline is a small piece of data or code that is created at
  5413. run time on the stack when the address of a nested function is
  5414. taken, and is used to call the nested function indirectly. For
  5415. some targets, it is made up of data only and thus requires no
  5416. special treatment. But, for most targets, it is made up of code
  5417. and thus requires the stack to be made executable in order for the
  5418. program to work properly.
  5419. '-Wfloat-equal'
  5420. Warn if floating-point values are used in equality comparisons.
  5421. The idea behind this is that sometimes it is convenient (for the
  5422. programmer) to consider floating-point values as approximations to
  5423. infinitely precise real numbers. If you are doing this, then you
  5424. need to compute (by analyzing the code, or in some other way) the
  5425. maximum or likely maximum error that the computation introduces,
  5426. and allow for it when performing comparisons (and when producing
  5427. output, but that's a different problem). In particular, instead of
  5428. testing for equality, you should check to see whether the two
  5429. values have ranges that overlap; and this is done with the
  5430. relational operators, so equality comparisons are probably
  5431. mistaken.
  5432. '-Wtraditional (C and Objective-C only)'
  5433. Warn about certain constructs that behave differently in
  5434. traditional and ISO C. Also warn about ISO C constructs that have
  5435. no traditional C equivalent, and/or problematic constructs that
  5436. should be avoided.
  5437. * Macro parameters that appear within string literals in the
  5438. macro body. In traditional C macro replacement takes place
  5439. within string literals, but in ISO C it does not.
  5440. * In traditional C, some preprocessor directives did not exist.
  5441. Traditional preprocessors only considered a line to be a
  5442. directive if the '#' appeared in column 1 on the line.
  5443. Therefore '-Wtraditional' warns about directives that
  5444. traditional C understands but ignores because the '#' does not
  5445. appear as the first character on the line. It also suggests
  5446. you hide directives like '#pragma' not understood by
  5447. traditional C by indenting them. Some traditional
  5448. implementations do not recognize '#elif', so this option
  5449. suggests avoiding it altogether.
  5450. * A function-like macro that appears without arguments.
  5451. * The unary plus operator.
  5452. * The 'U' integer constant suffix, or the 'F' or 'L'
  5453. floating-point constant suffixes. (Traditional C does support
  5454. the 'L' suffix on integer constants.) Note, these suffixes
  5455. appear in macros defined in the system headers of most modern
  5456. systems, e.g. the '_MIN'/'_MAX' macros in '<limits.h>'. Use
  5457. of these macros in user code might normally lead to spurious
  5458. warnings, however GCC's integrated preprocessor has enough
  5459. context to avoid warning in these cases.
  5460. * A function declared external in one block and then used after
  5461. the end of the block.
  5462. * A 'switch' statement has an operand of type 'long'.
  5463. * A non-'static' function declaration follows a 'static' one.
  5464. This construct is not accepted by some traditional C
  5465. compilers.
  5466. * The ISO type of an integer constant has a different width or
  5467. signedness from its traditional type. This warning is only
  5468. issued if the base of the constant is ten. I.e. hexadecimal
  5469. or octal values, which typically represent bit patterns, are
  5470. not warned about.
  5471. * Usage of ISO string concatenation is detected.
  5472. * Initialization of automatic aggregates.
  5473. * Identifier conflicts with labels. Traditional C lacks a
  5474. separate namespace for labels.
  5475. * Initialization of unions. If the initializer is zero, the
  5476. warning is omitted. This is done under the assumption that
  5477. the zero initializer in user code appears conditioned on e.g.
  5478. '__STDC__' to avoid missing initializer warnings and relies on
  5479. default initialization to zero in the traditional C case.
  5480. * Conversions by prototypes between fixed/floating-point values
  5481. and vice versa. The absence of these prototypes when
  5482. compiling with traditional C causes serious problems. This is
  5483. a subset of the possible conversion warnings; for the full set
  5484. use '-Wtraditional-conversion'.
  5485. * Use of ISO C style function definitions. This warning
  5486. intentionally is _not_ issued for prototype declarations or
  5487. variadic functions because these ISO C features appear in your
  5488. code when using libiberty's traditional C compatibility
  5489. macros, 'PARAMS' and 'VPARAMS'. This warning is also bypassed
  5490. for nested functions because that feature is already a GCC
  5491. extension and thus not relevant to traditional C
  5492. compatibility.
  5493. '-Wtraditional-conversion (C and Objective-C only)'
  5494. Warn if a prototype causes a type conversion that is different from
  5495. what would happen to the same argument in the absence of a
  5496. prototype. This includes conversions of fixed point to floating
  5497. and vice versa, and conversions changing the width or signedness of
  5498. a fixed-point argument except when the same as the default
  5499. promotion.
  5500. '-Wdeclaration-after-statement (C and Objective-C only)'
  5501. Warn when a declaration is found after a statement in a block.
  5502. This construct, known from C++, was introduced with ISO C99 and is
  5503. by default allowed in GCC. It is not supported by ISO C90. *Note
  5504. Mixed Declarations::.
  5505. '-Wshadow'
  5506. Warn whenever a local variable or type declaration shadows another
  5507. variable, parameter, type, class member (in C++), or instance
  5508. variable (in Objective-C) or whenever a built-in function is
  5509. shadowed. Note that in C++, the compiler warns if a local variable
  5510. shadows an explicit typedef, but not if it shadows a
  5511. struct/class/enum. If this warning is enabled, it includes also
  5512. all instances of local shadowing. This means that
  5513. '-Wno-shadow=local' and '-Wno-shadow=compatible-local' are ignored
  5514. when '-Wshadow' is used. Same as '-Wshadow=global'.
  5515. '-Wno-shadow-ivar (Objective-C only)'
  5516. Do not warn whenever a local variable shadows an instance variable
  5517. in an Objective-C method.
  5518. '-Wshadow=global'
  5519. Warn for any shadowing. Same as '-Wshadow'.
  5520. '-Wshadow=local'
  5521. Warn when a local variable shadows another local variable or
  5522. parameter.
  5523. '-Wshadow=compatible-local'
  5524. Warn when a local variable shadows another local variable or
  5525. parameter whose type is compatible with that of the shadowing
  5526. variable. In C++, type compatibility here means the type of the
  5527. shadowing variable can be converted to that of the shadowed
  5528. variable. The creation of this flag (in addition to
  5529. '-Wshadow=local') is based on the idea that when a local variable
  5530. shadows another one of incompatible type, it is most likely
  5531. intentional, not a bug or typo, as shown in the following example:
  5532. for (SomeIterator i = SomeObj.begin(); i != SomeObj.end(); ++i)
  5533. {
  5534. for (int i = 0; i < N; ++i)
  5535. {
  5536. ...
  5537. }
  5538. ...
  5539. }
  5540. Since the two variable 'i' in the example above have incompatible
  5541. types, enabling only '-Wshadow=compatible-local' does not emit a
  5542. warning. Because their types are incompatible, if a programmer
  5543. accidentally uses one in place of the other, type checking is
  5544. expected to catch that and emit an error or warning. Use of this
  5545. flag instead of '-Wshadow=local' can possibly reduce the number of
  5546. warnings triggered by intentional shadowing. Note that this also
  5547. means that shadowing 'const char *i' by 'char *i' does not emit a
  5548. warning.
  5549. This warning is also enabled by '-Wshadow=local'.
  5550. '-Wlarger-than=BYTE-SIZE'
  5551. Warn whenever an object is defined whose size exceeds BYTE-SIZE.
  5552. '-Wlarger-than=''PTRDIFF_MAX' is enabled by default. Warnings
  5553. controlled by the option can be disabled either by specifying
  5554. BYTE-SIZE of 'SIZE_MAX' or more or by '-Wno-larger-than'.
  5555. '-Wno-larger-than'
  5556. Disable '-Wlarger-than=' warnings. The option is equivalent to
  5557. '-Wlarger-than=''SIZE_MAX' or larger.
  5558. '-Wframe-larger-than=BYTE-SIZE'
  5559. Warn if the size of a function frame exceeds BYTE-SIZE. The
  5560. computation done to determine the stack frame size is approximate
  5561. and not conservative. The actual requirements may be somewhat
  5562. greater than BYTE-SIZE even if you do not get a warning. In
  5563. addition, any space allocated via 'alloca', variable-length arrays,
  5564. or related constructs is not included by the compiler when
  5565. determining whether or not to issue a warning.
  5566. '-Wframe-larger-than=''PTRDIFF_MAX' is enabled by default.
  5567. Warnings controlled by the option can be disabled either by
  5568. specifying BYTE-SIZE of 'SIZE_MAX' or more or by
  5569. '-Wno-frame-larger-than'.
  5570. '-Wno-frame-larger-than'
  5571. Disable '-Wframe-larger-than=' warnings. The option is equivalent
  5572. to '-Wframe-larger-than=''SIZE_MAX' or larger.
  5573. '-Wno-free-nonheap-object'
  5574. Do not warn when attempting to free an object that was not
  5575. allocated on the heap.
  5576. '-Wstack-usage=BYTE-SIZE'
  5577. Warn if the stack usage of a function might exceed BYTE-SIZE. The
  5578. computation done to determine the stack usage is conservative. Any
  5579. space allocated via 'alloca', variable-length arrays, or related
  5580. constructs is included by the compiler when determining whether or
  5581. not to issue a warning.
  5582. The message is in keeping with the output of '-fstack-usage'.
  5583. * If the stack usage is fully static but exceeds the specified
  5584. amount, it's:
  5585. warning: stack usage is 1120 bytes
  5586. * If the stack usage is (partly) dynamic but bounded, it's:
  5587. warning: stack usage might be 1648 bytes
  5588. * If the stack usage is (partly) dynamic and not bounded, it's:
  5589. warning: stack usage might be unbounded
  5590. '-Wstack-usage=''PTRDIFF_MAX' is enabled by default. Warnings
  5591. controlled by the option can be disabled either by specifying
  5592. BYTE-SIZE of 'SIZE_MAX' or more or by '-Wno-stack-usage'.
  5593. '-Wno-stack-usage'
  5594. Disable '-Wstack-usage=' warnings. The option is equivalent to
  5595. '-Wstack-usage=''SIZE_MAX' or larger.
  5596. '-Wunsafe-loop-optimizations'
  5597. Warn if the loop cannot be optimized because the compiler cannot
  5598. assume anything on the bounds of the loop indices. With
  5599. '-funsafe-loop-optimizations' warn if the compiler makes such
  5600. assumptions.
  5601. '-Wno-pedantic-ms-format (MinGW targets only)'
  5602. When used in combination with '-Wformat' and '-pedantic' without
  5603. GNU extensions, this option disables the warnings about non-ISO
  5604. 'printf' / 'scanf' format width specifiers 'I32', 'I64', and 'I'
  5605. used on Windows targets, which depend on the MS runtime.
  5606. '-Wpointer-arith'
  5607. Warn about anything that depends on the "size of" a function type
  5608. or of 'void'. GNU C assigns these types a size of 1, for
  5609. convenience in calculations with 'void *' pointers and pointers to
  5610. functions. In C++, warn also when an arithmetic operation involves
  5611. 'NULL'. This warning is also enabled by '-Wpedantic'.
  5612. '-Wno-pointer-compare'
  5613. Do not warn if a pointer is compared with a zero character
  5614. constant. This usually means that the pointer was meant to be
  5615. dereferenced. For example:
  5616. const char *p = foo ();
  5617. if (p == '\0')
  5618. return 42;
  5619. Note that the code above is invalid in C++11.
  5620. This warning is enabled by default.
  5621. '-Wtype-limits'
  5622. Warn if a comparison is always true or always false due to the
  5623. limited range of the data type, but do not warn for constant
  5624. expressions. For example, warn if an unsigned variable is compared
  5625. against zero with '<' or '>='. This warning is also enabled by
  5626. '-Wextra'.
  5627. '-Wabsolute-value (C and Objective-C only)'
  5628. Warn for calls to standard functions that compute the absolute
  5629. value of an argument when a more appropriate standard function is
  5630. available. For example, calling 'abs(3.14)' triggers the warning
  5631. because the appropriate function to call to compute the absolute
  5632. value of a double argument is 'fabs'. The option also triggers
  5633. warnings when the argument in a call to such a function has an
  5634. unsigned type. This warning can be suppressed with an explicit
  5635. type cast and it is also enabled by '-Wextra'.
  5636. '-Wcomment'
  5637. '-Wcomments'
  5638. Warn whenever a comment-start sequence '/*' appears in a '/*'
  5639. comment, or whenever a backslash-newline appears in a '//' comment.
  5640. This warning is enabled by '-Wall'.
  5641. '-Wtrigraphs'
  5642. Warn if any trigraphs are encountered that might change the meaning
  5643. of the program. Trigraphs within comments are not warned about,
  5644. except those that would form escaped newlines.
  5645. This option is implied by '-Wall'. If '-Wall' is not given, this
  5646. option is still enabled unless trigraphs are enabled. To get
  5647. trigraph conversion without warnings, but get the other '-Wall'
  5648. warnings, use '-trigraphs -Wall -Wno-trigraphs'.
  5649. '-Wundef'
  5650. Warn if an undefined identifier is evaluated in an '#if' directive.
  5651. Such identifiers are replaced with zero.
  5652. '-Wexpansion-to-defined'
  5653. Warn whenever 'defined' is encountered in the expansion of a macro
  5654. (including the case where the macro is expanded by an '#if'
  5655. directive). Such usage is not portable. This warning is also
  5656. enabled by '-Wpedantic' and '-Wextra'.
  5657. '-Wunused-macros'
  5658. Warn about macros defined in the main file that are unused. A
  5659. macro is "used" if it is expanded or tested for existence at least
  5660. once. The preprocessor also warns if the macro has not been used
  5661. at the time it is redefined or undefined.
  5662. Built-in macros, macros defined on the command line, and macros
  5663. defined in include files are not warned about.
  5664. _Note:_ If a macro is actually used, but only used in skipped
  5665. conditional blocks, then the preprocessor reports it as unused. To
  5666. avoid the warning in such a case, you might improve the scope of
  5667. the macro's definition by, for example, moving it into the first
  5668. skipped block. Alternatively, you could provide a dummy use with
  5669. something like:
  5670. #if defined the_macro_causing_the_warning
  5671. #endif
  5672. '-Wno-endif-labels'
  5673. Do not warn whenever an '#else' or an '#endif' are followed by
  5674. text. This sometimes happens in older programs with code of the
  5675. form
  5676. #if FOO
  5677. ...
  5678. #else FOO
  5679. ...
  5680. #endif FOO
  5681. The second and third 'FOO' should be in comments. This warning is
  5682. on by default.
  5683. '-Wbad-function-cast (C and Objective-C only)'
  5684. Warn when a function call is cast to a non-matching type. For
  5685. example, warn if a call to a function returning an integer type is
  5686. cast to a pointer type.
  5687. '-Wc90-c99-compat (C and Objective-C only)'
  5688. Warn about features not present in ISO C90, but present in ISO C99.
  5689. For instance, warn about use of variable length arrays, 'long long'
  5690. type, 'bool' type, compound literals, designated initializers, and
  5691. so on. This option is independent of the standards mode. Warnings
  5692. are disabled in the expression that follows '__extension__'.
  5693. '-Wc99-c11-compat (C and Objective-C only)'
  5694. Warn about features not present in ISO C99, but present in ISO C11.
  5695. For instance, warn about use of anonymous structures and unions,
  5696. '_Atomic' type qualifier, '_Thread_local' storage-class specifier,
  5697. '_Alignas' specifier, 'Alignof' operator, '_Generic' keyword, and
  5698. so on. This option is independent of the standards mode. Warnings
  5699. are disabled in the expression that follows '__extension__'.
  5700. '-Wc11-c2x-compat (C and Objective-C only)'
  5701. Warn about features not present in ISO C11, but present in ISO C2X.
  5702. For instance, warn about omitting the string in '_Static_assert',
  5703. use of '[[]]' syntax for attributes, use of decimal floating-point
  5704. types, and so on. This option is independent of the standards
  5705. mode. Warnings are disabled in the expression that follows
  5706. '__extension__'.
  5707. '-Wc++-compat (C and Objective-C only)'
  5708. Warn about ISO C constructs that are outside of the common subset
  5709. of ISO C and ISO C++, e.g. request for implicit conversion from
  5710. 'void *' to a pointer to non-'void' type.
  5711. '-Wc++11-compat (C++ and Objective-C++ only)'
  5712. Warn about C++ constructs whose meaning differs between ISO C++
  5713. 1998 and ISO C++ 2011, e.g., identifiers in ISO C++ 1998 that are
  5714. keywords in ISO C++ 2011. This warning turns on '-Wnarrowing' and
  5715. is enabled by '-Wall'.
  5716. '-Wc++14-compat (C++ and Objective-C++ only)'
  5717. Warn about C++ constructs whose meaning differs between ISO C++
  5718. 2011 and ISO C++ 2014. This warning is enabled by '-Wall'.
  5719. '-Wc++17-compat (C++ and Objective-C++ only)'
  5720. Warn about C++ constructs whose meaning differs between ISO C++
  5721. 2014 and ISO C++ 2017. This warning is enabled by '-Wall'.
  5722. '-Wc++20-compat (C++ and Objective-C++ only)'
  5723. Warn about C++ constructs whose meaning differs between ISO C++
  5724. 2017 and ISO C++ 2020. This warning is enabled by '-Wall'.
  5725. '-Wcast-qual'
  5726. Warn whenever a pointer is cast so as to remove a type qualifier
  5727. from the target type. For example, warn if a 'const char *' is
  5728. cast to an ordinary 'char *'.
  5729. Also warn when making a cast that introduces a type qualifier in an
  5730. unsafe way. For example, casting 'char **' to 'const char **' is
  5731. unsafe, as in this example:
  5732. /* p is char ** value. */
  5733. const char **q = (const char **) p;
  5734. /* Assignment of readonly string to const char * is OK. */
  5735. *q = "string";
  5736. /* Now char** pointer points to read-only memory. */
  5737. **p = 'b';
  5738. '-Wcast-align'
  5739. Warn whenever a pointer is cast such that the required alignment of
  5740. the target is increased. For example, warn if a 'char *' is cast
  5741. to an 'int *' on machines where integers can only be accessed at
  5742. two- or four-byte boundaries.
  5743. '-Wcast-align=strict'
  5744. Warn whenever a pointer is cast such that the required alignment of
  5745. the target is increased. For example, warn if a 'char *' is cast
  5746. to an 'int *' regardless of the target machine.
  5747. '-Wcast-function-type'
  5748. Warn when a function pointer is cast to an incompatible function
  5749. pointer. In a cast involving function types with a variable
  5750. argument list only the types of initial arguments that are provided
  5751. are considered. Any parameter of pointer-type matches any other
  5752. pointer-type. Any benign differences in integral types are
  5753. ignored, like 'int' vs. 'long' on ILP32 targets. Likewise type
  5754. qualifiers are ignored. The function type 'void (*) (void)' is
  5755. special and matches everything, which can be used to suppress this
  5756. warning. In a cast involving pointer to member types this warning
  5757. warns whenever the type cast is changing the pointer to member
  5758. type. This warning is enabled by '-Wextra'.
  5759. '-Wwrite-strings'
  5760. When compiling C, give string constants the type 'const
  5761. char[LENGTH]' so that copying the address of one into a non-'const'
  5762. 'char *' pointer produces a warning. These warnings help you find
  5763. at compile time code that can try to write into a string constant,
  5764. but only if you have been very careful about using 'const' in
  5765. declarations and prototypes. Otherwise, it is just a nuisance.
  5766. This is why we did not make '-Wall' request these warnings.
  5767. When compiling C++, warn about the deprecated conversion from
  5768. string literals to 'char *'. This warning is enabled by default
  5769. for C++ programs.
  5770. '-Wclobbered'
  5771. Warn for variables that might be changed by 'longjmp' or 'vfork'.
  5772. This warning is also enabled by '-Wextra'.
  5773. '-Wconversion'
  5774. Warn for implicit conversions that may alter a value. This
  5775. includes conversions between real and integer, like 'abs (x)' when
  5776. 'x' is 'double'; conversions between signed and unsigned, like
  5777. 'unsigned ui = -1'; and conversions to smaller types, like 'sqrtf
  5778. (M_PI)'. Do not warn for explicit casts like 'abs ((int) x)' and
  5779. 'ui = (unsigned) -1', or if the value is not changed by the
  5780. conversion like in 'abs (2.0)'. Warnings about conversions between
  5781. signed and unsigned integers can be disabled by using
  5782. '-Wno-sign-conversion'.
  5783. For C++, also warn for confusing overload resolution for
  5784. user-defined conversions; and conversions that never use a type
  5785. conversion operator: conversions to 'void', the same type, a base
  5786. class or a reference to them. Warnings about conversions between
  5787. signed and unsigned integers are disabled by default in C++ unless
  5788. '-Wsign-conversion' is explicitly enabled.
  5789. Warnings about conversion from arithmetic on a small type back to
  5790. that type are only given with '-Warith-conversion'.
  5791. '-Wdangling-else'
  5792. Warn about constructions where there may be confusion to which 'if'
  5793. statement an 'else' branch belongs. Here is an example of such a
  5794. case:
  5795. {
  5796. if (a)
  5797. if (b)
  5798. foo ();
  5799. else
  5800. bar ();
  5801. }
  5802. In C/C++, every 'else' branch belongs to the innermost possible
  5803. 'if' statement, which in this example is 'if (b)'. This is often
  5804. not what the programmer expected, as illustrated in the above
  5805. example by indentation the programmer chose. When there is the
  5806. potential for this confusion, GCC issues a warning when this flag
  5807. is specified. To eliminate the warning, add explicit braces around
  5808. the innermost 'if' statement so there is no way the 'else' can
  5809. belong to the enclosing 'if'. The resulting code looks like this:
  5810. {
  5811. if (a)
  5812. {
  5813. if (b)
  5814. foo ();
  5815. else
  5816. bar ();
  5817. }
  5818. }
  5819. This warning is enabled by '-Wparentheses'.
  5820. '-Wdate-time'
  5821. Warn when macros '__TIME__', '__DATE__' or '__TIMESTAMP__' are
  5822. encountered as they might prevent bit-wise-identical reproducible
  5823. compilations.
  5824. '-Wempty-body'
  5825. Warn if an empty body occurs in an 'if', 'else' or 'do while'
  5826. statement. This warning is also enabled by '-Wextra'.
  5827. '-Wno-endif-labels'
  5828. Do not warn about stray tokens after '#else' and '#endif'.
  5829. '-Wenum-compare'
  5830. Warn about a comparison between values of different enumerated
  5831. types. In C++ enumerated type mismatches in conditional
  5832. expressions are also diagnosed and the warning is enabled by
  5833. default. In C this warning is enabled by '-Wall'.
  5834. '-Wenum-conversion (C, Objective-C only)'
  5835. Warn when a value of enumerated type is implicitly converted to a
  5836. different enumerated type. This warning is enabled by '-Wextra'.
  5837. '-Wjump-misses-init (C, Objective-C only)'
  5838. Warn if a 'goto' statement or a 'switch' statement jumps forward
  5839. across the initialization of a variable, or jumps backward to a
  5840. label after the variable has been initialized. This only warns
  5841. about variables that are initialized when they are declared. This
  5842. warning is only supported for C and Objective-C; in C++ this sort
  5843. of branch is an error in any case.
  5844. '-Wjump-misses-init' is included in '-Wc++-compat'. It can be
  5845. disabled with the '-Wno-jump-misses-init' option.
  5846. '-Wsign-compare'
  5847. Warn when a comparison between signed and unsigned values could
  5848. produce an incorrect result when the signed value is converted to
  5849. unsigned. In C++, this warning is also enabled by '-Wall'. In C,
  5850. it is also enabled by '-Wextra'.
  5851. '-Wsign-conversion'
  5852. Warn for implicit conversions that may change the sign of an
  5853. integer value, like assigning a signed integer expression to an
  5854. unsigned integer variable. An explicit cast silences the warning.
  5855. In C, this option is enabled also by '-Wconversion'.
  5856. '-Wfloat-conversion'
  5857. Warn for implicit conversions that reduce the precision of a real
  5858. value. This includes conversions from real to integer, and from
  5859. higher precision real to lower precision real values. This option
  5860. is also enabled by '-Wconversion'.
  5861. '-Wno-scalar-storage-order'
  5862. Do not warn on suspicious constructs involving reverse scalar
  5863. storage order.
  5864. '-Wsizeof-pointer-div'
  5865. Warn for suspicious divisions of two sizeof expressions that divide
  5866. the pointer size by the element size, which is the usual way to
  5867. compute the array size but won't work out correctly with pointers.
  5868. This warning warns e.g. about 'sizeof (ptr) / sizeof (ptr[0])' if
  5869. 'ptr' is not an array, but a pointer. This warning is enabled by
  5870. '-Wall'.
  5871. '-Wsizeof-pointer-memaccess'
  5872. Warn for suspicious length parameters to certain string and memory
  5873. built-in functions if the argument uses 'sizeof'. This warning
  5874. triggers for example for 'memset (ptr, 0, sizeof (ptr));' if 'ptr'
  5875. is not an array, but a pointer, and suggests a possible fix, or
  5876. about 'memcpy (&foo, ptr, sizeof (&foo));'.
  5877. '-Wsizeof-pointer-memaccess' also warns about calls to bounded
  5878. string copy functions like 'strncat' or 'strncpy' that specify as
  5879. the bound a 'sizeof' expression of the source array. For example,
  5880. in the following function the call to 'strncat' specifies the size
  5881. of the source string as the bound. That is almost certainly a
  5882. mistake and so the call is diagnosed.
  5883. void make_file (const char *name)
  5884. {
  5885. char path[PATH_MAX];
  5886. strncpy (path, name, sizeof path - 1);
  5887. strncat (path, ".text", sizeof ".text");
  5888. ...
  5889. }
  5890. The '-Wsizeof-pointer-memaccess' option is enabled by '-Wall'.
  5891. '-Wno-sizeof-array-argument'
  5892. Do not warn when the 'sizeof' operator is applied to a parameter
  5893. that is declared as an array in a function definition. This
  5894. warning is enabled by default for C and C++ programs.
  5895. '-Wmemset-elt-size'
  5896. Warn for suspicious calls to the 'memset' built-in function, if the
  5897. first argument references an array, and the third argument is a
  5898. number equal to the number of elements, but not equal to the size
  5899. of the array in memory. This indicates that the user has omitted a
  5900. multiplication by the element size. This warning is enabled by
  5901. '-Wall'.
  5902. '-Wmemset-transposed-args'
  5903. Warn for suspicious calls to the 'memset' built-in function where
  5904. the second argument is not zero and the third argument is zero.
  5905. For example, the call 'memset (buf, sizeof buf, 0)' is diagnosed
  5906. because 'memset (buf, 0, sizeof buf)' was meant instead. The
  5907. diagnostic is only emitted if the third argument is a literal zero.
  5908. Otherwise, if it is an expression that is folded to zero, or a cast
  5909. of zero to some type, it is far less likely that the arguments have
  5910. been mistakenly transposed and no warning is emitted. This warning
  5911. is enabled by '-Wall'.
  5912. '-Waddress'
  5913. Warn about suspicious uses of memory addresses. These include
  5914. using the address of a function in a conditional expression, such
  5915. as 'void func(void); if (func)', and comparisons against the memory
  5916. address of a string literal, such as 'if (x == "abc")'. Such uses
  5917. typically indicate a programmer error: the address of a function
  5918. always evaluates to true, so their use in a conditional usually
  5919. indicate that the programmer forgot the parentheses in a function
  5920. call; and comparisons against string literals result in unspecified
  5921. behavior and are not portable in C, so they usually indicate that
  5922. the programmer intended to use 'strcmp'. This warning is enabled
  5923. by '-Wall'.
  5924. '-Wno-address-of-packed-member'
  5925. Do not warn when the address of packed member of struct or union is
  5926. taken, which usually results in an unaligned pointer value. This
  5927. is enabled by default.
  5928. '-Wlogical-op'
  5929. Warn about suspicious uses of logical operators in expressions.
  5930. This includes using logical operators in contexts where a bit-wise
  5931. operator is likely to be expected. Also warns when the operands of
  5932. a logical operator are the same:
  5933. extern int a;
  5934. if (a < 0 && a < 0) { ... }
  5935. '-Wlogical-not-parentheses'
  5936. Warn about logical not used on the left hand side operand of a
  5937. comparison. This option does not warn if the right operand is
  5938. considered to be a boolean expression. Its purpose is to detect
  5939. suspicious code like the following:
  5940. int a;
  5941. ...
  5942. if (!a > 1) { ... }
  5943. It is possible to suppress the warning by wrapping the LHS into
  5944. parentheses:
  5945. if ((!a) > 1) { ... }
  5946. This warning is enabled by '-Wall'.
  5947. '-Waggregate-return'
  5948. Warn if any functions that return structures or unions are defined
  5949. or called. (In languages where you can return an array, this also
  5950. elicits a warning.)
  5951. '-Wno-aggressive-loop-optimizations'
  5952. Warn if in a loop with constant number of iterations the compiler
  5953. detects undefined behavior in some statement during one or more of
  5954. the iterations.
  5955. '-Wno-attributes'
  5956. Do not warn if an unexpected '__attribute__' is used, such as
  5957. unrecognized attributes, function attributes applied to variables,
  5958. etc. This does not stop errors for incorrect use of supported
  5959. attributes.
  5960. '-Wno-builtin-declaration-mismatch'
  5961. Warn if a built-in function is declared with an incompatible
  5962. signature or as a non-function, or when a built-in function
  5963. declared with a type that does not include a prototype is called
  5964. with arguments whose promoted types do not match those expected by
  5965. the function. When '-Wextra' is specified, also warn when a
  5966. built-in function that takes arguments is declared without a
  5967. prototype. The '-Wbuiltin-declaration-mismatch' warning is enabled
  5968. by default. To avoid the warning include the appropriate header to
  5969. bring the prototypes of built-in functions into scope.
  5970. For example, the call to 'memset' below is diagnosed by the warning
  5971. because the function expects a value of type 'size_t' as its
  5972. argument but the type of '32' is 'int'. With '-Wextra', the
  5973. declaration of the function is diagnosed as well.
  5974. extern void* memset ();
  5975. void f (void *d)
  5976. {
  5977. memset (d, '\0', 32);
  5978. }
  5979. '-Wno-builtin-macro-redefined'
  5980. Do not warn if certain built-in macros are redefined. This
  5981. suppresses warnings for redefinition of '__TIMESTAMP__',
  5982. '__TIME__', '__DATE__', '__FILE__', and '__BASE_FILE__'.
  5983. '-Wstrict-prototypes (C and Objective-C only)'
  5984. Warn if a function is declared or defined without specifying the
  5985. argument types. (An old-style function definition is permitted
  5986. without a warning if preceded by a declaration that specifies the
  5987. argument types.)
  5988. '-Wold-style-declaration (C and Objective-C only)'
  5989. Warn for obsolescent usages, according to the C Standard, in a
  5990. declaration. For example, warn if storage-class specifiers like
  5991. 'static' are not the first things in a declaration. This warning
  5992. is also enabled by '-Wextra'.
  5993. '-Wold-style-definition (C and Objective-C only)'
  5994. Warn if an old-style function definition is used. A warning is
  5995. given even if there is a previous prototype. A definition using
  5996. '()' is not considered an old-style definition in C2X mode, because
  5997. it is equivalent to '(void)' in that case, but is considered an
  5998. old-style definition for older standards.
  5999. '-Wmissing-parameter-type (C and Objective-C only)'
  6000. A function parameter is declared without a type specifier in
  6001. K&R-style functions:
  6002. void foo(bar) { }
  6003. This warning is also enabled by '-Wextra'.
  6004. '-Wmissing-prototypes (C and Objective-C only)'
  6005. Warn if a global function is defined without a previous prototype
  6006. declaration. This warning is issued even if the definition itself
  6007. provides a prototype. Use this option to detect global functions
  6008. that do not have a matching prototype declaration in a header file.
  6009. This option is not valid for C++ because all function declarations
  6010. provide prototypes and a non-matching declaration declares an
  6011. overload rather than conflict with an earlier declaration. Use
  6012. '-Wmissing-declarations' to detect missing declarations in C++.
  6013. '-Wmissing-declarations'
  6014. Warn if a global function is defined without a previous
  6015. declaration. Do so even if the definition itself provides a
  6016. prototype. Use this option to detect global functions that are not
  6017. declared in header files. In C, no warnings are issued for
  6018. functions with previous non-prototype declarations; use
  6019. '-Wmissing-prototypes' to detect missing prototypes. In C++, no
  6020. warnings are issued for function templates, or for inline
  6021. functions, or for functions in anonymous namespaces.
  6022. '-Wmissing-field-initializers'
  6023. Warn if a structure's initializer has some fields missing. For
  6024. example, the following code causes such a warning, because 'x.h' is
  6025. implicitly zero:
  6026. struct s { int f, g, h; };
  6027. struct s x = { 3, 4 };
  6028. This option does not warn about designated initializers, so the
  6029. following modification does not trigger a warning:
  6030. struct s { int f, g, h; };
  6031. struct s x = { .f = 3, .g = 4 };
  6032. In C this option does not warn about the universal zero initializer
  6033. '{ 0 }':
  6034. struct s { int f, g, h; };
  6035. struct s x = { 0 };
  6036. Likewise, in C++ this option does not warn about the empty { }
  6037. initializer, for example:
  6038. struct s { int f, g, h; };
  6039. s x = { };
  6040. This warning is included in '-Wextra'. To get other '-Wextra'
  6041. warnings without this one, use '-Wextra
  6042. -Wno-missing-field-initializers'.
  6043. '-Wno-multichar'
  6044. Do not warn if a multicharacter constant (''FOOF'') is used.
  6045. Usually they indicate a typo in the user's code, as they have
  6046. implementation-defined values, and should not be used in portable
  6047. code.
  6048. '-Wnormalized=[none|id|nfc|nfkc]'
  6049. In ISO C and ISO C++, two identifiers are different if they are
  6050. different sequences of characters. However, sometimes when
  6051. characters outside the basic ASCII character set are used, you can
  6052. have two different character sequences that look the same. To
  6053. avoid confusion, the ISO 10646 standard sets out some
  6054. "normalization rules" which when applied ensure that two sequences
  6055. that look the same are turned into the same sequence. GCC can warn
  6056. you if you are using identifiers that have not been normalized;
  6057. this option controls that warning.
  6058. There are four levels of warning supported by GCC. The default is
  6059. '-Wnormalized=nfc', which warns about any identifier that is not in
  6060. the ISO 10646 "C" normalized form, "NFC". NFC is the recommended
  6061. form for most uses. It is equivalent to '-Wnormalized'.
  6062. Unfortunately, there are some characters allowed in identifiers by
  6063. ISO C and ISO C++ that, when turned into NFC, are not allowed in
  6064. identifiers. That is, there's no way to use these symbols in
  6065. portable ISO C or C++ and have all your identifiers in NFC.
  6066. '-Wnormalized=id' suppresses the warning for these characters. It
  6067. is hoped that future versions of the standards involved will
  6068. correct this, which is why this option is not the default.
  6069. You can switch the warning off for all characters by writing
  6070. '-Wnormalized=none' or '-Wno-normalized'. You should only do this
  6071. if you are using some other normalization scheme (like "D"),
  6072. because otherwise you can easily create bugs that are literally
  6073. impossible to see.
  6074. Some characters in ISO 10646 have distinct meanings but look
  6075. identical in some fonts or display methodologies, especially once
  6076. formatting has been applied. For instance '\u207F', "SUPERSCRIPT
  6077. LATIN SMALL LETTER N", displays just like a regular 'n' that has
  6078. been placed in a superscript. ISO 10646 defines the "NFKC"
  6079. normalization scheme to convert all these into a standard form as
  6080. well, and GCC warns if your code is not in NFKC if you use
  6081. '-Wnormalized=nfkc'. This warning is comparable to warning about
  6082. every identifier that contains the letter O because it might be
  6083. confused with the digit 0, and so is not the default, but may be
  6084. useful as a local coding convention if the programming environment
  6085. cannot be fixed to display these characters distinctly.
  6086. '-Wno-attribute-warning'
  6087. Do not warn about usage of functions (*note Function Attributes::)
  6088. declared with 'warning' attribute. By default, this warning is
  6089. enabled. '-Wno-attribute-warning' can be used to disable the
  6090. warning or '-Wno-error=attribute-warning' can be used to disable
  6091. the error when compiled with '-Werror' flag.
  6092. '-Wno-deprecated'
  6093. Do not warn about usage of deprecated features. *Note Deprecated
  6094. Features::.
  6095. '-Wno-deprecated-declarations'
  6096. Do not warn about uses of functions (*note Function Attributes::),
  6097. variables (*note Variable Attributes::), and types (*note Type
  6098. Attributes::) marked as deprecated by using the 'deprecated'
  6099. attribute.
  6100. '-Wno-overflow'
  6101. Do not warn about compile-time overflow in constant expressions.
  6102. '-Wno-odr'
  6103. Warn about One Definition Rule violations during link-time
  6104. optimization. Enabled by default.
  6105. '-Wopenmp-simd'
  6106. Warn if the vectorizer cost model overrides the OpenMP simd
  6107. directive set by user. The '-fsimd-cost-model=unlimited' option
  6108. can be used to relax the cost model.
  6109. '-Woverride-init (C and Objective-C only)'
  6110. Warn if an initialized field without side effects is overridden
  6111. when using designated initializers (*note Designated Initializers:
  6112. Designated Inits.).
  6113. This warning is included in '-Wextra'. To get other '-Wextra'
  6114. warnings without this one, use '-Wextra -Wno-override-init'.
  6115. '-Wno-override-init-side-effects (C and Objective-C only)'
  6116. Do not warn if an initialized field with side effects is overridden
  6117. when using designated initializers (*note Designated Initializers:
  6118. Designated Inits.). This warning is enabled by default.
  6119. '-Wpacked'
  6120. Warn if a structure is given the packed attribute, but the packed
  6121. attribute has no effect on the layout or size of the structure.
  6122. Such structures may be mis-aligned for little benefit. For
  6123. instance, in this code, the variable 'f.x' in 'struct bar' is
  6124. misaligned even though 'struct bar' does not itself have the packed
  6125. attribute:
  6126. struct foo {
  6127. int x;
  6128. char a, b, c, d;
  6129. } __attribute__((packed));
  6130. struct bar {
  6131. char z;
  6132. struct foo f;
  6133. };
  6134. '-Wnopacked-bitfield-compat'
  6135. The 4.1, 4.2 and 4.3 series of GCC ignore the 'packed' attribute on
  6136. bit-fields of type 'char'. This was fixed in GCC 4.4 but the
  6137. change can lead to differences in the structure layout. GCC
  6138. informs you when the offset of such a field has changed in GCC 4.4.
  6139. For example there is no longer a 4-bit padding between field 'a'
  6140. and 'b' in this structure:
  6141. struct foo
  6142. {
  6143. char a:4;
  6144. char b:8;
  6145. } __attribute__ ((packed));
  6146. This warning is enabled by default. Use
  6147. '-Wno-packed-bitfield-compat' to disable this warning.
  6148. '-Wpacked-not-aligned (C, C++, Objective-C and Objective-C++ only)'
  6149. Warn if a structure field with explicitly specified alignment in a
  6150. packed struct or union is misaligned. For example, a warning will
  6151. be issued on 'struct S', like, 'warning: alignment 1 of 'struct S'
  6152. is less than 8', in this code:
  6153. struct __attribute__ ((aligned (8))) S8 { char a[8]; };
  6154. struct __attribute__ ((packed)) S {
  6155. struct S8 s8;
  6156. };
  6157. This warning is enabled by '-Wall'.
  6158. '-Wpadded'
  6159. Warn if padding is included in a structure, either to align an
  6160. element of the structure or to align the whole structure.
  6161. Sometimes when this happens it is possible to rearrange the fields
  6162. of the structure to reduce the padding and so make the structure
  6163. smaller.
  6164. '-Wredundant-decls'
  6165. Warn if anything is declared more than once in the same scope, even
  6166. in cases where multiple declaration is valid and changes nothing.
  6167. '-Wrestrict'
  6168. Warn when an object referenced by a 'restrict'-qualified parameter
  6169. (or, in C++, a '__restrict'-qualified parameter) is aliased by
  6170. another argument, or when copies between such objects overlap. For
  6171. example, the call to the 'strcpy' function below attempts to
  6172. truncate the string by replacing its initial characters with the
  6173. last four. However, because the call writes the terminating NUL
  6174. into 'a[4]', the copies overlap and the call is diagnosed.
  6175. void foo (void)
  6176. {
  6177. char a[] = "abcd1234";
  6178. strcpy (a, a + 4);
  6179. ...
  6180. }
  6181. The '-Wrestrict' option detects some instances of simple overlap
  6182. even without optimization but works best at '-O2' and above. It is
  6183. included in '-Wall'.
  6184. '-Wnested-externs (C and Objective-C only)'
  6185. Warn if an 'extern' declaration is encountered within a function.
  6186. '-Winline'
  6187. Warn if a function that is declared as inline cannot be inlined.
  6188. Even with this option, the compiler does not warn about failures to
  6189. inline functions declared in system headers.
  6190. The compiler uses a variety of heuristics to determine whether or
  6191. not to inline a function. For example, the compiler takes into
  6192. account the size of the function being inlined and the amount of
  6193. inlining that has already been done in the current function.
  6194. Therefore, seemingly insignificant changes in the source program
  6195. can cause the warnings produced by '-Winline' to appear or
  6196. disappear.
  6197. '-Wint-in-bool-context'
  6198. Warn for suspicious use of integer values where boolean values are
  6199. expected, such as conditional expressions (?:) using non-boolean
  6200. integer constants in boolean context, like 'if (a <= b ? 2 : 3)'.
  6201. Or left shifting of signed integers in boolean context, like 'for
  6202. (a = 0; 1 << a; a++);'. Likewise for all kinds of multiplications
  6203. regardless of the data type. This warning is enabled by '-Wall'.
  6204. '-Wno-int-to-pointer-cast'
  6205. Suppress warnings from casts to pointer type of an integer of a
  6206. different size. In C++, casting to a pointer type of smaller size
  6207. is an error. 'Wint-to-pointer-cast' is enabled by default.
  6208. '-Wno-pointer-to-int-cast (C and Objective-C only)'
  6209. Suppress warnings from casts from a pointer to an integer type of a
  6210. different size.
  6211. '-Winvalid-pch'
  6212. Warn if a precompiled header (*note Precompiled Headers::) is found
  6213. in the search path but cannot be used.
  6214. '-Wlong-long'
  6215. Warn if 'long long' type is used. This is enabled by either
  6216. '-Wpedantic' or '-Wtraditional' in ISO C90 and C++98 modes. To
  6217. inhibit the warning messages, use '-Wno-long-long'.
  6218. '-Wvariadic-macros'
  6219. Warn if variadic macros are used in ISO C90 mode, or if the GNU
  6220. alternate syntax is used in ISO C99 mode. This is enabled by
  6221. either '-Wpedantic' or '-Wtraditional'. To inhibit the warning
  6222. messages, use '-Wno-variadic-macros'.
  6223. '-Wno-varargs'
  6224. Do not warn upon questionable usage of the macros used to handle
  6225. variable arguments like 'va_start'. These warnings are enabled by
  6226. default.
  6227. '-Wvector-operation-performance'
  6228. Warn if vector operation is not implemented via SIMD capabilities
  6229. of the architecture. Mainly useful for the performance tuning.
  6230. Vector operation can be implemented 'piecewise', which means that
  6231. the scalar operation is performed on every vector element; 'in
  6232. parallel', which means that the vector operation is implemented
  6233. using scalars of wider type, which normally is more performance
  6234. efficient; and 'as a single scalar', which means that vector fits
  6235. into a scalar type.
  6236. '-Wvla'
  6237. Warn if a variable-length array is used in the code. '-Wno-vla'
  6238. prevents the '-Wpedantic' warning of the variable-length array.
  6239. '-Wvla-larger-than=BYTE-SIZE'
  6240. If this option is used, the compiler warns for declarations of
  6241. variable-length arrays whose size is either unbounded, or bounded
  6242. by an argument that allows the array size to exceed BYTE-SIZE
  6243. bytes. This is similar to how '-Walloca-larger-than='BYTE-SIZE
  6244. works, but with variable-length arrays.
  6245. Note that GCC may optimize small variable-length arrays of a known
  6246. value into plain arrays, so this warning may not get triggered for
  6247. such arrays.
  6248. '-Wvla-larger-than=''PTRDIFF_MAX' is enabled by default but is
  6249. typically only effective when '-ftree-vrp' is active (default for
  6250. '-O2' and above).
  6251. See also '-Walloca-larger-than=BYTE-SIZE'.
  6252. '-Wno-vla-larger-than'
  6253. Disable '-Wvla-larger-than=' warnings. The option is equivalent to
  6254. '-Wvla-larger-than=''SIZE_MAX' or larger.
  6255. '-Wvolatile-register-var'
  6256. Warn if a register variable is declared volatile. The volatile
  6257. modifier does not inhibit all optimizations that may eliminate
  6258. reads and/or writes to register variables. This warning is enabled
  6259. by '-Wall'.
  6260. '-Wdisabled-optimization'
  6261. Warn if a requested optimization pass is disabled. This warning
  6262. does not generally indicate that there is anything wrong with your
  6263. code; it merely indicates that GCC's optimizers are unable to
  6264. handle the code effectively. Often, the problem is that your code
  6265. is too big or too complex; GCC refuses to optimize programs when
  6266. the optimization itself is likely to take inordinate amounts of
  6267. time.
  6268. '-Wpointer-sign (C and Objective-C only)'
  6269. Warn for pointer argument passing or assignment with different
  6270. signedness. This option is only supported for C and Objective-C.
  6271. It is implied by '-Wall' and by '-Wpedantic', which can be disabled
  6272. with '-Wno-pointer-sign'.
  6273. '-Wstack-protector'
  6274. This option is only active when '-fstack-protector' is active. It
  6275. warns about functions that are not protected against stack
  6276. smashing.
  6277. '-Woverlength-strings'
  6278. Warn about string constants that are longer than the "minimum
  6279. maximum" length specified in the C standard. Modern compilers
  6280. generally allow string constants that are much longer than the
  6281. standard's minimum limit, but very portable programs should avoid
  6282. using longer strings.
  6283. The limit applies _after_ string constant concatenation, and does
  6284. not count the trailing NUL. In C90, the limit was 509 characters;
  6285. in C99, it was raised to 4095. C++98 does not specify a normative
  6286. minimum maximum, so we do not diagnose overlength strings in C++.
  6287. This option is implied by '-Wpedantic', and can be disabled with
  6288. '-Wno-overlength-strings'.
  6289. '-Wunsuffixed-float-constants (C and Objective-C only)'
  6290. Issue a warning for any floating constant that does not have a
  6291. suffix. When used together with '-Wsystem-headers' it warns about
  6292. such constants in system header files. This can be useful when
  6293. preparing code to use with the 'FLOAT_CONST_DECIMAL64' pragma from
  6294. the decimal floating-point extension to C99.
  6295. '-Wno-lto-type-mismatch'
  6296. During the link-time optimization, do not warn about type
  6297. mismatches in global declarations from different compilation units.
  6298. Requires '-flto' to be enabled. Enabled by default.
  6299. '-Wno-designated-init (C and Objective-C only)'
  6300. Suppress warnings when a positional initializer is used to
  6301. initialize a structure that has been marked with the
  6302. 'designated_init' attribute.
  6303. '-Wno-hsa'
  6304. Do not warn when HSAIL cannot be emitted for the compiled function
  6305. or OpenMP construct. These warnings are enabled by default.
  6306. 
  6307. File: gcc.info, Node: Static Analyzer Options, Next: Debugging Options, Prev: Warning Options, Up: Invoking GCC
  6308. 3.9 Options That Control Static Analysis
  6309. ========================================
  6310. '-fanalyzer'
  6311. This option enables an static analysis of program flow which looks
  6312. for "interesting" interprocedural paths through the code, and
  6313. issues warnings for problems found on them.
  6314. This analysis is much more expensive than other GCC warnings.
  6315. Enabling this option effectively enables the following warnings:
  6316. -Wanalyzer-double-fclose
  6317. -Wanalyzer-double-free
  6318. -Wanalyzer-exposure-through-output-file
  6319. -Wanalyzer-file-leak
  6320. -Wanalyzer-free-of-non-heap
  6321. -Wanalyzer-malloc-leak
  6322. -Wanalyzer-possible-null-argument
  6323. -Wanalyzer-possible-null-dereference
  6324. -Wanalyzer-null-argument
  6325. -Wanalyzer-null-dereference
  6326. -Wanalyzer-stale-setjmp-buffer
  6327. -Wanalyzer-tainted-array-index
  6328. -Wanalyzer-unsafe-call-within-signal-handler
  6329. -Wanalyzer-use-after-free
  6330. -Wanalyzer-use-of-pointer-in-stale-stack-frame
  6331. This option is only available if GCC was configured with analyzer
  6332. support enabled.
  6333. '-Wanalyzer-too-complex'
  6334. If '-fanalyzer' is enabled, the analyzer uses various heuristics to
  6335. attempt to explore the control flow and data flow in the program,
  6336. but these can be defeated by sufficiently complicated code.
  6337. By default, the analysis silently stops if the code is too
  6338. complicated for the analyzer to fully explore and it reaches an
  6339. internal limit. The '-Wanalyzer-too-complex' option warns if this
  6340. occurs.
  6341. '-Wno-analyzer-double-fclose'
  6342. This warning requires '-fanalyzer', which enables it; use
  6343. '-Wno-analyzer-double-fclose' to disable it.
  6344. This diagnostic warns for paths through the code in which a 'FILE
  6345. *' can have 'fclose' called on it more than once.
  6346. '-Wno-analyzer-double-free'
  6347. This warning requires '-fanalyzer', which enables it; use
  6348. '-Wno-analyzer-double-free' to disable it.
  6349. This diagnostic warns for paths through the code in which a pointer
  6350. can have 'free' called on it more than once.
  6351. '-Wno-analyzer-exposure-through-output-file'
  6352. This warning requires '-fanalyzer', which enables it; use
  6353. '-Wno-analyzer-exposure-through-output-file' to disable it.
  6354. This diagnostic warns for paths through the code in which a
  6355. security-sensitive value is written to an output file (such as
  6356. writing a password to a log file).
  6357. '-Wno-analyzer-file-leak'
  6358. This warning requires '-fanalyzer', which enables it; use
  6359. '-Wno-analyzer-file-leak' to disable it.
  6360. This diagnostic warns for paths through the code in which a
  6361. '<stdio.h>' 'FILE *' stream object is leaked.
  6362. '-Wno-analyzer-free-of-non-heap'
  6363. This warning requires '-fanalyzer', which enables it; use
  6364. '-Wno-analyzer-free-of-non-heap' to disable it.
  6365. This diagnostic warns for paths through the code in which 'free' is
  6366. called on a non-heap pointer (e.g. an on-stack buffer, or a
  6367. global).
  6368. '-Wno-analyzer-malloc-leak'
  6369. This warning requires '-fanalyzer', which enables it; use
  6370. '-Wno-analyzer-malloc-leak' to disable it.
  6371. This diagnostic warns for paths through the code in which a pointer
  6372. allocated via 'malloc' is leaked.
  6373. '-Wno-analyzer-possible-null-argument'
  6374. This warning requires '-fanalyzer', which enables it; use
  6375. '-Wno-analyzer-possible-null-argument' to disable it.
  6376. This diagnostic warns for paths through the code in which a
  6377. possibly-NULL value is passed to a function argument marked with
  6378. '__attribute__((nonnull))' as requiring a non-NULL value.
  6379. '-Wno-analyzer-possible-null-dereference'
  6380. This warning requires '-fanalyzer', which enables it; use
  6381. '-Wno-analyzer-possible-null-dereference' to disable it.
  6382. This diagnostic warns for paths through the code in which a
  6383. possibly-NULL value is dereferenced.
  6384. '-Wno-analyzer-null-argument'
  6385. This warning requires '-fanalyzer', which enables it; use
  6386. '-Wno-analyzer-null-argument' to disable it.
  6387. This diagnostic warns for paths through the code in which a value
  6388. known to be NULL is passed to a function argument marked with
  6389. '__attribute__((nonnull))' as requiring a non-NULL value.
  6390. '-Wno-analyzer-null-dereference'
  6391. This warning requires '-fanalyzer', which enables it; use
  6392. '-Wno-analyzer-null-dereference' to disable it.
  6393. This diagnostic warns for paths through the code in which a value
  6394. known to be NULL is dereferenced.
  6395. '-Wno-analyzer-stale-setjmp-buffer'
  6396. This warning requires '-fanalyzer', which enables it; use
  6397. '-Wno-analyzer-stale-setjmp-buffer' to disable it.
  6398. This diagnostic warns for paths through the code in which 'longjmp'
  6399. is called to rewind to a 'jmp_buf' relating to a 'setjmp' call in a
  6400. function that has returned.
  6401. When 'setjmp' is called on a 'jmp_buf' to record a rewind location,
  6402. it records the stack frame. The stack frame becomes invalid when
  6403. the function containing the 'setjmp' call returns. Attempting to
  6404. rewind to it via 'longjmp' would reference a stack frame that no
  6405. longer exists, and likely lead to a crash (or worse).
  6406. '-Wno-analyzer-tainted-array-index'
  6407. This warning requires both '-fanalyzer' and
  6408. '-fanalyzer-checker=taint' to enable it; use
  6409. '-Wno-analyzer-tainted-array-index' to disable it.
  6410. This diagnostic warns for paths through the code in which a value
  6411. that could be under an attacker's control is used as the index of
  6412. an array access without being sanitized.
  6413. '-Wno-analyzer-unsafe-call-within-signal-handler'
  6414. This warning requires '-fanalyzer', which enables it; use
  6415. '-Wno-analyzer-unsafe-call-within-signal-handler' to disable it.
  6416. This diagnostic warns for paths through the code in which a
  6417. function known to be async-signal-unsafe (such as 'fprintf') is
  6418. called from a signal handler.
  6419. '-Wno-analyzer-use-after-free'
  6420. This warning requires '-fanalyzer', which enables it; use
  6421. '-Wno-analyzer-use-after-free' to disable it.
  6422. This diagnostic warns for paths through the code in which a pointer
  6423. is used after 'free' is called on it.
  6424. '-Wno-analyzer-use-of-pointer-in-stale-stack-frame'
  6425. This warning requires '-fanalyzer', which enables it; use
  6426. '-Wno-analyzer-use-of-pointer-in-stale-stack-frame' to disable it.
  6427. This diagnostic warns for paths through the code in which a pointer
  6428. is dereferenced that points to a variable in a stale stack frame.
  6429. Pertinent parameters for controlling the exploration are: '--param
  6430. analyzer-bb-explosion-factor=VALUE', '--param
  6431. analyzer-max-enodes-per-program-point=VALUE', '--param
  6432. analyzer-max-recursion-depth=VALUE', and '--param
  6433. analyzer-min-snodes-for-call-summary=VALUE'.
  6434. The following options control the analyzer.
  6435. '-fanalyzer-call-summaries'
  6436. Simplify interprocedural analysis by computing the effect of
  6437. certain calls, rather than exploring all paths through the function
  6438. from callsite to each possible return.
  6439. If enabled, call summaries are only used for functions with more
  6440. than one call site, and that are sufficiently complicated (as per
  6441. '--param analyzer-min-snodes-for-call-summary=VALUE').
  6442. '-fanalyzer-checker=NAME'
  6443. Restrict the analyzer to run just the named checker, and enable it.
  6444. Some checkers are disabled by default (even with '-fanalyzer'),
  6445. such as the 'taint' checker that implements
  6446. '-Wanalyzer-tainted-array-index', and this option is required to
  6447. enable them.
  6448. '-fanalyzer-fine-grained'
  6449. This option is intended for analyzer developers.
  6450. Internally the analyzer builds an "exploded graph" that combines
  6451. control flow graphs with data flow information.
  6452. By default, an edge in this graph can contain the effects of a run
  6453. of multiple statements within a basic block. With
  6454. '-fanalyzer-fine-grained', each statement gets its own edge.
  6455. '-fanalyzer-show-duplicate-count'
  6456. This option is intended for analyzer developers: if multiple
  6457. diagnostics have been detected as being duplicates of each other,
  6458. it emits a note when reporting the best diagnostic, giving the
  6459. number of additional diagnostics that were suppressed by the
  6460. deduplication logic.
  6461. '-fno-analyzer-state-merge'
  6462. This option is intended for analyzer developers.
  6463. By default the analyzer attempts to simplify analysis by merging
  6464. sufficiently similar states at each program point as it builds its
  6465. "exploded graph". With '-fno-analyzer-state-merge' this merging
  6466. can be suppressed, for debugging state-handling issues.
  6467. '-fno-analyzer-state-purge'
  6468. This option is intended for analyzer developers.
  6469. By default the analyzer attempts to simplify analysis by purging
  6470. aspects of state at a program point that appear to no longer be
  6471. relevant e.g. the values of locals that aren't accessed later in
  6472. the function and which aren't relevant to leak analysis.
  6473. With '-fno-analyzer-state-purge' this purging of state can be
  6474. suppressed, for debugging state-handling issues.
  6475. '-fanalyzer-transitivity'
  6476. This option enables transitivity of constraints within the
  6477. analyzer.
  6478. '-fanalyzer-verbose-edges'
  6479. This option is intended for analyzer developers. It enables more
  6480. verbose, lower-level detail in the descriptions of control flow
  6481. within diagnostic paths.
  6482. '-fanalyzer-verbose-state-changes'
  6483. This option is intended for analyzer developers. It enables more
  6484. verbose, lower-level detail in the descriptions of events relating
  6485. to state machines within diagnostic paths.
  6486. '-fanalyzer-verbosity=LEVEL'
  6487. This option controls the complexity of the control flow paths that
  6488. are emitted for analyzer diagnostics.
  6489. The LEVEL can be one of:
  6490. '0'
  6491. At this level, interprocedural call and return events are
  6492. displayed, along with the most pertinent state-change events
  6493. relating to a diagnostic. For example, for a double-'free'
  6494. diagnostic, both calls to 'free' will be shown.
  6495. '1'
  6496. As per the previous level, but also show events for the entry
  6497. to each function.
  6498. '2'
  6499. As per the previous level, but also show events relating to
  6500. control flow that are significant to triggering the issue
  6501. (e.g. "true path taken" at a conditional).
  6502. This level is the default.
  6503. '3'
  6504. As per the previous level, but show all control flow events,
  6505. not just significant ones.
  6506. '4'
  6507. This level is intended for analyzer developers; it adds
  6508. various other events intended for debugging the analyzer.
  6509. '-fdump-analyzer'
  6510. Dump internal details about what the analyzer is doing to
  6511. 'FILE.analyzer.txt'. This option is overridden by
  6512. '-fdump-analyzer-stderr'.
  6513. '-fdump-analyzer-stderr'
  6514. Dump internal details about what the analyzer is doing to stderr.
  6515. This option overrides '-fdump-analyzer'.
  6516. '-fdump-analyzer-callgraph'
  6517. Dump a representation of the call graph suitable for viewing with
  6518. GraphViz to 'FILE.callgraph.dot'.
  6519. '-fdump-analyzer-exploded-graph'
  6520. Dump a representation of the "exploded graph" suitable for viewing
  6521. with GraphViz to 'FILE.eg.dot'. Nodes are color-coded based on
  6522. state-machine states to emphasize state changes.
  6523. '-fdump-analyzer-exploded-nodes'
  6524. Emit diagnostics showing where nodes in the "exploded graph" are in
  6525. relation to the program source.
  6526. '-fdump-analyzer-exploded-nodes-2'
  6527. Dump a textual representation of the "exploded graph" to
  6528. 'FILE.eg.txt'.
  6529. '-fdump-analyzer-exploded-nodes-3'
  6530. Dump a textual representation of the "exploded graph" to one dump
  6531. file per node, to 'FILE.eg-ID.txt'. This is typically a large
  6532. number of dump files.
  6533. '-fdump-analyzer-state-purge'
  6534. As per '-fdump-analyzer-supergraph', dump a representation of the
  6535. "supergraph" suitable for viewing with GraphViz, but annotate the
  6536. graph with information on what state will be purged at each node.
  6537. The graph is written to 'FILE.state-purge.dot'.
  6538. '-fdump-analyzer-supergraph'
  6539. Dump representations of the "supergraph" suitable for viewing with
  6540. GraphViz to 'FILE.supergraph.dot' and to 'FILE.supergraph-eg.dot'.
  6541. These show all of the control flow graphs in the program, with
  6542. interprocedural edges for calls and returns. The second dump
  6543. contains annotations showing nodes in the "exploded graph" and
  6544. diagnostics associated with them.
  6545. 
  6546. File: gcc.info, Node: Debugging Options, Next: Optimize Options, Prev: Static Analyzer Options, Up: Invoking GCC
  6547. 3.10 Options for Debugging Your Program
  6548. =======================================
  6549. To tell GCC to emit extra information for use by a debugger, in almost
  6550. all cases you need only to add '-g' to your other options.
  6551. GCC allows you to use '-g' with '-O'. The shortcuts taken by optimized
  6552. code may occasionally be surprising: some variables you declared may not
  6553. exist at all; flow of control may briefly move where you did not expect
  6554. it; some statements may not be executed because they compute constant
  6555. results or their values are already at hand; some statements may execute
  6556. in different places because they have been moved out of loops.
  6557. Nevertheless it is possible to debug optimized output. This makes it
  6558. reasonable to use the optimizer for programs that might have bugs.
  6559. If you are not using some other optimization option, consider using
  6560. '-Og' (*note Optimize Options::) with '-g'. With no '-O' option at all,
  6561. some compiler passes that collect information useful for debugging do
  6562. not run at all, so that '-Og' may result in a better debugging
  6563. experience.
  6564. '-g'
  6565. Produce debugging information in the operating system's native
  6566. format (stabs, COFF, XCOFF, or DWARF). GDB can work with this
  6567. debugging information.
  6568. On most systems that use stabs format, '-g' enables use of extra
  6569. debugging information that only GDB can use; this extra information
  6570. makes debugging work better in GDB but probably makes other
  6571. debuggers crash or refuse to read the program. If you want to
  6572. control for certain whether to generate the extra information, use
  6573. '-gstabs+', '-gstabs', '-gxcoff+', '-gxcoff', or '-gvms' (see
  6574. below).
  6575. '-ggdb'
  6576. Produce debugging information for use by GDB. This means to use
  6577. the most expressive format available (DWARF, stabs, or the native
  6578. format if neither of those are supported), including GDB extensions
  6579. if at all possible.
  6580. '-gdwarf'
  6581. '-gdwarf-VERSION'
  6582. Produce debugging information in DWARF format (if that is
  6583. supported). The value of VERSION may be either 2, 3, 4 or 5; the
  6584. default version for most targets is 4. DWARF Version 5 is only
  6585. experimental.
  6586. Note that with DWARF Version 2, some ports require and always use
  6587. some non-conflicting DWARF 3 extensions in the unwind tables.
  6588. Version 4 may require GDB 7.0 and '-fvar-tracking-assignments' for
  6589. maximum benefit.
  6590. GCC no longer supports DWARF Version 1, which is substantially
  6591. different than Version 2 and later. For historical reasons, some
  6592. other DWARF-related options such as '-fno-dwarf2-cfi-asm') retain a
  6593. reference to DWARF Version 2 in their names, but apply to all
  6594. currently-supported versions of DWARF.
  6595. '-gstabs'
  6596. Produce debugging information in stabs format (if that is
  6597. supported), without GDB extensions. This is the format used by DBX
  6598. on most BSD systems. On MIPS, Alpha and System V Release 4 systems
  6599. this option produces stabs debugging output that is not understood
  6600. by DBX. On System V Release 4 systems this option requires the GNU
  6601. assembler.
  6602. '-gstabs+'
  6603. Produce debugging information in stabs format (if that is
  6604. supported), using GNU extensions understood only by the GNU
  6605. debugger (GDB). The use of these extensions is likely to make
  6606. other debuggers crash or refuse to read the program.
  6607. '-gxcoff'
  6608. Produce debugging information in XCOFF format (if that is
  6609. supported). This is the format used by the DBX debugger on IBM
  6610. RS/6000 systems.
  6611. '-gxcoff+'
  6612. Produce debugging information in XCOFF format (if that is
  6613. supported), using GNU extensions understood only by the GNU
  6614. debugger (GDB). The use of these extensions is likely to make
  6615. other debuggers crash or refuse to read the program, and may cause
  6616. assemblers other than the GNU assembler (GAS) to fail with an
  6617. error.
  6618. '-gvms'
  6619. Produce debugging information in Alpha/VMS debug format (if that is
  6620. supported). This is the format used by DEBUG on Alpha/VMS systems.
  6621. '-gLEVEL'
  6622. '-ggdbLEVEL'
  6623. '-gstabsLEVEL'
  6624. '-gxcoffLEVEL'
  6625. '-gvmsLEVEL'
  6626. Request debugging information and also use LEVEL to specify how
  6627. much information. The default level is 2.
  6628. Level 0 produces no debug information at all. Thus, '-g0' negates
  6629. '-g'.
  6630. Level 1 produces minimal information, enough for making backtraces
  6631. in parts of the program that you don't plan to debug. This
  6632. includes descriptions of functions and external variables, and line
  6633. number tables, but no information about local variables.
  6634. Level 3 includes extra information, such as all the macro
  6635. definitions present in the program. Some debuggers support macro
  6636. expansion when you use '-g3'.
  6637. If you use multiple '-g' options, with or without level numbers,
  6638. the last such option is the one that is effective.
  6639. '-gdwarf' does not accept a concatenated debug level, to avoid
  6640. confusion with '-gdwarf-LEVEL'. Instead use an additional
  6641. '-gLEVEL' option to change the debug level for DWARF.
  6642. '-fno-eliminate-unused-debug-symbols'
  6643. By default, no debug information is produced for symbols that are
  6644. not actually used. Use this option if you want debug information
  6645. for all symbols.
  6646. '-femit-class-debug-always'
  6647. Instead of emitting debugging information for a C++ class in only
  6648. one object file, emit it in all object files using the class. This
  6649. option should be used only with debuggers that are unable to handle
  6650. the way GCC normally emits debugging information for classes
  6651. because using this option increases the size of debugging
  6652. information by as much as a factor of two.
  6653. '-fno-merge-debug-strings'
  6654. Direct the linker to not merge together strings in the debugging
  6655. information that are identical in different object files. Merging
  6656. is not supported by all assemblers or linkers. Merging decreases
  6657. the size of the debug information in the output file at the cost of
  6658. increasing link processing time. Merging is enabled by default.
  6659. '-fdebug-prefix-map=OLD=NEW'
  6660. When compiling files residing in directory 'OLD', record debugging
  6661. information describing them as if the files resided in directory
  6662. 'NEW' instead. This can be used to replace a build-time path with
  6663. an install-time path in the debug info. It can also be used to
  6664. change an absolute path to a relative path by using '.' for NEW.
  6665. This can give more reproducible builds, which are location
  6666. independent, but may require an extra command to tell GDB where to
  6667. find the source files. See also '-ffile-prefix-map'.
  6668. '-fvar-tracking'
  6669. Run variable tracking pass. It computes where variables are stored
  6670. at each position in code. Better debugging information is then
  6671. generated (if the debugging information format supports this
  6672. information).
  6673. It is enabled by default when compiling with optimization ('-Os',
  6674. '-O', '-O2', ...), debugging information ('-g') and the debug info
  6675. format supports it.
  6676. '-fvar-tracking-assignments'
  6677. Annotate assignments to user variables early in the compilation and
  6678. attempt to carry the annotations over throughout the compilation
  6679. all the way to the end, in an attempt to improve debug information
  6680. while optimizing. Use of '-gdwarf-4' is recommended along with it.
  6681. It can be enabled even if var-tracking is disabled, in which case
  6682. annotations are created and maintained, but discarded at the end.
  6683. By default, this flag is enabled together with '-fvar-tracking',
  6684. except when selective scheduling is enabled.
  6685. '-gsplit-dwarf'
  6686. Separate as much DWARF debugging information as possible into a
  6687. separate output file with the extension '.dwo'. This option allows
  6688. the build system to avoid linking files with debug information. To
  6689. be useful, this option requires a debugger capable of reading
  6690. '.dwo' files.
  6691. '-gdescribe-dies'
  6692. Add description attributes to some DWARF DIEs that have no name
  6693. attribute, such as artificial variables, external references and
  6694. call site parameter DIEs.
  6695. '-gpubnames'
  6696. Generate DWARF '.debug_pubnames' and '.debug_pubtypes' sections.
  6697. '-ggnu-pubnames'
  6698. Generate '.debug_pubnames' and '.debug_pubtypes' sections in a
  6699. format suitable for conversion into a GDB index. This option is
  6700. only useful with a linker that can produce GDB index version 7.
  6701. '-fdebug-types-section'
  6702. When using DWARF Version 4 or higher, type DIEs can be put into
  6703. their own '.debug_types' section instead of making them part of the
  6704. '.debug_info' section. It is more efficient to put them in a
  6705. separate comdat section since the linker can then remove
  6706. duplicates. But not all DWARF consumers support '.debug_types'
  6707. sections yet and on some objects '.debug_types' produces larger
  6708. instead of smaller debugging information.
  6709. '-grecord-gcc-switches'
  6710. '-gno-record-gcc-switches'
  6711. This switch causes the command-line options used to invoke the
  6712. compiler that may affect code generation to be appended to the
  6713. DW_AT_producer attribute in DWARF debugging information. The
  6714. options are concatenated with spaces separating them from each
  6715. other and from the compiler version. It is enabled by default.
  6716. See also '-frecord-gcc-switches' for another way of storing
  6717. compiler options into the object file.
  6718. '-gstrict-dwarf'
  6719. Disallow using extensions of later DWARF standard version than
  6720. selected with '-gdwarf-VERSION'. On most targets using
  6721. non-conflicting DWARF extensions from later standard versions is
  6722. allowed.
  6723. '-gno-strict-dwarf'
  6724. Allow using extensions of later DWARF standard version than
  6725. selected with '-gdwarf-VERSION'.
  6726. '-gas-loc-support'
  6727. Inform the compiler that the assembler supports '.loc' directives.
  6728. It may then use them for the assembler to generate DWARF2+ line
  6729. number tables.
  6730. This is generally desirable, because assembler-generated
  6731. line-number tables are a lot more compact than those the compiler
  6732. can generate itself.
  6733. This option will be enabled by default if, at GCC configure time,
  6734. the assembler was found to support such directives.
  6735. '-gno-as-loc-support'
  6736. Force GCC to generate DWARF2+ line number tables internally, if
  6737. DWARF2+ line number tables are to be generated.
  6738. '-gas-locview-support'
  6739. Inform the compiler that the assembler supports 'view' assignment
  6740. and reset assertion checking in '.loc' directives.
  6741. This option will be enabled by default if, at GCC configure time,
  6742. the assembler was found to support them.
  6743. '-gno-as-locview-support'
  6744. Force GCC to assign view numbers internally, if
  6745. '-gvariable-location-views' are explicitly requested.
  6746. '-gcolumn-info'
  6747. '-gno-column-info'
  6748. Emit location column information into DWARF debugging information,
  6749. rather than just file and line. This option is enabled by default.
  6750. '-gstatement-frontiers'
  6751. '-gno-statement-frontiers'
  6752. This option causes GCC to create markers in the internal
  6753. representation at the beginning of statements, and to keep them
  6754. roughly in place throughout compilation, using them to guide the
  6755. output of 'is_stmt' markers in the line number table. This is
  6756. enabled by default when compiling with optimization ('-Os', '-O',
  6757. '-O2', ...), and outputting DWARF 2 debug information at the normal
  6758. level.
  6759. '-gvariable-location-views'
  6760. '-gvariable-location-views=incompat5'
  6761. '-gno-variable-location-views'
  6762. Augment variable location lists with progressive view numbers
  6763. implied from the line number table. This enables debug information
  6764. consumers to inspect state at certain points of the program, even
  6765. if no instructions associated with the corresponding source
  6766. locations are present at that point. If the assembler lacks
  6767. support for view numbers in line number tables, this will cause the
  6768. compiler to emit the line number table, which generally makes them
  6769. somewhat less compact. The augmented line number tables and
  6770. location lists are fully backward-compatible, so they can be
  6771. consumed by debug information consumers that are not aware of these
  6772. augmentations, but they won't derive any benefit from them either.
  6773. This is enabled by default when outputting DWARF 2 debug
  6774. information at the normal level, as long as there is assembler
  6775. support, '-fvar-tracking-assignments' is enabled and
  6776. '-gstrict-dwarf' is not. When assembler support is not available,
  6777. this may still be enabled, but it will force GCC to output internal
  6778. line number tables, and if '-ginternal-reset-location-views' is not
  6779. enabled, that will most certainly lead to silently mismatching
  6780. location views.
  6781. There is a proposed representation for view numbers that is not
  6782. backward compatible with the location list format introduced in
  6783. DWARF 5, that can be enabled with
  6784. '-gvariable-location-views=incompat5'. This option may be removed
  6785. in the future, is only provided as a reference implementation of
  6786. the proposed representation. Debug information consumers are not
  6787. expected to support this extended format, and they would be
  6788. rendered unable to decode location lists using it.
  6789. '-ginternal-reset-location-views'
  6790. '-gno-internal-reset-location-views'
  6791. Attempt to determine location views that can be omitted from
  6792. location view lists. This requires the compiler to have very
  6793. accurate insn length estimates, which isn't always the case, and it
  6794. may cause incorrect view lists to be generated silently when using
  6795. an assembler that does not support location view lists. The GNU
  6796. assembler will flag any such error as a 'view number mismatch'.
  6797. This is only enabled on ports that define a reliable estimation
  6798. function.
  6799. '-ginline-points'
  6800. '-gno-inline-points'
  6801. Generate extended debug information for inlined functions.
  6802. Location view tracking markers are inserted at inlined entry
  6803. points, so that address and view numbers can be computed and output
  6804. in debug information. This can be enabled independently of
  6805. location views, in which case the view numbers won't be output, but
  6806. it can only be enabled along with statement frontiers, and it is
  6807. only enabled by default if location views are enabled.
  6808. '-gz[=TYPE]'
  6809. Produce compressed debug sections in DWARF format, if that is
  6810. supported. If TYPE is not given, the default type depends on the
  6811. capabilities of the assembler and linker used. TYPE may be one of
  6812. 'none' (don't compress debug sections), 'zlib' (use zlib
  6813. compression in ELF gABI format), or 'zlib-gnu' (use zlib
  6814. compression in traditional GNU format). If the linker doesn't
  6815. support writing compressed debug sections, the option is rejected.
  6816. Otherwise, if the assembler does not support them, '-gz' is
  6817. silently ignored when producing object files.
  6818. '-femit-struct-debug-baseonly'
  6819. Emit debug information for struct-like types only when the base
  6820. name of the compilation source file matches the base name of file
  6821. in which the struct is defined.
  6822. This option substantially reduces the size of debugging
  6823. information, but at significant potential loss in type information
  6824. to the debugger. See '-femit-struct-debug-reduced' for a less
  6825. aggressive option. See '-femit-struct-debug-detailed' for more
  6826. detailed control.
  6827. This option works only with DWARF debug output.
  6828. '-femit-struct-debug-reduced'
  6829. Emit debug information for struct-like types only when the base
  6830. name of the compilation source file matches the base name of file
  6831. in which the type is defined, unless the struct is a template or
  6832. defined in a system header.
  6833. This option significantly reduces the size of debugging
  6834. information, with some potential loss in type information to the
  6835. debugger. See '-femit-struct-debug-baseonly' for a more aggressive
  6836. option. See '-femit-struct-debug-detailed' for more detailed
  6837. control.
  6838. This option works only with DWARF debug output.
  6839. '-femit-struct-debug-detailed[=SPEC-LIST]'
  6840. Specify the struct-like types for which the compiler generates
  6841. debug information. The intent is to reduce duplicate struct debug
  6842. information between different object files within the same program.
  6843. This option is a detailed version of '-femit-struct-debug-reduced'
  6844. and '-femit-struct-debug-baseonly', which serves for most needs.
  6845. A specification has the syntax
  6846. ['dir:'|'ind:']['ord:'|'gen:']('any'|'sys'|'base'|'none')
  6847. The optional first word limits the specification to structs that
  6848. are used directly ('dir:') or used indirectly ('ind:'). A struct
  6849. type is used directly when it is the type of a variable, member.
  6850. Indirect uses arise through pointers to structs. That is, when use
  6851. of an incomplete struct is valid, the use is indirect. An example
  6852. is 'struct one direct; struct two * indirect;'.
  6853. The optional second word limits the specification to ordinary
  6854. structs ('ord:') or generic structs ('gen:'). Generic structs are
  6855. a bit complicated to explain. For C++, these are non-explicit
  6856. specializations of template classes, or non-template classes within
  6857. the above. Other programming languages have generics, but
  6858. '-femit-struct-debug-detailed' does not yet implement them.
  6859. The third word specifies the source files for those structs for
  6860. which the compiler should emit debug information. The values
  6861. 'none' and 'any' have the normal meaning. The value 'base' means
  6862. that the base of name of the file in which the type declaration
  6863. appears must match the base of the name of the main compilation
  6864. file. In practice, this means that when compiling 'foo.c', debug
  6865. information is generated for types declared in that file and
  6866. 'foo.h', but not other header files. The value 'sys' means those
  6867. types satisfying 'base' or declared in system or compiler headers.
  6868. You may need to experiment to determine the best settings for your
  6869. application.
  6870. The default is '-femit-struct-debug-detailed=all'.
  6871. This option works only with DWARF debug output.
  6872. '-fno-dwarf2-cfi-asm'
  6873. Emit DWARF unwind info as compiler generated '.eh_frame' section
  6874. instead of using GAS '.cfi_*' directives.
  6875. '-fno-eliminate-unused-debug-types'
  6876. Normally, when producing DWARF output, GCC avoids producing debug
  6877. symbol output for types that are nowhere used in the source file
  6878. being compiled. Sometimes it is useful to have GCC emit debugging
  6879. information for all types declared in a compilation unit,
  6880. regardless of whether or not they are actually used in that
  6881. compilation unit, for example if, in the debugger, you want to cast
  6882. a value to a type that is not actually used in your program (but is
  6883. declared). More often, however, this results in a significant
  6884. amount of wasted space.
  6885. 
  6886. File: gcc.info, Node: Optimize Options, Next: Instrumentation Options, Prev: Debugging Options, Up: Invoking GCC
  6887. 3.11 Options That Control Optimization
  6888. ======================================
  6889. These options control various sorts of optimizations.
  6890. Without any optimization option, the compiler's goal is to reduce the
  6891. cost of compilation and to make debugging produce the expected results.
  6892. Statements are independent: if you stop the program with a breakpoint
  6893. between statements, you can then assign a new value to any variable or
  6894. change the program counter to any other statement in the function and
  6895. get exactly the results you expect from the source code.
  6896. Turning on optimization flags makes the compiler attempt to improve the
  6897. performance and/or code size at the expense of compilation time and
  6898. possibly the ability to debug the program.
  6899. The compiler performs optimization based on the knowledge it has of the
  6900. program. Compiling multiple files at once to a single output file mode
  6901. allows the compiler to use information gained from all of the files when
  6902. compiling each of them.
  6903. Not all optimizations are controlled directly by a flag. Only
  6904. optimizations that have a flag are listed in this section.
  6905. Most optimizations are completely disabled at '-O0' or if an '-O' level
  6906. is not set on the command line, even if individual optimization flags
  6907. are specified. Similarly, '-Og' suppresses many optimization passes.
  6908. Depending on the target and how GCC was configured, a slightly
  6909. different set of optimizations may be enabled at each '-O' level than
  6910. those listed here. You can invoke GCC with '-Q --help=optimizers' to
  6911. find out the exact set of optimizations that are enabled at each level.
  6912. *Note Overall Options::, for examples.
  6913. '-O'
  6914. '-O1'
  6915. Optimize. Optimizing compilation takes somewhat more time, and a
  6916. lot more memory for a large function.
  6917. With '-O', the compiler tries to reduce code size and execution
  6918. time, without performing any optimizations that take a great deal
  6919. of compilation time.
  6920. '-O' turns on the following optimization flags:
  6921. -fauto-inc-dec
  6922. -fbranch-count-reg
  6923. -fcombine-stack-adjustments
  6924. -fcompare-elim
  6925. -fcprop-registers
  6926. -fdce
  6927. -fdefer-pop
  6928. -fdelayed-branch
  6929. -fdse
  6930. -fforward-propagate
  6931. -fguess-branch-probability
  6932. -fif-conversion
  6933. -fif-conversion2
  6934. -finline-functions-called-once
  6935. -fipa-profile
  6936. -fipa-pure-const
  6937. -fipa-reference
  6938. -fipa-reference-addressable
  6939. -fmerge-constants
  6940. -fmove-loop-invariants
  6941. -fomit-frame-pointer
  6942. -freorder-blocks
  6943. -fshrink-wrap
  6944. -fshrink-wrap-separate
  6945. -fsplit-wide-types
  6946. -fssa-backprop
  6947. -fssa-phiopt
  6948. -ftree-bit-ccp
  6949. -ftree-ccp
  6950. -ftree-ch
  6951. -ftree-coalesce-vars
  6952. -ftree-copy-prop
  6953. -ftree-dce
  6954. -ftree-dominator-opts
  6955. -ftree-dse
  6956. -ftree-forwprop
  6957. -ftree-fre
  6958. -ftree-phiprop
  6959. -ftree-pta
  6960. -ftree-scev-cprop
  6961. -ftree-sink
  6962. -ftree-slsr
  6963. -ftree-sra
  6964. -ftree-ter
  6965. -funit-at-a-time
  6966. '-O2'
  6967. Optimize even more. GCC performs nearly all supported
  6968. optimizations that do not involve a space-speed tradeoff. As
  6969. compared to '-O', this option increases both compilation time and
  6970. the performance of the generated code.
  6971. '-O2' turns on all optimization flags specified by '-O'. It also
  6972. turns on the following optimization flags:
  6973. -falign-functions -falign-jumps
  6974. -falign-labels -falign-loops
  6975. -fcaller-saves
  6976. -fcode-hoisting
  6977. -fcrossjumping
  6978. -fcse-follow-jumps -fcse-skip-blocks
  6979. -fdelete-null-pointer-checks
  6980. -fdevirtualize -fdevirtualize-speculatively
  6981. -fexpensive-optimizations
  6982. -ffinite-loops
  6983. -fgcse -fgcse-lm
  6984. -fhoist-adjacent-loads
  6985. -finline-functions
  6986. -finline-small-functions
  6987. -findirect-inlining
  6988. -fipa-bit-cp -fipa-cp -fipa-icf
  6989. -fipa-ra -fipa-sra -fipa-vrp
  6990. -fisolate-erroneous-paths-dereference
  6991. -flra-remat
  6992. -foptimize-sibling-calls
  6993. -foptimize-strlen
  6994. -fpartial-inlining
  6995. -fpeephole2
  6996. -freorder-blocks-algorithm=stc
  6997. -freorder-blocks-and-partition -freorder-functions
  6998. -frerun-cse-after-loop
  6999. -fschedule-insns -fschedule-insns2
  7000. -fsched-interblock -fsched-spec
  7001. -fstore-merging
  7002. -fstrict-aliasing
  7003. -fthread-jumps
  7004. -ftree-builtin-call-dce
  7005. -ftree-pre
  7006. -ftree-switch-conversion -ftree-tail-merge
  7007. -ftree-vrp
  7008. Please note the warning under '-fgcse' about invoking '-O2' on
  7009. programs that use computed gotos.
  7010. '-O3'
  7011. Optimize yet more. '-O3' turns on all optimizations specified by
  7012. '-O2' and also turns on the following optimization flags:
  7013. -fgcse-after-reload
  7014. -fipa-cp-clone
  7015. -floop-interchange
  7016. -floop-unroll-and-jam
  7017. -fpeel-loops
  7018. -fpredictive-commoning
  7019. -fsplit-loops
  7020. -fsplit-paths
  7021. -ftree-loop-distribution
  7022. -ftree-loop-vectorize
  7023. -ftree-partial-pre
  7024. -ftree-slp-vectorize
  7025. -funswitch-loops
  7026. -fvect-cost-model
  7027. -fvect-cost-model=dynamic
  7028. -fversion-loops-for-strides
  7029. '-O0'
  7030. Reduce compilation time and make debugging produce the expected
  7031. results. This is the default.
  7032. '-Os'
  7033. Optimize for size. '-Os' enables all '-O2' optimizations except
  7034. those that often increase code size:
  7035. -falign-functions -falign-jumps
  7036. -falign-labels -falign-loops
  7037. -fprefetch-loop-arrays -freorder-blocks-algorithm=stc
  7038. It also enables '-finline-functions', causes the compiler to tune
  7039. for code size rather than execution speed, and performs further
  7040. optimizations designed to reduce code size.
  7041. '-Ofast'
  7042. Disregard strict standards compliance. '-Ofast' enables all '-O3'
  7043. optimizations. It also enables optimizations that are not valid
  7044. for all standard-compliant programs. It turns on '-ffast-math',
  7045. '-fallow-store-data-races' and the Fortran-specific
  7046. '-fstack-arrays', unless '-fmax-stack-var-size' is specified, and
  7047. '-fno-protect-parens'.
  7048. '-Og'
  7049. Optimize debugging experience. '-Og' should be the optimization
  7050. level of choice for the standard edit-compile-debug cycle, offering
  7051. a reasonable level of optimization while maintaining fast
  7052. compilation and a good debugging experience. It is a better choice
  7053. than '-O0' for producing debuggable code because some compiler
  7054. passes that collect debug information are disabled at '-O0'.
  7055. Like '-O0', '-Og' completely disables a number of optimization
  7056. passes so that individual options controlling them have no effect.
  7057. Otherwise '-Og' enables all '-O1' optimization flags except for
  7058. those that may interfere with debugging:
  7059. -fbranch-count-reg -fdelayed-branch
  7060. -fdse -fif-conversion -fif-conversion2
  7061. -finline-functions-called-once
  7062. -fmove-loop-invariants -fssa-phiopt
  7063. -ftree-bit-ccp -ftree-dse -ftree-pta -ftree-sra
  7064. If you use multiple '-O' options, with or without level numbers, the
  7065. last such option is the one that is effective.
  7066. Options of the form '-fFLAG' specify machine-independent flags. Most
  7067. flags have both positive and negative forms; the negative form of
  7068. '-ffoo' is '-fno-foo'. In the table below, only one of the forms is
  7069. listed--the one you typically use. You can figure out the other form by
  7070. either removing 'no-' or adding it.
  7071. The following options control specific optimizations. They are either
  7072. activated by '-O' options or are related to ones that are. You can use
  7073. the following flags in the rare cases when "fine-tuning" of
  7074. optimizations to be performed is desired.
  7075. '-fno-defer-pop'
  7076. For machines that must pop arguments after a function call, always
  7077. pop the arguments as soon as each function returns. At levels
  7078. '-O1' and higher, '-fdefer-pop' is the default; this allows the
  7079. compiler to let arguments accumulate on the stack for several
  7080. function calls and pop them all at once.
  7081. '-fforward-propagate'
  7082. Perform a forward propagation pass on RTL. The pass tries to
  7083. combine two instructions and checks if the result can be
  7084. simplified. If loop unrolling is active, two passes are performed
  7085. and the second is scheduled after loop unrolling.
  7086. This option is enabled by default at optimization levels '-O',
  7087. '-O2', '-O3', '-Os'.
  7088. '-ffp-contract=STYLE'
  7089. '-ffp-contract=off' disables floating-point expression contraction.
  7090. '-ffp-contract=fast' enables floating-point expression contraction
  7091. such as forming of fused multiply-add operations if the target has
  7092. native support for them. '-ffp-contract=on' enables floating-point
  7093. expression contraction if allowed by the language standard. This
  7094. is currently not implemented and treated equal to
  7095. '-ffp-contract=off'.
  7096. The default is '-ffp-contract=fast'.
  7097. '-fomit-frame-pointer'
  7098. Omit the frame pointer in functions that don't need one. This
  7099. avoids the instructions to save, set up and restore the frame
  7100. pointer; on many targets it also makes an extra register available.
  7101. On some targets this flag has no effect because the standard
  7102. calling sequence always uses a frame pointer, so it cannot be
  7103. omitted.
  7104. Note that '-fno-omit-frame-pointer' doesn't guarantee the frame
  7105. pointer is used in all functions. Several targets always omit the
  7106. frame pointer in leaf functions.
  7107. Enabled by default at '-O' and higher.
  7108. '-foptimize-sibling-calls'
  7109. Optimize sibling and tail recursive calls.
  7110. Enabled at levels '-O2', '-O3', '-Os'.
  7111. '-foptimize-strlen'
  7112. Optimize various standard C string functions (e.g. 'strlen',
  7113. 'strchr' or 'strcpy') and their '_FORTIFY_SOURCE' counterparts into
  7114. faster alternatives.
  7115. Enabled at levels '-O2', '-O3'.
  7116. '-fno-inline'
  7117. Do not expand any functions inline apart from those marked with the
  7118. 'always_inline' attribute. This is the default when not
  7119. optimizing.
  7120. Single functions can be exempted from inlining by marking them with
  7121. the 'noinline' attribute.
  7122. '-finline-small-functions'
  7123. Integrate functions into their callers when their body is smaller
  7124. than expected function call code (so overall size of program gets
  7125. smaller). The compiler heuristically decides which functions are
  7126. simple enough to be worth integrating in this way. This inlining
  7127. applies to all functions, even those not declared inline.
  7128. Enabled at levels '-O2', '-O3', '-Os'.
  7129. '-findirect-inlining'
  7130. Inline also indirect calls that are discovered to be known at
  7131. compile time thanks to previous inlining. This option has any
  7132. effect only when inlining itself is turned on by the
  7133. '-finline-functions' or '-finline-small-functions' options.
  7134. Enabled at levels '-O2', '-O3', '-Os'.
  7135. '-finline-functions'
  7136. Consider all functions for inlining, even if they are not declared
  7137. inline. The compiler heuristically decides which functions are
  7138. worth integrating in this way.
  7139. If all calls to a given function are integrated, and the function
  7140. is declared 'static', then the function is normally not output as
  7141. assembler code in its own right.
  7142. Enabled at levels '-O2', '-O3', '-Os'. Also enabled by
  7143. '-fprofile-use' and '-fauto-profile'.
  7144. '-finline-functions-called-once'
  7145. Consider all 'static' functions called once for inlining into their
  7146. caller even if they are not marked 'inline'. If a call to a given
  7147. function is integrated, then the function is not output as
  7148. assembler code in its own right.
  7149. Enabled at levels '-O1', '-O2', '-O3' and '-Os', but not '-Og'.
  7150. '-fearly-inlining'
  7151. Inline functions marked by 'always_inline' and functions whose body
  7152. seems smaller than the function call overhead early before doing
  7153. '-fprofile-generate' instrumentation and real inlining pass. Doing
  7154. so makes profiling significantly cheaper and usually inlining
  7155. faster on programs having large chains of nested wrapper functions.
  7156. Enabled by default.
  7157. '-fipa-sra'
  7158. Perform interprocedural scalar replacement of aggregates, removal
  7159. of unused parameters and replacement of parameters passed by
  7160. reference by parameters passed by value.
  7161. Enabled at levels '-O2', '-O3' and '-Os'.
  7162. '-finline-limit=N'
  7163. By default, GCC limits the size of functions that can be inlined.
  7164. This flag allows coarse control of this limit. N is the size of
  7165. functions that can be inlined in number of pseudo instructions.
  7166. Inlining is actually controlled by a number of parameters, which
  7167. may be specified individually by using '--param NAME=VALUE'. The
  7168. '-finline-limit=N' option sets some of these parameters as follows:
  7169. 'max-inline-insns-single'
  7170. is set to N/2.
  7171. 'max-inline-insns-auto'
  7172. is set to N/2.
  7173. See below for a documentation of the individual parameters
  7174. controlling inlining and for the defaults of these parameters.
  7175. _Note:_ there may be no value to '-finline-limit' that results in
  7176. default behavior.
  7177. _Note:_ pseudo instruction represents, in this particular context,
  7178. an abstract measurement of function's size. In no way does it
  7179. represent a count of assembly instructions and as such its exact
  7180. meaning might change from one release to an another.
  7181. '-fno-keep-inline-dllexport'
  7182. This is a more fine-grained version of '-fkeep-inline-functions',
  7183. which applies only to functions that are declared using the
  7184. 'dllexport' attribute or declspec. *Note Declaring Attributes of
  7185. Functions: Function Attributes.
  7186. '-fkeep-inline-functions'
  7187. In C, emit 'static' functions that are declared 'inline' into the
  7188. object file, even if the function has been inlined into all of its
  7189. callers. This switch does not affect functions using the 'extern
  7190. inline' extension in GNU C90. In C++, emit any and all inline
  7191. functions into the object file.
  7192. '-fkeep-static-functions'
  7193. Emit 'static' functions into the object file, even if the function
  7194. is never used.
  7195. '-fkeep-static-consts'
  7196. Emit variables declared 'static const' when optimization isn't
  7197. turned on, even if the variables aren't referenced.
  7198. GCC enables this option by default. If you want to force the
  7199. compiler to check if a variable is referenced, regardless of
  7200. whether or not optimization is turned on, use the
  7201. '-fno-keep-static-consts' option.
  7202. '-fmerge-constants'
  7203. Attempt to merge identical constants (string constants and
  7204. floating-point constants) across compilation units.
  7205. This option is the default for optimized compilation if the
  7206. assembler and linker support it. Use '-fno-merge-constants' to
  7207. inhibit this behavior.
  7208. Enabled at levels '-O', '-O2', '-O3', '-Os'.
  7209. '-fmerge-all-constants'
  7210. Attempt to merge identical constants and identical variables.
  7211. This option implies '-fmerge-constants'. In addition to
  7212. '-fmerge-constants' this considers e.g. even constant initialized
  7213. arrays or initialized constant variables with integral or
  7214. floating-point types. Languages like C or C++ require each
  7215. variable, including multiple instances of the same variable in
  7216. recursive calls, to have distinct locations, so using this option
  7217. results in non-conforming behavior.
  7218. '-fmodulo-sched'
  7219. Perform swing modulo scheduling immediately before the first
  7220. scheduling pass. This pass looks at innermost loops and reorders
  7221. their instructions by overlapping different iterations.
  7222. '-fmodulo-sched-allow-regmoves'
  7223. Perform more aggressive SMS-based modulo scheduling with register
  7224. moves allowed. By setting this flag certain anti-dependences edges
  7225. are deleted, which triggers the generation of reg-moves based on
  7226. the life-range analysis. This option is effective only with
  7227. '-fmodulo-sched' enabled.
  7228. '-fno-branch-count-reg'
  7229. Disable the optimization pass that scans for opportunities to use
  7230. "decrement and branch" instructions on a count register instead of
  7231. instruction sequences that decrement a register, compare it against
  7232. zero, and then branch based upon the result. This option is only
  7233. meaningful on architectures that support such instructions, which
  7234. include x86, PowerPC, IA-64 and S/390. Note that the
  7235. '-fno-branch-count-reg' option doesn't remove the decrement and
  7236. branch instructions from the generated instruction stream
  7237. introduced by other optimization passes.
  7238. The default is '-fbranch-count-reg' at '-O1' and higher, except for
  7239. '-Og'.
  7240. '-fno-function-cse'
  7241. Do not put function addresses in registers; make each instruction
  7242. that calls a constant function contain the function's address
  7243. explicitly.
  7244. This option results in less efficient code, but some strange hacks
  7245. that alter the assembler output may be confused by the
  7246. optimizations performed when this option is not used.
  7247. The default is '-ffunction-cse'
  7248. '-fno-zero-initialized-in-bss'
  7249. If the target supports a BSS section, GCC by default puts variables
  7250. that are initialized to zero into BSS. This can save space in the
  7251. resulting code.
  7252. This option turns off this behavior because some programs
  7253. explicitly rely on variables going to the data section--e.g., so
  7254. that the resulting executable can find the beginning of that
  7255. section and/or make assumptions based on that.
  7256. The default is '-fzero-initialized-in-bss'.
  7257. '-fthread-jumps'
  7258. Perform optimizations that check to see if a jump branches to a
  7259. location where another comparison subsumed by the first is found.
  7260. If so, the first branch is redirected to either the destination of
  7261. the second branch or a point immediately following it, depending on
  7262. whether the condition is known to be true or false.
  7263. Enabled at levels '-O2', '-O3', '-Os'.
  7264. '-fsplit-wide-types'
  7265. When using a type that occupies multiple registers, such as 'long
  7266. long' on a 32-bit system, split the registers apart and allocate
  7267. them independently. This normally generates better code for those
  7268. types, but may make debugging more difficult.
  7269. Enabled at levels '-O', '-O2', '-O3', '-Os'.
  7270. '-fsplit-wide-types-early'
  7271. Fully split wide types early, instead of very late. This option
  7272. has no effect unless '-fsplit-wide-types' is turned on.
  7273. This is the default on some targets.
  7274. '-fcse-follow-jumps'
  7275. In common subexpression elimination (CSE), scan through jump
  7276. instructions when the target of the jump is not reached by any
  7277. other path. For example, when CSE encounters an 'if' statement
  7278. with an 'else' clause, CSE follows the jump when the condition
  7279. tested is false.
  7280. Enabled at levels '-O2', '-O3', '-Os'.
  7281. '-fcse-skip-blocks'
  7282. This is similar to '-fcse-follow-jumps', but causes CSE to follow
  7283. jumps that conditionally skip over blocks. When CSE encounters a
  7284. simple 'if' statement with no else clause, '-fcse-skip-blocks'
  7285. causes CSE to follow the jump around the body of the 'if'.
  7286. Enabled at levels '-O2', '-O3', '-Os'.
  7287. '-frerun-cse-after-loop'
  7288. Re-run common subexpression elimination after loop optimizations
  7289. are performed.
  7290. Enabled at levels '-O2', '-O3', '-Os'.
  7291. '-fgcse'
  7292. Perform a global common subexpression elimination pass. This pass
  7293. also performs global constant and copy propagation.
  7294. _Note:_ When compiling a program using computed gotos, a GCC
  7295. extension, you may get better run-time performance if you disable
  7296. the global common subexpression elimination pass by adding
  7297. '-fno-gcse' to the command line.
  7298. Enabled at levels '-O2', '-O3', '-Os'.
  7299. '-fgcse-lm'
  7300. When '-fgcse-lm' is enabled, global common subexpression
  7301. elimination attempts to move loads that are only killed by stores
  7302. into themselves. This allows a loop containing a load/store
  7303. sequence to be changed to a load outside the loop, and a copy/store
  7304. within the loop.
  7305. Enabled by default when '-fgcse' is enabled.
  7306. '-fgcse-sm'
  7307. When '-fgcse-sm' is enabled, a store motion pass is run after
  7308. global common subexpression elimination. This pass attempts to
  7309. move stores out of loops. When used in conjunction with
  7310. '-fgcse-lm', loops containing a load/store sequence can be changed
  7311. to a load before the loop and a store after the loop.
  7312. Not enabled at any optimization level.
  7313. '-fgcse-las'
  7314. When '-fgcse-las' is enabled, the global common subexpression
  7315. elimination pass eliminates redundant loads that come after stores
  7316. to the same memory location (both partial and full redundancies).
  7317. Not enabled at any optimization level.
  7318. '-fgcse-after-reload'
  7319. When '-fgcse-after-reload' is enabled, a redundant load elimination
  7320. pass is performed after reload. The purpose of this pass is to
  7321. clean up redundant spilling.
  7322. Enabled by '-fprofile-use' and '-fauto-profile'.
  7323. '-faggressive-loop-optimizations'
  7324. This option tells the loop optimizer to use language constraints to
  7325. derive bounds for the number of iterations of a loop. This assumes
  7326. that loop code does not invoke undefined behavior by for example
  7327. causing signed integer overflows or out-of-bound array accesses.
  7328. The bounds for the number of iterations of a loop are used to guide
  7329. loop unrolling and peeling and loop exit test optimizations. This
  7330. option is enabled by default.
  7331. '-funconstrained-commons'
  7332. This option tells the compiler that variables declared in common
  7333. blocks (e.g. Fortran) may later be overridden with longer trailing
  7334. arrays. This prevents certain optimizations that depend on knowing
  7335. the array bounds.
  7336. '-fcrossjumping'
  7337. Perform cross-jumping transformation. This transformation unifies
  7338. equivalent code and saves code size. The resulting code may or may
  7339. not perform better than without cross-jumping.
  7340. Enabled at levels '-O2', '-O3', '-Os'.
  7341. '-fauto-inc-dec'
  7342. Combine increments or decrements of addresses with memory accesses.
  7343. This pass is always skipped on architectures that do not have
  7344. instructions to support this. Enabled by default at '-O' and
  7345. higher on architectures that support this.
  7346. '-fdce'
  7347. Perform dead code elimination (DCE) on RTL. Enabled by default at
  7348. '-O' and higher.
  7349. '-fdse'
  7350. Perform dead store elimination (DSE) on RTL. Enabled by default at
  7351. '-O' and higher.
  7352. '-fif-conversion'
  7353. Attempt to transform conditional jumps into branch-less
  7354. equivalents. This includes use of conditional moves, min, max, set
  7355. flags and abs instructions, and some tricks doable by standard
  7356. arithmetics. The use of conditional execution on chips where it is
  7357. available is controlled by '-fif-conversion2'.
  7358. Enabled at levels '-O', '-O2', '-O3', '-Os', but not with '-Og'.
  7359. '-fif-conversion2'
  7360. Use conditional execution (where available) to transform
  7361. conditional jumps into branch-less equivalents.
  7362. Enabled at levels '-O', '-O2', '-O3', '-Os', but not with '-Og'.
  7363. '-fdeclone-ctor-dtor'
  7364. The C++ ABI requires multiple entry points for constructors and
  7365. destructors: one for a base subobject, one for a complete object,
  7366. and one for a virtual destructor that calls operator delete
  7367. afterwards. For a hierarchy with virtual bases, the base and
  7368. complete variants are clones, which means two copies of the
  7369. function. With this option, the base and complete variants are
  7370. changed to be thunks that call a common implementation.
  7371. Enabled by '-Os'.
  7372. '-fdelete-null-pointer-checks'
  7373. Assume that programs cannot safely dereference null pointers, and
  7374. that no code or data element resides at address zero. This option
  7375. enables simple constant folding optimizations at all optimization
  7376. levels. In addition, other optimization passes in GCC use this
  7377. flag to control global dataflow analyses that eliminate useless
  7378. checks for null pointers; these assume that a memory access to
  7379. address zero always results in a trap, so that if a pointer is
  7380. checked after it has already been dereferenced, it cannot be null.
  7381. Note however that in some environments this assumption is not true.
  7382. Use '-fno-delete-null-pointer-checks' to disable this optimization
  7383. for programs that depend on that behavior.
  7384. This option is enabled by default on most targets. On Nios II ELF,
  7385. it defaults to off. On AVR, CR16, and MSP430, this option is
  7386. completely disabled.
  7387. Passes that use the dataflow information are enabled independently
  7388. at different optimization levels.
  7389. '-fdevirtualize'
  7390. Attempt to convert calls to virtual functions to direct calls.
  7391. This is done both within a procedure and interprocedurally as part
  7392. of indirect inlining ('-findirect-inlining') and interprocedural
  7393. constant propagation ('-fipa-cp'). Enabled at levels '-O2', '-O3',
  7394. '-Os'.
  7395. '-fdevirtualize-speculatively'
  7396. Attempt to convert calls to virtual functions to speculative direct
  7397. calls. Based on the analysis of the type inheritance graph,
  7398. determine for a given call the set of likely targets. If the set
  7399. is small, preferably of size 1, change the call into a conditional
  7400. deciding between direct and indirect calls. The speculative calls
  7401. enable more optimizations, such as inlining. When they seem
  7402. useless after further optimization, they are converted back into
  7403. original form.
  7404. '-fdevirtualize-at-ltrans'
  7405. Stream extra information needed for aggressive devirtualization
  7406. when running the link-time optimizer in local transformation mode.
  7407. This option enables more devirtualization but significantly
  7408. increases the size of streamed data. For this reason it is
  7409. disabled by default.
  7410. '-fexpensive-optimizations'
  7411. Perform a number of minor optimizations that are relatively
  7412. expensive.
  7413. Enabled at levels '-O2', '-O3', '-Os'.
  7414. '-free'
  7415. Attempt to remove redundant extension instructions. This is
  7416. especially helpful for the x86-64 architecture, which implicitly
  7417. zero-extends in 64-bit registers after writing to their lower
  7418. 32-bit half.
  7419. Enabled for Alpha, AArch64 and x86 at levels '-O2', '-O3', '-Os'.
  7420. '-fno-lifetime-dse'
  7421. In C++ the value of an object is only affected by changes within
  7422. its lifetime: when the constructor begins, the object has an
  7423. indeterminate value, and any changes during the lifetime of the
  7424. object are dead when the object is destroyed. Normally dead store
  7425. elimination will take advantage of this; if your code relies on the
  7426. value of the object storage persisting beyond the lifetime of the
  7427. object, you can use this flag to disable this optimization. To
  7428. preserve stores before the constructor starts (e.g. because your
  7429. operator new clears the object storage) but still treat the object
  7430. as dead after the destructor, you can use '-flifetime-dse=1'. The
  7431. default behavior can be explicitly selected with
  7432. '-flifetime-dse=2'. '-flifetime-dse=0' is equivalent to
  7433. '-fno-lifetime-dse'.
  7434. '-flive-range-shrinkage'
  7435. Attempt to decrease register pressure through register live range
  7436. shrinkage. This is helpful for fast processors with small or
  7437. moderate size register sets.
  7438. '-fira-algorithm=ALGORITHM'
  7439. Use the specified coloring algorithm for the integrated register
  7440. allocator. The ALGORITHM argument can be 'priority', which
  7441. specifies Chow's priority coloring, or 'CB', which specifies
  7442. Chaitin-Briggs coloring. Chaitin-Briggs coloring is not
  7443. implemented for all architectures, but for those targets that do
  7444. support it, it is the default because it generates better code.
  7445. '-fira-region=REGION'
  7446. Use specified regions for the integrated register allocator. The
  7447. REGION argument should be one of the following:
  7448. 'all'
  7449. Use all loops as register allocation regions. This can give
  7450. the best results for machines with a small and/or irregular
  7451. register set.
  7452. 'mixed'
  7453. Use all loops except for loops with small register pressure as
  7454. the regions. This value usually gives the best results in
  7455. most cases and for most architectures, and is enabled by
  7456. default when compiling with optimization for speed ('-O',
  7457. '-O2', ...).
  7458. 'one'
  7459. Use all functions as a single region. This typically results
  7460. in the smallest code size, and is enabled by default for '-Os'
  7461. or '-O0'.
  7462. '-fira-hoist-pressure'
  7463. Use IRA to evaluate register pressure in the code hoisting pass for
  7464. decisions to hoist expressions. This option usually results in
  7465. smaller code, but it can slow the compiler down.
  7466. This option is enabled at level '-Os' for all targets.
  7467. '-fira-loop-pressure'
  7468. Use IRA to evaluate register pressure in loops for decisions to
  7469. move loop invariants. This option usually results in generation of
  7470. faster and smaller code on machines with large register files (>=
  7471. 32 registers), but it can slow the compiler down.
  7472. This option is enabled at level '-O3' for some targets.
  7473. '-fno-ira-share-save-slots'
  7474. Disable sharing of stack slots used for saving call-used hard
  7475. registers living through a call. Each hard register gets a
  7476. separate stack slot, and as a result function stack frames are
  7477. larger.
  7478. '-fno-ira-share-spill-slots'
  7479. Disable sharing of stack slots allocated for pseudo-registers.
  7480. Each pseudo-register that does not get a hard register gets a
  7481. separate stack slot, and as a result function stack frames are
  7482. larger.
  7483. '-flra-remat'
  7484. Enable CFG-sensitive rematerialization in LRA. Instead of loading
  7485. values of spilled pseudos, LRA tries to rematerialize (recalculate)
  7486. values if it is profitable.
  7487. Enabled at levels '-O2', '-O3', '-Os'.
  7488. '-fdelayed-branch'
  7489. If supported for the target machine, attempt to reorder
  7490. instructions to exploit instruction slots available after delayed
  7491. branch instructions.
  7492. Enabled at levels '-O', '-O2', '-O3', '-Os', but not at '-Og'.
  7493. '-fschedule-insns'
  7494. If supported for the target machine, attempt to reorder
  7495. instructions to eliminate execution stalls due to required data
  7496. being unavailable. This helps machines that have slow floating
  7497. point or memory load instructions by allowing other instructions to
  7498. be issued until the result of the load or floating-point
  7499. instruction is required.
  7500. Enabled at levels '-O2', '-O3'.
  7501. '-fschedule-insns2'
  7502. Similar to '-fschedule-insns', but requests an additional pass of
  7503. instruction scheduling after register allocation has been done.
  7504. This is especially useful on machines with a relatively small
  7505. number of registers and where memory load instructions take more
  7506. than one cycle.
  7507. Enabled at levels '-O2', '-O3', '-Os'.
  7508. '-fno-sched-interblock'
  7509. Disable instruction scheduling across basic blocks, which is
  7510. normally enabled when scheduling before register allocation, i.e.
  7511. with '-fschedule-insns' or at '-O2' or higher.
  7512. '-fno-sched-spec'
  7513. Disable speculative motion of non-load instructions, which is
  7514. normally enabled when scheduling before register allocation, i.e.
  7515. with '-fschedule-insns' or at '-O2' or higher.
  7516. '-fsched-pressure'
  7517. Enable register pressure sensitive insn scheduling before register
  7518. allocation. This only makes sense when scheduling before register
  7519. allocation is enabled, i.e. with '-fschedule-insns' or at '-O2' or
  7520. higher. Usage of this option can improve the generated code and
  7521. decrease its size by preventing register pressure increase above
  7522. the number of available hard registers and subsequent spills in
  7523. register allocation.
  7524. '-fsched-spec-load'
  7525. Allow speculative motion of some load instructions. This only
  7526. makes sense when scheduling before register allocation, i.e. with
  7527. '-fschedule-insns' or at '-O2' or higher.
  7528. '-fsched-spec-load-dangerous'
  7529. Allow speculative motion of more load instructions. This only
  7530. makes sense when scheduling before register allocation, i.e. with
  7531. '-fschedule-insns' or at '-O2' or higher.
  7532. '-fsched-stalled-insns'
  7533. '-fsched-stalled-insns=N'
  7534. Define how many insns (if any) can be moved prematurely from the
  7535. queue of stalled insns into the ready list during the second
  7536. scheduling pass. '-fno-sched-stalled-insns' means that no insns
  7537. are moved prematurely, '-fsched-stalled-insns=0' means there is no
  7538. limit on how many queued insns can be moved prematurely.
  7539. '-fsched-stalled-insns' without a value is equivalent to
  7540. '-fsched-stalled-insns=1'.
  7541. '-fsched-stalled-insns-dep'
  7542. '-fsched-stalled-insns-dep=N'
  7543. Define how many insn groups (cycles) are examined for a dependency
  7544. on a stalled insn that is a candidate for premature removal from
  7545. the queue of stalled insns. This has an effect only during the
  7546. second scheduling pass, and only if '-fsched-stalled-insns' is
  7547. used. '-fno-sched-stalled-insns-dep' is equivalent to
  7548. '-fsched-stalled-insns-dep=0'. '-fsched-stalled-insns-dep' without
  7549. a value is equivalent to '-fsched-stalled-insns-dep=1'.
  7550. '-fsched2-use-superblocks'
  7551. When scheduling after register allocation, use superblock
  7552. scheduling. This allows motion across basic block boundaries,
  7553. resulting in faster schedules. This option is experimental, as not
  7554. all machine descriptions used by GCC model the CPU closely enough
  7555. to avoid unreliable results from the algorithm.
  7556. This only makes sense when scheduling after register allocation,
  7557. i.e. with '-fschedule-insns2' or at '-O2' or higher.
  7558. '-fsched-group-heuristic'
  7559. Enable the group heuristic in the scheduler. This heuristic favors
  7560. the instruction that belongs to a schedule group. This is enabled
  7561. by default when scheduling is enabled, i.e. with '-fschedule-insns'
  7562. or '-fschedule-insns2' or at '-O2' or higher.
  7563. '-fsched-critical-path-heuristic'
  7564. Enable the critical-path heuristic in the scheduler. This
  7565. heuristic favors instructions on the critical path. This is
  7566. enabled by default when scheduling is enabled, i.e. with
  7567. '-fschedule-insns' or '-fschedule-insns2' or at '-O2' or higher.
  7568. '-fsched-spec-insn-heuristic'
  7569. Enable the speculative instruction heuristic in the scheduler.
  7570. This heuristic favors speculative instructions with greater
  7571. dependency weakness. This is enabled by default when scheduling is
  7572. enabled, i.e. with '-fschedule-insns' or '-fschedule-insns2' or at
  7573. '-O2' or higher.
  7574. '-fsched-rank-heuristic'
  7575. Enable the rank heuristic in the scheduler. This heuristic favors
  7576. the instruction belonging to a basic block with greater size or
  7577. frequency. This is enabled by default when scheduling is enabled,
  7578. i.e. with '-fschedule-insns' or '-fschedule-insns2' or at '-O2' or
  7579. higher.
  7580. '-fsched-last-insn-heuristic'
  7581. Enable the last-instruction heuristic in the scheduler. This
  7582. heuristic favors the instruction that is less dependent on the last
  7583. instruction scheduled. This is enabled by default when scheduling
  7584. is enabled, i.e. with '-fschedule-insns' or '-fschedule-insns2' or
  7585. at '-O2' or higher.
  7586. '-fsched-dep-count-heuristic'
  7587. Enable the dependent-count heuristic in the scheduler. This
  7588. heuristic favors the instruction that has more instructions
  7589. depending on it. This is enabled by default when scheduling is
  7590. enabled, i.e. with '-fschedule-insns' or '-fschedule-insns2' or at
  7591. '-O2' or higher.
  7592. '-freschedule-modulo-scheduled-loops'
  7593. Modulo scheduling is performed before traditional scheduling. If a
  7594. loop is modulo scheduled, later scheduling passes may change its
  7595. schedule. Use this option to control that behavior.
  7596. '-fselective-scheduling'
  7597. Schedule instructions using selective scheduling algorithm.
  7598. Selective scheduling runs instead of the first scheduler pass.
  7599. '-fselective-scheduling2'
  7600. Schedule instructions using selective scheduling algorithm.
  7601. Selective scheduling runs instead of the second scheduler pass.
  7602. '-fsel-sched-pipelining'
  7603. Enable software pipelining of innermost loops during selective
  7604. scheduling. This option has no effect unless one of
  7605. '-fselective-scheduling' or '-fselective-scheduling2' is turned on.
  7606. '-fsel-sched-pipelining-outer-loops'
  7607. When pipelining loops during selective scheduling, also pipeline
  7608. outer loops. This option has no effect unless
  7609. '-fsel-sched-pipelining' is turned on.
  7610. '-fsemantic-interposition'
  7611. Some object formats, like ELF, allow interposing of symbols by the
  7612. dynamic linker. This means that for symbols exported from the DSO,
  7613. the compiler cannot perform interprocedural propagation, inlining
  7614. and other optimizations in anticipation that the function or
  7615. variable in question may change. While this feature is useful, for
  7616. example, to rewrite memory allocation functions by a debugging
  7617. implementation, it is expensive in the terms of code quality. With
  7618. '-fno-semantic-interposition' the compiler assumes that if
  7619. interposition happens for functions the overwriting function will
  7620. have precisely the same semantics (and side effects). Similarly if
  7621. interposition happens for variables, the constructor of the
  7622. variable will be the same. The flag has no effect for functions
  7623. explicitly declared inline (where it is never allowed for
  7624. interposition to change semantics) and for symbols explicitly
  7625. declared weak.
  7626. '-fshrink-wrap'
  7627. Emit function prologues only before parts of the function that need
  7628. it, rather than at the top of the function. This flag is enabled
  7629. by default at '-O' and higher.
  7630. '-fshrink-wrap-separate'
  7631. Shrink-wrap separate parts of the prologue and epilogue separately,
  7632. so that those parts are only executed when needed. This option is
  7633. on by default, but has no effect unless '-fshrink-wrap' is also
  7634. turned on and the target supports this.
  7635. '-fcaller-saves'
  7636. Enable allocation of values to registers that are clobbered by
  7637. function calls, by emitting extra instructions to save and restore
  7638. the registers around such calls. Such allocation is done only when
  7639. it seems to result in better code.
  7640. This option is always enabled by default on certain machines,
  7641. usually those which have no call-preserved registers to use
  7642. instead.
  7643. Enabled at levels '-O2', '-O3', '-Os'.
  7644. '-fcombine-stack-adjustments'
  7645. Tracks stack adjustments (pushes and pops) and stack memory
  7646. references and then tries to find ways to combine them.
  7647. Enabled by default at '-O1' and higher.
  7648. '-fipa-ra'
  7649. Use caller save registers for allocation if those registers are not
  7650. used by any called function. In that case it is not necessary to
  7651. save and restore them around calls. This is only possible if
  7652. called functions are part of same compilation unit as current
  7653. function and they are compiled before it.
  7654. Enabled at levels '-O2', '-O3', '-Os', however the option is
  7655. disabled if generated code will be instrumented for profiling
  7656. ('-p', or '-pg') or if callee's register usage cannot be known
  7657. exactly (this happens on targets that do not expose prologues and
  7658. epilogues in RTL).
  7659. '-fconserve-stack'
  7660. Attempt to minimize stack usage. The compiler attempts to use less
  7661. stack space, even if that makes the program slower. This option
  7662. implies setting the 'large-stack-frame' parameter to 100 and the
  7663. 'large-stack-frame-growth' parameter to 400.
  7664. '-ftree-reassoc'
  7665. Perform reassociation on trees. This flag is enabled by default at
  7666. '-O' and higher.
  7667. '-fcode-hoisting'
  7668. Perform code hoisting. Code hoisting tries to move the evaluation
  7669. of expressions executed on all paths to the function exit as early
  7670. as possible. This is especially useful as a code size
  7671. optimization, but it often helps for code speed as well. This flag
  7672. is enabled by default at '-O2' and higher.
  7673. '-ftree-pre'
  7674. Perform partial redundancy elimination (PRE) on trees. This flag
  7675. is enabled by default at '-O2' and '-O3'.
  7676. '-ftree-partial-pre'
  7677. Make partial redundancy elimination (PRE) more aggressive. This
  7678. flag is enabled by default at '-O3'.
  7679. '-ftree-forwprop'
  7680. Perform forward propagation on trees. This flag is enabled by
  7681. default at '-O' and higher.
  7682. '-ftree-fre'
  7683. Perform full redundancy elimination (FRE) on trees. The difference
  7684. between FRE and PRE is that FRE only considers expressions that are
  7685. computed on all paths leading to the redundant computation. This
  7686. analysis is faster than PRE, though it exposes fewer redundancies.
  7687. This flag is enabled by default at '-O' and higher.
  7688. '-ftree-phiprop'
  7689. Perform hoisting of loads from conditional pointers on trees. This
  7690. pass is enabled by default at '-O' and higher.
  7691. '-fhoist-adjacent-loads'
  7692. Speculatively hoist loads from both branches of an if-then-else if
  7693. the loads are from adjacent locations in the same structure and the
  7694. target architecture has a conditional move instruction. This flag
  7695. is enabled by default at '-O2' and higher.
  7696. '-ftree-copy-prop'
  7697. Perform copy propagation on trees. This pass eliminates
  7698. unnecessary copy operations. This flag is enabled by default at
  7699. '-O' and higher.
  7700. '-fipa-pure-const'
  7701. Discover which functions are pure or constant. Enabled by default
  7702. at '-O' and higher.
  7703. '-fipa-reference'
  7704. Discover which static variables do not escape the compilation unit.
  7705. Enabled by default at '-O' and higher.
  7706. '-fipa-reference-addressable'
  7707. Discover read-only, write-only and non-addressable static
  7708. variables. Enabled by default at '-O' and higher.
  7709. '-fipa-stack-alignment'
  7710. Reduce stack alignment on call sites if possible. Enabled by
  7711. default.
  7712. '-fipa-pta'
  7713. Perform interprocedural pointer analysis and interprocedural
  7714. modification and reference analysis. This option can cause
  7715. excessive memory and compile-time usage on large compilation units.
  7716. It is not enabled by default at any optimization level.
  7717. '-fipa-profile'
  7718. Perform interprocedural profile propagation. The functions called
  7719. only from cold functions are marked as cold. Also functions
  7720. executed once (such as 'cold', 'noreturn', static constructors or
  7721. destructors) are identified. Cold functions and loop less parts of
  7722. functions executed once are then optimized for size. Enabled by
  7723. default at '-O' and higher.
  7724. '-fipa-cp'
  7725. Perform interprocedural constant propagation. This optimization
  7726. analyzes the program to determine when values passed to functions
  7727. are constants and then optimizes accordingly. This optimization
  7728. can substantially increase performance if the application has
  7729. constants passed to functions. This flag is enabled by default at
  7730. '-O2', '-Os' and '-O3'. It is also enabled by '-fprofile-use' and
  7731. '-fauto-profile'.
  7732. '-fipa-cp-clone'
  7733. Perform function cloning to make interprocedural constant
  7734. propagation stronger. When enabled, interprocedural constant
  7735. propagation performs function cloning when externally visible
  7736. function can be called with constant arguments. Because this
  7737. optimization can create multiple copies of functions, it may
  7738. significantly increase code size (see '--param
  7739. ipcp-unit-growth=VALUE'). This flag is enabled by default at
  7740. '-O3'. It is also enabled by '-fprofile-use' and '-fauto-profile'.
  7741. '-fipa-bit-cp'
  7742. When enabled, perform interprocedural bitwise constant propagation.
  7743. This flag is enabled by default at '-O2' and by '-fprofile-use' and
  7744. '-fauto-profile'. It requires that '-fipa-cp' is enabled.
  7745. '-fipa-vrp'
  7746. When enabled, perform interprocedural propagation of value ranges.
  7747. This flag is enabled by default at '-O2'. It requires that
  7748. '-fipa-cp' is enabled.
  7749. '-fipa-icf'
  7750. Perform Identical Code Folding for functions and read-only
  7751. variables. The optimization reduces code size and may disturb
  7752. unwind stacks by replacing a function by equivalent one with a
  7753. different name. The optimization works more effectively with
  7754. link-time optimization enabled.
  7755. Although the behavior is similar to the Gold Linker's ICF
  7756. optimization, GCC ICF works on different levels and thus the
  7757. optimizations are not same - there are equivalences that are found
  7758. only by GCC and equivalences found only by Gold.
  7759. This flag is enabled by default at '-O2' and '-Os'.
  7760. '-flive-patching=LEVEL'
  7761. Control GCC's optimizations to produce output suitable for
  7762. live-patching.
  7763. If the compiler's optimization uses a function's body or
  7764. information extracted from its body to optimize/change another
  7765. function, the latter is called an impacted function of the former.
  7766. If a function is patched, its impacted functions should be patched
  7767. too.
  7768. The impacted functions are determined by the compiler's
  7769. interprocedural optimizations. For example, a caller is impacted
  7770. when inlining a function into its caller, cloning a function and
  7771. changing its caller to call this new clone, or extracting a
  7772. function's pureness/constness information to optimize its direct or
  7773. indirect callers, etc.
  7774. Usually, the more IPA optimizations enabled, the larger the number
  7775. of impacted functions for each function. In order to control the
  7776. number of impacted functions and more easily compute the list of
  7777. impacted function, IPA optimizations can be partially enabled at
  7778. two different levels.
  7779. The LEVEL argument should be one of the following:
  7780. 'inline-clone'
  7781. Only enable inlining and cloning optimizations, which includes
  7782. inlining, cloning, interprocedural scalar replacement of
  7783. aggregates and partial inlining. As a result, when patching a
  7784. function, all its callers and its clones' callers are
  7785. impacted, therefore need to be patched as well.
  7786. '-flive-patching=inline-clone' disables the following
  7787. optimization flags:
  7788. -fwhole-program -fipa-pta -fipa-reference -fipa-ra
  7789. -fipa-icf -fipa-icf-functions -fipa-icf-variables
  7790. -fipa-bit-cp -fipa-vrp -fipa-pure-const -fipa-reference-addressable
  7791. -fipa-stack-alignment
  7792. 'inline-only-static'
  7793. Only enable inlining of static functions. As a result, when
  7794. patching a static function, all its callers are impacted and
  7795. so need to be patched as well.
  7796. In addition to all the flags that
  7797. '-flive-patching=inline-clone' disables,
  7798. '-flive-patching=inline-only-static' disables the following
  7799. additional optimization flags:
  7800. -fipa-cp-clone -fipa-sra -fpartial-inlining -fipa-cp
  7801. When '-flive-patching' is specified without any value, the default
  7802. value is INLINE-CLONE.
  7803. This flag is disabled by default.
  7804. Note that '-flive-patching' is not supported with link-time
  7805. optimization ('-flto').
  7806. '-fisolate-erroneous-paths-dereference'
  7807. Detect paths that trigger erroneous or undefined behavior due to
  7808. dereferencing a null pointer. Isolate those paths from the main
  7809. control flow and turn the statement with erroneous or undefined
  7810. behavior into a trap. This flag is enabled by default at '-O2' and
  7811. higher and depends on '-fdelete-null-pointer-checks' also being
  7812. enabled.
  7813. '-fisolate-erroneous-paths-attribute'
  7814. Detect paths that trigger erroneous or undefined behavior due to a
  7815. null value being used in a way forbidden by a 'returns_nonnull' or
  7816. 'nonnull' attribute. Isolate those paths from the main control
  7817. flow and turn the statement with erroneous or undefined behavior
  7818. into a trap. This is not currently enabled, but may be enabled by
  7819. '-O2' in the future.
  7820. '-ftree-sink'
  7821. Perform forward store motion on trees. This flag is enabled by
  7822. default at '-O' and higher.
  7823. '-ftree-bit-ccp'
  7824. Perform sparse conditional bit constant propagation on trees and
  7825. propagate pointer alignment information. This pass only operates
  7826. on local scalar variables and is enabled by default at '-O1' and
  7827. higher, except for '-Og'. It requires that '-ftree-ccp' is
  7828. enabled.
  7829. '-ftree-ccp'
  7830. Perform sparse conditional constant propagation (CCP) on trees.
  7831. This pass only operates on local scalar variables and is enabled by
  7832. default at '-O' and higher.
  7833. '-fssa-backprop'
  7834. Propagate information about uses of a value up the definition chain
  7835. in order to simplify the definitions. For example, this pass
  7836. strips sign operations if the sign of a value never matters. The
  7837. flag is enabled by default at '-O' and higher.
  7838. '-fssa-phiopt'
  7839. Perform pattern matching on SSA PHI nodes to optimize conditional
  7840. code. This pass is enabled by default at '-O1' and higher, except
  7841. for '-Og'.
  7842. '-ftree-switch-conversion'
  7843. Perform conversion of simple initializations in a switch to
  7844. initializations from a scalar array. This flag is enabled by
  7845. default at '-O2' and higher.
  7846. '-ftree-tail-merge'
  7847. Look for identical code sequences. When found, replace one with a
  7848. jump to the other. This optimization is known as tail merging or
  7849. cross jumping. This flag is enabled by default at '-O2' and
  7850. higher. The compilation time in this pass can be limited using
  7851. 'max-tail-merge-comparisons' parameter and
  7852. 'max-tail-merge-iterations' parameter.
  7853. '-ftree-dce'
  7854. Perform dead code elimination (DCE) on trees. This flag is enabled
  7855. by default at '-O' and higher.
  7856. '-ftree-builtin-call-dce'
  7857. Perform conditional dead code elimination (DCE) for calls to
  7858. built-in functions that may set 'errno' but are otherwise free of
  7859. side effects. This flag is enabled by default at '-O2' and higher
  7860. if '-Os' is not also specified.
  7861. '-ffinite-loops'
  7862. Assume that a loop with an exit will eventually take the exit and
  7863. not loop indefinitely. This allows the compiler to remove loops
  7864. that otherwise have no side-effects, not considering eventual
  7865. endless looping as such.
  7866. This option is enabled by default at '-O2' for C++ with -std=c++11
  7867. or higher.
  7868. '-ftree-dominator-opts'
  7869. Perform a variety of simple scalar cleanups (constant/copy
  7870. propagation, redundancy elimination, range propagation and
  7871. expression simplification) based on a dominator tree traversal.
  7872. This also performs jump threading (to reduce jumps to jumps). This
  7873. flag is enabled by default at '-O' and higher.
  7874. '-ftree-dse'
  7875. Perform dead store elimination (DSE) on trees. A dead store is a
  7876. store into a memory location that is later overwritten by another
  7877. store without any intervening loads. In this case the earlier
  7878. store can be deleted. This flag is enabled by default at '-O' and
  7879. higher.
  7880. '-ftree-ch'
  7881. Perform loop header copying on trees. This is beneficial since it
  7882. increases effectiveness of code motion optimizations. It also
  7883. saves one jump. This flag is enabled by default at '-O' and
  7884. higher. It is not enabled for '-Os', since it usually increases
  7885. code size.
  7886. '-ftree-loop-optimize'
  7887. Perform loop optimizations on trees. This flag is enabled by
  7888. default at '-O' and higher.
  7889. '-ftree-loop-linear'
  7890. '-floop-strip-mine'
  7891. '-floop-block'
  7892. Perform loop nest optimizations. Same as '-floop-nest-optimize'.
  7893. To use this code transformation, GCC has to be configured with
  7894. '--with-isl' to enable the Graphite loop transformation
  7895. infrastructure.
  7896. '-fgraphite-identity'
  7897. Enable the identity transformation for graphite. For every SCoP we
  7898. generate the polyhedral representation and transform it back to
  7899. gimple. Using '-fgraphite-identity' we can check the costs or
  7900. benefits of the GIMPLE -> GRAPHITE -> GIMPLE transformation. Some
  7901. minimal optimizations are also performed by the code generator isl,
  7902. like index splitting and dead code elimination in loops.
  7903. '-floop-nest-optimize'
  7904. Enable the isl based loop nest optimizer. This is a generic loop
  7905. nest optimizer based on the Pluto optimization algorithms. It
  7906. calculates a loop structure optimized for data-locality and
  7907. parallelism. This option is experimental.
  7908. '-floop-parallelize-all'
  7909. Use the Graphite data dependence analysis to identify loops that
  7910. can be parallelized. Parallelize all the loops that can be
  7911. analyzed to not contain loop carried dependences without checking
  7912. that it is profitable to parallelize the loops.
  7913. '-ftree-coalesce-vars'
  7914. While transforming the program out of the SSA representation,
  7915. attempt to reduce copying by coalescing versions of different
  7916. user-defined variables, instead of just compiler temporaries. This
  7917. may severely limit the ability to debug an optimized program
  7918. compiled with '-fno-var-tracking-assignments'. In the negated
  7919. form, this flag prevents SSA coalescing of user variables. This
  7920. option is enabled by default if optimization is enabled, and it
  7921. does very little otherwise.
  7922. '-ftree-loop-if-convert'
  7923. Attempt to transform conditional jumps in the innermost loops to
  7924. branch-less equivalents. The intent is to remove control-flow from
  7925. the innermost loops in order to improve the ability of the
  7926. vectorization pass to handle these loops. This is enabled by
  7927. default if vectorization is enabled.
  7928. '-ftree-loop-distribution'
  7929. Perform loop distribution. This flag can improve cache performance
  7930. on big loop bodies and allow further loop optimizations, like
  7931. parallelization or vectorization, to take place. For example, the
  7932. loop
  7933. DO I = 1, N
  7934. A(I) = B(I) + C
  7935. D(I) = E(I) * F
  7936. ENDDO
  7937. is transformed to
  7938. DO I = 1, N
  7939. A(I) = B(I) + C
  7940. ENDDO
  7941. DO I = 1, N
  7942. D(I) = E(I) * F
  7943. ENDDO
  7944. This flag is enabled by default at '-O3'. It is also enabled by
  7945. '-fprofile-use' and '-fauto-profile'.
  7946. '-ftree-loop-distribute-patterns'
  7947. Perform loop distribution of patterns that can be code generated
  7948. with calls to a library. This flag is enabled by default at '-O2'
  7949. and higher, and by '-fprofile-use' and '-fauto-profile'.
  7950. This pass distributes the initialization loops and generates a call
  7951. to memset zero. For example, the loop
  7952. DO I = 1, N
  7953. A(I) = 0
  7954. B(I) = A(I) + I
  7955. ENDDO
  7956. is transformed to
  7957. DO I = 1, N
  7958. A(I) = 0
  7959. ENDDO
  7960. DO I = 1, N
  7961. B(I) = A(I) + I
  7962. ENDDO
  7963. and the initialization loop is transformed into a call to memset
  7964. zero. This flag is enabled by default at '-O3'. It is also
  7965. enabled by '-fprofile-use' and '-fauto-profile'.
  7966. '-floop-interchange'
  7967. Perform loop interchange outside of graphite. This flag can
  7968. improve cache performance on loop nest and allow further loop
  7969. optimizations, like vectorization, to take place. For example, the
  7970. loop
  7971. for (int i = 0; i < N; i++)
  7972. for (int j = 0; j < N; j++)
  7973. for (int k = 0; k < N; k++)
  7974. c[i][j] = c[i][j] + a[i][k]*b[k][j];
  7975. is transformed to
  7976. for (int i = 0; i < N; i++)
  7977. for (int k = 0; k < N; k++)
  7978. for (int j = 0; j < N; j++)
  7979. c[i][j] = c[i][j] + a[i][k]*b[k][j];
  7980. This flag is enabled by default at '-O3'. It is also enabled by
  7981. '-fprofile-use' and '-fauto-profile'.
  7982. '-floop-unroll-and-jam'
  7983. Apply unroll and jam transformations on feasible loops. In a loop
  7984. nest this unrolls the outer loop by some factor and fuses the
  7985. resulting multiple inner loops. This flag is enabled by default at
  7986. '-O3'. It is also enabled by '-fprofile-use' and '-fauto-profile'.
  7987. '-ftree-loop-im'
  7988. Perform loop invariant motion on trees. This pass moves only
  7989. invariants that are hard to handle at RTL level (function calls,
  7990. operations that expand to nontrivial sequences of insns). With
  7991. '-funswitch-loops' it also moves operands of conditions that are
  7992. invariant out of the loop, so that we can use just trivial
  7993. invariantness analysis in loop unswitching. The pass also includes
  7994. store motion.
  7995. '-ftree-loop-ivcanon'
  7996. Create a canonical counter for number of iterations in loops for
  7997. which determining number of iterations requires complicated
  7998. analysis. Later optimizations then may determine the number
  7999. easily. Useful especially in connection with unrolling.
  8000. '-ftree-scev-cprop'
  8001. Perform final value replacement. If a variable is modified in a
  8002. loop in such a way that its value when exiting the loop can be
  8003. determined using only its initial value and the number of loop
  8004. iterations, replace uses of the final value by such a computation,
  8005. provided it is sufficiently cheap. This reduces data dependencies
  8006. and may allow further simplifications. Enabled by default at '-O'
  8007. and higher.
  8008. '-fivopts'
  8009. Perform induction variable optimizations (strength reduction,
  8010. induction variable merging and induction variable elimination) on
  8011. trees.
  8012. '-ftree-parallelize-loops=n'
  8013. Parallelize loops, i.e., split their iteration space to run in n
  8014. threads. This is only possible for loops whose iterations are
  8015. independent and can be arbitrarily reordered. The optimization is
  8016. only profitable on multiprocessor machines, for loops that are
  8017. CPU-intensive, rather than constrained e.g. by memory bandwidth.
  8018. This option implies '-pthread', and thus is only supported on
  8019. targets that have support for '-pthread'.
  8020. '-ftree-pta'
  8021. Perform function-local points-to analysis on trees. This flag is
  8022. enabled by default at '-O1' and higher, except for '-Og'.
  8023. '-ftree-sra'
  8024. Perform scalar replacement of aggregates. This pass replaces
  8025. structure references with scalars to prevent committing structures
  8026. to memory too early. This flag is enabled by default at '-O1' and
  8027. higher, except for '-Og'.
  8028. '-fstore-merging'
  8029. Perform merging of narrow stores to consecutive memory addresses.
  8030. This pass merges contiguous stores of immediate values narrower
  8031. than a word into fewer wider stores to reduce the number of
  8032. instructions. This is enabled by default at '-O2' and higher as
  8033. well as '-Os'.
  8034. '-ftree-ter'
  8035. Perform temporary expression replacement during the SSA->normal
  8036. phase. Single use/single def temporaries are replaced at their use
  8037. location with their defining expression. This results in
  8038. non-GIMPLE code, but gives the expanders much more complex trees to
  8039. work on resulting in better RTL generation. This is enabled by
  8040. default at '-O' and higher.
  8041. '-ftree-slsr'
  8042. Perform straight-line strength reduction on trees. This recognizes
  8043. related expressions involving multiplications and replaces them by
  8044. less expensive calculations when possible. This is enabled by
  8045. default at '-O' and higher.
  8046. '-ftree-vectorize'
  8047. Perform vectorization on trees. This flag enables
  8048. '-ftree-loop-vectorize' and '-ftree-slp-vectorize' if not
  8049. explicitly specified.
  8050. '-ftree-loop-vectorize'
  8051. Perform loop vectorization on trees. This flag is enabled by
  8052. default at '-O3' and by '-ftree-vectorize', '-fprofile-use', and
  8053. '-fauto-profile'.
  8054. '-ftree-slp-vectorize'
  8055. Perform basic block vectorization on trees. This flag is enabled
  8056. by default at '-O3' and by '-ftree-vectorize', '-fprofile-use', and
  8057. '-fauto-profile'.
  8058. '-fvect-cost-model=MODEL'
  8059. Alter the cost model used for vectorization. The MODEL argument
  8060. should be one of 'unlimited', 'dynamic' or 'cheap'. With the
  8061. 'unlimited' model the vectorized code-path is assumed to be
  8062. profitable while with the 'dynamic' model a runtime check guards
  8063. the vectorized code-path to enable it only for iteration counts
  8064. that will likely execute faster than when executing the original
  8065. scalar loop. The 'cheap' model disables vectorization of loops
  8066. where doing so would be cost prohibitive for example due to
  8067. required runtime checks for data dependence or alignment but
  8068. otherwise is equal to the 'dynamic' model. The default cost model
  8069. depends on other optimization flags and is either 'dynamic' or
  8070. 'cheap'.
  8071. '-fsimd-cost-model=MODEL'
  8072. Alter the cost model used for vectorization of loops marked with
  8073. the OpenMP simd directive. The MODEL argument should be one of
  8074. 'unlimited', 'dynamic', 'cheap'. All values of MODEL have the same
  8075. meaning as described in '-fvect-cost-model' and by default a cost
  8076. model defined with '-fvect-cost-model' is used.
  8077. '-ftree-vrp'
  8078. Perform Value Range Propagation on trees. This is similar to the
  8079. constant propagation pass, but instead of values, ranges of values
  8080. are propagated. This allows the optimizers to remove unnecessary
  8081. range checks like array bound checks and null pointer checks. This
  8082. is enabled by default at '-O2' and higher. Null pointer check
  8083. elimination is only done if '-fdelete-null-pointer-checks' is
  8084. enabled.
  8085. '-fsplit-paths'
  8086. Split paths leading to loop backedges. This can improve dead code
  8087. elimination and common subexpression elimination. This is enabled
  8088. by default at '-O3' and above.
  8089. '-fsplit-ivs-in-unroller'
  8090. Enables expression of values of induction variables in later
  8091. iterations of the unrolled loop using the value in the first
  8092. iteration. This breaks long dependency chains, thus improving
  8093. efficiency of the scheduling passes.
  8094. A combination of '-fweb' and CSE is often sufficient to obtain the
  8095. same effect. However, that is not reliable in cases where the loop
  8096. body is more complicated than a single basic block. It also does
  8097. not work at all on some architectures due to restrictions in the
  8098. CSE pass.
  8099. This optimization is enabled by default.
  8100. '-fvariable-expansion-in-unroller'
  8101. With this option, the compiler creates multiple copies of some
  8102. local variables when unrolling a loop, which can result in superior
  8103. code.
  8104. This optimization is enabled by default for PowerPC targets, but
  8105. disabled by default otherwise.
  8106. '-fpartial-inlining'
  8107. Inline parts of functions. This option has any effect only when
  8108. inlining itself is turned on by the '-finline-functions' or
  8109. '-finline-small-functions' options.
  8110. Enabled at levels '-O2', '-O3', '-Os'.
  8111. '-fpredictive-commoning'
  8112. Perform predictive commoning optimization, i.e., reusing
  8113. computations (especially memory loads and stores) performed in
  8114. previous iterations of loops.
  8115. This option is enabled at level '-O3'. It is also enabled by
  8116. '-fprofile-use' and '-fauto-profile'.
  8117. '-fprefetch-loop-arrays'
  8118. If supported by the target machine, generate instructions to
  8119. prefetch memory to improve the performance of loops that access
  8120. large arrays.
  8121. This option may generate better or worse code; results are highly
  8122. dependent on the structure of loops within the source code.
  8123. Disabled at level '-Os'.
  8124. '-fno-printf-return-value'
  8125. Do not substitute constants for known return value of formatted
  8126. output functions such as 'sprintf', 'snprintf', 'vsprintf', and
  8127. 'vsnprintf' (but not 'printf' of 'fprintf'). This transformation
  8128. allows GCC to optimize or even eliminate branches based on the
  8129. known return value of these functions called with arguments that
  8130. are either constant, or whose values are known to be in a range
  8131. that makes determining the exact return value possible. For
  8132. example, when '-fprintf-return-value' is in effect, both the branch
  8133. and the body of the 'if' statement (but not the call to 'snprint')
  8134. can be optimized away when 'i' is a 32-bit or smaller integer
  8135. because the return value is guaranteed to be at most 8.
  8136. char buf[9];
  8137. if (snprintf (buf, "%08x", i) >= sizeof buf)
  8138. ...
  8139. The '-fprintf-return-value' option relies on other optimizations
  8140. and yields best results with '-O2' and above. It works in tandem
  8141. with the '-Wformat-overflow' and '-Wformat-truncation' options.
  8142. The '-fprintf-return-value' option is enabled by default.
  8143. '-fno-peephole'
  8144. '-fno-peephole2'
  8145. Disable any machine-specific peephole optimizations. The
  8146. difference between '-fno-peephole' and '-fno-peephole2' is in how
  8147. they are implemented in the compiler; some targets use one, some
  8148. use the other, a few use both.
  8149. '-fpeephole' is enabled by default. '-fpeephole2' enabled at
  8150. levels '-O2', '-O3', '-Os'.
  8151. '-fno-guess-branch-probability'
  8152. Do not guess branch probabilities using heuristics.
  8153. GCC uses heuristics to guess branch probabilities if they are not
  8154. provided by profiling feedback ('-fprofile-arcs'). These
  8155. heuristics are based on the control flow graph. If some branch
  8156. probabilities are specified by '__builtin_expect', then the
  8157. heuristics are used to guess branch probabilities for the rest of
  8158. the control flow graph, taking the '__builtin_expect' info into
  8159. account. The interactions between the heuristics and
  8160. '__builtin_expect' can be complex, and in some cases, it may be
  8161. useful to disable the heuristics so that the effects of
  8162. '__builtin_expect' are easier to understand.
  8163. It is also possible to specify expected probability of the
  8164. expression with '__builtin_expect_with_probability' built-in
  8165. function.
  8166. The default is '-fguess-branch-probability' at levels '-O', '-O2',
  8167. '-O3', '-Os'.
  8168. '-freorder-blocks'
  8169. Reorder basic blocks in the compiled function in order to reduce
  8170. number of taken branches and improve code locality.
  8171. Enabled at levels '-O', '-O2', '-O3', '-Os'.
  8172. '-freorder-blocks-algorithm=ALGORITHM'
  8173. Use the specified algorithm for basic block reordering. The
  8174. ALGORITHM argument can be 'simple', which does not increase code
  8175. size (except sometimes due to secondary effects like alignment), or
  8176. 'stc', the "software trace cache" algorithm, which tries to put all
  8177. often executed code together, minimizing the number of branches
  8178. executed by making extra copies of code.
  8179. The default is 'simple' at levels '-O', '-Os', and 'stc' at levels
  8180. '-O2', '-O3'.
  8181. '-freorder-blocks-and-partition'
  8182. In addition to reordering basic blocks in the compiled function, in
  8183. order to reduce number of taken branches, partitions hot and cold
  8184. basic blocks into separate sections of the assembly and '.o' files,
  8185. to improve paging and cache locality performance.
  8186. This optimization is automatically turned off in the presence of
  8187. exception handling or unwind tables (on targets using
  8188. setjump/longjump or target specific scheme), for linkonce sections,
  8189. for functions with a user-defined section attribute and on any
  8190. architecture that does not support named sections. When
  8191. '-fsplit-stack' is used this option is not enabled by default (to
  8192. avoid linker errors), but may be enabled explicitly (if using a
  8193. working linker).
  8194. Enabled for x86 at levels '-O2', '-O3', '-Os'.
  8195. '-freorder-functions'
  8196. Reorder functions in the object file in order to improve code
  8197. locality. This is implemented by using special subsections
  8198. '.text.hot' for most frequently executed functions and
  8199. '.text.unlikely' for unlikely executed functions. Reordering is
  8200. done by the linker so object file format must support named
  8201. sections and linker must place them in a reasonable way.
  8202. This option isn't effective unless you either provide profile
  8203. feedback (see '-fprofile-arcs' for details) or manually annotate
  8204. functions with 'hot' or 'cold' attributes (*note Common Function
  8205. Attributes::).
  8206. Enabled at levels '-O2', '-O3', '-Os'.
  8207. '-fstrict-aliasing'
  8208. Allow the compiler to assume the strictest aliasing rules
  8209. applicable to the language being compiled. For C (and C++), this
  8210. activates optimizations based on the type of expressions. In
  8211. particular, an object of one type is assumed never to reside at the
  8212. same address as an object of a different type, unless the types are
  8213. almost the same. For example, an 'unsigned int' can alias an
  8214. 'int', but not a 'void*' or a 'double'. A character type may alias
  8215. any other type.
  8216. Pay special attention to code like this:
  8217. union a_union {
  8218. int i;
  8219. double d;
  8220. };
  8221. int f() {
  8222. union a_union t;
  8223. t.d = 3.0;
  8224. return t.i;
  8225. }
  8226. The practice of reading from a different union member than the one
  8227. most recently written to (called "type-punning") is common. Even
  8228. with '-fstrict-aliasing', type-punning is allowed, provided the
  8229. memory is accessed through the union type. So, the code above
  8230. works as expected. *Note Structures unions enumerations and
  8231. bit-fields implementation::. However, this code might not:
  8232. int f() {
  8233. union a_union t;
  8234. int* ip;
  8235. t.d = 3.0;
  8236. ip = &t.i;
  8237. return *ip;
  8238. }
  8239. Similarly, access by taking the address, casting the resulting
  8240. pointer and dereferencing the result has undefined behavior, even
  8241. if the cast uses a union type, e.g.:
  8242. int f() {
  8243. double d = 3.0;
  8244. return ((union a_union *) &d)->i;
  8245. }
  8246. The '-fstrict-aliasing' option is enabled at levels '-O2', '-O3',
  8247. '-Os'.
  8248. '-falign-functions'
  8249. '-falign-functions=N'
  8250. '-falign-functions=N:M'
  8251. '-falign-functions=N:M:N2'
  8252. '-falign-functions=N:M:N2:M2'
  8253. Align the start of functions to the next power-of-two greater than
  8254. or equal to N, skipping up to M-1 bytes. This ensures that at
  8255. least the first M bytes of the function can be fetched by the CPU
  8256. without crossing an N-byte alignment boundary.
  8257. If M is not specified, it defaults to N.
  8258. Examples: '-falign-functions=32' aligns functions to the next
  8259. 32-byte boundary, '-falign-functions=24' aligns to the next 32-byte
  8260. boundary only if this can be done by skipping 23 bytes or less,
  8261. '-falign-functions=32:7' aligns to the next 32-byte boundary only
  8262. if this can be done by skipping 6 bytes or less.
  8263. The second pair of N2:M2 values allows you to specify a secondary
  8264. alignment: '-falign-functions=64:7:32:3' aligns to the next 64-byte
  8265. boundary if this can be done by skipping 6 bytes or less, otherwise
  8266. aligns to the next 32-byte boundary if this can be done by skipping
  8267. 2 bytes or less. If M2 is not specified, it defaults to N2.
  8268. Some assemblers only support this flag when N is a power of two; in
  8269. that case, it is rounded up.
  8270. '-fno-align-functions' and '-falign-functions=1' are equivalent and
  8271. mean that functions are not aligned.
  8272. If N is not specified or is zero, use a machine-dependent default.
  8273. The maximum allowed N option value is 65536.
  8274. Enabled at levels '-O2', '-O3'.
  8275. '-flimit-function-alignment'
  8276. If this option is enabled, the compiler tries to avoid
  8277. unnecessarily overaligning functions. It attempts to instruct the
  8278. assembler to align by the amount specified by '-falign-functions',
  8279. but not to skip more bytes than the size of the function.
  8280. '-falign-labels'
  8281. '-falign-labels=N'
  8282. '-falign-labels=N:M'
  8283. '-falign-labels=N:M:N2'
  8284. '-falign-labels=N:M:N2:M2'
  8285. Align all branch targets to a power-of-two boundary.
  8286. Parameters of this option are analogous to the '-falign-functions'
  8287. option. '-fno-align-labels' and '-falign-labels=1' are equivalent
  8288. and mean that labels are not aligned.
  8289. If '-falign-loops' or '-falign-jumps' are applicable and are
  8290. greater than this value, then their values are used instead.
  8291. If N is not specified or is zero, use a machine-dependent default
  8292. which is very likely to be '1', meaning no alignment. The maximum
  8293. allowed N option value is 65536.
  8294. Enabled at levels '-O2', '-O3'.
  8295. '-falign-loops'
  8296. '-falign-loops=N'
  8297. '-falign-loops=N:M'
  8298. '-falign-loops=N:M:N2'
  8299. '-falign-loops=N:M:N2:M2'
  8300. Align loops to a power-of-two boundary. If the loops are executed
  8301. many times, this makes up for any execution of the dummy padding
  8302. instructions.
  8303. If '-falign-labels' is greater than this value, then its value is
  8304. used instead.
  8305. Parameters of this option are analogous to the '-falign-functions'
  8306. option. '-fno-align-loops' and '-falign-loops=1' are equivalent
  8307. and mean that loops are not aligned. The maximum allowed N option
  8308. value is 65536.
  8309. If N is not specified or is zero, use a machine-dependent default.
  8310. Enabled at levels '-O2', '-O3'.
  8311. '-falign-jumps'
  8312. '-falign-jumps=N'
  8313. '-falign-jumps=N:M'
  8314. '-falign-jumps=N:M:N2'
  8315. '-falign-jumps=N:M:N2:M2'
  8316. Align branch targets to a power-of-two boundary, for branch targets
  8317. where the targets can only be reached by jumping. In this case, no
  8318. dummy operations need be executed.
  8319. If '-falign-labels' is greater than this value, then its value is
  8320. used instead.
  8321. Parameters of this option are analogous to the '-falign-functions'
  8322. option. '-fno-align-jumps' and '-falign-jumps=1' are equivalent
  8323. and mean that loops are not aligned.
  8324. If N is not specified or is zero, use a machine-dependent default.
  8325. The maximum allowed N option value is 65536.
  8326. Enabled at levels '-O2', '-O3'.
  8327. '-fno-allocation-dce'
  8328. Do not remove unused C++ allocations in dead code elimination.
  8329. '-fallow-store-data-races'
  8330. Allow the compiler to introduce new data races on stores.
  8331. Enabled at level '-Ofast'.
  8332. '-funit-at-a-time'
  8333. This option is left for compatibility reasons. '-funit-at-a-time'
  8334. has no effect, while '-fno-unit-at-a-time' implies
  8335. '-fno-toplevel-reorder' and '-fno-section-anchors'.
  8336. Enabled by default.
  8337. '-fno-toplevel-reorder'
  8338. Do not reorder top-level functions, variables, and 'asm'
  8339. statements. Output them in the same order that they appear in the
  8340. input file. When this option is used, unreferenced static
  8341. variables are not removed. This option is intended to support
  8342. existing code that relies on a particular ordering. For new code,
  8343. it is better to use attributes when possible.
  8344. '-ftoplevel-reorder' is the default at '-O1' and higher, and also
  8345. at '-O0' if '-fsection-anchors' is explicitly requested.
  8346. Additionally '-fno-toplevel-reorder' implies
  8347. '-fno-section-anchors'.
  8348. '-fweb'
  8349. Constructs webs as commonly used for register allocation purposes
  8350. and assign each web individual pseudo register. This allows the
  8351. register allocation pass to operate on pseudos directly, but also
  8352. strengthens several other optimization passes, such as CSE, loop
  8353. optimizer and trivial dead code remover. It can, however, make
  8354. debugging impossible, since variables no longer stay in a "home
  8355. register".
  8356. Enabled by default with '-funroll-loops'.
  8357. '-fwhole-program'
  8358. Assume that the current compilation unit represents the whole
  8359. program being compiled. All public functions and variables with
  8360. the exception of 'main' and those merged by attribute
  8361. 'externally_visible' become static functions and in effect are
  8362. optimized more aggressively by interprocedural optimizers.
  8363. This option should not be used in combination with '-flto'.
  8364. Instead relying on a linker plugin should provide safer and more
  8365. precise information.
  8366. '-flto[=N]'
  8367. This option runs the standard link-time optimizer. When invoked
  8368. with source code, it generates GIMPLE (one of GCC's internal
  8369. representations) and writes it to special ELF sections in the
  8370. object file. When the object files are linked together, all the
  8371. function bodies are read from these ELF sections and instantiated
  8372. as if they had been part of the same translation unit.
  8373. To use the link-time optimizer, '-flto' and optimization options
  8374. should be specified at compile time and during the final link. It
  8375. is recommended that you compile all the files participating in the
  8376. same link with the same options and also specify those options at
  8377. link time. For example:
  8378. gcc -c -O2 -flto foo.c
  8379. gcc -c -O2 -flto bar.c
  8380. gcc -o myprog -flto -O2 foo.o bar.o
  8381. The first two invocations to GCC save a bytecode representation of
  8382. GIMPLE into special ELF sections inside 'foo.o' and 'bar.o'. The
  8383. final invocation reads the GIMPLE bytecode from 'foo.o' and
  8384. 'bar.o', merges the two files into a single internal image, and
  8385. compiles the result as usual. Since both 'foo.o' and 'bar.o' are
  8386. merged into a single image, this causes all the interprocedural
  8387. analyses and optimizations in GCC to work across the two files as
  8388. if they were a single one. This means, for example, that the
  8389. inliner is able to inline functions in 'bar.o' into functions in
  8390. 'foo.o' and vice-versa.
  8391. Another (simpler) way to enable link-time optimization is:
  8392. gcc -o myprog -flto -O2 foo.c bar.c
  8393. The above generates bytecode for 'foo.c' and 'bar.c', merges them
  8394. together into a single GIMPLE representation and optimizes them as
  8395. usual to produce 'myprog'.
  8396. The important thing to keep in mind is that to enable link-time
  8397. optimizations you need to use the GCC driver to perform the link
  8398. step. GCC automatically performs link-time optimization if any of
  8399. the objects involved were compiled with the '-flto' command-line
  8400. option. You can always override the automatic decision to do
  8401. link-time optimization by passing '-fno-lto' to the link command.
  8402. To make whole program optimization effective, it is necessary to
  8403. make certain whole program assumptions. The compiler needs to know
  8404. what functions and variables can be accessed by libraries and
  8405. runtime outside of the link-time optimized unit. When supported by
  8406. the linker, the linker plugin (see '-fuse-linker-plugin') passes
  8407. information to the compiler about used and externally visible
  8408. symbols. When the linker plugin is not available,
  8409. '-fwhole-program' should be used to allow the compiler to make
  8410. these assumptions, which leads to more aggressive optimization
  8411. decisions.
  8412. When a file is compiled with '-flto' without '-fuse-linker-plugin',
  8413. the generated object file is larger than a regular object file
  8414. because it contains GIMPLE bytecodes and the usual final code (see
  8415. '-ffat-lto-objects'. This means that object files with LTO
  8416. information can be linked as normal object files; if '-fno-lto' is
  8417. passed to the linker, no interprocedural optimizations are applied.
  8418. Note that when '-fno-fat-lto-objects' is enabled the compile stage
  8419. is faster but you cannot perform a regular, non-LTO link on them.
  8420. When producing the final binary, GCC only applies link-time
  8421. optimizations to those files that contain bytecode. Therefore, you
  8422. can mix and match object files and libraries with GIMPLE bytecodes
  8423. and final object code. GCC automatically selects which files to
  8424. optimize in LTO mode and which files to link without further
  8425. processing.
  8426. Generally, options specified at link time override those specified
  8427. at compile time, although in some cases GCC attempts to infer
  8428. link-time options from the settings used to compile the input
  8429. files.
  8430. If you do not specify an optimization level option '-O' at link
  8431. time, then GCC uses the highest optimization level used when
  8432. compiling the object files. Note that it is generally ineffective
  8433. to specify an optimization level option only at link time and not
  8434. at compile time, for two reasons. First, compiling without
  8435. optimization suppresses compiler passes that gather information
  8436. needed for effective optimization at link time. Second, some early
  8437. optimization passes can be performed only at compile time and not
  8438. at link time.
  8439. There are some code generation flags preserved by GCC when
  8440. generating bytecodes, as they need to be used during the final
  8441. link. Currently, the following options and their settings are
  8442. taken from the first object file that explicitly specifies them:
  8443. '-fPIC', '-fpic', '-fpie', '-fcommon', '-fexceptions',
  8444. '-fnon-call-exceptions', '-fgnu-tm' and all the '-m' target flags.
  8445. Certain ABI-changing flags are required to match in all compilation
  8446. units, and trying to override this at link time with a conflicting
  8447. value is ignored. This includes options such as
  8448. '-freg-struct-return' and '-fpcc-struct-return'.
  8449. Other options such as '-ffp-contract', '-fno-strict-overflow',
  8450. '-fwrapv', '-fno-trapv' or '-fno-strict-aliasing' are passed
  8451. through to the link stage and merged conservatively for conflicting
  8452. translation units. Specifically '-fno-strict-overflow', '-fwrapv'
  8453. and '-fno-trapv' take precedence; and for example
  8454. '-ffp-contract=off' takes precedence over '-ffp-contract=fast'.
  8455. You can override them at link time.
  8456. When you need to pass options to the assembler via '-Wa' or
  8457. '-Xassembler' make sure to either compile such translation units
  8458. with '-fno-lto' or consistently use the same assembler options on
  8459. all translation units. You can alternatively also specify
  8460. assembler options at LTO link time.
  8461. To enable debug info generation you need to supply '-g' at compile
  8462. time. If any of the input files at link time were built with debug
  8463. info generation enabled the link will enable debug info generation
  8464. as well. Any elaborate debug info settings like the dwarf level
  8465. '-gdwarf-5' need to be explicitly repeated at the linker command
  8466. line and mixing different settings in different translation units
  8467. is discouraged.
  8468. If LTO encounters objects with C linkage declared with incompatible
  8469. types in separate translation units to be linked together
  8470. (undefined behavior according to ISO C99 6.2.7), a non-fatal
  8471. diagnostic may be issued. The behavior is still undefined at run
  8472. time. Similar diagnostics may be raised for other languages.
  8473. Another feature of LTO is that it is possible to apply
  8474. interprocedural optimizations on files written in different
  8475. languages:
  8476. gcc -c -flto foo.c
  8477. g++ -c -flto bar.cc
  8478. gfortran -c -flto baz.f90
  8479. g++ -o myprog -flto -O3 foo.o bar.o baz.o -lgfortran
  8480. Notice that the final link is done with 'g++' to get the C++
  8481. runtime libraries and '-lgfortran' is added to get the Fortran
  8482. runtime libraries. In general, when mixing languages in LTO mode,
  8483. you should use the same link command options as when mixing
  8484. languages in a regular (non-LTO) compilation.
  8485. If object files containing GIMPLE bytecode are stored in a library
  8486. archive, say 'libfoo.a', it is possible to extract and use them in
  8487. an LTO link if you are using a linker with plugin support. To
  8488. create static libraries suitable for LTO, use 'gcc-ar' and
  8489. 'gcc-ranlib' instead of 'ar' and 'ranlib'; to show the symbols of
  8490. object files with GIMPLE bytecode, use 'gcc-nm'. Those commands
  8491. require that 'ar', 'ranlib' and 'nm' have been compiled with plugin
  8492. support. At link time, use the flag '-fuse-linker-plugin' to
  8493. ensure that the library participates in the LTO optimization
  8494. process:
  8495. gcc -o myprog -O2 -flto -fuse-linker-plugin a.o b.o -lfoo
  8496. With the linker plugin enabled, the linker extracts the needed
  8497. GIMPLE files from 'libfoo.a' and passes them on to the running GCC
  8498. to make them part of the aggregated GIMPLE image to be optimized.
  8499. If you are not using a linker with plugin support and/or do not
  8500. enable the linker plugin, then the objects inside 'libfoo.a' are
  8501. extracted and linked as usual, but they do not participate in the
  8502. LTO optimization process. In order to make a static library
  8503. suitable for both LTO optimization and usual linkage, compile its
  8504. object files with '-flto' '-ffat-lto-objects'.
  8505. Link-time optimizations do not require the presence of the whole
  8506. program to operate. If the program does not require any symbols to
  8507. be exported, it is possible to combine '-flto' and
  8508. '-fwhole-program' to allow the interprocedural optimizers to use
  8509. more aggressive assumptions which may lead to improved optimization
  8510. opportunities. Use of '-fwhole-program' is not needed when linker
  8511. plugin is active (see '-fuse-linker-plugin').
  8512. The current implementation of LTO makes no attempt to generate
  8513. bytecode that is portable between different types of hosts. The
  8514. bytecode files are versioned and there is a strict version check,
  8515. so bytecode files generated in one version of GCC do not work with
  8516. an older or newer version of GCC.
  8517. Link-time optimization does not work well with generation of
  8518. debugging information on systems other than those using a
  8519. combination of ELF and DWARF.
  8520. If you specify the optional N, the optimization and code generation
  8521. done at link time is executed in parallel using N parallel jobs by
  8522. utilizing an installed 'make' program. The environment variable
  8523. 'MAKE' may be used to override the program used.
  8524. You can also specify '-flto=jobserver' to use GNU make's job server
  8525. mode to determine the number of parallel jobs. This is useful when
  8526. the Makefile calling GCC is already executing in parallel. You
  8527. must prepend a '+' to the command recipe in the parent Makefile for
  8528. this to work. This option likely only works if 'MAKE' is GNU make.
  8529. Even without the option value, GCC tries to automatically detect a
  8530. running GNU make's job server.
  8531. Use '-flto=auto' to use GNU make's job server, if available, or
  8532. otherwise fall back to autodetection of the number of CPU threads
  8533. present in your system.
  8534. '-flto-partition=ALG'
  8535. Specify the partitioning algorithm used by the link-time optimizer.
  8536. The value is either '1to1' to specify a partitioning mirroring the
  8537. original source files or 'balanced' to specify partitioning into
  8538. equally sized chunks (whenever possible) or 'max' to create new
  8539. partition for every symbol where possible. Specifying 'none' as an
  8540. algorithm disables partitioning and streaming completely. The
  8541. default value is 'balanced'. While '1to1' can be used as an
  8542. workaround for various code ordering issues, the 'max' partitioning
  8543. is intended for internal testing only. The value 'one' specifies
  8544. that exactly one partition should be used while the value 'none'
  8545. bypasses partitioning and executes the link-time optimization step
  8546. directly from the WPA phase.
  8547. '-flto-compression-level=N'
  8548. This option specifies the level of compression used for
  8549. intermediate language written to LTO object files, and is only
  8550. meaningful in conjunction with LTO mode ('-flto'). Valid values
  8551. are 0 (no compression) to 9 (maximum compression). Values outside
  8552. this range are clamped to either 0 or 9. If the option is not
  8553. given, a default balanced compression setting is used.
  8554. '-fuse-linker-plugin'
  8555. Enables the use of a linker plugin during link-time optimization.
  8556. This option relies on plugin support in the linker, which is
  8557. available in gold or in GNU ld 2.21 or newer.
  8558. This option enables the extraction of object files with GIMPLE
  8559. bytecode out of library archives. This improves the quality of
  8560. optimization by exposing more code to the link-time optimizer.
  8561. This information specifies what symbols can be accessed externally
  8562. (by non-LTO object or during dynamic linking). Resulting code
  8563. quality improvements on binaries (and shared libraries that use
  8564. hidden visibility) are similar to '-fwhole-program'. See '-flto'
  8565. for a description of the effect of this flag and how to use it.
  8566. This option is enabled by default when LTO support in GCC is
  8567. enabled and GCC was configured for use with a linker supporting
  8568. plugins (GNU ld 2.21 or newer or gold).
  8569. '-ffat-lto-objects'
  8570. Fat LTO objects are object files that contain both the intermediate
  8571. language and the object code. This makes them usable for both LTO
  8572. linking and normal linking. This option is effective only when
  8573. compiling with '-flto' and is ignored at link time.
  8574. '-fno-fat-lto-objects' improves compilation time over plain LTO,
  8575. but requires the complete toolchain to be aware of LTO. It requires
  8576. a linker with linker plugin support for basic functionality.
  8577. Additionally, 'nm', 'ar' and 'ranlib' need to support linker
  8578. plugins to allow a full-featured build environment (capable of
  8579. building static libraries etc). GCC provides the 'gcc-ar',
  8580. 'gcc-nm', 'gcc-ranlib' wrappers to pass the right options to these
  8581. tools. With non fat LTO makefiles need to be modified to use them.
  8582. Note that modern binutils provide plugin auto-load mechanism.
  8583. Installing the linker plugin into '$libdir/bfd-plugins' has the
  8584. same effect as usage of the command wrappers ('gcc-ar', 'gcc-nm'
  8585. and 'gcc-ranlib').
  8586. The default is '-fno-fat-lto-objects' on targets with linker plugin
  8587. support.
  8588. '-fcompare-elim'
  8589. After register allocation and post-register allocation instruction
  8590. splitting, identify arithmetic instructions that compute processor
  8591. flags similar to a comparison operation based on that arithmetic.
  8592. If possible, eliminate the explicit comparison operation.
  8593. This pass only applies to certain targets that cannot explicitly
  8594. represent the comparison operation before register allocation is
  8595. complete.
  8596. Enabled at levels '-O', '-O2', '-O3', '-Os'.
  8597. '-fcprop-registers'
  8598. After register allocation and post-register allocation instruction
  8599. splitting, perform a copy-propagation pass to try to reduce
  8600. scheduling dependencies and occasionally eliminate the copy.
  8601. Enabled at levels '-O', '-O2', '-O3', '-Os'.
  8602. '-fprofile-correction'
  8603. Profiles collected using an instrumented binary for multi-threaded
  8604. programs may be inconsistent due to missed counter updates. When
  8605. this option is specified, GCC uses heuristics to correct or smooth
  8606. out such inconsistencies. By default, GCC emits an error message
  8607. when an inconsistent profile is detected.
  8608. This option is enabled by '-fauto-profile'.
  8609. '-fprofile-partial-training'
  8610. With '-fprofile-use' all portions of programs not executed during
  8611. train run are optimized agressively for size rather than speed. In
  8612. some cases it is not practical to train all possible hot paths in
  8613. the program. (For example, program may contain functions specific
  8614. for a given hardware and trianing may not cover all hardware
  8615. configurations program is run on.) With
  8616. '-fprofile-partial-training' profile feedback will be ignored for
  8617. all functions not executed during the train run leading them to be
  8618. optimized as if they were compiled without profile feedback. This
  8619. leads to better performance when train run is not representative
  8620. but also leads to significantly bigger code.
  8621. '-fprofile-use'
  8622. '-fprofile-use=PATH'
  8623. Enable profile feedback-directed optimizations, and the following
  8624. optimizations, many of which are generally profitable only with
  8625. profile feedback available:
  8626. -fbranch-probabilities -fprofile-values
  8627. -funroll-loops -fpeel-loops -ftracer -fvpt
  8628. -finline-functions -fipa-cp -fipa-cp-clone -fipa-bit-cp
  8629. -fpredictive-commoning -fsplit-loops -funswitch-loops
  8630. -fgcse-after-reload -ftree-loop-vectorize -ftree-slp-vectorize
  8631. -fvect-cost-model=dynamic -ftree-loop-distribute-patterns
  8632. -fprofile-reorder-functions
  8633. Before you can use this option, you must first generate profiling
  8634. information. *Note Instrumentation Options::, for information
  8635. about the '-fprofile-generate' option.
  8636. By default, GCC emits an error message if the feedback profiles do
  8637. not match the source code. This error can be turned into a warning
  8638. by using '-Wno-error=coverage-mismatch'. Note this may result in
  8639. poorly optimized code. Additionally, by default, GCC also emits a
  8640. warning message if the feedback profiles do not exist (see
  8641. '-Wmissing-profile').
  8642. If PATH is specified, GCC looks at the PATH to find the profile
  8643. feedback data files. See '-fprofile-dir'.
  8644. '-fauto-profile'
  8645. '-fauto-profile=PATH'
  8646. Enable sampling-based feedback-directed optimizations, and the
  8647. following optimizations, many of which are generally profitable
  8648. only with profile feedback available:
  8649. -fbranch-probabilities -fprofile-values
  8650. -funroll-loops -fpeel-loops -ftracer -fvpt
  8651. -finline-functions -fipa-cp -fipa-cp-clone -fipa-bit-cp
  8652. -fpredictive-commoning -fsplit-loops -funswitch-loops
  8653. -fgcse-after-reload -ftree-loop-vectorize -ftree-slp-vectorize
  8654. -fvect-cost-model=dynamic -ftree-loop-distribute-patterns
  8655. -fprofile-correction
  8656. PATH is the name of a file containing AutoFDO profile information.
  8657. If omitted, it defaults to 'fbdata.afdo' in the current directory.
  8658. Producing an AutoFDO profile data file requires running your
  8659. program with the 'perf' utility on a supported GNU/Linux target
  8660. system. For more information, see <https://perf.wiki.kernel.org/>.
  8661. E.g.
  8662. perf record -e br_inst_retired:near_taken -b -o perf.data \
  8663. -- your_program
  8664. Then use the 'create_gcov' tool to convert the raw profile data to
  8665. a format that can be used by GCC. You must also supply the
  8666. unstripped binary for your program to this tool. See
  8667. <https://github.com/google/autofdo>.
  8668. E.g.
  8669. create_gcov --binary=your_program.unstripped --profile=perf.data \
  8670. --gcov=profile.afdo
  8671. The following options control compiler behavior regarding
  8672. floating-point arithmetic. These options trade off between speed and
  8673. correctness. All must be specifically enabled.
  8674. '-ffloat-store'
  8675. Do not store floating-point variables in registers, and inhibit
  8676. other options that might change whether a floating-point value is
  8677. taken from a register or memory.
  8678. This option prevents undesirable excess precision on machines such
  8679. as the 68000 where the floating registers (of the 68881) keep more
  8680. precision than a 'double' is supposed to have. Similarly for the
  8681. x86 architecture. For most programs, the excess precision does
  8682. only good, but a few programs rely on the precise definition of
  8683. IEEE floating point. Use '-ffloat-store' for such programs, after
  8684. modifying them to store all pertinent intermediate computations
  8685. into variables.
  8686. '-fexcess-precision=STYLE'
  8687. This option allows further control over excess precision on
  8688. machines where floating-point operations occur in a format with
  8689. more precision or range than the IEEE standard and interchange
  8690. floating-point types. By default, '-fexcess-precision=fast' is in
  8691. effect; this means that operations may be carried out in a wider
  8692. precision than the types specified in the source if that would
  8693. result in faster code, and it is unpredictable when rounding to the
  8694. types specified in the source code takes place. When compiling C,
  8695. if '-fexcess-precision=standard' is specified then excess precision
  8696. follows the rules specified in ISO C99; in particular, both casts
  8697. and assignments cause values to be rounded to their semantic types
  8698. (whereas '-ffloat-store' only affects assignments). This option is
  8699. enabled by default for C if a strict conformance option such as
  8700. '-std=c99' is used. '-ffast-math' enables
  8701. '-fexcess-precision=fast' by default regardless of whether a strict
  8702. conformance option is used.
  8703. '-fexcess-precision=standard' is not implemented for languages
  8704. other than C. On the x86, it has no effect if '-mfpmath=sse' or
  8705. '-mfpmath=sse+387' is specified; in the former case, IEEE semantics
  8706. apply without excess precision, and in the latter, rounding is
  8707. unpredictable.
  8708. '-ffast-math'
  8709. Sets the options '-fno-math-errno', '-funsafe-math-optimizations',
  8710. '-ffinite-math-only', '-fno-rounding-math', '-fno-signaling-nans',
  8711. '-fcx-limited-range' and '-fexcess-precision=fast'.
  8712. This option causes the preprocessor macro '__FAST_MATH__' to be
  8713. defined.
  8714. This option is not turned on by any '-O' option besides '-Ofast'
  8715. since it can result in incorrect output for programs that depend on
  8716. an exact implementation of IEEE or ISO rules/specifications for
  8717. math functions. It may, however, yield faster code for programs
  8718. that do not require the guarantees of these specifications.
  8719. '-fno-math-errno'
  8720. Do not set 'errno' after calling math functions that are executed
  8721. with a single instruction, e.g., 'sqrt'. A program that relies on
  8722. IEEE exceptions for math error handling may want to use this flag
  8723. for speed while maintaining IEEE arithmetic compatibility.
  8724. This option is not turned on by any '-O' option since it can result
  8725. in incorrect output for programs that depend on an exact
  8726. implementation of IEEE or ISO rules/specifications for math
  8727. functions. It may, however, yield faster code for programs that do
  8728. not require the guarantees of these specifications.
  8729. The default is '-fmath-errno'.
  8730. On Darwin systems, the math library never sets 'errno'. There is
  8731. therefore no reason for the compiler to consider the possibility
  8732. that it might, and '-fno-math-errno' is the default.
  8733. '-funsafe-math-optimizations'
  8734. Allow optimizations for floating-point arithmetic that (a) assume
  8735. that arguments and results are valid and (b) may violate IEEE or
  8736. ANSI standards. When used at link time, it may include libraries
  8737. or startup files that change the default FPU control word or other
  8738. similar optimizations.
  8739. This option is not turned on by any '-O' option since it can result
  8740. in incorrect output for programs that depend on an exact
  8741. implementation of IEEE or ISO rules/specifications for math
  8742. functions. It may, however, yield faster code for programs that do
  8743. not require the guarantees of these specifications. Enables
  8744. '-fno-signed-zeros', '-fno-trapping-math', '-fassociative-math' and
  8745. '-freciprocal-math'.
  8746. The default is '-fno-unsafe-math-optimizations'.
  8747. '-fassociative-math'
  8748. Allow re-association of operands in series of floating-point
  8749. operations. This violates the ISO C and C++ language standard by
  8750. possibly changing computation result. NOTE: re-ordering may change
  8751. the sign of zero as well as ignore NaNs and inhibit or create
  8752. underflow or overflow (and thus cannot be used on code that relies
  8753. on rounding behavior like '(x + 2**52) - 2**52'. May also reorder
  8754. floating-point comparisons and thus may not be used when ordered
  8755. comparisons are required. This option requires that both
  8756. '-fno-signed-zeros' and '-fno-trapping-math' be in effect.
  8757. Moreover, it doesn't make much sense with '-frounding-math'. For
  8758. Fortran the option is automatically enabled when both
  8759. '-fno-signed-zeros' and '-fno-trapping-math' are in effect.
  8760. The default is '-fno-associative-math'.
  8761. '-freciprocal-math'
  8762. Allow the reciprocal of a value to be used instead of dividing by
  8763. the value if this enables optimizations. For example 'x / y' can
  8764. be replaced with 'x * (1/y)', which is useful if '(1/y)' is subject
  8765. to common subexpression elimination. Note that this loses
  8766. precision and increases the number of flops operating on the value.
  8767. The default is '-fno-reciprocal-math'.
  8768. '-ffinite-math-only'
  8769. Allow optimizations for floating-point arithmetic that assume that
  8770. arguments and results are not NaNs or +-Infs.
  8771. This option is not turned on by any '-O' option since it can result
  8772. in incorrect output for programs that depend on an exact
  8773. implementation of IEEE or ISO rules/specifications for math
  8774. functions. It may, however, yield faster code for programs that do
  8775. not require the guarantees of these specifications.
  8776. The default is '-fno-finite-math-only'.
  8777. '-fno-signed-zeros'
  8778. Allow optimizations for floating-point arithmetic that ignore the
  8779. signedness of zero. IEEE arithmetic specifies the behavior of
  8780. distinct +0.0 and -0.0 values, which then prohibits simplification
  8781. of expressions such as x+0.0 or 0.0*x (even with
  8782. '-ffinite-math-only'). This option implies that the sign of a zero
  8783. result isn't significant.
  8784. The default is '-fsigned-zeros'.
  8785. '-fno-trapping-math'
  8786. Compile code assuming that floating-point operations cannot
  8787. generate user-visible traps. These traps include division by zero,
  8788. overflow, underflow, inexact result and invalid operation. This
  8789. option requires that '-fno-signaling-nans' be in effect. Setting
  8790. this option may allow faster code if one relies on "non-stop" IEEE
  8791. arithmetic, for example.
  8792. This option should never be turned on by any '-O' option since it
  8793. can result in incorrect output for programs that depend on an exact
  8794. implementation of IEEE or ISO rules/specifications for math
  8795. functions.
  8796. The default is '-ftrapping-math'.
  8797. '-frounding-math'
  8798. Disable transformations and optimizations that assume default
  8799. floating-point rounding behavior. This is round-to-zero for all
  8800. floating point to integer conversions, and round-to-nearest for all
  8801. other arithmetic truncations. This option should be specified for
  8802. programs that change the FP rounding mode dynamically, or that may
  8803. be executed with a non-default rounding mode. This option disables
  8804. constant folding of floating-point expressions at compile time
  8805. (which may be affected by rounding mode) and arithmetic
  8806. transformations that are unsafe in the presence of sign-dependent
  8807. rounding modes.
  8808. The default is '-fno-rounding-math'.
  8809. This option is experimental and does not currently guarantee to
  8810. disable all GCC optimizations that are affected by rounding mode.
  8811. Future versions of GCC may provide finer control of this setting
  8812. using C99's 'FENV_ACCESS' pragma. This command-line option will be
  8813. used to specify the default state for 'FENV_ACCESS'.
  8814. '-fsignaling-nans'
  8815. Compile code assuming that IEEE signaling NaNs may generate
  8816. user-visible traps during floating-point operations. Setting this
  8817. option disables optimizations that may change the number of
  8818. exceptions visible with signaling NaNs. This option implies
  8819. '-ftrapping-math'.
  8820. This option causes the preprocessor macro '__SUPPORT_SNAN__' to be
  8821. defined.
  8822. The default is '-fno-signaling-nans'.
  8823. This option is experimental and does not currently guarantee to
  8824. disable all GCC optimizations that affect signaling NaN behavior.
  8825. '-fno-fp-int-builtin-inexact'
  8826. Do not allow the built-in functions 'ceil', 'floor', 'round' and
  8827. 'trunc', and their 'float' and 'long double' variants, to generate
  8828. code that raises the "inexact" floating-point exception for
  8829. noninteger arguments. ISO C99 and C11 allow these functions to
  8830. raise the "inexact" exception, but ISO/IEC TS 18661-1:2014, the C
  8831. bindings to IEEE 754-2008, as integrated into ISO C2X, does not
  8832. allow these functions to do so.
  8833. The default is '-ffp-int-builtin-inexact', allowing the exception
  8834. to be raised, unless C2X or a later C standard is selected. This
  8835. option does nothing unless '-ftrapping-math' is in effect.
  8836. Even if '-fno-fp-int-builtin-inexact' is used, if the functions
  8837. generate a call to a library function then the "inexact" exception
  8838. may be raised if the library implementation does not follow TS
  8839. 18661.
  8840. '-fsingle-precision-constant'
  8841. Treat floating-point constants as single precision instead of
  8842. implicitly converting them to double-precision constants.
  8843. '-fcx-limited-range'
  8844. When enabled, this option states that a range reduction step is not
  8845. needed when performing complex division. Also, there is no
  8846. checking whether the result of a complex multiplication or division
  8847. is 'NaN + I*NaN', with an attempt to rescue the situation in that
  8848. case. The default is '-fno-cx-limited-range', but is enabled by
  8849. '-ffast-math'.
  8850. This option controls the default setting of the ISO C99
  8851. 'CX_LIMITED_RANGE' pragma. Nevertheless, the option applies to all
  8852. languages.
  8853. '-fcx-fortran-rules'
  8854. Complex multiplication and division follow Fortran rules. Range
  8855. reduction is done as part of complex division, but there is no
  8856. checking whether the result of a complex multiplication or division
  8857. is 'NaN + I*NaN', with an attempt to rescue the situation in that
  8858. case.
  8859. The default is '-fno-cx-fortran-rules'.
  8860. The following options control optimizations that may improve
  8861. performance, but are not enabled by any '-O' options. This section
  8862. includes experimental options that may produce broken code.
  8863. '-fbranch-probabilities'
  8864. After running a program compiled with '-fprofile-arcs' (*note
  8865. Instrumentation Options::), you can compile it a second time using
  8866. '-fbranch-probabilities', to improve optimizations based on the
  8867. number of times each branch was taken. When a program compiled
  8868. with '-fprofile-arcs' exits, it saves arc execution counts to a
  8869. file called 'SOURCENAME.gcda' for each source file. The
  8870. information in this data file is very dependent on the structure of
  8871. the generated code, so you must use the same source code and the
  8872. same optimization options for both compilations.
  8873. With '-fbranch-probabilities', GCC puts a 'REG_BR_PROB' note on
  8874. each 'JUMP_INSN' and 'CALL_INSN'. These can be used to improve
  8875. optimization. Currently, they are only used in one place: in
  8876. 'reorg.c', instead of guessing which path a branch is most likely
  8877. to take, the 'REG_BR_PROB' values are used to exactly determine
  8878. which path is taken more often.
  8879. Enabled by '-fprofile-use' and '-fauto-profile'.
  8880. '-fprofile-values'
  8881. If combined with '-fprofile-arcs', it adds code so that some data
  8882. about values of expressions in the program is gathered.
  8883. With '-fbranch-probabilities', it reads back the data gathered from
  8884. profiling values of expressions for usage in optimizations.
  8885. Enabled by '-fprofile-generate', '-fprofile-use', and
  8886. '-fauto-profile'.
  8887. '-fprofile-reorder-functions'
  8888. Function reordering based on profile instrumentation collects first
  8889. time of execution of a function and orders these functions in
  8890. ascending order.
  8891. Enabled with '-fprofile-use'.
  8892. '-fvpt'
  8893. If combined with '-fprofile-arcs', this option instructs the
  8894. compiler to add code to gather information about values of
  8895. expressions.
  8896. With '-fbranch-probabilities', it reads back the data gathered and
  8897. actually performs the optimizations based on them. Currently the
  8898. optimizations include specialization of division operations using
  8899. the knowledge about the value of the denominator.
  8900. Enabled with '-fprofile-use' and '-fauto-profile'.
  8901. '-frename-registers'
  8902. Attempt to avoid false dependencies in scheduled code by making use
  8903. of registers left over after register allocation. This
  8904. optimization most benefits processors with lots of registers.
  8905. Depending on the debug information format adopted by the target,
  8906. however, it can make debugging impossible, since variables no
  8907. longer stay in a "home register".
  8908. Enabled by default with '-funroll-loops'.
  8909. '-fschedule-fusion'
  8910. Performs a target dependent pass over the instruction stream to
  8911. schedule instructions of same type together because target machine
  8912. can execute them more efficiently if they are adjacent to each
  8913. other in the instruction flow.
  8914. Enabled at levels '-O2', '-O3', '-Os'.
  8915. '-ftracer'
  8916. Perform tail duplication to enlarge superblock size. This
  8917. transformation simplifies the control flow of the function allowing
  8918. other optimizations to do a better job.
  8919. Enabled by '-fprofile-use' and '-fauto-profile'.
  8920. '-funroll-loops'
  8921. Unroll loops whose number of iterations can be determined at
  8922. compile time or upon entry to the loop. '-funroll-loops' implies
  8923. '-frerun-cse-after-loop', '-fweb' and '-frename-registers'. It
  8924. also turns on complete loop peeling (i.e. complete removal of loops
  8925. with a small constant number of iterations). This option makes
  8926. code larger, and may or may not make it run faster.
  8927. Enabled by '-fprofile-use' and '-fauto-profile'.
  8928. '-funroll-all-loops'
  8929. Unroll all loops, even if their number of iterations is uncertain
  8930. when the loop is entered. This usually makes programs run more
  8931. slowly. '-funroll-all-loops' implies the same options as
  8932. '-funroll-loops'.
  8933. '-fpeel-loops'
  8934. Peels loops for which there is enough information that they do not
  8935. roll much (from profile feedback or static analysis). It also
  8936. turns on complete loop peeling (i.e. complete removal of loops with
  8937. small constant number of iterations).
  8938. Enabled by '-O3', '-fprofile-use', and '-fauto-profile'.
  8939. '-fmove-loop-invariants'
  8940. Enables the loop invariant motion pass in the RTL loop optimizer.
  8941. Enabled at level '-O1' and higher, except for '-Og'.
  8942. '-fsplit-loops'
  8943. Split a loop into two if it contains a condition that's always true
  8944. for one side of the iteration space and false for the other.
  8945. Enabled by '-fprofile-use' and '-fauto-profile'.
  8946. '-funswitch-loops'
  8947. Move branches with loop invariant conditions out of the loop, with
  8948. duplicates of the loop on both branches (modified according to
  8949. result of the condition).
  8950. Enabled by '-fprofile-use' and '-fauto-profile'.
  8951. '-fversion-loops-for-strides'
  8952. If a loop iterates over an array with a variable stride, create
  8953. another version of the loop that assumes the stride is always one.
  8954. For example:
  8955. for (int i = 0; i < n; ++i)
  8956. x[i * stride] = ...;
  8957. becomes:
  8958. if (stride == 1)
  8959. for (int i = 0; i < n; ++i)
  8960. x[i] = ...;
  8961. else
  8962. for (int i = 0; i < n; ++i)
  8963. x[i * stride] = ...;
  8964. This is particularly useful for assumed-shape arrays in Fortran
  8965. where (for example) it allows better vectorization assuming
  8966. contiguous accesses. This flag is enabled by default at '-O3'. It
  8967. is also enabled by '-fprofile-use' and '-fauto-profile'.
  8968. '-ffunction-sections'
  8969. '-fdata-sections'
  8970. Place each function or data item into its own section in the output
  8971. file if the target supports arbitrary sections. The name of the
  8972. function or the name of the data item determines the section's name
  8973. in the output file.
  8974. Use these options on systems where the linker can perform
  8975. optimizations to improve locality of reference in the instruction
  8976. space. Most systems using the ELF object format have linkers with
  8977. such optimizations. On AIX, the linker rearranges sections
  8978. (CSECTs) based on the call graph. The performance impact varies.
  8979. Together with a linker garbage collection (linker '--gc-sections'
  8980. option) these options may lead to smaller statically-linked
  8981. executables (after stripping).
  8982. On ELF/DWARF systems these options do not degenerate the quality of
  8983. the debug information. There could be issues with other object
  8984. files/debug info formats.
  8985. Only use these options when there are significant benefits from
  8986. doing so. When you specify these options, the assembler and linker
  8987. create larger object and executable files and are also slower.
  8988. These options affect code generation. They prevent optimizations
  8989. by the compiler and assembler using relative locations inside a
  8990. translation unit since the locations are unknown until link time.
  8991. An example of such an optimization is relaxing calls to short call
  8992. instructions.
  8993. '-fstdarg-opt'
  8994. Optimize the prologue of variadic argument functions with respect
  8995. to usage of those arguments.
  8996. '-fsection-anchors'
  8997. Try to reduce the number of symbolic address calculations by using
  8998. shared "anchor" symbols to address nearby objects. This
  8999. transformation can help to reduce the number of GOT entries and GOT
  9000. accesses on some targets.
  9001. For example, the implementation of the following function 'foo':
  9002. static int a, b, c;
  9003. int foo (void) { return a + b + c; }
  9004. usually calculates the addresses of all three variables, but if you
  9005. compile it with '-fsection-anchors', it accesses the variables from
  9006. a common anchor point instead. The effect is similar to the
  9007. following pseudocode (which isn't valid C):
  9008. int foo (void)
  9009. {
  9010. register int *xr = &x;
  9011. return xr[&a - &x] + xr[&b - &x] + xr[&c - &x];
  9012. }
  9013. Not all targets support this option.
  9014. '--param NAME=VALUE'
  9015. In some places, GCC uses various constants to control the amount of
  9016. optimization that is done. For example, GCC does not inline
  9017. functions that contain more than a certain number of instructions.
  9018. You can control some of these constants on the command line using
  9019. the '--param' option.
  9020. The names of specific parameters, and the meaning of the values,
  9021. are tied to the internals of the compiler, and are subject to
  9022. change without notice in future releases.
  9023. In order to get minimal, maximal and default value of a parameter,
  9024. one can use '--help=param -Q' options.
  9025. In each case, the VALUE is an integer. The following choices of
  9026. NAME are recognized for all targets:
  9027. 'predictable-branch-outcome'
  9028. When branch is predicted to be taken with probability lower
  9029. than this threshold (in percent), then it is considered well
  9030. predictable.
  9031. 'max-rtl-if-conversion-insns'
  9032. RTL if-conversion tries to remove conditional branches around
  9033. a block and replace them with conditionally executed
  9034. instructions. This parameter gives the maximum number of
  9035. instructions in a block which should be considered for
  9036. if-conversion. The compiler will also use other heuristics to
  9037. decide whether if-conversion is likely to be profitable.
  9038. 'max-rtl-if-conversion-predictable-cost'
  9039. 'max-rtl-if-conversion-unpredictable-cost'
  9040. RTL if-conversion will try to remove conditional branches
  9041. around a block and replace them with conditionally executed
  9042. instructions. These parameters give the maximum permissible
  9043. cost for the sequence that would be generated by if-conversion
  9044. depending on whether the branch is statically determined to be
  9045. predictable or not. The units for this parameter are the same
  9046. as those for the GCC internal seq_cost metric. The compiler
  9047. will try to provide a reasonable default for this parameter
  9048. using the BRANCH_COST target macro.
  9049. 'max-crossjump-edges'
  9050. The maximum number of incoming edges to consider for
  9051. cross-jumping. The algorithm used by '-fcrossjumping' is
  9052. O(N^2) in the number of edges incoming to each block.
  9053. Increasing values mean more aggressive optimization, making
  9054. the compilation time increase with probably small improvement
  9055. in executable size.
  9056. 'min-crossjump-insns'
  9057. The minimum number of instructions that must be matched at the
  9058. end of two blocks before cross-jumping is performed on them.
  9059. This value is ignored in the case where all instructions in
  9060. the block being cross-jumped from are matched.
  9061. 'max-grow-copy-bb-insns'
  9062. The maximum code size expansion factor when copying basic
  9063. blocks instead of jumping. The expansion is relative to a
  9064. jump instruction.
  9065. 'max-goto-duplication-insns'
  9066. The maximum number of instructions to duplicate to a block
  9067. that jumps to a computed goto. To avoid O(N^2) behavior in a
  9068. number of passes, GCC factors computed gotos early in the
  9069. compilation process, and unfactors them as late as possible.
  9070. Only computed jumps at the end of a basic blocks with no more
  9071. than max-goto-duplication-insns are unfactored.
  9072. 'max-delay-slot-insn-search'
  9073. The maximum number of instructions to consider when looking
  9074. for an instruction to fill a delay slot. If more than this
  9075. arbitrary number of instructions are searched, the time
  9076. savings from filling the delay slot are minimal, so stop
  9077. searching. Increasing values mean more aggressive
  9078. optimization, making the compilation time increase with
  9079. probably small improvement in execution time.
  9080. 'max-delay-slot-live-search'
  9081. When trying to fill delay slots, the maximum number of
  9082. instructions to consider when searching for a block with valid
  9083. live register information. Increasing this arbitrarily chosen
  9084. value means more aggressive optimization, increasing the
  9085. compilation time. This parameter should be removed when the
  9086. delay slot code is rewritten to maintain the control-flow
  9087. graph.
  9088. 'max-gcse-memory'
  9089. The approximate maximum amount of memory that can be allocated
  9090. in order to perform the global common subexpression
  9091. elimination optimization. If more memory than specified is
  9092. required, the optimization is not done.
  9093. 'max-gcse-insertion-ratio'
  9094. If the ratio of expression insertions to deletions is larger
  9095. than this value for any expression, then RTL PRE inserts or
  9096. removes the expression and thus leaves partially redundant
  9097. computations in the instruction stream.
  9098. 'max-pending-list-length'
  9099. The maximum number of pending dependencies scheduling allows
  9100. before flushing the current state and starting over. Large
  9101. functions with few branches or calls can create excessively
  9102. large lists which needlessly consume memory and resources.
  9103. 'max-modulo-backtrack-attempts'
  9104. The maximum number of backtrack attempts the scheduler should
  9105. make when modulo scheduling a loop. Larger values can
  9106. exponentially increase compilation time.
  9107. 'max-inline-insns-single'
  9108. Several parameters control the tree inliner used in GCC. This
  9109. number sets the maximum number of instructions (counted in
  9110. GCC's internal representation) in a single function that the
  9111. tree inliner considers for inlining. This only affects
  9112. functions declared inline and methods implemented in a class
  9113. declaration (C++).
  9114. 'max-inline-insns-auto'
  9115. When you use '-finline-functions' (included in '-O3'), a lot
  9116. of functions that would otherwise not be considered for
  9117. inlining by the compiler are investigated. To those
  9118. functions, a different (more restrictive) limit compared to
  9119. functions declared inline can be applied ('--param
  9120. max-inline-insns-auto').
  9121. 'max-inline-insns-small'
  9122. This is bound applied to calls which are considered relevant
  9123. with '-finline-small-functions'.
  9124. 'max-inline-insns-size'
  9125. This is bound applied to calls which are optimized for size.
  9126. Small growth may be desirable to anticipate optimization
  9127. oppurtunities exposed by inlining.
  9128. 'uninlined-function-insns'
  9129. Number of instructions accounted by inliner for function
  9130. overhead such as function prologue and epilogue.
  9131. 'uninlined-function-time'
  9132. Extra time accounted by inliner for function overhead such as
  9133. time needed to execute function prologue and epilogue
  9134. 'inline-heuristics-hint-percent'
  9135. The scale (in percents) applied to 'inline-insns-single',
  9136. 'inline-insns-single-O2', 'inline-insns-auto' when inline
  9137. heuristics hints that inlining is very profitable (will enable
  9138. later optimizations).
  9139. 'uninlined-thunk-insns'
  9140. 'uninlined-thunk-time'
  9141. Same as '--param uninlined-function-insns' and '--param
  9142. uninlined-function-time' but applied to function thunks
  9143. 'inline-min-speedup'
  9144. When estimated performance improvement of caller + callee
  9145. runtime exceeds this threshold (in percent), the function can
  9146. be inlined regardless of the limit on '--param
  9147. max-inline-insns-single' and '--param max-inline-insns-auto'.
  9148. 'large-function-insns'
  9149. The limit specifying really large functions. For functions
  9150. larger than this limit after inlining, inlining is constrained
  9151. by '--param large-function-growth'. This parameter is useful
  9152. primarily to avoid extreme compilation time caused by
  9153. non-linear algorithms used by the back end.
  9154. 'large-function-growth'
  9155. Specifies maximal growth of large function caused by inlining
  9156. in percents. For example, parameter value 100 limits large
  9157. function growth to 2.0 times the original size.
  9158. 'large-unit-insns'
  9159. The limit specifying large translation unit. Growth caused by
  9160. inlining of units larger than this limit is limited by
  9161. '--param inline-unit-growth'. For small units this might be
  9162. too tight. For example, consider a unit consisting of
  9163. function A that is inline and B that just calls A three times.
  9164. If B is small relative to A, the growth of unit is 300\% and
  9165. yet such inlining is very sane. For very large units
  9166. consisting of small inlineable functions, however, the overall
  9167. unit growth limit is needed to avoid exponential explosion of
  9168. code size. Thus for smaller units, the size is increased to
  9169. '--param large-unit-insns' before applying '--param
  9170. inline-unit-growth'.
  9171. 'inline-unit-growth'
  9172. Specifies maximal overall growth of the compilation unit
  9173. caused by inlining. For example, parameter value 20 limits
  9174. unit growth to 1.2 times the original size. Cold functions
  9175. (either marked cold via an attribute or by profile feedback)
  9176. are not accounted into the unit size.
  9177. 'ipcp-unit-growth'
  9178. Specifies maximal overall growth of the compilation unit
  9179. caused by interprocedural constant propagation. For example,
  9180. parameter value 10 limits unit growth to 1.1 times the
  9181. original size.
  9182. 'large-stack-frame'
  9183. The limit specifying large stack frames. While inlining the
  9184. algorithm is trying to not grow past this limit too much.
  9185. 'large-stack-frame-growth'
  9186. Specifies maximal growth of large stack frames caused by
  9187. inlining in percents. For example, parameter value 1000
  9188. limits large stack frame growth to 11 times the original size.
  9189. 'max-inline-insns-recursive'
  9190. 'max-inline-insns-recursive-auto'
  9191. Specifies the maximum number of instructions an out-of-line
  9192. copy of a self-recursive inline function can grow into by
  9193. performing recursive inlining.
  9194. '--param max-inline-insns-recursive' applies to functions
  9195. declared inline. For functions not declared inline, recursive
  9196. inlining happens only when '-finline-functions' (included in
  9197. '-O3') is enabled; '--param max-inline-insns-recursive-auto'
  9198. applies instead.
  9199. 'max-inline-recursive-depth'
  9200. 'max-inline-recursive-depth-auto'
  9201. Specifies the maximum recursion depth used for recursive
  9202. inlining.
  9203. '--param max-inline-recursive-depth' applies to functions
  9204. declared inline. For functions not declared inline, recursive
  9205. inlining happens only when '-finline-functions' (included in
  9206. '-O3') is enabled; '--param max-inline-recursive-depth-auto'
  9207. applies instead.
  9208. 'min-inline-recursive-probability'
  9209. Recursive inlining is profitable only for function having deep
  9210. recursion in average and can hurt for function having little
  9211. recursion depth by increasing the prologue size or complexity
  9212. of function body to other optimizers.
  9213. When profile feedback is available (see '-fprofile-generate')
  9214. the actual recursion depth can be guessed from the probability
  9215. that function recurses via a given call expression. This
  9216. parameter limits inlining only to call expressions whose
  9217. probability exceeds the given threshold (in percents).
  9218. 'early-inlining-insns'
  9219. Specify growth that the early inliner can make. In effect it
  9220. increases the amount of inlining for code having a large
  9221. abstraction penalty.
  9222. 'max-early-inliner-iterations'
  9223. Limit of iterations of the early inliner. This basically
  9224. bounds the number of nested indirect calls the early inliner
  9225. can resolve. Deeper chains are still handled by late
  9226. inlining.
  9227. 'comdat-sharing-probability'
  9228. Probability (in percent) that C++ inline function with comdat
  9229. visibility are shared across multiple compilation units.
  9230. 'profile-func-internal-id'
  9231. A parameter to control whether to use function internal id in
  9232. profile database lookup. If the value is 0, the compiler uses
  9233. an id that is based on function assembler name and filename,
  9234. which makes old profile data more tolerant to source changes
  9235. such as function reordering etc.
  9236. 'min-vect-loop-bound'
  9237. The minimum number of iterations under which loops are not
  9238. vectorized when '-ftree-vectorize' is used. The number of
  9239. iterations after vectorization needs to be greater than the
  9240. value specified by this option to allow vectorization.
  9241. 'gcse-cost-distance-ratio'
  9242. Scaling factor in calculation of maximum distance an
  9243. expression can be moved by GCSE optimizations. This is
  9244. currently supported only in the code hoisting pass. The
  9245. bigger the ratio, the more aggressive code hoisting is with
  9246. simple expressions, i.e., the expressions that have cost less
  9247. than 'gcse-unrestricted-cost'. Specifying 0 disables hoisting
  9248. of simple expressions.
  9249. 'gcse-unrestricted-cost'
  9250. Cost, roughly measured as the cost of a single typical machine
  9251. instruction, at which GCSE optimizations do not constrain the
  9252. distance an expression can travel. This is currently
  9253. supported only in the code hoisting pass. The lesser the
  9254. cost, the more aggressive code hoisting is. Specifying 0
  9255. allows all expressions to travel unrestricted distances.
  9256. 'max-hoist-depth'
  9257. The depth of search in the dominator tree for expressions to
  9258. hoist. This is used to avoid quadratic behavior in hoisting
  9259. algorithm. The value of 0 does not limit on the search, but
  9260. may slow down compilation of huge functions.
  9261. 'max-tail-merge-comparisons'
  9262. The maximum amount of similar bbs to compare a bb with. This
  9263. is used to avoid quadratic behavior in tree tail merging.
  9264. 'max-tail-merge-iterations'
  9265. The maximum amount of iterations of the pass over the
  9266. function. This is used to limit compilation time in tree tail
  9267. merging.
  9268. 'store-merging-allow-unaligned'
  9269. Allow the store merging pass to introduce unaligned stores if
  9270. it is legal to do so.
  9271. 'max-stores-to-merge'
  9272. The maximum number of stores to attempt to merge into wider
  9273. stores in the store merging pass.
  9274. 'max-unrolled-insns'
  9275. The maximum number of instructions that a loop may have to be
  9276. unrolled. If a loop is unrolled, this parameter also
  9277. determines how many times the loop code is unrolled.
  9278. 'max-average-unrolled-insns'
  9279. The maximum number of instructions biased by probabilities of
  9280. their execution that a loop may have to be unrolled. If a
  9281. loop is unrolled, this parameter also determines how many
  9282. times the loop code is unrolled.
  9283. 'max-unroll-times'
  9284. The maximum number of unrollings of a single loop.
  9285. 'max-peeled-insns'
  9286. The maximum number of instructions that a loop may have to be
  9287. peeled. If a loop is peeled, this parameter also determines
  9288. how many times the loop code is peeled.
  9289. 'max-peel-times'
  9290. The maximum number of peelings of a single loop.
  9291. 'max-peel-branches'
  9292. The maximum number of branches on the hot path through the
  9293. peeled sequence.
  9294. 'max-completely-peeled-insns'
  9295. The maximum number of insns of a completely peeled loop.
  9296. 'max-completely-peel-times'
  9297. The maximum number of iterations of a loop to be suitable for
  9298. complete peeling.
  9299. 'max-completely-peel-loop-nest-depth'
  9300. The maximum depth of a loop nest suitable for complete
  9301. peeling.
  9302. 'max-unswitch-insns'
  9303. The maximum number of insns of an unswitched loop.
  9304. 'max-unswitch-level'
  9305. The maximum number of branches unswitched in a single loop.
  9306. 'lim-expensive'
  9307. The minimum cost of an expensive expression in the loop
  9308. invariant motion.
  9309. 'min-loop-cond-split-prob'
  9310. When FDO profile information is available,
  9311. 'min-loop-cond-split-prob' specifies minimum threshold for
  9312. probability of semi-invariant condition statement to trigger
  9313. loop split.
  9314. 'iv-consider-all-candidates-bound'
  9315. Bound on number of candidates for induction variables, below
  9316. which all candidates are considered for each use in induction
  9317. variable optimizations. If there are more candidates than
  9318. this, only the most relevant ones are considered to avoid
  9319. quadratic time complexity.
  9320. 'iv-max-considered-uses'
  9321. The induction variable optimizations give up on loops that
  9322. contain more induction variable uses.
  9323. 'iv-always-prune-cand-set-bound'
  9324. If the number of candidates in the set is smaller than this
  9325. value, always try to remove unnecessary ivs from the set when
  9326. adding a new one.
  9327. 'avg-loop-niter'
  9328. Average number of iterations of a loop.
  9329. 'dse-max-object-size'
  9330. Maximum size (in bytes) of objects tracked bytewise by dead
  9331. store elimination. Larger values may result in larger
  9332. compilation times.
  9333. 'dse-max-alias-queries-per-store'
  9334. Maximum number of queries into the alias oracle per store.
  9335. Larger values result in larger compilation times and may
  9336. result in more removed dead stores.
  9337. 'scev-max-expr-size'
  9338. Bound on size of expressions used in the scalar evolutions
  9339. analyzer. Large expressions slow the analyzer.
  9340. 'scev-max-expr-complexity'
  9341. Bound on the complexity of the expressions in the scalar
  9342. evolutions analyzer. Complex expressions slow the analyzer.
  9343. 'max-tree-if-conversion-phi-args'
  9344. Maximum number of arguments in a PHI supported by TREE if
  9345. conversion unless the loop is marked with simd pragma.
  9346. 'vect-max-version-for-alignment-checks'
  9347. The maximum number of run-time checks that can be performed
  9348. when doing loop versioning for alignment in the vectorizer.
  9349. 'vect-max-version-for-alias-checks'
  9350. The maximum number of run-time checks that can be performed
  9351. when doing loop versioning for alias in the vectorizer.
  9352. 'vect-max-peeling-for-alignment'
  9353. The maximum number of loop peels to enhance access alignment
  9354. for vectorizer. Value -1 means no limit.
  9355. 'max-iterations-to-track'
  9356. The maximum number of iterations of a loop the brute-force
  9357. algorithm for analysis of the number of iterations of the loop
  9358. tries to evaluate.
  9359. 'hot-bb-count-fraction'
  9360. The denominator n of fraction 1/n of the maximal execution
  9361. count of a basic block in the entire program that a basic
  9362. block needs to at least have in order to be considered hot.
  9363. The default is 10000, which means that a basic block is
  9364. considered hot if its execution count is greater than 1/10000
  9365. of the maximal execution count. 0 means that it is never
  9366. considered hot. Used in non-LTO mode.
  9367. 'hot-bb-count-ws-permille'
  9368. The number of most executed permilles, ranging from 0 to 1000,
  9369. of the profiled execution of the entire program to which the
  9370. execution count of a basic block must be part of in order to
  9371. be considered hot. The default is 990, which means that a
  9372. basic block is considered hot if its execution count
  9373. contributes to the upper 990 permilles, or 99.0%, of the
  9374. profiled execution of the entire program. 0 means that it is
  9375. never considered hot. Used in LTO mode.
  9376. 'hot-bb-frequency-fraction'
  9377. The denominator n of fraction 1/n of the execution frequency
  9378. of the entry block of a function that a basic block of this
  9379. function needs to at least have in order to be considered hot.
  9380. The default is 1000, which means that a basic block is
  9381. considered hot in a function if it is executed more frequently
  9382. than 1/1000 of the frequency of the entry block of the
  9383. function. 0 means that it is never considered hot.
  9384. 'unlikely-bb-count-fraction'
  9385. The denominator n of fraction 1/n of the number of profiled
  9386. runs of the entire program below which the execution count of
  9387. a basic block must be in order for the basic block to be
  9388. considered unlikely executed. The default is 20, which means
  9389. that a basic block is considered unlikely executed if it is
  9390. executed in fewer than 1/20, or 5%, of the runs of the
  9391. program. 0 means that it is always considered unlikely
  9392. executed.
  9393. 'max-predicted-iterations'
  9394. The maximum number of loop iterations we predict statically.
  9395. This is useful in cases where a function contains a single
  9396. loop with known bound and another loop with unknown bound.
  9397. The known number of iterations is predicted correctly, while
  9398. the unknown number of iterations average to roughly 10. This
  9399. means that the loop without bounds appears artificially cold
  9400. relative to the other one.
  9401. 'builtin-expect-probability'
  9402. Control the probability of the expression having the specified
  9403. value. This parameter takes a percentage (i.e. 0 ... 100) as
  9404. input.
  9405. 'builtin-string-cmp-inline-length'
  9406. The maximum length of a constant string for a builtin string
  9407. cmp call eligible for inlining.
  9408. 'align-threshold'
  9409. Select fraction of the maximal frequency of executions of a
  9410. basic block in a function to align the basic block.
  9411. 'align-loop-iterations'
  9412. A loop expected to iterate at least the selected number of
  9413. iterations is aligned.
  9414. 'tracer-dynamic-coverage'
  9415. 'tracer-dynamic-coverage-feedback'
  9416. This value is used to limit superblock formation once the
  9417. given percentage of executed instructions is covered. This
  9418. limits unnecessary code size expansion.
  9419. The 'tracer-dynamic-coverage-feedback' parameter is used only
  9420. when profile feedback is available. The real profiles (as
  9421. opposed to statically estimated ones) are much less balanced
  9422. allowing the threshold to be larger value.
  9423. 'tracer-max-code-growth'
  9424. Stop tail duplication once code growth has reached given
  9425. percentage. This is a rather artificial limit, as most of the
  9426. duplicates are eliminated later in cross jumping, so it may be
  9427. set to much higher values than is the desired code growth.
  9428. 'tracer-min-branch-ratio'
  9429. Stop reverse growth when the reverse probability of best edge
  9430. is less than this threshold (in percent).
  9431. 'tracer-min-branch-probability'
  9432. 'tracer-min-branch-probability-feedback'
  9433. Stop forward growth if the best edge has probability lower
  9434. than this threshold.
  9435. Similarly to 'tracer-dynamic-coverage' two parameters are
  9436. provided. 'tracer-min-branch-probability-feedback' is used
  9437. for compilation with profile feedback and
  9438. 'tracer-min-branch-probability' compilation without. The
  9439. value for compilation with profile feedback needs to be more
  9440. conservative (higher) in order to make tracer effective.
  9441. 'stack-clash-protection-guard-size'
  9442. Specify the size of the operating system provided stack guard
  9443. as 2 raised to NUM bytes. Higher values may reduce the number
  9444. of explicit probes, but a value larger than the operating
  9445. system provided guard will leave code vulnerable to stack
  9446. clash style attacks.
  9447. 'stack-clash-protection-probe-interval'
  9448. Stack clash protection involves probing stack space as it is
  9449. allocated. This param controls the maximum distance between
  9450. probes into the stack as 2 raised to NUM bytes. Higher values
  9451. may reduce the number of explicit probes, but a value larger
  9452. than the operating system provided guard will leave code
  9453. vulnerable to stack clash style attacks.
  9454. 'max-cse-path-length'
  9455. The maximum number of basic blocks on path that CSE considers.
  9456. 'max-cse-insns'
  9457. The maximum number of instructions CSE processes before
  9458. flushing.
  9459. 'ggc-min-expand'
  9460. GCC uses a garbage collector to manage its own memory
  9461. allocation. This parameter specifies the minimum percentage
  9462. by which the garbage collector's heap should be allowed to
  9463. expand between collections. Tuning this may improve
  9464. compilation speed; it has no effect on code generation.
  9465. The default is 30% + 70% * (RAM/1GB) with an upper bound of
  9466. 100% when RAM >= 1GB. If 'getrlimit' is available, the notion
  9467. of "RAM" is the smallest of actual RAM and 'RLIMIT_DATA' or
  9468. 'RLIMIT_AS'. If GCC is not able to calculate RAM on a
  9469. particular platform, the lower bound of 30% is used. Setting
  9470. this parameter and 'ggc-min-heapsize' to zero causes a full
  9471. collection to occur at every opportunity. This is extremely
  9472. slow, but can be useful for debugging.
  9473. 'ggc-min-heapsize'
  9474. Minimum size of the garbage collector's heap before it begins
  9475. bothering to collect garbage. The first collection occurs
  9476. after the heap expands by 'ggc-min-expand'% beyond
  9477. 'ggc-min-heapsize'. Again, tuning this may improve
  9478. compilation speed, and has no effect on code generation.
  9479. The default is the smaller of RAM/8, RLIMIT_RSS, or a limit
  9480. that tries to ensure that RLIMIT_DATA or RLIMIT_AS are not
  9481. exceeded, but with a lower bound of 4096 (four megabytes) and
  9482. an upper bound of 131072 (128 megabytes). If GCC is not able
  9483. to calculate RAM on a particular platform, the lower bound is
  9484. used. Setting this parameter very large effectively disables
  9485. garbage collection. Setting this parameter and
  9486. 'ggc-min-expand' to zero causes a full collection to occur at
  9487. every opportunity.
  9488. 'max-reload-search-insns'
  9489. The maximum number of instruction reload should look backward
  9490. for equivalent register. Increasing values mean more
  9491. aggressive optimization, making the compilation time increase
  9492. with probably slightly better performance.
  9493. 'max-cselib-memory-locations'
  9494. The maximum number of memory locations cselib should take into
  9495. account. Increasing values mean more aggressive optimization,
  9496. making the compilation time increase with probably slightly
  9497. better performance.
  9498. 'max-sched-ready-insns'
  9499. The maximum number of instructions ready to be issued the
  9500. scheduler should consider at any given time during the first
  9501. scheduling pass. Increasing values mean more thorough
  9502. searches, making the compilation time increase with probably
  9503. little benefit.
  9504. 'max-sched-region-blocks'
  9505. The maximum number of blocks in a region to be considered for
  9506. interblock scheduling.
  9507. 'max-pipeline-region-blocks'
  9508. The maximum number of blocks in a region to be considered for
  9509. pipelining in the selective scheduler.
  9510. 'max-sched-region-insns'
  9511. The maximum number of insns in a region to be considered for
  9512. interblock scheduling.
  9513. 'max-pipeline-region-insns'
  9514. The maximum number of insns in a region to be considered for
  9515. pipelining in the selective scheduler.
  9516. 'min-spec-prob'
  9517. The minimum probability (in percents) of reaching a source
  9518. block for interblock speculative scheduling.
  9519. 'max-sched-extend-regions-iters'
  9520. The maximum number of iterations through CFG to extend
  9521. regions. A value of 0 disables region extensions.
  9522. 'max-sched-insn-conflict-delay'
  9523. The maximum conflict delay for an insn to be considered for
  9524. speculative motion.
  9525. 'sched-spec-prob-cutoff'
  9526. The minimal probability of speculation success (in percents),
  9527. so that speculative insns are scheduled.
  9528. 'sched-state-edge-prob-cutoff'
  9529. The minimum probability an edge must have for the scheduler to
  9530. save its state across it.
  9531. 'sched-mem-true-dep-cost'
  9532. Minimal distance (in CPU cycles) between store and load
  9533. targeting same memory locations.
  9534. 'selsched-max-lookahead'
  9535. The maximum size of the lookahead window of selective
  9536. scheduling. It is a depth of search for available
  9537. instructions.
  9538. 'selsched-max-sched-times'
  9539. The maximum number of times that an instruction is scheduled
  9540. during selective scheduling. This is the limit on the number
  9541. of iterations through which the instruction may be pipelined.
  9542. 'selsched-insns-to-rename'
  9543. The maximum number of best instructions in the ready list that
  9544. are considered for renaming in the selective scheduler.
  9545. 'sms-min-sc'
  9546. The minimum value of stage count that swing modulo scheduler
  9547. generates.
  9548. 'max-last-value-rtl'
  9549. The maximum size measured as number of RTLs that can be
  9550. recorded in an expression in combiner for a pseudo register as
  9551. last known value of that register.
  9552. 'max-combine-insns'
  9553. The maximum number of instructions the RTL combiner tries to
  9554. combine.
  9555. 'integer-share-limit'
  9556. Small integer constants can use a shared data structure,
  9557. reducing the compiler's memory usage and increasing its speed.
  9558. This sets the maximum value of a shared integer constant.
  9559. 'ssp-buffer-size'
  9560. The minimum size of buffers (i.e. arrays) that receive stack
  9561. smashing protection when '-fstack-protection' is used.
  9562. 'min-size-for-stack-sharing'
  9563. The minimum size of variables taking part in stack slot
  9564. sharing when not optimizing.
  9565. 'max-jump-thread-duplication-stmts'
  9566. Maximum number of statements allowed in a block that needs to
  9567. be duplicated when threading jumps.
  9568. 'max-fields-for-field-sensitive'
  9569. Maximum number of fields in a structure treated in a field
  9570. sensitive manner during pointer analysis.
  9571. 'prefetch-latency'
  9572. Estimate on average number of instructions that are executed
  9573. before prefetch finishes. The distance prefetched ahead is
  9574. proportional to this constant. Increasing this number may
  9575. also lead to less streams being prefetched (see
  9576. 'simultaneous-prefetches').
  9577. 'simultaneous-prefetches'
  9578. Maximum number of prefetches that can run at the same time.
  9579. 'l1-cache-line-size'
  9580. The size of cache line in L1 data cache, in bytes.
  9581. 'l1-cache-size'
  9582. The size of L1 data cache, in kilobytes.
  9583. 'l2-cache-size'
  9584. The size of L2 data cache, in kilobytes.
  9585. 'prefetch-dynamic-strides'
  9586. Whether the loop array prefetch pass should issue software
  9587. prefetch hints for strides that are non-constant. In some
  9588. cases this may be beneficial, though the fact the stride is
  9589. non-constant may make it hard to predict when there is clear
  9590. benefit to issuing these hints.
  9591. Set to 1 if the prefetch hints should be issued for
  9592. non-constant strides. Set to 0 if prefetch hints should be
  9593. issued only for strides that are known to be constant and
  9594. below 'prefetch-minimum-stride'.
  9595. 'prefetch-minimum-stride'
  9596. Minimum constant stride, in bytes, to start using prefetch
  9597. hints for. If the stride is less than this threshold,
  9598. prefetch hints will not be issued.
  9599. This setting is useful for processors that have hardware
  9600. prefetchers, in which case there may be conflicts between the
  9601. hardware prefetchers and the software prefetchers. If the
  9602. hardware prefetchers have a maximum stride they can handle, it
  9603. should be used here to improve the use of software
  9604. prefetchers.
  9605. A value of -1 means we don't have a threshold and therefore
  9606. prefetch hints can be issued for any constant stride.
  9607. This setting is only useful for strides that are known and
  9608. constant.
  9609. 'loop-interchange-max-num-stmts'
  9610. The maximum number of stmts in a loop to be interchanged.
  9611. 'loop-interchange-stride-ratio'
  9612. The minimum ratio between stride of two loops for interchange
  9613. to be profitable.
  9614. 'min-insn-to-prefetch-ratio'
  9615. The minimum ratio between the number of instructions and the
  9616. number of prefetches to enable prefetching in a loop.
  9617. 'prefetch-min-insn-to-mem-ratio'
  9618. The minimum ratio between the number of instructions and the
  9619. number of memory references to enable prefetching in a loop.
  9620. 'use-canonical-types'
  9621. Whether the compiler should use the "canonical" type system.
  9622. Should always be 1, which uses a more efficient internal
  9623. mechanism for comparing types in C++ and Objective-C++.
  9624. However, if bugs in the canonical type system are causing
  9625. compilation failures, set this value to 0 to disable canonical
  9626. types.
  9627. 'switch-conversion-max-branch-ratio'
  9628. Switch initialization conversion refuses to create arrays that
  9629. are bigger than 'switch-conversion-max-branch-ratio' times the
  9630. number of branches in the switch.
  9631. 'max-partial-antic-length'
  9632. Maximum length of the partial antic set computed during the
  9633. tree partial redundancy elimination optimization
  9634. ('-ftree-pre') when optimizing at '-O3' and above. For some
  9635. sorts of source code the enhanced partial redundancy
  9636. elimination optimization can run away, consuming all of the
  9637. memory available on the host machine. This parameter sets a
  9638. limit on the length of the sets that are computed, which
  9639. prevents the runaway behavior. Setting a value of 0 for this
  9640. parameter allows an unlimited set length.
  9641. 'rpo-vn-max-loop-depth'
  9642. Maximum loop depth that is value-numbered optimistically.
  9643. When the limit hits the innermost RPO-VN-MAX-LOOP-DEPTH loops
  9644. and the outermost loop in the loop nest are value-numbered
  9645. optimistically and the remaining ones not.
  9646. 'sccvn-max-alias-queries-per-access'
  9647. Maximum number of alias-oracle queries we perform when looking
  9648. for redundancies for loads and stores. If this limit is hit
  9649. the search is aborted and the load or store is not considered
  9650. redundant. The number of queries is algorithmically limited
  9651. to the number of stores on all paths from the load to the
  9652. function entry.
  9653. 'ira-max-loops-num'
  9654. IRA uses regional register allocation by default. If a
  9655. function contains more loops than the number given by this
  9656. parameter, only at most the given number of the most
  9657. frequently-executed loops form regions for regional register
  9658. allocation.
  9659. 'ira-max-conflict-table-size'
  9660. Although IRA uses a sophisticated algorithm to compress the
  9661. conflict table, the table can still require excessive amounts
  9662. of memory for huge functions. If the conflict table for a
  9663. function could be more than the size in MB given by this
  9664. parameter, the register allocator instead uses a faster,
  9665. simpler, and lower-quality algorithm that does not require
  9666. building a pseudo-register conflict table.
  9667. 'ira-loop-reserved-regs'
  9668. IRA can be used to evaluate more accurate register pressure in
  9669. loops for decisions to move loop invariants (see '-O3'). The
  9670. number of available registers reserved for some other purposes
  9671. is given by this parameter. Default of the parameter is the
  9672. best found from numerous experiments.
  9673. 'lra-inheritance-ebb-probability-cutoff'
  9674. LRA tries to reuse values reloaded in registers in subsequent
  9675. insns. This optimization is called inheritance. EBB is used
  9676. as a region to do this optimization. The parameter defines a
  9677. minimal fall-through edge probability in percentage used to
  9678. add BB to inheritance EBB in LRA. The default value was chosen
  9679. from numerous runs of SPEC2000 on x86-64.
  9680. 'loop-invariant-max-bbs-in-loop'
  9681. Loop invariant motion can be very expensive, both in
  9682. compilation time and in amount of needed compile-time memory,
  9683. with very large loops. Loops with more basic blocks than this
  9684. parameter won't have loop invariant motion optimization
  9685. performed on them.
  9686. 'loop-max-datarefs-for-datadeps'
  9687. Building data dependencies is expensive for very large loops.
  9688. This parameter limits the number of data references in loops
  9689. that are considered for data dependence analysis. These large
  9690. loops are no handled by the optimizations using loop data
  9691. dependencies.
  9692. 'max-vartrack-size'
  9693. Sets a maximum number of hash table slots to use during
  9694. variable tracking dataflow analysis of any function. If this
  9695. limit is exceeded with variable tracking at assignments
  9696. enabled, analysis for that function is retried without it,
  9697. after removing all debug insns from the function. If the
  9698. limit is exceeded even without debug insns, var tracking
  9699. analysis is completely disabled for the function. Setting the
  9700. parameter to zero makes it unlimited.
  9701. 'max-vartrack-expr-depth'
  9702. Sets a maximum number of recursion levels when attempting to
  9703. map variable names or debug temporaries to value expressions.
  9704. This trades compilation time for more complete debug
  9705. information. If this is set too low, value expressions that
  9706. are available and could be represented in debug information
  9707. may end up not being used; setting this higher may enable the
  9708. compiler to find more complex debug expressions, but compile
  9709. time and memory use may grow.
  9710. 'max-debug-marker-count'
  9711. Sets a threshold on the number of debug markers (e.g. begin
  9712. stmt markers) to avoid complexity explosion at inlining or
  9713. expanding to RTL. If a function has more such gimple stmts
  9714. than the set limit, such stmts will be dropped from the
  9715. inlined copy of a function, and from its RTL expansion.
  9716. 'min-nondebug-insn-uid'
  9717. Use uids starting at this parameter for nondebug insns. The
  9718. range below the parameter is reserved exclusively for debug
  9719. insns created by '-fvar-tracking-assignments', but debug insns
  9720. may get (non-overlapping) uids above it if the reserved range
  9721. is exhausted.
  9722. 'ipa-sra-ptr-growth-factor'
  9723. IPA-SRA replaces a pointer to an aggregate with one or more
  9724. new parameters only when their cumulative size is less or
  9725. equal to 'ipa-sra-ptr-growth-factor' times the size of the
  9726. original pointer parameter.
  9727. 'ipa-sra-max-replacements'
  9728. Maximum pieces of an aggregate that IPA-SRA tracks. As a
  9729. consequence, it is also the maximum number of replacements of
  9730. a formal parameter.
  9731. 'sra-max-scalarization-size-Ospeed'
  9732. 'sra-max-scalarization-size-Osize'
  9733. The two Scalar Reduction of Aggregates passes (SRA and
  9734. IPA-SRA) aim to replace scalar parts of aggregates with uses
  9735. of independent scalar variables. These parameters control the
  9736. maximum size, in storage units, of aggregate which is
  9737. considered for replacement when compiling for speed
  9738. ('sra-max-scalarization-size-Ospeed') or size
  9739. ('sra-max-scalarization-size-Osize') respectively.
  9740. 'sra-max-propagations'
  9741. The maximum number of artificial accesses that Scalar
  9742. Replacement of Aggregates (SRA) will track, per one local
  9743. variable, in order to facilitate copy propagation.
  9744. 'tm-max-aggregate-size'
  9745. When making copies of thread-local variables in a transaction,
  9746. this parameter specifies the size in bytes after which
  9747. variables are saved with the logging functions as opposed to
  9748. save/restore code sequence pairs. This option only applies
  9749. when using '-fgnu-tm'.
  9750. 'graphite-max-nb-scop-params'
  9751. To avoid exponential effects in the Graphite loop transforms,
  9752. the number of parameters in a Static Control Part (SCoP) is
  9753. bounded. A value of zero can be used to lift the bound. A
  9754. variable whose value is unknown at compilation time and
  9755. defined outside a SCoP is a parameter of the SCoP.
  9756. 'loop-block-tile-size'
  9757. Loop blocking or strip mining transforms, enabled with
  9758. '-floop-block' or '-floop-strip-mine', strip mine each loop in
  9759. the loop nest by a given number of iterations. The strip
  9760. length can be changed using the 'loop-block-tile-size'
  9761. parameter.
  9762. 'ipa-cp-value-list-size'
  9763. IPA-CP attempts to track all possible values and types passed
  9764. to a function's parameter in order to propagate them and
  9765. perform devirtualization. 'ipa-cp-value-list-size' is the
  9766. maximum number of values and types it stores per one formal
  9767. parameter of a function.
  9768. 'ipa-cp-eval-threshold'
  9769. IPA-CP calculates its own score of cloning profitability
  9770. heuristics and performs those cloning opportunities with
  9771. scores that exceed 'ipa-cp-eval-threshold'.
  9772. 'ipa-cp-max-recursive-depth'
  9773. Maximum depth of recursive cloning for self-recursive
  9774. function.
  9775. 'ipa-cp-min-recursive-probability'
  9776. Recursive cloning only when the probability of call being
  9777. executed exceeds the parameter.
  9778. 'ipa-cp-recursion-penalty'
  9779. Percentage penalty the recursive functions will receive when
  9780. they are evaluated for cloning.
  9781. 'ipa-cp-single-call-penalty'
  9782. Percentage penalty functions containing a single call to
  9783. another function will receive when they are evaluated for
  9784. cloning.
  9785. 'ipa-max-agg-items'
  9786. IPA-CP is also capable to propagate a number of scalar values
  9787. passed in an aggregate. 'ipa-max-agg-items' controls the
  9788. maximum number of such values per one parameter.
  9789. 'ipa-cp-loop-hint-bonus'
  9790. When IPA-CP determines that a cloning candidate would make the
  9791. number of iterations of a loop known, it adds a bonus of
  9792. 'ipa-cp-loop-hint-bonus' to the profitability score of the
  9793. candidate.
  9794. 'ipa-max-aa-steps'
  9795. During its analysis of function bodies, IPA-CP employs alias
  9796. analysis in order to track values pointed to by function
  9797. parameters. In order not spend too much time analyzing huge
  9798. functions, it gives up and consider all memory clobbered after
  9799. examining 'ipa-max-aa-steps' statements modifying memory.
  9800. 'ipa-max-switch-predicate-bounds'
  9801. Maximal number of boundary endpoints of case ranges of switch
  9802. statement. For switch exceeding this limit, IPA-CP will not
  9803. construct cloning cost predicate, which is used to estimate
  9804. cloning benefit, for default case of the switch statement.
  9805. 'ipa-max-param-expr-ops'
  9806. IPA-CP will analyze conditional statement that references some
  9807. function parameter to estimate benefit for cloning upon
  9808. certain constant value. But if number of operations in a
  9809. parameter expression exceeds 'ipa-max-param-expr-ops', the
  9810. expression is treated as complicated one, and is not handled
  9811. by IPA analysis.
  9812. 'lto-partitions'
  9813. Specify desired number of partitions produced during WHOPR
  9814. compilation. The number of partitions should exceed the
  9815. number of CPUs used for compilation.
  9816. 'lto-min-partition'
  9817. Size of minimal partition for WHOPR (in estimated
  9818. instructions). This prevents expenses of splitting very small
  9819. programs into too many partitions.
  9820. 'lto-max-partition'
  9821. Size of max partition for WHOPR (in estimated instructions).
  9822. to provide an upper bound for individual size of partition.
  9823. Meant to be used only with balanced partitioning.
  9824. 'lto-max-streaming-parallelism'
  9825. Maximal number of parallel processes used for LTO streaming.
  9826. 'cxx-max-namespaces-for-diagnostic-help'
  9827. The maximum number of namespaces to consult for suggestions
  9828. when C++ name lookup fails for an identifier.
  9829. 'sink-frequency-threshold'
  9830. The maximum relative execution frequency (in percents) of the
  9831. target block relative to a statement's original block to allow
  9832. statement sinking of a statement. Larger numbers result in
  9833. more aggressive statement sinking. A small positive
  9834. adjustment is applied for statements with memory operands as
  9835. those are even more profitable so sink.
  9836. 'max-stores-to-sink'
  9837. The maximum number of conditional store pairs that can be
  9838. sunk. Set to 0 if either vectorization ('-ftree-vectorize')
  9839. or if-conversion ('-ftree-loop-if-convert') is disabled.
  9840. 'case-values-threshold'
  9841. The smallest number of different values for which it is best
  9842. to use a jump-table instead of a tree of conditional branches.
  9843. If the value is 0, use the default for the machine.
  9844. 'jump-table-max-growth-ratio-for-size'
  9845. The maximum code size growth ratio when expanding into a jump
  9846. table (in percent). The parameter is used when optimizing for
  9847. size.
  9848. 'jump-table-max-growth-ratio-for-speed'
  9849. The maximum code size growth ratio when expanding into a jump
  9850. table (in percent). The parameter is used when optimizing for
  9851. speed.
  9852. 'tree-reassoc-width'
  9853. Set the maximum number of instructions executed in parallel in
  9854. reassociated tree. This parameter overrides target dependent
  9855. heuristics used by default if has non zero value.
  9856. 'sched-pressure-algorithm'
  9857. Choose between the two available implementations of
  9858. '-fsched-pressure'. Algorithm 1 is the original
  9859. implementation and is the more likely to prevent instructions
  9860. from being reordered. Algorithm 2 was designed to be a
  9861. compromise between the relatively conservative approach taken
  9862. by algorithm 1 and the rather aggressive approach taken by the
  9863. default scheduler. It relies more heavily on having a regular
  9864. register file and accurate register pressure classes. See
  9865. 'haifa-sched.c' in the GCC sources for more details.
  9866. The default choice depends on the target.
  9867. 'max-slsr-cand-scan'
  9868. Set the maximum number of existing candidates that are
  9869. considered when seeking a basis for a new straight-line
  9870. strength reduction candidate.
  9871. 'asan-globals'
  9872. Enable buffer overflow detection for global objects. This
  9873. kind of protection is enabled by default if you are using
  9874. '-fsanitize=address' option. To disable global objects
  9875. protection use '--param asan-globals=0'.
  9876. 'asan-stack'
  9877. Enable buffer overflow detection for stack objects. This kind
  9878. of protection is enabled by default when using
  9879. '-fsanitize=address'. To disable stack protection use
  9880. '--param asan-stack=0' option.
  9881. 'asan-instrument-reads'
  9882. Enable buffer overflow detection for memory reads. This kind
  9883. of protection is enabled by default when using
  9884. '-fsanitize=address'. To disable memory reads protection use
  9885. '--param asan-instrument-reads=0'.
  9886. 'asan-instrument-writes'
  9887. Enable buffer overflow detection for memory writes. This kind
  9888. of protection is enabled by default when using
  9889. '-fsanitize=address'. To disable memory writes protection use
  9890. '--param asan-instrument-writes=0' option.
  9891. 'asan-memintrin'
  9892. Enable detection for built-in functions. This kind of
  9893. protection is enabled by default when using
  9894. '-fsanitize=address'. To disable built-in functions
  9895. protection use '--param asan-memintrin=0'.
  9896. 'asan-use-after-return'
  9897. Enable detection of use-after-return. This kind of protection
  9898. is enabled by default when using the '-fsanitize=address'
  9899. option. To disable it use '--param asan-use-after-return=0'.
  9900. Note: By default the check is disabled at run time. To enable
  9901. it, add 'detect_stack_use_after_return=1' to the environment
  9902. variable 'ASAN_OPTIONS'.
  9903. 'asan-instrumentation-with-call-threshold'
  9904. If number of memory accesses in function being instrumented is
  9905. greater or equal to this number, use callbacks instead of
  9906. inline checks. E.g. to disable inline code use '--param
  9907. asan-instrumentation-with-call-threshold=0'.
  9908. 'use-after-scope-direct-emission-threshold'
  9909. If the size of a local variable in bytes is smaller or equal
  9910. to this number, directly poison (or unpoison) shadow memory
  9911. instead of using run-time callbacks.
  9912. 'max-fsm-thread-path-insns'
  9913. Maximum number of instructions to copy when duplicating blocks
  9914. on a finite state automaton jump thread path.
  9915. 'max-fsm-thread-length'
  9916. Maximum number of basic blocks on a finite state automaton
  9917. jump thread path.
  9918. 'max-fsm-thread-paths'
  9919. Maximum number of new jump thread paths to create for a finite
  9920. state automaton.
  9921. 'parloops-chunk-size'
  9922. Chunk size of omp schedule for loops parallelized by parloops.
  9923. 'parloops-schedule'
  9924. Schedule type of omp schedule for loops parallelized by
  9925. parloops (static, dynamic, guided, auto, runtime).
  9926. 'parloops-min-per-thread'
  9927. The minimum number of iterations per thread of an innermost
  9928. parallelized loop for which the parallelized variant is
  9929. preferred over the single threaded one. Note that for a
  9930. parallelized loop nest the minimum number of iterations of the
  9931. outermost loop per thread is two.
  9932. 'max-ssa-name-query-depth'
  9933. Maximum depth of recursion when querying properties of SSA
  9934. names in things like fold routines. One level of recursion
  9935. corresponds to following a use-def chain.
  9936. 'hsa-gen-debug-stores'
  9937. Enable emission of special debug stores within HSA kernels
  9938. which are then read and reported by libgomp plugin.
  9939. Generation of these stores is disabled by default, use
  9940. '--param hsa-gen-debug-stores=1' to enable it.
  9941. 'max-speculative-devirt-maydefs'
  9942. The maximum number of may-defs we analyze when looking for a
  9943. must-def specifying the dynamic type of an object that invokes
  9944. a virtual call we may be able to devirtualize speculatively.
  9945. 'max-vrp-switch-assertions'
  9946. The maximum number of assertions to add along the default edge
  9947. of a switch statement during VRP.
  9948. 'unroll-jam-min-percent'
  9949. The minimum percentage of memory references that must be
  9950. optimized away for the unroll-and-jam transformation to be
  9951. considered profitable.
  9952. 'unroll-jam-max-unroll'
  9953. The maximum number of times the outer loop should be unrolled
  9954. by the unroll-and-jam transformation.
  9955. 'max-rtl-if-conversion-unpredictable-cost'
  9956. Maximum permissible cost for the sequence that would be
  9957. generated by the RTL if-conversion pass for a branch that is
  9958. considered unpredictable.
  9959. 'max-variable-expansions-in-unroller'
  9960. If '-fvariable-expansion-in-unroller' is used, the maximum
  9961. number of times that an individual variable will be expanded
  9962. during loop unrolling.
  9963. 'tracer-min-branch-probability-feedback'
  9964. Stop forward growth if the probability of best edge is less
  9965. than this threshold (in percent). Used when profile feedback
  9966. is available.
  9967. 'partial-inlining-entry-probability'
  9968. Maximum probability of the entry BB of split region (in
  9969. percent relative to entry BB of the function) to make partial
  9970. inlining happen.
  9971. 'max-tracked-strlens'
  9972. Maximum number of strings for which strlen optimization pass
  9973. will track string lengths.
  9974. 'gcse-after-reload-partial-fraction'
  9975. The threshold ratio for performing partial redundancy
  9976. elimination after reload.
  9977. 'gcse-after-reload-critical-fraction'
  9978. The threshold ratio of critical edges execution count that
  9979. permit performing redundancy elimination after reload.
  9980. 'max-loop-header-insns'
  9981. The maximum number of insns in loop header duplicated by the
  9982. copy loop headers pass.
  9983. 'vect-epilogues-nomask'
  9984. Enable loop epilogue vectorization using smaller vector size.
  9985. 'slp-max-insns-in-bb'
  9986. Maximum number of instructions in basic block to be considered
  9987. for SLP vectorization.
  9988. 'avoid-fma-max-bits'
  9989. Maximum number of bits for which we avoid creating FMAs.
  9990. 'sms-loop-average-count-threshold'
  9991. A threshold on the average loop count considered by the swing
  9992. modulo scheduler.
  9993. 'sms-dfa-history'
  9994. The number of cycles the swing modulo scheduler considers when
  9995. checking conflicts using DFA.
  9996. 'max-inline-insns-recursive-auto'
  9997. The maximum number of instructions non-inline function can
  9998. grow to via recursive inlining.
  9999. 'graphite-allow-codegen-errors'
  10000. Whether codegen errors should be ICEs when '-fchecking'.
  10001. 'sms-max-ii-factor'
  10002. A factor for tuning the upper bound that swing modulo
  10003. scheduler uses for scheduling a loop.
  10004. 'lra-max-considered-reload-pseudos'
  10005. The max number of reload pseudos which are considered during
  10006. spilling a non-reload pseudo.
  10007. 'max-pow-sqrt-depth'
  10008. Maximum depth of sqrt chains to use when synthesizing
  10009. exponentiation by a real constant.
  10010. 'max-dse-active-local-stores'
  10011. Maximum number of active local stores in RTL dead store
  10012. elimination.
  10013. 'asan-instrument-allocas'
  10014. Enable asan allocas/VLAs protection.
  10015. 'max-iterations-computation-cost'
  10016. Bound on the cost of an expression to compute the number of
  10017. iterations.
  10018. 'max-isl-operations'
  10019. Maximum number of isl operations, 0 means unlimited.
  10020. 'graphite-max-arrays-per-scop'
  10021. Maximum number of arrays per scop.
  10022. 'max-vartrack-reverse-op-size'
  10023. Max. size of loc list for which reverse ops should be added.
  10024. 'tracer-dynamic-coverage-feedback'
  10025. The percentage of function, weighted by execution frequency,
  10026. that must be covered by trace formation. Used when profile
  10027. feedback is available.
  10028. 'max-inline-recursive-depth-auto'
  10029. The maximum depth of recursive inlining for non-inline
  10030. functions.
  10031. 'fsm-scale-path-stmts'
  10032. Scale factor to apply to the number of statements in a
  10033. threading path when comparing to the number of (scaled)
  10034. blocks.
  10035. 'fsm-maximum-phi-arguments'
  10036. Maximum number of arguments a PHI may have before the FSM
  10037. threader will not try to thread through its block.
  10038. 'uninit-control-dep-attempts'
  10039. Maximum number of nested calls to search for control
  10040. dependencies during uninitialized variable analysis.
  10041. 'max-once-peeled-insns'
  10042. The maximum number of insns of a peeled loop that rolls only
  10043. once.
  10044. 'sra-max-scalarization-size-Osize'
  10045. Maximum size, in storage units, of an aggregate which should
  10046. be considered for scalarization when compiling for size.
  10047. 'fsm-scale-path-blocks'
  10048. Scale factor to apply to the number of blocks in a threading
  10049. path when comparing to the number of (scaled) statements.
  10050. 'sched-autopref-queue-depth'
  10051. Hardware autoprefetcher scheduler model control flag. Number
  10052. of lookahead cycles the model looks into; at ' ' only enable
  10053. instruction sorting heuristic.
  10054. 'loop-versioning-max-inner-insns'
  10055. The maximum number of instructions that an inner loop can have
  10056. before the loop versioning pass considers it too big to copy.
  10057. 'loop-versioning-max-outer-insns'
  10058. The maximum number of instructions that an outer loop can have
  10059. before the loop versioning pass considers it too big to copy,
  10060. discounting any instructions in inner loops that directly
  10061. benefit from versioning.
  10062. 'ssa-name-def-chain-limit'
  10063. The maximum number of SSA_NAME assignments to follow in
  10064. determining a property of a variable such as its value. This
  10065. limits the number of iterations or recursive calls GCC
  10066. performs when optimizing certain statements or when
  10067. determining their validity prior to issuing diagnostics.
  10068. The following choices of NAME are available on AArch64 targets:
  10069. 'aarch64-sve-compare-costs'
  10070. When vectorizing for SVE, consider using "unpacked" vectors
  10071. for smaller elements and use the cost model to pick the
  10072. cheapest approach. Also use the cost model to choose between
  10073. SVE and Advanced SIMD vectorization.
  10074. Using unpacked vectors includes storing smaller elements in
  10075. larger containers and accessing elements with extending loads
  10076. and truncating stores.
  10077. 'aarch64-float-recp-precision'
  10078. The number of Newton iterations for calculating the reciprocal
  10079. for float type. The precision of division is proportional to
  10080. this param when division approximation is enabled. The
  10081. default value is 1.
  10082. 'aarch64-double-recp-precision'
  10083. The number of Newton iterations for calculating the reciprocal
  10084. for double type. The precision of division is propotional to
  10085. this param when division approximation is enabled. The
  10086. default value is 2.
  10087. 
  10088. File: gcc.info, Node: Instrumentation Options, Next: Preprocessor Options, Prev: Optimize Options, Up: Invoking GCC
  10089. 3.12 Program Instrumentation Options
  10090. ====================================
  10091. GCC supports a number of command-line options that control adding
  10092. run-time instrumentation to the code it normally generates. For
  10093. example, one purpose of instrumentation is collect profiling statistics
  10094. for use in finding program hot spots, code coverage analysis, or
  10095. profile-guided optimizations. Another class of program instrumentation
  10096. is adding run-time checking to detect programming errors like invalid
  10097. pointer dereferences or out-of-bounds array accesses, as well as
  10098. deliberately hostile attacks such as stack smashing or C++ vtable
  10099. hijacking. There is also a general hook which can be used to implement
  10100. other forms of tracing or function-level instrumentation for debug or
  10101. program analysis purposes.
  10102. '-p'
  10103. '-pg'
  10104. Generate extra code to write profile information suitable for the
  10105. analysis program 'prof' (for '-p') or 'gprof' (for '-pg'). You
  10106. must use this option when compiling the source files you want data
  10107. about, and you must also use it when linking.
  10108. You can use the function attribute 'no_instrument_function' to
  10109. suppress profiling of individual functions when compiling with
  10110. these options. *Note Common Function Attributes::.
  10111. '-fprofile-arcs'
  10112. Add code so that program flow "arcs" are instrumented. During
  10113. execution the program records how many times each branch and call
  10114. is executed and how many times it is taken or returns. On targets
  10115. that support constructors with priority support, profiling properly
  10116. handles constructors, destructors and C++ constructors (and
  10117. destructors) of classes which are used as a type of a global
  10118. variable.
  10119. When the compiled program exits it saves this data to a file called
  10120. 'AUXNAME.gcda' for each source file. The data may be used for
  10121. profile-directed optimizations ('-fbranch-probabilities'), or for
  10122. test coverage analysis ('-ftest-coverage'). Each object file's
  10123. AUXNAME is generated from the name of the output file, if
  10124. explicitly specified and it is not the final executable, otherwise
  10125. it is the basename of the source file. In both cases any suffix is
  10126. removed (e.g. 'foo.gcda' for input file 'dir/foo.c', or
  10127. 'dir/foo.gcda' for output file specified as '-o dir/foo.o'). *Note
  10128. Cross-profiling::.
  10129. '--coverage'
  10130. This option is used to compile and link code instrumented for
  10131. coverage analysis. The option is a synonym for '-fprofile-arcs'
  10132. '-ftest-coverage' (when compiling) and '-lgcov' (when linking).
  10133. See the documentation for those options for more details.
  10134. * Compile the source files with '-fprofile-arcs' plus
  10135. optimization and code generation options. For test coverage
  10136. analysis, use the additional '-ftest-coverage' option. You do
  10137. not need to profile every source file in a program.
  10138. * Compile the source files additionally with
  10139. '-fprofile-abs-path' to create absolute path names in the
  10140. '.gcno' files. This allows 'gcov' to find the correct sources
  10141. in projects where compilations occur with different working
  10142. directories.
  10143. * Link your object files with '-lgcov' or '-fprofile-arcs' (the
  10144. latter implies the former).
  10145. * Run the program on a representative workload to generate the
  10146. arc profile information. This may be repeated any number of
  10147. times. You can run concurrent instances of your program, and
  10148. provided that the file system supports locking, the data files
  10149. will be correctly updated. Unless a strict ISO C dialect
  10150. option is in effect, 'fork' calls are detected and correctly
  10151. handled without double counting.
  10152. * For profile-directed optimizations, compile the source files
  10153. again with the same optimization and code generation options
  10154. plus '-fbranch-probabilities' (*note Options that Control
  10155. Optimization: Optimize Options.).
  10156. * For test coverage analysis, use 'gcov' to produce human
  10157. readable information from the '.gcno' and '.gcda' files.
  10158. Refer to the 'gcov' documentation for further information.
  10159. With '-fprofile-arcs', for each function of your program GCC
  10160. creates a program flow graph, then finds a spanning tree for the
  10161. graph. Only arcs that are not on the spanning tree have to be
  10162. instrumented: the compiler adds code to count the number of times
  10163. that these arcs are executed. When an arc is the only exit or only
  10164. entrance to a block, the instrumentation code can be added to the
  10165. block; otherwise, a new basic block must be created to hold the
  10166. instrumentation code.
  10167. '-ftest-coverage'
  10168. Produce a notes file that the 'gcov' code-coverage utility (*note
  10169. 'gcov'--a Test Coverage Program: Gcov.) can use to show program
  10170. coverage. Each source file's note file is called 'AUXNAME.gcno'.
  10171. Refer to the '-fprofile-arcs' option above for a description of
  10172. AUXNAME and instructions on how to generate test coverage data.
  10173. Coverage data matches the source files more closely if you do not
  10174. optimize.
  10175. '-fprofile-abs-path'
  10176. Automatically convert relative source file names to absolute path
  10177. names in the '.gcno' files. This allows 'gcov' to find the correct
  10178. sources in projects where compilations occur with different working
  10179. directories.
  10180. '-fprofile-dir=PATH'
  10181. Set the directory to search for the profile data files in to PATH.
  10182. This option affects only the profile data generated by
  10183. '-fprofile-generate', '-ftest-coverage', '-fprofile-arcs' and used
  10184. by '-fprofile-use' and '-fbranch-probabilities' and its related
  10185. options. Both absolute and relative paths can be used. By
  10186. default, GCC uses the current directory as PATH, thus the profile
  10187. data file appears in the same directory as the object file. In
  10188. order to prevent the file name clashing, if the object file name is
  10189. not an absolute path, we mangle the absolute path of the
  10190. 'SOURCENAME.gcda' file and use it as the file name of a '.gcda'
  10191. file. See similar option '-fprofile-note'.
  10192. When an executable is run in a massive parallel environment, it is
  10193. recommended to save profile to different folders. That can be done
  10194. with variables in PATH that are exported during run-time:
  10195. '%p'
  10196. process ID.
  10197. '%q{VAR}'
  10198. value of environment variable VAR
  10199. '-fprofile-generate'
  10200. '-fprofile-generate=PATH'
  10201. Enable options usually used for instrumenting application to
  10202. produce profile useful for later recompilation with profile
  10203. feedback based optimization. You must use '-fprofile-generate'
  10204. both when compiling and when linking your program.
  10205. The following options are enabled: '-fprofile-arcs',
  10206. '-fprofile-values', '-finline-functions', and '-fipa-bit-cp'.
  10207. If PATH is specified, GCC looks at the PATH to find the profile
  10208. feedback data files. See '-fprofile-dir'.
  10209. To optimize the program based on the collected profile information,
  10210. use '-fprofile-use'. *Note Optimize Options::, for more
  10211. information.
  10212. '-fprofile-note=PATH'
  10213. If PATH is specified, GCC saves '.gcno' file into PATH location.
  10214. If you combine the option with multiple source files, the '.gcno'
  10215. file will be overwritten.
  10216. '-fprofile-prefix-path=PATH'
  10217. This option can be used in combination with
  10218. 'profile-generate='PROFILE_DIR and 'profile-use='PROFILE_DIR to
  10219. inform GCC where is the base directory of built source tree. By
  10220. default PROFILE_DIR will contain files with mangled absolute paths
  10221. of all object files in the built project. This is not desirable
  10222. when directory used to build the instrumented binary differs from
  10223. the directory used to build the binary optimized with profile
  10224. feedback because the profile data will not be found during the
  10225. optimized build. In such setups '-fprofile-prefix-path='PATH with
  10226. PATH pointing to the base directory of the build can be used to
  10227. strip the irrelevant part of the path and keep all file names
  10228. relative to the main build directory.
  10229. '-fprofile-update=METHOD'
  10230. Alter the update method for an application instrumented for profile
  10231. feedback based optimization. The METHOD argument should be one of
  10232. 'single', 'atomic' or 'prefer-atomic'. The first one is useful for
  10233. single-threaded applications, while the second one prevents profile
  10234. corruption by emitting thread-safe code.
  10235. *Warning:* When an application does not properly join all threads
  10236. (or creates an detached thread), a profile file can be still
  10237. corrupted.
  10238. Using 'prefer-atomic' would be transformed either to 'atomic', when
  10239. supported by a target, or to 'single' otherwise. The GCC driver
  10240. automatically selects 'prefer-atomic' when '-pthread' is present in
  10241. the command line.
  10242. '-fprofile-filter-files=REGEX'
  10243. Instrument only functions from files where names match any regular
  10244. expression (separated by a semi-colon).
  10245. For example, '-fprofile-filter-files=main.c;module.*.c' will
  10246. instrument only 'main.c' and all C files starting with 'module'.
  10247. '-fprofile-exclude-files=REGEX'
  10248. Instrument only functions from files where names do not match all
  10249. the regular expressions (separated by a semi-colon).
  10250. For example, '-fprofile-exclude-files=/usr/*' will prevent
  10251. instrumentation of all files that are located in '/usr/' folder.
  10252. '-fprofile-reproducible'
  10253. Control level of reproducibility of profile gathered by
  10254. '-fprofile-generate'. This makes it possible to rebuild program
  10255. with same outcome which is useful, for example, for distribution
  10256. packages.
  10257. With '-fprofile-reproducibility=serial' the profile gathered by
  10258. '-fprofile-generate' is reproducible provided the trained program
  10259. behaves the same at each invocation of the train run, it is not
  10260. multi-threaded and profile data streaming is always done in the
  10261. same order. Note that profile streaming happens at the end of
  10262. program run but also before 'fork' function is invoked.
  10263. Note that it is quite common that execution counts of some part of
  10264. programs depends, for example, on length of temporary file names or
  10265. memory space randomization (that may affect hash-table collision
  10266. rate). Such non-reproducible part of programs may be annotated by
  10267. 'no_instrument_function' function attribute. 'gcov-dump' with '-l'
  10268. can be used to dump gathered data and verify that they are indeed
  10269. reproducible.
  10270. With '-fprofile-reproducibility=parallel-runs' collected profile
  10271. stays reproducible regardless the order of streaming of the data
  10272. into gcda files. This setting makes it possible to run multiple
  10273. instances of instrumented program in parallel (such as with 'make
  10274. -j'). This reduces quality of gathered data, in particular of
  10275. indirect call profiling.
  10276. '-fsanitize=address'
  10277. Enable AddressSanitizer, a fast memory error detector. Memory
  10278. access instructions are instrumented to detect out-of-bounds and
  10279. use-after-free bugs. The option enables
  10280. '-fsanitize-address-use-after-scope'. See
  10281. <https://github.com/google/sanitizers/wiki/AddressSanitizer> for
  10282. more details. The run-time behavior can be influenced using the
  10283. 'ASAN_OPTIONS' environment variable. When set to 'help=1', the
  10284. available options are shown at startup of the instrumented program.
  10285. See
  10286. <https://github.com/google/sanitizers/wiki/AddressSanitizerFlags#run-time-flags>
  10287. for a list of supported options. The option cannot be combined
  10288. with '-fsanitize=thread'.
  10289. '-fsanitize=kernel-address'
  10290. Enable AddressSanitizer for Linux kernel. See
  10291. <https://github.com/google/kasan/wiki> for more details.
  10292. '-fsanitize=pointer-compare'
  10293. Instrument comparison operation (<, <=, >, >=) with pointer
  10294. operands. The option must be combined with either
  10295. '-fsanitize=kernel-address' or '-fsanitize=address' The option
  10296. cannot be combined with '-fsanitize=thread'. Note: By default the
  10297. check is disabled at run time. To enable it, add
  10298. 'detect_invalid_pointer_pairs=2' to the environment variable
  10299. 'ASAN_OPTIONS'. Using 'detect_invalid_pointer_pairs=1' detects
  10300. invalid operation only when both pointers are non-null.
  10301. '-fsanitize=pointer-subtract'
  10302. Instrument subtraction with pointer operands. The option must be
  10303. combined with either '-fsanitize=kernel-address' or
  10304. '-fsanitize=address' The option cannot be combined with
  10305. '-fsanitize=thread'. Note: By default the check is disabled at run
  10306. time. To enable it, add 'detect_invalid_pointer_pairs=2' to the
  10307. environment variable 'ASAN_OPTIONS'. Using
  10308. 'detect_invalid_pointer_pairs=1' detects invalid operation only
  10309. when both pointers are non-null.
  10310. '-fsanitize=thread'
  10311. Enable ThreadSanitizer, a fast data race detector. Memory access
  10312. instructions are instrumented to detect data race bugs. See
  10313. <https://github.com/google/sanitizers/wiki#threadsanitizer> for
  10314. more details. The run-time behavior can be influenced using the
  10315. 'TSAN_OPTIONS' environment variable; see
  10316. <https://github.com/google/sanitizers/wiki/ThreadSanitizerFlags>
  10317. for a list of supported options. The option cannot be combined
  10318. with '-fsanitize=address', '-fsanitize=leak'.
  10319. Note that sanitized atomic builtins cannot throw exceptions when
  10320. operating on invalid memory addresses with non-call exceptions
  10321. ('-fnon-call-exceptions').
  10322. '-fsanitize=leak'
  10323. Enable LeakSanitizer, a memory leak detector. This option only
  10324. matters for linking of executables and the executable is linked
  10325. against a library that overrides 'malloc' and other allocator
  10326. functions. See
  10327. <https://github.com/google/sanitizers/wiki/AddressSanitizerLeakSanitizer>
  10328. for more details. The run-time behavior can be influenced using
  10329. the 'LSAN_OPTIONS' environment variable. The option cannot be
  10330. combined with '-fsanitize=thread'.
  10331. '-fsanitize=undefined'
  10332. Enable UndefinedBehaviorSanitizer, a fast undefined behavior
  10333. detector. Various computations are instrumented to detect
  10334. undefined behavior at runtime. Current suboptions are:
  10335. '-fsanitize=shift'
  10336. This option enables checking that the result of a shift
  10337. operation is not undefined. Note that what exactly is
  10338. considered undefined differs slightly between C and C++, as
  10339. well as between ISO C90 and C99, etc. This option has two
  10340. suboptions, '-fsanitize=shift-base' and
  10341. '-fsanitize=shift-exponent'.
  10342. '-fsanitize=shift-exponent'
  10343. This option enables checking that the second argument of a
  10344. shift operation is not negative and is smaller than the
  10345. precision of the promoted first argument.
  10346. '-fsanitize=shift-base'
  10347. If the second argument of a shift operation is within range,
  10348. check that the result of a shift operation is not undefined.
  10349. Note that what exactly is considered undefined differs
  10350. slightly between C and C++, as well as between ISO C90 and
  10351. C99, etc.
  10352. '-fsanitize=integer-divide-by-zero'
  10353. Detect integer division by zero as well as 'INT_MIN / -1'
  10354. division.
  10355. '-fsanitize=unreachable'
  10356. With this option, the compiler turns the
  10357. '__builtin_unreachable' call into a diagnostics message call
  10358. instead. When reaching the '__builtin_unreachable' call, the
  10359. behavior is undefined.
  10360. '-fsanitize=vla-bound'
  10361. This option instructs the compiler to check that the size of a
  10362. variable length array is positive.
  10363. '-fsanitize=null'
  10364. This option enables pointer checking. Particularly, the
  10365. application built with this option turned on will issue an
  10366. error message when it tries to dereference a NULL pointer, or
  10367. if a reference (possibly an rvalue reference) is bound to a
  10368. NULL pointer, or if a method is invoked on an object pointed
  10369. by a NULL pointer.
  10370. '-fsanitize=return'
  10371. This option enables return statement checking. Programs built
  10372. with this option turned on will issue an error message when
  10373. the end of a non-void function is reached without actually
  10374. returning a value. This option works in C++ only.
  10375. '-fsanitize=signed-integer-overflow'
  10376. This option enables signed integer overflow checking. We
  10377. check that the result of '+', '*', and both unary and binary
  10378. '-' does not overflow in the signed arithmetics. Note,
  10379. integer promotion rules must be taken into account. That is,
  10380. the following is not an overflow:
  10381. signed char a = SCHAR_MAX;
  10382. a++;
  10383. '-fsanitize=bounds'
  10384. This option enables instrumentation of array bounds. Various
  10385. out of bounds accesses are detected. Flexible array members,
  10386. flexible array member-like arrays, and initializers of
  10387. variables with static storage are not instrumented.
  10388. '-fsanitize=bounds-strict'
  10389. This option enables strict instrumentation of array bounds.
  10390. Most out of bounds accesses are detected, including flexible
  10391. array members and flexible array member-like arrays.
  10392. Initializers of variables with static storage are not
  10393. instrumented.
  10394. '-fsanitize=alignment'
  10395. This option enables checking of alignment of pointers when
  10396. they are dereferenced, or when a reference is bound to
  10397. insufficiently aligned target, or when a method or constructor
  10398. is invoked on insufficiently aligned object.
  10399. '-fsanitize=object-size'
  10400. This option enables instrumentation of memory references using
  10401. the '__builtin_object_size' function. Various out of bounds
  10402. pointer accesses are detected.
  10403. '-fsanitize=float-divide-by-zero'
  10404. Detect floating-point division by zero. Unlike other similar
  10405. options, '-fsanitize=float-divide-by-zero' is not enabled by
  10406. '-fsanitize=undefined', since floating-point division by zero
  10407. can be a legitimate way of obtaining infinities and NaNs.
  10408. '-fsanitize=float-cast-overflow'
  10409. This option enables floating-point type to integer conversion
  10410. checking. We check that the result of the conversion does not
  10411. overflow. Unlike other similar options,
  10412. '-fsanitize=float-cast-overflow' is not enabled by
  10413. '-fsanitize=undefined'. This option does not work well with
  10414. 'FE_INVALID' exceptions enabled.
  10415. '-fsanitize=nonnull-attribute'
  10416. This option enables instrumentation of calls, checking whether
  10417. null values are not passed to arguments marked as requiring a
  10418. non-null value by the 'nonnull' function attribute.
  10419. '-fsanitize=returns-nonnull-attribute'
  10420. This option enables instrumentation of return statements in
  10421. functions marked with 'returns_nonnull' function attribute, to
  10422. detect returning of null values from such functions.
  10423. '-fsanitize=bool'
  10424. This option enables instrumentation of loads from bool. If a
  10425. value other than 0/1 is loaded, a run-time error is issued.
  10426. '-fsanitize=enum'
  10427. This option enables instrumentation of loads from an enum
  10428. type. If a value outside the range of values for the enum
  10429. type is loaded, a run-time error is issued.
  10430. '-fsanitize=vptr'
  10431. This option enables instrumentation of C++ member function
  10432. calls, member accesses and some conversions between pointers
  10433. to base and derived classes, to verify the referenced object
  10434. has the correct dynamic type.
  10435. '-fsanitize=pointer-overflow'
  10436. This option enables instrumentation of pointer arithmetics.
  10437. If the pointer arithmetics overflows, a run-time error is
  10438. issued.
  10439. '-fsanitize=builtin'
  10440. This option enables instrumentation of arguments to selected
  10441. builtin functions. If an invalid value is passed to such
  10442. arguments, a run-time error is issued. E.g. passing 0 as the
  10443. argument to '__builtin_ctz' or '__builtin_clz' invokes
  10444. undefined behavior and is diagnosed by this option.
  10445. While '-ftrapv' causes traps for signed overflows to be emitted,
  10446. '-fsanitize=undefined' gives a diagnostic message. This currently
  10447. works only for the C family of languages.
  10448. '-fno-sanitize=all'
  10449. This option disables all previously enabled sanitizers.
  10450. '-fsanitize=all' is not allowed, as some sanitizers cannot be used
  10451. together.
  10452. '-fasan-shadow-offset=NUMBER'
  10453. This option forces GCC to use custom shadow offset in
  10454. AddressSanitizer checks. It is useful for experimenting with
  10455. different shadow memory layouts in Kernel AddressSanitizer.
  10456. '-fsanitize-sections=S1,S2,...'
  10457. Sanitize global variables in selected user-defined sections. SI
  10458. may contain wildcards.
  10459. '-fsanitize-recover[=OPTS]'
  10460. '-fsanitize-recover=' controls error recovery mode for sanitizers
  10461. mentioned in comma-separated list of OPTS. Enabling this option
  10462. for a sanitizer component causes it to attempt to continue running
  10463. the program as if no error happened. This means multiple runtime
  10464. errors can be reported in a single program run, and the exit code
  10465. of the program may indicate success even when errors have been
  10466. reported. The '-fno-sanitize-recover=' option can be used to alter
  10467. this behavior: only the first detected error is reported and
  10468. program then exits with a non-zero exit code.
  10469. Currently this feature only works for '-fsanitize=undefined' (and
  10470. its suboptions except for '-fsanitize=unreachable' and
  10471. '-fsanitize=return'), '-fsanitize=float-cast-overflow',
  10472. '-fsanitize=float-divide-by-zero', '-fsanitize=bounds-strict',
  10473. '-fsanitize=kernel-address' and '-fsanitize=address'. For these
  10474. sanitizers error recovery is turned on by default, except
  10475. '-fsanitize=address', for which this feature is experimental.
  10476. '-fsanitize-recover=all' and '-fno-sanitize-recover=all' is also
  10477. accepted, the former enables recovery for all sanitizers that
  10478. support it, the latter disables recovery for all sanitizers that
  10479. support it.
  10480. Even if a recovery mode is turned on the compiler side, it needs to
  10481. be also enabled on the runtime library side, otherwise the failures
  10482. are still fatal. The runtime library defaults to 'halt_on_error=0'
  10483. for ThreadSanitizer and UndefinedBehaviorSanitizer, while default
  10484. value for AddressSanitizer is 'halt_on_error=1'. This can be
  10485. overridden through setting the 'halt_on_error' flag in the
  10486. corresponding environment variable.
  10487. Syntax without an explicit OPTS parameter is deprecated. It is
  10488. equivalent to specifying an OPTS list of:
  10489. undefined,float-cast-overflow,float-divide-by-zero,bounds-strict
  10490. '-fsanitize-address-use-after-scope'
  10491. Enable sanitization of local variables to detect use-after-scope
  10492. bugs. The option sets '-fstack-reuse' to 'none'.
  10493. '-fsanitize-undefined-trap-on-error'
  10494. The '-fsanitize-undefined-trap-on-error' option instructs the
  10495. compiler to report undefined behavior using '__builtin_trap' rather
  10496. than a 'libubsan' library routine. The advantage of this is that
  10497. the 'libubsan' library is not needed and is not linked in, so this
  10498. is usable even in freestanding environments.
  10499. '-fsanitize-coverage=trace-pc'
  10500. Enable coverage-guided fuzzing code instrumentation. Inserts a
  10501. call to '__sanitizer_cov_trace_pc' into every basic block.
  10502. '-fsanitize-coverage=trace-cmp'
  10503. Enable dataflow guided fuzzing code instrumentation. Inserts a
  10504. call to '__sanitizer_cov_trace_cmp1', '__sanitizer_cov_trace_cmp2',
  10505. '__sanitizer_cov_trace_cmp4' or '__sanitizer_cov_trace_cmp8' for
  10506. integral comparison with both operands variable or
  10507. '__sanitizer_cov_trace_const_cmp1',
  10508. '__sanitizer_cov_trace_const_cmp2',
  10509. '__sanitizer_cov_trace_const_cmp4' or
  10510. '__sanitizer_cov_trace_const_cmp8' for integral comparison with one
  10511. operand constant, '__sanitizer_cov_trace_cmpf' or
  10512. '__sanitizer_cov_trace_cmpd' for float or double comparisons and
  10513. '__sanitizer_cov_trace_switch' for switch statements.
  10514. '-fcf-protection=[full|branch|return|none]'
  10515. Enable code instrumentation of control-flow transfers to increase
  10516. program security by checking that target addresses of control-flow
  10517. transfer instructions (such as indirect function call, function
  10518. return, indirect jump) are valid. This prevents diverting the flow
  10519. of control to an unexpected target. This is intended to protect
  10520. against such threats as Return-oriented Programming (ROP), and
  10521. similarly call/jmp-oriented programming (COP/JOP).
  10522. The value 'branch' tells the compiler to implement checking of
  10523. validity of control-flow transfer at the point of indirect branch
  10524. instructions, i.e. call/jmp instructions. The value 'return'
  10525. implements checking of validity at the point of returning from a
  10526. function. The value 'full' is an alias for specifying both
  10527. 'branch' and 'return'. The value 'none' turns off instrumentation.
  10528. The macro '__CET__' is defined when '-fcf-protection' is used. The
  10529. first bit of '__CET__' is set to 1 for the value 'branch' and the
  10530. second bit of '__CET__' is set to 1 for the 'return'.
  10531. You can also use the 'nocf_check' attribute to identify which
  10532. functions and calls should be skipped from instrumentation (*note
  10533. Function Attributes::).
  10534. Currently the x86 GNU/Linux target provides an implementation based
  10535. on Intel Control-flow Enforcement Technology (CET).
  10536. '-fstack-protector'
  10537. Emit extra code to check for buffer overflows, such as stack
  10538. smashing attacks. This is done by adding a guard variable to
  10539. functions with vulnerable objects. This includes functions that
  10540. call 'alloca', and functions with buffers larger than or equal to 8
  10541. bytes. The guards are initialized when a function is entered and
  10542. then checked when the function exits. If a guard check fails, an
  10543. error message is printed and the program exits. Only variables
  10544. that are actually allocated on the stack are considered, optimized
  10545. away variables or variables allocated in registers don't count.
  10546. '-fstack-protector-all'
  10547. Like '-fstack-protector' except that all functions are protected.
  10548. '-fstack-protector-strong'
  10549. Like '-fstack-protector' but includes additional functions to be
  10550. protected -- those that have local array definitions, or have
  10551. references to local frame addresses. Only variables that are
  10552. actually allocated on the stack are considered, optimized away
  10553. variables or variables allocated in registers don't count.
  10554. '-fstack-protector-explicit'
  10555. Like '-fstack-protector' but only protects those functions which
  10556. have the 'stack_protect' attribute.
  10557. '-fstack-check'
  10558. Generate code to verify that you do not go beyond the boundary of
  10559. the stack. You should specify this flag if you are running in an
  10560. environment with multiple threads, but you only rarely need to
  10561. specify it in a single-threaded environment since stack overflow is
  10562. automatically detected on nearly all systems if there is only one
  10563. stack.
  10564. Note that this switch does not actually cause checking to be done;
  10565. the operating system or the language runtime must do that. The
  10566. switch causes generation of code to ensure that they see the stack
  10567. being extended.
  10568. You can additionally specify a string parameter: 'no' means no
  10569. checking, 'generic' means force the use of old-style checking,
  10570. 'specific' means use the best checking method and is equivalent to
  10571. bare '-fstack-check'.
  10572. Old-style checking is a generic mechanism that requires no specific
  10573. target support in the compiler but comes with the following
  10574. drawbacks:
  10575. 1. Modified allocation strategy for large objects: they are
  10576. always allocated dynamically if their size exceeds a fixed
  10577. threshold. Note this may change the semantics of some code.
  10578. 2. Fixed limit on the size of the static frame of functions: when
  10579. it is topped by a particular function, stack checking is not
  10580. reliable and a warning is issued by the compiler.
  10581. 3. Inefficiency: because of both the modified allocation strategy
  10582. and the generic implementation, code performance is hampered.
  10583. Note that old-style stack checking is also the fallback method for
  10584. 'specific' if no target support has been added in the compiler.
  10585. '-fstack-check=' is designed for Ada's needs to detect infinite
  10586. recursion and stack overflows. 'specific' is an excellent choice
  10587. when compiling Ada code. It is not generally sufficient to protect
  10588. against stack-clash attacks. To protect against those you want
  10589. '-fstack-clash-protection'.
  10590. '-fstack-clash-protection'
  10591. Generate code to prevent stack clash style attacks. When this
  10592. option is enabled, the compiler will only allocate one page of
  10593. stack space at a time and each page is accessed immediately after
  10594. allocation. Thus, it prevents allocations from jumping over any
  10595. stack guard page provided by the operating system.
  10596. Most targets do not fully support stack clash protection. However,
  10597. on those targets '-fstack-clash-protection' will protect dynamic
  10598. stack allocations. '-fstack-clash-protection' may also provide
  10599. limited protection for static stack allocations if the target
  10600. supports '-fstack-check=specific'.
  10601. '-fstack-limit-register=REG'
  10602. '-fstack-limit-symbol=SYM'
  10603. '-fno-stack-limit'
  10604. Generate code to ensure that the stack does not grow beyond a
  10605. certain value, either the value of a register or the address of a
  10606. symbol. If a larger stack is required, a signal is raised at run
  10607. time. For most targets, the signal is raised before the stack
  10608. overruns the boundary, so it is possible to catch the signal
  10609. without taking special precautions.
  10610. For instance, if the stack starts at absolute address '0x80000000'
  10611. and grows downwards, you can use the flags
  10612. '-fstack-limit-symbol=__stack_limit' and
  10613. '-Wl,--defsym,__stack_limit=0x7ffe0000' to enforce a stack limit of
  10614. 128KB. Note that this may only work with the GNU linker.
  10615. You can locally override stack limit checking by using the
  10616. 'no_stack_limit' function attribute (*note Function Attributes::).
  10617. '-fsplit-stack'
  10618. Generate code to automatically split the stack before it overflows.
  10619. The resulting program has a discontiguous stack which can only
  10620. overflow if the program is unable to allocate any more memory.
  10621. This is most useful when running threaded programs, as it is no
  10622. longer necessary to calculate a good stack size to use for each
  10623. thread. This is currently only implemented for the x86 targets
  10624. running GNU/Linux.
  10625. When code compiled with '-fsplit-stack' calls code compiled without
  10626. '-fsplit-stack', there may not be much stack space available for
  10627. the latter code to run. If compiling all code, including library
  10628. code, with '-fsplit-stack' is not an option, then the linker can
  10629. fix up these calls so that the code compiled without
  10630. '-fsplit-stack' always has a large stack. Support for this is
  10631. implemented in the gold linker in GNU binutils release 2.21 and
  10632. later.
  10633. '-fvtable-verify=[std|preinit|none]'
  10634. This option is only available when compiling C++ code. It turns on
  10635. (or off, if using '-fvtable-verify=none') the security feature that
  10636. verifies at run time, for every virtual call, that the vtable
  10637. pointer through which the call is made is valid for the type of the
  10638. object, and has not been corrupted or overwritten. If an invalid
  10639. vtable pointer is detected at run time, an error is reported and
  10640. execution of the program is immediately halted.
  10641. This option causes run-time data structures to be built at program
  10642. startup, which are used for verifying the vtable pointers. The
  10643. options 'std' and 'preinit' control the timing of when these data
  10644. structures are built. In both cases the data structures are built
  10645. before execution reaches 'main'. Using '-fvtable-verify=std'
  10646. causes the data structures to be built after shared libraries have
  10647. been loaded and initialized. '-fvtable-verify=preinit' causes them
  10648. to be built before shared libraries have been loaded and
  10649. initialized.
  10650. If this option appears multiple times in the command line with
  10651. different values specified, 'none' takes highest priority over both
  10652. 'std' and 'preinit'; 'preinit' takes priority over 'std'.
  10653. '-fvtv-debug'
  10654. When used in conjunction with '-fvtable-verify=std' or
  10655. '-fvtable-verify=preinit', causes debug versions of the runtime
  10656. functions for the vtable verification feature to be called. This
  10657. flag also causes the compiler to log information about which vtable
  10658. pointers it finds for each class. This information is written to a
  10659. file named 'vtv_set_ptr_data.log' in the directory named by the
  10660. environment variable 'VTV_LOGS_DIR' if that is defined or the
  10661. current working directory otherwise.
  10662. Note: This feature _appends_ data to the log file. If you want a
  10663. fresh log file, be sure to delete any existing one.
  10664. '-fvtv-counts'
  10665. This is a debugging flag. When used in conjunction with
  10666. '-fvtable-verify=std' or '-fvtable-verify=preinit', this causes the
  10667. compiler to keep track of the total number of virtual calls it
  10668. encounters and the number of verifications it inserts. It also
  10669. counts the number of calls to certain run-time library functions
  10670. that it inserts and logs this information for each compilation
  10671. unit. The compiler writes this information to a file named
  10672. 'vtv_count_data.log' in the directory named by the environment
  10673. variable 'VTV_LOGS_DIR' if that is defined or the current working
  10674. directory otherwise. It also counts the size of the vtable pointer
  10675. sets for each class, and writes this information to
  10676. 'vtv_class_set_sizes.log' in the same directory.
  10677. Note: This feature _appends_ data to the log files. To get fresh
  10678. log files, be sure to delete any existing ones.
  10679. '-finstrument-functions'
  10680. Generate instrumentation calls for entry and exit to functions.
  10681. Just after function entry and just before function exit, the
  10682. following profiling functions are called with the address of the
  10683. current function and its call site. (On some platforms,
  10684. '__builtin_return_address' does not work beyond the current
  10685. function, so the call site information may not be available to the
  10686. profiling functions otherwise.)
  10687. void __cyg_profile_func_enter (void *this_fn,
  10688. void *call_site);
  10689. void __cyg_profile_func_exit (void *this_fn,
  10690. void *call_site);
  10691. The first argument is the address of the start of the current
  10692. function, which may be looked up exactly in the symbol table.
  10693. This instrumentation is also done for functions expanded inline in
  10694. other functions. The profiling calls indicate where, conceptually,
  10695. the inline function is entered and exited. This means that
  10696. addressable versions of such functions must be available. If all
  10697. your uses of a function are expanded inline, this may mean an
  10698. additional expansion of code size. If you use 'extern inline' in
  10699. your C code, an addressable version of such functions must be
  10700. provided. (This is normally the case anyway, but if you get lucky
  10701. and the optimizer always expands the functions inline, you might
  10702. have gotten away without providing static copies.)
  10703. A function may be given the attribute 'no_instrument_function', in
  10704. which case this instrumentation is not done. This can be used, for
  10705. example, for the profiling functions listed above, high-priority
  10706. interrupt routines, and any functions from which the profiling
  10707. functions cannot safely be called (perhaps signal handlers, if the
  10708. profiling routines generate output or allocate memory). *Note
  10709. Common Function Attributes::.
  10710. '-finstrument-functions-exclude-file-list=FILE,FILE,...'
  10711. Set the list of functions that are excluded from instrumentation
  10712. (see the description of '-finstrument-functions'). If the file
  10713. that contains a function definition matches with one of FILE, then
  10714. that function is not instrumented. The match is done on
  10715. substrings: if the FILE parameter is a substring of the file name,
  10716. it is considered to be a match.
  10717. For example:
  10718. -finstrument-functions-exclude-file-list=/bits/stl,include/sys
  10719. excludes any inline function defined in files whose pathnames
  10720. contain '/bits/stl' or 'include/sys'.
  10721. If, for some reason, you want to include letter ',' in one of SYM,
  10722. write '\,'. For example,
  10723. '-finstrument-functions-exclude-file-list='\,\,tmp'' (note the
  10724. single quote surrounding the option).
  10725. '-finstrument-functions-exclude-function-list=SYM,SYM,...'
  10726. This is similar to '-finstrument-functions-exclude-file-list', but
  10727. this option sets the list of function names to be excluded from
  10728. instrumentation. The function name to be matched is its
  10729. user-visible name, such as 'vector<int> blah(const vector<int> &)',
  10730. not the internal mangled name (e.g., '_Z4blahRSt6vectorIiSaIiEE').
  10731. The match is done on substrings: if the SYM parameter is a
  10732. substring of the function name, it is considered to be a match.
  10733. For C99 and C++ extended identifiers, the function name must be
  10734. given in UTF-8, not using universal character names.
  10735. '-fpatchable-function-entry=N[,M]'
  10736. Generate N NOPs right at the beginning of each function, with the
  10737. function entry point before the Mth NOP. If M is omitted, it
  10738. defaults to '0' so the function entry points to the address just at
  10739. the first NOP. The NOP instructions reserve extra space which can
  10740. be used to patch in any desired instrumentation at run time,
  10741. provided that the code segment is writable. The amount of space is
  10742. controllable indirectly via the number of NOPs; the NOP instruction
  10743. used corresponds to the instruction emitted by the internal GCC
  10744. back-end interface 'gen_nop'. This behavior is target-specific and
  10745. may also depend on the architecture variant and/or other
  10746. compilation options.
  10747. For run-time identification, the starting addresses of these areas,
  10748. which correspond to their respective function entries minus M, are
  10749. additionally collected in the '__patchable_function_entries'
  10750. section of the resulting binary.
  10751. Note that the value of '__attribute__ ((patchable_function_entry
  10752. (N,M)))' takes precedence over command-line option
  10753. '-fpatchable-function-entry=N,M'. This can be used to increase the
  10754. area size or to remove it completely on a single function. If
  10755. 'N=0', no pad location is recorded.
  10756. The NOP instructions are inserted at--and maybe before, depending
  10757. on M--the function entry address, even before the prologue.
  10758. 
  10759. File: gcc.info, Node: Preprocessor Options, Next: Assembler Options, Prev: Instrumentation Options, Up: Invoking GCC
  10760. 3.13 Options Controlling the Preprocessor
  10761. =========================================
  10762. These options control the C preprocessor, which is run on each C source
  10763. file before actual compilation.
  10764. If you use the '-E' option, nothing is done except preprocessing. Some
  10765. of these options make sense only together with '-E' because they cause
  10766. the preprocessor output to be unsuitable for actual compilation.
  10767. In addition to the options listed here, there are a number of options
  10768. to control search paths for include files documented in *note Directory
  10769. Options::. Options to control preprocessor diagnostics are listed in
  10770. *note Warning Options::.
  10771. '-D NAME'
  10772. Predefine NAME as a macro, with definition '1'.
  10773. '-D NAME=DEFINITION'
  10774. The contents of DEFINITION are tokenized and processed as if they
  10775. appeared during translation phase three in a '#define' directive.
  10776. In particular, the definition is truncated by embedded newline
  10777. characters.
  10778. If you are invoking the preprocessor from a shell or shell-like
  10779. program you may need to use the shell's quoting syntax to protect
  10780. characters such as spaces that have a meaning in the shell syntax.
  10781. If you wish to define a function-like macro on the command line,
  10782. write its argument list with surrounding parentheses before the
  10783. equals sign (if any). Parentheses are meaningful to most shells,
  10784. so you should quote the option. With 'sh' and 'csh',
  10785. '-D'NAME(ARGS...)=DEFINITION'' works.
  10786. '-D' and '-U' options are processed in the order they are given on
  10787. the command line. All '-imacros FILE' and '-include FILE' options
  10788. are processed after all '-D' and '-U' options.
  10789. '-U NAME'
  10790. Cancel any previous definition of NAME, either built in or provided
  10791. with a '-D' option.
  10792. '-include FILE'
  10793. Process FILE as if '#include "file"' appeared as the first line of
  10794. the primary source file. However, the first directory searched for
  10795. FILE is the preprocessor's working directory _instead of_ the
  10796. directory containing the main source file. If not found there, it
  10797. is searched for in the remainder of the '#include "..."' search
  10798. chain as normal.
  10799. If multiple '-include' options are given, the files are included in
  10800. the order they appear on the command line.
  10801. '-imacros FILE'
  10802. Exactly like '-include', except that any output produced by
  10803. scanning FILE is thrown away. Macros it defines remain defined.
  10804. This allows you to acquire all the macros from a header without
  10805. also processing its declarations.
  10806. All files specified by '-imacros' are processed before all files
  10807. specified by '-include'.
  10808. '-undef'
  10809. Do not predefine any system-specific or GCC-specific macros. The
  10810. standard predefined macros remain defined.
  10811. '-pthread'
  10812. Define additional macros required for using the POSIX threads
  10813. library. You should use this option consistently for both
  10814. compilation and linking. This option is supported on GNU/Linux
  10815. targets, most other Unix derivatives, and also on x86 Cygwin and
  10816. MinGW targets.
  10817. '-M'
  10818. Instead of outputting the result of preprocessing, output a rule
  10819. suitable for 'make' describing the dependencies of the main source
  10820. file. The preprocessor outputs one 'make' rule containing the
  10821. object file name for that source file, a colon, and the names of
  10822. all the included files, including those coming from '-include' or
  10823. '-imacros' command-line options.
  10824. Unless specified explicitly (with '-MT' or '-MQ'), the object file
  10825. name consists of the name of the source file with any suffix
  10826. replaced with object file suffix and with any leading directory
  10827. parts removed. If there are many included files then the rule is
  10828. split into several lines using '\'-newline. The rule has no
  10829. commands.
  10830. This option does not suppress the preprocessor's debug output, such
  10831. as '-dM'. To avoid mixing such debug output with the dependency
  10832. rules you should explicitly specify the dependency output file with
  10833. '-MF', or use an environment variable like 'DEPENDENCIES_OUTPUT'
  10834. (*note Environment Variables::). Debug output is still sent to the
  10835. regular output stream as normal.
  10836. Passing '-M' to the driver implies '-E', and suppresses warnings
  10837. with an implicit '-w'.
  10838. '-MM'
  10839. Like '-M' but do not mention header files that are found in system
  10840. header directories, nor header files that are included, directly or
  10841. indirectly, from such a header.
  10842. This implies that the choice of angle brackets or double quotes in
  10843. an '#include' directive does not in itself determine whether that
  10844. header appears in '-MM' dependency output.
  10845. '-MF FILE'
  10846. When used with '-M' or '-MM', specifies a file to write the
  10847. dependencies to. If no '-MF' switch is given the preprocessor
  10848. sends the rules to the same place it would send preprocessed
  10849. output.
  10850. When used with the driver options '-MD' or '-MMD', '-MF' overrides
  10851. the default dependency output file.
  10852. If FILE is '-', then the dependencies are written to 'stdout'.
  10853. '-MG'
  10854. In conjunction with an option such as '-M' requesting dependency
  10855. generation, '-MG' assumes missing header files are generated files
  10856. and adds them to the dependency list without raising an error. The
  10857. dependency filename is taken directly from the '#include' directive
  10858. without prepending any path. '-MG' also suppresses preprocessed
  10859. output, as a missing header file renders this useless.
  10860. This feature is used in automatic updating of makefiles.
  10861. '-MP'
  10862. This option instructs CPP to add a phony target for each dependency
  10863. other than the main file, causing each to depend on nothing. These
  10864. dummy rules work around errors 'make' gives if you remove header
  10865. files without updating the 'Makefile' to match.
  10866. This is typical output:
  10867. test.o: test.c test.h
  10868. test.h:
  10869. '-MT TARGET'
  10870. Change the target of the rule emitted by dependency generation. By
  10871. default CPP takes the name of the main input file, deletes any
  10872. directory components and any file suffix such as '.c', and appends
  10873. the platform's usual object suffix. The result is the target.
  10874. An '-MT' option sets the target to be exactly the string you
  10875. specify. If you want multiple targets, you can specify them as a
  10876. single argument to '-MT', or use multiple '-MT' options.
  10877. For example, '-MT '$(objpfx)foo.o'' might give
  10878. $(objpfx)foo.o: foo.c
  10879. '-MQ TARGET'
  10880. Same as '-MT', but it quotes any characters which are special to
  10881. Make. '-MQ '$(objpfx)foo.o'' gives
  10882. $$(objpfx)foo.o: foo.c
  10883. The default target is automatically quoted, as if it were given
  10884. with '-MQ'.
  10885. '-MD'
  10886. '-MD' is equivalent to '-M -MF FILE', except that '-E' is not
  10887. implied. The driver determines FILE based on whether an '-o'
  10888. option is given. If it is, the driver uses its argument but with a
  10889. suffix of '.d', otherwise it takes the name of the input file,
  10890. removes any directory components and suffix, and applies a '.d'
  10891. suffix.
  10892. If '-MD' is used in conjunction with '-E', any '-o' switch is
  10893. understood to specify the dependency output file (*note -MF:
  10894. dashMF.), but if used without '-E', each '-o' is understood to
  10895. specify a target object file.
  10896. Since '-E' is not implied, '-MD' can be used to generate a
  10897. dependency output file as a side effect of the compilation process.
  10898. '-MMD'
  10899. Like '-MD' except mention only user header files, not system header
  10900. files.
  10901. '-fpreprocessed'
  10902. Indicate to the preprocessor that the input file has already been
  10903. preprocessed. This suppresses things like macro expansion,
  10904. trigraph conversion, escaped newline splicing, and processing of
  10905. most directives. The preprocessor still recognizes and removes
  10906. comments, so that you can pass a file preprocessed with '-C' to the
  10907. compiler without problems. In this mode the integrated
  10908. preprocessor is little more than a tokenizer for the front ends.
  10909. '-fpreprocessed' is implicit if the input file has one of the
  10910. extensions '.i', '.ii' or '.mi'. These are the extensions that GCC
  10911. uses for preprocessed files created by '-save-temps'.
  10912. '-fdirectives-only'
  10913. When preprocessing, handle directives, but do not expand macros.
  10914. The option's behavior depends on the '-E' and '-fpreprocessed'
  10915. options.
  10916. With '-E', preprocessing is limited to the handling of directives
  10917. such as '#define', '#ifdef', and '#error'. Other preprocessor
  10918. operations, such as macro expansion and trigraph conversion are not
  10919. performed. In addition, the '-dD' option is implicitly enabled.
  10920. With '-fpreprocessed', predefinition of command line and most
  10921. builtin macros is disabled. Macros such as '__LINE__', which are
  10922. contextually dependent, are handled normally. This enables
  10923. compilation of files previously preprocessed with '-E
  10924. -fdirectives-only'.
  10925. With both '-E' and '-fpreprocessed', the rules for '-fpreprocessed'
  10926. take precedence. This enables full preprocessing of files
  10927. previously preprocessed with '-E -fdirectives-only'.
  10928. '-fdollars-in-identifiers'
  10929. Accept '$' in identifiers.
  10930. '-fextended-identifiers'
  10931. Accept universal character names and extended characters in
  10932. identifiers. This option is enabled by default for C99 (and later
  10933. C standard versions) and C++.
  10934. '-fno-canonical-system-headers'
  10935. When preprocessing, do not shorten system header paths with
  10936. canonicalization.
  10937. '-fmax-include-depth=DEPTH'
  10938. Set the maximum depth of the nested #include. The default is 200.
  10939. '-ftabstop=WIDTH'
  10940. Set the distance between tab stops. This helps the preprocessor
  10941. report correct column numbers in warnings or errors, even if tabs
  10942. appear on the line. If the value is less than 1 or greater than
  10943. 100, the option is ignored. The default is 8.
  10944. '-ftrack-macro-expansion[=LEVEL]'
  10945. Track locations of tokens across macro expansions. This allows the
  10946. compiler to emit diagnostic about the current macro expansion stack
  10947. when a compilation error occurs in a macro expansion. Using this
  10948. option makes the preprocessor and the compiler consume more memory.
  10949. The LEVEL parameter can be used to choose the level of precision of
  10950. token location tracking thus decreasing the memory consumption if
  10951. necessary. Value '0' of LEVEL de-activates this option. Value '1'
  10952. tracks tokens locations in a degraded mode for the sake of minimal
  10953. memory overhead. In this mode all tokens resulting from the
  10954. expansion of an argument of a function-like macro have the same
  10955. location. Value '2' tracks tokens locations completely. This
  10956. value is the most memory hungry. When this option is given no
  10957. argument, the default parameter value is '2'.
  10958. Note that '-ftrack-macro-expansion=2' is activated by default.
  10959. '-fmacro-prefix-map=OLD=NEW'
  10960. When preprocessing files residing in directory 'OLD', expand the
  10961. '__FILE__' and '__BASE_FILE__' macros as if the files resided in
  10962. directory 'NEW' instead. This can be used to change an absolute
  10963. path to a relative path by using '.' for NEW which can result in
  10964. more reproducible builds that are location independent. This
  10965. option also affects '__builtin_FILE()' during compilation. See
  10966. also '-ffile-prefix-map'.
  10967. '-fexec-charset=CHARSET'
  10968. Set the execution character set, used for string and character
  10969. constants. The default is UTF-8. CHARSET can be any encoding
  10970. supported by the system's 'iconv' library routine.
  10971. '-fwide-exec-charset=CHARSET'
  10972. Set the wide execution character set, used for wide string and
  10973. character constants. The default is UTF-32 or UTF-16, whichever
  10974. corresponds to the width of 'wchar_t'. As with '-fexec-charset',
  10975. CHARSET can be any encoding supported by the system's 'iconv'
  10976. library routine; however, you will have problems with encodings
  10977. that do not fit exactly in 'wchar_t'.
  10978. '-finput-charset=CHARSET'
  10979. Set the input character set, used for translation from the
  10980. character set of the input file to the source character set used by
  10981. GCC. If the locale does not specify, or GCC cannot get this
  10982. information from the locale, the default is UTF-8. This can be
  10983. overridden by either the locale or this command-line option.
  10984. Currently the command-line option takes precedence if there's a
  10985. conflict. CHARSET can be any encoding supported by the system's
  10986. 'iconv' library routine.
  10987. '-fpch-deps'
  10988. When using precompiled headers (*note Precompiled Headers::), this
  10989. flag causes the dependency-output flags to also list the files from
  10990. the precompiled header's dependencies. If not specified, only the
  10991. precompiled header are listed and not the files that were used to
  10992. create it, because those files are not consulted when a precompiled
  10993. header is used.
  10994. '-fpch-preprocess'
  10995. This option allows use of a precompiled header (*note Precompiled
  10996. Headers::) together with '-E'. It inserts a special '#pragma',
  10997. '#pragma GCC pch_preprocess "FILENAME"' in the output to mark the
  10998. place where the precompiled header was found, and its FILENAME.
  10999. When '-fpreprocessed' is in use, GCC recognizes this '#pragma' and
  11000. loads the PCH.
  11001. This option is off by default, because the resulting preprocessed
  11002. output is only really suitable as input to GCC. It is switched on
  11003. by '-save-temps'.
  11004. You should not write this '#pragma' in your own code, but it is
  11005. safe to edit the filename if the PCH file is available in a
  11006. different location. The filename may be absolute or it may be
  11007. relative to GCC's current directory.
  11008. '-fworking-directory'
  11009. Enable generation of linemarkers in the preprocessor output that
  11010. let the compiler know the current working directory at the time of
  11011. preprocessing. When this option is enabled, the preprocessor
  11012. emits, after the initial linemarker, a second linemarker with the
  11013. current working directory followed by two slashes. GCC uses this
  11014. directory, when it's present in the preprocessed input, as the
  11015. directory emitted as the current working directory in some
  11016. debugging information formats. This option is implicitly enabled
  11017. if debugging information is enabled, but this can be inhibited with
  11018. the negated form '-fno-working-directory'. If the '-P' flag is
  11019. present in the command line, this option has no effect, since no
  11020. '#line' directives are emitted whatsoever.
  11021. '-A PREDICATE=ANSWER'
  11022. Make an assertion with the predicate PREDICATE and answer ANSWER.
  11023. This form is preferred to the older form '-A PREDICATE(ANSWER)',
  11024. which is still supported, because it does not use shell special
  11025. characters.
  11026. '-A -PREDICATE=ANSWER'
  11027. Cancel an assertion with the predicate PREDICATE and answer ANSWER.
  11028. '-C'
  11029. Do not discard comments. All comments are passed through to the
  11030. output file, except for comments in processed directives, which are
  11031. deleted along with the directive.
  11032. You should be prepared for side effects when using '-C'; it causes
  11033. the preprocessor to treat comments as tokens in their own right.
  11034. For example, comments appearing at the start of what would be a
  11035. directive line have the effect of turning that line into an
  11036. ordinary source line, since the first token on the line is no
  11037. longer a '#'.
  11038. '-CC'
  11039. Do not discard comments, including during macro expansion. This is
  11040. like '-C', except that comments contained within macros are also
  11041. passed through to the output file where the macro is expanded.
  11042. In addition to the side effects of the '-C' option, the '-CC'
  11043. option causes all C++-style comments inside a macro to be converted
  11044. to C-style comments. This is to prevent later use of that macro
  11045. from inadvertently commenting out the remainder of the source line.
  11046. The '-CC' option is generally used to support lint comments.
  11047. '-P'
  11048. Inhibit generation of linemarkers in the output from the
  11049. preprocessor. This might be useful when running the preprocessor
  11050. on something that is not C code, and will be sent to a program
  11051. which might be confused by the linemarkers.
  11052. '-traditional'
  11053. '-traditional-cpp'
  11054. Try to imitate the behavior of pre-standard C preprocessors, as
  11055. opposed to ISO C preprocessors. See the GNU CPP manual for
  11056. details.
  11057. Note that GCC does not otherwise attempt to emulate a pre-standard
  11058. C compiler, and these options are only supported with the '-E'
  11059. switch, or when invoking CPP explicitly.
  11060. '-trigraphs'
  11061. Support ISO C trigraphs. These are three-character sequences, all
  11062. starting with '??', that are defined by ISO C to stand for single
  11063. characters. For example, '??/' stands for '\', so ''??/n'' is a
  11064. character constant for a newline.
  11065. The nine trigraphs and their replacements are
  11066. Trigraph: ??( ??) ??< ??> ??= ??/ ??' ??! ??-
  11067. Replacement: [ ] { } # \ ^ | ~
  11068. By default, GCC ignores trigraphs, but in standard-conforming modes
  11069. it converts them. See the '-std' and '-ansi' options.
  11070. '-remap'
  11071. Enable special code to work around file systems which only permit
  11072. very short file names, such as MS-DOS.
  11073. '-H'
  11074. Print the name of each header file used, in addition to other
  11075. normal activities. Each name is indented to show how deep in the
  11076. '#include' stack it is. Precompiled header files are also printed,
  11077. even if they are found to be invalid; an invalid precompiled header
  11078. file is printed with '...x' and a valid one with '...!' .
  11079. '-dLETTERS'
  11080. Says to make debugging dumps during compilation as specified by
  11081. LETTERS. The flags documented here are those relevant to the
  11082. preprocessor. Other LETTERS are interpreted by the compiler
  11083. proper, or reserved for future versions of GCC, and so are silently
  11084. ignored. If you specify LETTERS whose behavior conflicts, the
  11085. result is undefined. *Note Developer Options::, for more
  11086. information.
  11087. '-dM'
  11088. Instead of the normal output, generate a list of '#define'
  11089. directives for all the macros defined during the execution of
  11090. the preprocessor, including predefined macros. This gives you
  11091. a way of finding out what is predefined in your version of the
  11092. preprocessor. Assuming you have no file 'foo.h', the command
  11093. touch foo.h; cpp -dM foo.h
  11094. shows all the predefined macros.
  11095. If you use '-dM' without the '-E' option, '-dM' is interpreted
  11096. as a synonym for '-fdump-rtl-mach'. *Note (gcc)Developer
  11097. Options::.
  11098. '-dD'
  11099. Like '-dM' except in two respects: it does _not_ include the
  11100. predefined macros, and it outputs _both_ the '#define'
  11101. directives and the result of preprocessing. Both kinds of
  11102. output go to the standard output file.
  11103. '-dN'
  11104. Like '-dD', but emit only the macro names, not their
  11105. expansions.
  11106. '-dI'
  11107. Output '#include' directives in addition to the result of
  11108. preprocessing.
  11109. '-dU'
  11110. Like '-dD' except that only macros that are expanded, or whose
  11111. definedness is tested in preprocessor directives, are output;
  11112. the output is delayed until the use or test of the macro; and
  11113. '#undef' directives are also output for macros tested but
  11114. undefined at the time.
  11115. '-fdebug-cpp'
  11116. This option is only useful for debugging GCC. When used from CPP or
  11117. with '-E', it dumps debugging information about location maps.
  11118. Every token in the output is preceded by the dump of the map its
  11119. location belongs to.
  11120. When used from GCC without '-E', this option has no effect.
  11121. '-Wp,OPTION'
  11122. You can use '-Wp,OPTION' to bypass the compiler driver and pass
  11123. OPTION directly through to the preprocessor. If OPTION contains
  11124. commas, it is split into multiple options at the commas. However,
  11125. many options are modified, translated or interpreted by the
  11126. compiler driver before being passed to the preprocessor, and '-Wp'
  11127. forcibly bypasses this phase. The preprocessor's direct interface
  11128. is undocumented and subject to change, so whenever possible you
  11129. should avoid using '-Wp' and let the driver handle the options
  11130. instead.
  11131. '-Xpreprocessor OPTION'
  11132. Pass OPTION as an option to the preprocessor. You can use this to
  11133. supply system-specific preprocessor options that GCC does not
  11134. recognize.
  11135. If you want to pass an option that takes an argument, you must use
  11136. '-Xpreprocessor' twice, once for the option and once for the
  11137. argument.
  11138. '-no-integrated-cpp'
  11139. Perform preprocessing as a separate pass before compilation. By
  11140. default, GCC performs preprocessing as an integrated part of input
  11141. tokenization and parsing. If this option is provided, the
  11142. appropriate language front end ('cc1', 'cc1plus', or 'cc1obj' for
  11143. C, C++, and Objective-C, respectively) is instead invoked twice,
  11144. once for preprocessing only and once for actual compilation of the
  11145. preprocessed input. This option may be useful in conjunction with
  11146. the '-B' or '-wrapper' options to specify an alternate preprocessor
  11147. or perform additional processing of the program source between
  11148. normal preprocessing and compilation.
  11149. 
  11150. File: gcc.info, Node: Assembler Options, Next: Link Options, Prev: Preprocessor Options, Up: Invoking GCC
  11151. 3.14 Passing Options to the Assembler
  11152. =====================================
  11153. You can pass options to the assembler.
  11154. '-Wa,OPTION'
  11155. Pass OPTION as an option to the assembler. If OPTION contains
  11156. commas, it is split into multiple options at the commas.
  11157. '-Xassembler OPTION'
  11158. Pass OPTION as an option to the assembler. You can use this to
  11159. supply system-specific assembler options that GCC does not
  11160. recognize.
  11161. If you want to pass an option that takes an argument, you must use
  11162. '-Xassembler' twice, once for the option and once for the argument.
  11163. 
  11164. File: gcc.info, Node: Link Options, Next: Directory Options, Prev: Assembler Options, Up: Invoking GCC
  11165. 3.15 Options for Linking
  11166. ========================
  11167. These options come into play when the compiler links object files into
  11168. an executable output file. They are meaningless if the compiler is not
  11169. doing a link step.
  11170. 'OBJECT-FILE-NAME'
  11171. A file name that does not end in a special recognized suffix is
  11172. considered to name an object file or library. (Object files are
  11173. distinguished from libraries by the linker according to the file
  11174. contents.) If linking is done, these object files are used as
  11175. input to the linker.
  11176. '-c'
  11177. '-S'
  11178. '-E'
  11179. If any of these options is used, then the linker is not run, and
  11180. object file names should not be used as arguments. *Note Overall
  11181. Options::.
  11182. '-flinker-output=TYPE'
  11183. This option controls code generation of the link-time optimizer.
  11184. By default the linker output is automatically determined by the
  11185. linker plugin. For debugging the compiler and if incremental
  11186. linking with a non-LTO object file is desired, it may be useful to
  11187. control the type manually.
  11188. If TYPE is 'exec', code generation produces a static binary. In
  11189. this case '-fpic' and '-fpie' are both disabled.
  11190. If TYPE is 'dyn', code generation produces a shared library. In
  11191. this case '-fpic' or '-fPIC' is preserved, but not enabled
  11192. automatically. This allows to build shared libraries without
  11193. position-independent code on architectures where this is possible,
  11194. i.e. on x86.
  11195. If TYPE is 'pie', code generation produces an '-fpie' executable.
  11196. This results in similar optimizations as 'exec' except that '-fpie'
  11197. is not disabled if specified at compilation time.
  11198. If TYPE is 'rel', the compiler assumes that incremental linking is
  11199. done. The sections containing intermediate code for link-time
  11200. optimization are merged, pre-optimized, and output to the resulting
  11201. object file. In addition, if '-ffat-lto-objects' is specified,
  11202. binary code is produced for future non-LTO linking. The object
  11203. file produced by incremental linking is smaller than a static
  11204. library produced from the same object files. At link time the
  11205. result of incremental linking also loads faster than a static
  11206. library assuming that the majority of objects in the library are
  11207. used.
  11208. Finally 'nolto-rel' configures the compiler for incremental linking
  11209. where code generation is forced, a final binary is produced, and
  11210. the intermediate code for later link-time optimization is stripped.
  11211. When multiple object files are linked together the resulting code
  11212. is better optimized than with link-time optimizations disabled (for
  11213. example, cross-module inlining happens), but most of benefits of
  11214. whole program optimizations are lost.
  11215. During the incremental link (by '-r') the linker plugin defaults to
  11216. 'rel'. With current interfaces to GNU Binutils it is however not
  11217. possible to incrementally link LTO objects and non-LTO objects into
  11218. a single mixed object file. If any of object files in incremental
  11219. link cannot be used for link-time optimization, the linker plugin
  11220. issues a warning and uses 'nolto-rel'. To maintain whole program
  11221. optimization, it is recommended to link such objects into static
  11222. library instead. Alternatively it is possible to use H.J. Lu's
  11223. binutils with support for mixed objects.
  11224. '-fuse-ld=bfd'
  11225. Use the 'bfd' linker instead of the default linker.
  11226. '-fuse-ld=gold'
  11227. Use the 'gold' linker instead of the default linker.
  11228. '-fuse-ld=lld'
  11229. Use the LLVM 'lld' linker instead of the default linker.
  11230. '-lLIBRARY'
  11231. '-l LIBRARY'
  11232. Search the library named LIBRARY when linking. (The second
  11233. alternative with the library as a separate argument is only for
  11234. POSIX compliance and is not recommended.)
  11235. The '-l' option is passed directly to the linker by GCC. Refer to
  11236. your linker documentation for exact details. The general
  11237. description below applies to the GNU linker.
  11238. The linker searches a standard list of directories for the library.
  11239. The directories searched include several standard system
  11240. directories plus any that you specify with '-L'.
  11241. Static libraries are archives of object files, and have file names
  11242. like 'libLIBRARY.a'. Some targets also support shared libraries,
  11243. which typically have names like 'libLIBRARY.so'. If both static
  11244. and shared libraries are found, the linker gives preference to
  11245. linking with the shared library unless the '-static' option is
  11246. used.
  11247. It makes a difference where in the command you write this option;
  11248. the linker searches and processes libraries and object files in the
  11249. order they are specified. Thus, 'foo.o -lz bar.o' searches library
  11250. 'z' after file 'foo.o' but before 'bar.o'. If 'bar.o' refers to
  11251. functions in 'z', those functions may not be loaded.
  11252. '-lobjc'
  11253. You need this special case of the '-l' option in order to link an
  11254. Objective-C or Objective-C++ program.
  11255. '-nostartfiles'
  11256. Do not use the standard system startup files when linking. The
  11257. standard system libraries are used normally, unless '-nostdlib',
  11258. '-nolibc', or '-nodefaultlibs' is used.
  11259. '-nodefaultlibs'
  11260. Do not use the standard system libraries when linking. Only the
  11261. libraries you specify are passed to the linker, and options
  11262. specifying linkage of the system libraries, such as
  11263. '-static-libgcc' or '-shared-libgcc', are ignored. The standard
  11264. startup files are used normally, unless '-nostartfiles' is used.
  11265. The compiler may generate calls to 'memcmp', 'memset', 'memcpy' and
  11266. 'memmove'. These entries are usually resolved by entries in libc.
  11267. These entry points should be supplied through some other mechanism
  11268. when this option is specified.
  11269. '-nolibc'
  11270. Do not use the C library or system libraries tightly coupled with
  11271. it when linking. Still link with the startup files, 'libgcc' or
  11272. toolchain provided language support libraries such as 'libgnat',
  11273. 'libgfortran' or 'libstdc++' unless options preventing their
  11274. inclusion are used as well. This typically removes '-lc' from the
  11275. link command line, as well as system libraries that normally go
  11276. with it and become meaningless when absence of a C library is
  11277. assumed, for example '-lpthread' or '-lm' in some configurations.
  11278. This is intended for bare-board targets when there is indeed no C
  11279. library available.
  11280. '-nostdlib'
  11281. Do not use the standard system startup files or libraries when
  11282. linking. No startup files and only the libraries you specify are
  11283. passed to the linker, and options specifying linkage of the system
  11284. libraries, such as '-static-libgcc' or '-shared-libgcc', are
  11285. ignored.
  11286. The compiler may generate calls to 'memcmp', 'memset', 'memcpy' and
  11287. 'memmove'. These entries are usually resolved by entries in libc.
  11288. These entry points should be supplied through some other mechanism
  11289. when this option is specified.
  11290. One of the standard libraries bypassed by '-nostdlib' and
  11291. '-nodefaultlibs' is 'libgcc.a', a library of internal subroutines
  11292. which GCC uses to overcome shortcomings of particular machines, or
  11293. special needs for some languages. (*Note Interfacing to GCC
  11294. Output: (gccint)Interface, for more discussion of 'libgcc.a'.) In
  11295. most cases, you need 'libgcc.a' even when you want to avoid other
  11296. standard libraries. In other words, when you specify '-nostdlib'
  11297. or '-nodefaultlibs' you should usually specify '-lgcc' as well.
  11298. This ensures that you have no unresolved references to internal GCC
  11299. library subroutines. (An example of such an internal subroutine is
  11300. '__main', used to ensure C++ constructors are called; *note
  11301. 'collect2': (gccint)Collect2.)
  11302. '-e ENTRY'
  11303. '--entry=ENTRY'
  11304. Specify that the program entry point is ENTRY. The argument is
  11305. interpreted by the linker; the GNU linker accepts either a symbol
  11306. name or an address.
  11307. '-pie'
  11308. Produce a dynamically linked position independent executable on
  11309. targets that support it. For predictable results, you must also
  11310. specify the same set of options used for compilation ('-fpie',
  11311. '-fPIE', or model suboptions) when you specify this linker option.
  11312. '-no-pie'
  11313. Don't produce a dynamically linked position independent executable.
  11314. '-static-pie'
  11315. Produce a static position independent executable on targets that
  11316. support it. A static position independent executable is similar to
  11317. a static executable, but can be loaded at any address without a
  11318. dynamic linker. For predictable results, you must also specify the
  11319. same set of options used for compilation ('-fpie', '-fPIE', or
  11320. model suboptions) when you specify this linker option.
  11321. '-pthread'
  11322. Link with the POSIX threads library. This option is supported on
  11323. GNU/Linux targets, most other Unix derivatives, and also on x86
  11324. Cygwin and MinGW targets. On some targets this option also sets
  11325. flags for the preprocessor, so it should be used consistently for
  11326. both compilation and linking.
  11327. '-r'
  11328. Produce a relocatable object as output. This is also known as
  11329. partial linking.
  11330. '-rdynamic'
  11331. Pass the flag '-export-dynamic' to the ELF linker, on targets that
  11332. support it. This instructs the linker to add all symbols, not only
  11333. used ones, to the dynamic symbol table. This option is needed for
  11334. some uses of 'dlopen' or to allow obtaining backtraces from within
  11335. a program.
  11336. '-s'
  11337. Remove all symbol table and relocation information from the
  11338. executable.
  11339. '-static'
  11340. On systems that support dynamic linking, this overrides '-pie' and
  11341. prevents linking with the shared libraries. On other systems, this
  11342. option has no effect.
  11343. '-shared'
  11344. Produce a shared object which can then be linked with other objects
  11345. to form an executable. Not all systems support this option. For
  11346. predictable results, you must also specify the same set of options
  11347. used for compilation ('-fpic', '-fPIC', or model suboptions) when
  11348. you specify this linker option.(1)
  11349. '-shared-libgcc'
  11350. '-static-libgcc'
  11351. On systems that provide 'libgcc' as a shared library, these options
  11352. force the use of either the shared or static version, respectively.
  11353. If no shared version of 'libgcc' was built when the compiler was
  11354. configured, these options have no effect.
  11355. There are several situations in which an application should use the
  11356. shared 'libgcc' instead of the static version. The most common of
  11357. these is when the application wishes to throw and catch exceptions
  11358. across different shared libraries. In that case, each of the
  11359. libraries as well as the application itself should use the shared
  11360. 'libgcc'.
  11361. Therefore, the G++ driver automatically adds '-shared-libgcc'
  11362. whenever you build a shared library or a main executable, because
  11363. C++ programs typically use exceptions, so this is the right thing
  11364. to do.
  11365. If, instead, you use the GCC driver to create shared libraries, you
  11366. may find that they are not always linked with the shared 'libgcc'.
  11367. If GCC finds, at its configuration time, that you have a non-GNU
  11368. linker or a GNU linker that does not support option
  11369. '--eh-frame-hdr', it links the shared version of 'libgcc' into
  11370. shared libraries by default. Otherwise, it takes advantage of the
  11371. linker and optimizes away the linking with the shared version of
  11372. 'libgcc', linking with the static version of libgcc by default.
  11373. This allows exceptions to propagate through such shared libraries,
  11374. without incurring relocation costs at library load time.
  11375. However, if a library or main executable is supposed to throw or
  11376. catch exceptions, you must link it using the G++ driver, or using
  11377. the option '-shared-libgcc', such that it is linked with the shared
  11378. 'libgcc'.
  11379. '-static-libasan'
  11380. When the '-fsanitize=address' option is used to link a program, the
  11381. GCC driver automatically links against 'libasan'. If 'libasan' is
  11382. available as a shared library, and the '-static' option is not
  11383. used, then this links against the shared version of 'libasan'. The
  11384. '-static-libasan' option directs the GCC driver to link 'libasan'
  11385. statically, without necessarily linking other libraries statically.
  11386. '-static-libtsan'
  11387. When the '-fsanitize=thread' option is used to link a program, the
  11388. GCC driver automatically links against 'libtsan'. If 'libtsan' is
  11389. available as a shared library, and the '-static' option is not
  11390. used, then this links against the shared version of 'libtsan'. The
  11391. '-static-libtsan' option directs the GCC driver to link 'libtsan'
  11392. statically, without necessarily linking other libraries statically.
  11393. '-static-liblsan'
  11394. When the '-fsanitize=leak' option is used to link a program, the
  11395. GCC driver automatically links against 'liblsan'. If 'liblsan' is
  11396. available as a shared library, and the '-static' option is not
  11397. used, then this links against the shared version of 'liblsan'. The
  11398. '-static-liblsan' option directs the GCC driver to link 'liblsan'
  11399. statically, without necessarily linking other libraries statically.
  11400. '-static-libubsan'
  11401. When the '-fsanitize=undefined' option is used to link a program,
  11402. the GCC driver automatically links against 'libubsan'. If
  11403. 'libubsan' is available as a shared library, and the '-static'
  11404. option is not used, then this links against the shared version of
  11405. 'libubsan'. The '-static-libubsan' option directs the GCC driver
  11406. to link 'libubsan' statically, without necessarily linking other
  11407. libraries statically.
  11408. '-static-libstdc++'
  11409. When the 'g++' program is used to link a C++ program, it normally
  11410. automatically links against 'libstdc++'. If 'libstdc++' is
  11411. available as a shared library, and the '-static' option is not
  11412. used, then this links against the shared version of 'libstdc++'.
  11413. That is normally fine. However, it is sometimes useful to freeze
  11414. the version of 'libstdc++' used by the program without going all
  11415. the way to a fully static link. The '-static-libstdc++' option
  11416. directs the 'g++' driver to link 'libstdc++' statically, without
  11417. necessarily linking other libraries statically.
  11418. '-symbolic'
  11419. Bind references to global symbols when building a shared object.
  11420. Warn about any unresolved references (unless overridden by the link
  11421. editor option '-Xlinker -z -Xlinker defs'). Only a few systems
  11422. support this option.
  11423. '-T SCRIPT'
  11424. Use SCRIPT as the linker script. This option is supported by most
  11425. systems using the GNU linker. On some targets, such as bare-board
  11426. targets without an operating system, the '-T' option may be
  11427. required when linking to avoid references to undefined symbols.
  11428. '-Xlinker OPTION'
  11429. Pass OPTION as an option to the linker. You can use this to supply
  11430. system-specific linker options that GCC does not recognize.
  11431. If you want to pass an option that takes a separate argument, you
  11432. must use '-Xlinker' twice, once for the option and once for the
  11433. argument. For example, to pass '-assert definitions', you must
  11434. write '-Xlinker -assert -Xlinker definitions'. It does not work to
  11435. write '-Xlinker "-assert definitions"', because this passes the
  11436. entire string as a single argument, which is not what the linker
  11437. expects.
  11438. When using the GNU linker, it is usually more convenient to pass
  11439. arguments to linker options using the 'OPTION=VALUE' syntax than as
  11440. separate arguments. For example, you can specify '-Xlinker
  11441. -Map=output.map' rather than '-Xlinker -Map -Xlinker output.map'.
  11442. Other linkers may not support this syntax for command-line options.
  11443. '-Wl,OPTION'
  11444. Pass OPTION as an option to the linker. If OPTION contains commas,
  11445. it is split into multiple options at the commas. You can use this
  11446. syntax to pass an argument to the option. For example,
  11447. '-Wl,-Map,output.map' passes '-Map output.map' to the linker. When
  11448. using the GNU linker, you can also get the same effect with
  11449. '-Wl,-Map=output.map'.
  11450. '-u SYMBOL'
  11451. Pretend the symbol SYMBOL is undefined, to force linking of library
  11452. modules to define it. You can use '-u' multiple times with
  11453. different symbols to force loading of additional library modules.
  11454. '-z KEYWORD'
  11455. '-z' is passed directly on to the linker along with the keyword
  11456. KEYWORD. See the section in the documentation of your linker for
  11457. permitted values and their meanings.
  11458. ---------- Footnotes ----------
  11459. (1) On some systems, 'gcc -shared' needs to build supplementary stub
  11460. code for constructors to work. On multi-libbed systems, 'gcc -shared'
  11461. must select the correct support libraries to link against. Failing to
  11462. supply the correct flags may lead to subtle defects. Supplying them in
  11463. cases where they are not necessary is innocuous.
  11464. 
  11465. File: gcc.info, Node: Directory Options, Next: Code Gen Options, Prev: Link Options, Up: Invoking GCC
  11466. 3.16 Options for Directory Search
  11467. =================================
  11468. These options specify directories to search for header files, for
  11469. libraries and for parts of the compiler:
  11470. '-I DIR'
  11471. '-iquote DIR'
  11472. '-isystem DIR'
  11473. '-idirafter DIR'
  11474. Add the directory DIR to the list of directories to be searched for
  11475. header files during preprocessing. If DIR begins with '=' or
  11476. '$SYSROOT', then the '=' or '$SYSROOT' is replaced by the sysroot
  11477. prefix; see '--sysroot' and '-isysroot'.
  11478. Directories specified with '-iquote' apply only to the quote form
  11479. of the directive, '#include "FILE"'. Directories specified with
  11480. '-I', '-isystem', or '-idirafter' apply to lookup for both the
  11481. '#include "FILE"' and '#include <FILE>' directives.
  11482. You can specify any number or combination of these options on the
  11483. command line to search for header files in several directories.
  11484. The lookup order is as follows:
  11485. 1. For the quote form of the include directive, the directory of
  11486. the current file is searched first.
  11487. 2. For the quote form of the include directive, the directories
  11488. specified by '-iquote' options are searched in left-to-right
  11489. order, as they appear on the command line.
  11490. 3. Directories specified with '-I' options are scanned in
  11491. left-to-right order.
  11492. 4. Directories specified with '-isystem' options are scanned in
  11493. left-to-right order.
  11494. 5. Standard system directories are scanned.
  11495. 6. Directories specified with '-idirafter' options are scanned in
  11496. left-to-right order.
  11497. You can use '-I' to override a system header file, substituting
  11498. your own version, since these directories are searched before the
  11499. standard system header file directories. However, you should not
  11500. use this option to add directories that contain vendor-supplied
  11501. system header files; use '-isystem' for that.
  11502. The '-isystem' and '-idirafter' options also mark the directory as
  11503. a system directory, so that it gets the same special treatment that
  11504. is applied to the standard system directories.
  11505. If a standard system include directory, or a directory specified
  11506. with '-isystem', is also specified with '-I', the '-I' option is
  11507. ignored. The directory is still searched but as a system directory
  11508. at its normal position in the system include chain. This is to
  11509. ensure that GCC's procedure to fix buggy system headers and the
  11510. ordering for the '#include_next' directive are not inadvertently
  11511. changed. If you really need to change the search order for system
  11512. directories, use the '-nostdinc' and/or '-isystem' options.
  11513. '-I-'
  11514. Split the include path. This option has been deprecated. Please
  11515. use '-iquote' instead for '-I' directories before the '-I-' and
  11516. remove the '-I-' option.
  11517. Any directories specified with '-I' options before '-I-' are
  11518. searched only for headers requested with '#include "FILE"'; they
  11519. are not searched for '#include <FILE>'. If additional directories
  11520. are specified with '-I' options after the '-I-', those directories
  11521. are searched for all '#include' directives.
  11522. In addition, '-I-' inhibits the use of the directory of the current
  11523. file directory as the first search directory for '#include "FILE"'.
  11524. There is no way to override this effect of '-I-'.
  11525. '-iprefix PREFIX'
  11526. Specify PREFIX as the prefix for subsequent '-iwithprefix' options.
  11527. If the prefix represents a directory, you should include the final
  11528. '/'.
  11529. '-iwithprefix DIR'
  11530. '-iwithprefixbefore DIR'
  11531. Append DIR to the prefix specified previously with '-iprefix', and
  11532. add the resulting directory to the include search path.
  11533. '-iwithprefixbefore' puts it in the same place '-I' would;
  11534. '-iwithprefix' puts it where '-idirafter' would.
  11535. '-isysroot DIR'
  11536. This option is like the '--sysroot' option, but applies only to
  11537. header files (except for Darwin targets, where it applies to both
  11538. header files and libraries). See the '--sysroot' option for more
  11539. information.
  11540. '-imultilib DIR'
  11541. Use DIR as a subdirectory of the directory containing
  11542. target-specific C++ headers.
  11543. '-nostdinc'
  11544. Do not search the standard system directories for header files.
  11545. Only the directories explicitly specified with '-I', '-iquote',
  11546. '-isystem', and/or '-idirafter' options (and the directory of the
  11547. current file, if appropriate) are searched.
  11548. '-nostdinc++'
  11549. Do not search for header files in the C++-specific standard
  11550. directories, but do still search the other standard directories.
  11551. (This option is used when building the C++ library.)
  11552. '-iplugindir=DIR'
  11553. Set the directory to search for plugins that are passed by
  11554. '-fplugin=NAME' instead of '-fplugin=PATH/NAME.so'. This option is
  11555. not meant to be used by the user, but only passed by the driver.
  11556. '-LDIR'
  11557. Add directory DIR to the list of directories to be searched for
  11558. '-l'.
  11559. '-BPREFIX'
  11560. This option specifies where to find the executables, libraries,
  11561. include files, and data files of the compiler itself.
  11562. The compiler driver program runs one or more of the subprograms
  11563. 'cpp', 'cc1', 'as' and 'ld'. It tries PREFIX as a prefix for each
  11564. program it tries to run, both with and without 'MACHINE/VERSION/'
  11565. for the corresponding target machine and compiler version.
  11566. For each subprogram to be run, the compiler driver first tries the
  11567. '-B' prefix, if any. If that name is not found, or if '-B' is not
  11568. specified, the driver tries two standard prefixes, '/usr/lib/gcc/'
  11569. and '/usr/local/lib/gcc/'. If neither of those results in a file
  11570. name that is found, the unmodified program name is searched for
  11571. using the directories specified in your 'PATH' environment
  11572. variable.
  11573. The compiler checks to see if the path provided by '-B' refers to a
  11574. directory, and if necessary it adds a directory separator character
  11575. at the end of the path.
  11576. '-B' prefixes that effectively specify directory names also apply
  11577. to libraries in the linker, because the compiler translates these
  11578. options into '-L' options for the linker. They also apply to
  11579. include files in the preprocessor, because the compiler translates
  11580. these options into '-isystem' options for the preprocessor. In
  11581. this case, the compiler appends 'include' to the prefix.
  11582. The runtime support file 'libgcc.a' can also be searched for using
  11583. the '-B' prefix, if needed. If it is not found there, the two
  11584. standard prefixes above are tried, and that is all. The file is
  11585. left out of the link if it is not found by those means.
  11586. Another way to specify a prefix much like the '-B' prefix is to use
  11587. the environment variable 'GCC_EXEC_PREFIX'. *Note Environment
  11588. Variables::.
  11589. As a special kludge, if the path provided by '-B' is
  11590. '[dir/]stageN/', where N is a number in the range 0 to 9, then it
  11591. is replaced by '[dir/]include'. This is to help with
  11592. boot-strapping the compiler.
  11593. '-no-canonical-prefixes'
  11594. Do not expand any symbolic links, resolve references to '/../' or
  11595. '/./', or make the path absolute when generating a relative prefix.
  11596. '--sysroot=DIR'
  11597. Use DIR as the logical root directory for headers and libraries.
  11598. For example, if the compiler normally searches for headers in
  11599. '/usr/include' and libraries in '/usr/lib', it instead searches
  11600. 'DIR/usr/include' and 'DIR/usr/lib'.
  11601. If you use both this option and the '-isysroot' option, then the
  11602. '--sysroot' option applies to libraries, but the '-isysroot' option
  11603. applies to header files.
  11604. The GNU linker (beginning with version 2.16) has the necessary
  11605. support for this option. If your linker does not support this
  11606. option, the header file aspect of '--sysroot' still works, but the
  11607. library aspect does not.
  11608. '--no-sysroot-suffix'
  11609. For some targets, a suffix is added to the root directory specified
  11610. with '--sysroot', depending on the other options used, so that
  11611. headers may for example be found in 'DIR/SUFFIX/usr/include'
  11612. instead of 'DIR/usr/include'. This option disables the addition of
  11613. such a suffix.
  11614. 
  11615. File: gcc.info, Node: Code Gen Options, Next: Developer Options, Prev: Directory Options, Up: Invoking GCC
  11616. 3.17 Options for Code Generation Conventions
  11617. ============================================
  11618. These machine-independent options control the interface conventions used
  11619. in code generation.
  11620. Most of them have both positive and negative forms; the negative form
  11621. of '-ffoo' is '-fno-foo'. In the table below, only one of the forms is
  11622. listed--the one that is not the default. You can figure out the other
  11623. form by either removing 'no-' or adding it.
  11624. '-fstack-reuse=REUSE-LEVEL'
  11625. This option controls stack space reuse for user declared local/auto
  11626. variables and compiler generated temporaries. REUSE_LEVEL can be
  11627. 'all', 'named_vars', or 'none'. 'all' enables stack reuse for all
  11628. local variables and temporaries, 'named_vars' enables the reuse
  11629. only for user defined local variables with names, and 'none'
  11630. disables stack reuse completely. The default value is 'all'. The
  11631. option is needed when the program extends the lifetime of a scoped
  11632. local variable or a compiler generated temporary beyond the end
  11633. point defined by the language. When a lifetime of a variable ends,
  11634. and if the variable lives in memory, the optimizing compiler has
  11635. the freedom to reuse its stack space with other temporaries or
  11636. scoped local variables whose live range does not overlap with it.
  11637. Legacy code extending local lifetime is likely to break with the
  11638. stack reuse optimization.
  11639. For example,
  11640. int *p;
  11641. {
  11642. int local1;
  11643. p = &local1;
  11644. local1 = 10;
  11645. ....
  11646. }
  11647. {
  11648. int local2;
  11649. local2 = 20;
  11650. ...
  11651. }
  11652. if (*p == 10) // out of scope use of local1
  11653. {
  11654. }
  11655. Another example:
  11656. struct A
  11657. {
  11658. A(int k) : i(k), j(k) { }
  11659. int i;
  11660. int j;
  11661. };
  11662. A *ap;
  11663. void foo(const A& ar)
  11664. {
  11665. ap = &ar;
  11666. }
  11667. void bar()
  11668. {
  11669. foo(A(10)); // temp object's lifetime ends when foo returns
  11670. {
  11671. A a(20);
  11672. ....
  11673. }
  11674. ap->i+= 10; // ap references out of scope temp whose space
  11675. // is reused with a. What is the value of ap->i?
  11676. }
  11677. The lifetime of a compiler generated temporary is well defined by
  11678. the C++ standard. When a lifetime of a temporary ends, and if the
  11679. temporary lives in memory, the optimizing compiler has the freedom
  11680. to reuse its stack space with other temporaries or scoped local
  11681. variables whose live range does not overlap with it. However some
  11682. of the legacy code relies on the behavior of older compilers in
  11683. which temporaries' stack space is not reused, the aggressive stack
  11684. reuse can lead to runtime errors. This option is used to control
  11685. the temporary stack reuse optimization.
  11686. '-ftrapv'
  11687. This option generates traps for signed overflow on addition,
  11688. subtraction, multiplication operations. The options '-ftrapv' and
  11689. '-fwrapv' override each other, so using '-ftrapv' '-fwrapv' on the
  11690. command-line results in '-fwrapv' being effective. Note that only
  11691. active options override, so using '-ftrapv' '-fwrapv' '-fno-wrapv'
  11692. on the command-line results in '-ftrapv' being effective.
  11693. '-fwrapv'
  11694. This option instructs the compiler to assume that signed arithmetic
  11695. overflow of addition, subtraction and multiplication wraps around
  11696. using twos-complement representation. This flag enables some
  11697. optimizations and disables others. The options '-ftrapv' and
  11698. '-fwrapv' override each other, so using '-ftrapv' '-fwrapv' on the
  11699. command-line results in '-fwrapv' being effective. Note that only
  11700. active options override, so using '-ftrapv' '-fwrapv' '-fno-wrapv'
  11701. on the command-line results in '-ftrapv' being effective.
  11702. '-fwrapv-pointer'
  11703. This option instructs the compiler to assume that pointer
  11704. arithmetic overflow on addition and subtraction wraps around using
  11705. twos-complement representation. This flag disables some
  11706. optimizations which assume pointer overflow is invalid.
  11707. '-fstrict-overflow'
  11708. This option implies '-fno-wrapv' '-fno-wrapv-pointer' and when
  11709. negated implies '-fwrapv' '-fwrapv-pointer'.
  11710. '-fexceptions'
  11711. Enable exception handling. Generates extra code needed to
  11712. propagate exceptions. For some targets, this implies GCC generates
  11713. frame unwind information for all functions, which can produce
  11714. significant data size overhead, although it does not affect
  11715. execution. If you do not specify this option, GCC enables it by
  11716. default for languages like C++ that normally require exception
  11717. handling, and disables it for languages like C that do not normally
  11718. require it. However, you may need to enable this option when
  11719. compiling C code that needs to interoperate properly with exception
  11720. handlers written in C++. You may also wish to disable this option
  11721. if you are compiling older C++ programs that don't use exception
  11722. handling.
  11723. '-fnon-call-exceptions'
  11724. Generate code that allows trapping instructions to throw
  11725. exceptions. Note that this requires platform-specific runtime
  11726. support that does not exist everywhere. Moreover, it only allows
  11727. _trapping_ instructions to throw exceptions, i.e. memory references
  11728. or floating-point instructions. It does not allow exceptions to be
  11729. thrown from arbitrary signal handlers such as 'SIGALRM'.
  11730. '-fdelete-dead-exceptions'
  11731. Consider that instructions that may throw exceptions but don't
  11732. otherwise contribute to the execution of the program can be
  11733. optimized away. This option is enabled by default for the Ada
  11734. front end, as permitted by the Ada language specification.
  11735. Optimization passes that cause dead exceptions to be removed are
  11736. enabled independently at different optimization levels.
  11737. '-funwind-tables'
  11738. Similar to '-fexceptions', except that it just generates any needed
  11739. static data, but does not affect the generated code in any other
  11740. way. You normally do not need to enable this option; instead, a
  11741. language processor that needs this handling enables it on your
  11742. behalf.
  11743. '-fasynchronous-unwind-tables'
  11744. Generate unwind table in DWARF format, if supported by target
  11745. machine. The table is exact at each instruction boundary, so it
  11746. can be used for stack unwinding from asynchronous events (such as
  11747. debugger or garbage collector).
  11748. '-fno-gnu-unique'
  11749. On systems with recent GNU assembler and C library, the C++
  11750. compiler uses the 'STB_GNU_UNIQUE' binding to make sure that
  11751. definitions of template static data members and static local
  11752. variables in inline functions are unique even in the presence of
  11753. 'RTLD_LOCAL'; this is necessary to avoid problems with a library
  11754. used by two different 'RTLD_LOCAL' plugins depending on a
  11755. definition in one of them and therefore disagreeing with the other
  11756. one about the binding of the symbol. But this causes 'dlclose' to
  11757. be ignored for affected DSOs; if your program relies on
  11758. reinitialization of a DSO via 'dlclose' and 'dlopen', you can use
  11759. '-fno-gnu-unique'.
  11760. '-fpcc-struct-return'
  11761. Return "short" 'struct' and 'union' values in memory like longer
  11762. ones, rather than in registers. This convention is less efficient,
  11763. but it has the advantage of allowing intercallability between
  11764. GCC-compiled files and files compiled with other compilers,
  11765. particularly the Portable C Compiler (pcc).
  11766. The precise convention for returning structures in memory depends
  11767. on the target configuration macros.
  11768. Short structures and unions are those whose size and alignment
  11769. match that of some integer type.
  11770. *Warning:* code compiled with the '-fpcc-struct-return' switch is
  11771. not binary compatible with code compiled with the
  11772. '-freg-struct-return' switch. Use it to conform to a non-default
  11773. application binary interface.
  11774. '-freg-struct-return'
  11775. Return 'struct' and 'union' values in registers when possible.
  11776. This is more efficient for small structures than
  11777. '-fpcc-struct-return'.
  11778. If you specify neither '-fpcc-struct-return' nor
  11779. '-freg-struct-return', GCC defaults to whichever convention is
  11780. standard for the target. If there is no standard convention, GCC
  11781. defaults to '-fpcc-struct-return', except on targets where GCC is
  11782. the principal compiler. In those cases, we can choose the
  11783. standard, and we chose the more efficient register return
  11784. alternative.
  11785. *Warning:* code compiled with the '-freg-struct-return' switch is
  11786. not binary compatible with code compiled with the
  11787. '-fpcc-struct-return' switch. Use it to conform to a non-default
  11788. application binary interface.
  11789. '-fshort-enums'
  11790. Allocate to an 'enum' type only as many bytes as it needs for the
  11791. declared range of possible values. Specifically, the 'enum' type
  11792. is equivalent to the smallest integer type that has enough room.
  11793. *Warning:* the '-fshort-enums' switch causes GCC to generate code
  11794. that is not binary compatible with code generated without that
  11795. switch. Use it to conform to a non-default application binary
  11796. interface.
  11797. '-fshort-wchar'
  11798. Override the underlying type for 'wchar_t' to be 'short unsigned
  11799. int' instead of the default for the target. This option is useful
  11800. for building programs to run under WINE.
  11801. *Warning:* the '-fshort-wchar' switch causes GCC to generate code
  11802. that is not binary compatible with code generated without that
  11803. switch. Use it to conform to a non-default application binary
  11804. interface.
  11805. '-fcommon'
  11806. In C code, this option controls the placement of global variables
  11807. defined without an initializer, known as "tentative definitions" in
  11808. the C standard. Tentative definitions are distinct from
  11809. declarations of a variable with the 'extern' keyword, which do not
  11810. allocate storage.
  11811. The default is '-fno-common', which specifies that the compiler
  11812. places uninitialized global variables in the BSS section of the
  11813. object file. This inhibits the merging of tentative definitions by
  11814. the linker so you get a multiple-definition error if the same
  11815. variable is accidentally defined in more than one compilation unit.
  11816. The '-fcommon' places uninitialized global variables in a common
  11817. block. This allows the linker to resolve all tentative definitions
  11818. of the same variable in different compilation units to the same
  11819. object, or to a non-tentative definition. This behavior is
  11820. inconsistent with C++, and on many targets implies a speed and code
  11821. size penalty on global variable references. It is mainly useful to
  11822. enable legacy code to link without errors.
  11823. '-fno-ident'
  11824. Ignore the '#ident' directive.
  11825. '-finhibit-size-directive'
  11826. Don't output a '.size' assembler directive, or anything else that
  11827. would cause trouble if the function is split in the middle, and the
  11828. two halves are placed at locations far apart in memory. This
  11829. option is used when compiling 'crtstuff.c'; you should not need to
  11830. use it for anything else.
  11831. '-fverbose-asm'
  11832. Put extra commentary information in the generated assembly code to
  11833. make it more readable. This option is generally only of use to
  11834. those who actually need to read the generated assembly code
  11835. (perhaps while debugging the compiler itself).
  11836. '-fno-verbose-asm', the default, causes the extra information to be
  11837. omitted and is useful when comparing two assembler files.
  11838. The added comments include:
  11839. * information on the compiler version and command-line options,
  11840. * the source code lines associated with the assembly
  11841. instructions, in the form FILENAME:LINENUMBER:CONTENT OF LINE,
  11842. * hints on which high-level expressions correspond to the
  11843. various assembly instruction operands.
  11844. For example, given this C source file:
  11845. int test (int n)
  11846. {
  11847. int i;
  11848. int total = 0;
  11849. for (i = 0; i < n; i++)
  11850. total += i * i;
  11851. return total;
  11852. }
  11853. compiling to (x86_64) assembly via '-S' and emitting the result
  11854. direct to stdout via '-o' '-'
  11855. gcc -S test.c -fverbose-asm -Os -o -
  11856. gives output similar to this:
  11857. .file "test.c"
  11858. # GNU C11 (GCC) version 7.0.0 20160809 (experimental) (x86_64-pc-linux-gnu)
  11859. [...snip...]
  11860. # options passed:
  11861. [...snip...]
  11862. .text
  11863. .globl test
  11864. .type test, @function
  11865. test:
  11866. .LFB0:
  11867. .cfi_startproc
  11868. # test.c:4: int total = 0;
  11869. xorl %eax, %eax # <retval>
  11870. # test.c:6: for (i = 0; i < n; i++)
  11871. xorl %edx, %edx # i
  11872. .L2:
  11873. # test.c:6: for (i = 0; i < n; i++)
  11874. cmpl %edi, %edx # n, i
  11875. jge .L5 #,
  11876. # test.c:7: total += i * i;
  11877. movl %edx, %ecx # i, tmp92
  11878. imull %edx, %ecx # i, tmp92
  11879. # test.c:6: for (i = 0; i < n; i++)
  11880. incl %edx # i
  11881. # test.c:7: total += i * i;
  11882. addl %ecx, %eax # tmp92, <retval>
  11883. jmp .L2 #
  11884. .L5:
  11885. # test.c:10: }
  11886. ret
  11887. .cfi_endproc
  11888. .LFE0:
  11889. .size test, .-test
  11890. .ident "GCC: (GNU) 7.0.0 20160809 (experimental)"
  11891. .section .note.GNU-stack,"",@progbits
  11892. The comments are intended for humans rather than machines and hence
  11893. the precise format of the comments is subject to change.
  11894. '-frecord-gcc-switches'
  11895. This switch causes the command line used to invoke the compiler to
  11896. be recorded into the object file that is being created. This
  11897. switch is only implemented on some targets and the exact format of
  11898. the recording is target and binary file format dependent, but it
  11899. usually takes the form of a section containing ASCII text. This
  11900. switch is related to the '-fverbose-asm' switch, but that switch
  11901. only records information in the assembler output file as comments,
  11902. so it never reaches the object file. See also
  11903. '-grecord-gcc-switches' for another way of storing compiler options
  11904. into the object file.
  11905. '-fpic'
  11906. Generate position-independent code (PIC) suitable for use in a
  11907. shared library, if supported for the target machine. Such code
  11908. accesses all constant addresses through a global offset table
  11909. (GOT). The dynamic loader resolves the GOT entries when the
  11910. program starts (the dynamic loader is not part of GCC; it is part
  11911. of the operating system). If the GOT size for the linked
  11912. executable exceeds a machine-specific maximum size, you get an
  11913. error message from the linker indicating that '-fpic' does not
  11914. work; in that case, recompile with '-fPIC' instead. (These
  11915. maximums are 8k on the SPARC, 28k on AArch64 and 32k on the m68k
  11916. and RS/6000. The x86 has no such limit.)
  11917. Position-independent code requires special support, and therefore
  11918. works only on certain machines. For the x86, GCC supports PIC for
  11919. System V but not for the Sun 386i. Code generated for the IBM
  11920. RS/6000 is always position-independent.
  11921. When this flag is set, the macros '__pic__' and '__PIC__' are
  11922. defined to 1.
  11923. '-fPIC'
  11924. If supported for the target machine, emit position-independent
  11925. code, suitable for dynamic linking and avoiding any limit on the
  11926. size of the global offset table. This option makes a difference on
  11927. AArch64, m68k, PowerPC and SPARC.
  11928. Position-independent code requires special support, and therefore
  11929. works only on certain machines.
  11930. When this flag is set, the macros '__pic__' and '__PIC__' are
  11931. defined to 2.
  11932. '-fpie'
  11933. '-fPIE'
  11934. These options are similar to '-fpic' and '-fPIC', but the generated
  11935. position-independent code can be only linked into executables.
  11936. Usually these options are used to compile code that will be linked
  11937. using the '-pie' GCC option.
  11938. '-fpie' and '-fPIE' both define the macros '__pie__' and '__PIE__'.
  11939. The macros have the value 1 for '-fpie' and 2 for '-fPIE'.
  11940. '-fno-plt'
  11941. Do not use the PLT for external function calls in
  11942. position-independent code. Instead, load the callee address at
  11943. call sites from the GOT and branch to it. This leads to more
  11944. efficient code by eliminating PLT stubs and exposing GOT loads to
  11945. optimizations. On architectures such as 32-bit x86 where PLT stubs
  11946. expect the GOT pointer in a specific register, this gives more
  11947. register allocation freedom to the compiler. Lazy binding requires
  11948. use of the PLT; with '-fno-plt' all external symbols are resolved
  11949. at load time.
  11950. Alternatively, the function attribute 'noplt' can be used to avoid
  11951. calls through the PLT for specific external functions.
  11952. In position-dependent code, a few targets also convert calls to
  11953. functions that are marked to not use the PLT to use the GOT
  11954. instead.
  11955. '-fno-jump-tables'
  11956. Do not use jump tables for switch statements even where it would be
  11957. more efficient than other code generation strategies. This option
  11958. is of use in conjunction with '-fpic' or '-fPIC' for building code
  11959. that forms part of a dynamic linker and cannot reference the
  11960. address of a jump table. On some targets, jump tables do not
  11961. require a GOT and this option is not needed.
  11962. '-ffixed-REG'
  11963. Treat the register named REG as a fixed register; generated code
  11964. should never refer to it (except perhaps as a stack pointer, frame
  11965. pointer or in some other fixed role).
  11966. REG must be the name of a register. The register names accepted
  11967. are machine-specific and are defined in the 'REGISTER_NAMES' macro
  11968. in the machine description macro file.
  11969. This flag does not have a negative form, because it specifies a
  11970. three-way choice.
  11971. '-fcall-used-REG'
  11972. Treat the register named REG as an allocable register that is
  11973. clobbered by function calls. It may be allocated for temporaries
  11974. or variables that do not live across a call. Functions compiled
  11975. this way do not save and restore the register REG.
  11976. It is an error to use this flag with the frame pointer or stack
  11977. pointer. Use of this flag for other registers that have fixed
  11978. pervasive roles in the machine's execution model produces
  11979. disastrous results.
  11980. This flag does not have a negative form, because it specifies a
  11981. three-way choice.
  11982. '-fcall-saved-REG'
  11983. Treat the register named REG as an allocable register saved by
  11984. functions. It may be allocated even for temporaries or variables
  11985. that live across a call. Functions compiled this way save and
  11986. restore the register REG if they use it.
  11987. It is an error to use this flag with the frame pointer or stack
  11988. pointer. Use of this flag for other registers that have fixed
  11989. pervasive roles in the machine's execution model produces
  11990. disastrous results.
  11991. A different sort of disaster results from the use of this flag for
  11992. a register in which function values may be returned.
  11993. This flag does not have a negative form, because it specifies a
  11994. three-way choice.
  11995. '-fpack-struct[=N]'
  11996. Without a value specified, pack all structure members together
  11997. without holes. When a value is specified (which must be a small
  11998. power of two), pack structure members according to this value,
  11999. representing the maximum alignment (that is, objects with default
  12000. alignment requirements larger than this are output potentially
  12001. unaligned at the next fitting location.
  12002. *Warning:* the '-fpack-struct' switch causes GCC to generate code
  12003. that is not binary compatible with code generated without that
  12004. switch. Additionally, it makes the code suboptimal. Use it to
  12005. conform to a non-default application binary interface.
  12006. '-fleading-underscore'
  12007. This option and its counterpart, '-fno-leading-underscore',
  12008. forcibly change the way C symbols are represented in the object
  12009. file. One use is to help link with legacy assembly code.
  12010. *Warning:* the '-fleading-underscore' switch causes GCC to generate
  12011. code that is not binary compatible with code generated without that
  12012. switch. Use it to conform to a non-default application binary
  12013. interface. Not all targets provide complete support for this
  12014. switch.
  12015. '-ftls-model=MODEL'
  12016. Alter the thread-local storage model to be used (*note
  12017. Thread-Local::). The MODEL argument should be one of
  12018. 'global-dynamic', 'local-dynamic', 'initial-exec' or 'local-exec'.
  12019. Note that the choice is subject to optimization: the compiler may
  12020. use a more efficient model for symbols not visible outside of the
  12021. translation unit, or if '-fpic' is not given on the command line.
  12022. The default without '-fpic' is 'initial-exec'; with '-fpic' the
  12023. default is 'global-dynamic'.
  12024. '-ftrampolines'
  12025. For targets that normally need trampolines for nested functions,
  12026. always generate them instead of using descriptors. Otherwise, for
  12027. targets that do not need them, like for example HP-PA or IA-64, do
  12028. nothing.
  12029. A trampoline is a small piece of code that is created at run time
  12030. on the stack when the address of a nested function is taken, and is
  12031. used to call the nested function indirectly. Therefore, it
  12032. requires the stack to be made executable in order for the program
  12033. to work properly.
  12034. '-fno-trampolines' is enabled by default on a language by language
  12035. basis to let the compiler avoid generating them, if it computes
  12036. that this is safe, and replace them with descriptors. Descriptors
  12037. are made up of data only, but the generated code must be prepared
  12038. to deal with them. As of this writing, '-fno-trampolines' is
  12039. enabled by default only for Ada.
  12040. Moreover, code compiled with '-ftrampolines' and code compiled with
  12041. '-fno-trampolines' are not binary compatible if nested functions
  12042. are present. This option must therefore be used on a program-wide
  12043. basis and be manipulated with extreme care.
  12044. '-fvisibility=[default|internal|hidden|protected]'
  12045. Set the default ELF image symbol visibility to the specified
  12046. option--all symbols are marked with this unless overridden within
  12047. the code. Using this feature can very substantially improve
  12048. linking and load times of shared object libraries, produce more
  12049. optimized code, provide near-perfect API export and prevent symbol
  12050. clashes. It is *strongly* recommended that you use this in any
  12051. shared objects you distribute.
  12052. Despite the nomenclature, 'default' always means public; i.e.,
  12053. available to be linked against from outside the shared object.
  12054. 'protected' and 'internal' are pretty useless in real-world usage
  12055. so the only other commonly used option is 'hidden'. The default if
  12056. '-fvisibility' isn't specified is 'default', i.e., make every
  12057. symbol public.
  12058. A good explanation of the benefits offered by ensuring ELF symbols
  12059. have the correct visibility is given by "How To Write Shared
  12060. Libraries" by Ulrich Drepper (which can be found at
  12061. <https://www.akkadia.org/drepper/>)--however a superior solution
  12062. made possible by this option to marking things hidden when the
  12063. default is public is to make the default hidden and mark things
  12064. public. This is the norm with DLLs on Windows and with
  12065. '-fvisibility=hidden' and '__attribute__ ((visibility("default")))'
  12066. instead of '__declspec(dllexport)' you get almost identical
  12067. semantics with identical syntax. This is a great boon to those
  12068. working with cross-platform projects.
  12069. For those adding visibility support to existing code, you may find
  12070. '#pragma GCC visibility' of use. This works by you enclosing the
  12071. declarations you wish to set visibility for with (for example)
  12072. '#pragma GCC visibility push(hidden)' and '#pragma GCC visibility
  12073. pop'. Bear in mind that symbol visibility should be viewed *as
  12074. part of the API interface contract* and thus all new code should
  12075. always specify visibility when it is not the default; i.e.,
  12076. declarations only for use within the local DSO should *always* be
  12077. marked explicitly as hidden as so to avoid PLT indirection
  12078. overheads--making this abundantly clear also aids readability and
  12079. self-documentation of the code. Note that due to ISO C++
  12080. specification requirements, 'operator new' and 'operator delete'
  12081. must always be of default visibility.
  12082. Be aware that headers from outside your project, in particular
  12083. system headers and headers from any other library you use, may not
  12084. be expecting to be compiled with visibility other than the default.
  12085. You may need to explicitly say '#pragma GCC visibility
  12086. push(default)' before including any such headers.
  12087. 'extern' declarations are not affected by '-fvisibility', so a lot
  12088. of code can be recompiled with '-fvisibility=hidden' with no
  12089. modifications. However, this means that calls to 'extern'
  12090. functions with no explicit visibility use the PLT, so it is more
  12091. effective to use '__attribute ((visibility))' and/or '#pragma GCC
  12092. visibility' to tell the compiler which 'extern' declarations should
  12093. be treated as hidden.
  12094. Note that '-fvisibility' does affect C++ vague linkage entities.
  12095. This means that, for instance, an exception class that is be thrown
  12096. between DSOs must be explicitly marked with default visibility so
  12097. that the 'type_info' nodes are unified between the DSOs.
  12098. An overview of these techniques, their benefits and how to use them
  12099. is at <http://gcc.gnu.org/wiki/Visibility>.
  12100. '-fstrict-volatile-bitfields'
  12101. This option should be used if accesses to volatile bit-fields (or
  12102. other structure fields, although the compiler usually honors those
  12103. types anyway) should use a single access of the width of the
  12104. field's type, aligned to a natural alignment if possible. For
  12105. example, targets with memory-mapped peripheral registers might
  12106. require all such accesses to be 16 bits wide; with this flag you
  12107. can declare all peripheral bit-fields as 'unsigned short' (assuming
  12108. short is 16 bits on these targets) to force GCC to use 16-bit
  12109. accesses instead of, perhaps, a more efficient 32-bit access.
  12110. If this option is disabled, the compiler uses the most efficient
  12111. instruction. In the previous example, that might be a 32-bit load
  12112. instruction, even though that accesses bytes that do not contain
  12113. any portion of the bit-field, or memory-mapped registers unrelated
  12114. to the one being updated.
  12115. In some cases, such as when the 'packed' attribute is applied to a
  12116. structure field, it may not be possible to access the field with a
  12117. single read or write that is correctly aligned for the target
  12118. machine. In this case GCC falls back to generating multiple
  12119. accesses rather than code that will fault or truncate the result at
  12120. run time.
  12121. Note: Due to restrictions of the C/C++11 memory model, write
  12122. accesses are not allowed to touch non bit-field members. It is
  12123. therefore recommended to define all bits of the field's type as
  12124. bit-field members.
  12125. The default value of this option is determined by the application
  12126. binary interface for the target processor.
  12127. '-fsync-libcalls'
  12128. This option controls whether any out-of-line instance of the
  12129. '__sync' family of functions may be used to implement the C++11
  12130. '__atomic' family of functions.
  12131. The default value of this option is enabled, thus the only useful
  12132. form of the option is '-fno-sync-libcalls'. This option is used in
  12133. the implementation of the 'libatomic' runtime library.
  12134. 
  12135. File: gcc.info, Node: Developer Options, Next: Submodel Options, Prev: Code Gen Options, Up: Invoking GCC
  12136. 3.18 GCC Developer Options
  12137. ==========================
  12138. This section describes command-line options that are primarily of
  12139. interest to GCC developers, including options to support compiler
  12140. testing and investigation of compiler bugs and compile-time performance
  12141. problems. This includes options that produce debug dumps at various
  12142. points in the compilation; that print statistics such as memory use and
  12143. execution time; and that print information about GCC's configuration,
  12144. such as where it searches for libraries. You should rarely need to use
  12145. any of these options for ordinary compilation and linking tasks.
  12146. Many developer options that cause GCC to dump output to a file take an
  12147. optional '=FILENAME' suffix. You can specify 'stdout' or '-' to dump to
  12148. standard output, and 'stderr' for standard error.
  12149. If '=FILENAME' is omitted, a default dump file name is constructed by
  12150. concatenating the base dump file name, a pass number, phase letter, and
  12151. pass name. The base dump file name is the name of output file produced
  12152. by the compiler if explicitly specified and not an executable; otherwise
  12153. it is the source file name. The pass number is determined by the order
  12154. passes are registered with the compiler's pass manager. This is
  12155. generally the same as the order of execution, but passes registered by
  12156. plugins, target-specific passes, or passes that are otherwise registered
  12157. late are numbered higher than the pass named 'final', even if they are
  12158. executed earlier. The phase letter is one of 'i' (inter-procedural
  12159. analysis), 'l' (language-specific), 'r' (RTL), or 't' (tree). The files
  12160. are created in the directory of the output file.
  12161. '-fcallgraph-info'
  12162. '-fcallgraph-info=MARKERS'
  12163. Makes the compiler output callgraph information for the program, on
  12164. a per-object-file basis. The information is generated in the
  12165. common VCG format. It can be decorated with additional, per-node
  12166. and/or per-edge information, if a list of comma-separated markers
  12167. is additionally specified. When the 'su' marker is specified, the
  12168. callgraph is decorated with stack usage information; it is
  12169. equivalent to '-fstack-usage'. When the 'da' marker is specified,
  12170. the callgraph is decorated with information about dynamically
  12171. allocated objects.
  12172. When compiling with '-flto', no callgraph information is output
  12173. along with the object file. At LTO link time, '-fcallgraph-info'
  12174. may generate multiple callgraph information files next to
  12175. intermediate LTO output files.
  12176. '-dLETTERS'
  12177. '-fdump-rtl-PASS'
  12178. '-fdump-rtl-PASS=FILENAME'
  12179. Says to make debugging dumps during compilation at times specified
  12180. by LETTERS. This is used for debugging the RTL-based passes of the
  12181. compiler.
  12182. Some '-dLETTERS' switches have different meaning when '-E' is used
  12183. for preprocessing. *Note Preprocessor Options::, for information
  12184. about preprocessor-specific dump options.
  12185. Debug dumps can be enabled with a '-fdump-rtl' switch or some '-d'
  12186. option LETTERS. Here are the possible letters for use in PASS and
  12187. LETTERS, and their meanings:
  12188. '-fdump-rtl-alignments'
  12189. Dump after branch alignments have been computed.
  12190. '-fdump-rtl-asmcons'
  12191. Dump after fixing rtl statements that have unsatisfied in/out
  12192. constraints.
  12193. '-fdump-rtl-auto_inc_dec'
  12194. Dump after auto-inc-dec discovery. This pass is only run on
  12195. architectures that have auto inc or auto dec instructions.
  12196. '-fdump-rtl-barriers'
  12197. Dump after cleaning up the barrier instructions.
  12198. '-fdump-rtl-bbpart'
  12199. Dump after partitioning hot and cold basic blocks.
  12200. '-fdump-rtl-bbro'
  12201. Dump after block reordering.
  12202. '-fdump-rtl-btl1'
  12203. '-fdump-rtl-btl2'
  12204. '-fdump-rtl-btl1' and '-fdump-rtl-btl2' enable dumping after
  12205. the two branch target load optimization passes.
  12206. '-fdump-rtl-bypass'
  12207. Dump after jump bypassing and control flow optimizations.
  12208. '-fdump-rtl-combine'
  12209. Dump after the RTL instruction combination pass.
  12210. '-fdump-rtl-compgotos'
  12211. Dump after duplicating the computed gotos.
  12212. '-fdump-rtl-ce1'
  12213. '-fdump-rtl-ce2'
  12214. '-fdump-rtl-ce3'
  12215. '-fdump-rtl-ce1', '-fdump-rtl-ce2', and '-fdump-rtl-ce3'
  12216. enable dumping after the three if conversion passes.
  12217. '-fdump-rtl-cprop_hardreg'
  12218. Dump after hard register copy propagation.
  12219. '-fdump-rtl-csa'
  12220. Dump after combining stack adjustments.
  12221. '-fdump-rtl-cse1'
  12222. '-fdump-rtl-cse2'
  12223. '-fdump-rtl-cse1' and '-fdump-rtl-cse2' enable dumping after
  12224. the two common subexpression elimination passes.
  12225. '-fdump-rtl-dce'
  12226. Dump after the standalone dead code elimination passes.
  12227. '-fdump-rtl-dbr'
  12228. Dump after delayed branch scheduling.
  12229. '-fdump-rtl-dce1'
  12230. '-fdump-rtl-dce2'
  12231. '-fdump-rtl-dce1' and '-fdump-rtl-dce2' enable dumping after
  12232. the two dead store elimination passes.
  12233. '-fdump-rtl-eh'
  12234. Dump after finalization of EH handling code.
  12235. '-fdump-rtl-eh_ranges'
  12236. Dump after conversion of EH handling range regions.
  12237. '-fdump-rtl-expand'
  12238. Dump after RTL generation.
  12239. '-fdump-rtl-fwprop1'
  12240. '-fdump-rtl-fwprop2'
  12241. '-fdump-rtl-fwprop1' and '-fdump-rtl-fwprop2' enable dumping
  12242. after the two forward propagation passes.
  12243. '-fdump-rtl-gcse1'
  12244. '-fdump-rtl-gcse2'
  12245. '-fdump-rtl-gcse1' and '-fdump-rtl-gcse2' enable dumping after
  12246. global common subexpression elimination.
  12247. '-fdump-rtl-init-regs'
  12248. Dump after the initialization of the registers.
  12249. '-fdump-rtl-initvals'
  12250. Dump after the computation of the initial value sets.
  12251. '-fdump-rtl-into_cfglayout'
  12252. Dump after converting to cfglayout mode.
  12253. '-fdump-rtl-ira'
  12254. Dump after iterated register allocation.
  12255. '-fdump-rtl-jump'
  12256. Dump after the second jump optimization.
  12257. '-fdump-rtl-loop2'
  12258. '-fdump-rtl-loop2' enables dumping after the rtl loop
  12259. optimization passes.
  12260. '-fdump-rtl-mach'
  12261. Dump after performing the machine dependent reorganization
  12262. pass, if that pass exists.
  12263. '-fdump-rtl-mode_sw'
  12264. Dump after removing redundant mode switches.
  12265. '-fdump-rtl-rnreg'
  12266. Dump after register renumbering.
  12267. '-fdump-rtl-outof_cfglayout'
  12268. Dump after converting from cfglayout mode.
  12269. '-fdump-rtl-peephole2'
  12270. Dump after the peephole pass.
  12271. '-fdump-rtl-postreload'
  12272. Dump after post-reload optimizations.
  12273. '-fdump-rtl-pro_and_epilogue'
  12274. Dump after generating the function prologues and epilogues.
  12275. '-fdump-rtl-sched1'
  12276. '-fdump-rtl-sched2'
  12277. '-fdump-rtl-sched1' and '-fdump-rtl-sched2' enable dumping
  12278. after the basic block scheduling passes.
  12279. '-fdump-rtl-ree'
  12280. Dump after sign/zero extension elimination.
  12281. '-fdump-rtl-seqabstr'
  12282. Dump after common sequence discovery.
  12283. '-fdump-rtl-shorten'
  12284. Dump after shortening branches.
  12285. '-fdump-rtl-sibling'
  12286. Dump after sibling call optimizations.
  12287. '-fdump-rtl-split1'
  12288. '-fdump-rtl-split2'
  12289. '-fdump-rtl-split3'
  12290. '-fdump-rtl-split4'
  12291. '-fdump-rtl-split5'
  12292. These options enable dumping after five rounds of instruction
  12293. splitting.
  12294. '-fdump-rtl-sms'
  12295. Dump after modulo scheduling. This pass is only run on some
  12296. architectures.
  12297. '-fdump-rtl-stack'
  12298. Dump after conversion from GCC's "flat register file"
  12299. registers to the x87's stack-like registers. This pass is
  12300. only run on x86 variants.
  12301. '-fdump-rtl-subreg1'
  12302. '-fdump-rtl-subreg2'
  12303. '-fdump-rtl-subreg1' and '-fdump-rtl-subreg2' enable dumping
  12304. after the two subreg expansion passes.
  12305. '-fdump-rtl-unshare'
  12306. Dump after all rtl has been unshared.
  12307. '-fdump-rtl-vartrack'
  12308. Dump after variable tracking.
  12309. '-fdump-rtl-vregs'
  12310. Dump after converting virtual registers to hard registers.
  12311. '-fdump-rtl-web'
  12312. Dump after live range splitting.
  12313. '-fdump-rtl-regclass'
  12314. '-fdump-rtl-subregs_of_mode_init'
  12315. '-fdump-rtl-subregs_of_mode_finish'
  12316. '-fdump-rtl-dfinit'
  12317. '-fdump-rtl-dfinish'
  12318. These dumps are defined but always produce empty files.
  12319. '-da'
  12320. '-fdump-rtl-all'
  12321. Produce all the dumps listed above.
  12322. '-dA'
  12323. Annotate the assembler output with miscellaneous debugging
  12324. information.
  12325. '-dD'
  12326. Dump all macro definitions, at the end of preprocessing, in
  12327. addition to normal output.
  12328. '-dH'
  12329. Produce a core dump whenever an error occurs.
  12330. '-dp'
  12331. Annotate the assembler output with a comment indicating which
  12332. pattern and alternative is used. The length and cost of each
  12333. instruction are also printed.
  12334. '-dP'
  12335. Dump the RTL in the assembler output as a comment before each
  12336. instruction. Also turns on '-dp' annotation.
  12337. '-dx'
  12338. Just generate RTL for a function instead of compiling it.
  12339. Usually used with '-fdump-rtl-expand'.
  12340. '-fdump-debug'
  12341. Dump debugging information generated during the debug generation
  12342. phase.
  12343. '-fdump-earlydebug'
  12344. Dump debugging information generated during the early debug
  12345. generation phase.
  12346. '-fdump-noaddr'
  12347. When doing debugging dumps, suppress address output. This makes it
  12348. more feasible to use diff on debugging dumps for compiler
  12349. invocations with different compiler binaries and/or different text
  12350. / bss / data / heap / stack / dso start locations.
  12351. '-freport-bug'
  12352. Collect and dump debug information into a temporary file if an
  12353. internal compiler error (ICE) occurs.
  12354. '-fdump-unnumbered'
  12355. When doing debugging dumps, suppress instruction numbers and
  12356. address output. This makes it more feasible to use diff on
  12357. debugging dumps for compiler invocations with different options, in
  12358. particular with and without '-g'.
  12359. '-fdump-unnumbered-links'
  12360. When doing debugging dumps (see '-d' option above), suppress
  12361. instruction numbers for the links to the previous and next
  12362. instructions in a sequence.
  12363. '-fdump-ipa-SWITCH'
  12364. '-fdump-ipa-SWITCH-OPTIONS'
  12365. Control the dumping at various stages of inter-procedural analysis
  12366. language tree to a file. The file name is generated by appending a
  12367. switch specific suffix to the source file name, and the file is
  12368. created in the same directory as the output file. The following
  12369. dumps are possible:
  12370. 'all'
  12371. Enables all inter-procedural analysis dumps.
  12372. 'cgraph'
  12373. Dumps information about call-graph optimization, unused
  12374. function removal, and inlining decisions.
  12375. 'inline'
  12376. Dump after function inlining.
  12377. Additionally, the options '-optimized', '-missed', '-note', and
  12378. '-all' can be provided, with the same meaning as for '-fopt-info',
  12379. defaulting to '-optimized'.
  12380. For example, '-fdump-ipa-inline-optimized-missed' will emit
  12381. information on callsites that were inlined, along with callsites
  12382. that were not inlined.
  12383. By default, the dump will contain messages about successful
  12384. optimizations (equivalent to '-optimized') together with low-level
  12385. details about the analysis.
  12386. '-fdump-lang-all'
  12387. '-fdump-lang-SWITCH'
  12388. '-fdump-lang-SWITCH-OPTIONS'
  12389. '-fdump-lang-SWITCH-OPTIONS=FILENAME'
  12390. Control the dumping of language-specific information. The OPTIONS
  12391. and FILENAME portions behave as described in the '-fdump-tree'
  12392. option. The following SWITCH values are accepted:
  12393. 'all'
  12394. Enable all language-specific dumps.
  12395. 'class'
  12396. Dump class hierarchy information. Virtual table information
  12397. is emitted unless ''slim'' is specified. This option is
  12398. applicable to C++ only.
  12399. 'raw'
  12400. Dump the raw internal tree data. This option is applicable to
  12401. C++ only.
  12402. '-fdump-passes'
  12403. Print on 'stderr' the list of optimization passes that are turned
  12404. on and off by the current command-line options.
  12405. '-fdump-statistics-OPTION'
  12406. Enable and control dumping of pass statistics in a separate file.
  12407. The file name is generated by appending a suffix ending in
  12408. '.statistics' to the source file name, and the file is created in
  12409. the same directory as the output file. If the '-OPTION' form is
  12410. used, '-stats' causes counters to be summed over the whole
  12411. compilation unit while '-details' dumps every event as the passes
  12412. generate them. The default with no option is to sum counters for
  12413. each function compiled.
  12414. '-fdump-tree-all'
  12415. '-fdump-tree-SWITCH'
  12416. '-fdump-tree-SWITCH-OPTIONS'
  12417. '-fdump-tree-SWITCH-OPTIONS=FILENAME'
  12418. Control the dumping at various stages of processing the
  12419. intermediate language tree to a file. If the '-OPTIONS' form is
  12420. used, OPTIONS is a list of '-' separated options which control the
  12421. details of the dump. Not all options are applicable to all dumps;
  12422. those that are not meaningful are ignored. The following options
  12423. are available
  12424. 'address'
  12425. Print the address of each node. Usually this is not
  12426. meaningful as it changes according to the environment and
  12427. source file. Its primary use is for tying up a dump file with
  12428. a debug environment.
  12429. 'asmname'
  12430. If 'DECL_ASSEMBLER_NAME' has been set for a given decl, use
  12431. that in the dump instead of 'DECL_NAME'. Its primary use is
  12432. ease of use working backward from mangled names in the
  12433. assembly file.
  12434. 'slim'
  12435. When dumping front-end intermediate representations, inhibit
  12436. dumping of members of a scope or body of a function merely
  12437. because that scope has been reached. Only dump such items
  12438. when they are directly reachable by some other path.
  12439. When dumping pretty-printed trees, this option inhibits
  12440. dumping the bodies of control structures.
  12441. When dumping RTL, print the RTL in slim (condensed) form
  12442. instead of the default LISP-like representation.
  12443. 'raw'
  12444. Print a raw representation of the tree. By default, trees are
  12445. pretty-printed into a C-like representation.
  12446. 'details'
  12447. Enable more detailed dumps (not honored by every dump option).
  12448. Also include information from the optimization passes.
  12449. 'stats'
  12450. Enable dumping various statistics about the pass (not honored
  12451. by every dump option).
  12452. 'blocks'
  12453. Enable showing basic block boundaries (disabled in raw dumps).
  12454. 'graph'
  12455. For each of the other indicated dump files
  12456. ('-fdump-rtl-PASS'), dump a representation of the control flow
  12457. graph suitable for viewing with GraphViz to
  12458. 'FILE.PASSID.PASS.dot'. Each function in the file is
  12459. pretty-printed as a subgraph, so that GraphViz can render them
  12460. all in a single plot.
  12461. This option currently only works for RTL dumps, and the RTL is
  12462. always dumped in slim form.
  12463. 'vops'
  12464. Enable showing virtual operands for every statement.
  12465. 'lineno'
  12466. Enable showing line numbers for statements.
  12467. 'uid'
  12468. Enable showing the unique ID ('DECL_UID') for each variable.
  12469. 'verbose'
  12470. Enable showing the tree dump for each statement.
  12471. 'eh'
  12472. Enable showing the EH region number holding each statement.
  12473. 'scev'
  12474. Enable showing scalar evolution analysis details.
  12475. 'optimized'
  12476. Enable showing optimization information (only available in
  12477. certain passes).
  12478. 'missed'
  12479. Enable showing missed optimization information (only available
  12480. in certain passes).
  12481. 'note'
  12482. Enable other detailed optimization information (only available
  12483. in certain passes).
  12484. 'all'
  12485. Turn on all options, except 'raw', 'slim', 'verbose' and
  12486. 'lineno'.
  12487. 'optall'
  12488. Turn on all optimization options, i.e., 'optimized', 'missed',
  12489. and 'note'.
  12490. To determine what tree dumps are available or find the dump for a
  12491. pass of interest follow the steps below.
  12492. 1. Invoke GCC with '-fdump-passes' and in the 'stderr' output
  12493. look for a code that corresponds to the pass you are
  12494. interested in. For example, the codes 'tree-evrp',
  12495. 'tree-vrp1', and 'tree-vrp2' correspond to the three Value
  12496. Range Propagation passes. The number at the end distinguishes
  12497. distinct invocations of the same pass.
  12498. 2. To enable the creation of the dump file, append the pass code
  12499. to the '-fdump-' option prefix and invoke GCC with it. For
  12500. example, to enable the dump from the Early Value Range
  12501. Propagation pass, invoke GCC with the '-fdump-tree-evrp'
  12502. option. Optionally, you may specify the name of the dump
  12503. file. If you don't specify one, GCC creates as described
  12504. below.
  12505. 3. Find the pass dump in a file whose name is composed of three
  12506. components separated by a period: the name of the source file
  12507. GCC was invoked to compile, a numeric suffix indicating the
  12508. pass number followed by the letter 't' for tree passes (and
  12509. the letter 'r' for RTL passes), and finally the pass code.
  12510. For example, the Early VRP pass dump might be in a file named
  12511. 'myfile.c.038t.evrp' in the current working directory. Note
  12512. that the numeric codes are not stable and may change from one
  12513. version of GCC to another.
  12514. '-fopt-info'
  12515. '-fopt-info-OPTIONS'
  12516. '-fopt-info-OPTIONS=FILENAME'
  12517. Controls optimization dumps from various optimization passes. If
  12518. the '-OPTIONS' form is used, OPTIONS is a list of '-' separated
  12519. option keywords to select the dump details and optimizations.
  12520. The OPTIONS can be divided into three groups:
  12521. 1. options describing what kinds of messages should be emitted,
  12522. 2. options describing the verbosity of the dump, and
  12523. 3. options describing which optimizations should be included.
  12524. The options from each group can be freely mixed as they are
  12525. non-overlapping. However, in case of any conflicts, the later
  12526. options override the earlier options on the command line.
  12527. The following options control which kinds of messages should be
  12528. emitted:
  12529. 'optimized'
  12530. Print information when an optimization is successfully
  12531. applied. It is up to a pass to decide which information is
  12532. relevant. For example, the vectorizer passes print the source
  12533. location of loops which are successfully vectorized.
  12534. 'missed'
  12535. Print information about missed optimizations. Individual
  12536. passes control which information to include in the output.
  12537. 'note'
  12538. Print verbose information about optimizations, such as certain
  12539. transformations, more detailed messages about decisions etc.
  12540. 'all'
  12541. Print detailed optimization information. This includes
  12542. 'optimized', 'missed', and 'note'.
  12543. The following option controls the dump verbosity:
  12544. 'internals'
  12545. By default, only "high-level" messages are emitted. This
  12546. option enables additional, more detailed, messages, which are
  12547. likely to only be of interest to GCC developers.
  12548. One or more of the following option keywords can be used to
  12549. describe a group of optimizations:
  12550. 'ipa'
  12551. Enable dumps from all interprocedural optimizations.
  12552. 'loop'
  12553. Enable dumps from all loop optimizations.
  12554. 'inline'
  12555. Enable dumps from all inlining optimizations.
  12556. 'omp'
  12557. Enable dumps from all OMP (Offloading and Multi Processing)
  12558. optimizations.
  12559. 'vec'
  12560. Enable dumps from all vectorization optimizations.
  12561. 'optall'
  12562. Enable dumps from all optimizations. This is a superset of
  12563. the optimization groups listed above.
  12564. If OPTIONS is omitted, it defaults to 'optimized-optall', which
  12565. means to dump messages about successful optimizations from all the
  12566. passes, omitting messages that are treated as "internals".
  12567. If the FILENAME is provided, then the dumps from all the applicable
  12568. optimizations are concatenated into the FILENAME. Otherwise the
  12569. dump is output onto 'stderr'. Though multiple '-fopt-info' options
  12570. are accepted, only one of them can include a FILENAME. If other
  12571. filenames are provided then all but the first such option are
  12572. ignored.
  12573. Note that the output FILENAME is overwritten in case of multiple
  12574. translation units. If a combined output from multiple translation
  12575. units is desired, 'stderr' should be used instead.
  12576. In the following example, the optimization info is output to
  12577. 'stderr':
  12578. gcc -O3 -fopt-info
  12579. This example:
  12580. gcc -O3 -fopt-info-missed=missed.all
  12581. outputs missed optimization report from all the passes into
  12582. 'missed.all', and this one:
  12583. gcc -O2 -ftree-vectorize -fopt-info-vec-missed
  12584. prints information about missed optimization opportunities from
  12585. vectorization passes on 'stderr'. Note that
  12586. '-fopt-info-vec-missed' is equivalent to '-fopt-info-missed-vec'.
  12587. The order of the optimization group names and message types listed
  12588. after '-fopt-info' does not matter.
  12589. As another example,
  12590. gcc -O3 -fopt-info-inline-optimized-missed=inline.txt
  12591. outputs information about missed optimizations as well as optimized
  12592. locations from all the inlining passes into 'inline.txt'.
  12593. Finally, consider:
  12594. gcc -fopt-info-vec-missed=vec.miss -fopt-info-loop-optimized=loop.opt
  12595. Here the two output filenames 'vec.miss' and 'loop.opt' are in
  12596. conflict since only one output file is allowed. In this case, only
  12597. the first option takes effect and the subsequent options are
  12598. ignored. Thus only 'vec.miss' is produced which contains dumps
  12599. from the vectorizer about missed opportunities.
  12600. '-fsave-optimization-record'
  12601. Write a SRCFILE.opt-record.json.gz file detailing what
  12602. optimizations were performed, for those optimizations that support
  12603. '-fopt-info'.
  12604. This option is experimental and the format of the data within the
  12605. compressed JSON file is subject to change.
  12606. It is roughly equivalent to a machine-readable version of
  12607. '-fopt-info-all', as a collection of messages with source file,
  12608. line number and column number, with the following additional data
  12609. for each message:
  12610. * the execution count of the code being optimized, along with
  12611. metadata about whether this was from actual profile data, or
  12612. just an estimate, allowing consumers to prioritize messages by
  12613. code hotness,
  12614. * the function name of the code being optimized, where
  12615. applicable,
  12616. * the "inlining chain" for the code being optimized, so that
  12617. when a function is inlined into several different places
  12618. (which might themselves be inlined), the reader can
  12619. distinguish between the copies,
  12620. * objects identifying those parts of the message that refer to
  12621. expressions, statements or symbol-table nodes, which of these
  12622. categories they are, and, when available, their source code
  12623. location,
  12624. * the GCC pass that emitted the message, and
  12625. * the location in GCC's own code from which the message was
  12626. emitted
  12627. Additionally, some messages are logically nested within other
  12628. messages, reflecting implementation details of the optimization
  12629. passes.
  12630. '-fsched-verbose=N'
  12631. On targets that use instruction scheduling, this option controls
  12632. the amount of debugging output the scheduler prints to the dump
  12633. files.
  12634. For N greater than zero, '-fsched-verbose' outputs the same
  12635. information as '-fdump-rtl-sched1' and '-fdump-rtl-sched2'. For N
  12636. greater than one, it also output basic block probabilities,
  12637. detailed ready list information and unit/insn info. For N greater
  12638. than two, it includes RTL at abort point, control-flow and regions
  12639. info. And for N over four, '-fsched-verbose' also includes
  12640. dependence info.
  12641. '-fenable-KIND-PASS'
  12642. '-fdisable-KIND-PASS=RANGE-LIST'
  12643. This is a set of options that are used to explicitly disable/enable
  12644. optimization passes. These options are intended for use for
  12645. debugging GCC. Compiler users should use regular options for
  12646. enabling/disabling passes instead.
  12647. '-fdisable-ipa-PASS'
  12648. Disable IPA pass PASS. PASS is the pass name. If the same
  12649. pass is statically invoked in the compiler multiple times, the
  12650. pass name should be appended with a sequential number starting
  12651. from 1.
  12652. '-fdisable-rtl-PASS'
  12653. '-fdisable-rtl-PASS=RANGE-LIST'
  12654. Disable RTL pass PASS. PASS is the pass name. If the same
  12655. pass is statically invoked in the compiler multiple times, the
  12656. pass name should be appended with a sequential number starting
  12657. from 1. RANGE-LIST is a comma-separated list of function
  12658. ranges or assembler names. Each range is a number pair
  12659. separated by a colon. The range is inclusive in both ends.
  12660. If the range is trivial, the number pair can be simplified as
  12661. a single number. If the function's call graph node's UID
  12662. falls within one of the specified ranges, the PASS is disabled
  12663. for that function. The UID is shown in the function header of
  12664. a dump file, and the pass names can be dumped by using option
  12665. '-fdump-passes'.
  12666. '-fdisable-tree-PASS'
  12667. '-fdisable-tree-PASS=RANGE-LIST'
  12668. Disable tree pass PASS. See '-fdisable-rtl' for the
  12669. description of option arguments.
  12670. '-fenable-ipa-PASS'
  12671. Enable IPA pass PASS. PASS is the pass name. If the same
  12672. pass is statically invoked in the compiler multiple times, the
  12673. pass name should be appended with a sequential number starting
  12674. from 1.
  12675. '-fenable-rtl-PASS'
  12676. '-fenable-rtl-PASS=RANGE-LIST'
  12677. Enable RTL pass PASS. See '-fdisable-rtl' for option argument
  12678. description and examples.
  12679. '-fenable-tree-PASS'
  12680. '-fenable-tree-PASS=RANGE-LIST'
  12681. Enable tree pass PASS. See '-fdisable-rtl' for the
  12682. description of option arguments.
  12683. Here are some examples showing uses of these options.
  12684. # disable ccp1 for all functions
  12685. -fdisable-tree-ccp1
  12686. # disable complete unroll for function whose cgraph node uid is 1
  12687. -fenable-tree-cunroll=1
  12688. # disable gcse2 for functions at the following ranges [1,1],
  12689. # [300,400], and [400,1000]
  12690. # disable gcse2 for functions foo and foo2
  12691. -fdisable-rtl-gcse2=foo,foo2
  12692. # disable early inlining
  12693. -fdisable-tree-einline
  12694. # disable ipa inlining
  12695. -fdisable-ipa-inline
  12696. # enable tree full unroll
  12697. -fenable-tree-unroll
  12698. '-fchecking'
  12699. '-fchecking=N'
  12700. Enable internal consistency checking. The default depends on the
  12701. compiler configuration. '-fchecking=2' enables further internal
  12702. consistency checking that might affect code generation.
  12703. '-frandom-seed=STRING'
  12704. This option provides a seed that GCC uses in place of random
  12705. numbers in generating certain symbol names that have to be
  12706. different in every compiled file. It is also used to place unique
  12707. stamps in coverage data files and the object files that produce
  12708. them. You can use the '-frandom-seed' option to produce
  12709. reproducibly identical object files.
  12710. The STRING can either be a number (decimal, octal or hex) or an
  12711. arbitrary string (in which case it's converted to a number by
  12712. computing CRC32).
  12713. The STRING should be different for every file you compile.
  12714. '-save-temps'
  12715. '-save-temps=cwd'
  12716. Store the usual "temporary" intermediate files permanently; place
  12717. them in the current directory and name them based on the source
  12718. file. Thus, compiling 'foo.c' with '-c -save-temps' produces files
  12719. 'foo.i' and 'foo.s', as well as 'foo.o'. This creates a
  12720. preprocessed 'foo.i' output file even though the compiler now
  12721. normally uses an integrated preprocessor.
  12722. When used in combination with the '-x' command-line option,
  12723. '-save-temps' is sensible enough to avoid over writing an input
  12724. source file with the same extension as an intermediate file. The
  12725. corresponding intermediate file may be obtained by renaming the
  12726. source file before using '-save-temps'.
  12727. If you invoke GCC in parallel, compiling several different source
  12728. files that share a common base name in different subdirectories or
  12729. the same source file compiled for multiple output destinations, it
  12730. is likely that the different parallel compilers will interfere with
  12731. each other, and overwrite the temporary files. For instance:
  12732. gcc -save-temps -o outdir1/foo.o indir1/foo.c&
  12733. gcc -save-temps -o outdir2/foo.o indir2/foo.c&
  12734. may result in 'foo.i' and 'foo.o' being written to simultaneously
  12735. by both compilers.
  12736. '-save-temps=obj'
  12737. Store the usual "temporary" intermediate files permanently. If the
  12738. '-o' option is used, the temporary files are based on the object
  12739. file. If the '-o' option is not used, the '-save-temps=obj' switch
  12740. behaves like '-save-temps'.
  12741. For example:
  12742. gcc -save-temps=obj -c foo.c
  12743. gcc -save-temps=obj -c bar.c -o dir/xbar.o
  12744. gcc -save-temps=obj foobar.c -o dir2/yfoobar
  12745. creates 'foo.i', 'foo.s', 'dir/xbar.i', 'dir/xbar.s',
  12746. 'dir2/yfoobar.i', 'dir2/yfoobar.s', and 'dir2/yfoobar.o'.
  12747. '-time[=FILE]'
  12748. Report the CPU time taken by each subprocess in the compilation
  12749. sequence. For C source files, this is the compiler proper and
  12750. assembler (plus the linker if linking is done).
  12751. Without the specification of an output file, the output looks like
  12752. this:
  12753. # cc1 0.12 0.01
  12754. # as 0.00 0.01
  12755. The first number on each line is the "user time", that is time
  12756. spent executing the program itself. The second number is "system
  12757. time", time spent executing operating system routines on behalf of
  12758. the program. Both numbers are in seconds.
  12759. With the specification of an output file, the output is appended to
  12760. the named file, and it looks like this:
  12761. 0.12 0.01 cc1 OPTIONS
  12762. 0.00 0.01 as OPTIONS
  12763. The "user time" and the "system time" are moved before the program
  12764. name, and the options passed to the program are displayed, so that
  12765. one can later tell what file was being compiled, and with which
  12766. options.
  12767. '-fdump-final-insns[=FILE]'
  12768. Dump the final internal representation (RTL) to FILE. If the
  12769. optional argument is omitted (or if FILE is '.'), the name of the
  12770. dump file is determined by appending '.gkd' to the compilation
  12771. output file name.
  12772. '-fcompare-debug[=OPTS]'
  12773. If no error occurs during compilation, run the compiler a second
  12774. time, adding OPTS and '-fcompare-debug-second' to the arguments
  12775. passed to the second compilation. Dump the final internal
  12776. representation in both compilations, and print an error if they
  12777. differ.
  12778. If the equal sign is omitted, the default '-gtoggle' is used.
  12779. The environment variable 'GCC_COMPARE_DEBUG', if defined, non-empty
  12780. and nonzero, implicitly enables '-fcompare-debug'. If
  12781. 'GCC_COMPARE_DEBUG' is defined to a string starting with a dash,
  12782. then it is used for OPTS, otherwise the default '-gtoggle' is used.
  12783. '-fcompare-debug=', with the equal sign but without OPTS, is
  12784. equivalent to '-fno-compare-debug', which disables the dumping of
  12785. the final representation and the second compilation, preventing
  12786. even 'GCC_COMPARE_DEBUG' from taking effect.
  12787. To verify full coverage during '-fcompare-debug' testing, set
  12788. 'GCC_COMPARE_DEBUG' to say '-fcompare-debug-not-overridden', which
  12789. GCC rejects as an invalid option in any actual compilation (rather
  12790. than preprocessing, assembly or linking). To get just a warning,
  12791. setting 'GCC_COMPARE_DEBUG' to '-w%n-fcompare-debug not overridden'
  12792. will do.
  12793. '-fcompare-debug-second'
  12794. This option is implicitly passed to the compiler for the second
  12795. compilation requested by '-fcompare-debug', along with options to
  12796. silence warnings, and omitting other options that would cause the
  12797. compiler to produce output to files or to standard output as a side
  12798. effect. Dump files and preserved temporary files are renamed so as
  12799. to contain the '.gk' additional extension during the second
  12800. compilation, to avoid overwriting those generated by the first.
  12801. When this option is passed to the compiler driver, it causes the
  12802. _first_ compilation to be skipped, which makes it useful for little
  12803. other than debugging the compiler proper.
  12804. '-gtoggle'
  12805. Turn off generation of debug info, if leaving out this option
  12806. generates it, or turn it on at level 2 otherwise. The position of
  12807. this argument in the command line does not matter; it takes effect
  12808. after all other options are processed, and it does so only once, no
  12809. matter how many times it is given. This is mainly intended to be
  12810. used with '-fcompare-debug'.
  12811. '-fvar-tracking-assignments-toggle'
  12812. Toggle '-fvar-tracking-assignments', in the same way that
  12813. '-gtoggle' toggles '-g'.
  12814. '-Q'
  12815. Makes the compiler print out each function name as it is compiled,
  12816. and print some statistics about each pass when it finishes.
  12817. '-ftime-report'
  12818. Makes the compiler print some statistics about the time consumed by
  12819. each pass when it finishes.
  12820. '-ftime-report-details'
  12821. Record the time consumed by infrastructure parts separately for
  12822. each pass.
  12823. '-fira-verbose=N'
  12824. Control the verbosity of the dump file for the integrated register
  12825. allocator. The default value is 5. If the value N is greater or
  12826. equal to 10, the dump output is sent to stderr using the same
  12827. format as N minus 10.
  12828. '-flto-report'
  12829. Prints a report with internal details on the workings of the
  12830. link-time optimizer. The contents of this report vary from version
  12831. to version. It is meant to be useful to GCC developers when
  12832. processing object files in LTO mode (via '-flto').
  12833. Disabled by default.
  12834. '-flto-report-wpa'
  12835. Like '-flto-report', but only print for the WPA phase of link-time
  12836. optimization.
  12837. '-fmem-report'
  12838. Makes the compiler print some statistics about permanent memory
  12839. allocation when it finishes.
  12840. '-fmem-report-wpa'
  12841. Makes the compiler print some statistics about permanent memory
  12842. allocation for the WPA phase only.
  12843. '-fpre-ipa-mem-report'
  12844. '-fpost-ipa-mem-report'
  12845. Makes the compiler print some statistics about permanent memory
  12846. allocation before or after interprocedural optimization.
  12847. '-fprofile-report'
  12848. Makes the compiler print some statistics about consistency of the
  12849. (estimated) profile and effect of individual passes.
  12850. '-fstack-usage'
  12851. Makes the compiler output stack usage information for the program,
  12852. on a per-function basis. The filename for the dump is made by
  12853. appending '.su' to the AUXNAME. AUXNAME is generated from the name
  12854. of the output file, if explicitly specified and it is not an
  12855. executable, otherwise it is the basename of the source file. An
  12856. entry is made up of three fields:
  12857. * The name of the function.
  12858. * A number of bytes.
  12859. * One or more qualifiers: 'static', 'dynamic', 'bounded'.
  12860. The qualifier 'static' means that the function manipulates the
  12861. stack statically: a fixed number of bytes are allocated for the
  12862. frame on function entry and released on function exit; no stack
  12863. adjustments are otherwise made in the function. The second field
  12864. is this fixed number of bytes.
  12865. The qualifier 'dynamic' means that the function manipulates the
  12866. stack dynamically: in addition to the static allocation described
  12867. above, stack adjustments are made in the body of the function, for
  12868. example to push/pop arguments around function calls. If the
  12869. qualifier 'bounded' is also present, the amount of these
  12870. adjustments is bounded at compile time and the second field is an
  12871. upper bound of the total amount of stack used by the function. If
  12872. it is not present, the amount of these adjustments is not bounded
  12873. at compile time and the second field only represents the bounded
  12874. part.
  12875. '-fstats'
  12876. Emit statistics about front-end processing at the end of the
  12877. compilation. This option is supported only by the C++ front end,
  12878. and the information is generally only useful to the G++ development
  12879. team.
  12880. '-fdbg-cnt-list'
  12881. Print the name and the counter upper bound for all debug counters.
  12882. '-fdbg-cnt=COUNTER-VALUE-LIST'
  12883. Set the internal debug counter lower and upper bound.
  12884. COUNTER-VALUE-LIST is a comma-separated list of
  12885. NAME:LOWER_BOUND1-UPPER_BOUND1 [:LOWER_BOUND2-UPPER_BOUND2...]
  12886. tuples which sets the name of the counter and list of closed
  12887. intervals. The LOWER_BOUND is optional and is zero initialized if
  12888. not set. For example, with '-fdbg-cnt=dce:2-4:10-11,tail_call:10',
  12889. 'dbg_cnt(dce)' returns true only for second, third, fourth, tenth
  12890. and eleventh invocation. For 'dbg_cnt(tail_call)' true is returned
  12891. for first 10 invocations.
  12892. '-print-file-name=LIBRARY'
  12893. Print the full absolute name of the library file LIBRARY that would
  12894. be used when linking--and don't do anything else. With this
  12895. option, GCC does not compile or link anything; it just prints the
  12896. file name.
  12897. '-print-multi-directory'
  12898. Print the directory name corresponding to the multilib selected by
  12899. any other switches present in the command line. This directory is
  12900. supposed to exist in 'GCC_EXEC_PREFIX'.
  12901. '-print-multi-lib'
  12902. Print the mapping from multilib directory names to compiler
  12903. switches that enable them. The directory name is separated from
  12904. the switches by ';', and each switch starts with an '@' instead of
  12905. the '-', without spaces between multiple switches. This is
  12906. supposed to ease shell processing.
  12907. '-print-multi-os-directory'
  12908. Print the path to OS libraries for the selected multilib, relative
  12909. to some 'lib' subdirectory. If OS libraries are present in the
  12910. 'lib' subdirectory and no multilibs are used, this is usually just
  12911. '.', if OS libraries are present in 'libSUFFIX' sibling directories
  12912. this prints e.g. '../lib64', '../lib' or '../lib32', or if OS
  12913. libraries are present in 'lib/SUBDIR' subdirectories it prints e.g.
  12914. 'amd64', 'sparcv9' or 'ev6'.
  12915. '-print-multiarch'
  12916. Print the path to OS libraries for the selected multiarch, relative
  12917. to some 'lib' subdirectory.
  12918. '-print-prog-name=PROGRAM'
  12919. Like '-print-file-name', but searches for a program such as 'cpp'.
  12920. '-print-libgcc-file-name'
  12921. Same as '-print-file-name=libgcc.a'.
  12922. This is useful when you use '-nostdlib' or '-nodefaultlibs' but you
  12923. do want to link with 'libgcc.a'. You can do:
  12924. gcc -nostdlib FILES... `gcc -print-libgcc-file-name`
  12925. '-print-search-dirs'
  12926. Print the name of the configured installation directory and a list
  12927. of program and library directories 'gcc' searches--and don't do
  12928. anything else.
  12929. This is useful when 'gcc' prints the error message 'installation
  12930. problem, cannot exec cpp0: No such file or directory'. To resolve
  12931. this you either need to put 'cpp0' and the other compiler
  12932. components where 'gcc' expects to find them, or you can set the
  12933. environment variable 'GCC_EXEC_PREFIX' to the directory where you
  12934. installed them. Don't forget the trailing '/'. *Note Environment
  12935. Variables::.
  12936. '-print-sysroot'
  12937. Print the target sysroot directory that is used during compilation.
  12938. This is the target sysroot specified either at configure time or
  12939. using the '--sysroot' option, possibly with an extra suffix that
  12940. depends on compilation options. If no target sysroot is specified,
  12941. the option prints nothing.
  12942. '-print-sysroot-headers-suffix'
  12943. Print the suffix added to the target sysroot when searching for
  12944. headers, or give an error if the compiler is not configured with
  12945. such a suffix--and don't do anything else.
  12946. '-dumpmachine'
  12947. Print the compiler's target machine (for example,
  12948. 'i686-pc-linux-gnu')--and don't do anything else.
  12949. '-dumpversion'
  12950. Print the compiler version (for example, '3.0', '6.3.0' or
  12951. '7')--and don't do anything else. This is the compiler version
  12952. used in filesystem paths and specs. Depending on how the compiler
  12953. has been configured it can be just a single number (major version),
  12954. two numbers separated by a dot (major and minor version) or three
  12955. numbers separated by dots (major, minor and patchlevel version).
  12956. '-dumpfullversion'
  12957. Print the full compiler version--and don't do anything else. The
  12958. output is always three numbers separated by dots, major, minor and
  12959. patchlevel version.
  12960. '-dumpspecs'
  12961. Print the compiler's built-in specs--and don't do anything else.
  12962. (This is used when GCC itself is being built.) *Note Spec Files::.
  12963. 
  12964. File: gcc.info, Node: Submodel Options, Next: Spec Files, Prev: Developer Options, Up: Invoking GCC
  12965. 3.19 Machine-Dependent Options
  12966. ==============================
  12967. Each target machine supported by GCC can have its own options--for
  12968. example, to allow you to compile for a particular processor variant or
  12969. ABI, or to control optimizations specific to that machine. By
  12970. convention, the names of machine-specific options start with '-m'.
  12971. Some configurations of the compiler also support additional
  12972. target-specific options, usually for compatibility with other compilers
  12973. on the same platform.
  12974. * Menu:
  12975. * AArch64 Options::
  12976. * Adapteva Epiphany Options::
  12977. * AMD GCN Options::
  12978. * ARC Options::
  12979. * ARM Options::
  12980. * AVR Options::
  12981. * Blackfin Options::
  12982. * C6X Options::
  12983. * CRIS Options::
  12984. * CR16 Options::
  12985. * C-SKY Options::
  12986. * Darwin Options::
  12987. * DEC Alpha Options::
  12988. * eBPF Options::
  12989. * FR30 Options::
  12990. * FT32 Options::
  12991. * FRV Options::
  12992. * GNU/Linux Options::
  12993. * H8/300 Options::
  12994. * HPPA Options::
  12995. * IA-64 Options::
  12996. * LM32 Options::
  12997. * M32C Options::
  12998. * M32R/D Options::
  12999. * M680x0 Options::
  13000. * MCore Options::
  13001. * MeP Options::
  13002. * MicroBlaze Options::
  13003. * MIPS Options::
  13004. * MMIX Options::
  13005. * MN10300 Options::
  13006. * Moxie Options::
  13007. * MSP430 Options::
  13008. * NDS32 Options::
  13009. * Nios II Options::
  13010. * Nvidia PTX Options::
  13011. * OpenRISC Options::
  13012. * PDP-11 Options::
  13013. * picoChip Options::
  13014. * PowerPC Options::
  13015. * PRU Options::
  13016. * RISC-V Options::
  13017. * RL78 Options::
  13018. * RS/6000 and PowerPC Options::
  13019. * RX Options::
  13020. * S/390 and zSeries Options::
  13021. * Score Options::
  13022. * SH Options::
  13023. * Solaris 2 Options::
  13024. * SPARC Options::
  13025. * System V Options::
  13026. * TILE-Gx Options::
  13027. * TILEPro Options::
  13028. * V850 Options::
  13029. * VAX Options::
  13030. * Visium Options::
  13031. * VMS Options::
  13032. * VxWorks Options::
  13033. * x86 Options::
  13034. * x86 Windows Options::
  13035. * Xstormy16 Options::
  13036. * Xtensa Options::
  13037. * zSeries Options::
  13038. 
  13039. File: gcc.info, Node: AArch64 Options, Next: Adapteva Epiphany Options, Up: Submodel Options
  13040. 3.19.1 AArch64 Options
  13041. ----------------------
  13042. These options are defined for AArch64 implementations:
  13043. '-mabi=NAME'
  13044. Generate code for the specified data model. Permissible values are
  13045. 'ilp32' for SysV-like data model where int, long int and pointers
  13046. are 32 bits, and 'lp64' for SysV-like data model where int is 32
  13047. bits, but long int and pointers are 64 bits.
  13048. The default depends on the specific target configuration. Note
  13049. that the LP64 and ILP32 ABIs are not link-compatible; you must
  13050. compile your entire program with the same ABI, and link with a
  13051. compatible set of libraries.
  13052. '-mbig-endian'
  13053. Generate big-endian code. This is the default when GCC is
  13054. configured for an 'aarch64_be-*-*' target.
  13055. '-mgeneral-regs-only'
  13056. Generate code which uses only the general-purpose registers. This
  13057. will prevent the compiler from using floating-point and Advanced
  13058. SIMD registers but will not impose any restrictions on the
  13059. assembler.
  13060. '-mlittle-endian'
  13061. Generate little-endian code. This is the default when GCC is
  13062. configured for an 'aarch64-*-*' but not an 'aarch64_be-*-*' target.
  13063. '-mcmodel=tiny'
  13064. Generate code for the tiny code model. The program and its
  13065. statically defined symbols must be within 1MB of each other.
  13066. Programs can be statically or dynamically linked.
  13067. '-mcmodel=small'
  13068. Generate code for the small code model. The program and its
  13069. statically defined symbols must be within 4GB of each other.
  13070. Programs can be statically or dynamically linked. This is the
  13071. default code model.
  13072. '-mcmodel=large'
  13073. Generate code for the large code model. This makes no assumptions
  13074. about addresses and sizes of sections. Programs can be statically
  13075. linked only. The '-mcmodel=large' option is incompatible with
  13076. '-mabi=ilp32', '-fpic' and '-fPIC'.
  13077. '-mstrict-align'
  13078. '-mno-strict-align'
  13079. Avoid or allow generating memory accesses that may not be aligned
  13080. on a natural object boundary as described in the architecture
  13081. specification.
  13082. '-momit-leaf-frame-pointer'
  13083. '-mno-omit-leaf-frame-pointer'
  13084. Omit or keep the frame pointer in leaf functions. The former
  13085. behavior is the default.
  13086. '-mstack-protector-guard=GUARD'
  13087. '-mstack-protector-guard-reg=REG'
  13088. '-mstack-protector-guard-offset=OFFSET'
  13089. Generate stack protection code using canary at GUARD. Supported
  13090. locations are 'global' for a global canary or 'sysreg' for a canary
  13091. in an appropriate system register.
  13092. With the latter choice the options
  13093. '-mstack-protector-guard-reg=REG' and
  13094. '-mstack-protector-guard-offset=OFFSET' furthermore specify which
  13095. system register to use as base register for reading the canary, and
  13096. from what offset from that base register. There is no default
  13097. register or offset as this is entirely for use within the Linux
  13098. kernel.
  13099. '-mstack-protector-guard=GUARD'
  13100. '-mstack-protector-guard-reg=REG'
  13101. '-mstack-protector-guard-offset=OFFSET'
  13102. Generate stack protection code using canary at GUARD. Supported
  13103. locations are 'global' for a global canary or 'sysreg' for a canary
  13104. in an appropriate system register.
  13105. With the latter choice the options
  13106. '-mstack-protector-guard-reg=REG' and
  13107. '-mstack-protector-guard-offset=OFFSET' furthermore specify which
  13108. system register to use as base register for reading the canary, and
  13109. from what offset from that base register. There is no default
  13110. register or offset as this is entirely for use within the Linux
  13111. kernel.
  13112. '-mtls-dialect=desc'
  13113. Use TLS descriptors as the thread-local storage mechanism for
  13114. dynamic accesses of TLS variables. This is the default.
  13115. '-mtls-dialect=traditional'
  13116. Use traditional TLS as the thread-local storage mechanism for
  13117. dynamic accesses of TLS variables.
  13118. '-mtls-size=SIZE'
  13119. Specify bit size of immediate TLS offsets. Valid values are 12,
  13120. 24, 32, 48. This option requires binutils 2.26 or newer.
  13121. '-mfix-cortex-a53-835769'
  13122. '-mno-fix-cortex-a53-835769'
  13123. Enable or disable the workaround for the ARM Cortex-A53 erratum
  13124. number 835769. This involves inserting a NOP instruction between
  13125. memory instructions and 64-bit integer multiply-accumulate
  13126. instructions.
  13127. '-mfix-cortex-a53-843419'
  13128. '-mno-fix-cortex-a53-843419'
  13129. Enable or disable the workaround for the ARM Cortex-A53 erratum
  13130. number 843419. This erratum workaround is made at link time and
  13131. this will only pass the corresponding flag to the linker.
  13132. '-mlow-precision-recip-sqrt'
  13133. '-mno-low-precision-recip-sqrt'
  13134. Enable or disable the reciprocal square root approximation. This
  13135. option only has an effect if '-ffast-math' or
  13136. '-funsafe-math-optimizations' is used as well. Enabling this
  13137. reduces precision of reciprocal square root results to about 16
  13138. bits for single precision and to 32 bits for double precision.
  13139. '-mlow-precision-sqrt'
  13140. '-mno-low-precision-sqrt'
  13141. Enable or disable the square root approximation. This option only
  13142. has an effect if '-ffast-math' or '-funsafe-math-optimizations' is
  13143. used as well. Enabling this reduces precision of square root
  13144. results to about 16 bits for single precision and to 32 bits for
  13145. double precision. If enabled, it implies
  13146. '-mlow-precision-recip-sqrt'.
  13147. '-mlow-precision-div'
  13148. '-mno-low-precision-div'
  13149. Enable or disable the division approximation. This option only has
  13150. an effect if '-ffast-math' or '-funsafe-math-optimizations' is used
  13151. as well. Enabling this reduces precision of division results to
  13152. about 16 bits for single precision and to 32 bits for double
  13153. precision.
  13154. '-mtrack-speculation'
  13155. '-mno-track-speculation'
  13156. Enable or disable generation of additional code to track
  13157. speculative execution through conditional branches. The tracking
  13158. state can then be used by the compiler when expanding calls to
  13159. '__builtin_speculation_safe_copy' to permit a more efficient code
  13160. sequence to be generated.
  13161. '-moutline-atomics'
  13162. '-mno-outline-atomics'
  13163. Enable or disable calls to out-of-line helpers to implement atomic
  13164. operations. These helpers will, at runtime, determine if the LSE
  13165. instructions from ARMv8.1-A can be used; if not, they will use the
  13166. load/store-exclusive instructions that are present in the base
  13167. ARMv8.0 ISA.
  13168. This option is only applicable when compiling for the base ARMv8.0
  13169. instruction set. If using a later revision, e.g.
  13170. '-march=armv8.1-a' or '-march=armv8-a+lse', the ARMv8.1-Atomics
  13171. instructions will be used directly. The same applies when using
  13172. '-mcpu=' when the selected cpu supports the 'lse' feature. This
  13173. option is on by default.
  13174. '-march=NAME'
  13175. Specify the name of the target architecture and, optionally, one or
  13176. more feature modifiers. This option has the form
  13177. '-march=ARCH{+[no]FEATURE}*'.
  13178. The table below summarizes the permissible values for ARCH and the
  13179. features that they enable by default:
  13180. ARCH value Architecture Includes by default
  13181. --------------------------------------------------------------------------
  13182. 'armv8-a' Armv8-A '+fp', '+simd'
  13183. 'armv8.1-a' Armv8.1-A 'armv8-a', '+crc', '+lse', '+rdma'
  13184. 'armv8.2-a' Armv8.2-A 'armv8.1-a'
  13185. 'armv8.3-a' Armv8.3-A 'armv8.2-a'
  13186. 'armv8.4-a' Armv8.4-A 'armv8.3-a', '+fp16fml', '+dotprod'
  13187. 'armv8.5-a' Armv8.5-A 'armv8.4-a', '+sb', '+ssbs', '+predres'
  13188. 'armv8.6-a' Armv8.6-A 'armv8.5-a', '+bf16', '+i8mm'
  13189. The value 'native' is available on native AArch64 GNU/Linux and
  13190. causes the compiler to pick the architecture of the host system.
  13191. This option has no effect if the compiler is unable to recognize
  13192. the architecture of the host system,
  13193. The permissible values for FEATURE are listed in the sub-section on
  13194. *note '-march' and '-mcpu' Feature Modifiers:
  13195. aarch64-feature-modifiers. Where conflicting feature modifiers are
  13196. specified, the right-most feature is used.
  13197. GCC uses NAME to determine what kind of instructions it can emit
  13198. when generating assembly code. If '-march' is specified without
  13199. either of '-mtune' or '-mcpu' also being specified, the code is
  13200. tuned to perform well across a range of target processors
  13201. implementing the target architecture.
  13202. '-mtune=NAME'
  13203. Specify the name of the target processor for which GCC should tune
  13204. the performance of the code. Permissible values for this option
  13205. are: 'generic', 'cortex-a35', 'cortex-a53', 'cortex-a55',
  13206. 'cortex-a57', 'cortex-a72', 'cortex-a73', 'cortex-a75',
  13207. 'cortex-a76', 'cortex-a76ae', 'cortex-a77', 'cortex-a65',
  13208. 'cortex-a65ae', 'cortex-a34', 'ares', 'exynos-m1', 'emag',
  13209. 'falkor', 'neoverse-e1','neoverse-n1','qdf24xx', 'saphira',
  13210. 'phecda', 'xgene1', 'vulcan', 'octeontx', 'octeontx81',
  13211. 'octeontx83', 'octeontx2', 'octeontx2t98', 'octeontx2t96'
  13212. 'octeontx2t93', 'octeontx2f95', 'octeontx2f95n', 'octeontx2f95mm'
  13213. 'thunderx', 'thunderxt88', 'thunderxt88p1', 'thunderxt81',
  13214. 'tsv110', 'thunderxt83', 'thunderx2t99', 'thunderx3t110',
  13215. 'cortex-a57.cortex-a53', 'cortex-a72.cortex-a53',
  13216. 'cortex-a73.cortex-a35', 'cortex-a73.cortex-a53',
  13217. 'cortex-a75.cortex-a55', 'cortex-a76.cortex-a55' 'native'.
  13218. The values 'cortex-a57.cortex-a53', 'cortex-a72.cortex-a53',
  13219. 'cortex-a73.cortex-a35', 'cortex-a73.cortex-a53',
  13220. 'cortex-a75.cortex-a55', 'cortex-a76.cortex-a55' specify that GCC
  13221. should tune for a big.LITTLE system.
  13222. Additionally on native AArch64 GNU/Linux systems the value 'native'
  13223. tunes performance to the host system. This option has no effect if
  13224. the compiler is unable to recognize the processor of the host
  13225. system.
  13226. Where none of '-mtune=', '-mcpu=' or '-march=' are specified, the
  13227. code is tuned to perform well across a range of target processors.
  13228. This option cannot be suffixed by feature modifiers.
  13229. '-mcpu=NAME'
  13230. Specify the name of the target processor, optionally suffixed by
  13231. one or more feature modifiers. This option has the form
  13232. '-mcpu=CPU{+[no]FEATURE}*', where the permissible values for CPU
  13233. are the same as those available for '-mtune'. The permissible
  13234. values for FEATURE are documented in the sub-section on *note
  13235. '-march' and '-mcpu' Feature Modifiers: aarch64-feature-modifiers.
  13236. Where conflicting feature modifiers are specified, the right-most
  13237. feature is used.
  13238. GCC uses NAME to determine what kind of instructions it can emit
  13239. when generating assembly code (as if by '-march') and to determine
  13240. the target processor for which to tune for performance (as if by
  13241. '-mtune'). Where this option is used in conjunction with '-march'
  13242. or '-mtune', those options take precedence over the appropriate
  13243. part of this option.
  13244. '-moverride=STRING'
  13245. Override tuning decisions made by the back-end in response to a
  13246. '-mtune=' switch. The syntax, semantics, and accepted values for
  13247. STRING in this option are not guaranteed to be consistent across
  13248. releases.
  13249. This option is only intended to be useful when developing GCC.
  13250. '-mverbose-cost-dump'
  13251. Enable verbose cost model dumping in the debug dump files. This
  13252. option is provided for use in debugging the compiler.
  13253. '-mpc-relative-literal-loads'
  13254. '-mno-pc-relative-literal-loads'
  13255. Enable or disable PC-relative literal loads. With this option
  13256. literal pools are accessed using a single instruction and emitted
  13257. after each function. This limits the maximum size of functions to
  13258. 1MB. This is enabled by default for '-mcmodel=tiny'.
  13259. '-msign-return-address=SCOPE'
  13260. Select the function scope on which return address signing will be
  13261. applied. Permissible values are 'none', which disables return
  13262. address signing, 'non-leaf', which enables pointer signing for
  13263. functions which are not leaf functions, and 'all', which enables
  13264. pointer signing for all functions. The default value is 'none'.
  13265. This option has been deprecated by -mbranch-protection.
  13266. '-mbranch-protection=NONE|STANDARD|PAC-RET[+LEAF+B-KEY]|BTI'
  13267. Select the branch protection features to use. 'none' is the
  13268. default and turns off all types of branch protection. 'standard'
  13269. turns on all types of branch protection features. If a feature has
  13270. additional tuning options, then 'standard' sets it to its standard
  13271. level. 'pac-ret[+LEAF]' turns on return address signing to its
  13272. standard level: signing functions that save the return address to
  13273. memory (non-leaf functions will practically always do this) using
  13274. the a-key. The optional argument 'leaf' can be used to extend the
  13275. signing to include leaf functions. The optional argument 'b-key'
  13276. can be used to sign the functions with the B-key instead of the
  13277. A-key. 'bti' turns on branch target identification mechanism.
  13278. '-msve-vector-bits=BITS'
  13279. Specify the number of bits in an SVE vector register. This option
  13280. only has an effect when SVE is enabled.
  13281. GCC supports two forms of SVE code generation: "vector-length
  13282. agnostic" output that works with any size of vector register and
  13283. "vector-length specific" output that allows GCC to make assumptions
  13284. about the vector length when it is useful for optimization reasons.
  13285. The possible values of 'bits' are: 'scalable', '128', '256', '512',
  13286. '1024' and '2048'. Specifying 'scalable' selects vector-length
  13287. agnostic output. At present '-msve-vector-bits=128' also generates
  13288. vector-length agnostic output for big-endian targets. All other
  13289. values generate vector-length specific code. The behavior of these
  13290. values may change in future releases and no value except 'scalable'
  13291. should be relied on for producing code that is portable across
  13292. different hardware SVE vector lengths.
  13293. The default is '-msve-vector-bits=scalable', which produces
  13294. vector-length agnostic code.
  13295. 3.19.1.1 '-march' and '-mcpu' Feature Modifiers
  13296. ...............................................
  13297. Feature modifiers used with '-march' and '-mcpu' can be any of the
  13298. following and their inverses 'noFEATURE':
  13299. 'crc'
  13300. Enable CRC extension. This is on by default for
  13301. '-march=armv8.1-a'.
  13302. 'crypto'
  13303. Enable Crypto extension. This also enables Advanced SIMD and
  13304. floating-point instructions.
  13305. 'fp'
  13306. Enable floating-point instructions. This is on by default for all
  13307. possible values for options '-march' and '-mcpu'.
  13308. 'simd'
  13309. Enable Advanced SIMD instructions. This also enables
  13310. floating-point instructions. This is on by default for all
  13311. possible values for options '-march' and '-mcpu'.
  13312. 'sve'
  13313. Enable Scalable Vector Extension instructions. This also enables
  13314. Advanced SIMD and floating-point instructions.
  13315. 'lse'
  13316. Enable Large System Extension instructions. This is on by default
  13317. for '-march=armv8.1-a'.
  13318. 'rdma'
  13319. Enable Round Double Multiply Accumulate instructions. This is on
  13320. by default for '-march=armv8.1-a'.
  13321. 'fp16'
  13322. Enable FP16 extension. This also enables floating-point
  13323. instructions.
  13324. 'fp16fml'
  13325. Enable FP16 fmla extension. This also enables FP16 extensions and
  13326. floating-point instructions. This option is enabled by default for
  13327. '-march=armv8.4-a'. Use of this option with architectures prior to
  13328. Armv8.2-A is not supported.
  13329. 'rcpc'
  13330. Enable the RcPc extension. This does not change code generation
  13331. from GCC, but is passed on to the assembler, enabling inline asm
  13332. statements to use instructions from the RcPc extension.
  13333. 'dotprod'
  13334. Enable the Dot Product extension. This also enables Advanced SIMD
  13335. instructions.
  13336. 'aes'
  13337. Enable the Armv8-a aes and pmull crypto extension. This also
  13338. enables Advanced SIMD instructions.
  13339. 'sha2'
  13340. Enable the Armv8-a sha2 crypto extension. This also enables
  13341. Advanced SIMD instructions.
  13342. 'sha3'
  13343. Enable the sha512 and sha3 crypto extension. This also enables
  13344. Advanced SIMD instructions. Use of this option with architectures
  13345. prior to Armv8.2-A is not supported.
  13346. 'sm4'
  13347. Enable the sm3 and sm4 crypto extension. This also enables
  13348. Advanced SIMD instructions. Use of this option with architectures
  13349. prior to Armv8.2-A is not supported.
  13350. 'profile'
  13351. Enable the Statistical Profiling extension. This option is only to
  13352. enable the extension at the assembler level and does not affect
  13353. code generation.
  13354. 'rng'
  13355. Enable the Armv8.5-a Random Number instructions. This option is
  13356. only to enable the extension at the assembler level and does not
  13357. affect code generation.
  13358. 'memtag'
  13359. Enable the Armv8.5-a Memory Tagging Extensions. Use of this option
  13360. with architectures prior to Armv8.5-A is not supported.
  13361. 'sb'
  13362. Enable the Armv8-a Speculation Barrier instruction. This option is
  13363. only to enable the extension at the assembler level and does not
  13364. affect code generation. This option is enabled by default for
  13365. '-march=armv8.5-a'.
  13366. 'ssbs'
  13367. Enable the Armv8-a Speculative Store Bypass Safe instruction. This
  13368. option is only to enable the extension at the assembler level and
  13369. does not affect code generation. This option is enabled by default
  13370. for '-march=armv8.5-a'.
  13371. 'predres'
  13372. Enable the Armv8-a Execution and Data Prediction Restriction
  13373. instructions. This option is only to enable the extension at the
  13374. assembler level and does not affect code generation. This option
  13375. is enabled by default for '-march=armv8.5-a'.
  13376. 'sve2'
  13377. Enable the Armv8-a Scalable Vector Extension 2. This also enables
  13378. SVE instructions.
  13379. 'sve2-bitperm'
  13380. Enable SVE2 bitperm instructions. This also enables SVE2
  13381. instructions.
  13382. 'sve2-sm4'
  13383. Enable SVE2 sm4 instructions. This also enables SVE2 instructions.
  13384. 'sve2-aes'
  13385. Enable SVE2 aes instructions. This also enables SVE2 instructions.
  13386. 'sve2-sha3'
  13387. Enable SVE2 sha3 instructions. This also enables SVE2
  13388. instructions.
  13389. 'tme'
  13390. Enable the Transactional Memory Extension.
  13391. 'i8mm'
  13392. Enable 8-bit Integer Matrix Multiply instructions. This also
  13393. enables Advanced SIMD and floating-point instructions. This option
  13394. is enabled by default for '-march=armv8.6-a'. Use of this option
  13395. with architectures prior to Armv8.2-A is not supported.
  13396. 'f32mm'
  13397. Enable 32-bit Floating point Matrix Multiply instructions. This
  13398. also enables SVE instructions. Use of this option with
  13399. architectures prior to Armv8.2-A is not supported.
  13400. 'f64mm'
  13401. Enable 64-bit Floating point Matrix Multiply instructions. This
  13402. also enables SVE instructions. Use of this option with
  13403. architectures prior to Armv8.2-A is not supported.
  13404. 'bf16'
  13405. Enable brain half-precision floating-point instructions. This also
  13406. enables Advanced SIMD and floating-point instructions. This option
  13407. is enabled by default for '-march=armv8.6-a'. Use of this option
  13408. with architectures prior to Armv8.2-A is not supported.
  13409. Feature 'crypto' implies 'aes', 'sha2', and 'simd', which implies 'fp'.
  13410. Conversely, 'nofp' implies 'nosimd', which implies 'nocrypto', 'noaes'
  13411. and 'nosha2'.
  13412. 
  13413. File: gcc.info, Node: Adapteva Epiphany Options, Next: AMD GCN Options, Prev: AArch64 Options, Up: Submodel Options
  13414. 3.19.2 Adapteva Epiphany Options
  13415. --------------------------------
  13416. These '-m' options are defined for Adapteva Epiphany:
  13417. '-mhalf-reg-file'
  13418. Don't allocate any register in the range 'r32'...'r63'. That
  13419. allows code to run on hardware variants that lack these registers.
  13420. '-mprefer-short-insn-regs'
  13421. Preferentially allocate registers that allow short instruction
  13422. generation. This can result in increased instruction count, so
  13423. this may either reduce or increase overall code size.
  13424. '-mbranch-cost=NUM'
  13425. Set the cost of branches to roughly NUM "simple" instructions.
  13426. This cost is only a heuristic and is not guaranteed to produce
  13427. consistent results across releases.
  13428. '-mcmove'
  13429. Enable the generation of conditional moves.
  13430. '-mnops=NUM'
  13431. Emit NUM NOPs before every other generated instruction.
  13432. '-mno-soft-cmpsf'
  13433. For single-precision floating-point comparisons, emit an 'fsub'
  13434. instruction and test the flags. This is faster than a software
  13435. comparison, but can get incorrect results in the presence of NaNs,
  13436. or when two different small numbers are compared such that their
  13437. difference is calculated as zero. The default is '-msoft-cmpsf',
  13438. which uses slower, but IEEE-compliant, software comparisons.
  13439. '-mstack-offset=NUM'
  13440. Set the offset between the top of the stack and the stack pointer.
  13441. E.g., a value of 8 means that the eight bytes in the range
  13442. 'sp+0...sp+7' can be used by leaf functions without stack
  13443. allocation. Values other than '8' or '16' are untested and
  13444. unlikely to work. Note also that this option changes the ABI;
  13445. compiling a program with a different stack offset than the
  13446. libraries have been compiled with generally does not work. This
  13447. option can be useful if you want to evaluate if a different stack
  13448. offset would give you better code, but to actually use a different
  13449. stack offset to build working programs, it is recommended to
  13450. configure the toolchain with the appropriate
  13451. '--with-stack-offset=NUM' option.
  13452. '-mno-round-nearest'
  13453. Make the scheduler assume that the rounding mode has been set to
  13454. truncating. The default is '-mround-nearest'.
  13455. '-mlong-calls'
  13456. If not otherwise specified by an attribute, assume all calls might
  13457. be beyond the offset range of the 'b' / 'bl' instructions, and
  13458. therefore load the function address into a register before
  13459. performing a (otherwise direct) call. This is the default.
  13460. '-mshort-calls'
  13461. If not otherwise specified by an attribute, assume all direct calls
  13462. are in the range of the 'b' / 'bl' instructions, so use these
  13463. instructions for direct calls. The default is '-mlong-calls'.
  13464. '-msmall16'
  13465. Assume addresses can be loaded as 16-bit unsigned values. This
  13466. does not apply to function addresses for which '-mlong-calls'
  13467. semantics are in effect.
  13468. '-mfp-mode=MODE'
  13469. Set the prevailing mode of the floating-point unit. This
  13470. determines the floating-point mode that is provided and expected at
  13471. function call and return time. Making this mode match the mode you
  13472. predominantly need at function start can make your programs smaller
  13473. and faster by avoiding unnecessary mode switches.
  13474. MODE can be set to one the following values:
  13475. 'caller'
  13476. Any mode at function entry is valid, and retained or restored
  13477. when the function returns, and when it calls other functions.
  13478. This mode is useful for compiling libraries or other
  13479. compilation units you might want to incorporate into different
  13480. programs with different prevailing FPU modes, and the
  13481. convenience of being able to use a single object file
  13482. outweighs the size and speed overhead for any extra mode
  13483. switching that might be needed, compared with what would be
  13484. needed with a more specific choice of prevailing FPU mode.
  13485. 'truncate'
  13486. This is the mode used for floating-point calculations with
  13487. truncating (i.e. round towards zero) rounding mode. That
  13488. includes conversion from floating point to integer.
  13489. 'round-nearest'
  13490. This is the mode used for floating-point calculations with
  13491. round-to-nearest-or-even rounding mode.
  13492. 'int'
  13493. This is the mode used to perform integer calculations in the
  13494. FPU, e.g. integer multiply, or integer
  13495. multiply-and-accumulate.
  13496. The default is '-mfp-mode=caller'
  13497. '-mno-split-lohi'
  13498. '-mno-postinc'
  13499. '-mno-postmodify'
  13500. Code generation tweaks that disable, respectively, splitting of
  13501. 32-bit loads, generation of post-increment addresses, and
  13502. generation of post-modify addresses. The defaults are
  13503. 'msplit-lohi', '-mpost-inc', and '-mpost-modify'.
  13504. '-mnovect-double'
  13505. Change the preferred SIMD mode to SImode. The default is
  13506. '-mvect-double', which uses DImode as preferred SIMD mode.
  13507. '-max-vect-align=NUM'
  13508. The maximum alignment for SIMD vector mode types. NUM may be 4 or
  13509. 8. The default is 8. Note that this is an ABI change, even though
  13510. many library function interfaces are unaffected if they don't use
  13511. SIMD vector modes in places that affect size and/or alignment of
  13512. relevant types.
  13513. '-msplit-vecmove-early'
  13514. Split vector moves into single word moves before reload. In theory
  13515. this can give better register allocation, but so far the reverse
  13516. seems to be generally the case.
  13517. '-m1reg-REG'
  13518. Specify a register to hold the constant -1, which makes loading
  13519. small negative constants and certain bitmasks faster. Allowable
  13520. values for REG are 'r43' and 'r63', which specify use of that
  13521. register as a fixed register, and 'none', which means that no
  13522. register is used for this purpose. The default is '-m1reg-none'.
  13523. 
  13524. File: gcc.info, Node: AMD GCN Options, Next: ARC Options, Prev: Adapteva Epiphany Options, Up: Submodel Options
  13525. 3.19.3 AMD GCN Options
  13526. ----------------------
  13527. These options are defined specifically for the AMD GCN port.
  13528. '-march=GPU'
  13529. '-mtune=GPU'
  13530. Set architecture type or tuning for GPU. Supported values for GPU
  13531. are
  13532. 'fiji'
  13533. Compile for GCN3 Fiji devices (gfx803).
  13534. 'gfx900'
  13535. Compile for GCN5 Vega 10 devices (gfx900).
  13536. 'gfx906'
  13537. Compile for GCN5 Vega 20 devices (gfx906).
  13538. '-mstack-size=BYTES'
  13539. Specify how many BYTES of stack space will be requested for each
  13540. GPU thread (wave-front). Beware that there may be many threads and
  13541. limited memory available. The size of the stack allocation may
  13542. also have an impact on run-time performance. The default is 32KB
  13543. when using OpenACC or OpenMP, and 1MB otherwise.
  13544. 
  13545. File: gcc.info, Node: ARC Options, Next: ARM Options, Prev: AMD GCN Options, Up: Submodel Options
  13546. 3.19.4 ARC Options
  13547. ------------------
  13548. The following options control the architecture variant for which code is
  13549. being compiled:
  13550. '-mbarrel-shifter'
  13551. Generate instructions supported by barrel shifter. This is the
  13552. default unless '-mcpu=ARC601' or '-mcpu=ARCEM' is in effect.
  13553. '-mjli-always'
  13554. Force to call a function using jli_s instruction. This option is
  13555. valid only for ARCv2 architecture.
  13556. '-mcpu=CPU'
  13557. Set architecture type, register usage, and instruction scheduling
  13558. parameters for CPU. There are also shortcut alias options
  13559. available for backward compatibility and convenience. Supported
  13560. values for CPU are
  13561. 'arc600'
  13562. Compile for ARC600. Aliases: '-mA6', '-mARC600'.
  13563. 'arc601'
  13564. Compile for ARC601. Alias: '-mARC601'.
  13565. 'arc700'
  13566. Compile for ARC700. Aliases: '-mA7', '-mARC700'. This is the
  13567. default when configured with '--with-cpu=arc700'.
  13568. 'arcem'
  13569. Compile for ARC EM.
  13570. 'archs'
  13571. Compile for ARC HS.
  13572. 'em'
  13573. Compile for ARC EM CPU with no hardware extensions.
  13574. 'em4'
  13575. Compile for ARC EM4 CPU.
  13576. 'em4_dmips'
  13577. Compile for ARC EM4 DMIPS CPU.
  13578. 'em4_fpus'
  13579. Compile for ARC EM4 DMIPS CPU with the single-precision
  13580. floating-point extension.
  13581. 'em4_fpuda'
  13582. Compile for ARC EM4 DMIPS CPU with single-precision
  13583. floating-point and double assist instructions.
  13584. 'hs'
  13585. Compile for ARC HS CPU with no hardware extensions except the
  13586. atomic instructions.
  13587. 'hs34'
  13588. Compile for ARC HS34 CPU.
  13589. 'hs38'
  13590. Compile for ARC HS38 CPU.
  13591. 'hs38_linux'
  13592. Compile for ARC HS38 CPU with all hardware extensions on.
  13593. 'arc600_norm'
  13594. Compile for ARC 600 CPU with 'norm' instructions enabled.
  13595. 'arc600_mul32x16'
  13596. Compile for ARC 600 CPU with 'norm' and 32x16-bit multiply
  13597. instructions enabled.
  13598. 'arc600_mul64'
  13599. Compile for ARC 600 CPU with 'norm' and 'mul64'-family
  13600. instructions enabled.
  13601. 'arc601_norm'
  13602. Compile for ARC 601 CPU with 'norm' instructions enabled.
  13603. 'arc601_mul32x16'
  13604. Compile for ARC 601 CPU with 'norm' and 32x16-bit multiply
  13605. instructions enabled.
  13606. 'arc601_mul64'
  13607. Compile for ARC 601 CPU with 'norm' and 'mul64'-family
  13608. instructions enabled.
  13609. 'nps400'
  13610. Compile for ARC 700 on NPS400 chip.
  13611. 'em_mini'
  13612. Compile for ARC EM minimalist configuration featuring reduced
  13613. register set.
  13614. '-mdpfp'
  13615. '-mdpfp-compact'
  13616. Generate double-precision FPX instructions, tuned for the compact
  13617. implementation.
  13618. '-mdpfp-fast'
  13619. Generate double-precision FPX instructions, tuned for the fast
  13620. implementation.
  13621. '-mno-dpfp-lrsr'
  13622. Disable 'lr' and 'sr' instructions from using FPX extension aux
  13623. registers.
  13624. '-mea'
  13625. Generate extended arithmetic instructions. Currently only 'divaw',
  13626. 'adds', 'subs', and 'sat16' are supported. Only valid for
  13627. '-mcpu=ARC700'.
  13628. '-mno-mpy'
  13629. Do not generate 'mpy'-family instructions for ARC700. This option
  13630. is deprecated.
  13631. '-mmul32x16'
  13632. Generate 32x16-bit multiply and multiply-accumulate instructions.
  13633. '-mmul64'
  13634. Generate 'mul64' and 'mulu64' instructions. Only valid for
  13635. '-mcpu=ARC600'.
  13636. '-mnorm'
  13637. Generate 'norm' instructions. This is the default if
  13638. '-mcpu=ARC700' is in effect.
  13639. '-mspfp'
  13640. '-mspfp-compact'
  13641. Generate single-precision FPX instructions, tuned for the compact
  13642. implementation.
  13643. '-mspfp-fast'
  13644. Generate single-precision FPX instructions, tuned for the fast
  13645. implementation.
  13646. '-msimd'
  13647. Enable generation of ARC SIMD instructions via target-specific
  13648. builtins. Only valid for '-mcpu=ARC700'.
  13649. '-msoft-float'
  13650. This option ignored; it is provided for compatibility purposes
  13651. only. Software floating-point code is emitted by default, and this
  13652. default can overridden by FPX options; '-mspfp', '-mspfp-compact',
  13653. or '-mspfp-fast' for single precision, and '-mdpfp',
  13654. '-mdpfp-compact', or '-mdpfp-fast' for double precision.
  13655. '-mswap'
  13656. Generate 'swap' instructions.
  13657. '-matomic'
  13658. This enables use of the locked load/store conditional extension to
  13659. implement atomic memory built-in functions. Not available for ARC
  13660. 6xx or ARC EM cores.
  13661. '-mdiv-rem'
  13662. Enable 'div' and 'rem' instructions for ARCv2 cores.
  13663. '-mcode-density'
  13664. Enable code density instructions for ARC EM. This option is on by
  13665. default for ARC HS.
  13666. '-mll64'
  13667. Enable double load/store operations for ARC HS cores.
  13668. '-mtp-regno=REGNO'
  13669. Specify thread pointer register number.
  13670. '-mmpy-option=MULTO'
  13671. Compile ARCv2 code with a multiplier design option. You can
  13672. specify the option using either a string or numeric value for
  13673. MULTO. 'wlh1' is the default value. The recognized values are:
  13674. '0'
  13675. 'none'
  13676. No multiplier available.
  13677. '1'
  13678. 'w'
  13679. 16x16 multiplier, fully pipelined. The following instructions
  13680. are enabled: 'mpyw' and 'mpyuw'.
  13681. '2'
  13682. 'wlh1'
  13683. 32x32 multiplier, fully pipelined (1 stage). The following
  13684. instructions are additionally enabled: 'mpy', 'mpyu', 'mpym',
  13685. 'mpymu', and 'mpy_s'.
  13686. '3'
  13687. 'wlh2'
  13688. 32x32 multiplier, fully pipelined (2 stages). The following
  13689. instructions are additionally enabled: 'mpy', 'mpyu', 'mpym',
  13690. 'mpymu', and 'mpy_s'.
  13691. '4'
  13692. 'wlh3'
  13693. Two 16x16 multipliers, blocking, sequential. The following
  13694. instructions are additionally enabled: 'mpy', 'mpyu', 'mpym',
  13695. 'mpymu', and 'mpy_s'.
  13696. '5'
  13697. 'wlh4'
  13698. One 16x16 multiplier, blocking, sequential. The following
  13699. instructions are additionally enabled: 'mpy', 'mpyu', 'mpym',
  13700. 'mpymu', and 'mpy_s'.
  13701. '6'
  13702. 'wlh5'
  13703. One 32x4 multiplier, blocking, sequential. The following
  13704. instructions are additionally enabled: 'mpy', 'mpyu', 'mpym',
  13705. 'mpymu', and 'mpy_s'.
  13706. '7'
  13707. 'plus_dmpy'
  13708. ARC HS SIMD support.
  13709. '8'
  13710. 'plus_macd'
  13711. ARC HS SIMD support.
  13712. '9'
  13713. 'plus_qmacw'
  13714. ARC HS SIMD support.
  13715. This option is only available for ARCv2 cores.
  13716. '-mfpu=FPU'
  13717. Enables support for specific floating-point hardware extensions for
  13718. ARCv2 cores. Supported values for FPU are:
  13719. 'fpus'
  13720. Enables support for single-precision floating-point hardware
  13721. extensions.
  13722. 'fpud'
  13723. Enables support for double-precision floating-point hardware
  13724. extensions. The single-precision floating-point extension is
  13725. also enabled. Not available for ARC EM.
  13726. 'fpuda'
  13727. Enables support for double-precision floating-point hardware
  13728. extensions using double-precision assist instructions. The
  13729. single-precision floating-point extension is also enabled.
  13730. This option is only available for ARC EM.
  13731. 'fpuda_div'
  13732. Enables support for double-precision floating-point hardware
  13733. extensions using double-precision assist instructions. The
  13734. single-precision floating-point, square-root, and divide
  13735. extensions are also enabled. This option is only available
  13736. for ARC EM.
  13737. 'fpuda_fma'
  13738. Enables support for double-precision floating-point hardware
  13739. extensions using double-precision assist instructions. The
  13740. single-precision floating-point and fused multiply and add
  13741. hardware extensions are also enabled. This option is only
  13742. available for ARC EM.
  13743. 'fpuda_all'
  13744. Enables support for double-precision floating-point hardware
  13745. extensions using double-precision assist instructions. All
  13746. single-precision floating-point hardware extensions are also
  13747. enabled. This option is only available for ARC EM.
  13748. 'fpus_div'
  13749. Enables support for single-precision floating-point,
  13750. square-root and divide hardware extensions.
  13751. 'fpud_div'
  13752. Enables support for double-precision floating-point,
  13753. square-root and divide hardware extensions. This option
  13754. includes option 'fpus_div'. Not available for ARC EM.
  13755. 'fpus_fma'
  13756. Enables support for single-precision floating-point and fused
  13757. multiply and add hardware extensions.
  13758. 'fpud_fma'
  13759. Enables support for double-precision floating-point and fused
  13760. multiply and add hardware extensions. This option includes
  13761. option 'fpus_fma'. Not available for ARC EM.
  13762. 'fpus_all'
  13763. Enables support for all single-precision floating-point
  13764. hardware extensions.
  13765. 'fpud_all'
  13766. Enables support for all single- and double-precision
  13767. floating-point hardware extensions. Not available for ARC EM.
  13768. '-mirq-ctrl-saved=REGISTER-RANGE, BLINK, LP_COUNT'
  13769. Specifies general-purposes registers that the processor
  13770. automatically saves/restores on interrupt entry and exit.
  13771. REGISTER-RANGE is specified as two registers separated by a dash.
  13772. The register range always starts with 'r0', the upper limit is 'fp'
  13773. register. BLINK and LP_COUNT are optional. This option is only
  13774. valid for ARC EM and ARC HS cores.
  13775. '-mrgf-banked-regs=NUMBER'
  13776. Specifies the number of registers replicated in second register
  13777. bank on entry to fast interrupt. Fast interrupts are interrupts
  13778. with the highest priority level P0. These interrupts save only PC
  13779. and STATUS32 registers to avoid memory transactions during
  13780. interrupt entry and exit sequences. Use this option when you are
  13781. using fast interrupts in an ARC V2 family processor. Permitted
  13782. values are 4, 8, 16, and 32.
  13783. '-mlpc-width=WIDTH'
  13784. Specify the width of the 'lp_count' register. Valid values for
  13785. WIDTH are 8, 16, 20, 24, 28 and 32 bits. The default width is
  13786. fixed to 32 bits. If the width is less than 32, the compiler does
  13787. not attempt to transform loops in your program to use the
  13788. zero-delay loop mechanism unless it is known that the 'lp_count'
  13789. register can hold the required loop-counter value. Depending on
  13790. the width specified, the compiler and run-time library might
  13791. continue to use the loop mechanism for various needs. This option
  13792. defines macro '__ARC_LPC_WIDTH__' with the value of WIDTH.
  13793. '-mrf16'
  13794. This option instructs the compiler to generate code for a 16-entry
  13795. register file. This option defines the '__ARC_RF16__' preprocessor
  13796. macro.
  13797. '-mbranch-index'
  13798. Enable use of 'bi' or 'bih' instructions to implement jump tables.
  13799. The following options are passed through to the assembler, and also
  13800. define preprocessor macro symbols.
  13801. '-mdsp-packa'
  13802. Passed down to the assembler to enable the DSP Pack A extensions.
  13803. Also sets the preprocessor symbol '__Xdsp_packa'. This option is
  13804. deprecated.
  13805. '-mdvbf'
  13806. Passed down to the assembler to enable the dual Viterbi butterfly
  13807. extension. Also sets the preprocessor symbol '__Xdvbf'. This
  13808. option is deprecated.
  13809. '-mlock'
  13810. Passed down to the assembler to enable the locked load/store
  13811. conditional extension. Also sets the preprocessor symbol
  13812. '__Xlock'.
  13813. '-mmac-d16'
  13814. Passed down to the assembler. Also sets the preprocessor symbol
  13815. '__Xxmac_d16'. This option is deprecated.
  13816. '-mmac-24'
  13817. Passed down to the assembler. Also sets the preprocessor symbol
  13818. '__Xxmac_24'. This option is deprecated.
  13819. '-mrtsc'
  13820. Passed down to the assembler to enable the 64-bit time-stamp
  13821. counter extension instruction. Also sets the preprocessor symbol
  13822. '__Xrtsc'. This option is deprecated.
  13823. '-mswape'
  13824. Passed down to the assembler to enable the swap byte ordering
  13825. extension instruction. Also sets the preprocessor symbol
  13826. '__Xswape'.
  13827. '-mtelephony'
  13828. Passed down to the assembler to enable dual- and single-operand
  13829. instructions for telephony. Also sets the preprocessor symbol
  13830. '__Xtelephony'. This option is deprecated.
  13831. '-mxy'
  13832. Passed down to the assembler to enable the XY memory extension.
  13833. Also sets the preprocessor symbol '__Xxy'.
  13834. The following options control how the assembly code is annotated:
  13835. '-misize'
  13836. Annotate assembler instructions with estimated addresses.
  13837. '-mannotate-align'
  13838. Explain what alignment considerations lead to the decision to make
  13839. an instruction short or long.
  13840. The following options are passed through to the linker:
  13841. '-marclinux'
  13842. Passed through to the linker, to specify use of the 'arclinux'
  13843. emulation. This option is enabled by default in tool chains built
  13844. for 'arc-linux-uclibc' and 'arceb-linux-uclibc' targets when
  13845. profiling is not requested.
  13846. '-marclinux_prof'
  13847. Passed through to the linker, to specify use of the 'arclinux_prof'
  13848. emulation. This option is enabled by default in tool chains built
  13849. for 'arc-linux-uclibc' and 'arceb-linux-uclibc' targets when
  13850. profiling is requested.
  13851. The following options control the semantics of generated code:
  13852. '-mlong-calls'
  13853. Generate calls as register indirect calls, thus providing access to
  13854. the full 32-bit address range.
  13855. '-mmedium-calls'
  13856. Don't use less than 25-bit addressing range for calls, which is the
  13857. offset available for an unconditional branch-and-link instruction.
  13858. Conditional execution of function calls is suppressed, to allow use
  13859. of the 25-bit range, rather than the 21-bit range with conditional
  13860. branch-and-link. This is the default for tool chains built for
  13861. 'arc-linux-uclibc' and 'arceb-linux-uclibc' targets.
  13862. '-G NUM'
  13863. Put definitions of externally-visible data in a small data section
  13864. if that data is no bigger than NUM bytes. The default value of NUM
  13865. is 4 for any ARC configuration, or 8 when we have double load/store
  13866. operations.
  13867. '-mno-sdata'
  13868. Do not generate sdata references. This is the default for tool
  13869. chains built for 'arc-linux-uclibc' and 'arceb-linux-uclibc'
  13870. targets.
  13871. '-mvolatile-cache'
  13872. Use ordinarily cached memory accesses for volatile references.
  13873. This is the default.
  13874. '-mno-volatile-cache'
  13875. Enable cache bypass for volatile references.
  13876. The following options fine tune code generation:
  13877. '-malign-call'
  13878. Do alignment optimizations for call instructions.
  13879. '-mauto-modify-reg'
  13880. Enable the use of pre/post modify with register displacement.
  13881. '-mbbit-peephole'
  13882. Enable bbit peephole2.
  13883. '-mno-brcc'
  13884. This option disables a target-specific pass in 'arc_reorg' to
  13885. generate compare-and-branch ('brCC') instructions. It has no
  13886. effect on generation of these instructions driven by the combiner
  13887. pass.
  13888. '-mcase-vector-pcrel'
  13889. Use PC-relative switch case tables to enable case table shortening.
  13890. This is the default for '-Os'.
  13891. '-mcompact-casesi'
  13892. Enable compact 'casesi' pattern. This is the default for '-Os',
  13893. and only available for ARCv1 cores. This option is deprecated.
  13894. '-mno-cond-exec'
  13895. Disable the ARCompact-specific pass to generate conditional
  13896. execution instructions.
  13897. Due to delay slot scheduling and interactions between operand
  13898. numbers, literal sizes, instruction lengths, and the support for
  13899. conditional execution, the target-independent pass to generate
  13900. conditional execution is often lacking, so the ARC port has kept a
  13901. special pass around that tries to find more conditional execution
  13902. generation opportunities after register allocation, branch
  13903. shortening, and delay slot scheduling have been done. This pass
  13904. generally, but not always, improves performance and code size, at
  13905. the cost of extra compilation time, which is why there is an option
  13906. to switch it off. If you have a problem with call instructions
  13907. exceeding their allowable offset range because they are
  13908. conditionalized, you should consider using '-mmedium-calls'
  13909. instead.
  13910. '-mearly-cbranchsi'
  13911. Enable pre-reload use of the 'cbranchsi' pattern.
  13912. '-mexpand-adddi'
  13913. Expand 'adddi3' and 'subdi3' at RTL generation time into 'add.f',
  13914. 'adc' etc. This option is deprecated.
  13915. '-mindexed-loads'
  13916. Enable the use of indexed loads. This can be problematic because
  13917. some optimizers then assume that indexed stores exist, which is not
  13918. the case.
  13919. '-mlra'
  13920. Enable Local Register Allocation. This is still experimental for
  13921. ARC, so by default the compiler uses standard reload (i.e.
  13922. '-mno-lra').
  13923. '-mlra-priority-none'
  13924. Don't indicate any priority for target registers.
  13925. '-mlra-priority-compact'
  13926. Indicate target register priority for r0..r3 / r12..r15.
  13927. '-mlra-priority-noncompact'
  13928. Reduce target register priority for r0..r3 / r12..r15.
  13929. '-mmillicode'
  13930. When optimizing for size (using '-Os'), prologues and epilogues
  13931. that have to save or restore a large number of registers are often
  13932. shortened by using call to a special function in libgcc; this is
  13933. referred to as a _millicode_ call. As these calls can pose
  13934. performance issues, and/or cause linking issues when linking in a
  13935. nonstandard way, this option is provided to turn on or off
  13936. millicode call generation.
  13937. '-mcode-density-frame'
  13938. This option enable the compiler to emit 'enter' and 'leave'
  13939. instructions. These instructions are only valid for CPUs with
  13940. code-density feature.
  13941. '-mmixed-code'
  13942. Tweak register allocation to help 16-bit instruction generation.
  13943. This generally has the effect of decreasing the average instruction
  13944. size while increasing the instruction count.
  13945. '-mq-class'
  13946. Ths option is deprecated. Enable 'q' instruction alternatives.
  13947. This is the default for '-Os'.
  13948. '-mRcq'
  13949. Enable 'Rcq' constraint handling. Most short code generation
  13950. depends on this. This is the default.
  13951. '-mRcw'
  13952. Enable 'Rcw' constraint handling. Most ccfsm condexec mostly
  13953. depends on this. This is the default.
  13954. '-msize-level=LEVEL'
  13955. Fine-tune size optimization with regards to instruction lengths and
  13956. alignment. The recognized values for LEVEL are:
  13957. '0'
  13958. No size optimization. This level is deprecated and treated
  13959. like '1'.
  13960. '1'
  13961. Short instructions are used opportunistically.
  13962. '2'
  13963. In addition, alignment of loops and of code after barriers are
  13964. dropped.
  13965. '3'
  13966. In addition, optional data alignment is dropped, and the
  13967. option 'Os' is enabled.
  13968. This defaults to '3' when '-Os' is in effect. Otherwise, the
  13969. behavior when this is not set is equivalent to level '1'.
  13970. '-mtune=CPU'
  13971. Set instruction scheduling parameters for CPU, overriding any
  13972. implied by '-mcpu='.
  13973. Supported values for CPU are
  13974. 'ARC600'
  13975. Tune for ARC600 CPU.
  13976. 'ARC601'
  13977. Tune for ARC601 CPU.
  13978. 'ARC700'
  13979. Tune for ARC700 CPU with standard multiplier block.
  13980. 'ARC700-xmac'
  13981. Tune for ARC700 CPU with XMAC block.
  13982. 'ARC725D'
  13983. Tune for ARC725D CPU.
  13984. 'ARC750D'
  13985. Tune for ARC750D CPU.
  13986. '-mmultcost=NUM'
  13987. Cost to assume for a multiply instruction, with '4' being equal to
  13988. a normal instruction.
  13989. '-munalign-prob-threshold=PROBABILITY'
  13990. Set probability threshold for unaligning branches. When tuning for
  13991. 'ARC700' and optimizing for speed, branches without filled delay
  13992. slot are preferably emitted unaligned and long, unless profiling
  13993. indicates that the probability for the branch to be taken is below
  13994. PROBABILITY. *Note Cross-profiling::. The default is
  13995. (REG_BR_PROB_BASE/2), i.e. 5000.
  13996. The following options are maintained for backward compatibility, but
  13997. are now deprecated and will be removed in a future release:
  13998. '-margonaut'
  13999. Obsolete FPX.
  14000. '-mbig-endian'
  14001. '-EB'
  14002. Compile code for big-endian targets. Use of these options is now
  14003. deprecated. Big-endian code is supported by configuring GCC to
  14004. build 'arceb-elf32' and 'arceb-linux-uclibc' targets, for which big
  14005. endian is the default.
  14006. '-mlittle-endian'
  14007. '-EL'
  14008. Compile code for little-endian targets. Use of these options is
  14009. now deprecated. Little-endian code is supported by configuring GCC
  14010. to build 'arc-elf32' and 'arc-linux-uclibc' targets, for which
  14011. little endian is the default.
  14012. '-mbarrel_shifter'
  14013. Replaced by '-mbarrel-shifter'.
  14014. '-mdpfp_compact'
  14015. Replaced by '-mdpfp-compact'.
  14016. '-mdpfp_fast'
  14017. Replaced by '-mdpfp-fast'.
  14018. '-mdsp_packa'
  14019. Replaced by '-mdsp-packa'.
  14020. '-mEA'
  14021. Replaced by '-mea'.
  14022. '-mmac_24'
  14023. Replaced by '-mmac-24'.
  14024. '-mmac_d16'
  14025. Replaced by '-mmac-d16'.
  14026. '-mspfp_compact'
  14027. Replaced by '-mspfp-compact'.
  14028. '-mspfp_fast'
  14029. Replaced by '-mspfp-fast'.
  14030. '-mtune=CPU'
  14031. Values 'arc600', 'arc601', 'arc700' and 'arc700-xmac' for CPU are
  14032. replaced by 'ARC600', 'ARC601', 'ARC700' and 'ARC700-xmac'
  14033. respectively.
  14034. '-multcost=NUM'
  14035. Replaced by '-mmultcost'.
  14036. 
  14037. File: gcc.info, Node: ARM Options, Next: AVR Options, Prev: ARC Options, Up: Submodel Options
  14038. 3.19.5 ARM Options
  14039. ------------------
  14040. These '-m' options are defined for the ARM port:
  14041. '-mabi=NAME'
  14042. Generate code for the specified ABI. Permissible values are:
  14043. 'apcs-gnu', 'atpcs', 'aapcs', 'aapcs-linux' and 'iwmmxt'.
  14044. '-mapcs-frame'
  14045. Generate a stack frame that is compliant with the ARM Procedure
  14046. Call Standard for all functions, even if this is not strictly
  14047. necessary for correct execution of the code. Specifying
  14048. '-fomit-frame-pointer' with this option causes the stack frames not
  14049. to be generated for leaf functions. The default is
  14050. '-mno-apcs-frame'. This option is deprecated.
  14051. '-mapcs'
  14052. This is a synonym for '-mapcs-frame' and is deprecated.
  14053. '-mthumb-interwork'
  14054. Generate code that supports calling between the ARM and Thumb
  14055. instruction sets. Without this option, on pre-v5 architectures,
  14056. the two instruction sets cannot be reliably used inside one
  14057. program. The default is '-mno-thumb-interwork', since slightly
  14058. larger code is generated when '-mthumb-interwork' is specified. In
  14059. AAPCS configurations this option is meaningless.
  14060. '-mno-sched-prolog'
  14061. Prevent the reordering of instructions in the function prologue, or
  14062. the merging of those instruction with the instructions in the
  14063. function's body. This means that all functions start with a
  14064. recognizable set of instructions (or in fact one of a choice from a
  14065. small set of different function prologues), and this information
  14066. can be used to locate the start of functions inside an executable
  14067. piece of code. The default is '-msched-prolog'.
  14068. '-mfloat-abi=NAME'
  14069. Specifies which floating-point ABI to use. Permissible values are:
  14070. 'soft', 'softfp' and 'hard'.
  14071. Specifying 'soft' causes GCC to generate output containing library
  14072. calls for floating-point operations. 'softfp' allows the
  14073. generation of code using hardware floating-point instructions, but
  14074. still uses the soft-float calling conventions. 'hard' allows
  14075. generation of floating-point instructions and uses FPU-specific
  14076. calling conventions.
  14077. The default depends on the specific target configuration. Note
  14078. that the hard-float and soft-float ABIs are not link-compatible;
  14079. you must compile your entire program with the same ABI, and link
  14080. with a compatible set of libraries.
  14081. '-mgeneral-regs-only'
  14082. Generate code which uses only the general-purpose registers. This
  14083. will prevent the compiler from using floating-point and Advanced
  14084. SIMD registers but will not impose any restrictions on the
  14085. assembler.
  14086. '-mlittle-endian'
  14087. Generate code for a processor running in little-endian mode. This
  14088. is the default for all standard configurations.
  14089. '-mbig-endian'
  14090. Generate code for a processor running in big-endian mode; the
  14091. default is to compile code for a little-endian processor.
  14092. '-mbe8'
  14093. '-mbe32'
  14094. When linking a big-endian image select between BE8 and BE32
  14095. formats. The option has no effect for little-endian images and is
  14096. ignored. The default is dependent on the selected target
  14097. architecture. For ARMv6 and later architectures the default is
  14098. BE8, for older architectures the default is BE32. BE32 format has
  14099. been deprecated by ARM.
  14100. '-march=NAME[+extension...]'
  14101. This specifies the name of the target ARM architecture. GCC uses
  14102. this name to determine what kind of instructions it can emit when
  14103. generating assembly code. This option can be used in conjunction
  14104. with or instead of the '-mcpu=' option.
  14105. Permissible names are: 'armv4t', 'armv5t', 'armv5te', 'armv6',
  14106. 'armv6j', 'armv6k', 'armv6kz', 'armv6t2', 'armv6z', 'armv6zk',
  14107. 'armv7', 'armv7-a', 'armv7ve', 'armv8-a', 'armv8.1-a', 'armv8.2-a',
  14108. 'armv8.3-a', 'armv8.4-a', 'armv8.5-a', 'armv8.6-a', 'armv7-r',
  14109. 'armv8-r', 'armv6-m', 'armv6s-m', 'armv7-m', 'armv7e-m',
  14110. 'armv8-m.base', 'armv8-m.main', 'armv8.1-m.main', 'iwmmxt' and
  14111. 'iwmmxt2'.
  14112. Additionally, the following architectures, which lack support for
  14113. the Thumb execution state, are recognized but support is
  14114. deprecated: 'armv4'.
  14115. Many of the architectures support extensions. These can be added
  14116. by appending '+EXTENSION' to the architecture name. Extension
  14117. options are processed in order and capabilities accumulate. An
  14118. extension will also enable any necessary base extensions upon which
  14119. it depends. For example, the '+crypto' extension will always
  14120. enable the '+simd' extension. The exception to the additive
  14121. construction is for extensions that are prefixed with '+no...':
  14122. these extensions disable the specified option and any other
  14123. extensions that may depend on the presence of that extension.
  14124. For example, '-march=armv7-a+simd+nofp+vfpv4' is equivalent to
  14125. writing '-march=armv7-a+vfpv4' since the '+simd' option is entirely
  14126. disabled by the '+nofp' option that follows it.
  14127. Most extension names are generically named, but have an effect that
  14128. is dependent upon the architecture to which it is applied. For
  14129. example, the '+simd' option can be applied to both 'armv7-a' and
  14130. 'armv8-a' architectures, but will enable the original ARMv7-A
  14131. Advanced SIMD (Neon) extensions for 'armv7-a' and the ARMv8-A
  14132. variant for 'armv8-a'.
  14133. The table below lists the supported extensions for each
  14134. architecture. Architectures not mentioned do not support any
  14135. extensions.
  14136. 'armv5te'
  14137. 'armv6'
  14138. 'armv6j'
  14139. 'armv6k'
  14140. 'armv6kz'
  14141. 'armv6t2'
  14142. 'armv6z'
  14143. 'armv6zk'
  14144. '+fp'
  14145. The VFPv2 floating-point instructions. The extension
  14146. '+vfpv2' can be used as an alias for this extension.
  14147. '+nofp'
  14148. Disable the floating-point instructions.
  14149. 'armv7'
  14150. The common subset of the ARMv7-A, ARMv7-R and ARMv7-M
  14151. architectures.
  14152. '+fp'
  14153. The VFPv3 floating-point instructions, with 16
  14154. double-precision registers. The extension '+vfpv3-d16'
  14155. can be used as an alias for this extension. Note that
  14156. floating-point is not supported by the base ARMv7-M
  14157. architecture, but is compatible with both the ARMv7-A and
  14158. ARMv7-R architectures.
  14159. '+nofp'
  14160. Disable the floating-point instructions.
  14161. 'armv7-a'
  14162. '+mp'
  14163. The multiprocessing extension.
  14164. '+sec'
  14165. The security extension.
  14166. '+fp'
  14167. The VFPv3 floating-point instructions, with 16
  14168. double-precision registers. The extension '+vfpv3-d16'
  14169. can be used as an alias for this extension.
  14170. '+simd'
  14171. The Advanced SIMD (Neon) v1 and the VFPv3 floating-point
  14172. instructions. The extensions '+neon' and '+neon-vfpv3'
  14173. can be used as aliases for this extension.
  14174. '+vfpv3'
  14175. The VFPv3 floating-point instructions, with 32
  14176. double-precision registers.
  14177. '+vfpv3-d16-fp16'
  14178. The VFPv3 floating-point instructions, with 16
  14179. double-precision registers and the half-precision
  14180. floating-point conversion operations.
  14181. '+vfpv3-fp16'
  14182. The VFPv3 floating-point instructions, with 32
  14183. double-precision registers and the half-precision
  14184. floating-point conversion operations.
  14185. '+vfpv4-d16'
  14186. The VFPv4 floating-point instructions, with 16
  14187. double-precision registers.
  14188. '+vfpv4'
  14189. The VFPv4 floating-point instructions, with 32
  14190. double-precision registers.
  14191. '+neon-fp16'
  14192. The Advanced SIMD (Neon) v1 and the VFPv3 floating-point
  14193. instructions, with the half-precision floating-point
  14194. conversion operations.
  14195. '+neon-vfpv4'
  14196. The Advanced SIMD (Neon) v2 and the VFPv4 floating-point
  14197. instructions.
  14198. '+nosimd'
  14199. Disable the Advanced SIMD instructions (does not disable
  14200. floating point).
  14201. '+nofp'
  14202. Disable the floating-point and Advanced SIMD
  14203. instructions.
  14204. 'armv7ve'
  14205. The extended version of the ARMv7-A architecture with support
  14206. for virtualization.
  14207. '+fp'
  14208. The VFPv4 floating-point instructions, with 16
  14209. double-precision registers. The extension '+vfpv4-d16'
  14210. can be used as an alias for this extension.
  14211. '+simd'
  14212. The Advanced SIMD (Neon) v2 and the VFPv4 floating-point
  14213. instructions. The extension '+neon-vfpv4' can be used as
  14214. an alias for this extension.
  14215. '+vfpv3-d16'
  14216. The VFPv3 floating-point instructions, with 16
  14217. double-precision registers.
  14218. '+vfpv3'
  14219. The VFPv3 floating-point instructions, with 32
  14220. double-precision registers.
  14221. '+vfpv3-d16-fp16'
  14222. The VFPv3 floating-point instructions, with 16
  14223. double-precision registers and the half-precision
  14224. floating-point conversion operations.
  14225. '+vfpv3-fp16'
  14226. The VFPv3 floating-point instructions, with 32
  14227. double-precision registers and the half-precision
  14228. floating-point conversion operations.
  14229. '+vfpv4-d16'
  14230. The VFPv4 floating-point instructions, with 16
  14231. double-precision registers.
  14232. '+vfpv4'
  14233. The VFPv4 floating-point instructions, with 32
  14234. double-precision registers.
  14235. '+neon'
  14236. The Advanced SIMD (Neon) v1 and the VFPv3 floating-point
  14237. instructions. The extension '+neon-vfpv3' can be used as
  14238. an alias for this extension.
  14239. '+neon-fp16'
  14240. The Advanced SIMD (Neon) v1 and the VFPv3 floating-point
  14241. instructions, with the half-precision floating-point
  14242. conversion operations.
  14243. '+nosimd'
  14244. Disable the Advanced SIMD instructions (does not disable
  14245. floating point).
  14246. '+nofp'
  14247. Disable the floating-point and Advanced SIMD
  14248. instructions.
  14249. 'armv8-a'
  14250. '+crc'
  14251. The Cyclic Redundancy Check (CRC) instructions.
  14252. '+simd'
  14253. The ARMv8-A Advanced SIMD and floating-point
  14254. instructions.
  14255. '+crypto'
  14256. The cryptographic instructions.
  14257. '+nocrypto'
  14258. Disable the cryptographic instructions.
  14259. '+nofp'
  14260. Disable the floating-point, Advanced SIMD and
  14261. cryptographic instructions.
  14262. '+sb'
  14263. Speculation Barrier Instruction.
  14264. '+predres'
  14265. Execution and Data Prediction Restriction Instructions.
  14266. 'armv8.1-a'
  14267. '+simd'
  14268. The ARMv8.1-A Advanced SIMD and floating-point
  14269. instructions.
  14270. '+crypto'
  14271. The cryptographic instructions. This also enables the
  14272. Advanced SIMD and floating-point instructions.
  14273. '+nocrypto'
  14274. Disable the cryptographic instructions.
  14275. '+nofp'
  14276. Disable the floating-point, Advanced SIMD and
  14277. cryptographic instructions.
  14278. '+sb'
  14279. Speculation Barrier Instruction.
  14280. '+predres'
  14281. Execution and Data Prediction Restriction Instructions.
  14282. 'armv8.2-a'
  14283. 'armv8.3-a'
  14284. '+fp16'
  14285. The half-precision floating-point data processing
  14286. instructions. This also enables the Advanced SIMD and
  14287. floating-point instructions.
  14288. '+fp16fml'
  14289. The half-precision floating-point fmla extension. This
  14290. also enables the half-precision floating-point extension
  14291. and Advanced SIMD and floating-point instructions.
  14292. '+simd'
  14293. The ARMv8.1-A Advanced SIMD and floating-point
  14294. instructions.
  14295. '+crypto'
  14296. The cryptographic instructions. This also enables the
  14297. Advanced SIMD and floating-point instructions.
  14298. '+dotprod'
  14299. Enable the Dot Product extension. This also enables
  14300. Advanced SIMD instructions.
  14301. '+nocrypto'
  14302. Disable the cryptographic extension.
  14303. '+nofp'
  14304. Disable the floating-point, Advanced SIMD and
  14305. cryptographic instructions.
  14306. '+sb'
  14307. Speculation Barrier Instruction.
  14308. '+predres'
  14309. Execution and Data Prediction Restriction Instructions.
  14310. '+i8mm'
  14311. 8-bit Integer Matrix Multiply instructions. This also
  14312. enables Advanced SIMD and floating-point instructions.
  14313. '+bf16'
  14314. Brain half-precision floating-point instructions. This
  14315. also enables Advanced SIMD and floating-point
  14316. instructions.
  14317. 'armv8.4-a'
  14318. '+fp16'
  14319. The half-precision floating-point data processing
  14320. instructions. This also enables the Advanced SIMD and
  14321. floating-point instructions as well as the Dot Product
  14322. extension and the half-precision floating-point fmla
  14323. extension.
  14324. '+simd'
  14325. The ARMv8.3-A Advanced SIMD and floating-point
  14326. instructions as well as the Dot Product extension.
  14327. '+crypto'
  14328. The cryptographic instructions. This also enables the
  14329. Advanced SIMD and floating-point instructions as well as
  14330. the Dot Product extension.
  14331. '+nocrypto'
  14332. Disable the cryptographic extension.
  14333. '+nofp'
  14334. Disable the floating-point, Advanced SIMD and
  14335. cryptographic instructions.
  14336. '+sb'
  14337. Speculation Barrier Instruction.
  14338. '+predres'
  14339. Execution and Data Prediction Restriction Instructions.
  14340. '+i8mm'
  14341. 8-bit Integer Matrix Multiply instructions. This also
  14342. enables Advanced SIMD and floating-point instructions.
  14343. '+bf16'
  14344. Brain half-precision floating-point instructions. This
  14345. also enables Advanced SIMD and floating-point
  14346. instructions.
  14347. 'armv8.5-a'
  14348. '+fp16'
  14349. The half-precision floating-point data processing
  14350. instructions. This also enables the Advanced SIMD and
  14351. floating-point instructions as well as the Dot Product
  14352. extension and the half-precision floating-point fmla
  14353. extension.
  14354. '+simd'
  14355. The ARMv8.3-A Advanced SIMD and floating-point
  14356. instructions as well as the Dot Product extension.
  14357. '+crypto'
  14358. The cryptographic instructions. This also enables the
  14359. Advanced SIMD and floating-point instructions as well as
  14360. the Dot Product extension.
  14361. '+nocrypto'
  14362. Disable the cryptographic extension.
  14363. '+nofp'
  14364. Disable the floating-point, Advanced SIMD and
  14365. cryptographic instructions.
  14366. '+i8mm'
  14367. 8-bit Integer Matrix Multiply instructions. This also
  14368. enables Advanced SIMD and floating-point instructions.
  14369. '+bf16'
  14370. Brain half-precision floating-point instructions. This
  14371. also enables Advanced SIMD and floating-point
  14372. instructions.
  14373. 'armv8.6-a'
  14374. '+fp16'
  14375. The half-precision floating-point data processing
  14376. instructions. This also enables the Advanced SIMD and
  14377. floating-point instructions as well as the Dot Product
  14378. extension and the half-precision floating-point fmla
  14379. extension.
  14380. '+simd'
  14381. The ARMv8.3-A Advanced SIMD and floating-point
  14382. instructions as well as the Dot Product extension.
  14383. '+crypto'
  14384. The cryptographic instructions. This also enables the
  14385. Advanced SIMD and floating-point instructions as well as
  14386. the Dot Product extension.
  14387. '+nocrypto'
  14388. Disable the cryptographic extension.
  14389. '+nofp'
  14390. Disable the floating-point, Advanced SIMD and
  14391. cryptographic instructions.
  14392. '+i8mm'
  14393. 8-bit Integer Matrix Multiply instructions. This also
  14394. enables Advanced SIMD and floating-point instructions.
  14395. '+bf16'
  14396. Brain half-precision floating-point instructions. This
  14397. also enables Advanced SIMD and floating-point
  14398. instructions.
  14399. 'armv7-r'
  14400. '+fp.sp'
  14401. The single-precision VFPv3 floating-point instructions.
  14402. The extension '+vfpv3xd' can be used as an alias for this
  14403. extension.
  14404. '+fp'
  14405. The VFPv3 floating-point instructions with 16
  14406. double-precision registers. The extension +vfpv3-d16 can
  14407. be used as an alias for this extension.
  14408. '+vfpv3xd-d16-fp16'
  14409. The single-precision VFPv3 floating-point instructions
  14410. with 16 double-precision registers and the half-precision
  14411. floating-point conversion operations.
  14412. '+vfpv3-d16-fp16'
  14413. The VFPv3 floating-point instructions with 16
  14414. double-precision registers and the half-precision
  14415. floating-point conversion operations.
  14416. '+nofp'
  14417. Disable the floating-point extension.
  14418. '+idiv'
  14419. The ARM-state integer division instructions.
  14420. '+noidiv'
  14421. Disable the ARM-state integer division extension.
  14422. 'armv7e-m'
  14423. '+fp'
  14424. The single-precision VFPv4 floating-point instructions.
  14425. '+fpv5'
  14426. The single-precision FPv5 floating-point instructions.
  14427. '+fp.dp'
  14428. The single- and double-precision FPv5 floating-point
  14429. instructions.
  14430. '+nofp'
  14431. Disable the floating-point extensions.
  14432. 'armv8.1-m.main'
  14433. '+dsp'
  14434. The DSP instructions.
  14435. '+mve'
  14436. The M-Profile Vector Extension (MVE) integer
  14437. instructions.
  14438. '+mve.fp'
  14439. The M-Profile Vector Extension (MVE) integer and single
  14440. precision floating-point instructions.
  14441. '+fp'
  14442. The single-precision floating-point instructions.
  14443. '+fp.dp'
  14444. The single- and double-precision floating-point
  14445. instructions.
  14446. '+nofp'
  14447. Disable the floating-point extension.
  14448. '+cdecp0, +cdecp1, ... , +cdecp7'
  14449. Enable the Custom Datapath Extension (CDE) on selected
  14450. coprocessors according to the numbers given in the
  14451. options in the range 0 to 7.
  14452. 'armv8-m.main'
  14453. '+dsp'
  14454. The DSP instructions.
  14455. '+nodsp'
  14456. Disable the DSP extension.
  14457. '+fp'
  14458. The single-precision floating-point instructions.
  14459. '+fp.dp'
  14460. The single- and double-precision floating-point
  14461. instructions.
  14462. '+nofp'
  14463. Disable the floating-point extension.
  14464. '+cdecp0, +cdecp1, ... , +cdecp7'
  14465. Enable the Custom Datapath Extension (CDE) on selected
  14466. coprocessors according to the numbers given in the
  14467. options in the range 0 to 7.
  14468. 'armv8-r'
  14469. '+crc'
  14470. The Cyclic Redundancy Check (CRC) instructions.
  14471. '+fp.sp'
  14472. The single-precision FPv5 floating-point instructions.
  14473. '+simd'
  14474. The ARMv8-A Advanced SIMD and floating-point
  14475. instructions.
  14476. '+crypto'
  14477. The cryptographic instructions.
  14478. '+nocrypto'
  14479. Disable the cryptographic instructions.
  14480. '+nofp'
  14481. Disable the floating-point, Advanced SIMD and
  14482. cryptographic instructions.
  14483. '-march=native' causes the compiler to auto-detect the architecture
  14484. of the build computer. At present, this feature is only supported
  14485. on GNU/Linux, and not all architectures are recognized. If the
  14486. auto-detect is unsuccessful the option has no effect.
  14487. '-mtune=NAME'
  14488. This option specifies the name of the target ARM processor for
  14489. which GCC should tune the performance of the code. For some ARM
  14490. implementations better performance can be obtained by using this
  14491. option. Permissible names are: 'arm7tdmi', 'arm7tdmi-s',
  14492. 'arm710t', 'arm720t', 'arm740t', 'strongarm', 'strongarm110',
  14493. 'strongarm1100', 0'strongarm1110', 'arm8', 'arm810', 'arm9',
  14494. 'arm9e', 'arm920', 'arm920t', 'arm922t', 'arm946e-s', 'arm966e-s',
  14495. 'arm968e-s', 'arm926ej-s', 'arm940t', 'arm9tdmi', 'arm10tdmi',
  14496. 'arm1020t', 'arm1026ej-s', 'arm10e', 'arm1020e', 'arm1022e',
  14497. 'arm1136j-s', 'arm1136jf-s', 'mpcore', 'mpcorenovfp',
  14498. 'arm1156t2-s', 'arm1156t2f-s', 'arm1176jz-s', 'arm1176jzf-s',
  14499. 'generic-armv7-a', 'cortex-a5', 'cortex-a7', 'cortex-a8',
  14500. 'cortex-a9', 'cortex-a12', 'cortex-a15', 'cortex-a17',
  14501. 'cortex-a32', 'cortex-a35', 'cortex-a53', 'cortex-a55',
  14502. 'cortex-a57', 'cortex-a72', 'cortex-a73', 'cortex-a75',
  14503. 'cortex-a76', 'cortex-a76ae', 'cortex-a77', 'ares', 'cortex-r4',
  14504. 'cortex-r4f', 'cortex-r5', 'cortex-r7', 'cortex-r8', 'cortex-r52',
  14505. 'cortex-m0', 'cortex-m0plus', 'cortex-m1', 'cortex-m3',
  14506. 'cortex-m4', 'cortex-m7', 'cortex-m23', 'cortex-m33',
  14507. 'cortex-m35p', 'cortex-m55', 'cortex-m1.small-multiply',
  14508. 'cortex-m0.small-multiply', 'cortex-m0plus.small-multiply',
  14509. 'exynos-m1', 'marvell-pj4', 'neoverse-n1', 'xscale', 'iwmmxt',
  14510. 'iwmmxt2', 'ep9312', 'fa526', 'fa626', 'fa606te', 'fa626te',
  14511. 'fmp626', 'fa726te', 'xgene1'.
  14512. Additionally, this option can specify that GCC should tune the
  14513. performance of the code for a big.LITTLE system. Permissible names
  14514. are: 'cortex-a15.cortex-a7', 'cortex-a17.cortex-a7',
  14515. 'cortex-a57.cortex-a53', 'cortex-a72.cortex-a53',
  14516. 'cortex-a72.cortex-a35', 'cortex-a73.cortex-a53',
  14517. 'cortex-a75.cortex-a55', 'cortex-a76.cortex-a55'.
  14518. '-mtune=generic-ARCH' specifies that GCC should tune the
  14519. performance for a blend of processors within architecture ARCH.
  14520. The aim is to generate code that run well on the current most
  14521. popular processors, balancing between optimizations that benefit
  14522. some CPUs in the range, and avoiding performance pitfalls of other
  14523. CPUs. The effects of this option may change in future GCC versions
  14524. as CPU models come and go.
  14525. '-mtune' permits the same extension options as '-mcpu', but the
  14526. extension options do not affect the tuning of the generated code.
  14527. '-mtune=native' causes the compiler to auto-detect the CPU of the
  14528. build computer. At present, this feature is only supported on
  14529. GNU/Linux, and not all architectures are recognized. If the
  14530. auto-detect is unsuccessful the option has no effect.
  14531. '-mcpu=NAME[+extension...]'
  14532. This specifies the name of the target ARM processor. GCC uses this
  14533. name to derive the name of the target ARM architecture (as if
  14534. specified by '-march') and the ARM processor type for which to tune
  14535. for performance (as if specified by '-mtune'). Where this option
  14536. is used in conjunction with '-march' or '-mtune', those options
  14537. take precedence over the appropriate part of this option.
  14538. Many of the supported CPUs implement optional architectural
  14539. extensions. Where this is so the architectural extensions are
  14540. normally enabled by default. If implementations that lack the
  14541. extension exist, then the extension syntax can be used to disable
  14542. those extensions that have been omitted. For floating-point and
  14543. Advanced SIMD (Neon) instructions, the settings of the options
  14544. '-mfloat-abi' and '-mfpu' must also be considered: floating-point
  14545. and Advanced SIMD instructions will only be used if '-mfloat-abi'
  14546. is not set to 'soft'; and any setting of '-mfpu' other than 'auto'
  14547. will override the available floating-point and SIMD extension
  14548. instructions.
  14549. For example, 'cortex-a9' can be found in three major
  14550. configurations: integer only, with just a floating-point unit or
  14551. with floating-point and Advanced SIMD. The default is to enable all
  14552. the instructions, but the extensions '+nosimd' and '+nofp' can be
  14553. used to disable just the SIMD or both the SIMD and floating-point
  14554. instructions respectively.
  14555. Permissible names for this option are the same as those for
  14556. '-mtune'.
  14557. The following extension options are common to the listed CPUs:
  14558. '+nodsp'
  14559. Disable the DSP instructions on 'cortex-m33', 'cortex-m35p'.
  14560. '+nofp'
  14561. Disables the floating-point instructions on 'arm9e',
  14562. 'arm946e-s', 'arm966e-s', 'arm968e-s', 'arm10e', 'arm1020e',
  14563. 'arm1022e', 'arm926ej-s', 'arm1026ej-s', 'cortex-r5',
  14564. 'cortex-r7', 'cortex-r8', 'cortex-m4', 'cortex-m7',
  14565. 'cortex-m33' and 'cortex-m35p'. Disables the floating-point
  14566. and SIMD instructions on 'generic-armv7-a', 'cortex-a5',
  14567. 'cortex-a7', 'cortex-a8', 'cortex-a9', 'cortex-a12',
  14568. 'cortex-a15', 'cortex-a17', 'cortex-a15.cortex-a7',
  14569. 'cortex-a17.cortex-a7', 'cortex-a32', 'cortex-a35',
  14570. 'cortex-a53' and 'cortex-a55'.
  14571. '+nofp.dp'
  14572. Disables the double-precision component of the floating-point
  14573. instructions on 'cortex-r5', 'cortex-r7', 'cortex-r8',
  14574. 'cortex-r52' and 'cortex-m7'.
  14575. '+nosimd'
  14576. Disables the SIMD (but not floating-point) instructions on
  14577. 'generic-armv7-a', 'cortex-a5', 'cortex-a7' and 'cortex-a9'.
  14578. '+crypto'
  14579. Enables the cryptographic instructions on 'cortex-a32',
  14580. 'cortex-a35', 'cortex-a53', 'cortex-a55', 'cortex-a57',
  14581. 'cortex-a72', 'cortex-a73', 'cortex-a75', 'exynos-m1',
  14582. 'xgene1', 'cortex-a57.cortex-a53', 'cortex-a72.cortex-a53',
  14583. 'cortex-a73.cortex-a35', 'cortex-a73.cortex-a53' and
  14584. 'cortex-a75.cortex-a55'.
  14585. Additionally the 'generic-armv7-a' pseudo target defaults to VFPv3
  14586. with 16 double-precision registers. It supports the following
  14587. extension options: 'mp', 'sec', 'vfpv3-d16', 'vfpv3',
  14588. 'vfpv3-d16-fp16', 'vfpv3-fp16', 'vfpv4-d16', 'vfpv4', 'neon',
  14589. 'neon-vfpv3', 'neon-fp16', 'neon-vfpv4'. The meanings are the same
  14590. as for the extensions to '-march=armv7-a'.
  14591. '-mcpu=generic-ARCH' is also permissible, and is equivalent to
  14592. '-march=ARCH -mtune=generic-ARCH'. See '-mtune' for more
  14593. information.
  14594. '-mcpu=native' causes the compiler to auto-detect the CPU of the
  14595. build computer. At present, this feature is only supported on
  14596. GNU/Linux, and not all architectures are recognized. If the
  14597. auto-detect is unsuccessful the option has no effect.
  14598. '-mfpu=NAME'
  14599. This specifies what floating-point hardware (or hardware emulation)
  14600. is available on the target. Permissible names are: 'auto',
  14601. 'vfpv2', 'vfpv3', 'vfpv3-fp16', 'vfpv3-d16', 'vfpv3-d16-fp16',
  14602. 'vfpv3xd', 'vfpv3xd-fp16', 'neon-vfpv3', 'neon-fp16', 'vfpv4',
  14603. 'vfpv4-d16', 'fpv4-sp-d16', 'neon-vfpv4', 'fpv5-d16',
  14604. 'fpv5-sp-d16', 'fp-armv8', 'neon-fp-armv8' and
  14605. 'crypto-neon-fp-armv8'. Note that 'neon' is an alias for
  14606. 'neon-vfpv3' and 'vfp' is an alias for 'vfpv2'.
  14607. The setting 'auto' is the default and is special. It causes the
  14608. compiler to select the floating-point and Advanced SIMD
  14609. instructions based on the settings of '-mcpu' and '-march'.
  14610. If the selected floating-point hardware includes the NEON extension
  14611. (e.g. '-mfpu=neon'), note that floating-point operations are not
  14612. generated by GCC's auto-vectorization pass unless
  14613. '-funsafe-math-optimizations' is also specified. This is because
  14614. NEON hardware does not fully implement the IEEE 754 standard for
  14615. floating-point arithmetic (in particular denormal values are
  14616. treated as zero), so the use of NEON instructions may lead to a
  14617. loss of precision.
  14618. You can also set the fpu name at function level by using the
  14619. 'target("fpu=")' function attributes (*note ARM Function
  14620. Attributes::) or pragmas (*note Function Specific Option
  14621. Pragmas::).
  14622. '-mfp16-format=NAME'
  14623. Specify the format of the '__fp16' half-precision floating-point
  14624. type. Permissible names are 'none', 'ieee', and 'alternative'; the
  14625. default is 'none', in which case the '__fp16' type is not defined.
  14626. *Note Half-Precision::, for more information.
  14627. '-mstructure-size-boundary=N'
  14628. The sizes of all structures and unions are rounded up to a multiple
  14629. of the number of bits set by this option. Permissible values are
  14630. 8, 32 and 64. The default value varies for different toolchains.
  14631. For the COFF targeted toolchain the default value is 8. A value of
  14632. 64 is only allowed if the underlying ABI supports it.
  14633. Specifying a larger number can produce faster, more efficient code,
  14634. but can also increase the size of the program. Different values
  14635. are potentially incompatible. Code compiled with one value cannot
  14636. necessarily expect to work with code or libraries compiled with
  14637. another value, if they exchange information using structures or
  14638. unions.
  14639. This option is deprecated.
  14640. '-mabort-on-noreturn'
  14641. Generate a call to the function 'abort' at the end of a 'noreturn'
  14642. function. It is executed if the function tries to return.
  14643. '-mlong-calls'
  14644. '-mno-long-calls'
  14645. Tells the compiler to perform function calls by first loading the
  14646. address of the function into a register and then performing a
  14647. subroutine call on this register. This switch is needed if the
  14648. target function lies outside of the 64-megabyte addressing range of
  14649. the offset-based version of subroutine call instruction.
  14650. Even if this switch is enabled, not all function calls are turned
  14651. into long calls. The heuristic is that static functions, functions
  14652. that have the 'short_call' attribute, functions that are inside the
  14653. scope of a '#pragma no_long_calls' directive, and functions whose
  14654. definitions have already been compiled within the current
  14655. compilation unit are not turned into long calls. The exceptions to
  14656. this rule are that weak function definitions, functions with the
  14657. 'long_call' attribute or the 'section' attribute, and functions
  14658. that are within the scope of a '#pragma long_calls' directive are
  14659. always turned into long calls.
  14660. This feature is not enabled by default. Specifying
  14661. '-mno-long-calls' restores the default behavior, as does placing
  14662. the function calls within the scope of a '#pragma long_calls_off'
  14663. directive. Note these switches have no effect on how the compiler
  14664. generates code to handle function calls via function pointers.
  14665. '-msingle-pic-base'
  14666. Treat the register used for PIC addressing as read-only, rather
  14667. than loading it in the prologue for each function. The runtime
  14668. system is responsible for initializing this register with an
  14669. appropriate value before execution begins.
  14670. '-mpic-register=REG'
  14671. Specify the register to be used for PIC addressing. For standard
  14672. PIC base case, the default is any suitable register determined by
  14673. compiler. For single PIC base case, the default is 'R9' if target
  14674. is EABI based or stack-checking is enabled, otherwise the default
  14675. is 'R10'.
  14676. '-mpic-data-is-text-relative'
  14677. Assume that the displacement between the text and data segments is
  14678. fixed at static link time. This permits using PC-relative
  14679. addressing operations to access data known to be in the data
  14680. segment. For non-VxWorks RTP targets, this option is enabled by
  14681. default. When disabled on such targets, it will enable
  14682. '-msingle-pic-base' by default.
  14683. '-mpoke-function-name'
  14684. Write the name of each function into the text section, directly
  14685. preceding the function prologue. The generated code is similar to
  14686. this:
  14687. t0
  14688. .ascii "arm_poke_function_name", 0
  14689. .align
  14690. t1
  14691. .word 0xff000000 + (t1 - t0)
  14692. arm_poke_function_name
  14693. mov ip, sp
  14694. stmfd sp!, {fp, ip, lr, pc}
  14695. sub fp, ip, #4
  14696. When performing a stack backtrace, code can inspect the value of
  14697. 'pc' stored at 'fp + 0'. If the trace function then looks at
  14698. location 'pc - 12' and the top 8 bits are set, then we know that
  14699. there is a function name embedded immediately preceding this
  14700. location and has length '((pc[-3]) & 0xff000000)'.
  14701. '-mthumb'
  14702. '-marm'
  14703. Select between generating code that executes in ARM and Thumb
  14704. states. The default for most configurations is to generate code
  14705. that executes in ARM state, but the default can be changed by
  14706. configuring GCC with the '--with-mode='STATE configure option.
  14707. You can also override the ARM and Thumb mode for each function by
  14708. using the 'target("thumb")' and 'target("arm")' function attributes
  14709. (*note ARM Function Attributes::) or pragmas (*note Function
  14710. Specific Option Pragmas::).
  14711. '-mflip-thumb'
  14712. Switch ARM/Thumb modes on alternating functions. This option is
  14713. provided for regression testing of mixed Thumb/ARM code generation,
  14714. and is not intended for ordinary use in compiling code.
  14715. '-mtpcs-frame'
  14716. Generate a stack frame that is compliant with the Thumb Procedure
  14717. Call Standard for all non-leaf functions. (A leaf function is one
  14718. that does not call any other functions.) The default is
  14719. '-mno-tpcs-frame'.
  14720. '-mtpcs-leaf-frame'
  14721. Generate a stack frame that is compliant with the Thumb Procedure
  14722. Call Standard for all leaf functions. (A leaf function is one that
  14723. does not call any other functions.) The default is
  14724. '-mno-apcs-leaf-frame'.
  14725. '-mcallee-super-interworking'
  14726. Gives all externally visible functions in the file being compiled
  14727. an ARM instruction set header which switches to Thumb mode before
  14728. executing the rest of the function. This allows these functions to
  14729. be called from non-interworking code. This option is not valid in
  14730. AAPCS configurations because interworking is enabled by default.
  14731. '-mcaller-super-interworking'
  14732. Allows calls via function pointers (including virtual functions) to
  14733. execute correctly regardless of whether the target code has been
  14734. compiled for interworking or not. There is a small overhead in the
  14735. cost of executing a function pointer if this option is enabled.
  14736. This option is not valid in AAPCS configurations because
  14737. interworking is enabled by default.
  14738. '-mtp=NAME'
  14739. Specify the access model for the thread local storage pointer. The
  14740. valid models are 'soft', which generates calls to
  14741. '__aeabi_read_tp', 'cp15', which fetches the thread pointer from
  14742. 'cp15' directly (supported in the arm6k architecture), and 'auto',
  14743. which uses the best available method for the selected processor.
  14744. The default setting is 'auto'.
  14745. '-mtls-dialect=DIALECT'
  14746. Specify the dialect to use for accessing thread local storage. Two
  14747. DIALECTs are supported--'gnu' and 'gnu2'. The 'gnu' dialect
  14748. selects the original GNU scheme for supporting local and global
  14749. dynamic TLS models. The 'gnu2' dialect selects the GNU descriptor
  14750. scheme, which provides better performance for shared libraries.
  14751. The GNU descriptor scheme is compatible with the original scheme,
  14752. but does require new assembler, linker and library support.
  14753. Initial and local exec TLS models are unaffected by this option and
  14754. always use the original scheme.
  14755. '-mword-relocations'
  14756. Only generate absolute relocations on word-sized values (i.e.
  14757. R_ARM_ABS32). This is enabled by default on targets (uClinux,
  14758. SymbianOS) where the runtime loader imposes this restriction, and
  14759. when '-fpic' or '-fPIC' is specified. This option conflicts with
  14760. '-mslow-flash-data'.
  14761. '-mfix-cortex-m3-ldrd'
  14762. Some Cortex-M3 cores can cause data corruption when 'ldrd'
  14763. instructions with overlapping destination and base registers are
  14764. used. This option avoids generating these instructions. This
  14765. option is enabled by default when '-mcpu=cortex-m3' is specified.
  14766. '-munaligned-access'
  14767. '-mno-unaligned-access'
  14768. Enables (or disables) reading and writing of 16- and 32- bit values
  14769. from addresses that are not 16- or 32- bit aligned. By default
  14770. unaligned access is disabled for all pre-ARMv6, all ARMv6-M and for
  14771. ARMv8-M Baseline architectures, and enabled for all other
  14772. architectures. If unaligned access is not enabled then words in
  14773. packed data structures are accessed a byte at a time.
  14774. The ARM attribute 'Tag_CPU_unaligned_access' is set in the
  14775. generated object file to either true or false, depending upon the
  14776. setting of this option. If unaligned access is enabled then the
  14777. preprocessor symbol '__ARM_FEATURE_UNALIGNED' is also defined.
  14778. '-mneon-for-64bits'
  14779. This option is deprecated and has no effect.
  14780. '-mslow-flash-data'
  14781. Assume loading data from flash is slower than fetching instruction.
  14782. Therefore literal load is minimized for better performance. This
  14783. option is only supported when compiling for ARMv7 M-profile and off
  14784. by default. It conflicts with '-mword-relocations'.
  14785. '-masm-syntax-unified'
  14786. Assume inline assembler is using unified asm syntax. The default
  14787. is currently off which implies divided syntax. This option has no
  14788. impact on Thumb2. However, this may change in future releases of
  14789. GCC. Divided syntax should be considered deprecated.
  14790. '-mrestrict-it'
  14791. Restricts generation of IT blocks to conform to the rules of
  14792. ARMv8-A. IT blocks can only contain a single 16-bit instruction
  14793. from a select set of instructions. This option is on by default
  14794. for ARMv8-A Thumb mode.
  14795. '-mprint-tune-info'
  14796. Print CPU tuning information as comment in assembler file. This is
  14797. an option used only for regression testing of the compiler and not
  14798. intended for ordinary use in compiling code. This option is
  14799. disabled by default.
  14800. '-mverbose-cost-dump'
  14801. Enable verbose cost model dumping in the debug dump files. This
  14802. option is provided for use in debugging the compiler.
  14803. '-mpure-code'
  14804. Do not allow constant data to be placed in code sections.
  14805. Additionally, when compiling for ELF object format give all text
  14806. sections the ELF processor-specific section attribute
  14807. 'SHF_ARM_PURECODE'. This option is only available when generating
  14808. non-pic code for M-profile targets.
  14809. '-mcmse'
  14810. Generate secure code as per the "ARMv8-M Security Extensions:
  14811. Requirements on Development Tools Engineering Specification", which
  14812. can be found on
  14813. <http://infocenter.arm.com/help/topic/com.arm.doc.ecm0359818/ECM0359818_armv8m_security_extensions_reqs_on_dev_tools_1_0.pdf>.
  14814. '-mfdpic'
  14815. '-mno-fdpic'
  14816. Select the FDPIC ABI, which uses 64-bit function descriptors to
  14817. represent pointers to functions. When the compiler is configured
  14818. for 'arm-*-uclinuxfdpiceabi' targets, this option is on by default
  14819. and implies '-fPIE' if none of the PIC/PIE-related options is
  14820. provided. On other targets, it only enables the FDPIC-specific
  14821. code generation features, and the user should explicitly provide
  14822. the PIC/PIE-related options as needed.
  14823. Note that static linking is not supported because it would still
  14824. involve the dynamic linker when the program self-relocates. If
  14825. such behavior is acceptable, use -static and -Wl,-dynamic-linker
  14826. options.
  14827. The opposite '-mno-fdpic' option is useful (and required) to build
  14828. the Linux kernel using the same ('arm-*-uclinuxfdpiceabi')
  14829. toolchain as the one used to build the userland programs.
  14830. 
  14831. File: gcc.info, Node: AVR Options, Next: Blackfin Options, Prev: ARM Options, Up: Submodel Options
  14832. 3.19.6 AVR Options
  14833. ------------------
  14834. These options are defined for AVR implementations:
  14835. '-mmcu=MCU'
  14836. Specify Atmel AVR instruction set architectures (ISA) or MCU type.
  14837. The default for this option is 'avr2'.
  14838. GCC supports the following AVR devices and ISAs:
  14839. 'avr2'
  14840. "Classic" devices with up to 8 KiB of program memory.
  14841. MCU = 'attiny22', 'attiny26', 'at90s2313', 'at90s2323',
  14842. 'at90s2333', 'at90s2343', 'at90s4414', 'at90s4433',
  14843. 'at90s4434', 'at90c8534', 'at90s8515', 'at90s8535'.
  14844. 'avr25'
  14845. "Classic" devices with up to 8 KiB of program memory and with
  14846. the 'MOVW' instruction.
  14847. MCU = 'attiny13', 'attiny13a', 'attiny24', 'attiny24a',
  14848. 'attiny25', 'attiny261', 'attiny261a', 'attiny2313',
  14849. 'attiny2313a', 'attiny43u', 'attiny44', 'attiny44a',
  14850. 'attiny45', 'attiny48', 'attiny441', 'attiny461',
  14851. 'attiny461a', 'attiny4313', 'attiny84', 'attiny84a',
  14852. 'attiny85', 'attiny87', 'attiny88', 'attiny828', 'attiny841',
  14853. 'attiny861', 'attiny861a', 'ata5272', 'ata6616c', 'at86rf401'.
  14854. 'avr3'
  14855. "Classic" devices with 16 KiB up to 64 KiB of program memory.
  14856. MCU = 'at76c711', 'at43usb355'.
  14857. 'avr31'
  14858. "Classic" devices with 128 KiB of program memory.
  14859. MCU = 'atmega103', 'at43usb320'.
  14860. 'avr35'
  14861. "Classic" devices with 16 KiB up to 64 KiB of program memory
  14862. and with the 'MOVW' instruction.
  14863. MCU = 'attiny167', 'attiny1634', 'atmega8u2', 'atmega16u2',
  14864. 'atmega32u2', 'ata5505', 'ata6617c', 'ata664251', 'at90usb82',
  14865. 'at90usb162'.
  14866. 'avr4'
  14867. "Enhanced" devices with up to 8 KiB of program memory.
  14868. MCU = 'atmega48', 'atmega48a', 'atmega48p', 'atmega48pa',
  14869. 'atmega48pb', 'atmega8', 'atmega8a', 'atmega8hva', 'atmega88',
  14870. 'atmega88a', 'atmega88p', 'atmega88pa', 'atmega88pb',
  14871. 'atmega8515', 'atmega8535', 'ata6285', 'ata6286', 'ata6289',
  14872. 'ata6612c', 'at90pwm1', 'at90pwm2', 'at90pwm2b', 'at90pwm3',
  14873. 'at90pwm3b', 'at90pwm81'.
  14874. 'avr5'
  14875. "Enhanced" devices with 16 KiB up to 64 KiB of program memory.
  14876. MCU = 'atmega16', 'atmega16a', 'atmega16hva', 'atmega16hva2',
  14877. 'atmega16hvb', 'atmega16hvbrevb', 'atmega16m1', 'atmega16u4',
  14878. 'atmega161', 'atmega162', 'atmega163', 'atmega164a',
  14879. 'atmega164p', 'atmega164pa', 'atmega165', 'atmega165a',
  14880. 'atmega165p', 'atmega165pa', 'atmega168', 'atmega168a',
  14881. 'atmega168p', 'atmega168pa', 'atmega168pb', 'atmega169',
  14882. 'atmega169a', 'atmega169p', 'atmega169pa', 'atmega32',
  14883. 'atmega32a', 'atmega32c1', 'atmega32hvb', 'atmega32hvbrevb',
  14884. 'atmega32m1', 'atmega32u4', 'atmega32u6', 'atmega323',
  14885. 'atmega324a', 'atmega324p', 'atmega324pa', 'atmega325',
  14886. 'atmega325a', 'atmega325p', 'atmega325pa', 'atmega328',
  14887. 'atmega328p', 'atmega328pb', 'atmega329', 'atmega329a',
  14888. 'atmega329p', 'atmega329pa', 'atmega3250', 'atmega3250a',
  14889. 'atmega3250p', 'atmega3250pa', 'atmega3290', 'atmega3290a',
  14890. 'atmega3290p', 'atmega3290pa', 'atmega406', 'atmega64',
  14891. 'atmega64a', 'atmega64c1', 'atmega64hve', 'atmega64hve2',
  14892. 'atmega64m1', 'atmega64rfr2', 'atmega640', 'atmega644',
  14893. 'atmega644a', 'atmega644p', 'atmega644pa', 'atmega644rfr2',
  14894. 'atmega645', 'atmega645a', 'atmega645p', 'atmega649',
  14895. 'atmega649a', 'atmega649p', 'atmega6450', 'atmega6450a',
  14896. 'atmega6450p', 'atmega6490', 'atmega6490a', 'atmega6490p',
  14897. 'ata5795', 'ata5790', 'ata5790n', 'ata5791', 'ata6613c',
  14898. 'ata6614q', 'ata5782', 'ata5831', 'ata8210', 'ata8510',
  14899. 'ata5702m322', 'at90pwm161', 'at90pwm216', 'at90pwm316',
  14900. 'at90can32', 'at90can64', 'at90scr100', 'at90usb646',
  14901. 'at90usb647', 'at94k', 'm3000'.
  14902. 'avr51'
  14903. "Enhanced" devices with 128 KiB of program memory.
  14904. MCU = 'atmega128', 'atmega128a', 'atmega128rfa1',
  14905. 'atmega128rfr2', 'atmega1280', 'atmega1281', 'atmega1284',
  14906. 'atmega1284p', 'atmega1284rfr2', 'at90can128', 'at90usb1286',
  14907. 'at90usb1287'.
  14908. 'avr6'
  14909. "Enhanced" devices with 3-byte PC, i.e. with more than 128 KiB
  14910. of program memory.
  14911. MCU = 'atmega256rfr2', 'atmega2560', 'atmega2561',
  14912. 'atmega2564rfr2'.
  14913. 'avrxmega2'
  14914. "XMEGA" devices with more than 8 KiB and up to 64 KiB of
  14915. program memory.
  14916. MCU = 'atxmega8e5', 'atxmega16a4', 'atxmega16a4u',
  14917. 'atxmega16c4', 'atxmega16d4', 'atxmega16e5', 'atxmega32a4',
  14918. 'atxmega32a4u', 'atxmega32c3', 'atxmega32c4', 'atxmega32d3',
  14919. 'atxmega32d4', 'atxmega32e5'.
  14920. 'avrxmega3'
  14921. "XMEGA" devices with up to 64 KiB of combined program memory
  14922. and RAM, and with program memory visible in the RAM address
  14923. space.
  14924. MCU = 'attiny202', 'attiny204', 'attiny212', 'attiny214',
  14925. 'attiny402', 'attiny404', 'attiny406', 'attiny412',
  14926. 'attiny414', 'attiny416', 'attiny417', 'attiny804',
  14927. 'attiny806', 'attiny807', 'attiny814', 'attiny816',
  14928. 'attiny817', 'attiny1604', 'attiny1606', 'attiny1607',
  14929. 'attiny1614', 'attiny1616', 'attiny1617', 'attiny3214',
  14930. 'attiny3216', 'attiny3217', 'atmega808', 'atmega809',
  14931. 'atmega1608', 'atmega1609', 'atmega3208', 'atmega3209',
  14932. 'atmega4808', 'atmega4809'.
  14933. 'avrxmega4'
  14934. "XMEGA" devices with more than 64 KiB and up to 128 KiB of
  14935. program memory.
  14936. MCU = 'atxmega64a3', 'atxmega64a3u', 'atxmega64a4u',
  14937. 'atxmega64b1', 'atxmega64b3', 'atxmega64c3', 'atxmega64d3',
  14938. 'atxmega64d4'.
  14939. 'avrxmega5'
  14940. "XMEGA" devices with more than 64 KiB and up to 128 KiB of
  14941. program memory and more than 64 KiB of RAM.
  14942. MCU = 'atxmega64a1', 'atxmega64a1u'.
  14943. 'avrxmega6'
  14944. "XMEGA" devices with more than 128 KiB of program memory.
  14945. MCU = 'atxmega128a3', 'atxmega128a3u', 'atxmega128b1',
  14946. 'atxmega128b3', 'atxmega128c3', 'atxmega128d3',
  14947. 'atxmega128d4', 'atxmega192a3', 'atxmega192a3u',
  14948. 'atxmega192c3', 'atxmega192d3', 'atxmega256a3',
  14949. 'atxmega256a3b', 'atxmega256a3bu', 'atxmega256a3u',
  14950. 'atxmega256c3', 'atxmega256d3', 'atxmega384c3',
  14951. 'atxmega384d3'.
  14952. 'avrxmega7'
  14953. "XMEGA" devices with more than 128 KiB of program memory and
  14954. more than 64 KiB of RAM.
  14955. MCU = 'atxmega128a1', 'atxmega128a1u', 'atxmega128a4u'.
  14956. 'avrtiny'
  14957. "TINY" Tiny core devices with 512 B up to 4 KiB of program
  14958. memory.
  14959. MCU = 'attiny4', 'attiny5', 'attiny9', 'attiny10', 'attiny20',
  14960. 'attiny40'.
  14961. 'avr1'
  14962. This ISA is implemented by the minimal AVR core and supported
  14963. for assembler only.
  14964. MCU = 'attiny11', 'attiny12', 'attiny15', 'attiny28',
  14965. 'at90s1200'.
  14966. '-mabsdata'
  14967. Assume that all data in static storage can be accessed by LDS / STS
  14968. instructions. This option has only an effect on reduced Tiny
  14969. devices like ATtiny40. See also the 'absdata' *note variable
  14970. attribute: AVR Variable Attributes.
  14971. '-maccumulate-args'
  14972. Accumulate outgoing function arguments and acquire/release the
  14973. needed stack space for outgoing function arguments once in function
  14974. prologue/epilogue. Without this option, outgoing arguments are
  14975. pushed before calling a function and popped afterwards.
  14976. Popping the arguments after the function call can be expensive on
  14977. AVR so that accumulating the stack space might lead to smaller
  14978. executables because arguments need not be removed from the stack
  14979. after such a function call.
  14980. This option can lead to reduced code size for functions that
  14981. perform several calls to functions that get their arguments on the
  14982. stack like calls to printf-like functions.
  14983. '-mbranch-cost=COST'
  14984. Set the branch costs for conditional branch instructions to COST.
  14985. Reasonable values for COST are small, non-negative integers. The
  14986. default branch cost is 0.
  14987. '-mcall-prologues'
  14988. Functions prologues/epilogues are expanded as calls to appropriate
  14989. subroutines. Code size is smaller.
  14990. '-mdouble=BITS'
  14991. '-mlong-double=BITS'
  14992. Set the size (in bits) of the 'double' or 'long double' type,
  14993. respectively. Possible values for BITS are 32 and 64. Whether or
  14994. not a specific value for BITS is allowed depends on the
  14995. '--with-double=' and '--with-long-double='
  14996. configure options (https://gcc.gnu.org/install/configure.html#avr),
  14997. and the same applies for the default values of the options.
  14998. '-mgas-isr-prologues'
  14999. Interrupt service routines (ISRs) may use the '__gcc_isr' pseudo
  15000. instruction supported by GNU Binutils. If this option is on, the
  15001. feature can still be disabled for individual ISRs by means of the
  15002. *note 'no_gccisr': AVR Function Attributes. function attribute.
  15003. This feature is activated per default if optimization is on (but
  15004. not with '-Og', *note Optimize Options::), and if GNU Binutils
  15005. support PR21683 (https://sourceware.org/PR21683).
  15006. '-mint8'
  15007. Assume 'int' to be 8-bit integer. This affects the sizes of all
  15008. types: a 'char' is 1 byte, an 'int' is 1 byte, a 'long' is 2 bytes,
  15009. and 'long long' is 4 bytes. Please note that this option does not
  15010. conform to the C standards, but it results in smaller code size.
  15011. '-mmain-is-OS_task'
  15012. Do not save registers in 'main'. The effect is the same like
  15013. attaching attribute *note 'OS_task': AVR Function Attributes. to
  15014. 'main'. It is activated per default if optimization is on.
  15015. '-mn-flash=NUM'
  15016. Assume that the flash memory has a size of NUM times 64 KiB.
  15017. '-mno-interrupts'
  15018. Generated code is not compatible with hardware interrupts. Code
  15019. size is smaller.
  15020. '-mrelax'
  15021. Try to replace 'CALL' resp. 'JMP' instruction by the shorter
  15022. 'RCALL' resp. 'RJMP' instruction if applicable. Setting '-mrelax'
  15023. just adds the '--mlink-relax' option to the assembler's command
  15024. line and the '--relax' option to the linker's command line.
  15025. Jump relaxing is performed by the linker because jump offsets are
  15026. not known before code is located. Therefore, the assembler code
  15027. generated by the compiler is the same, but the instructions in the
  15028. executable may differ from instructions in the assembler code.
  15029. Relaxing must be turned on if linker stubs are needed, see the
  15030. section on 'EIND' and linker stubs below.
  15031. '-mrmw'
  15032. Assume that the device supports the Read-Modify-Write instructions
  15033. 'XCH', 'LAC', 'LAS' and 'LAT'.
  15034. '-mshort-calls'
  15035. Assume that 'RJMP' and 'RCALL' can target the whole program memory.
  15036. This option is used internally for multilib selection. It is not
  15037. an optimization option, and you don't need to set it by hand.
  15038. '-msp8'
  15039. Treat the stack pointer register as an 8-bit register, i.e. assume
  15040. the high byte of the stack pointer is zero. In general, you don't
  15041. need to set this option by hand.
  15042. This option is used internally by the compiler to select and build
  15043. multilibs for architectures 'avr2' and 'avr25'. These
  15044. architectures mix devices with and without 'SPH'. For any setting
  15045. other than '-mmcu=avr2' or '-mmcu=avr25' the compiler driver adds
  15046. or removes this option from the compiler proper's command line,
  15047. because the compiler then knows if the device or architecture has
  15048. an 8-bit stack pointer and thus no 'SPH' register or not.
  15049. '-mstrict-X'
  15050. Use address register 'X' in a way proposed by the hardware. This
  15051. means that 'X' is only used in indirect, post-increment or
  15052. pre-decrement addressing.
  15053. Without this option, the 'X' register may be used in the same way
  15054. as 'Y' or 'Z' which then is emulated by additional instructions.
  15055. For example, loading a value with 'X+const' addressing with a small
  15056. non-negative 'const < 64' to a register RN is performed as
  15057. adiw r26, const ; X += const
  15058. ld RN, X ; RN = *X
  15059. sbiw r26, const ; X -= const
  15060. '-mtiny-stack'
  15061. Only change the lower 8 bits of the stack pointer.
  15062. '-mfract-convert-truncate'
  15063. Allow to use truncation instead of rounding towards zero for
  15064. fractional fixed-point types.
  15065. '-nodevicelib'
  15066. Don't link against AVR-LibC's device specific library 'lib<mcu>.a'.
  15067. '-nodevicespecs'
  15068. Don't add '-specs=device-specs/specs-MCU' to the compiler driver's
  15069. command line. The user takes responsibility for supplying the
  15070. sub-processes like compiler proper, assembler and linker with
  15071. appropriate command line options. This means that the user has to
  15072. supply her private device specs file by means of
  15073. '-specs=PATH-TO-SPECS-FILE'. There is no more need for option
  15074. '-mmcu=MCU'.
  15075. This option can also serve as a replacement for the older way of
  15076. specifying custom device-specs files that needed '-B SOME-PATH' to
  15077. point to a directory which contains a folder named 'device-specs'
  15078. which contains a specs file named 'specs-MCU', where MCU was
  15079. specified by '-mmcu=MCU'.
  15080. '-Waddr-space-convert'
  15081. Warn about conversions between address spaces in the case where the
  15082. resulting address space is not contained in the incoming address
  15083. space.
  15084. '-Wmisspelled-isr'
  15085. Warn if the ISR is misspelled, i.e. without __vector prefix.
  15086. Enabled by default.
  15087. 3.19.6.1 'EIND' and Devices with More Than 128 Ki Bytes of Flash
  15088. ................................................................
  15089. Pointers in the implementation are 16 bits wide. The address of a
  15090. function or label is represented as word address so that indirect jumps
  15091. and calls can target any code address in the range of 64 Ki words.
  15092. In order to facilitate indirect jump on devices with more than 128 Ki
  15093. bytes of program memory space, there is a special function register
  15094. called 'EIND' that serves as most significant part of the target address
  15095. when 'EICALL' or 'EIJMP' instructions are used.
  15096. Indirect jumps and calls on these devices are handled as follows by the
  15097. compiler and are subject to some limitations:
  15098. * The compiler never sets 'EIND'.
  15099. * The compiler uses 'EIND' implicitly in 'EICALL'/'EIJMP'
  15100. instructions or might read 'EIND' directly in order to emulate an
  15101. indirect call/jump by means of a 'RET' instruction.
  15102. * The compiler assumes that 'EIND' never changes during the startup
  15103. code or during the application. In particular, 'EIND' is not
  15104. saved/restored in function or interrupt service routine
  15105. prologue/epilogue.
  15106. * For indirect calls to functions and computed goto, the linker
  15107. generates _stubs_. Stubs are jump pads sometimes also called
  15108. _trampolines_. Thus, the indirect call/jump jumps to such a stub.
  15109. The stub contains a direct jump to the desired address.
  15110. * Linker relaxation must be turned on so that the linker generates
  15111. the stubs correctly in all situations. See the compiler option
  15112. '-mrelax' and the linker option '--relax'. There are corner cases
  15113. where the linker is supposed to generate stubs but aborts without
  15114. relaxation and without a helpful error message.
  15115. * The default linker script is arranged for code with 'EIND = 0'. If
  15116. code is supposed to work for a setup with 'EIND != 0', a custom
  15117. linker script has to be used in order to place the sections whose
  15118. name start with '.trampolines' into the segment where 'EIND' points
  15119. to.
  15120. * The startup code from libgcc never sets 'EIND'. Notice that
  15121. startup code is a blend of code from libgcc and AVR-LibC. For the
  15122. impact of AVR-LibC on 'EIND', see the
  15123. AVR-LibC user manual (http://nongnu.org/avr-libc/user-manual/).
  15124. * It is legitimate for user-specific startup code to set up 'EIND'
  15125. early, for example by means of initialization code located in
  15126. section '.init3'. Such code runs prior to general startup code
  15127. that initializes RAM and calls constructors, but after the bit of
  15128. startup code from AVR-LibC that sets 'EIND' to the segment where
  15129. the vector table is located.
  15130. #include <avr/io.h>
  15131. static void
  15132. __attribute__((section(".init3"),naked,used,no_instrument_function))
  15133. init3_set_eind (void)
  15134. {
  15135. __asm volatile ("ldi r24,pm_hh8(__trampolines_start)\n\t"
  15136. "out %i0,r24" :: "n" (&EIND) : "r24","memory");
  15137. }
  15138. The '__trampolines_start' symbol is defined in the linker script.
  15139. * Stubs are generated automatically by the linker if the following
  15140. two conditions are met:
  15141. - The address of a label is taken by means of the 'gs' modifier
  15142. (short for _generate stubs_) like so:
  15143. LDI r24, lo8(gs(FUNC))
  15144. LDI r25, hi8(gs(FUNC))
  15145. - The final location of that label is in a code segment
  15146. _outside_ the segment where the stubs are located.
  15147. * The compiler emits such 'gs' modifiers for code labels in the
  15148. following situations:
  15149. - Taking address of a function or code label.
  15150. - Computed goto.
  15151. - If prologue-save function is used, see '-mcall-prologues'
  15152. command-line option.
  15153. - Switch/case dispatch tables. If you do not want such dispatch
  15154. tables you can specify the '-fno-jump-tables' command-line
  15155. option.
  15156. - C and C++ constructors/destructors called during
  15157. startup/shutdown.
  15158. - If the tools hit a 'gs()' modifier explained above.
  15159. * Jumping to non-symbolic addresses like so is _not_ supported:
  15160. int main (void)
  15161. {
  15162. /* Call function at word address 0x2 */
  15163. return ((int(*)(void)) 0x2)();
  15164. }
  15165. Instead, a stub has to be set up, i.e. the function has to be
  15166. called through a symbol ('func_4' in the example):
  15167. int main (void)
  15168. {
  15169. extern int func_4 (void);
  15170. /* Call function at byte address 0x4 */
  15171. return func_4();
  15172. }
  15173. and the application be linked with '-Wl,--defsym,func_4=0x4'.
  15174. Alternatively, 'func_4' can be defined in the linker script.
  15175. 3.19.6.2 Handling of the 'RAMPD', 'RAMPX', 'RAMPY' and 'RAMPZ' Special Function Registers
  15176. .........................................................................................
  15177. Some AVR devices support memories larger than the 64 KiB range that can
  15178. be accessed with 16-bit pointers. To access memory locations outside
  15179. this 64 KiB range, the content of a 'RAMP' register is used as high part
  15180. of the address: The 'X', 'Y', 'Z' address register is concatenated with
  15181. the 'RAMPX', 'RAMPY', 'RAMPZ' special function register, respectively,
  15182. to get a wide address. Similarly, 'RAMPD' is used together with direct
  15183. addressing.
  15184. * The startup code initializes the 'RAMP' special function registers
  15185. with zero.
  15186. * If a *note named address space: AVR Named Address Spaces. other
  15187. than generic or '__flash' is used, then 'RAMPZ' is set as needed
  15188. before the operation.
  15189. * If the device supports RAM larger than 64 KiB and the compiler
  15190. needs to change 'RAMPZ' to accomplish an operation, 'RAMPZ' is
  15191. reset to zero after the operation.
  15192. * If the device comes with a specific 'RAMP' register, the ISR
  15193. prologue/epilogue saves/restores that SFR and initializes it with
  15194. zero in case the ISR code might (implicitly) use it.
  15195. * RAM larger than 64 KiB is not supported by GCC for AVR targets. If
  15196. you use inline assembler to read from locations outside the 16-bit
  15197. address range and change one of the 'RAMP' registers, you must
  15198. reset it to zero after the access.
  15199. 3.19.6.3 AVR Built-in Macros
  15200. ............................
  15201. GCC defines several built-in macros so that the user code can test for
  15202. the presence or absence of features. Almost any of the following
  15203. built-in macros are deduced from device capabilities and thus triggered
  15204. by the '-mmcu=' command-line option.
  15205. For even more AVR-specific built-in macros see *note AVR Named Address
  15206. Spaces:: and *note AVR Built-in Functions::.
  15207. '__AVR_ARCH__'
  15208. Build-in macro that resolves to a decimal number that identifies
  15209. the architecture and depends on the '-mmcu=MCU' option. Possible
  15210. values are:
  15211. '2', '25', '3', '31', '35', '4', '5', '51', '6'
  15212. for MCU='avr2', 'avr25', 'avr3', 'avr31', 'avr35', 'avr4', 'avr5',
  15213. 'avr51', 'avr6',
  15214. respectively and
  15215. '100', '102', '103', '104', '105', '106', '107'
  15216. for MCU='avrtiny', 'avrxmega2', 'avrxmega3', 'avrxmega4',
  15217. 'avrxmega5', 'avrxmega6', 'avrxmega7', respectively. If MCU
  15218. specifies a device, this built-in macro is set accordingly. For
  15219. example, with '-mmcu=atmega8' the macro is defined to '4'.
  15220. '__AVR_DEVICE__'
  15221. Setting '-mmcu=DEVICE' defines this built-in macro which reflects
  15222. the device's name. For example, '-mmcu=atmega8' defines the
  15223. built-in macro '__AVR_ATmega8__', '-mmcu=attiny261a' defines
  15224. '__AVR_ATtiny261A__', etc.
  15225. The built-in macros' names follow the scheme '__AVR_DEVICE__' where
  15226. DEVICE is the device name as from the AVR user manual. The
  15227. difference between DEVICE in the built-in macro and DEVICE in
  15228. '-mmcu=DEVICE' is that the latter is always lowercase.
  15229. If DEVICE is not a device but only a core architecture like
  15230. 'avr51', this macro is not defined.
  15231. '__AVR_DEVICE_NAME__'
  15232. Setting '-mmcu=DEVICE' defines this built-in macro to the device's
  15233. name. For example, with '-mmcu=atmega8' the macro is defined to
  15234. 'atmega8'.
  15235. If DEVICE is not a device but only a core architecture like
  15236. 'avr51', this macro is not defined.
  15237. '__AVR_XMEGA__'
  15238. The device / architecture belongs to the XMEGA family of devices.
  15239. '__AVR_HAVE_ELPM__'
  15240. The device has the 'ELPM' instruction.
  15241. '__AVR_HAVE_ELPMX__'
  15242. The device has the 'ELPM RN,Z' and 'ELPM RN,Z+' instructions.
  15243. '__AVR_HAVE_MOVW__'
  15244. The device has the 'MOVW' instruction to perform 16-bit
  15245. register-register moves.
  15246. '__AVR_HAVE_LPMX__'
  15247. The device has the 'LPM RN,Z' and 'LPM RN,Z+' instructions.
  15248. '__AVR_HAVE_MUL__'
  15249. The device has a hardware multiplier.
  15250. '__AVR_HAVE_JMP_CALL__'
  15251. The device has the 'JMP' and 'CALL' instructions. This is the case
  15252. for devices with more than 8 KiB of program memory.
  15253. '__AVR_HAVE_EIJMP_EICALL__'
  15254. '__AVR_3_BYTE_PC__'
  15255. The device has the 'EIJMP' and 'EICALL' instructions. This is the
  15256. case for devices with more than 128 KiB of program memory. This
  15257. also means that the program counter (PC) is 3 bytes wide.
  15258. '__AVR_2_BYTE_PC__'
  15259. The program counter (PC) is 2 bytes wide. This is the case for
  15260. devices with up to 128 KiB of program memory.
  15261. '__AVR_HAVE_8BIT_SP__'
  15262. '__AVR_HAVE_16BIT_SP__'
  15263. The stack pointer (SP) register is treated as 8-bit respectively
  15264. 16-bit register by the compiler. The definition of these macros is
  15265. affected by '-mtiny-stack'.
  15266. '__AVR_HAVE_SPH__'
  15267. '__AVR_SP8__'
  15268. The device has the SPH (high part of stack pointer) special
  15269. function register or has an 8-bit stack pointer, respectively. The
  15270. definition of these macros is affected by '-mmcu=' and in the cases
  15271. of '-mmcu=avr2' and '-mmcu=avr25' also by '-msp8'.
  15272. '__AVR_HAVE_RAMPD__'
  15273. '__AVR_HAVE_RAMPX__'
  15274. '__AVR_HAVE_RAMPY__'
  15275. '__AVR_HAVE_RAMPZ__'
  15276. The device has the 'RAMPD', 'RAMPX', 'RAMPY', 'RAMPZ' special
  15277. function register, respectively.
  15278. '__NO_INTERRUPTS__'
  15279. This macro reflects the '-mno-interrupts' command-line option.
  15280. '__AVR_ERRATA_SKIP__'
  15281. '__AVR_ERRATA_SKIP_JMP_CALL__'
  15282. Some AVR devices (AT90S8515, ATmega103) must not skip 32-bit
  15283. instructions because of a hardware erratum. Skip instructions are
  15284. 'SBRS', 'SBRC', 'SBIS', 'SBIC' and 'CPSE'. The second macro is
  15285. only defined if '__AVR_HAVE_JMP_CALL__' is also set.
  15286. '__AVR_ISA_RMW__'
  15287. The device has Read-Modify-Write instructions (XCH, LAC, LAS and
  15288. LAT).
  15289. '__AVR_SFR_OFFSET__=OFFSET'
  15290. Instructions that can address I/O special function registers
  15291. directly like 'IN', 'OUT', 'SBI', etc. may use a different address
  15292. as if addressed by an instruction to access RAM like 'LD' or 'STS'.
  15293. This offset depends on the device architecture and has to be
  15294. subtracted from the RAM address in order to get the respective
  15295. I/O address.
  15296. '__AVR_SHORT_CALLS__'
  15297. The '-mshort-calls' command line option is set.
  15298. '__AVR_PM_BASE_ADDRESS__=ADDR'
  15299. Some devices support reading from flash memory by means of 'LD*'
  15300. instructions. The flash memory is seen in the data address space
  15301. at an offset of '__AVR_PM_BASE_ADDRESS__'. If this macro is not
  15302. defined, this feature is not available. If defined, the address
  15303. space is linear and there is no need to put '.rodata' into RAM.
  15304. This is handled by the default linker description file, and is
  15305. currently available for 'avrtiny' and 'avrxmega3'. Even more
  15306. convenient, there is no need to use address spaces like '__flash'
  15307. or features like attribute 'progmem' and 'pgm_read_*'.
  15308. '__WITH_AVRLIBC__'
  15309. The compiler is configured to be used together with AVR-Libc. See
  15310. the '--with-avrlibc' configure option.
  15311. '__HAVE_DOUBLE_MULTILIB__'
  15312. Defined if '-mdouble=' acts as a multilib option.
  15313. '__HAVE_DOUBLE32__'
  15314. '__HAVE_DOUBLE64__'
  15315. Defined if the compiler supports 32-bit double resp. 64-bit
  15316. double. The actual layout is specified by option '-mdouble='.
  15317. '__DEFAULT_DOUBLE__'
  15318. The size in bits of 'double' if '-mdouble=' is not set. To test
  15319. the layout of 'double' in a program, use the built-in macro
  15320. '__SIZEOF_DOUBLE__'.
  15321. '__HAVE_LONG_DOUBLE32__'
  15322. '__HAVE_LONG_DOUBLE64__'
  15323. '__HAVE_LONG_DOUBLE_MULTILIB__'
  15324. '__DEFAULT_LONG_DOUBLE__'
  15325. Same as above, but for 'long double' instead of 'double'.
  15326. '__WITH_DOUBLE_COMPARISON__'
  15327. Reflects the '--with-double-comparison={tristate|bool|libf7}'
  15328. configure option (https://gcc.gnu.org/install/configure.html#avr)
  15329. and is defined to '2' or '3'.
  15330. '__WITH_LIBF7_LIBGCC__'
  15331. '__WITH_LIBF7_MATH__'
  15332. '__WITH_LIBF7_MATH_SYMBOLS__'
  15333. Reflects the '--with-libf7={libgcc|math|math-symbols}'
  15334. configure option (https://gcc.gnu.org/install/configure.html#avr).
  15335. 
  15336. File: gcc.info, Node: Blackfin Options, Next: C6X Options, Prev: AVR Options, Up: Submodel Options
  15337. 3.19.7 Blackfin Options
  15338. -----------------------
  15339. '-mcpu=CPU[-SIREVISION]'
  15340. Specifies the name of the target Blackfin processor. Currently,
  15341. CPU can be one of 'bf512', 'bf514', 'bf516', 'bf518', 'bf522',
  15342. 'bf523', 'bf524', 'bf525', 'bf526', 'bf527', 'bf531', 'bf532',
  15343. 'bf533', 'bf534', 'bf536', 'bf537', 'bf538', 'bf539', 'bf542',
  15344. 'bf544', 'bf547', 'bf548', 'bf549', 'bf542m', 'bf544m', 'bf547m',
  15345. 'bf548m', 'bf549m', 'bf561', 'bf592'.
  15346. The optional SIREVISION specifies the silicon revision of the
  15347. target Blackfin processor. Any workarounds available for the
  15348. targeted silicon revision are enabled. If SIREVISION is 'none', no
  15349. workarounds are enabled. If SIREVISION is 'any', all workarounds
  15350. for the targeted processor are enabled. The '__SILICON_REVISION__'
  15351. macro is defined to two hexadecimal digits representing the major
  15352. and minor numbers in the silicon revision. If SIREVISION is
  15353. 'none', the '__SILICON_REVISION__' is not defined. If SIREVISION
  15354. is 'any', the '__SILICON_REVISION__' is defined to be '0xffff'. If
  15355. this optional SIREVISION is not used, GCC assumes the latest known
  15356. silicon revision of the targeted Blackfin processor.
  15357. GCC defines a preprocessor macro for the specified CPU. For the
  15358. 'bfin-elf' toolchain, this option causes the hardware BSP provided
  15359. by libgloss to be linked in if '-msim' is not given.
  15360. Without this option, 'bf532' is used as the processor by default.
  15361. Note that support for 'bf561' is incomplete. For 'bf561', only the
  15362. preprocessor macro is defined.
  15363. '-msim'
  15364. Specifies that the program will be run on the simulator. This
  15365. causes the simulator BSP provided by libgloss to be linked in.
  15366. This option has effect only for 'bfin-elf' toolchain. Certain
  15367. other options, such as '-mid-shared-library' and '-mfdpic', imply
  15368. '-msim'.
  15369. '-momit-leaf-frame-pointer'
  15370. Don't keep the frame pointer in a register for leaf functions.
  15371. This avoids the instructions to save, set up and restore frame
  15372. pointers and makes an extra register available in leaf functions.
  15373. '-mspecld-anomaly'
  15374. When enabled, the compiler ensures that the generated code does not
  15375. contain speculative loads after jump instructions. If this option
  15376. is used, '__WORKAROUND_SPECULATIVE_LOADS' is defined.
  15377. '-mno-specld-anomaly'
  15378. Don't generate extra code to prevent speculative loads from
  15379. occurring.
  15380. '-mcsync-anomaly'
  15381. When enabled, the compiler ensures that the generated code does not
  15382. contain CSYNC or SSYNC instructions too soon after conditional
  15383. branches. If this option is used, '__WORKAROUND_SPECULATIVE_SYNCS'
  15384. is defined.
  15385. '-mno-csync-anomaly'
  15386. Don't generate extra code to prevent CSYNC or SSYNC instructions
  15387. from occurring too soon after a conditional branch.
  15388. '-mlow64k'
  15389. When enabled, the compiler is free to take advantage of the
  15390. knowledge that the entire program fits into the low 64k of memory.
  15391. '-mno-low64k'
  15392. Assume that the program is arbitrarily large. This is the default.
  15393. '-mstack-check-l1'
  15394. Do stack checking using information placed into L1 scratchpad
  15395. memory by the uClinux kernel.
  15396. '-mid-shared-library'
  15397. Generate code that supports shared libraries via the library ID
  15398. method. This allows for execute in place and shared libraries in
  15399. an environment without virtual memory management. This option
  15400. implies '-fPIC'. With a 'bfin-elf' target, this option implies
  15401. '-msim'.
  15402. '-mno-id-shared-library'
  15403. Generate code that doesn't assume ID-based shared libraries are
  15404. being used. This is the default.
  15405. '-mleaf-id-shared-library'
  15406. Generate code that supports shared libraries via the library ID
  15407. method, but assumes that this library or executable won't link
  15408. against any other ID shared libraries. That allows the compiler to
  15409. use faster code for jumps and calls.
  15410. '-mno-leaf-id-shared-library'
  15411. Do not assume that the code being compiled won't link against any
  15412. ID shared libraries. Slower code is generated for jump and call
  15413. insns.
  15414. '-mshared-library-id=n'
  15415. Specifies the identification number of the ID-based shared library
  15416. being compiled. Specifying a value of 0 generates more compact
  15417. code; specifying other values forces the allocation of that number
  15418. to the current library but is no more space- or time-efficient than
  15419. omitting this option.
  15420. '-msep-data'
  15421. Generate code that allows the data segment to be located in a
  15422. different area of memory from the text segment. This allows for
  15423. execute in place in an environment without virtual memory
  15424. management by eliminating relocations against the text section.
  15425. '-mno-sep-data'
  15426. Generate code that assumes that the data segment follows the text
  15427. segment. This is the default.
  15428. '-mlong-calls'
  15429. '-mno-long-calls'
  15430. Tells the compiler to perform function calls by first loading the
  15431. address of the function into a register and then performing a
  15432. subroutine call on this register. This switch is needed if the
  15433. target function lies outside of the 24-bit addressing range of the
  15434. offset-based version of subroutine call instruction.
  15435. This feature is not enabled by default. Specifying
  15436. '-mno-long-calls' restores the default behavior. Note these
  15437. switches have no effect on how the compiler generates code to
  15438. handle function calls via function pointers.
  15439. '-mfast-fp'
  15440. Link with the fast floating-point library. This library relaxes
  15441. some of the IEEE floating-point standard's rules for checking
  15442. inputs against Not-a-Number (NAN), in the interest of performance.
  15443. '-minline-plt'
  15444. Enable inlining of PLT entries in function calls to functions that
  15445. are not known to bind locally. It has no effect without '-mfdpic'.
  15446. '-mmulticore'
  15447. Build a standalone application for multicore Blackfin processors.
  15448. This option causes proper start files and link scripts supporting
  15449. multicore to be used, and defines the macro '__BFIN_MULTICORE'. It
  15450. can only be used with '-mcpu=bf561[-SIREVISION]'.
  15451. This option can be used with '-mcorea' or '-mcoreb', which selects
  15452. the one-application-per-core programming model. Without '-mcorea'
  15453. or '-mcoreb', the single-application/dual-core programming model is
  15454. used. In this model, the main function of Core B should be named
  15455. as 'coreb_main'.
  15456. If this option is not used, the single-core application programming
  15457. model is used.
  15458. '-mcorea'
  15459. Build a standalone application for Core A of BF561 when using the
  15460. one-application-per-core programming model. Proper start files and
  15461. link scripts are used to support Core A, and the macro
  15462. '__BFIN_COREA' is defined. This option can only be used in
  15463. conjunction with '-mmulticore'.
  15464. '-mcoreb'
  15465. Build a standalone application for Core B of BF561 when using the
  15466. one-application-per-core programming model. Proper start files and
  15467. link scripts are used to support Core B, and the macro
  15468. '__BFIN_COREB' is defined. When this option is used, 'coreb_main'
  15469. should be used instead of 'main'. This option can only be used in
  15470. conjunction with '-mmulticore'.
  15471. '-msdram'
  15472. Build a standalone application for SDRAM. Proper start files and
  15473. link scripts are used to put the application into SDRAM, and the
  15474. macro '__BFIN_SDRAM' is defined. The loader should initialize
  15475. SDRAM before loading the application.
  15476. '-micplb'
  15477. Assume that ICPLBs are enabled at run time. This has an effect on
  15478. certain anomaly workarounds. For Linux targets, the default is to
  15479. assume ICPLBs are enabled; for standalone applications the default
  15480. is off.
  15481. 
  15482. File: gcc.info, Node: C6X Options, Next: CRIS Options, Prev: Blackfin Options, Up: Submodel Options
  15483. 3.19.8 C6X Options
  15484. ------------------
  15485. '-march=NAME'
  15486. This specifies the name of the target architecture. GCC uses this
  15487. name to determine what kind of instructions it can emit when
  15488. generating assembly code. Permissible names are: 'c62x', 'c64x',
  15489. 'c64x+', 'c67x', 'c67x+', 'c674x'.
  15490. '-mbig-endian'
  15491. Generate code for a big-endian target.
  15492. '-mlittle-endian'
  15493. Generate code for a little-endian target. This is the default.
  15494. '-msim'
  15495. Choose startup files and linker script suitable for the simulator.
  15496. '-msdata=default'
  15497. Put small global and static data in the '.neardata' section, which
  15498. is pointed to by register 'B14'. Put small uninitialized global
  15499. and static data in the '.bss' section, which is adjacent to the
  15500. '.neardata' section. Put small read-only data into the '.rodata'
  15501. section. The corresponding sections used for large pieces of data
  15502. are '.fardata', '.far' and '.const'.
  15503. '-msdata=all'
  15504. Put all data, not just small objects, into the sections reserved
  15505. for small data, and use addressing relative to the 'B14' register
  15506. to access them.
  15507. '-msdata=none'
  15508. Make no use of the sections reserved for small data, and use
  15509. absolute addresses to access all data. Put all initialized global
  15510. and static data in the '.fardata' section, and all uninitialized
  15511. data in the '.far' section. Put all constant data into the
  15512. '.const' section.
  15513. 
  15514. File: gcc.info, Node: CRIS Options, Next: CR16 Options, Prev: C6X Options, Up: Submodel Options
  15515. 3.19.9 CRIS Options
  15516. -------------------
  15517. These options are defined specifically for the CRIS ports.
  15518. '-march=ARCHITECTURE-TYPE'
  15519. '-mcpu=ARCHITECTURE-TYPE'
  15520. Generate code for the specified architecture. The choices for
  15521. ARCHITECTURE-TYPE are 'v3', 'v8' and 'v10' for respectively
  15522. ETRAX 4, ETRAX 100, and ETRAX 100 LX. Default is 'v0' except for
  15523. cris-axis-linux-gnu, where the default is 'v10'.
  15524. '-mtune=ARCHITECTURE-TYPE'
  15525. Tune to ARCHITECTURE-TYPE everything applicable about the generated
  15526. code, except for the ABI and the set of available instructions.
  15527. The choices for ARCHITECTURE-TYPE are the same as for
  15528. '-march=ARCHITECTURE-TYPE'.
  15529. '-mmax-stack-frame=N'
  15530. Warn when the stack frame of a function exceeds N bytes.
  15531. '-metrax4'
  15532. '-metrax100'
  15533. The options '-metrax4' and '-metrax100' are synonyms for
  15534. '-march=v3' and '-march=v8' respectively.
  15535. '-mmul-bug-workaround'
  15536. '-mno-mul-bug-workaround'
  15537. Work around a bug in the 'muls' and 'mulu' instructions for CPU
  15538. models where it applies. This option is active by default.
  15539. '-mpdebug'
  15540. Enable CRIS-specific verbose debug-related information in the
  15541. assembly code. This option also has the effect of turning off the
  15542. '#NO_APP' formatted-code indicator to the assembler at the
  15543. beginning of the assembly file.
  15544. '-mcc-init'
  15545. Do not use condition-code results from previous instruction; always
  15546. emit compare and test instructions before use of condition codes.
  15547. '-mno-side-effects'
  15548. Do not emit instructions with side effects in addressing modes
  15549. other than post-increment.
  15550. '-mstack-align'
  15551. '-mno-stack-align'
  15552. '-mdata-align'
  15553. '-mno-data-align'
  15554. '-mconst-align'
  15555. '-mno-const-align'
  15556. These options ('no-' options) arrange (eliminate arrangements) for
  15557. the stack frame, individual data and constants to be aligned for
  15558. the maximum single data access size for the chosen CPU model. The
  15559. default is to arrange for 32-bit alignment. ABI details such as
  15560. structure layout are not affected by these options.
  15561. '-m32-bit'
  15562. '-m16-bit'
  15563. '-m8-bit'
  15564. Similar to the stack- data- and const-align options above, these
  15565. options arrange for stack frame, writable data and constants to all
  15566. be 32-bit, 16-bit or 8-bit aligned. The default is 32-bit
  15567. alignment.
  15568. '-mno-prologue-epilogue'
  15569. '-mprologue-epilogue'
  15570. With '-mno-prologue-epilogue', the normal function prologue and
  15571. epilogue which set up the stack frame are omitted and no return
  15572. instructions or return sequences are generated in the code. Use
  15573. this option only together with visual inspection of the compiled
  15574. code: no warnings or errors are generated when call-saved registers
  15575. must be saved, or storage for local variables needs to be
  15576. allocated.
  15577. '-mno-gotplt'
  15578. '-mgotplt'
  15579. With '-fpic' and '-fPIC', don't generate (do generate) instruction
  15580. sequences that load addresses for functions from the PLT part of
  15581. the GOT rather than (traditional on other architectures) calls to
  15582. the PLT. The default is '-mgotplt'.
  15583. '-melf'
  15584. Legacy no-op option only recognized with the cris-axis-elf and
  15585. cris-axis-linux-gnu targets.
  15586. '-mlinux'
  15587. Legacy no-op option only recognized with the cris-axis-linux-gnu
  15588. target.
  15589. '-sim'
  15590. This option, recognized for the cris-axis-elf, arranges to link
  15591. with input-output functions from a simulator library. Code,
  15592. initialized data and zero-initialized data are allocated
  15593. consecutively.
  15594. '-sim2'
  15595. Like '-sim', but pass linker options to locate initialized data at
  15596. 0x40000000 and zero-initialized data at 0x80000000.
  15597. 
  15598. File: gcc.info, Node: CR16 Options, Next: C-SKY Options, Prev: CRIS Options, Up: Submodel Options
  15599. 3.19.10 CR16 Options
  15600. --------------------
  15601. These options are defined specifically for the CR16 ports.
  15602. '-mmac'
  15603. Enable the use of multiply-accumulate instructions. Disabled by
  15604. default.
  15605. '-mcr16cplus'
  15606. '-mcr16c'
  15607. Generate code for CR16C or CR16C+ architecture. CR16C+
  15608. architecture is default.
  15609. '-msim'
  15610. Links the library libsim.a which is in compatible with simulator.
  15611. Applicable to ELF compiler only.
  15612. '-mint32'
  15613. Choose integer type as 32-bit wide.
  15614. '-mbit-ops'
  15615. Generates 'sbit'/'cbit' instructions for bit manipulations.
  15616. '-mdata-model=MODEL'
  15617. Choose a data model. The choices for MODEL are 'near', 'far' or
  15618. 'medium'. 'medium' is default. However, 'far' is not valid with
  15619. '-mcr16c', as the CR16C architecture does not support the far data
  15620. model.
  15621. 
  15622. File: gcc.info, Node: C-SKY Options, Next: Darwin Options, Prev: CR16 Options, Up: Submodel Options
  15623. 3.19.11 C-SKY Options
  15624. ---------------------
  15625. GCC supports these options when compiling for C-SKY V2 processors.
  15626. '-march=ARCH'
  15627. Specify the C-SKY target architecture. Valid values for ARCH are:
  15628. 'ck801', 'ck802', 'ck803', 'ck807', and 'ck810'. The default is
  15629. 'ck810'.
  15630. '-mcpu=CPU'
  15631. Specify the C-SKY target processor. Valid values for CPU are:
  15632. 'ck801', 'ck801t', 'ck802', 'ck802t', 'ck802j', 'ck803', 'ck803h',
  15633. 'ck803t', 'ck803ht', 'ck803f', 'ck803fh', 'ck803e', 'ck803eh',
  15634. 'ck803et', 'ck803eht', 'ck803ef', 'ck803efh', 'ck803ft',
  15635. 'ck803eft', 'ck803efht', 'ck803r1', 'ck803hr1', 'ck803tr1',
  15636. 'ck803htr1', 'ck803fr1', 'ck803fhr1', 'ck803er1', 'ck803ehr1',
  15637. 'ck803etr1', 'ck803ehtr1', 'ck803efr1', 'ck803efhr1', 'ck803ftr1',
  15638. 'ck803eftr1', 'ck803efhtr1', 'ck803s', 'ck803st', 'ck803se',
  15639. 'ck803sf', 'ck803sef', 'ck803seft', 'ck807e', 'ck807ef', 'ck807',
  15640. 'ck807f', 'ck810e', 'ck810et', 'ck810ef', 'ck810eft', 'ck810',
  15641. 'ck810v', 'ck810f', 'ck810t', 'ck810fv', 'ck810tv', 'ck810ft', and
  15642. 'ck810ftv'.
  15643. '-mbig-endian'
  15644. '-EB'
  15645. '-mlittle-endian'
  15646. '-EL'
  15647. Select big- or little-endian code. The default is little-endian.
  15648. '-mhard-float'
  15649. '-msoft-float'
  15650. Select hardware or software floating-point implementations. The
  15651. default is soft float.
  15652. '-mdouble-float'
  15653. '-mno-double-float'
  15654. When '-mhard-float' is in effect, enable generation of
  15655. double-precision float instructions. This is the default except
  15656. when compiling for CK803.
  15657. '-mfdivdu'
  15658. '-mno-fdivdu'
  15659. When '-mhard-float' is in effect, enable generation of 'frecipd',
  15660. 'fsqrtd', and 'fdivd' instructions. This is the default except
  15661. when compiling for CK803.
  15662. '-mfpu=FPU'
  15663. Select the floating-point processor. This option can only be used
  15664. with '-mhard-float'. Values for FPU are 'fpv2_sf' (equivalent to
  15665. '-mno-double-float -mno-fdivdu'), 'fpv2' ('-mdouble-float
  15666. -mno-divdu'), and 'fpv2_divd' ('-mdouble-float -mdivdu').
  15667. '-melrw'
  15668. '-mno-elrw'
  15669. Enable the extended 'lrw' instruction. This option defaults to on
  15670. for CK801 and off otherwise.
  15671. '-mistack'
  15672. '-mno-istack'
  15673. Enable interrupt stack instructions; the default is off.
  15674. The '-mistack' option is required to handle the 'interrupt' and
  15675. 'isr' function attributes (*note C-SKY Function Attributes::).
  15676. '-mmp'
  15677. Enable multiprocessor instructions; the default is off.
  15678. '-mcp'
  15679. Enable coprocessor instructions; the default is off.
  15680. '-mcache'
  15681. Enable coprocessor instructions; the default is off.
  15682. '-msecurity'
  15683. Enable C-SKY security instructions; the default is off.
  15684. '-mtrust'
  15685. Enable C-SKY trust instructions; the default is off.
  15686. '-mdsp'
  15687. '-medsp'
  15688. '-mvdsp'
  15689. Enable C-SKY DSP, Enhanced DSP, or Vector DSP instructions,
  15690. respectively. All of these options default to off.
  15691. '-mdiv'
  15692. '-mno-div'
  15693. Generate divide instructions. Default is off.
  15694. '-msmart'
  15695. '-mno-smart'
  15696. Generate code for Smart Mode, using only registers numbered 0-7 to
  15697. allow use of 16-bit instructions. This option is ignored for CK801
  15698. where this is the required behavior, and it defaults to on for
  15699. CK802. For other targets, the default is off.
  15700. '-mhigh-registers'
  15701. '-mno-high-registers'
  15702. Generate code using the high registers numbered 16-31. This option
  15703. is not supported on CK801, CK802, or CK803, and is enabled by
  15704. default for other processors.
  15705. '-manchor'
  15706. '-mno-anchor'
  15707. Generate code using global anchor symbol addresses.
  15708. '-mpushpop'
  15709. '-mno-pushpop'
  15710. Generate code using 'push' and 'pop' instructions. This option
  15711. defaults to on.
  15712. '-mmultiple-stld'
  15713. '-mstm'
  15714. '-mno-multiple-stld'
  15715. '-mno-stm'
  15716. Generate code using 'stm' and 'ldm' instructions. This option
  15717. isn't supported on CK801 but is enabled by default on other
  15718. processors.
  15719. '-mconstpool'
  15720. '-mno-constpool'
  15721. Create constant pools in the compiler instead of deferring it to
  15722. the assembler. This option is the default and required for correct
  15723. code generation on CK801 and CK802, and is optional on other
  15724. processors.
  15725. '-mstack-size'
  15726. '-mno-stack-size'
  15727. Emit '.stack_size' directives for each function in the assembly
  15728. output. This option defaults to off.
  15729. '-mccrt'
  15730. '-mno-ccrt'
  15731. Generate code for the C-SKY compiler runtime instead of libgcc.
  15732. This option defaults to off.
  15733. '-mbranch-cost=N'
  15734. Set the branch costs to roughly 'n' instructions. The default is
  15735. 1.
  15736. '-msched-prolog'
  15737. '-mno-sched-prolog'
  15738. Permit scheduling of function prologue and epilogue sequences.
  15739. Using this option can result in code that is not compliant with the
  15740. C-SKY V2 ABI prologue requirements and that cannot be debugged or
  15741. backtraced. It is disabled by default.
  15742. 
  15743. File: gcc.info, Node: Darwin Options, Next: DEC Alpha Options, Prev: C-SKY Options, Up: Submodel Options
  15744. 3.19.12 Darwin Options
  15745. ----------------------
  15746. These options are defined for all architectures running the Darwin
  15747. operating system.
  15748. FSF GCC on Darwin does not create "fat" object files; it creates an
  15749. object file for the single architecture that GCC was built to target.
  15750. Apple's GCC on Darwin does create "fat" files if multiple '-arch'
  15751. options are used; it does so by running the compiler or linker multiple
  15752. times and joining the results together with 'lipo'.
  15753. The subtype of the file created (like 'ppc7400' or 'ppc970' or 'i686')
  15754. is determined by the flags that specify the ISA that GCC is targeting,
  15755. like '-mcpu' or '-march'. The '-force_cpusubtype_ALL' option can be
  15756. used to override this.
  15757. The Darwin tools vary in their behavior when presented with an ISA
  15758. mismatch. The assembler, 'as', only permits instructions to be used
  15759. that are valid for the subtype of the file it is generating, so you
  15760. cannot put 64-bit instructions in a 'ppc750' object file. The linker
  15761. for shared libraries, '/usr/bin/libtool', fails and prints an error if
  15762. asked to create a shared library with a less restrictive subtype than
  15763. its input files (for instance, trying to put a 'ppc970' object file in a
  15764. 'ppc7400' library). The linker for executables, 'ld', quietly gives the
  15765. executable the most restrictive subtype of any of its input files.
  15766. '-FDIR'
  15767. Add the framework directory DIR to the head of the list of
  15768. directories to be searched for header files. These directories are
  15769. interleaved with those specified by '-I' options and are scanned in
  15770. a left-to-right order.
  15771. A framework directory is a directory with frameworks in it. A
  15772. framework is a directory with a 'Headers' and/or 'PrivateHeaders'
  15773. directory contained directly in it that ends in '.framework'. The
  15774. name of a framework is the name of this directory excluding the
  15775. '.framework'. Headers associated with the framework are found in
  15776. one of those two directories, with 'Headers' being searched first.
  15777. A subframework is a framework directory that is in a framework's
  15778. 'Frameworks' directory. Includes of subframework headers can only
  15779. appear in a header of a framework that contains the subframework,
  15780. or in a sibling subframework header. Two subframeworks are
  15781. siblings if they occur in the same framework. A subframework
  15782. should not have the same name as a framework; a warning is issued
  15783. if this is violated. Currently a subframework cannot have
  15784. subframeworks; in the future, the mechanism may be extended to
  15785. support this. The standard frameworks can be found in
  15786. '/System/Library/Frameworks' and '/Library/Frameworks'. An example
  15787. include looks like '#include <Framework/header.h>', where
  15788. 'Framework' denotes the name of the framework and 'header.h' is
  15789. found in the 'PrivateHeaders' or 'Headers' directory.
  15790. '-iframeworkDIR'
  15791. Like '-F' except the directory is a treated as a system directory.
  15792. The main difference between this '-iframework' and '-F' is that
  15793. with '-iframework' the compiler does not warn about constructs
  15794. contained within header files found via DIR. This option is valid
  15795. only for the C family of languages.
  15796. '-gused'
  15797. Emit debugging information for symbols that are used. For stabs
  15798. debugging format, this enables '-feliminate-unused-debug-symbols'.
  15799. This is by default ON.
  15800. '-gfull'
  15801. Emit debugging information for all symbols and types.
  15802. '-mmacosx-version-min=VERSION'
  15803. The earliest version of MacOS X that this executable will run on is
  15804. VERSION. Typical values of VERSION include '10.1', '10.2', and
  15805. '10.3.9'.
  15806. If the compiler was built to use the system's headers by default,
  15807. then the default for this option is the system version on which the
  15808. compiler is running, otherwise the default is to make choices that
  15809. are compatible with as many systems and code bases as possible.
  15810. '-mkernel'
  15811. Enable kernel development mode. The '-mkernel' option sets
  15812. '-static', '-fno-common', '-fno-use-cxa-atexit', '-fno-exceptions',
  15813. '-fno-non-call-exceptions', '-fapple-kext', '-fno-weak' and
  15814. '-fno-rtti' where applicable. This mode also sets '-mno-altivec',
  15815. '-msoft-float', '-fno-builtin' and '-mlong-branch' for PowerPC
  15816. targets.
  15817. '-mone-byte-bool'
  15818. Override the defaults for 'bool' so that 'sizeof(bool)==1'. By
  15819. default 'sizeof(bool)' is '4' when compiling for Darwin/PowerPC and
  15820. '1' when compiling for Darwin/x86, so this option has no effect on
  15821. x86.
  15822. *Warning:* The '-mone-byte-bool' switch causes GCC to generate code
  15823. that is not binary compatible with code generated without that
  15824. switch. Using this switch may require recompiling all other
  15825. modules in a program, including system libraries. Use this switch
  15826. to conform to a non-default data model.
  15827. '-mfix-and-continue'
  15828. '-ffix-and-continue'
  15829. '-findirect-data'
  15830. Generate code suitable for fast turnaround development, such as to
  15831. allow GDB to dynamically load '.o' files into already-running
  15832. programs. '-findirect-data' and '-ffix-and-continue' are provided
  15833. for backwards compatibility.
  15834. '-all_load'
  15835. Loads all members of static archive libraries. See man ld(1) for
  15836. more information.
  15837. '-arch_errors_fatal'
  15838. Cause the errors having to do with files that have the wrong
  15839. architecture to be fatal.
  15840. '-bind_at_load'
  15841. Causes the output file to be marked such that the dynamic linker
  15842. will bind all undefined references when the file is loaded or
  15843. launched.
  15844. '-bundle'
  15845. Produce a Mach-o bundle format file. See man ld(1) for more
  15846. information.
  15847. '-bundle_loader EXECUTABLE'
  15848. This option specifies the EXECUTABLE that will load the build
  15849. output file being linked. See man ld(1) for more information.
  15850. '-dynamiclib'
  15851. When passed this option, GCC produces a dynamic library instead of
  15852. an executable when linking, using the Darwin 'libtool' command.
  15853. '-force_cpusubtype_ALL'
  15854. This causes GCC's output file to have the 'ALL' subtype, instead of
  15855. one controlled by the '-mcpu' or '-march' option.
  15856. '-allowable_client CLIENT_NAME'
  15857. '-client_name'
  15858. '-compatibility_version'
  15859. '-current_version'
  15860. '-dead_strip'
  15861. '-dependency-file'
  15862. '-dylib_file'
  15863. '-dylinker_install_name'
  15864. '-dynamic'
  15865. '-exported_symbols_list'
  15866. '-filelist'
  15867. '-flat_namespace'
  15868. '-force_flat_namespace'
  15869. '-headerpad_max_install_names'
  15870. '-image_base'
  15871. '-init'
  15872. '-install_name'
  15873. '-keep_private_externs'
  15874. '-multi_module'
  15875. '-multiply_defined'
  15876. '-multiply_defined_unused'
  15877. '-noall_load'
  15878. '-no_dead_strip_inits_and_terms'
  15879. '-nofixprebinding'
  15880. '-nomultidefs'
  15881. '-noprebind'
  15882. '-noseglinkedit'
  15883. '-pagezero_size'
  15884. '-prebind'
  15885. '-prebind_all_twolevel_modules'
  15886. '-private_bundle'
  15887. '-read_only_relocs'
  15888. '-sectalign'
  15889. '-sectobjectsymbols'
  15890. '-whyload'
  15891. '-seg1addr'
  15892. '-sectcreate'
  15893. '-sectobjectsymbols'
  15894. '-sectorder'
  15895. '-segaddr'
  15896. '-segs_read_only_addr'
  15897. '-segs_read_write_addr'
  15898. '-seg_addr_table'
  15899. '-seg_addr_table_filename'
  15900. '-seglinkedit'
  15901. '-segprot'
  15902. '-segs_read_only_addr'
  15903. '-segs_read_write_addr'
  15904. '-single_module'
  15905. '-static'
  15906. '-sub_library'
  15907. '-sub_umbrella'
  15908. '-twolevel_namespace'
  15909. '-umbrella'
  15910. '-undefined'
  15911. '-unexported_symbols_list'
  15912. '-weak_reference_mismatches'
  15913. '-whatsloaded'
  15914. These options are passed to the Darwin linker. The Darwin linker
  15915. man page describes them in detail.
  15916. 
  15917. File: gcc.info, Node: DEC Alpha Options, Next: eBPF Options, Prev: Darwin Options, Up: Submodel Options
  15918. 3.19.13 DEC Alpha Options
  15919. -------------------------
  15920. These '-m' options are defined for the DEC Alpha implementations:
  15921. '-mno-soft-float'
  15922. '-msoft-float'
  15923. Use (do not use) the hardware floating-point instructions for
  15924. floating-point operations. When '-msoft-float' is specified,
  15925. functions in 'libgcc.a' are used to perform floating-point
  15926. operations. Unless they are replaced by routines that emulate the
  15927. floating-point operations, or compiled in such a way as to call
  15928. such emulations routines, these routines issue floating-point
  15929. operations. If you are compiling for an Alpha without
  15930. floating-point operations, you must ensure that the library is
  15931. built so as not to call them.
  15932. Note that Alpha implementations without floating-point operations
  15933. are required to have floating-point registers.
  15934. '-mfp-reg'
  15935. '-mno-fp-regs'
  15936. Generate code that uses (does not use) the floating-point register
  15937. set. '-mno-fp-regs' implies '-msoft-float'. If the floating-point
  15938. register set is not used, floating-point operands are passed in
  15939. integer registers as if they were integers and floating-point
  15940. results are passed in '$0' instead of '$f0'. This is a
  15941. non-standard calling sequence, so any function with a
  15942. floating-point argument or return value called by code compiled
  15943. with '-mno-fp-regs' must also be compiled with that option.
  15944. A typical use of this option is building a kernel that does not
  15945. use, and hence need not save and restore, any floating-point
  15946. registers.
  15947. '-mieee'
  15948. The Alpha architecture implements floating-point hardware optimized
  15949. for maximum performance. It is mostly compliant with the IEEE
  15950. floating-point standard. However, for full compliance, software
  15951. assistance is required. This option generates code fully
  15952. IEEE-compliant code _except_ that the INEXACT-FLAG is not
  15953. maintained (see below). If this option is turned on, the
  15954. preprocessor macro '_IEEE_FP' is defined during compilation. The
  15955. resulting code is less efficient but is able to correctly support
  15956. denormalized numbers and exceptional IEEE values such as
  15957. not-a-number and plus/minus infinity. Other Alpha compilers call
  15958. this option '-ieee_with_no_inexact'.
  15959. '-mieee-with-inexact'
  15960. This is like '-mieee' except the generated code also maintains the
  15961. IEEE INEXACT-FLAG. Turning on this option causes the generated
  15962. code to implement fully-compliant IEEE math. In addition to
  15963. '_IEEE_FP', '_IEEE_FP_EXACT' is defined as a preprocessor macro.
  15964. On some Alpha implementations the resulting code may execute
  15965. significantly slower than the code generated by default. Since
  15966. there is very little code that depends on the INEXACT-FLAG, you
  15967. should normally not specify this option. Other Alpha compilers
  15968. call this option '-ieee_with_inexact'.
  15969. '-mfp-trap-mode=TRAP-MODE'
  15970. This option controls what floating-point related traps are enabled.
  15971. Other Alpha compilers call this option '-fptm TRAP-MODE'. The trap
  15972. mode can be set to one of four values:
  15973. 'n'
  15974. This is the default (normal) setting. The only traps that are
  15975. enabled are the ones that cannot be disabled in software
  15976. (e.g., division by zero trap).
  15977. 'u'
  15978. In addition to the traps enabled by 'n', underflow traps are
  15979. enabled as well.
  15980. 'su'
  15981. Like 'u', but the instructions are marked to be safe for
  15982. software completion (see Alpha architecture manual for
  15983. details).
  15984. 'sui'
  15985. Like 'su', but inexact traps are enabled as well.
  15986. '-mfp-rounding-mode=ROUNDING-MODE'
  15987. Selects the IEEE rounding mode. Other Alpha compilers call this
  15988. option '-fprm ROUNDING-MODE'. The ROUNDING-MODE can be one of:
  15989. 'n'
  15990. Normal IEEE rounding mode. Floating-point numbers are rounded
  15991. towards the nearest machine number or towards the even machine
  15992. number in case of a tie.
  15993. 'm'
  15994. Round towards minus infinity.
  15995. 'c'
  15996. Chopped rounding mode. Floating-point numbers are rounded
  15997. towards zero.
  15998. 'd'
  15999. Dynamic rounding mode. A field in the floating-point control
  16000. register (FPCR, see Alpha architecture reference manual)
  16001. controls the rounding mode in effect. The C library
  16002. initializes this register for rounding towards plus infinity.
  16003. Thus, unless your program modifies the FPCR, 'd' corresponds
  16004. to round towards plus infinity.
  16005. '-mtrap-precision=TRAP-PRECISION'
  16006. In the Alpha architecture, floating-point traps are imprecise.
  16007. This means without software assistance it is impossible to recover
  16008. from a floating trap and program execution normally needs to be
  16009. terminated. GCC can generate code that can assist operating system
  16010. trap handlers in determining the exact location that caused a
  16011. floating-point trap. Depending on the requirements of an
  16012. application, different levels of precisions can be selected:
  16013. 'p'
  16014. Program precision. This option is the default and means a
  16015. trap handler can only identify which program caused a
  16016. floating-point exception.
  16017. 'f'
  16018. Function precision. The trap handler can determine the
  16019. function that caused a floating-point exception.
  16020. 'i'
  16021. Instruction precision. The trap handler can determine the
  16022. exact instruction that caused a floating-point exception.
  16023. Other Alpha compilers provide the equivalent options called
  16024. '-scope_safe' and '-resumption_safe'.
  16025. '-mieee-conformant'
  16026. This option marks the generated code as IEEE conformant. You must
  16027. not use this option unless you also specify '-mtrap-precision=i'
  16028. and either '-mfp-trap-mode=su' or '-mfp-trap-mode=sui'. Its only
  16029. effect is to emit the line '.eflag 48' in the function prologue of
  16030. the generated assembly file.
  16031. '-mbuild-constants'
  16032. Normally GCC examines a 32- or 64-bit integer constant to see if it
  16033. can construct it from smaller constants in two or three
  16034. instructions. If it cannot, it outputs the constant as a literal
  16035. and generates code to load it from the data segment at run time.
  16036. Use this option to require GCC to construct _all_ integer constants
  16037. using code, even if it takes more instructions (the maximum is
  16038. six).
  16039. You typically use this option to build a shared library dynamic
  16040. loader. Itself a shared library, it must relocate itself in memory
  16041. before it can find the variables and constants in its own data
  16042. segment.
  16043. '-mbwx'
  16044. '-mno-bwx'
  16045. '-mcix'
  16046. '-mno-cix'
  16047. '-mfix'
  16048. '-mno-fix'
  16049. '-mmax'
  16050. '-mno-max'
  16051. Indicate whether GCC should generate code to use the optional BWX,
  16052. CIX, FIX and MAX instruction sets. The default is to use the
  16053. instruction sets supported by the CPU type specified via '-mcpu='
  16054. option or that of the CPU on which GCC was built if none is
  16055. specified.
  16056. '-mfloat-vax'
  16057. '-mfloat-ieee'
  16058. Generate code that uses (does not use) VAX F and G floating-point
  16059. arithmetic instead of IEEE single and double precision.
  16060. '-mexplicit-relocs'
  16061. '-mno-explicit-relocs'
  16062. Older Alpha assemblers provided no way to generate symbol
  16063. relocations except via assembler macros. Use of these macros does
  16064. not allow optimal instruction scheduling. GNU binutils as of
  16065. version 2.12 supports a new syntax that allows the compiler to
  16066. explicitly mark which relocations should apply to which
  16067. instructions. This option is mostly useful for debugging, as GCC
  16068. detects the capabilities of the assembler when it is built and sets
  16069. the default accordingly.
  16070. '-msmall-data'
  16071. '-mlarge-data'
  16072. When '-mexplicit-relocs' is in effect, static data is accessed via
  16073. "gp-relative" relocations. When '-msmall-data' is used, objects 8
  16074. bytes long or smaller are placed in a "small data area" (the
  16075. '.sdata' and '.sbss' sections) and are accessed via 16-bit
  16076. relocations off of the '$gp' register. This limits the size of the
  16077. small data area to 64KB, but allows the variables to be directly
  16078. accessed via a single instruction.
  16079. The default is '-mlarge-data'. With this option the data area is
  16080. limited to just below 2GB. Programs that require more than 2GB of
  16081. data must use 'malloc' or 'mmap' to allocate the data in the heap
  16082. instead of in the program's data segment.
  16083. When generating code for shared libraries, '-fpic' implies
  16084. '-msmall-data' and '-fPIC' implies '-mlarge-data'.
  16085. '-msmall-text'
  16086. '-mlarge-text'
  16087. When '-msmall-text' is used, the compiler assumes that the code of
  16088. the entire program (or shared library) fits in 4MB, and is thus
  16089. reachable with a branch instruction. When '-msmall-data' is used,
  16090. the compiler can assume that all local symbols share the same '$gp'
  16091. value, and thus reduce the number of instructions required for a
  16092. function call from 4 to 1.
  16093. The default is '-mlarge-text'.
  16094. '-mcpu=CPU_TYPE'
  16095. Set the instruction set and instruction scheduling parameters for
  16096. machine type CPU_TYPE. You can specify either the 'EV' style name
  16097. or the corresponding chip number. GCC supports scheduling
  16098. parameters for the EV4, EV5 and EV6 family of processors and
  16099. chooses the default values for the instruction set from the
  16100. processor you specify. If you do not specify a processor type, GCC
  16101. defaults to the processor on which the compiler was built.
  16102. Supported values for CPU_TYPE are
  16103. 'ev4'
  16104. 'ev45'
  16105. '21064'
  16106. Schedules as an EV4 and has no instruction set extensions.
  16107. 'ev5'
  16108. '21164'
  16109. Schedules as an EV5 and has no instruction set extensions.
  16110. 'ev56'
  16111. '21164a'
  16112. Schedules as an EV5 and supports the BWX extension.
  16113. 'pca56'
  16114. '21164pc'
  16115. '21164PC'
  16116. Schedules as an EV5 and supports the BWX and MAX extensions.
  16117. 'ev6'
  16118. '21264'
  16119. Schedules as an EV6 and supports the BWX, FIX, and MAX
  16120. extensions.
  16121. 'ev67'
  16122. '21264a'
  16123. Schedules as an EV6 and supports the BWX, CIX, FIX, and MAX
  16124. extensions.
  16125. Native toolchains also support the value 'native', which selects
  16126. the best architecture option for the host processor.
  16127. '-mcpu=native' has no effect if GCC does not recognize the
  16128. processor.
  16129. '-mtune=CPU_TYPE'
  16130. Set only the instruction scheduling parameters for machine type
  16131. CPU_TYPE. The instruction set is not changed.
  16132. Native toolchains also support the value 'native', which selects
  16133. the best architecture option for the host processor.
  16134. '-mtune=native' has no effect if GCC does not recognize the
  16135. processor.
  16136. '-mmemory-latency=TIME'
  16137. Sets the latency the scheduler should assume for typical memory
  16138. references as seen by the application. This number is highly
  16139. dependent on the memory access patterns used by the application and
  16140. the size of the external cache on the machine.
  16141. Valid options for TIME are
  16142. 'NUMBER'
  16143. A decimal number representing clock cycles.
  16144. 'L1'
  16145. 'L2'
  16146. 'L3'
  16147. 'main'
  16148. The compiler contains estimates of the number of clock cycles
  16149. for "typical" EV4 & EV5 hardware for the Level 1, 2 & 3 caches
  16150. (also called Dcache, Scache, and Bcache), as well as to main
  16151. memory. Note that L3 is only valid for EV5.
  16152. 
  16153. File: gcc.info, Node: eBPF Options, Next: FR30 Options, Prev: DEC Alpha Options, Up: Submodel Options
  16154. 3.19.14 eBPF Options
  16155. --------------------
  16156. '-mframe-limit=BYTES'
  16157. This specifies the hard limit for frame sizes, in bytes.
  16158. Currently, the value that can be specified should be less than or
  16159. equal to '32767'. Defaults to whatever limit is imposed by the
  16160. version of the Linux kernel targeted.
  16161. '-mkernel=VERSION'
  16162. This specifies the minimum version of the kernel that will run the
  16163. compiled program. GCC uses this version to determine which
  16164. instructions to use, what kernel helpers to allow, etc. Currently,
  16165. VERSION can be one of '4.0', '4.1', '4.2', '4.3', '4.4', '4.5',
  16166. '4.6', '4.7', '4.8', '4.9', '4.10', '4.11', '4.12', '4.13', '4.14',
  16167. '4.15', '4.16', '4.17', '4.18', '4.19', '4.20', '5.0', '5.1',
  16168. '5.2', 'latest' and 'native'.
  16169. '-mbig-endian'
  16170. Generate code for a big-endian target.
  16171. '-mlittle-endian'
  16172. Generate code for a little-endian target. This is the default.
  16173. 
  16174. File: gcc.info, Node: FR30 Options, Next: FT32 Options, Prev: eBPF Options, Up: Submodel Options
  16175. 3.19.15 FR30 Options
  16176. --------------------
  16177. These options are defined specifically for the FR30 port.
  16178. '-msmall-model'
  16179. Use the small address space model. This can produce smaller code,
  16180. but it does assume that all symbolic values and addresses fit into
  16181. a 20-bit range.
  16182. '-mno-lsim'
  16183. Assume that runtime support has been provided and so there is no
  16184. need to include the simulator library ('libsim.a') on the linker
  16185. command line.
  16186. 
  16187. File: gcc.info, Node: FT32 Options, Next: FRV Options, Prev: FR30 Options, Up: Submodel Options
  16188. 3.19.16 FT32 Options
  16189. --------------------
  16190. These options are defined specifically for the FT32 port.
  16191. '-msim'
  16192. Specifies that the program will be run on the simulator. This
  16193. causes an alternate runtime startup and library to be linked. You
  16194. must not use this option when generating programs that will run on
  16195. real hardware; you must provide your own runtime library for
  16196. whatever I/O functions are needed.
  16197. '-mlra'
  16198. Enable Local Register Allocation. This is still experimental for
  16199. FT32, so by default the compiler uses standard reload.
  16200. '-mnodiv'
  16201. Do not use div and mod instructions.
  16202. '-mft32b'
  16203. Enable use of the extended instructions of the FT32B processor.
  16204. '-mcompress'
  16205. Compress all code using the Ft32B code compression scheme.
  16206. '-mnopm'
  16207. Do not generate code that reads program memory.
  16208. 
  16209. File: gcc.info, Node: FRV Options, Next: GNU/Linux Options, Prev: FT32 Options, Up: Submodel Options
  16210. 3.19.17 FRV Options
  16211. -------------------
  16212. '-mgpr-32'
  16213. Only use the first 32 general-purpose registers.
  16214. '-mgpr-64'
  16215. Use all 64 general-purpose registers.
  16216. '-mfpr-32'
  16217. Use only the first 32 floating-point registers.
  16218. '-mfpr-64'
  16219. Use all 64 floating-point registers.
  16220. '-mhard-float'
  16221. Use hardware instructions for floating-point operations.
  16222. '-msoft-float'
  16223. Use library routines for floating-point operations.
  16224. '-malloc-cc'
  16225. Dynamically allocate condition code registers.
  16226. '-mfixed-cc'
  16227. Do not try to dynamically allocate condition code registers, only
  16228. use 'icc0' and 'fcc0'.
  16229. '-mdword'
  16230. Change ABI to use double word insns.
  16231. '-mno-dword'
  16232. Do not use double word instructions.
  16233. '-mdouble'
  16234. Use floating-point double instructions.
  16235. '-mno-double'
  16236. Do not use floating-point double instructions.
  16237. '-mmedia'
  16238. Use media instructions.
  16239. '-mno-media'
  16240. Do not use media instructions.
  16241. '-mmuladd'
  16242. Use multiply and add/subtract instructions.
  16243. '-mno-muladd'
  16244. Do not use multiply and add/subtract instructions.
  16245. '-mfdpic'
  16246. Select the FDPIC ABI, which uses function descriptors to represent
  16247. pointers to functions. Without any PIC/PIE-related options, it
  16248. implies '-fPIE'. With '-fpic' or '-fpie', it assumes GOT entries
  16249. and small data are within a 12-bit range from the GOT base address;
  16250. with '-fPIC' or '-fPIE', GOT offsets are computed with 32 bits.
  16251. With a 'bfin-elf' target, this option implies '-msim'.
  16252. '-minline-plt'
  16253. Enable inlining of PLT entries in function calls to functions that
  16254. are not known to bind locally. It has no effect without '-mfdpic'.
  16255. It's enabled by default if optimizing for speed and compiling for
  16256. shared libraries (i.e., '-fPIC' or '-fpic'), or when an
  16257. optimization option such as '-O3' or above is present in the
  16258. command line.
  16259. '-mTLS'
  16260. Assume a large TLS segment when generating thread-local code.
  16261. '-mtls'
  16262. Do not assume a large TLS segment when generating thread-local
  16263. code.
  16264. '-mgprel-ro'
  16265. Enable the use of 'GPREL' relocations in the FDPIC ABI for data
  16266. that is known to be in read-only sections. It's enabled by
  16267. default, except for '-fpic' or '-fpie': even though it may help
  16268. make the global offset table smaller, it trades 1 instruction for
  16269. 4. With '-fPIC' or '-fPIE', it trades 3 instructions for 4, one of
  16270. which may be shared by multiple symbols, and it avoids the need for
  16271. a GOT entry for the referenced symbol, so it's more likely to be a
  16272. win. If it is not, '-mno-gprel-ro' can be used to disable it.
  16273. '-multilib-library-pic'
  16274. Link with the (library, not FD) pic libraries. It's implied by
  16275. '-mlibrary-pic', as well as by '-fPIC' and '-fpic' without
  16276. '-mfdpic'. You should never have to use it explicitly.
  16277. '-mlinked-fp'
  16278. Follow the EABI requirement of always creating a frame pointer
  16279. whenever a stack frame is allocated. This option is enabled by
  16280. default and can be disabled with '-mno-linked-fp'.
  16281. '-mlong-calls'
  16282. Use indirect addressing to call functions outside the current
  16283. compilation unit. This allows the functions to be placed anywhere
  16284. within the 32-bit address space.
  16285. '-malign-labels'
  16286. Try to align labels to an 8-byte boundary by inserting NOPs into
  16287. the previous packet. This option only has an effect when VLIW
  16288. packing is enabled. It doesn't create new packets; it merely adds
  16289. NOPs to existing ones.
  16290. '-mlibrary-pic'
  16291. Generate position-independent EABI code.
  16292. '-macc-4'
  16293. Use only the first four media accumulator registers.
  16294. '-macc-8'
  16295. Use all eight media accumulator registers.
  16296. '-mpack'
  16297. Pack VLIW instructions.
  16298. '-mno-pack'
  16299. Do not pack VLIW instructions.
  16300. '-mno-eflags'
  16301. Do not mark ABI switches in e_flags.
  16302. '-mcond-move'
  16303. Enable the use of conditional-move instructions (default).
  16304. This switch is mainly for debugging the compiler and will likely be
  16305. removed in a future version.
  16306. '-mno-cond-move'
  16307. Disable the use of conditional-move instructions.
  16308. This switch is mainly for debugging the compiler and will likely be
  16309. removed in a future version.
  16310. '-mscc'
  16311. Enable the use of conditional set instructions (default).
  16312. This switch is mainly for debugging the compiler and will likely be
  16313. removed in a future version.
  16314. '-mno-scc'
  16315. Disable the use of conditional set instructions.
  16316. This switch is mainly for debugging the compiler and will likely be
  16317. removed in a future version.
  16318. '-mcond-exec'
  16319. Enable the use of conditional execution (default).
  16320. This switch is mainly for debugging the compiler and will likely be
  16321. removed in a future version.
  16322. '-mno-cond-exec'
  16323. Disable the use of conditional execution.
  16324. This switch is mainly for debugging the compiler and will likely be
  16325. removed in a future version.
  16326. '-mvliw-branch'
  16327. Run a pass to pack branches into VLIW instructions (default).
  16328. This switch is mainly for debugging the compiler and will likely be
  16329. removed in a future version.
  16330. '-mno-vliw-branch'
  16331. Do not run a pass to pack branches into VLIW instructions.
  16332. This switch is mainly for debugging the compiler and will likely be
  16333. removed in a future version.
  16334. '-mmulti-cond-exec'
  16335. Enable optimization of '&&' and '||' in conditional execution
  16336. (default).
  16337. This switch is mainly for debugging the compiler and will likely be
  16338. removed in a future version.
  16339. '-mno-multi-cond-exec'
  16340. Disable optimization of '&&' and '||' in conditional execution.
  16341. This switch is mainly for debugging the compiler and will likely be
  16342. removed in a future version.
  16343. '-mnested-cond-exec'
  16344. Enable nested conditional execution optimizations (default).
  16345. This switch is mainly for debugging the compiler and will likely be
  16346. removed in a future version.
  16347. '-mno-nested-cond-exec'
  16348. Disable nested conditional execution optimizations.
  16349. This switch is mainly for debugging the compiler and will likely be
  16350. removed in a future version.
  16351. '-moptimize-membar'
  16352. This switch removes redundant 'membar' instructions from the
  16353. compiler-generated code. It is enabled by default.
  16354. '-mno-optimize-membar'
  16355. This switch disables the automatic removal of redundant 'membar'
  16356. instructions from the generated code.
  16357. '-mtomcat-stats'
  16358. Cause gas to print out tomcat statistics.
  16359. '-mcpu=CPU'
  16360. Select the processor type for which to generate code. Possible
  16361. values are 'frv', 'fr550', 'tomcat', 'fr500', 'fr450', 'fr405',
  16362. 'fr400', 'fr300' and 'simple'.
  16363. 
  16364. File: gcc.info, Node: GNU/Linux Options, Next: H8/300 Options, Prev: FRV Options, Up: Submodel Options
  16365. 3.19.18 GNU/Linux Options
  16366. -------------------------
  16367. These '-m' options are defined for GNU/Linux targets:
  16368. '-mglibc'
  16369. Use the GNU C library. This is the default except on
  16370. '*-*-linux-*uclibc*', '*-*-linux-*musl*' and '*-*-linux-*android*'
  16371. targets.
  16372. '-muclibc'
  16373. Use uClibc C library. This is the default on '*-*-linux-*uclibc*'
  16374. targets.
  16375. '-mmusl'
  16376. Use the musl C library. This is the default on '*-*-linux-*musl*'
  16377. targets.
  16378. '-mbionic'
  16379. Use Bionic C library. This is the default on '*-*-linux-*android*'
  16380. targets.
  16381. '-mandroid'
  16382. Compile code compatible with Android platform. This is the default
  16383. on '*-*-linux-*android*' targets.
  16384. When compiling, this option enables '-mbionic', '-fPIC',
  16385. '-fno-exceptions' and '-fno-rtti' by default. When linking, this
  16386. option makes the GCC driver pass Android-specific options to the
  16387. linker. Finally, this option causes the preprocessor macro
  16388. '__ANDROID__' to be defined.
  16389. '-tno-android-cc'
  16390. Disable compilation effects of '-mandroid', i.e., do not enable
  16391. '-mbionic', '-fPIC', '-fno-exceptions' and '-fno-rtti' by default.
  16392. '-tno-android-ld'
  16393. Disable linking effects of '-mandroid', i.e., pass standard Linux
  16394. linking options to the linker.
  16395. 
  16396. File: gcc.info, Node: H8/300 Options, Next: HPPA Options, Prev: GNU/Linux Options, Up: Submodel Options
  16397. 3.19.19 H8/300 Options
  16398. ----------------------
  16399. These '-m' options are defined for the H8/300 implementations:
  16400. '-mrelax'
  16401. Shorten some address references at link time, when possible; uses
  16402. the linker option '-relax'. *Note 'ld' and the H8/300: (ld)H8/300,
  16403. for a fuller description.
  16404. '-mh'
  16405. Generate code for the H8/300H.
  16406. '-ms'
  16407. Generate code for the H8S.
  16408. '-mn'
  16409. Generate code for the H8S and H8/300H in the normal mode. This
  16410. switch must be used either with '-mh' or '-ms'.
  16411. '-ms2600'
  16412. Generate code for the H8S/2600. This switch must be used with
  16413. '-ms'.
  16414. '-mexr'
  16415. Extended registers are stored on stack before execution of function
  16416. with monitor attribute. Default option is '-mexr'. This option is
  16417. valid only for H8S targets.
  16418. '-mno-exr'
  16419. Extended registers are not stored on stack before execution of
  16420. function with monitor attribute. Default option is '-mno-exr'.
  16421. This option is valid only for H8S targets.
  16422. '-mint32'
  16423. Make 'int' data 32 bits by default.
  16424. '-malign-300'
  16425. On the H8/300H and H8S, use the same alignment rules as for the
  16426. H8/300. The default for the H8/300H and H8S is to align longs and
  16427. floats on 4-byte boundaries. '-malign-300' causes them to be
  16428. aligned on 2-byte boundaries. This option has no effect on the
  16429. H8/300.
  16430. 
  16431. File: gcc.info, Node: HPPA Options, Next: IA-64 Options, Prev: H8/300 Options, Up: Submodel Options
  16432. 3.19.20 HPPA Options
  16433. --------------------
  16434. These '-m' options are defined for the HPPA family of computers:
  16435. '-march=ARCHITECTURE-TYPE'
  16436. Generate code for the specified architecture. The choices for
  16437. ARCHITECTURE-TYPE are '1.0' for PA 1.0, '1.1' for PA 1.1, and '2.0'
  16438. for PA 2.0 processors. Refer to '/usr/lib/sched.models' on an
  16439. HP-UX system to determine the proper architecture option for your
  16440. machine. Code compiled for lower numbered architectures runs on
  16441. higher numbered architectures, but not the other way around.
  16442. '-mpa-risc-1-0'
  16443. '-mpa-risc-1-1'
  16444. '-mpa-risc-2-0'
  16445. Synonyms for '-march=1.0', '-march=1.1', and '-march=2.0'
  16446. respectively.
  16447. '-mcaller-copies'
  16448. The caller copies function arguments passed by hidden reference.
  16449. This option should be used with care as it is not compatible with
  16450. the default 32-bit runtime. However, only aggregates larger than
  16451. eight bytes are passed by hidden reference and the option provides
  16452. better compatibility with OpenMP.
  16453. '-mjump-in-delay'
  16454. This option is ignored and provided for compatibility purposes
  16455. only.
  16456. '-mdisable-fpregs'
  16457. Prevent floating-point registers from being used in any manner.
  16458. This is necessary for compiling kernels that perform lazy context
  16459. switching of floating-point registers. If you use this option and
  16460. attempt to perform floating-point operations, the compiler aborts.
  16461. '-mdisable-indexing'
  16462. Prevent the compiler from using indexing address modes. This
  16463. avoids some rather obscure problems when compiling MIG generated
  16464. code under MACH.
  16465. '-mno-space-regs'
  16466. Generate code that assumes the target has no space registers. This
  16467. allows GCC to generate faster indirect calls and use unscaled index
  16468. address modes.
  16469. Such code is suitable for level 0 PA systems and kernels.
  16470. '-mfast-indirect-calls'
  16471. Generate code that assumes calls never cross space boundaries.
  16472. This allows GCC to emit code that performs faster indirect calls.
  16473. This option does not work in the presence of shared libraries or
  16474. nested functions.
  16475. '-mfixed-range=REGISTER-RANGE'
  16476. Generate code treating the given register range as fixed registers.
  16477. A fixed register is one that the register allocator cannot use.
  16478. This is useful when compiling kernel code. A register range is
  16479. specified as two registers separated by a dash. Multiple register
  16480. ranges can be specified separated by a comma.
  16481. '-mlong-load-store'
  16482. Generate 3-instruction load and store sequences as sometimes
  16483. required by the HP-UX 10 linker. This is equivalent to the '+k'
  16484. option to the HP compilers.
  16485. '-mportable-runtime'
  16486. Use the portable calling conventions proposed by HP for ELF
  16487. systems.
  16488. '-mgas'
  16489. Enable the use of assembler directives only GAS understands.
  16490. '-mschedule=CPU-TYPE'
  16491. Schedule code according to the constraints for the machine type
  16492. CPU-TYPE. The choices for CPU-TYPE are '700' '7100', '7100LC',
  16493. '7200', '7300' and '8000'. Refer to '/usr/lib/sched.models' on an
  16494. HP-UX system to determine the proper scheduling option for your
  16495. machine. The default scheduling is '8000'.
  16496. '-mlinker-opt'
  16497. Enable the optimization pass in the HP-UX linker. Note this makes
  16498. symbolic debugging impossible. It also triggers a bug in the HP-UX
  16499. 8 and HP-UX 9 linkers in which they give bogus error messages when
  16500. linking some programs.
  16501. '-msoft-float'
  16502. Generate output containing library calls for floating point.
  16503. *Warning:* the requisite libraries are not available for all HPPA
  16504. targets. Normally the facilities of the machine's usual C compiler
  16505. are used, but this cannot be done directly in cross-compilation.
  16506. You must make your own arrangements to provide suitable library
  16507. functions for cross-compilation.
  16508. '-msoft-float' changes the calling convention in the output file;
  16509. therefore, it is only useful if you compile _all_ of a program with
  16510. this option. In particular, you need to compile 'libgcc.a', the
  16511. library that comes with GCC, with '-msoft-float' in order for this
  16512. to work.
  16513. '-msio'
  16514. Generate the predefine, '_SIO', for server IO. The default is
  16515. '-mwsio'. This generates the predefines, '__hp9000s700',
  16516. '__hp9000s700__' and '_WSIO', for workstation IO. These options
  16517. are available under HP-UX and HI-UX.
  16518. '-mgnu-ld'
  16519. Use options specific to GNU 'ld'. This passes '-shared' to 'ld'
  16520. when building a shared library. It is the default when GCC is
  16521. configured, explicitly or implicitly, with the GNU linker. This
  16522. option does not affect which 'ld' is called; it only changes what
  16523. parameters are passed to that 'ld'. The 'ld' that is called is
  16524. determined by the '--with-ld' configure option, GCC's program
  16525. search path, and finally by the user's 'PATH'. The linker used by
  16526. GCC can be printed using 'which `gcc -print-prog-name=ld`'. This
  16527. option is only available on the 64-bit HP-UX GCC, i.e. configured
  16528. with 'hppa*64*-*-hpux*'.
  16529. '-mhp-ld'
  16530. Use options specific to HP 'ld'. This passes '-b' to 'ld' when
  16531. building a shared library and passes '+Accept TypeMismatch' to 'ld'
  16532. on all links. It is the default when GCC is configured, explicitly
  16533. or implicitly, with the HP linker. This option does not affect
  16534. which 'ld' is called; it only changes what parameters are passed to
  16535. that 'ld'. The 'ld' that is called is determined by the
  16536. '--with-ld' configure option, GCC's program search path, and
  16537. finally by the user's 'PATH'. The linker used by GCC can be
  16538. printed using 'which `gcc -print-prog-name=ld`'. This option is
  16539. only available on the 64-bit HP-UX GCC, i.e. configured with
  16540. 'hppa*64*-*-hpux*'.
  16541. '-mlong-calls'
  16542. Generate code that uses long call sequences. This ensures that a
  16543. call is always able to reach linker generated stubs. The default
  16544. is to generate long calls only when the distance from the call site
  16545. to the beginning of the function or translation unit, as the case
  16546. may be, exceeds a predefined limit set by the branch type being
  16547. used. The limits for normal calls are 7,600,000 and 240,000 bytes,
  16548. respectively for the PA 2.0 and PA 1.X architectures. Sibcalls are
  16549. always limited at 240,000 bytes.
  16550. Distances are measured from the beginning of functions when using
  16551. the '-ffunction-sections' option, or when using the '-mgas' and
  16552. '-mno-portable-runtime' options together under HP-UX with the SOM
  16553. linker.
  16554. It is normally not desirable to use this option as it degrades
  16555. performance. However, it may be useful in large applications,
  16556. particularly when partial linking is used to build the application.
  16557. The types of long calls used depends on the capabilities of the
  16558. assembler and linker, and the type of code being generated. The
  16559. impact on systems that support long absolute calls, and long pic
  16560. symbol-difference or pc-relative calls should be relatively small.
  16561. However, an indirect call is used on 32-bit ELF systems in pic code
  16562. and it is quite long.
  16563. '-munix=UNIX-STD'
  16564. Generate compiler predefines and select a startfile for the
  16565. specified UNIX standard. The choices for UNIX-STD are '93', '95'
  16566. and '98'. '93' is supported on all HP-UX versions. '95' is
  16567. available on HP-UX 10.10 and later. '98' is available on HP-UX
  16568. 11.11 and later. The default values are '93' for HP-UX 10.00, '95'
  16569. for HP-UX 10.10 though to 11.00, and '98' for HP-UX 11.11 and
  16570. later.
  16571. '-munix=93' provides the same predefines as GCC 3.3 and 3.4.
  16572. '-munix=95' provides additional predefines for 'XOPEN_UNIX' and
  16573. '_XOPEN_SOURCE_EXTENDED', and the startfile 'unix95.o'.
  16574. '-munix=98' provides additional predefines for '_XOPEN_UNIX',
  16575. '_XOPEN_SOURCE_EXTENDED', '_INCLUDE__STDC_A1_SOURCE' and
  16576. '_INCLUDE_XOPEN_SOURCE_500', and the startfile 'unix98.o'.
  16577. It is _important_ to note that this option changes the interfaces
  16578. for various library routines. It also affects the operational
  16579. behavior of the C library. Thus, _extreme_ care is needed in using
  16580. this option.
  16581. Library code that is intended to operate with more than one UNIX
  16582. standard must test, set and restore the variable
  16583. '__xpg4_extended_mask' as appropriate. Most GNU software doesn't
  16584. provide this capability.
  16585. '-nolibdld'
  16586. Suppress the generation of link options to search libdld.sl when
  16587. the '-static' option is specified on HP-UX 10 and later.
  16588. '-static'
  16589. The HP-UX implementation of setlocale in libc has a dependency on
  16590. libdld.sl. There isn't an archive version of libdld.sl. Thus,
  16591. when the '-static' option is specified, special link options are
  16592. needed to resolve this dependency.
  16593. On HP-UX 10 and later, the GCC driver adds the necessary options to
  16594. link with libdld.sl when the '-static' option is specified. This
  16595. causes the resulting binary to be dynamic. On the 64-bit port, the
  16596. linkers generate dynamic binaries by default in any case. The
  16597. '-nolibdld' option can be used to prevent the GCC driver from
  16598. adding these link options.
  16599. '-threads'
  16600. Add support for multithreading with the "dce thread" library under
  16601. HP-UX. This option sets flags for both the preprocessor and
  16602. linker.
  16603. 
  16604. File: gcc.info, Node: IA-64 Options, Next: LM32 Options, Prev: HPPA Options, Up: Submodel Options
  16605. 3.19.21 IA-64 Options
  16606. ---------------------
  16607. These are the '-m' options defined for the Intel IA-64 architecture.
  16608. '-mbig-endian'
  16609. Generate code for a big-endian target. This is the default for
  16610. HP-UX.
  16611. '-mlittle-endian'
  16612. Generate code for a little-endian target. This is the default for
  16613. AIX5 and GNU/Linux.
  16614. '-mgnu-as'
  16615. '-mno-gnu-as'
  16616. Generate (or don't) code for the GNU assembler. This is the
  16617. default.
  16618. '-mgnu-ld'
  16619. '-mno-gnu-ld'
  16620. Generate (or don't) code for the GNU linker. This is the default.
  16621. '-mno-pic'
  16622. Generate code that does not use a global pointer register. The
  16623. result is not position independent code, and violates the IA-64
  16624. ABI.
  16625. '-mvolatile-asm-stop'
  16626. '-mno-volatile-asm-stop'
  16627. Generate (or don't) a stop bit immediately before and after
  16628. volatile asm statements.
  16629. '-mregister-names'
  16630. '-mno-register-names'
  16631. Generate (or don't) 'in', 'loc', and 'out' register names for the
  16632. stacked registers. This may make assembler output more readable.
  16633. '-mno-sdata'
  16634. '-msdata'
  16635. Disable (or enable) optimizations that use the small data section.
  16636. This may be useful for working around optimizer bugs.
  16637. '-mconstant-gp'
  16638. Generate code that uses a single constant global pointer value.
  16639. This is useful when compiling kernel code.
  16640. '-mauto-pic'
  16641. Generate code that is self-relocatable. This implies
  16642. '-mconstant-gp'. This is useful when compiling firmware code.
  16643. '-minline-float-divide-min-latency'
  16644. Generate code for inline divides of floating-point values using the
  16645. minimum latency algorithm.
  16646. '-minline-float-divide-max-throughput'
  16647. Generate code for inline divides of floating-point values using the
  16648. maximum throughput algorithm.
  16649. '-mno-inline-float-divide'
  16650. Do not generate inline code for divides of floating-point values.
  16651. '-minline-int-divide-min-latency'
  16652. Generate code for inline divides of integer values using the
  16653. minimum latency algorithm.
  16654. '-minline-int-divide-max-throughput'
  16655. Generate code for inline divides of integer values using the
  16656. maximum throughput algorithm.
  16657. '-mno-inline-int-divide'
  16658. Do not generate inline code for divides of integer values.
  16659. '-minline-sqrt-min-latency'
  16660. Generate code for inline square roots using the minimum latency
  16661. algorithm.
  16662. '-minline-sqrt-max-throughput'
  16663. Generate code for inline square roots using the maximum throughput
  16664. algorithm.
  16665. '-mno-inline-sqrt'
  16666. Do not generate inline code for 'sqrt'.
  16667. '-mfused-madd'
  16668. '-mno-fused-madd'
  16669. Do (don't) generate code that uses the fused multiply/add or
  16670. multiply/subtract instructions. The default is to use these
  16671. instructions.
  16672. '-mno-dwarf2-asm'
  16673. '-mdwarf2-asm'
  16674. Don't (or do) generate assembler code for the DWARF line number
  16675. debugging info. This may be useful when not using the GNU
  16676. assembler.
  16677. '-mearly-stop-bits'
  16678. '-mno-early-stop-bits'
  16679. Allow stop bits to be placed earlier than immediately preceding the
  16680. instruction that triggered the stop bit. This can improve
  16681. instruction scheduling, but does not always do so.
  16682. '-mfixed-range=REGISTER-RANGE'
  16683. Generate code treating the given register range as fixed registers.
  16684. A fixed register is one that the register allocator cannot use.
  16685. This is useful when compiling kernel code. A register range is
  16686. specified as two registers separated by a dash. Multiple register
  16687. ranges can be specified separated by a comma.
  16688. '-mtls-size=TLS-SIZE'
  16689. Specify bit size of immediate TLS offsets. Valid values are 14,
  16690. 22, and 64.
  16691. '-mtune=CPU-TYPE'
  16692. Tune the instruction scheduling for a particular CPU, Valid values
  16693. are 'itanium', 'itanium1', 'merced', 'itanium2', and 'mckinley'.
  16694. '-milp32'
  16695. '-mlp64'
  16696. Generate code for a 32-bit or 64-bit environment. The 32-bit
  16697. environment sets int, long and pointer to 32 bits. The 64-bit
  16698. environment sets int to 32 bits and long and pointer to 64 bits.
  16699. These are HP-UX specific flags.
  16700. '-mno-sched-br-data-spec'
  16701. '-msched-br-data-spec'
  16702. (Dis/En)able data speculative scheduling before reload. This
  16703. results in generation of 'ld.a' instructions and the corresponding
  16704. check instructions ('ld.c' / 'chk.a'). The default setting is
  16705. disabled.
  16706. '-msched-ar-data-spec'
  16707. '-mno-sched-ar-data-spec'
  16708. (En/Dis)able data speculative scheduling after reload. This
  16709. results in generation of 'ld.a' instructions and the corresponding
  16710. check instructions ('ld.c' / 'chk.a'). The default setting is
  16711. enabled.
  16712. '-mno-sched-control-spec'
  16713. '-msched-control-spec'
  16714. (Dis/En)able control speculative scheduling. This feature is
  16715. available only during region scheduling (i.e. before reload). This
  16716. results in generation of the 'ld.s' instructions and the
  16717. corresponding check instructions 'chk.s'. The default setting is
  16718. disabled.
  16719. '-msched-br-in-data-spec'
  16720. '-mno-sched-br-in-data-spec'
  16721. (En/Dis)able speculative scheduling of the instructions that are
  16722. dependent on the data speculative loads before reload. This is
  16723. effective only with '-msched-br-data-spec' enabled. The default
  16724. setting is enabled.
  16725. '-msched-ar-in-data-spec'
  16726. '-mno-sched-ar-in-data-spec'
  16727. (En/Dis)able speculative scheduling of the instructions that are
  16728. dependent on the data speculative loads after reload. This is
  16729. effective only with '-msched-ar-data-spec' enabled. The default
  16730. setting is enabled.
  16731. '-msched-in-control-spec'
  16732. '-mno-sched-in-control-spec'
  16733. (En/Dis)able speculative scheduling of the instructions that are
  16734. dependent on the control speculative loads. This is effective only
  16735. with '-msched-control-spec' enabled. The default setting is
  16736. enabled.
  16737. '-mno-sched-prefer-non-data-spec-insns'
  16738. '-msched-prefer-non-data-spec-insns'
  16739. If enabled, data-speculative instructions are chosen for schedule
  16740. only if there are no other choices at the moment. This makes the
  16741. use of the data speculation much more conservative. The default
  16742. setting is disabled.
  16743. '-mno-sched-prefer-non-control-spec-insns'
  16744. '-msched-prefer-non-control-spec-insns'
  16745. If enabled, control-speculative instructions are chosen for
  16746. schedule only if there are no other choices at the moment. This
  16747. makes the use of the control speculation much more conservative.
  16748. The default setting is disabled.
  16749. '-mno-sched-count-spec-in-critical-path'
  16750. '-msched-count-spec-in-critical-path'
  16751. If enabled, speculative dependencies are considered during
  16752. computation of the instructions priorities. This makes the use of
  16753. the speculation a bit more conservative. The default setting is
  16754. disabled.
  16755. '-msched-spec-ldc'
  16756. Use a simple data speculation check. This option is on by default.
  16757. '-msched-control-spec-ldc'
  16758. Use a simple check for control speculation. This option is on by
  16759. default.
  16760. '-msched-stop-bits-after-every-cycle'
  16761. Place a stop bit after every cycle when scheduling. This option is
  16762. on by default.
  16763. '-msched-fp-mem-deps-zero-cost'
  16764. Assume that floating-point stores and loads are not likely to cause
  16765. a conflict when placed into the same instruction group. This
  16766. option is disabled by default.
  16767. '-msel-sched-dont-check-control-spec'
  16768. Generate checks for control speculation in selective scheduling.
  16769. This flag is disabled by default.
  16770. '-msched-max-memory-insns=MAX-INSNS'
  16771. Limit on the number of memory insns per instruction group, giving
  16772. lower priority to subsequent memory insns attempting to schedule in
  16773. the same instruction group. Frequently useful to prevent cache
  16774. bank conflicts. The default value is 1.
  16775. '-msched-max-memory-insns-hard-limit'
  16776. Makes the limit specified by 'msched-max-memory-insns' a hard
  16777. limit, disallowing more than that number in an instruction group.
  16778. Otherwise, the limit is "soft", meaning that non-memory operations
  16779. are preferred when the limit is reached, but memory operations may
  16780. still be scheduled.
  16781. 
  16782. File: gcc.info, Node: LM32 Options, Next: M32C Options, Prev: IA-64 Options, Up: Submodel Options
  16783. 3.19.22 LM32 Options
  16784. --------------------
  16785. These '-m' options are defined for the LatticeMico32 architecture:
  16786. '-mbarrel-shift-enabled'
  16787. Enable barrel-shift instructions.
  16788. '-mdivide-enabled'
  16789. Enable divide and modulus instructions.
  16790. '-mmultiply-enabled'
  16791. Enable multiply instructions.
  16792. '-msign-extend-enabled'
  16793. Enable sign extend instructions.
  16794. '-muser-enabled'
  16795. Enable user-defined instructions.
  16796. 
  16797. File: gcc.info, Node: M32C Options, Next: M32R/D Options, Prev: LM32 Options, Up: Submodel Options
  16798. 3.19.23 M32C Options
  16799. --------------------
  16800. '-mcpu=NAME'
  16801. Select the CPU for which code is generated. NAME may be one of
  16802. 'r8c' for the R8C/Tiny series, 'm16c' for the M16C (up to /60)
  16803. series, 'm32cm' for the M16C/80 series, or 'm32c' for the M32C/80
  16804. series.
  16805. '-msim'
  16806. Specifies that the program will be run on the simulator. This
  16807. causes an alternate runtime library to be linked in which supports,
  16808. for example, file I/O. You must not use this option when
  16809. generating programs that will run on real hardware; you must
  16810. provide your own runtime library for whatever I/O functions are
  16811. needed.
  16812. '-memregs=NUMBER'
  16813. Specifies the number of memory-based pseudo-registers GCC uses
  16814. during code generation. These pseudo-registers are used like real
  16815. registers, so there is a tradeoff between GCC's ability to fit the
  16816. code into available registers, and the performance penalty of using
  16817. memory instead of registers. Note that all modules in a program
  16818. must be compiled with the same value for this option. Because of
  16819. that, you must not use this option with GCC's default runtime
  16820. libraries.
  16821. 
  16822. File: gcc.info, Node: M32R/D Options, Next: M680x0 Options, Prev: M32C Options, Up: Submodel Options
  16823. 3.19.24 M32R/D Options
  16824. ----------------------
  16825. These '-m' options are defined for Renesas M32R/D architectures:
  16826. '-m32r2'
  16827. Generate code for the M32R/2.
  16828. '-m32rx'
  16829. Generate code for the M32R/X.
  16830. '-m32r'
  16831. Generate code for the M32R. This is the default.
  16832. '-mmodel=small'
  16833. Assume all objects live in the lower 16MB of memory (so that their
  16834. addresses can be loaded with the 'ld24' instruction), and assume
  16835. all subroutines are reachable with the 'bl' instruction. This is
  16836. the default.
  16837. The addressability of a particular object can be set with the
  16838. 'model' attribute.
  16839. '-mmodel=medium'
  16840. Assume objects may be anywhere in the 32-bit address space (the
  16841. compiler generates 'seth/add3' instructions to load their
  16842. addresses), and assume all subroutines are reachable with the 'bl'
  16843. instruction.
  16844. '-mmodel=large'
  16845. Assume objects may be anywhere in the 32-bit address space (the
  16846. compiler generates 'seth/add3' instructions to load their
  16847. addresses), and assume subroutines may not be reachable with the
  16848. 'bl' instruction (the compiler generates the much slower
  16849. 'seth/add3/jl' instruction sequence).
  16850. '-msdata=none'
  16851. Disable use of the small data area. Variables are put into one of
  16852. '.data', '.bss', or '.rodata' (unless the 'section' attribute has
  16853. been specified). This is the default.
  16854. The small data area consists of sections '.sdata' and '.sbss'.
  16855. Objects may be explicitly put in the small data area with the
  16856. 'section' attribute using one of these sections.
  16857. '-msdata=sdata'
  16858. Put small global and static data in the small data area, but do not
  16859. generate special code to reference them.
  16860. '-msdata=use'
  16861. Put small global and static data in the small data area, and
  16862. generate special instructions to reference them.
  16863. '-G NUM'
  16864. Put global and static objects less than or equal to NUM bytes into
  16865. the small data or BSS sections instead of the normal data or BSS
  16866. sections. The default value of NUM is 8. The '-msdata' option
  16867. must be set to one of 'sdata' or 'use' for this option to have any
  16868. effect.
  16869. All modules should be compiled with the same '-G NUM' value.
  16870. Compiling with different values of NUM may or may not work; if it
  16871. doesn't the linker gives an error message--incorrect code is not
  16872. generated.
  16873. '-mdebug'
  16874. Makes the M32R-specific code in the compiler display some
  16875. statistics that might help in debugging programs.
  16876. '-malign-loops'
  16877. Align all loops to a 32-byte boundary.
  16878. '-mno-align-loops'
  16879. Do not enforce a 32-byte alignment for loops. This is the default.
  16880. '-missue-rate=NUMBER'
  16881. Issue NUMBER instructions per cycle. NUMBER can only be 1 or 2.
  16882. '-mbranch-cost=NUMBER'
  16883. NUMBER can only be 1 or 2. If it is 1 then branches are preferred
  16884. over conditional code, if it is 2, then the opposite applies.
  16885. '-mflush-trap=NUMBER'
  16886. Specifies the trap number to use to flush the cache. The default
  16887. is 12. Valid numbers are between 0 and 15 inclusive.
  16888. '-mno-flush-trap'
  16889. Specifies that the cache cannot be flushed by using a trap.
  16890. '-mflush-func=NAME'
  16891. Specifies the name of the operating system function to call to
  16892. flush the cache. The default is '_flush_cache', but a function
  16893. call is only used if a trap is not available.
  16894. '-mno-flush-func'
  16895. Indicates that there is no OS function for flushing the cache.
  16896. 
  16897. File: gcc.info, Node: M680x0 Options, Next: MCore Options, Prev: M32R/D Options, Up: Submodel Options
  16898. 3.19.25 M680x0 Options
  16899. ----------------------
  16900. These are the '-m' options defined for M680x0 and ColdFire processors.
  16901. The default settings depend on which architecture was selected when the
  16902. compiler was configured; the defaults for the most common choices are
  16903. given below.
  16904. '-march=ARCH'
  16905. Generate code for a specific M680x0 or ColdFire instruction set
  16906. architecture. Permissible values of ARCH for M680x0 architectures
  16907. are: '68000', '68010', '68020', '68030', '68040', '68060' and
  16908. 'cpu32'. ColdFire architectures are selected according to
  16909. Freescale's ISA classification and the permissible values are:
  16910. 'isaa', 'isaaplus', 'isab' and 'isac'.
  16911. GCC defines a macro '__mcfARCH__' whenever it is generating code
  16912. for a ColdFire target. The ARCH in this macro is one of the
  16913. '-march' arguments given above.
  16914. When used together, '-march' and '-mtune' select code that runs on
  16915. a family of similar processors but that is optimized for a
  16916. particular microarchitecture.
  16917. '-mcpu=CPU'
  16918. Generate code for a specific M680x0 or ColdFire processor. The
  16919. M680x0 CPUs are: '68000', '68010', '68020', '68030', '68040',
  16920. '68060', '68302', '68332' and 'cpu32'. The ColdFire CPUs are given
  16921. by the table below, which also classifies the CPUs into families:
  16922. *Family* *'-mcpu' arguments*
  16923. '51' '51' '51ac' '51ag' '51cn' '51em' '51je' '51jf' '51jg'
  16924. '51jm' '51mm' '51qe' '51qm'
  16925. '5206' '5202' '5204' '5206'
  16926. '5206e' '5206e'
  16927. '5208' '5207' '5208'
  16928. '5211a' '5210a' '5211a'
  16929. '5213' '5211' '5212' '5213'
  16930. '5216' '5214' '5216'
  16931. '52235' '52230' '52231' '52232' '52233' '52234' '52235'
  16932. '5225' '5224' '5225'
  16933. '52259' '52252' '52254' '52255' '52256' '52258' '52259'
  16934. '5235' '5232' '5233' '5234' '5235' '523x'
  16935. '5249' '5249'
  16936. '5250' '5250'
  16937. '5271' '5270' '5271'
  16938. '5272' '5272'
  16939. '5275' '5274' '5275'
  16940. '5282' '5280' '5281' '5282' '528x'
  16941. '53017' '53011' '53012' '53013' '53014' '53015' '53016' '53017'
  16942. '5307' '5307'
  16943. '5329' '5327' '5328' '5329' '532x'
  16944. '5373' '5372' '5373' '537x'
  16945. '5407' '5407'
  16946. '5475' '5470' '5471' '5472' '5473' '5474' '5475' '547x' '5480'
  16947. '5481' '5482' '5483' '5484' '5485'
  16948. '-mcpu=CPU' overrides '-march=ARCH' if ARCH is compatible with CPU.
  16949. Other combinations of '-mcpu' and '-march' are rejected.
  16950. GCC defines the macro '__mcf_cpu_CPU' when ColdFire target CPU is
  16951. selected. It also defines '__mcf_family_FAMILY', where the value
  16952. of FAMILY is given by the table above.
  16953. '-mtune=TUNE'
  16954. Tune the code for a particular microarchitecture within the
  16955. constraints set by '-march' and '-mcpu'. The M680x0
  16956. microarchitectures are: '68000', '68010', '68020', '68030',
  16957. '68040', '68060' and 'cpu32'. The ColdFire microarchitectures are:
  16958. 'cfv1', 'cfv2', 'cfv3', 'cfv4' and 'cfv4e'.
  16959. You can also use '-mtune=68020-40' for code that needs to run
  16960. relatively well on 68020, 68030 and 68040 targets.
  16961. '-mtune=68020-60' is similar but includes 68060 targets as well.
  16962. These two options select the same tuning decisions as '-m68020-40'
  16963. and '-m68020-60' respectively.
  16964. GCC defines the macros '__mcARCH' and '__mcARCH__' when tuning for
  16965. 680x0 architecture ARCH. It also defines 'mcARCH' unless either
  16966. '-ansi' or a non-GNU '-std' option is used. If GCC is tuning for a
  16967. range of architectures, as selected by '-mtune=68020-40' or
  16968. '-mtune=68020-60', it defines the macros for every architecture in
  16969. the range.
  16970. GCC also defines the macro '__mUARCH__' when tuning for ColdFire
  16971. microarchitecture UARCH, where UARCH is one of the arguments given
  16972. above.
  16973. '-m68000'
  16974. '-mc68000'
  16975. Generate output for a 68000. This is the default when the compiler
  16976. is configured for 68000-based systems. It is equivalent to
  16977. '-march=68000'.
  16978. Use this option for microcontrollers with a 68000 or EC000 core,
  16979. including the 68008, 68302, 68306, 68307, 68322, 68328 and 68356.
  16980. '-m68010'
  16981. Generate output for a 68010. This is the default when the compiler
  16982. is configured for 68010-based systems. It is equivalent to
  16983. '-march=68010'.
  16984. '-m68020'
  16985. '-mc68020'
  16986. Generate output for a 68020. This is the default when the compiler
  16987. is configured for 68020-based systems. It is equivalent to
  16988. '-march=68020'.
  16989. '-m68030'
  16990. Generate output for a 68030. This is the default when the compiler
  16991. is configured for 68030-based systems. It is equivalent to
  16992. '-march=68030'.
  16993. '-m68040'
  16994. Generate output for a 68040. This is the default when the compiler
  16995. is configured for 68040-based systems. It is equivalent to
  16996. '-march=68040'.
  16997. This option inhibits the use of 68881/68882 instructions that have
  16998. to be emulated by software on the 68040. Use this option if your
  16999. 68040 does not have code to emulate those instructions.
  17000. '-m68060'
  17001. Generate output for a 68060. This is the default when the compiler
  17002. is configured for 68060-based systems. It is equivalent to
  17003. '-march=68060'.
  17004. This option inhibits the use of 68020 and 68881/68882 instructions
  17005. that have to be emulated by software on the 68060. Use this option
  17006. if your 68060 does not have code to emulate those instructions.
  17007. '-mcpu32'
  17008. Generate output for a CPU32. This is the default when the compiler
  17009. is configured for CPU32-based systems. It is equivalent to
  17010. '-march=cpu32'.
  17011. Use this option for microcontrollers with a CPU32 or CPU32+ core,
  17012. including the 68330, 68331, 68332, 68333, 68334, 68336, 68340,
  17013. 68341, 68349 and 68360.
  17014. '-m5200'
  17015. Generate output for a 520X ColdFire CPU. This is the default when
  17016. the compiler is configured for 520X-based systems. It is
  17017. equivalent to '-mcpu=5206', and is now deprecated in favor of that
  17018. option.
  17019. Use this option for microcontroller with a 5200 core, including the
  17020. MCF5202, MCF5203, MCF5204 and MCF5206.
  17021. '-m5206e'
  17022. Generate output for a 5206e ColdFire CPU. The option is now
  17023. deprecated in favor of the equivalent '-mcpu=5206e'.
  17024. '-m528x'
  17025. Generate output for a member of the ColdFire 528X family. The
  17026. option is now deprecated in favor of the equivalent '-mcpu=528x'.
  17027. '-m5307'
  17028. Generate output for a ColdFire 5307 CPU. The option is now
  17029. deprecated in favor of the equivalent '-mcpu=5307'.
  17030. '-m5407'
  17031. Generate output for a ColdFire 5407 CPU. The option is now
  17032. deprecated in favor of the equivalent '-mcpu=5407'.
  17033. '-mcfv4e'
  17034. Generate output for a ColdFire V4e family CPU (e.g. 547x/548x).
  17035. This includes use of hardware floating-point instructions. The
  17036. option is equivalent to '-mcpu=547x', and is now deprecated in
  17037. favor of that option.
  17038. '-m68020-40'
  17039. Generate output for a 68040, without using any of the new
  17040. instructions. This results in code that can run relatively
  17041. efficiently on either a 68020/68881 or a 68030 or a 68040. The
  17042. generated code does use the 68881 instructions that are emulated on
  17043. the 68040.
  17044. The option is equivalent to '-march=68020' '-mtune=68020-40'.
  17045. '-m68020-60'
  17046. Generate output for a 68060, without using any of the new
  17047. instructions. This results in code that can run relatively
  17048. efficiently on either a 68020/68881 or a 68030 or a 68040. The
  17049. generated code does use the 68881 instructions that are emulated on
  17050. the 68060.
  17051. The option is equivalent to '-march=68020' '-mtune=68020-60'.
  17052. '-mhard-float'
  17053. '-m68881'
  17054. Generate floating-point instructions. This is the default for
  17055. 68020 and above, and for ColdFire devices that have an FPU. It
  17056. defines the macro '__HAVE_68881__' on M680x0 targets and
  17057. '__mcffpu__' on ColdFire targets.
  17058. '-msoft-float'
  17059. Do not generate floating-point instructions; use library calls
  17060. instead. This is the default for 68000, 68010, and 68832 targets.
  17061. It is also the default for ColdFire devices that have no FPU.
  17062. '-mdiv'
  17063. '-mno-div'
  17064. Generate (do not generate) ColdFire hardware divide and remainder
  17065. instructions. If '-march' is used without '-mcpu', the default is
  17066. "on" for ColdFire architectures and "off" for M680x0 architectures.
  17067. Otherwise, the default is taken from the target CPU (either the
  17068. default CPU, or the one specified by '-mcpu'). For example, the
  17069. default is "off" for '-mcpu=5206' and "on" for '-mcpu=5206e'.
  17070. GCC defines the macro '__mcfhwdiv__' when this option is enabled.
  17071. '-mshort'
  17072. Consider type 'int' to be 16 bits wide, like 'short int'.
  17073. Additionally, parameters passed on the stack are also aligned to a
  17074. 16-bit boundary even on targets whose API mandates promotion to
  17075. 32-bit.
  17076. '-mno-short'
  17077. Do not consider type 'int' to be 16 bits wide. This is the
  17078. default.
  17079. '-mnobitfield'
  17080. '-mno-bitfield'
  17081. Do not use the bit-field instructions. The '-m68000', '-mcpu32'
  17082. and '-m5200' options imply '-mnobitfield'.
  17083. '-mbitfield'
  17084. Do use the bit-field instructions. The '-m68020' option implies
  17085. '-mbitfield'. This is the default if you use a configuration
  17086. designed for a 68020.
  17087. '-mrtd'
  17088. Use a different function-calling convention, in which functions
  17089. that take a fixed number of arguments return with the 'rtd'
  17090. instruction, which pops their arguments while returning. This
  17091. saves one instruction in the caller since there is no need to pop
  17092. the arguments there.
  17093. This calling convention is incompatible with the one normally used
  17094. on Unix, so you cannot use it if you need to call libraries
  17095. compiled with the Unix compiler.
  17096. Also, you must provide function prototypes for all functions that
  17097. take variable numbers of arguments (including 'printf'); otherwise
  17098. incorrect code is generated for calls to those functions.
  17099. In addition, seriously incorrect code results if you call a
  17100. function with too many arguments. (Normally, extra arguments are
  17101. harmlessly ignored.)
  17102. The 'rtd' instruction is supported by the 68010, 68020, 68030,
  17103. 68040, 68060 and CPU32 processors, but not by the 68000 or 5200.
  17104. The default is '-mno-rtd'.
  17105. '-malign-int'
  17106. '-mno-align-int'
  17107. Control whether GCC aligns 'int', 'long', 'long long', 'float',
  17108. 'double', and 'long double' variables on a 32-bit boundary
  17109. ('-malign-int') or a 16-bit boundary ('-mno-align-int'). Aligning
  17110. variables on 32-bit boundaries produces code that runs somewhat
  17111. faster on processors with 32-bit busses at the expense of more
  17112. memory.
  17113. *Warning:* if you use the '-malign-int' switch, GCC aligns
  17114. structures containing the above types differently than most
  17115. published application binary interface specifications for the m68k.
  17116. Use the pc-relative addressing mode of the 68000 directly, instead
  17117. of using a global offset table. At present, this option implies
  17118. '-fpic', allowing at most a 16-bit offset for pc-relative
  17119. addressing. '-fPIC' is not presently supported with '-mpcrel',
  17120. though this could be supported for 68020 and higher processors.
  17121. '-mno-strict-align'
  17122. '-mstrict-align'
  17123. Do not (do) assume that unaligned memory references are handled by
  17124. the system.
  17125. '-msep-data'
  17126. Generate code that allows the data segment to be located in a
  17127. different area of memory from the text segment. This allows for
  17128. execute-in-place in an environment without virtual memory
  17129. management. This option implies '-fPIC'.
  17130. '-mno-sep-data'
  17131. Generate code that assumes that the data segment follows the text
  17132. segment. This is the default.
  17133. '-mid-shared-library'
  17134. Generate code that supports shared libraries via the library ID
  17135. method. This allows for execute-in-place and shared libraries in
  17136. an environment without virtual memory management. This option
  17137. implies '-fPIC'.
  17138. '-mno-id-shared-library'
  17139. Generate code that doesn't assume ID-based shared libraries are
  17140. being used. This is the default.
  17141. '-mshared-library-id=n'
  17142. Specifies the identification number of the ID-based shared library
  17143. being compiled. Specifying a value of 0 generates more compact
  17144. code; specifying other values forces the allocation of that number
  17145. to the current library, but is no more space- or time-efficient
  17146. than omitting this option.
  17147. '-mxgot'
  17148. '-mno-xgot'
  17149. When generating position-independent code for ColdFire, generate
  17150. code that works if the GOT has more than 8192 entries. This code
  17151. is larger and slower than code generated without this option. On
  17152. M680x0 processors, this option is not needed; '-fPIC' suffices.
  17153. GCC normally uses a single instruction to load values from the GOT.
  17154. While this is relatively efficient, it only works if the GOT is
  17155. smaller than about 64k. Anything larger causes the linker to
  17156. report an error such as:
  17157. relocation truncated to fit: R_68K_GOT16O foobar
  17158. If this happens, you should recompile your code with '-mxgot'. It
  17159. should then work with very large GOTs. However, code generated
  17160. with '-mxgot' is less efficient, since it takes 4 instructions to
  17161. fetch the value of a global symbol.
  17162. Note that some linkers, including newer versions of the GNU linker,
  17163. can create multiple GOTs and sort GOT entries. If you have such a
  17164. linker, you should only need to use '-mxgot' when compiling a
  17165. single object file that accesses more than 8192 GOT entries. Very
  17166. few do.
  17167. These options have no effect unless GCC is generating
  17168. position-independent code.
  17169. '-mlong-jump-table-offsets'
  17170. Use 32-bit offsets in 'switch' tables. The default is to use
  17171. 16-bit offsets.
  17172. 
  17173. File: gcc.info, Node: MCore Options, Next: MeP Options, Prev: M680x0 Options, Up: Submodel Options
  17174. 3.19.26 MCore Options
  17175. ---------------------
  17176. These are the '-m' options defined for the Motorola M*Core processors.
  17177. '-mhardlit'
  17178. '-mno-hardlit'
  17179. Inline constants into the code stream if it can be done in two
  17180. instructions or less.
  17181. '-mdiv'
  17182. '-mno-div'
  17183. Use the divide instruction. (Enabled by default).
  17184. '-mrelax-immediate'
  17185. '-mno-relax-immediate'
  17186. Allow arbitrary-sized immediates in bit operations.
  17187. '-mwide-bitfields'
  17188. '-mno-wide-bitfields'
  17189. Always treat bit-fields as 'int'-sized.
  17190. '-m4byte-functions'
  17191. '-mno-4byte-functions'
  17192. Force all functions to be aligned to a 4-byte boundary.
  17193. '-mcallgraph-data'
  17194. '-mno-callgraph-data'
  17195. Emit callgraph information.
  17196. '-mslow-bytes'
  17197. '-mno-slow-bytes'
  17198. Prefer word access when reading byte quantities.
  17199. '-mlittle-endian'
  17200. '-mbig-endian'
  17201. Generate code for a little-endian target.
  17202. '-m210'
  17203. '-m340'
  17204. Generate code for the 210 processor.
  17205. '-mno-lsim'
  17206. Assume that runtime support has been provided and so omit the
  17207. simulator library ('libsim.a)' from the linker command line.
  17208. '-mstack-increment=SIZE'
  17209. Set the maximum amount for a single stack increment operation.
  17210. Large values can increase the speed of programs that contain
  17211. functions that need a large amount of stack space, but they can
  17212. also trigger a segmentation fault if the stack is extended too
  17213. much. The default value is 0x1000.
  17214. 
  17215. File: gcc.info, Node: MeP Options, Next: MicroBlaze Options, Prev: MCore Options, Up: Submodel Options
  17216. 3.19.27 MeP Options
  17217. -------------------
  17218. '-mabsdiff'
  17219. Enables the 'abs' instruction, which is the absolute difference
  17220. between two registers.
  17221. '-mall-opts'
  17222. Enables all the optional instructions--average, multiply, divide,
  17223. bit operations, leading zero, absolute difference, min/max, clip,
  17224. and saturation.
  17225. '-maverage'
  17226. Enables the 'ave' instruction, which computes the average of two
  17227. registers.
  17228. '-mbased=N'
  17229. Variables of size N bytes or smaller are placed in the '.based'
  17230. section by default. Based variables use the '$tp' register as a
  17231. base register, and there is a 128-byte limit to the '.based'
  17232. section.
  17233. '-mbitops'
  17234. Enables the bit operation instructions--bit test ('btstm'), set
  17235. ('bsetm'), clear ('bclrm'), invert ('bnotm'), and test-and-set
  17236. ('tas').
  17237. '-mc=NAME'
  17238. Selects which section constant data is placed in. NAME may be
  17239. 'tiny', 'near', or 'far'.
  17240. '-mclip'
  17241. Enables the 'clip' instruction. Note that '-mclip' is not useful
  17242. unless you also provide '-mminmax'.
  17243. '-mconfig=NAME'
  17244. Selects one of the built-in core configurations. Each MeP chip has
  17245. one or more modules in it; each module has a core CPU and a variety
  17246. of coprocessors, optional instructions, and peripherals. The
  17247. 'MeP-Integrator' tool, not part of GCC, provides these
  17248. configurations through this option; using this option is the same
  17249. as using all the corresponding command-line options. The default
  17250. configuration is 'default'.
  17251. '-mcop'
  17252. Enables the coprocessor instructions. By default, this is a 32-bit
  17253. coprocessor. Note that the coprocessor is normally enabled via the
  17254. '-mconfig=' option.
  17255. '-mcop32'
  17256. Enables the 32-bit coprocessor's instructions.
  17257. '-mcop64'
  17258. Enables the 64-bit coprocessor's instructions.
  17259. '-mivc2'
  17260. Enables IVC2 scheduling. IVC2 is a 64-bit VLIW coprocessor.
  17261. '-mdc'
  17262. Causes constant variables to be placed in the '.near' section.
  17263. '-mdiv'
  17264. Enables the 'div' and 'divu' instructions.
  17265. '-meb'
  17266. Generate big-endian code.
  17267. '-mel'
  17268. Generate little-endian code.
  17269. '-mio-volatile'
  17270. Tells the compiler that any variable marked with the 'io' attribute
  17271. is to be considered volatile.
  17272. '-ml'
  17273. Causes variables to be assigned to the '.far' section by default.
  17274. '-mleadz'
  17275. Enables the 'leadz' (leading zero) instruction.
  17276. '-mm'
  17277. Causes variables to be assigned to the '.near' section by default.
  17278. '-mminmax'
  17279. Enables the 'min' and 'max' instructions.
  17280. '-mmult'
  17281. Enables the multiplication and multiply-accumulate instructions.
  17282. '-mno-opts'
  17283. Disables all the optional instructions enabled by '-mall-opts'.
  17284. '-mrepeat'
  17285. Enables the 'repeat' and 'erepeat' instructions, used for
  17286. low-overhead looping.
  17287. '-ms'
  17288. Causes all variables to default to the '.tiny' section. Note that
  17289. there is a 65536-byte limit to this section. Accesses to these
  17290. variables use the '%gp' base register.
  17291. '-msatur'
  17292. Enables the saturation instructions. Note that the compiler does
  17293. not currently generate these itself, but this option is included
  17294. for compatibility with other tools, like 'as'.
  17295. '-msdram'
  17296. Link the SDRAM-based runtime instead of the default ROM-based
  17297. runtime.
  17298. '-msim'
  17299. Link the simulator run-time libraries.
  17300. '-msimnovec'
  17301. Link the simulator runtime libraries, excluding built-in support
  17302. for reset and exception vectors and tables.
  17303. '-mtf'
  17304. Causes all functions to default to the '.far' section. Without
  17305. this option, functions default to the '.near' section.
  17306. '-mtiny=N'
  17307. Variables that are N bytes or smaller are allocated to the '.tiny'
  17308. section. These variables use the '$gp' base register. The default
  17309. for this option is 4, but note that there's a 65536-byte limit to
  17310. the '.tiny' section.
  17311. 
  17312. File: gcc.info, Node: MicroBlaze Options, Next: MIPS Options, Prev: MeP Options, Up: Submodel Options
  17313. 3.19.28 MicroBlaze Options
  17314. --------------------------
  17315. '-msoft-float'
  17316. Use software emulation for floating point (default).
  17317. '-mhard-float'
  17318. Use hardware floating-point instructions.
  17319. '-mmemcpy'
  17320. Do not optimize block moves, use 'memcpy'.
  17321. '-mno-clearbss'
  17322. This option is deprecated. Use '-fno-zero-initialized-in-bss'
  17323. instead.
  17324. '-mcpu=CPU-TYPE'
  17325. Use features of, and schedule code for, the given CPU. Supported
  17326. values are in the format 'vX.YY.Z', where X is a major version, YY
  17327. is the minor version, and Z is compatibility code. Example values
  17328. are 'v3.00.a', 'v4.00.b', 'v5.00.a', 'v5.00.b', 'v6.00.a'.
  17329. '-mxl-soft-mul'
  17330. Use software multiply emulation (default).
  17331. '-mxl-soft-div'
  17332. Use software emulation for divides (default).
  17333. '-mxl-barrel-shift'
  17334. Use the hardware barrel shifter.
  17335. '-mxl-pattern-compare'
  17336. Use pattern compare instructions.
  17337. '-msmall-divides'
  17338. Use table lookup optimization for small signed integer divisions.
  17339. '-mxl-stack-check'
  17340. This option is deprecated. Use '-fstack-check' instead.
  17341. '-mxl-gp-opt'
  17342. Use GP-relative '.sdata'/'.sbss' sections.
  17343. '-mxl-multiply-high'
  17344. Use multiply high instructions for high part of 32x32 multiply.
  17345. '-mxl-float-convert'
  17346. Use hardware floating-point conversion instructions.
  17347. '-mxl-float-sqrt'
  17348. Use hardware floating-point square root instruction.
  17349. '-mbig-endian'
  17350. Generate code for a big-endian target.
  17351. '-mlittle-endian'
  17352. Generate code for a little-endian target.
  17353. '-mxl-reorder'
  17354. Use reorder instructions (swap and byte reversed load/store).
  17355. '-mxl-mode-APP-MODEL'
  17356. Select application model APP-MODEL. Valid models are
  17357. 'executable'
  17358. normal executable (default), uses startup code 'crt0.o'.
  17359. '-mpic-data-is-text-relative'
  17360. Assume that the displacement between the text and data
  17361. segments is fixed at static link time. This allows data to be
  17362. referenced by offset from start of text address instead of GOT
  17363. since PC-relative addressing is not supported.
  17364. 'xmdstub'
  17365. for use with Xilinx Microprocessor Debugger (XMD) based
  17366. software intrusive debug agent called xmdstub. This uses
  17367. startup file 'crt1.o' and sets the start address of the
  17368. program to 0x800.
  17369. 'bootstrap'
  17370. for applications that are loaded using a bootloader. This
  17371. model uses startup file 'crt2.o' which does not contain a
  17372. processor reset vector handler. This is suitable for
  17373. transferring control on a processor reset to the bootloader
  17374. rather than the application.
  17375. 'novectors'
  17376. for applications that do not require any of the MicroBlaze
  17377. vectors. This option may be useful for applications running
  17378. within a monitoring application. This model uses 'crt3.o' as
  17379. a startup file.
  17380. Option '-xl-mode-APP-MODEL' is a deprecated alias for
  17381. '-mxl-mode-APP-MODEL'.
  17382. 
  17383. File: gcc.info, Node: MIPS Options, Next: MMIX Options, Prev: MicroBlaze Options, Up: Submodel Options
  17384. 3.19.29 MIPS Options
  17385. --------------------
  17386. '-EB'
  17387. Generate big-endian code.
  17388. '-EL'
  17389. Generate little-endian code. This is the default for 'mips*el-*-*'
  17390. configurations.
  17391. '-march=ARCH'
  17392. Generate code that runs on ARCH, which can be the name of a generic
  17393. MIPS ISA, or the name of a particular processor. The ISA names
  17394. are: 'mips1', 'mips2', 'mips3', 'mips4', 'mips32', 'mips32r2',
  17395. 'mips32r3', 'mips32r5', 'mips32r6', 'mips64', 'mips64r2',
  17396. 'mips64r3', 'mips64r5' and 'mips64r6'. The processor names are:
  17397. '4kc', '4km', '4kp', '4ksc', '4kec', '4kem', '4kep', '4ksd', '5kc',
  17398. '5kf', '20kc', '24kc', '24kf2_1', '24kf1_1', '24kec', '24kef2_1',
  17399. '24kef1_1', '34kc', '34kf2_1', '34kf1_1', '34kn', '74kc',
  17400. '74kf2_1', '74kf1_1', '74kf3_2', '1004kc', '1004kf2_1',
  17401. '1004kf1_1', 'i6400', 'i6500', 'interaptiv', 'loongson2e',
  17402. 'loongson2f', 'loongson3a', 'gs464', 'gs464e', 'gs264e', 'm4k',
  17403. 'm14k', 'm14kc', 'm14ke', 'm14kec', 'm5100', 'm5101', 'octeon',
  17404. 'octeon+', 'octeon2', 'octeon3', 'orion', 'p5600', 'p6600',
  17405. 'r2000', 'r3000', 'r3900', 'r4000', 'r4400', 'r4600', 'r4650',
  17406. 'r4700', 'r5900', 'r6000', 'r8000', 'rm7000', 'rm9000', 'r10000',
  17407. 'r12000', 'r14000', 'r16000', 'sb1', 'sr71000', 'vr4100', 'vr4111',
  17408. 'vr4120', 'vr4130', 'vr4300', 'vr5000', 'vr5400', 'vr5500', 'xlr'
  17409. and 'xlp'. The special value 'from-abi' selects the most
  17410. compatible architecture for the selected ABI (that is, 'mips1' for
  17411. 32-bit ABIs and 'mips3' for 64-bit ABIs).
  17412. The native Linux/GNU toolchain also supports the value 'native',
  17413. which selects the best architecture option for the host processor.
  17414. '-march=native' has no effect if GCC does not recognize the
  17415. processor.
  17416. In processor names, a final '000' can be abbreviated as 'k' (for
  17417. example, '-march=r2k'). Prefixes are optional, and 'vr' may be
  17418. written 'r'.
  17419. Names of the form 'Nf2_1' refer to processors with FPUs clocked at
  17420. half the rate of the core, names of the form 'Nf1_1' refer to
  17421. processors with FPUs clocked at the same rate as the core, and
  17422. names of the form 'Nf3_2' refer to processors with FPUs clocked a
  17423. ratio of 3:2 with respect to the core. For compatibility reasons,
  17424. 'Nf' is accepted as a synonym for 'Nf2_1' while 'Nx' and 'Bfx' are
  17425. accepted as synonyms for 'Nf1_1'.
  17426. GCC defines two macros based on the value of this option. The
  17427. first is '_MIPS_ARCH', which gives the name of target architecture,
  17428. as a string. The second has the form '_MIPS_ARCH_FOO', where FOO
  17429. is the capitalized value of '_MIPS_ARCH'. For example,
  17430. '-march=r2000' sets '_MIPS_ARCH' to '"r2000"' and defines the macro
  17431. '_MIPS_ARCH_R2000'.
  17432. Note that the '_MIPS_ARCH' macro uses the processor names given
  17433. above. In other words, it has the full prefix and does not
  17434. abbreviate '000' as 'k'. In the case of 'from-abi', the macro
  17435. names the resolved architecture (either '"mips1"' or '"mips3"').
  17436. It names the default architecture when no '-march' option is given.
  17437. '-mtune=ARCH'
  17438. Optimize for ARCH. Among other things, this option controls the
  17439. way instructions are scheduled, and the perceived cost of
  17440. arithmetic operations. The list of ARCH values is the same as for
  17441. '-march'.
  17442. When this option is not used, GCC optimizes for the processor
  17443. specified by '-march'. By using '-march' and '-mtune' together, it
  17444. is possible to generate code that runs on a family of processors,
  17445. but optimize the code for one particular member of that family.
  17446. '-mtune' defines the macros '_MIPS_TUNE' and '_MIPS_TUNE_FOO',
  17447. which work in the same way as the '-march' ones described above.
  17448. '-mips1'
  17449. Equivalent to '-march=mips1'.
  17450. '-mips2'
  17451. Equivalent to '-march=mips2'.
  17452. '-mips3'
  17453. Equivalent to '-march=mips3'.
  17454. '-mips4'
  17455. Equivalent to '-march=mips4'.
  17456. '-mips32'
  17457. Equivalent to '-march=mips32'.
  17458. '-mips32r3'
  17459. Equivalent to '-march=mips32r3'.
  17460. '-mips32r5'
  17461. Equivalent to '-march=mips32r5'.
  17462. '-mips32r6'
  17463. Equivalent to '-march=mips32r6'.
  17464. '-mips64'
  17465. Equivalent to '-march=mips64'.
  17466. '-mips64r2'
  17467. Equivalent to '-march=mips64r2'.
  17468. '-mips64r3'
  17469. Equivalent to '-march=mips64r3'.
  17470. '-mips64r5'
  17471. Equivalent to '-march=mips64r5'.
  17472. '-mips64r6'
  17473. Equivalent to '-march=mips64r6'.
  17474. '-mips16'
  17475. '-mno-mips16'
  17476. Generate (do not generate) MIPS16 code. If GCC is targeting a
  17477. MIPS32 or MIPS64 architecture, it makes use of the MIPS16e ASE.
  17478. MIPS16 code generation can also be controlled on a per-function
  17479. basis by means of 'mips16' and 'nomips16' attributes. *Note
  17480. Function Attributes::, for more information.
  17481. '-mflip-mips16'
  17482. Generate MIPS16 code on alternating functions. This option is
  17483. provided for regression testing of mixed MIPS16/non-MIPS16 code
  17484. generation, and is not intended for ordinary use in compiling user
  17485. code.
  17486. '-minterlink-compressed'
  17487. '-mno-interlink-compressed'
  17488. Require (do not require) that code using the standard
  17489. (uncompressed) MIPS ISA be link-compatible with MIPS16 and
  17490. microMIPS code, and vice versa.
  17491. For example, code using the standard ISA encoding cannot jump
  17492. directly to MIPS16 or microMIPS code; it must either use a call or
  17493. an indirect jump. '-minterlink-compressed' therefore disables
  17494. direct jumps unless GCC knows that the target of the jump is not
  17495. compressed.
  17496. '-minterlink-mips16'
  17497. '-mno-interlink-mips16'
  17498. Aliases of '-minterlink-compressed' and
  17499. '-mno-interlink-compressed'. These options predate the microMIPS
  17500. ASE and are retained for backwards compatibility.
  17501. '-mabi=32'
  17502. '-mabi=o64'
  17503. '-mabi=n32'
  17504. '-mabi=64'
  17505. '-mabi=eabi'
  17506. Generate code for the given ABI.
  17507. Note that the EABI has a 32-bit and a 64-bit variant. GCC normally
  17508. generates 64-bit code when you select a 64-bit architecture, but
  17509. you can use '-mgp32' to get 32-bit code instead.
  17510. For information about the O64 ABI, see
  17511. <http://gcc.gnu.org/projects/mipso64-abi.html>.
  17512. GCC supports a variant of the o32 ABI in which floating-point
  17513. registers are 64 rather than 32 bits wide. You can select this
  17514. combination with '-mabi=32' '-mfp64'. This ABI relies on the
  17515. 'mthc1' and 'mfhc1' instructions and is therefore only supported
  17516. for MIPS32R2, MIPS32R3 and MIPS32R5 processors.
  17517. The register assignments for arguments and return values remain the
  17518. same, but each scalar value is passed in a single 64-bit register
  17519. rather than a pair of 32-bit registers. For example, scalar
  17520. floating-point values are returned in '$f0' only, not a '$f0'/'$f1'
  17521. pair. The set of call-saved registers also remains the same in
  17522. that the even-numbered double-precision registers are saved.
  17523. Two additional variants of the o32 ABI are supported to enable a
  17524. transition from 32-bit to 64-bit registers. These are FPXX
  17525. ('-mfpxx') and FP64A ('-mfp64' '-mno-odd-spreg'). The FPXX
  17526. extension mandates that all code must execute correctly when run
  17527. using 32-bit or 64-bit registers. The code can be interlinked with
  17528. either FP32 or FP64, but not both. The FP64A extension is similar
  17529. to the FP64 extension but forbids the use of odd-numbered
  17530. single-precision registers. This can be used in conjunction with
  17531. the 'FRE' mode of FPUs in MIPS32R5 processors and allows both FP32
  17532. and FP64A code to interlink and run in the same process without
  17533. changing FPU modes.
  17534. '-mabicalls'
  17535. '-mno-abicalls'
  17536. Generate (do not generate) code that is suitable for SVR4-style
  17537. dynamic objects. '-mabicalls' is the default for SVR4-based
  17538. systems.
  17539. '-mshared'
  17540. '-mno-shared'
  17541. Generate (do not generate) code that is fully position-independent,
  17542. and that can therefore be linked into shared libraries. This
  17543. option only affects '-mabicalls'.
  17544. All '-mabicalls' code has traditionally been position-independent,
  17545. regardless of options like '-fPIC' and '-fpic'. However, as an
  17546. extension, the GNU toolchain allows executables to use absolute
  17547. accesses for locally-binding symbols. It can also use shorter GP
  17548. initialization sequences and generate direct calls to
  17549. locally-defined functions. This mode is selected by '-mno-shared'.
  17550. '-mno-shared' depends on binutils 2.16 or higher and generates
  17551. objects that can only be linked by the GNU linker. However, the
  17552. option does not affect the ABI of the final executable; it only
  17553. affects the ABI of relocatable objects. Using '-mno-shared'
  17554. generally makes executables both smaller and quicker.
  17555. '-mshared' is the default.
  17556. '-mplt'
  17557. '-mno-plt'
  17558. Assume (do not assume) that the static and dynamic linkers support
  17559. PLTs and copy relocations. This option only affects '-mno-shared
  17560. -mabicalls'. For the n64 ABI, this option has no effect without
  17561. '-msym32'.
  17562. You can make '-mplt' the default by configuring GCC with
  17563. '--with-mips-plt'. The default is '-mno-plt' otherwise.
  17564. '-mxgot'
  17565. '-mno-xgot'
  17566. Lift (do not lift) the usual restrictions on the size of the global
  17567. offset table.
  17568. GCC normally uses a single instruction to load values from the GOT.
  17569. While this is relatively efficient, it only works if the GOT is
  17570. smaller than about 64k. Anything larger causes the linker to
  17571. report an error such as:
  17572. relocation truncated to fit: R_MIPS_GOT16 foobar
  17573. If this happens, you should recompile your code with '-mxgot'.
  17574. This works with very large GOTs, although the code is also less
  17575. efficient, since it takes three instructions to fetch the value of
  17576. a global symbol.
  17577. Note that some linkers can create multiple GOTs. If you have such
  17578. a linker, you should only need to use '-mxgot' when a single object
  17579. file accesses more than 64k's worth of GOT entries. Very few do.
  17580. These options have no effect unless GCC is generating position
  17581. independent code.
  17582. '-mgp32'
  17583. Assume that general-purpose registers are 32 bits wide.
  17584. '-mgp64'
  17585. Assume that general-purpose registers are 64 bits wide.
  17586. '-mfp32'
  17587. Assume that floating-point registers are 32 bits wide.
  17588. '-mfp64'
  17589. Assume that floating-point registers are 64 bits wide.
  17590. '-mfpxx'
  17591. Do not assume the width of floating-point registers.
  17592. '-mhard-float'
  17593. Use floating-point coprocessor instructions.
  17594. '-msoft-float'
  17595. Do not use floating-point coprocessor instructions. Implement
  17596. floating-point calculations using library calls instead.
  17597. '-mno-float'
  17598. Equivalent to '-msoft-float', but additionally asserts that the
  17599. program being compiled does not perform any floating-point
  17600. operations. This option is presently supported only by some
  17601. bare-metal MIPS configurations, where it may select a special set
  17602. of libraries that lack all floating-point support (including, for
  17603. example, the floating-point 'printf' formats). If code compiled
  17604. with '-mno-float' accidentally contains floating-point operations,
  17605. it is likely to suffer a link-time or run-time failure.
  17606. '-msingle-float'
  17607. Assume that the floating-point coprocessor only supports
  17608. single-precision operations.
  17609. '-mdouble-float'
  17610. Assume that the floating-point coprocessor supports
  17611. double-precision operations. This is the default.
  17612. '-modd-spreg'
  17613. '-mno-odd-spreg'
  17614. Enable the use of odd-numbered single-precision floating-point
  17615. registers for the o32 ABI. This is the default for processors that
  17616. are known to support these registers. When using the o32 FPXX ABI,
  17617. '-mno-odd-spreg' is set by default.
  17618. '-mabs=2008'
  17619. '-mabs=legacy'
  17620. These options control the treatment of the special not-a-number
  17621. (NaN) IEEE 754 floating-point data with the 'abs.fmt' and 'neg.fmt'
  17622. machine instructions.
  17623. By default or when '-mabs=legacy' is used the legacy treatment is
  17624. selected. In this case these instructions are considered
  17625. arithmetic and avoided where correct operation is required and the
  17626. input operand might be a NaN. A longer sequence of instructions
  17627. that manipulate the sign bit of floating-point datum manually is
  17628. used instead unless the '-ffinite-math-only' option has also been
  17629. specified.
  17630. The '-mabs=2008' option selects the IEEE 754-2008 treatment. In
  17631. this case these instructions are considered non-arithmetic and
  17632. therefore operating correctly in all cases, including in particular
  17633. where the input operand is a NaN. These instructions are therefore
  17634. always used for the respective operations.
  17635. '-mnan=2008'
  17636. '-mnan=legacy'
  17637. These options control the encoding of the special not-a-number
  17638. (NaN) IEEE 754 floating-point data.
  17639. The '-mnan=legacy' option selects the legacy encoding. In this
  17640. case quiet NaNs (qNaNs) are denoted by the first bit of their
  17641. trailing significand field being 0, whereas signaling NaNs (sNaNs)
  17642. are denoted by the first bit of their trailing significand field
  17643. being 1.
  17644. The '-mnan=2008' option selects the IEEE 754-2008 encoding. In
  17645. this case qNaNs are denoted by the first bit of their trailing
  17646. significand field being 1, whereas sNaNs are denoted by the first
  17647. bit of their trailing significand field being 0.
  17648. The default is '-mnan=legacy' unless GCC has been configured with
  17649. '--with-nan=2008'.
  17650. '-mllsc'
  17651. '-mno-llsc'
  17652. Use (do not use) 'll', 'sc', and 'sync' instructions to implement
  17653. atomic memory built-in functions. When neither option is
  17654. specified, GCC uses the instructions if the target architecture
  17655. supports them.
  17656. '-mllsc' is useful if the runtime environment can emulate the
  17657. instructions and '-mno-llsc' can be useful when compiling for
  17658. nonstandard ISAs. You can make either option the default by
  17659. configuring GCC with '--with-llsc' and '--without-llsc'
  17660. respectively. '--with-llsc' is the default for some
  17661. configurations; see the installation documentation for details.
  17662. '-mdsp'
  17663. '-mno-dsp'
  17664. Use (do not use) revision 1 of the MIPS DSP ASE. *Note MIPS DSP
  17665. Built-in Functions::. This option defines the preprocessor macro
  17666. '__mips_dsp'. It also defines '__mips_dsp_rev' to 1.
  17667. '-mdspr2'
  17668. '-mno-dspr2'
  17669. Use (do not use) revision 2 of the MIPS DSP ASE. *Note MIPS DSP
  17670. Built-in Functions::. This option defines the preprocessor macros
  17671. '__mips_dsp' and '__mips_dspr2'. It also defines '__mips_dsp_rev'
  17672. to 2.
  17673. '-msmartmips'
  17674. '-mno-smartmips'
  17675. Use (do not use) the MIPS SmartMIPS ASE.
  17676. '-mpaired-single'
  17677. '-mno-paired-single'
  17678. Use (do not use) paired-single floating-point instructions. *Note
  17679. MIPS Paired-Single Support::. This option requires hardware
  17680. floating-point support to be enabled.
  17681. '-mdmx'
  17682. '-mno-mdmx'
  17683. Use (do not use) MIPS Digital Media Extension instructions. This
  17684. option can only be used when generating 64-bit code and requires
  17685. hardware floating-point support to be enabled.
  17686. '-mips3d'
  17687. '-mno-mips3d'
  17688. Use (do not use) the MIPS-3D ASE. *Note MIPS-3D Built-in
  17689. Functions::. The option '-mips3d' implies '-mpaired-single'.
  17690. '-mmicromips'
  17691. '-mno-micromips'
  17692. Generate (do not generate) microMIPS code.
  17693. MicroMIPS code generation can also be controlled on a per-function
  17694. basis by means of 'micromips' and 'nomicromips' attributes. *Note
  17695. Function Attributes::, for more information.
  17696. '-mmt'
  17697. '-mno-mt'
  17698. Use (do not use) MT Multithreading instructions.
  17699. '-mmcu'
  17700. '-mno-mcu'
  17701. Use (do not use) the MIPS MCU ASE instructions.
  17702. '-meva'
  17703. '-mno-eva'
  17704. Use (do not use) the MIPS Enhanced Virtual Addressing instructions.
  17705. '-mvirt'
  17706. '-mno-virt'
  17707. Use (do not use) the MIPS Virtualization (VZ) instructions.
  17708. '-mxpa'
  17709. '-mno-xpa'
  17710. Use (do not use) the MIPS eXtended Physical Address (XPA)
  17711. instructions.
  17712. '-mcrc'
  17713. '-mno-crc'
  17714. Use (do not use) the MIPS Cyclic Redundancy Check (CRC)
  17715. instructions.
  17716. '-mginv'
  17717. '-mno-ginv'
  17718. Use (do not use) the MIPS Global INValidate (GINV) instructions.
  17719. '-mloongson-mmi'
  17720. '-mno-loongson-mmi'
  17721. Use (do not use) the MIPS Loongson MultiMedia extensions
  17722. Instructions (MMI).
  17723. '-mloongson-ext'
  17724. '-mno-loongson-ext'
  17725. Use (do not use) the MIPS Loongson EXTensions (EXT) instructions.
  17726. '-mloongson-ext2'
  17727. '-mno-loongson-ext2'
  17728. Use (do not use) the MIPS Loongson EXTensions r2 (EXT2)
  17729. instructions.
  17730. '-mlong64'
  17731. Force 'long' types to be 64 bits wide. See '-mlong32' for an
  17732. explanation of the default and the way that the pointer size is
  17733. determined.
  17734. '-mlong32'
  17735. Force 'long', 'int', and pointer types to be 32 bits wide.
  17736. The default size of 'int's, 'long's and pointers depends on the
  17737. ABI. All the supported ABIs use 32-bit 'int's. The n64 ABI uses
  17738. 64-bit 'long's, as does the 64-bit EABI; the others use 32-bit
  17739. 'long's. Pointers are the same size as 'long's, or the same size
  17740. as integer registers, whichever is smaller.
  17741. '-msym32'
  17742. '-mno-sym32'
  17743. Assume (do not assume) that all symbols have 32-bit values,
  17744. regardless of the selected ABI. This option is useful in
  17745. combination with '-mabi=64' and '-mno-abicalls' because it allows
  17746. GCC to generate shorter and faster references to symbolic
  17747. addresses.
  17748. '-G NUM'
  17749. Put definitions of externally-visible data in a small data section
  17750. if that data is no bigger than NUM bytes. GCC can then generate
  17751. more efficient accesses to the data; see '-mgpopt' for details.
  17752. The default '-G' option depends on the configuration.
  17753. '-mlocal-sdata'
  17754. '-mno-local-sdata'
  17755. Extend (do not extend) the '-G' behavior to local data too, such as
  17756. to static variables in C. '-mlocal-sdata' is the default for all
  17757. configurations.
  17758. If the linker complains that an application is using too much small
  17759. data, you might want to try rebuilding the less
  17760. performance-critical parts with '-mno-local-sdata'. You might also
  17761. want to build large libraries with '-mno-local-sdata', so that the
  17762. libraries leave more room for the main program.
  17763. '-mextern-sdata'
  17764. '-mno-extern-sdata'
  17765. Assume (do not assume) that externally-defined data is in a small
  17766. data section if the size of that data is within the '-G' limit.
  17767. '-mextern-sdata' is the default for all configurations.
  17768. If you compile a module MOD with '-mextern-sdata' '-G NUM'
  17769. '-mgpopt', and MOD references a variable VAR that is no bigger than
  17770. NUM bytes, you must make sure that VAR is placed in a small data
  17771. section. If VAR is defined by another module, you must either
  17772. compile that module with a high-enough '-G' setting or attach a
  17773. 'section' attribute to VAR's definition. If VAR is common, you
  17774. must link the application with a high-enough '-G' setting.
  17775. The easiest way of satisfying these restrictions is to compile and
  17776. link every module with the same '-G' option. However, you may wish
  17777. to build a library that supports several different small data
  17778. limits. You can do this by compiling the library with the highest
  17779. supported '-G' setting and additionally using '-mno-extern-sdata'
  17780. to stop the library from making assumptions about
  17781. externally-defined data.
  17782. '-mgpopt'
  17783. '-mno-gpopt'
  17784. Use (do not use) GP-relative accesses for symbols that are known to
  17785. be in a small data section; see '-G', '-mlocal-sdata' and
  17786. '-mextern-sdata'. '-mgpopt' is the default for all configurations.
  17787. '-mno-gpopt' is useful for cases where the '$gp' register might not
  17788. hold the value of '_gp'. For example, if the code is part of a
  17789. library that might be used in a boot monitor, programs that call
  17790. boot monitor routines pass an unknown value in '$gp'. (In such
  17791. situations, the boot monitor itself is usually compiled with
  17792. '-G0'.)
  17793. '-mno-gpopt' implies '-mno-local-sdata' and '-mno-extern-sdata'.
  17794. '-membedded-data'
  17795. '-mno-embedded-data'
  17796. Allocate variables to the read-only data section first if possible,
  17797. then next in the small data section if possible, otherwise in data.
  17798. This gives slightly slower code than the default, but reduces the
  17799. amount of RAM required when executing, and thus may be preferred
  17800. for some embedded systems.
  17801. '-muninit-const-in-rodata'
  17802. '-mno-uninit-const-in-rodata'
  17803. Put uninitialized 'const' variables in the read-only data section.
  17804. This option is only meaningful in conjunction with
  17805. '-membedded-data'.
  17806. '-mcode-readable=SETTING'
  17807. Specify whether GCC may generate code that reads from executable
  17808. sections. There are three possible settings:
  17809. '-mcode-readable=yes'
  17810. Instructions may freely access executable sections. This is
  17811. the default setting.
  17812. '-mcode-readable=pcrel'
  17813. MIPS16 PC-relative load instructions can access executable
  17814. sections, but other instructions must not do so. This option
  17815. is useful on 4KSc and 4KSd processors when the code TLBs have
  17816. the Read Inhibit bit set. It is also useful on processors
  17817. that can be configured to have a dual instruction/data SRAM
  17818. interface and that, like the M4K, automatically redirect
  17819. PC-relative loads to the instruction RAM.
  17820. '-mcode-readable=no'
  17821. Instructions must not access executable sections. This option
  17822. can be useful on targets that are configured to have a dual
  17823. instruction/data SRAM interface but that (unlike the M4K) do
  17824. not automatically redirect PC-relative loads to the
  17825. instruction RAM.
  17826. '-msplit-addresses'
  17827. '-mno-split-addresses'
  17828. Enable (disable) use of the '%hi()' and '%lo()' assembler
  17829. relocation operators. This option has been superseded by
  17830. '-mexplicit-relocs' but is retained for backwards compatibility.
  17831. '-mexplicit-relocs'
  17832. '-mno-explicit-relocs'
  17833. Use (do not use) assembler relocation operators when dealing with
  17834. symbolic addresses. The alternative, selected by
  17835. '-mno-explicit-relocs', is to use assembler macros instead.
  17836. '-mexplicit-relocs' is the default if GCC was configured to use an
  17837. assembler that supports relocation operators.
  17838. '-mcheck-zero-division'
  17839. '-mno-check-zero-division'
  17840. Trap (do not trap) on integer division by zero.
  17841. The default is '-mcheck-zero-division'.
  17842. '-mdivide-traps'
  17843. '-mdivide-breaks'
  17844. MIPS systems check for division by zero by generating either a
  17845. conditional trap or a break instruction. Using traps results in
  17846. smaller code, but is only supported on MIPS II and later. Also,
  17847. some versions of the Linux kernel have a bug that prevents trap
  17848. from generating the proper signal ('SIGFPE'). Use '-mdivide-traps'
  17849. to allow conditional traps on architectures that support them and
  17850. '-mdivide-breaks' to force the use of breaks.
  17851. The default is usually '-mdivide-traps', but this can be overridden
  17852. at configure time using '--with-divide=breaks'. Divide-by-zero
  17853. checks can be completely disabled using '-mno-check-zero-division'.
  17854. '-mload-store-pairs'
  17855. '-mno-load-store-pairs'
  17856. Enable (disable) an optimization that pairs consecutive load or
  17857. store instructions to enable load/store bonding. This option is
  17858. enabled by default but only takes effect when the selected
  17859. architecture is known to support bonding.
  17860. '-mmemcpy'
  17861. '-mno-memcpy'
  17862. Force (do not force) the use of 'memcpy' for non-trivial block
  17863. moves. The default is '-mno-memcpy', which allows GCC to inline
  17864. most constant-sized copies.
  17865. '-mlong-calls'
  17866. '-mno-long-calls'
  17867. Disable (do not disable) use of the 'jal' instruction. Calling
  17868. functions using 'jal' is more efficient but requires the caller and
  17869. callee to be in the same 256 megabyte segment.
  17870. This option has no effect on abicalls code. The default is
  17871. '-mno-long-calls'.
  17872. '-mmad'
  17873. '-mno-mad'
  17874. Enable (disable) use of the 'mad', 'madu' and 'mul' instructions,
  17875. as provided by the R4650 ISA.
  17876. '-mimadd'
  17877. '-mno-imadd'
  17878. Enable (disable) use of the 'madd' and 'msub' integer instructions.
  17879. The default is '-mimadd' on architectures that support 'madd' and
  17880. 'msub' except for the 74k architecture where it was found to
  17881. generate slower code.
  17882. '-mfused-madd'
  17883. '-mno-fused-madd'
  17884. Enable (disable) use of the floating-point multiply-accumulate
  17885. instructions, when they are available. The default is
  17886. '-mfused-madd'.
  17887. On the R8000 CPU when multiply-accumulate instructions are used,
  17888. the intermediate product is calculated to infinite precision and is
  17889. not subject to the FCSR Flush to Zero bit. This may be undesirable
  17890. in some circumstances. On other processors the result is
  17891. numerically identical to the equivalent computation using separate
  17892. multiply, add, subtract and negate instructions.
  17893. '-nocpp'
  17894. Tell the MIPS assembler to not run its preprocessor over user
  17895. assembler files (with a '.s' suffix) when assembling them.
  17896. '-mfix-24k'
  17897. '-mno-fix-24k'
  17898. Work around the 24K E48 (lost data on stores during refill) errata.
  17899. The workarounds are implemented by the assembler rather than by
  17900. GCC.
  17901. '-mfix-r4000'
  17902. '-mno-fix-r4000'
  17903. Work around certain R4000 CPU errata:
  17904. - A double-word or a variable shift may give an incorrect result
  17905. if executed immediately after starting an integer division.
  17906. - A double-word or a variable shift may give an incorrect result
  17907. if executed while an integer multiplication is in progress.
  17908. - An integer division may give an incorrect result if started in
  17909. a delay slot of a taken branch or a jump.
  17910. '-mfix-r4400'
  17911. '-mno-fix-r4400'
  17912. Work around certain R4400 CPU errata:
  17913. - A double-word or a variable shift may give an incorrect result
  17914. if executed immediately after starting an integer division.
  17915. '-mfix-r10000'
  17916. '-mno-fix-r10000'
  17917. Work around certain R10000 errata:
  17918. - 'll'/'sc' sequences may not behave atomically on revisions
  17919. prior to 3.0. They may deadlock on revisions 2.6 and earlier.
  17920. This option can only be used if the target architecture supports
  17921. branch-likely instructions. '-mfix-r10000' is the default when
  17922. '-march=r10000' is used; '-mno-fix-r10000' is the default
  17923. otherwise.
  17924. '-mfix-r5900'
  17925. '-mno-fix-r5900'
  17926. Do not attempt to schedule the preceding instruction into the delay
  17927. slot of a branch instruction placed at the end of a short loop of
  17928. six instructions or fewer and always schedule a 'nop' instruction
  17929. there instead. The short loop bug under certain conditions causes
  17930. loops to execute only once or twice, due to a hardware bug in the
  17931. R5900 chip. The workaround is implemented by the assembler rather
  17932. than by GCC.
  17933. '-mfix-rm7000'
  17934. '-mno-fix-rm7000'
  17935. Work around the RM7000 'dmult'/'dmultu' errata. The workarounds
  17936. are implemented by the assembler rather than by GCC.
  17937. '-mfix-vr4120'
  17938. '-mno-fix-vr4120'
  17939. Work around certain VR4120 errata:
  17940. - 'dmultu' does not always produce the correct result.
  17941. - 'div' and 'ddiv' do not always produce the correct result if
  17942. one of the operands is negative.
  17943. The workarounds for the division errata rely on special functions
  17944. in 'libgcc.a'. At present, these functions are only provided by
  17945. the 'mips64vr*-elf' configurations.
  17946. Other VR4120 errata require a NOP to be inserted between certain
  17947. pairs of instructions. These errata are handled by the assembler,
  17948. not by GCC itself.
  17949. '-mfix-vr4130'
  17950. Work around the VR4130 'mflo'/'mfhi' errata. The workarounds are
  17951. implemented by the assembler rather than by GCC, although GCC
  17952. avoids using 'mflo' and 'mfhi' if the VR4130 'macc', 'macchi',
  17953. 'dmacc' and 'dmacchi' instructions are available instead.
  17954. '-mfix-sb1'
  17955. '-mno-fix-sb1'
  17956. Work around certain SB-1 CPU core errata. (This flag currently
  17957. works around the SB-1 revision 2 "F1" and "F2" floating-point
  17958. errata.)
  17959. '-mr10k-cache-barrier=SETTING'
  17960. Specify whether GCC should insert cache barriers to avoid the side
  17961. effects of speculation on R10K processors.
  17962. In common with many processors, the R10K tries to predict the
  17963. outcome of a conditional branch and speculatively executes
  17964. instructions from the "taken" branch. It later aborts these
  17965. instructions if the predicted outcome is wrong. However, on the
  17966. R10K, even aborted instructions can have side effects.
  17967. This problem only affects kernel stores and, depending on the
  17968. system, kernel loads. As an example, a speculatively-executed
  17969. store may load the target memory into cache and mark the cache line
  17970. as dirty, even if the store itself is later aborted. If a DMA
  17971. operation writes to the same area of memory before the "dirty" line
  17972. is flushed, the cached data overwrites the DMA-ed data. See the
  17973. R10K processor manual for a full description, including other
  17974. potential problems.
  17975. One workaround is to insert cache barrier instructions before every
  17976. memory access that might be speculatively executed and that might
  17977. have side effects even if aborted. '-mr10k-cache-barrier=SETTING'
  17978. controls GCC's implementation of this workaround. It assumes that
  17979. aborted accesses to any byte in the following regions does not have
  17980. side effects:
  17981. 1. the memory occupied by the current function's stack frame;
  17982. 2. the memory occupied by an incoming stack argument;
  17983. 3. the memory occupied by an object with a link-time-constant
  17984. address.
  17985. It is the kernel's responsibility to ensure that speculative
  17986. accesses to these regions are indeed safe.
  17987. If the input program contains a function declaration such as:
  17988. void foo (void);
  17989. then the implementation of 'foo' must allow 'j foo' and 'jal foo'
  17990. to be executed speculatively. GCC honors this restriction for
  17991. functions it compiles itself. It expects non-GCC functions (such
  17992. as hand-written assembly code) to do the same.
  17993. The option has three forms:
  17994. '-mr10k-cache-barrier=load-store'
  17995. Insert a cache barrier before a load or store that might be
  17996. speculatively executed and that might have side effects even
  17997. if aborted.
  17998. '-mr10k-cache-barrier=store'
  17999. Insert a cache barrier before a store that might be
  18000. speculatively executed and that might have side effects even
  18001. if aborted.
  18002. '-mr10k-cache-barrier=none'
  18003. Disable the insertion of cache barriers. This is the default
  18004. setting.
  18005. '-mflush-func=FUNC'
  18006. '-mno-flush-func'
  18007. Specifies the function to call to flush the I and D caches, or to
  18008. not call any such function. If called, the function must take the
  18009. same arguments as the common '_flush_func', that is, the address of
  18010. the memory range for which the cache is being flushed, the size of
  18011. the memory range, and the number 3 (to flush both caches). The
  18012. default depends on the target GCC was configured for, but commonly
  18013. is either '_flush_func' or '__cpu_flush'.
  18014. 'mbranch-cost=NUM'
  18015. Set the cost of branches to roughly NUM "simple" instructions.
  18016. This cost is only a heuristic and is not guaranteed to produce
  18017. consistent results across releases. A zero cost redundantly
  18018. selects the default, which is based on the '-mtune' setting.
  18019. '-mbranch-likely'
  18020. '-mno-branch-likely'
  18021. Enable or disable use of Branch Likely instructions, regardless of
  18022. the default for the selected architecture. By default, Branch
  18023. Likely instructions may be generated if they are supported by the
  18024. selected architecture. An exception is for the MIPS32 and MIPS64
  18025. architectures and processors that implement those architectures;
  18026. for those, Branch Likely instructions are not be generated by
  18027. default because the MIPS32 and MIPS64 architectures specifically
  18028. deprecate their use.
  18029. '-mcompact-branches=never'
  18030. '-mcompact-branches=optimal'
  18031. '-mcompact-branches=always'
  18032. These options control which form of branches will be generated.
  18033. The default is '-mcompact-branches=optimal'.
  18034. The '-mcompact-branches=never' option ensures that compact branch
  18035. instructions will never be generated.
  18036. The '-mcompact-branches=always' option ensures that a compact
  18037. branch instruction will be generated if available. If a compact
  18038. branch instruction is not available, a delay slot form of the
  18039. branch will be used instead.
  18040. This option is supported from MIPS Release 6 onwards.
  18041. The '-mcompact-branches=optimal' option will cause a delay slot
  18042. branch to be used if one is available in the current ISA and the
  18043. delay slot is successfully filled. If the delay slot is not
  18044. filled, a compact branch will be chosen if one is available.
  18045. '-mfp-exceptions'
  18046. '-mno-fp-exceptions'
  18047. Specifies whether FP exceptions are enabled. This affects how FP
  18048. instructions are scheduled for some processors. The default is
  18049. that FP exceptions are enabled.
  18050. For instance, on the SB-1, if FP exceptions are disabled, and we
  18051. are emitting 64-bit code, then we can use both FP pipes.
  18052. Otherwise, we can only use one FP pipe.
  18053. '-mvr4130-align'
  18054. '-mno-vr4130-align'
  18055. The VR4130 pipeline is two-way superscalar, but can only issue two
  18056. instructions together if the first one is 8-byte aligned. When
  18057. this option is enabled, GCC aligns pairs of instructions that it
  18058. thinks should execute in parallel.
  18059. This option only has an effect when optimizing for the VR4130. It
  18060. normally makes code faster, but at the expense of making it bigger.
  18061. It is enabled by default at optimization level '-O3'.
  18062. '-msynci'
  18063. '-mno-synci'
  18064. Enable (disable) generation of 'synci' instructions on
  18065. architectures that support it. The 'synci' instructions (if
  18066. enabled) are generated when '__builtin___clear_cache' is compiled.
  18067. This option defaults to '-mno-synci', but the default can be
  18068. overridden by configuring GCC with '--with-synci'.
  18069. When compiling code for single processor systems, it is generally
  18070. safe to use 'synci'. However, on many multi-core (SMP) systems, it
  18071. does not invalidate the instruction caches on all cores and may
  18072. lead to undefined behavior.
  18073. '-mrelax-pic-calls'
  18074. '-mno-relax-pic-calls'
  18075. Try to turn PIC calls that are normally dispatched via register
  18076. '$25' into direct calls. This is only possible if the linker can
  18077. resolve the destination at link time and if the destination is
  18078. within range for a direct call.
  18079. '-mrelax-pic-calls' is the default if GCC was configured to use an
  18080. assembler and a linker that support the '.reloc' assembly directive
  18081. and '-mexplicit-relocs' is in effect. With '-mno-explicit-relocs',
  18082. this optimization can be performed by the assembler and the linker
  18083. alone without help from the compiler.
  18084. '-mmcount-ra-address'
  18085. '-mno-mcount-ra-address'
  18086. Emit (do not emit) code that allows '_mcount' to modify the calling
  18087. function's return address. When enabled, this option extends the
  18088. usual '_mcount' interface with a new RA-ADDRESS parameter, which
  18089. has type 'intptr_t *' and is passed in register '$12'. '_mcount'
  18090. can then modify the return address by doing both of the following:
  18091. * Returning the new address in register '$31'.
  18092. * Storing the new address in '*RA-ADDRESS', if RA-ADDRESS is
  18093. nonnull.
  18094. The default is '-mno-mcount-ra-address'.
  18095. '-mframe-header-opt'
  18096. '-mno-frame-header-opt'
  18097. Enable (disable) frame header optimization in the o32 ABI. When
  18098. using the o32 ABI, calling functions will allocate 16 bytes on the
  18099. stack for the called function to write out register arguments.
  18100. When enabled, this optimization will suppress the allocation of the
  18101. frame header if it can be determined that it is unused.
  18102. This optimization is off by default at all optimization levels.
  18103. '-mlxc1-sxc1'
  18104. '-mno-lxc1-sxc1'
  18105. When applicable, enable (disable) the generation of 'lwxc1',
  18106. 'swxc1', 'ldxc1', 'sdxc1' instructions. Enabled by default.
  18107. '-mmadd4'
  18108. '-mno-madd4'
  18109. When applicable, enable (disable) the generation of 4-operand
  18110. 'madd.s', 'madd.d' and related instructions. Enabled by default.
  18111. 
  18112. File: gcc.info, Node: MMIX Options, Next: MN10300 Options, Prev: MIPS Options, Up: Submodel Options
  18113. 3.19.30 MMIX Options
  18114. --------------------
  18115. These options are defined for the MMIX:
  18116. '-mlibfuncs'
  18117. '-mno-libfuncs'
  18118. Specify that intrinsic library functions are being compiled,
  18119. passing all values in registers, no matter the size.
  18120. '-mepsilon'
  18121. '-mno-epsilon'
  18122. Generate floating-point comparison instructions that compare with
  18123. respect to the 'rE' epsilon register.
  18124. '-mabi=mmixware'
  18125. '-mabi=gnu'
  18126. Generate code that passes function parameters and return values
  18127. that (in the called function) are seen as registers '$0' and up, as
  18128. opposed to the GNU ABI which uses global registers '$231' and up.
  18129. '-mzero-extend'
  18130. '-mno-zero-extend'
  18131. When reading data from memory in sizes shorter than 64 bits, use
  18132. (do not use) zero-extending load instructions by default, rather
  18133. than sign-extending ones.
  18134. '-mknuthdiv'
  18135. '-mno-knuthdiv'
  18136. Make the result of a division yielding a remainder have the same
  18137. sign as the divisor. With the default, '-mno-knuthdiv', the sign
  18138. of the remainder follows the sign of the dividend. Both methods
  18139. are arithmetically valid, the latter being almost exclusively used.
  18140. '-mtoplevel-symbols'
  18141. '-mno-toplevel-symbols'
  18142. Prepend (do not prepend) a ':' to all global symbols, so the
  18143. assembly code can be used with the 'PREFIX' assembly directive.
  18144. '-melf'
  18145. Generate an executable in the ELF format, rather than the default
  18146. 'mmo' format used by the 'mmix' simulator.
  18147. '-mbranch-predict'
  18148. '-mno-branch-predict'
  18149. Use (do not use) the probable-branch instructions, when static
  18150. branch prediction indicates a probable branch.
  18151. '-mbase-addresses'
  18152. '-mno-base-addresses'
  18153. Generate (do not generate) code that uses _base addresses_. Using
  18154. a base address automatically generates a request (handled by the
  18155. assembler and the linker) for a constant to be set up in a global
  18156. register. The register is used for one or more base address
  18157. requests within the range 0 to 255 from the value held in the
  18158. register. The generally leads to short and fast code, but the
  18159. number of different data items that can be addressed is limited.
  18160. This means that a program that uses lots of static data may require
  18161. '-mno-base-addresses'.
  18162. '-msingle-exit'
  18163. '-mno-single-exit'
  18164. Force (do not force) generated code to have a single exit point in
  18165. each function.
  18166. 
  18167. File: gcc.info, Node: MN10300 Options, Next: Moxie Options, Prev: MMIX Options, Up: Submodel Options
  18168. 3.19.31 MN10300 Options
  18169. -----------------------
  18170. These '-m' options are defined for Matsushita MN10300 architectures:
  18171. '-mmult-bug'
  18172. Generate code to avoid bugs in the multiply instructions for the
  18173. MN10300 processors. This is the default.
  18174. '-mno-mult-bug'
  18175. Do not generate code to avoid bugs in the multiply instructions for
  18176. the MN10300 processors.
  18177. '-mam33'
  18178. Generate code using features specific to the AM33 processor.
  18179. '-mno-am33'
  18180. Do not generate code using features specific to the AM33 processor.
  18181. This is the default.
  18182. '-mam33-2'
  18183. Generate code using features specific to the AM33/2.0 processor.
  18184. '-mam34'
  18185. Generate code using features specific to the AM34 processor.
  18186. '-mtune=CPU-TYPE'
  18187. Use the timing characteristics of the indicated CPU type when
  18188. scheduling instructions. This does not change the targeted
  18189. processor type. The CPU type must be one of 'mn10300', 'am33',
  18190. 'am33-2' or 'am34'.
  18191. '-mreturn-pointer-on-d0'
  18192. When generating a function that returns a pointer, return the
  18193. pointer in both 'a0' and 'd0'. Otherwise, the pointer is returned
  18194. only in 'a0', and attempts to call such functions without a
  18195. prototype result in errors. Note that this option is on by
  18196. default; use '-mno-return-pointer-on-d0' to disable it.
  18197. '-mno-crt0'
  18198. Do not link in the C run-time initialization object file.
  18199. '-mrelax'
  18200. Indicate to the linker that it should perform a relaxation
  18201. optimization pass to shorten branches, calls and absolute memory
  18202. addresses. This option only has an effect when used on the command
  18203. line for the final link step.
  18204. This option makes symbolic debugging impossible.
  18205. '-mliw'
  18206. Allow the compiler to generate _Long Instruction Word_ instructions
  18207. if the target is the 'AM33' or later. This is the default. This
  18208. option defines the preprocessor macro '__LIW__'.
  18209. '-mno-liw'
  18210. Do not allow the compiler to generate _Long Instruction Word_
  18211. instructions. This option defines the preprocessor macro
  18212. '__NO_LIW__'.
  18213. '-msetlb'
  18214. Allow the compiler to generate the _SETLB_ and _Lcc_ instructions
  18215. if the target is the 'AM33' or later. This is the default. This
  18216. option defines the preprocessor macro '__SETLB__'.
  18217. '-mno-setlb'
  18218. Do not allow the compiler to generate _SETLB_ or _Lcc_
  18219. instructions. This option defines the preprocessor macro
  18220. '__NO_SETLB__'.
  18221. 
  18222. File: gcc.info, Node: Moxie Options, Next: MSP430 Options, Prev: MN10300 Options, Up: Submodel Options
  18223. 3.19.32 Moxie Options
  18224. ---------------------
  18225. '-meb'
  18226. Generate big-endian code. This is the default for 'moxie-*-*'
  18227. configurations.
  18228. '-mel'
  18229. Generate little-endian code.
  18230. '-mmul.x'
  18231. Generate mul.x and umul.x instructions. This is the default for
  18232. 'moxiebox-*-*' configurations.
  18233. '-mno-crt0'
  18234. Do not link in the C run-time initialization object file.
  18235. 
  18236. File: gcc.info, Node: MSP430 Options, Next: NDS32 Options, Prev: Moxie Options, Up: Submodel Options
  18237. 3.19.33 MSP430 Options
  18238. ----------------------
  18239. These options are defined for the MSP430:
  18240. '-masm-hex'
  18241. Force assembly output to always use hex constants. Normally such
  18242. constants are signed decimals, but this option is available for
  18243. testsuite and/or aesthetic purposes.
  18244. '-mmcu='
  18245. Select the MCU to target. This is used to create a C preprocessor
  18246. symbol based upon the MCU name, converted to upper case and pre-
  18247. and post-fixed with '__'. This in turn is used by the 'msp430.h'
  18248. header file to select an MCU-specific supplementary header file.
  18249. The option also sets the ISA to use. If the MCU name is one that
  18250. is known to only support the 430 ISA then that is selected,
  18251. otherwise the 430X ISA is selected. A generic MCU name of 'msp430'
  18252. can also be used to select the 430 ISA. Similarly the generic
  18253. 'msp430x' MCU name selects the 430X ISA.
  18254. In addition an MCU-specific linker script is added to the linker
  18255. command line. The script's name is the name of the MCU with '.ld'
  18256. appended. Thus specifying '-mmcu=xxx' on the 'gcc' command line
  18257. defines the C preprocessor symbol '__XXX__' and cause the linker to
  18258. search for a script called 'xxx.ld'.
  18259. The ISA and hardware multiply supported for the different MCUs is
  18260. hard-coded into GCC. However, an external 'devices.csv' file can be
  18261. used to extend device support beyond those that have been
  18262. hard-coded.
  18263. GCC searches for the 'devices.csv' file using the following methods
  18264. in the given precedence order, where the first method takes
  18265. precendence over the second which takes precedence over the third.
  18266. Include path specified with '-I' and '-L'
  18267. 'devices.csv' will be searched for in each of the directories
  18268. specified by include paths and linker library search paths.
  18269. Path specified by the environment variable 'MSP430_GCC_INCLUDE_DIR'
  18270. Define the value of the global environment variable
  18271. 'MSP430_GCC_INCLUDE_DIR' to the full path to the directory
  18272. containing devices.csv, and GCC will search this directory for
  18273. devices.csv. If devices.csv is found, this directory will
  18274. also be registered as an include path, and linker library
  18275. path. Header files and linker scripts in this directory can
  18276. therefore be used without manually specifying '-I' and '-L' on
  18277. the command line.
  18278. The 'msp430-elf{,bare}/include/devices' directory
  18279. Finally, GCC will examine 'msp430-elf{,bare}/include/devices'
  18280. from the toolchain root directory. This directory does not
  18281. exist in a default installation, but if the user has created
  18282. it and copied 'devices.csv' there, then the MCU data will be
  18283. read. As above, this directory will also be registered as an
  18284. include path, and linker library path.
  18285. If none of the above search methods find 'devices.csv', then the
  18286. hard-coded MCU data is used.
  18287. '-mwarn-mcu'
  18288. '-mno-warn-mcu'
  18289. This option enables or disables warnings about conflicts between
  18290. the MCU name specified by the '-mmcu' option and the ISA set by the
  18291. '-mcpu' option and/or the hardware multiply support set by the
  18292. '-mhwmult' option. It also toggles warnings about unrecognized MCU
  18293. names. This option is on by default.
  18294. '-mcpu='
  18295. Specifies the ISA to use. Accepted values are 'msp430', 'msp430x'
  18296. and 'msp430xv2'. This option is deprecated. The '-mmcu=' option
  18297. should be used to select the ISA.
  18298. '-msim'
  18299. Link to the simulator runtime libraries and linker script.
  18300. Overrides any scripts that would be selected by the '-mmcu='
  18301. option.
  18302. '-mlarge'
  18303. Use large-model addressing (20-bit pointers, 32-bit 'size_t').
  18304. '-msmall'
  18305. Use small-model addressing (16-bit pointers, 16-bit 'size_t').
  18306. '-mrelax'
  18307. This option is passed to the assembler and linker, and allows the
  18308. linker to perform certain optimizations that cannot be done until
  18309. the final link.
  18310. 'mhwmult='
  18311. Describes the type of hardware multiply supported by the target.
  18312. Accepted values are 'none' for no hardware multiply, '16bit' for
  18313. the original 16-bit-only multiply supported by early MCUs. '32bit'
  18314. for the 16/32-bit multiply supported by later MCUs and 'f5series'
  18315. for the 16/32-bit multiply supported by F5-series MCUs. A value of
  18316. 'auto' can also be given. This tells GCC to deduce the hardware
  18317. multiply support based upon the MCU name provided by the '-mmcu'
  18318. option. If no '-mmcu' option is specified or if the MCU name is
  18319. not recognized then no hardware multiply support is assumed.
  18320. 'auto' is the default setting.
  18321. Hardware multiplies are normally performed by calling a library
  18322. routine. This saves space in the generated code. When compiling
  18323. at '-O3' or higher however the hardware multiplier is invoked
  18324. inline. This makes for bigger, but faster code.
  18325. The hardware multiply routines disable interrupts whilst running
  18326. and restore the previous interrupt state when they finish. This
  18327. makes them safe to use inside interrupt handlers as well as in
  18328. normal code.
  18329. '-minrt'
  18330. Enable the use of a minimum runtime environment - no static
  18331. initializers or constructors. This is intended for
  18332. memory-constrained devices. The compiler includes special symbols
  18333. in some objects that tell the linker and runtime which code
  18334. fragments are required.
  18335. '-mtiny-printf'
  18336. Enable reduced code size 'printf' and 'puts' library functions.
  18337. The 'tiny' implementations of these functions are not reentrant, so
  18338. must be used with caution in multi-threaded applications.
  18339. Support for streams has been removed and the string to be printed
  18340. will always be sent to stdout via the 'write' syscall. The string
  18341. is not buffered before it is sent to write.
  18342. This option requires Newlib Nano IO, so GCC must be configured with
  18343. '--enable-newlib-nano-formatted-io'.
  18344. '-mcode-region='
  18345. '-mdata-region='
  18346. These options tell the compiler where to place functions and data
  18347. that do not have one of the 'lower', 'upper', 'either' or 'section'
  18348. attributes. Possible values are 'lower', 'upper', 'either' or
  18349. 'any'. The first three behave like the corresponding attribute.
  18350. The fourth possible value - 'any' - is the default. It leaves
  18351. placement entirely up to the linker script and how it assigns the
  18352. standard sections ('.text', '.data', etc) to the memory regions.
  18353. '-msilicon-errata='
  18354. This option passes on a request to assembler to enable the fixes
  18355. for the named silicon errata.
  18356. '-msilicon-errata-warn='
  18357. This option passes on a request to the assembler to enable warning
  18358. messages when a silicon errata might need to be applied.
  18359. '-mwarn-devices-csv'
  18360. '-mno-warn-devices-csv'
  18361. Warn if 'devices.csv' is not found or there are problem parsing it
  18362. (default: on).
  18363. 
  18364. File: gcc.info, Node: NDS32 Options, Next: Nios II Options, Prev: MSP430 Options, Up: Submodel Options
  18365. 3.19.34 NDS32 Options
  18366. ---------------------
  18367. These options are defined for NDS32 implementations:
  18368. '-mbig-endian'
  18369. Generate code in big-endian mode.
  18370. '-mlittle-endian'
  18371. Generate code in little-endian mode.
  18372. '-mreduced-regs'
  18373. Use reduced-set registers for register allocation.
  18374. '-mfull-regs'
  18375. Use full-set registers for register allocation.
  18376. '-mcmov'
  18377. Generate conditional move instructions.
  18378. '-mno-cmov'
  18379. Do not generate conditional move instructions.
  18380. '-mext-perf'
  18381. Generate performance extension instructions.
  18382. '-mno-ext-perf'
  18383. Do not generate performance extension instructions.
  18384. '-mext-perf2'
  18385. Generate performance extension 2 instructions.
  18386. '-mno-ext-perf2'
  18387. Do not generate performance extension 2 instructions.
  18388. '-mext-string'
  18389. Generate string extension instructions.
  18390. '-mno-ext-string'
  18391. Do not generate string extension instructions.
  18392. '-mv3push'
  18393. Generate v3 push25/pop25 instructions.
  18394. '-mno-v3push'
  18395. Do not generate v3 push25/pop25 instructions.
  18396. '-m16-bit'
  18397. Generate 16-bit instructions.
  18398. '-mno-16-bit'
  18399. Do not generate 16-bit instructions.
  18400. '-misr-vector-size=NUM'
  18401. Specify the size of each interrupt vector, which must be 4 or 16.
  18402. '-mcache-block-size=NUM'
  18403. Specify the size of each cache block, which must be a power of 2
  18404. between 4 and 512.
  18405. '-march=ARCH'
  18406. Specify the name of the target architecture.
  18407. '-mcmodel=CODE-MODEL'
  18408. Set the code model to one of
  18409. 'small'
  18410. All the data and read-only data segments must be within 512KB
  18411. addressing space. The text segment must be within 16MB
  18412. addressing space.
  18413. 'medium'
  18414. The data segment must be within 512KB while the read-only data
  18415. segment can be within 4GB addressing space. The text segment
  18416. should be still within 16MB addressing space.
  18417. 'large'
  18418. All the text and data segments can be within 4GB addressing
  18419. space.
  18420. '-mctor-dtor'
  18421. Enable constructor/destructor feature.
  18422. '-mrelax'
  18423. Guide linker to relax instructions.
  18424. 
  18425. File: gcc.info, Node: Nios II Options, Next: Nvidia PTX Options, Prev: NDS32 Options, Up: Submodel Options
  18426. 3.19.35 Nios II Options
  18427. -----------------------
  18428. These are the options defined for the Altera Nios II processor.
  18429. '-G NUM'
  18430. Put global and static objects less than or equal to NUM bytes into
  18431. the small data or BSS sections instead of the normal data or BSS
  18432. sections. The default value of NUM is 8.
  18433. '-mgpopt=OPTION'
  18434. '-mgpopt'
  18435. '-mno-gpopt'
  18436. Generate (do not generate) GP-relative accesses. The following
  18437. OPTION names are recognized:
  18438. 'none'
  18439. Do not generate GP-relative accesses.
  18440. 'local'
  18441. Generate GP-relative accesses for small data objects that are
  18442. not external, weak, or uninitialized common symbols. Also use
  18443. GP-relative addressing for objects that have been explicitly
  18444. placed in a small data section via a 'section' attribute.
  18445. 'global'
  18446. As for 'local', but also generate GP-relative accesses for
  18447. small data objects that are external, weak, or common. If you
  18448. use this option, you must ensure that all parts of your
  18449. program (including libraries) are compiled with the same '-G'
  18450. setting.
  18451. 'data'
  18452. Generate GP-relative accesses for all data objects in the
  18453. program. If you use this option, the entire data and BSS
  18454. segments of your program must fit in 64K of memory and you
  18455. must use an appropriate linker script to allocate them within
  18456. the addressable range of the global pointer.
  18457. 'all'
  18458. Generate GP-relative addresses for function pointers as well
  18459. as data pointers. If you use this option, the entire text,
  18460. data, and BSS segments of your program must fit in 64K of
  18461. memory and you must use an appropriate linker script to
  18462. allocate them within the addressable range of the global
  18463. pointer.
  18464. '-mgpopt' is equivalent to '-mgpopt=local', and '-mno-gpopt' is
  18465. equivalent to '-mgpopt=none'.
  18466. The default is '-mgpopt' except when '-fpic' or '-fPIC' is
  18467. specified to generate position-independent code. Note that the
  18468. Nios II ABI does not permit GP-relative accesses from shared
  18469. libraries.
  18470. You may need to specify '-mno-gpopt' explicitly when building
  18471. programs that include large amounts of small data, including large
  18472. GOT data sections. In this case, the 16-bit offset for GP-relative
  18473. addressing may not be large enough to allow access to the entire
  18474. small data section.
  18475. '-mgprel-sec=REGEXP'
  18476. This option specifies additional section names that can be accessed
  18477. via GP-relative addressing. It is most useful in conjunction with
  18478. 'section' attributes on variable declarations (*note Common
  18479. Variable Attributes::) and a custom linker script. The REGEXP is a
  18480. POSIX Extended Regular Expression.
  18481. This option does not affect the behavior of the '-G' option, and
  18482. the specified sections are in addition to the standard '.sdata' and
  18483. '.sbss' small-data sections that are recognized by '-mgpopt'.
  18484. '-mr0rel-sec=REGEXP'
  18485. This option specifies names of sections that can be accessed via a
  18486. 16-bit offset from 'r0'; that is, in the low 32K or high 32K of the
  18487. 32-bit address space. It is most useful in conjunction with
  18488. 'section' attributes on variable declarations (*note Common
  18489. Variable Attributes::) and a custom linker script. The REGEXP is a
  18490. POSIX Extended Regular Expression.
  18491. In contrast to the use of GP-relative addressing for small data,
  18492. zero-based addressing is never generated by default and there are
  18493. no conventional section names used in standard linker scripts for
  18494. sections in the low or high areas of memory.
  18495. '-mel'
  18496. '-meb'
  18497. Generate little-endian (default) or big-endian (experimental) code,
  18498. respectively.
  18499. '-march=ARCH'
  18500. This specifies the name of the target Nios II architecture. GCC
  18501. uses this name to determine what kind of instructions it can emit
  18502. when generating assembly code. Permissible names are: 'r1', 'r2'.
  18503. The preprocessor macro '__nios2_arch__' is available to programs,
  18504. with value 1 or 2, indicating the targeted ISA level.
  18505. '-mbypass-cache'
  18506. '-mno-bypass-cache'
  18507. Force all load and store instructions to always bypass cache by
  18508. using I/O variants of the instructions. The default is not to
  18509. bypass the cache.
  18510. '-mno-cache-volatile'
  18511. '-mcache-volatile'
  18512. Volatile memory access bypass the cache using the I/O variants of
  18513. the load and store instructions. The default is not to bypass the
  18514. cache.
  18515. '-mno-fast-sw-div'
  18516. '-mfast-sw-div'
  18517. Do not use table-based fast divide for small numbers. The default
  18518. is to use the fast divide at '-O3' and above.
  18519. '-mno-hw-mul'
  18520. '-mhw-mul'
  18521. '-mno-hw-mulx'
  18522. '-mhw-mulx'
  18523. '-mno-hw-div'
  18524. '-mhw-div'
  18525. Enable or disable emitting 'mul', 'mulx' and 'div' family of
  18526. instructions by the compiler. The default is to emit 'mul' and not
  18527. emit 'div' and 'mulx'.
  18528. '-mbmx'
  18529. '-mno-bmx'
  18530. '-mcdx'
  18531. '-mno-cdx'
  18532. Enable or disable generation of Nios II R2 BMX (bit manipulation)
  18533. and CDX (code density) instructions. Enabling these instructions
  18534. also requires '-march=r2'. Since these instructions are optional
  18535. extensions to the R2 architecture, the default is not to emit them.
  18536. '-mcustom-INSN=N'
  18537. '-mno-custom-INSN'
  18538. Each '-mcustom-INSN=N' option enables use of a custom instruction
  18539. with encoding N when generating code that uses INSN. For example,
  18540. '-mcustom-fadds=253' generates custom instruction 253 for
  18541. single-precision floating-point add operations instead of the
  18542. default behavior of using a library call.
  18543. The following values of INSN are supported. Except as otherwise
  18544. noted, floating-point operations are expected to be implemented
  18545. with normal IEEE 754 semantics and correspond directly to the C
  18546. operators or the equivalent GCC built-in functions (*note Other
  18547. Builtins::).
  18548. Single-precision floating point:
  18549. 'fadds', 'fsubs', 'fdivs', 'fmuls'
  18550. Binary arithmetic operations.
  18551. 'fnegs'
  18552. Unary negation.
  18553. 'fabss'
  18554. Unary absolute value.
  18555. 'fcmpeqs', 'fcmpges', 'fcmpgts', 'fcmples', 'fcmplts', 'fcmpnes'
  18556. Comparison operations.
  18557. 'fmins', 'fmaxs'
  18558. Floating-point minimum and maximum. These instructions are
  18559. only generated if '-ffinite-math-only' is specified.
  18560. 'fsqrts'
  18561. Unary square root operation.
  18562. 'fcoss', 'fsins', 'ftans', 'fatans', 'fexps', 'flogs'
  18563. Floating-point trigonometric and exponential functions. These
  18564. instructions are only generated if
  18565. '-funsafe-math-optimizations' is also specified.
  18566. Double-precision floating point:
  18567. 'faddd', 'fsubd', 'fdivd', 'fmuld'
  18568. Binary arithmetic operations.
  18569. 'fnegd'
  18570. Unary negation.
  18571. 'fabsd'
  18572. Unary absolute value.
  18573. 'fcmpeqd', 'fcmpged', 'fcmpgtd', 'fcmpled', 'fcmpltd', 'fcmpned'
  18574. Comparison operations.
  18575. 'fmind', 'fmaxd'
  18576. Double-precision minimum and maximum. These instructions are
  18577. only generated if '-ffinite-math-only' is specified.
  18578. 'fsqrtd'
  18579. Unary square root operation.
  18580. 'fcosd', 'fsind', 'ftand', 'fatand', 'fexpd', 'flogd'
  18581. Double-precision trigonometric and exponential functions.
  18582. These instructions are only generated if
  18583. '-funsafe-math-optimizations' is also specified.
  18584. Conversions:
  18585. 'fextsd'
  18586. Conversion from single precision to double precision.
  18587. 'ftruncds'
  18588. Conversion from double precision to single precision.
  18589. 'fixsi', 'fixsu', 'fixdi', 'fixdu'
  18590. Conversion from floating point to signed or unsigned integer
  18591. types, with truncation towards zero.
  18592. 'round'
  18593. Conversion from single-precision floating point to signed
  18594. integer, rounding to the nearest integer and ties away from
  18595. zero. This corresponds to the '__builtin_lroundf' function
  18596. when '-fno-math-errno' is used.
  18597. 'floatis', 'floatus', 'floatid', 'floatud'
  18598. Conversion from signed or unsigned integer types to
  18599. floating-point types.
  18600. In addition, all of the following transfer instructions for
  18601. internal registers X and Y must be provided to use any of the
  18602. double-precision floating-point instructions. Custom instructions
  18603. taking two double-precision source operands expect the first
  18604. operand in the 64-bit register X. The other operand (or only
  18605. operand of a unary operation) is given to the custom arithmetic
  18606. instruction with the least significant half in source register SRC1
  18607. and the most significant half in SRC2. A custom instruction that
  18608. returns a double-precision result returns the most significant 32
  18609. bits in the destination register and the other half in 32-bit
  18610. register Y. GCC automatically generates the necessary code
  18611. sequences to write register X and/or read register Y when
  18612. double-precision floating-point instructions are used.
  18613. 'fwrx'
  18614. Write SRC1 into the least significant half of X and SRC2 into
  18615. the most significant half of X.
  18616. 'fwry'
  18617. Write SRC1 into Y.
  18618. 'frdxhi', 'frdxlo'
  18619. Read the most or least (respectively) significant half of X
  18620. and store it in DEST.
  18621. 'frdy'
  18622. Read the value of Y and store it into DEST.
  18623. Note that you can gain more local control over generation of Nios
  18624. II custom instructions by using the 'target("custom-INSN=N")' and
  18625. 'target("no-custom-INSN")' function attributes (*note Function
  18626. Attributes::) or pragmas (*note Function Specific Option
  18627. Pragmas::).
  18628. '-mcustom-fpu-cfg=NAME'
  18629. This option enables a predefined, named set of custom instruction
  18630. encodings (see '-mcustom-INSN' above). Currently, the following
  18631. sets are defined:
  18632. '-mcustom-fpu-cfg=60-1' is equivalent to:
  18633. -mcustom-fmuls=252
  18634. -mcustom-fadds=253
  18635. -mcustom-fsubs=254
  18636. -fsingle-precision-constant
  18637. '-mcustom-fpu-cfg=60-2' is equivalent to:
  18638. -mcustom-fmuls=252
  18639. -mcustom-fadds=253
  18640. -mcustom-fsubs=254
  18641. -mcustom-fdivs=255
  18642. -fsingle-precision-constant
  18643. '-mcustom-fpu-cfg=72-3' is equivalent to:
  18644. -mcustom-floatus=243
  18645. -mcustom-fixsi=244
  18646. -mcustom-floatis=245
  18647. -mcustom-fcmpgts=246
  18648. -mcustom-fcmples=249
  18649. -mcustom-fcmpeqs=250
  18650. -mcustom-fcmpnes=251
  18651. -mcustom-fmuls=252
  18652. -mcustom-fadds=253
  18653. -mcustom-fsubs=254
  18654. -mcustom-fdivs=255
  18655. -fsingle-precision-constant
  18656. Custom instruction assignments given by individual '-mcustom-INSN='
  18657. options override those given by '-mcustom-fpu-cfg=', regardless of
  18658. the order of the options on the command line.
  18659. Note that you can gain more local control over selection of a FPU
  18660. configuration by using the 'target("custom-fpu-cfg=NAME")' function
  18661. attribute (*note Function Attributes::) or pragma (*note Function
  18662. Specific Option Pragmas::).
  18663. These additional '-m' options are available for the Altera Nios II ELF
  18664. (bare-metal) target:
  18665. '-mhal'
  18666. Link with HAL BSP. This suppresses linking with the GCC-provided C
  18667. runtime startup and termination code, and is typically used in
  18668. conjunction with '-msys-crt0=' to specify the location of the
  18669. alternate startup code provided by the HAL BSP.
  18670. '-msmallc'
  18671. Link with a limited version of the C library, '-lsmallc', rather
  18672. than Newlib.
  18673. '-msys-crt0=STARTFILE'
  18674. STARTFILE is the file name of the startfile (crt0) to use when
  18675. linking. This option is only useful in conjunction with '-mhal'.
  18676. '-msys-lib=SYSTEMLIB'
  18677. SYSTEMLIB is the library name of the library that provides
  18678. low-level system calls required by the C library, e.g. 'read' and
  18679. 'write'. This option is typically used to link with a library
  18680. provided by a HAL BSP.
  18681. 
  18682. File: gcc.info, Node: Nvidia PTX Options, Next: OpenRISC Options, Prev: Nios II Options, Up: Submodel Options
  18683. 3.19.36 Nvidia PTX Options
  18684. --------------------------
  18685. These options are defined for Nvidia PTX:
  18686. '-m32'
  18687. '-m64'
  18688. Generate code for 32-bit or 64-bit ABI.
  18689. '-misa=ISA-STRING'
  18690. Generate code for given the specified PTX ISA (e.g. 'sm_35'). ISA
  18691. strings must be lower-case. Valid ISA strings include 'sm_30' and
  18692. 'sm_35'. The default ISA is sm_30.
  18693. '-mmainkernel'
  18694. Link in code for a __main kernel. This is for stand-alone instead
  18695. of offloading execution.
  18696. '-moptimize'
  18697. Apply partitioned execution optimizations. This is the default
  18698. when any level of optimization is selected.
  18699. '-msoft-stack'
  18700. Generate code that does not use '.local' memory directly for stack
  18701. storage. Instead, a per-warp stack pointer is maintained
  18702. explicitly. This enables variable-length stack allocation (with
  18703. variable-length arrays or 'alloca'), and when global memory is used
  18704. for underlying storage, makes it possible to access automatic
  18705. variables from other threads, or with atomic instructions. This
  18706. code generation variant is used for OpenMP offloading, but the
  18707. option is exposed on its own for the purpose of testing the
  18708. compiler; to generate code suitable for linking into programs using
  18709. OpenMP offloading, use option '-mgomp'.
  18710. '-muniform-simt'
  18711. Switch to code generation variant that allows to execute all
  18712. threads in each warp, while maintaining memory state and side
  18713. effects as if only one thread in each warp was active outside of
  18714. OpenMP SIMD regions. All atomic operations and calls to runtime
  18715. (malloc, free, vprintf) are conditionally executed (iff current
  18716. lane index equals the master lane index), and the register being
  18717. assigned is copied via a shuffle instruction from the master lane.
  18718. Outside of SIMD regions lane 0 is the master; inside, each thread
  18719. sees itself as the master. Shared memory array 'int __nvptx_uni[]'
  18720. stores all-zeros or all-ones bitmasks for each warp, indicating
  18721. current mode (0 outside of SIMD regions). Each thread can
  18722. bitwise-and the bitmask at position 'tid.y' with current lane index
  18723. to compute the master lane index.
  18724. '-mgomp'
  18725. Generate code for use in OpenMP offloading: enables '-msoft-stack'
  18726. and '-muniform-simt' options, and selects corresponding multilib
  18727. variant.
  18728. 
  18729. File: gcc.info, Node: OpenRISC Options, Next: PDP-11 Options, Prev: Nvidia PTX Options, Up: Submodel Options
  18730. 3.19.37 OpenRISC Options
  18731. ------------------------
  18732. These options are defined for OpenRISC:
  18733. '-mboard=NAME'
  18734. Configure a board specific runtime. This will be passed to the
  18735. linker for newlib board library linking. The default is 'or1ksim'.
  18736. '-mnewlib'
  18737. This option is ignored; it is for compatibility purposes only.
  18738. This used to select linker and preprocessor options for use with
  18739. newlib.
  18740. '-msoft-div'
  18741. '-mhard-div'
  18742. Select software or hardware divide ('l.div', 'l.divu')
  18743. instructions. This default is hardware divide.
  18744. '-msoft-mul'
  18745. '-mhard-mul'
  18746. Select software or hardware multiply ('l.mul', 'l.muli')
  18747. instructions. This default is hardware multiply.
  18748. '-msoft-float'
  18749. '-mhard-float'
  18750. Select software or hardware for floating point operations. The
  18751. default is software.
  18752. '-mdouble-float'
  18753. When '-mhard-float' is selected, enables generation of
  18754. double-precision floating point instructions. By default functions
  18755. from 'libgcc' are used to perform double-precision floating point
  18756. operations.
  18757. '-munordered-float'
  18758. When '-mhard-float' is selected, enables generation of unordered
  18759. floating point compare and set flag ('lf.sfun*') instructions. By
  18760. default functions from 'libgcc' are used to perform unordered
  18761. floating point compare and set flag operations.
  18762. '-mcmov'
  18763. Enable generation of conditional move ('l.cmov') instructions. By
  18764. default the equivalent will be generated using set and branch.
  18765. '-mror'
  18766. Enable generation of rotate right ('l.ror') instructions. By
  18767. default functions from 'libgcc' are used to perform rotate right
  18768. operations.
  18769. '-mrori'
  18770. Enable generation of rotate right with immediate ('l.rori')
  18771. instructions. By default functions from 'libgcc' are used to
  18772. perform rotate right with immediate operations.
  18773. '-msext'
  18774. Enable generation of sign extension ('l.ext*') instructions. By
  18775. default memory loads are used to perform sign extension.
  18776. '-msfimm'
  18777. Enable generation of compare and set flag with immediate ('l.sf*i')
  18778. instructions. By default extra instructions will be generated to
  18779. store the immediate to a register first.
  18780. '-mshftimm'
  18781. Enable generation of shift with immediate ('l.srai', 'l.srli',
  18782. 'l.slli') instructions. By default extra instructions will be
  18783. generated to store the immediate to a register first.
  18784. 
  18785. File: gcc.info, Node: PDP-11 Options, Next: picoChip Options, Prev: OpenRISC Options, Up: Submodel Options
  18786. 3.19.38 PDP-11 Options
  18787. ----------------------
  18788. These options are defined for the PDP-11:
  18789. '-mfpu'
  18790. Use hardware FPP floating point. This is the default. (FIS
  18791. floating point on the PDP-11/40 is not supported.) Implies -m45.
  18792. '-msoft-float'
  18793. Do not use hardware floating point.
  18794. '-mac0'
  18795. Return floating-point results in ac0 (fr0 in Unix assembler
  18796. syntax).
  18797. '-mno-ac0'
  18798. Return floating-point results in memory. This is the default.
  18799. '-m40'
  18800. Generate code for a PDP-11/40. Implies -msoft-float -mno-split.
  18801. '-m45'
  18802. Generate code for a PDP-11/45. This is the default.
  18803. '-m10'
  18804. Generate code for a PDP-11/10. Implies -msoft-float -mno-split.
  18805. '-mint16'
  18806. '-mno-int32'
  18807. Use 16-bit 'int'. This is the default.
  18808. '-mint32'
  18809. '-mno-int16'
  18810. Use 32-bit 'int'.
  18811. '-msplit'
  18812. Target has split instruction and data space. Implies -m45.
  18813. '-munix-asm'
  18814. Use Unix assembler syntax.
  18815. '-mdec-asm'
  18816. Use DEC assembler syntax.
  18817. '-mgnu-asm'
  18818. Use GNU assembler syntax. This is the default.
  18819. '-mlra'
  18820. Use the new LRA register allocator. By default, the old "reload"
  18821. allocator is used.
  18822. 
  18823. File: gcc.info, Node: picoChip Options, Next: PowerPC Options, Prev: PDP-11 Options, Up: Submodel Options
  18824. 3.19.39 picoChip Options
  18825. ------------------------
  18826. These '-m' options are defined for picoChip implementations:
  18827. '-mae=AE_TYPE'
  18828. Set the instruction set, register set, and instruction scheduling
  18829. parameters for array element type AE_TYPE. Supported values for
  18830. AE_TYPE are 'ANY', 'MUL', and 'MAC'.
  18831. '-mae=ANY' selects a completely generic AE type. Code generated
  18832. with this option runs on any of the other AE types. The code is
  18833. not as efficient as it would be if compiled for a specific AE type,
  18834. and some types of operation (e.g., multiplication) do not work
  18835. properly on all types of AE.
  18836. '-mae=MUL' selects a MUL AE type. This is the most useful AE type
  18837. for compiled code, and is the default.
  18838. '-mae=MAC' selects a DSP-style MAC AE. Code compiled with this
  18839. option may suffer from poor performance of byte (char)
  18840. manipulation, since the DSP AE does not provide hardware support
  18841. for byte load/stores.
  18842. '-msymbol-as-address'
  18843. Enable the compiler to directly use a symbol name as an address in
  18844. a load/store instruction, without first loading it into a register.
  18845. Typically, the use of this option generates larger programs, which
  18846. run faster than when the option isn't used. However, the results
  18847. vary from program to program, so it is left as a user option,
  18848. rather than being permanently enabled.
  18849. '-mno-inefficient-warnings'
  18850. Disables warnings about the generation of inefficient code. These
  18851. warnings can be generated, for example, when compiling code that
  18852. performs byte-level memory operations on the MAC AE type. The MAC
  18853. AE has no hardware support for byte-level memory operations, so all
  18854. byte load/stores must be synthesized from word load/store
  18855. operations. This is inefficient and a warning is generated to
  18856. indicate that you should rewrite the code to avoid byte operations,
  18857. or to target an AE type that has the necessary hardware support.
  18858. This option disables these warnings.
  18859. 
  18860. File: gcc.info, Node: PowerPC Options, Next: PRU Options, Prev: picoChip Options, Up: Submodel Options
  18861. 3.19.40 PowerPC Options
  18862. -----------------------
  18863. These are listed under *Note RS/6000 and PowerPC Options::.
  18864. 
  18865. File: gcc.info, Node: PRU Options, Next: RISC-V Options, Prev: PowerPC Options, Up: Submodel Options
  18866. 3.19.41 PRU Options
  18867. -------------------
  18868. These command-line options are defined for PRU target:
  18869. '-minrt'
  18870. Link with a minimum runtime environment, with no support for static
  18871. initializers and constructors. Using this option can significantly
  18872. reduce the size of the final ELF binary. Beware that the compiler
  18873. could still generate code with static initializers and
  18874. constructors. It is up to the programmer to ensure that the source
  18875. program will not use those features.
  18876. '-mmcu=MCU'
  18877. Specify the PRU MCU variant to use. Check Newlib for the exact
  18878. list of supported MCUs.
  18879. '-mno-relax'
  18880. Make GCC pass the '--no-relax' command-line option to the linker
  18881. instead of the '--relax' option.
  18882. '-mloop'
  18883. Allow (or do not allow) GCC to use the LOOP instruction.
  18884. '-mabi=VARIANT'
  18885. Specify the ABI variant to output code for. '-mabi=ti' selects the
  18886. unmodified TI ABI while '-mabi=gnu' selects a GNU variant that
  18887. copes more naturally with certain GCC assumptions. These are the
  18888. differences:
  18889. 'Function Pointer Size'
  18890. TI ABI specifies that function (code) pointers are 16-bit,
  18891. whereas GNU supports only 32-bit data and code pointers.
  18892. 'Optional Return Value Pointer'
  18893. Function return values larger than 64 bits are passed by using
  18894. a hidden pointer as the first argument of the function. TI
  18895. ABI, though, mandates that the pointer can be NULL in case the
  18896. caller is not using the returned value. GNU always passes and
  18897. expects a valid return value pointer.
  18898. The current '-mabi=ti' implementation simply raises a compile error
  18899. when any of the above code constructs is detected. As a
  18900. consequence the standard C library cannot be built and it is
  18901. omitted when linking with '-mabi=ti'.
  18902. Relaxation is a GNU feature and for safety reasons is disabled when
  18903. using '-mabi=ti'. The TI toolchain does not emit relocations for
  18904. QBBx instructions, so the GNU linker cannot adjust them when
  18905. shortening adjacent LDI32 pseudo instructions.
  18906. 
  18907. File: gcc.info, Node: RISC-V Options, Next: RL78 Options, Prev: PRU Options, Up: Submodel Options
  18908. 3.19.42 RISC-V Options
  18909. ----------------------
  18910. These command-line options are defined for RISC-V targets:
  18911. '-mbranch-cost=N'
  18912. Set the cost of branches to roughly N instructions.
  18913. '-mplt'
  18914. '-mno-plt'
  18915. When generating PIC code, do or don't allow the use of PLTs.
  18916. Ignored for non-PIC. The default is '-mplt'.
  18917. '-mabi=ABI-STRING'
  18918. Specify integer and floating-point calling convention. ABI-STRING
  18919. contains two parts: the size of integer types and the registers
  18920. used for floating-point types. For example '-march=rv64ifd
  18921. -mabi=lp64d' means that 'long' and pointers are 64-bit (implicitly
  18922. defining 'int' to be 32-bit), and that floating-point values up to
  18923. 64 bits wide are passed in F registers. Contrast this with
  18924. '-march=rv64ifd -mabi=lp64f', which still allows the compiler to
  18925. generate code that uses the F and D extensions but only allows
  18926. floating-point values up to 32 bits long to be passed in registers;
  18927. or '-march=rv64ifd -mabi=lp64', in which no floating-point
  18928. arguments will be passed in registers.
  18929. The default for this argument is system dependent, users who want a
  18930. specific calling convention should specify one explicitly. The
  18931. valid calling conventions are: 'ilp32', 'ilp32f', 'ilp32d', 'lp64',
  18932. 'lp64f', and 'lp64d'. Some calling conventions are impossible to
  18933. implement on some ISAs: for example, '-march=rv32if -mabi=ilp32d'
  18934. is invalid because the ABI requires 64-bit values be passed in F
  18935. registers, but F registers are only 32 bits wide. There is also
  18936. the 'ilp32e' ABI that can only be used with the 'rv32e'
  18937. architecture. This ABI is not well specified at present, and is
  18938. subject to change.
  18939. '-mfdiv'
  18940. '-mno-fdiv'
  18941. Do or don't use hardware floating-point divide and square root
  18942. instructions. This requires the F or D extensions for
  18943. floating-point registers. The default is to use them if the
  18944. specified architecture has these instructions.
  18945. '-mdiv'
  18946. '-mno-div'
  18947. Do or don't use hardware instructions for integer division. This
  18948. requires the M extension. The default is to use them if the
  18949. specified architecture has these instructions.
  18950. '-march=ISA-STRING'
  18951. Generate code for given RISC-V ISA (e.g. 'rv64im'). ISA strings
  18952. must be lower-case. Examples include 'rv64i', 'rv32g', 'rv32e',
  18953. and 'rv32imaf'.
  18954. '-mtune=PROCESSOR-STRING'
  18955. Optimize the output for the given processor, specified by
  18956. microarchitecture name. Permissible values for this option are:
  18957. 'rocket', 'sifive-3-series', 'sifive-5-series', 'sifive-7-series',
  18958. and 'size'.
  18959. When '-mtune=' is not specified, the default is 'rocket'.
  18960. The 'size' choice is not intended for use by end-users. This is
  18961. used when '-Os' is specified. It overrides the instruction cost
  18962. info provided by '-mtune=', but does not override the pipeline
  18963. info. This helps reduce code size while still giving good
  18964. performance.
  18965. '-mpreferred-stack-boundary=NUM'
  18966. Attempt to keep the stack boundary aligned to a 2 raised to NUM
  18967. byte boundary. If '-mpreferred-stack-boundary' is not specified,
  18968. the default is 4 (16 bytes or 128-bits).
  18969. *Warning:* If you use this switch, then you must build all modules
  18970. with the same value, including any libraries. This includes the
  18971. system libraries and startup modules.
  18972. '-msmall-data-limit=N'
  18973. Put global and static data smaller than N bytes into a special
  18974. section (on some targets).
  18975. '-msave-restore'
  18976. '-mno-save-restore'
  18977. Do or don't use smaller but slower prologue and epilogue code that
  18978. uses library function calls. The default is to use fast inline
  18979. prologues and epilogues.
  18980. '-mshorten-memrefs'
  18981. '-mno-shorten-memrefs'
  18982. Do or do not attempt to make more use of compressed load/store
  18983. instructions by replacing a load/store of 'base register + large
  18984. offset' with a new load/store of 'new base + small offset'. If the
  18985. new base gets stored in a compressed register, then the new
  18986. load/store can be compressed. Currently targets 32-bit integer
  18987. load/stores only.
  18988. '-mstrict-align'
  18989. '-mno-strict-align'
  18990. Do not or do generate unaligned memory accesses. The default is
  18991. set depending on whether the processor we are optimizing for
  18992. supports fast unaligned access or not.
  18993. '-mcmodel=medlow'
  18994. Generate code for the medium-low code model. The program and its
  18995. statically defined symbols must lie within a single 2 GiB address
  18996. range and must lie between absolute addresses -2 GiB and +2 GiB.
  18997. Programs can be statically or dynamically linked. This is the
  18998. default code model.
  18999. '-mcmodel=medany'
  19000. Generate code for the medium-any code model. The program and its
  19001. statically defined symbols must be within any single 2 GiB address
  19002. range. Programs can be statically or dynamically linked.
  19003. '-mexplicit-relocs'
  19004. '-mno-exlicit-relocs'
  19005. Use or do not use assembler relocation operators when dealing with
  19006. symbolic addresses. The alternative is to use assembler macros
  19007. instead, which may limit optimization.
  19008. '-mrelax'
  19009. '-mno-relax'
  19010. Take advantage of linker relaxations to reduce the number of
  19011. instructions required to materialize symbol addresses. The default
  19012. is to take advantage of linker relaxations.
  19013. '-memit-attribute'
  19014. '-mno-emit-attribute'
  19015. Emit (do not emit) RISC-V attribute to record extra information
  19016. into ELF objects. This feature requires at least binutils 2.32.
  19017. '-malign-data=TYPE'
  19018. Control how GCC aligns variables and constants of array, structure,
  19019. or union types. Supported values for TYPE are 'xlen' which uses x
  19020. register width as the alignment value, and 'natural' which uses
  19021. natural alignment. 'xlen' is the default.
  19022. 
  19023. File: gcc.info, Node: RL78 Options, Next: RS/6000 and PowerPC Options, Prev: RISC-V Options, Up: Submodel Options
  19024. 3.19.43 RL78 Options
  19025. --------------------
  19026. '-msim'
  19027. Links in additional target libraries to support operation within a
  19028. simulator.
  19029. '-mmul=none'
  19030. '-mmul=g10'
  19031. '-mmul=g13'
  19032. '-mmul=g14'
  19033. '-mmul=rl78'
  19034. Specifies the type of hardware multiplication and division support
  19035. to be used. The simplest is 'none', which uses software for both
  19036. multiplication and division. This is the default. The 'g13' value
  19037. is for the hardware multiply/divide peripheral found on the
  19038. RL78/G13 (S2 core) targets. The 'g14' value selects the use of the
  19039. multiplication and division instructions supported by the RL78/G14
  19040. (S3 core) parts. The value 'rl78' is an alias for 'g14' and the
  19041. value 'mg10' is an alias for 'none'.
  19042. In addition a C preprocessor macro is defined, based upon the
  19043. setting of this option. Possible values are: '__RL78_MUL_NONE__',
  19044. '__RL78_MUL_G13__' or '__RL78_MUL_G14__'.
  19045. '-mcpu=g10'
  19046. '-mcpu=g13'
  19047. '-mcpu=g14'
  19048. '-mcpu=rl78'
  19049. Specifies the RL78 core to target. The default is the G14 core,
  19050. also known as an S3 core or just RL78. The G13 or S2 core does not
  19051. have multiply or divide instructions, instead it uses a hardware
  19052. peripheral for these operations. The G10 or S1 core does not have
  19053. register banks, so it uses a different calling convention.
  19054. If this option is set it also selects the type of hardware multiply
  19055. support to use, unless this is overridden by an explicit
  19056. '-mmul=none' option on the command line. Thus specifying
  19057. '-mcpu=g13' enables the use of the G13 hardware multiply peripheral
  19058. and specifying '-mcpu=g10' disables the use of hardware
  19059. multiplications altogether.
  19060. Note, although the RL78/G14 core is the default target, specifying
  19061. '-mcpu=g14' or '-mcpu=rl78' on the command line does change the
  19062. behavior of the toolchain since it also enables G14 hardware
  19063. multiply support. If these options are not specified on the
  19064. command line then software multiplication routines will be used
  19065. even though the code targets the RL78 core. This is for backwards
  19066. compatibility with older toolchains which did not have hardware
  19067. multiply and divide support.
  19068. In addition a C preprocessor macro is defined, based upon the
  19069. setting of this option. Possible values are: '__RL78_G10__',
  19070. '__RL78_G13__' or '__RL78_G14__'.
  19071. '-mg10'
  19072. '-mg13'
  19073. '-mg14'
  19074. '-mrl78'
  19075. These are aliases for the corresponding '-mcpu=' option. They are
  19076. provided for backwards compatibility.
  19077. '-mallregs'
  19078. Allow the compiler to use all of the available registers. By
  19079. default registers 'r24..r31' are reserved for use in interrupt
  19080. handlers. With this option enabled these registers can be used in
  19081. ordinary functions as well.
  19082. '-m64bit-doubles'
  19083. '-m32bit-doubles'
  19084. Make the 'double' data type be 64 bits ('-m64bit-doubles') or 32
  19085. bits ('-m32bit-doubles') in size. The default is
  19086. '-m32bit-doubles'.
  19087. '-msave-mduc-in-interrupts'
  19088. '-mno-save-mduc-in-interrupts'
  19089. Specifies that interrupt handler functions should preserve the MDUC
  19090. registers. This is only necessary if normal code might use the
  19091. MDUC registers, for example because it performs multiplication and
  19092. division operations. The default is to ignore the MDUC registers
  19093. as this makes the interrupt handlers faster. The target option
  19094. -mg13 needs to be passed for this to work as this feature is only
  19095. available on the G13 target (S2 core). The MDUC registers will
  19096. only be saved if the interrupt handler performs a multiplication or
  19097. division operation or it calls another function.
  19098. 
  19099. File: gcc.info, Node: RS/6000 and PowerPC Options, Next: RX Options, Prev: RL78 Options, Up: Submodel Options
  19100. 3.19.44 IBM RS/6000 and PowerPC Options
  19101. ---------------------------------------
  19102. These '-m' options are defined for the IBM RS/6000 and PowerPC:
  19103. '-mpowerpc-gpopt'
  19104. '-mno-powerpc-gpopt'
  19105. '-mpowerpc-gfxopt'
  19106. '-mno-powerpc-gfxopt'
  19107. '-mpowerpc64'
  19108. '-mno-powerpc64'
  19109. '-mmfcrf'
  19110. '-mno-mfcrf'
  19111. '-mpopcntb'
  19112. '-mno-popcntb'
  19113. '-mpopcntd'
  19114. '-mno-popcntd'
  19115. '-mfprnd'
  19116. '-mno-fprnd'
  19117. '-mcmpb'
  19118. '-mno-cmpb'
  19119. '-mhard-dfp'
  19120. '-mno-hard-dfp'
  19121. You use these options to specify which instructions are available
  19122. on the processor you are using. The default value of these options
  19123. is determined when configuring GCC. Specifying the
  19124. '-mcpu=CPU_TYPE' overrides the specification of these options. We
  19125. recommend you use the '-mcpu=CPU_TYPE' option rather than the
  19126. options listed above.
  19127. Specifying '-mpowerpc-gpopt' allows GCC to use the optional PowerPC
  19128. architecture instructions in the General Purpose group, including
  19129. floating-point square root. Specifying '-mpowerpc-gfxopt' allows
  19130. GCC to use the optional PowerPC architecture instructions in the
  19131. Graphics group, including floating-point select.
  19132. The '-mmfcrf' option allows GCC to generate the move from condition
  19133. register field instruction implemented on the POWER4 processor and
  19134. other processors that support the PowerPC V2.01 architecture. The
  19135. '-mpopcntb' option allows GCC to generate the popcount and
  19136. double-precision FP reciprocal estimate instruction implemented on
  19137. the POWER5 processor and other processors that support the PowerPC
  19138. V2.02 architecture. The '-mpopcntd' option allows GCC to generate
  19139. the popcount instruction implemented on the POWER7 processor and
  19140. other processors that support the PowerPC V2.06 architecture. The
  19141. '-mfprnd' option allows GCC to generate the FP round to integer
  19142. instructions implemented on the POWER5+ processor and other
  19143. processors that support the PowerPC V2.03 architecture. The
  19144. '-mcmpb' option allows GCC to generate the compare bytes
  19145. instruction implemented on the POWER6 processor and other
  19146. processors that support the PowerPC V2.05 architecture. The
  19147. '-mhard-dfp' option allows GCC to generate the decimal
  19148. floating-point instructions implemented on some POWER processors.
  19149. The '-mpowerpc64' option allows GCC to generate the additional
  19150. 64-bit instructions that are found in the full PowerPC64
  19151. architecture and to treat GPRs as 64-bit, doubleword quantities.
  19152. GCC defaults to '-mno-powerpc64'.
  19153. '-mcpu=CPU_TYPE'
  19154. Set architecture type, register usage, and instruction scheduling
  19155. parameters for machine type CPU_TYPE. Supported values for
  19156. CPU_TYPE are '401', '403', '405', '405fp', '440', '440fp', '464',
  19157. '464fp', '476', '476fp', '505', '601', '602', '603', '603e', '604',
  19158. '604e', '620', '630', '740', '7400', '7450', '750', '801', '821',
  19159. '823', '860', '970', '8540', 'a2', 'e300c2', 'e300c3', 'e500mc',
  19160. 'e500mc64', 'e5500', 'e6500', 'ec603e', 'G3', 'G4', 'G5', 'titan',
  19161. 'power3', 'power4', 'power5', 'power5+', 'power6', 'power6x',
  19162. 'power7', 'power8', 'power9', 'future', 'powerpc', 'powerpc64',
  19163. 'powerpc64le', 'rs64', and 'native'.
  19164. '-mcpu=powerpc', '-mcpu=powerpc64', and '-mcpu=powerpc64le' specify
  19165. pure 32-bit PowerPC (either endian), 64-bit big endian PowerPC and
  19166. 64-bit little endian PowerPC architecture machine types, with an
  19167. appropriate, generic processor model assumed for scheduling
  19168. purposes.
  19169. Specifying 'native' as cpu type detects and selects the
  19170. architecture option that corresponds to the host processor of the
  19171. system performing the compilation. '-mcpu=native' has no effect if
  19172. GCC does not recognize the processor.
  19173. The other options specify a specific processor. Code generated
  19174. under those options runs best on that processor, and may not run at
  19175. all on others.
  19176. The '-mcpu' options automatically enable or disable the following
  19177. options:
  19178. -maltivec -mfprnd -mhard-float -mmfcrf -mmultiple
  19179. -mpopcntb -mpopcntd -mpowerpc64
  19180. -mpowerpc-gpopt -mpowerpc-gfxopt
  19181. -mmulhw -mdlmzb -mmfpgpr -mvsx
  19182. -mcrypto -mhtm -mpower8-fusion -mpower8-vector
  19183. -mquad-memory -mquad-memory-atomic -mfloat128 -mfloat128-hardware
  19184. The particular options set for any particular CPU varies between
  19185. compiler versions, depending on what setting seems to produce
  19186. optimal code for that CPU; it doesn't necessarily reflect the
  19187. actual hardware's capabilities. If you wish to set an individual
  19188. option to a particular value, you may specify it after the '-mcpu'
  19189. option, like '-mcpu=970 -mno-altivec'.
  19190. On AIX, the '-maltivec' and '-mpowerpc64' options are not enabled
  19191. or disabled by the '-mcpu' option at present because AIX does not
  19192. have full support for these options. You may still enable or
  19193. disable them individually if you're sure it'll work in your
  19194. environment.
  19195. '-mtune=CPU_TYPE'
  19196. Set the instruction scheduling parameters for machine type
  19197. CPU_TYPE, but do not set the architecture type or register usage,
  19198. as '-mcpu=CPU_TYPE' does. The same values for CPU_TYPE are used
  19199. for '-mtune' as for '-mcpu'. If both are specified, the code
  19200. generated uses the architecture and registers set by '-mcpu', but
  19201. the scheduling parameters set by '-mtune'.
  19202. '-mcmodel=small'
  19203. Generate PowerPC64 code for the small model: The TOC is limited to
  19204. 64k.
  19205. '-mcmodel=medium'
  19206. Generate PowerPC64 code for the medium model: The TOC and other
  19207. static data may be up to a total of 4G in size. This is the
  19208. default for 64-bit Linux.
  19209. '-mcmodel=large'
  19210. Generate PowerPC64 code for the large model: The TOC may be up to
  19211. 4G in size. Other data and code is only limited by the 64-bit
  19212. address space.
  19213. '-maltivec'
  19214. '-mno-altivec'
  19215. Generate code that uses (does not use) AltiVec instructions, and
  19216. also enable the use of built-in functions that allow more direct
  19217. access to the AltiVec instruction set. You may also need to set
  19218. '-mabi=altivec' to adjust the current ABI with AltiVec ABI
  19219. enhancements.
  19220. When '-maltivec' is used, the element order for AltiVec intrinsics
  19221. such as 'vec_splat', 'vec_extract', and 'vec_insert' match array
  19222. element order corresponding to the endianness of the target. That
  19223. is, element zero identifies the leftmost element in a vector
  19224. register when targeting a big-endian platform, and identifies the
  19225. rightmost element in a vector register when targeting a
  19226. little-endian platform.
  19227. '-mvrsave'
  19228. '-mno-vrsave'
  19229. Generate VRSAVE instructions when generating AltiVec code.
  19230. '-msecure-plt'
  19231. Generate code that allows 'ld' and 'ld.so' to build executables and
  19232. shared libraries with non-executable '.plt' and '.got' sections.
  19233. This is a PowerPC 32-bit SYSV ABI option.
  19234. '-mbss-plt'
  19235. Generate code that uses a BSS '.plt' section that 'ld.so' fills in,
  19236. and requires '.plt' and '.got' sections that are both writable and
  19237. executable. This is a PowerPC 32-bit SYSV ABI option.
  19238. '-misel'
  19239. '-mno-isel'
  19240. This switch enables or disables the generation of ISEL
  19241. instructions.
  19242. '-mvsx'
  19243. '-mno-vsx'
  19244. Generate code that uses (does not use) vector/scalar (VSX)
  19245. instructions, and also enable the use of built-in functions that
  19246. allow more direct access to the VSX instruction set.
  19247. '-mcrypto'
  19248. '-mno-crypto'
  19249. Enable the use (disable) of the built-in functions that allow
  19250. direct access to the cryptographic instructions that were added in
  19251. version 2.07 of the PowerPC ISA.
  19252. '-mhtm'
  19253. '-mno-htm'
  19254. Enable (disable) the use of the built-in functions that allow
  19255. direct access to the Hardware Transactional Memory (HTM)
  19256. instructions that were added in version 2.07 of the PowerPC ISA.
  19257. '-mpower8-fusion'
  19258. '-mno-power8-fusion'
  19259. Generate code that keeps (does not keeps) some integer operations
  19260. adjacent so that the instructions can be fused together on power8
  19261. and later processors.
  19262. '-mpower8-vector'
  19263. '-mno-power8-vector'
  19264. Generate code that uses (does not use) the vector and scalar
  19265. instructions that were added in version 2.07 of the PowerPC ISA.
  19266. Also enable the use of built-in functions that allow more direct
  19267. access to the vector instructions.
  19268. '-mquad-memory'
  19269. '-mno-quad-memory'
  19270. Generate code that uses (does not use) the non-atomic quad word
  19271. memory instructions. The '-mquad-memory' option requires use of
  19272. 64-bit mode.
  19273. '-mquad-memory-atomic'
  19274. '-mno-quad-memory-atomic'
  19275. Generate code that uses (does not use) the atomic quad word memory
  19276. instructions. The '-mquad-memory-atomic' option requires use of
  19277. 64-bit mode.
  19278. '-mfloat128'
  19279. '-mno-float128'
  19280. Enable/disable the __FLOAT128 keyword for IEEE 128-bit floating
  19281. point and use either software emulation for IEEE 128-bit floating
  19282. point or hardware instructions.
  19283. The VSX instruction set ('-mvsx', '-mcpu=power7', '-mcpu=power8'),
  19284. or '-mcpu=power9' must be enabled to use the IEEE 128-bit floating
  19285. point support. The IEEE 128-bit floating point support only works
  19286. on PowerPC Linux systems.
  19287. The default for '-mfloat128' is enabled on PowerPC Linux systems
  19288. using the VSX instruction set, and disabled on other systems.
  19289. If you use the ISA 3.0 instruction set ('-mpower9-vector' or
  19290. '-mcpu=power9') on a 64-bit system, the IEEE 128-bit floating point
  19291. support will also enable the generation of ISA 3.0 IEEE 128-bit
  19292. floating point instructions. Otherwise, if you do not specify to
  19293. generate ISA 3.0 instructions or you are targeting a 32-bit big
  19294. endian system, IEEE 128-bit floating point will be done with
  19295. software emulation.
  19296. '-mfloat128-hardware'
  19297. '-mno-float128-hardware'
  19298. Enable/disable using ISA 3.0 hardware instructions to support the
  19299. __FLOAT128 data type.
  19300. The default for '-mfloat128-hardware' is enabled on PowerPC Linux
  19301. systems using the ISA 3.0 instruction set, and disabled on other
  19302. systems.
  19303. '-m32'
  19304. '-m64'
  19305. Generate code for 32-bit or 64-bit environments of Darwin and SVR4
  19306. targets (including GNU/Linux). The 32-bit environment sets int,
  19307. long and pointer to 32 bits and generates code that runs on any
  19308. PowerPC variant. The 64-bit environment sets int to 32 bits and
  19309. long and pointer to 64 bits, and generates code for PowerPC64, as
  19310. for '-mpowerpc64'.
  19311. '-mfull-toc'
  19312. '-mno-fp-in-toc'
  19313. '-mno-sum-in-toc'
  19314. '-mminimal-toc'
  19315. Modify generation of the TOC (Table Of Contents), which is created
  19316. for every executable file. The '-mfull-toc' option is selected by
  19317. default. In that case, GCC allocates at least one TOC entry for
  19318. each unique non-automatic variable reference in your program. GCC
  19319. also places floating-point constants in the TOC. However, only
  19320. 16,384 entries are available in the TOC.
  19321. If you receive a linker error message that saying you have
  19322. overflowed the available TOC space, you can reduce the amount of
  19323. TOC space used with the '-mno-fp-in-toc' and '-mno-sum-in-toc'
  19324. options. '-mno-fp-in-toc' prevents GCC from putting floating-point
  19325. constants in the TOC and '-mno-sum-in-toc' forces GCC to generate
  19326. code to calculate the sum of an address and a constant at run time
  19327. instead of putting that sum into the TOC. You may specify one or
  19328. both of these options. Each causes GCC to produce very slightly
  19329. slower and larger code at the expense of conserving TOC space.
  19330. If you still run out of space in the TOC even when you specify both
  19331. of these options, specify '-mminimal-toc' instead. This option
  19332. causes GCC to make only one TOC entry for every file. When you
  19333. specify this option, GCC produces code that is slower and larger
  19334. but which uses extremely little TOC space. You may wish to use
  19335. this option only on files that contain less frequently-executed
  19336. code.
  19337. '-maix64'
  19338. '-maix32'
  19339. Enable 64-bit AIX ABI and calling convention: 64-bit pointers,
  19340. 64-bit 'long' type, and the infrastructure needed to support them.
  19341. Specifying '-maix64' implies '-mpowerpc64', while '-maix32'
  19342. disables the 64-bit ABI and implies '-mno-powerpc64'. GCC defaults
  19343. to '-maix32'.
  19344. '-mxl-compat'
  19345. '-mno-xl-compat'
  19346. Produce code that conforms more closely to IBM XL compiler
  19347. semantics when using AIX-compatible ABI. Pass floating-point
  19348. arguments to prototyped functions beyond the register save area
  19349. (RSA) on the stack in addition to argument FPRs. Do not assume
  19350. that most significant double in 128-bit long double value is
  19351. properly rounded when comparing values and converting to double.
  19352. Use XL symbol names for long double support routines.
  19353. The AIX calling convention was extended but not initially
  19354. documented to handle an obscure K&R C case of calling a function
  19355. that takes the address of its arguments with fewer arguments than
  19356. declared. IBM XL compilers access floating-point arguments that do
  19357. not fit in the RSA from the stack when a subroutine is compiled
  19358. without optimization. Because always storing floating-point
  19359. arguments on the stack is inefficient and rarely needed, this
  19360. option is not enabled by default and only is necessary when calling
  19361. subroutines compiled by IBM XL compilers without optimization.
  19362. '-mpe'
  19363. Support "IBM RS/6000 SP" "Parallel Environment" (PE). Link an
  19364. application written to use message passing with special startup
  19365. code to enable the application to run. The system must have PE
  19366. installed in the standard location ('/usr/lpp/ppe.poe/'), or the
  19367. 'specs' file must be overridden with the '-specs=' option to
  19368. specify the appropriate directory location. The Parallel
  19369. Environment does not support threads, so the '-mpe' option and the
  19370. '-pthread' option are incompatible.
  19371. '-malign-natural'
  19372. '-malign-power'
  19373. On AIX, 32-bit Darwin, and 64-bit PowerPC GNU/Linux, the option
  19374. '-malign-natural' overrides the ABI-defined alignment of larger
  19375. types, such as floating-point doubles, on their natural size-based
  19376. boundary. The option '-malign-power' instructs GCC to follow the
  19377. ABI-specified alignment rules. GCC defaults to the standard
  19378. alignment defined in the ABI.
  19379. On 64-bit Darwin, natural alignment is the default, and
  19380. '-malign-power' is not supported.
  19381. '-msoft-float'
  19382. '-mhard-float'
  19383. Generate code that does not use (uses) the floating-point register
  19384. set. Software floating-point emulation is provided if you use the
  19385. '-msoft-float' option, and pass the option to GCC when linking.
  19386. '-mmultiple'
  19387. '-mno-multiple'
  19388. Generate code that uses (does not use) the load multiple word
  19389. instructions and the store multiple word instructions. These
  19390. instructions are generated by default on POWER systems, and not
  19391. generated on PowerPC systems. Do not use '-mmultiple' on
  19392. little-endian PowerPC systems, since those instructions do not work
  19393. when the processor is in little-endian mode. The exceptions are
  19394. PPC740 and PPC750 which permit these instructions in little-endian
  19395. mode.
  19396. '-mupdate'
  19397. '-mno-update'
  19398. Generate code that uses (does not use) the load or store
  19399. instructions that update the base register to the address of the
  19400. calculated memory location. These instructions are generated by
  19401. default. If you use '-mno-update', there is a small window between
  19402. the time that the stack pointer is updated and the address of the
  19403. previous frame is stored, which means code that walks the stack
  19404. frame across interrupts or signals may get corrupted data.
  19405. '-mavoid-indexed-addresses'
  19406. '-mno-avoid-indexed-addresses'
  19407. Generate code that tries to avoid (not avoid) the use of indexed
  19408. load or store instructions. These instructions can incur a
  19409. performance penalty on Power6 processors in certain situations,
  19410. such as when stepping through large arrays that cross a 16M
  19411. boundary. This option is enabled by default when targeting Power6
  19412. and disabled otherwise.
  19413. '-mfused-madd'
  19414. '-mno-fused-madd'
  19415. Generate code that uses (does not use) the floating-point multiply
  19416. and accumulate instructions. These instructions are generated by
  19417. default if hardware floating point is used. The machine-dependent
  19418. '-mfused-madd' option is now mapped to the machine-independent
  19419. '-ffp-contract=fast' option, and '-mno-fused-madd' is mapped to
  19420. '-ffp-contract=off'.
  19421. '-mmulhw'
  19422. '-mno-mulhw'
  19423. Generate code that uses (does not use) the half-word multiply and
  19424. multiply-accumulate instructions on the IBM 405, 440, 464 and 476
  19425. processors. These instructions are generated by default when
  19426. targeting those processors.
  19427. '-mdlmzb'
  19428. '-mno-dlmzb'
  19429. Generate code that uses (does not use) the string-search 'dlmzb'
  19430. instruction on the IBM 405, 440, 464 and 476 processors. This
  19431. instruction is generated by default when targeting those
  19432. processors.
  19433. '-mno-bit-align'
  19434. '-mbit-align'
  19435. On System V.4 and embedded PowerPC systems do not (do) force
  19436. structures and unions that contain bit-fields to be aligned to the
  19437. base type of the bit-field.
  19438. For example, by default a structure containing nothing but 8
  19439. 'unsigned' bit-fields of length 1 is aligned to a 4-byte boundary
  19440. and has a size of 4 bytes. By using '-mno-bit-align', the
  19441. structure is aligned to a 1-byte boundary and is 1 byte in size.
  19442. '-mno-strict-align'
  19443. '-mstrict-align'
  19444. On System V.4 and embedded PowerPC systems do not (do) assume that
  19445. unaligned memory references are handled by the system.
  19446. '-mrelocatable'
  19447. '-mno-relocatable'
  19448. Generate code that allows (does not allow) a static executable to
  19449. be relocated to a different address at run time. A simple embedded
  19450. PowerPC system loader should relocate the entire contents of
  19451. '.got2' and 4-byte locations listed in the '.fixup' section, a
  19452. table of 32-bit addresses generated by this option. For this to
  19453. work, all objects linked together must be compiled with
  19454. '-mrelocatable' or '-mrelocatable-lib'. '-mrelocatable' code
  19455. aligns the stack to an 8-byte boundary.
  19456. '-mrelocatable-lib'
  19457. '-mno-relocatable-lib'
  19458. Like '-mrelocatable', '-mrelocatable-lib' generates a '.fixup'
  19459. section to allow static executables to be relocated at run time,
  19460. but '-mrelocatable-lib' does not use the smaller stack alignment of
  19461. '-mrelocatable'. Objects compiled with '-mrelocatable-lib' may be
  19462. linked with objects compiled with any combination of the
  19463. '-mrelocatable' options.
  19464. '-mno-toc'
  19465. '-mtoc'
  19466. On System V.4 and embedded PowerPC systems do not (do) assume that
  19467. register 2 contains a pointer to a global area pointing to the
  19468. addresses used in the program.
  19469. '-mlittle'
  19470. '-mlittle-endian'
  19471. On System V.4 and embedded PowerPC systems compile code for the
  19472. processor in little-endian mode. The '-mlittle-endian' option is
  19473. the same as '-mlittle'.
  19474. '-mbig'
  19475. '-mbig-endian'
  19476. On System V.4 and embedded PowerPC systems compile code for the
  19477. processor in big-endian mode. The '-mbig-endian' option is the
  19478. same as '-mbig'.
  19479. '-mdynamic-no-pic'
  19480. On Darwin and Mac OS X systems, compile code so that it is not
  19481. relocatable, but that its external references are relocatable. The
  19482. resulting code is suitable for applications, but not shared
  19483. libraries.
  19484. '-msingle-pic-base'
  19485. Treat the register used for PIC addressing as read-only, rather
  19486. than loading it in the prologue for each function. The runtime
  19487. system is responsible for initializing this register with an
  19488. appropriate value before execution begins.
  19489. '-mprioritize-restricted-insns=PRIORITY'
  19490. This option controls the priority that is assigned to dispatch-slot
  19491. restricted instructions during the second scheduling pass. The
  19492. argument PRIORITY takes the value '0', '1', or '2' to assign no,
  19493. highest, or second-highest (respectively) priority to dispatch-slot
  19494. restricted instructions.
  19495. '-msched-costly-dep=DEPENDENCE_TYPE'
  19496. This option controls which dependences are considered costly by the
  19497. target during instruction scheduling. The argument DEPENDENCE_TYPE
  19498. takes one of the following values:
  19499. 'no'
  19500. No dependence is costly.
  19501. 'all'
  19502. All dependences are costly.
  19503. 'true_store_to_load'
  19504. A true dependence from store to load is costly.
  19505. 'store_to_load'
  19506. Any dependence from store to load is costly.
  19507. NUMBER
  19508. Any dependence for which the latency is greater than or equal
  19509. to NUMBER is costly.
  19510. '-minsert-sched-nops=SCHEME'
  19511. This option controls which NOP insertion scheme is used during the
  19512. second scheduling pass. The argument SCHEME takes one of the
  19513. following values:
  19514. 'no'
  19515. Don't insert NOPs.
  19516. 'pad'
  19517. Pad with NOPs any dispatch group that has vacant issue slots,
  19518. according to the scheduler's grouping.
  19519. 'regroup_exact'
  19520. Insert NOPs to force costly dependent insns into separate
  19521. groups. Insert exactly as many NOPs as needed to force an
  19522. insn to a new group, according to the estimated processor
  19523. grouping.
  19524. NUMBER
  19525. Insert NOPs to force costly dependent insns into separate
  19526. groups. Insert NUMBER NOPs to force an insn to a new group.
  19527. '-mcall-sysv'
  19528. On System V.4 and embedded PowerPC systems compile code using
  19529. calling conventions that adhere to the March 1995 draft of the
  19530. System V Application Binary Interface, PowerPC processor
  19531. supplement. This is the default unless you configured GCC using
  19532. 'powerpc-*-eabiaix'.
  19533. '-mcall-sysv-eabi'
  19534. '-mcall-eabi'
  19535. Specify both '-mcall-sysv' and '-meabi' options.
  19536. '-mcall-sysv-noeabi'
  19537. Specify both '-mcall-sysv' and '-mno-eabi' options.
  19538. '-mcall-aixdesc'
  19539. On System V.4 and embedded PowerPC systems compile code for the AIX
  19540. operating system.
  19541. '-mcall-linux'
  19542. On System V.4 and embedded PowerPC systems compile code for the
  19543. Linux-based GNU system.
  19544. '-mcall-freebsd'
  19545. On System V.4 and embedded PowerPC systems compile code for the
  19546. FreeBSD operating system.
  19547. '-mcall-netbsd'
  19548. On System V.4 and embedded PowerPC systems compile code for the
  19549. NetBSD operating system.
  19550. '-mcall-openbsd'
  19551. On System V.4 and embedded PowerPC systems compile code for the
  19552. OpenBSD operating system.
  19553. '-mtraceback=TRACEBACK_TYPE'
  19554. Select the type of traceback table. Valid values for
  19555. TRACEBACK_TYPE are 'full', 'part', and 'no'.
  19556. '-maix-struct-return'
  19557. Return all structures in memory (as specified by the AIX ABI).
  19558. '-msvr4-struct-return'
  19559. Return structures smaller than 8 bytes in registers (as specified
  19560. by the SVR4 ABI).
  19561. '-mabi=ABI-TYPE'
  19562. Extend the current ABI with a particular extension, or remove such
  19563. extension. Valid values are 'altivec', 'no-altivec',
  19564. 'ibmlongdouble', 'ieeelongdouble', 'elfv1', 'elfv2'.
  19565. '-mabi=ibmlongdouble'
  19566. Change the current ABI to use IBM extended-precision long double.
  19567. This is not likely to work if your system defaults to using IEEE
  19568. extended-precision long double. If you change the long double type
  19569. from IEEE extended-precision, the compiler will issue a warning
  19570. unless you use the '-Wno-psabi' option. Requires
  19571. '-mlong-double-128' to be enabled.
  19572. '-mabi=ieeelongdouble'
  19573. Change the current ABI to use IEEE extended-precision long double.
  19574. This is not likely to work if your system defaults to using IBM
  19575. extended-precision long double. If you change the long double type
  19576. from IBM extended-precision, the compiler will issue a warning
  19577. unless you use the '-Wno-psabi' option. Requires
  19578. '-mlong-double-128' to be enabled.
  19579. '-mabi=elfv1'
  19580. Change the current ABI to use the ELFv1 ABI. This is the default
  19581. ABI for big-endian PowerPC 64-bit Linux. Overriding the default
  19582. ABI requires special system support and is likely to fail in
  19583. spectacular ways.
  19584. '-mabi=elfv2'
  19585. Change the current ABI to use the ELFv2 ABI. This is the default
  19586. ABI for little-endian PowerPC 64-bit Linux. Overriding the default
  19587. ABI requires special system support and is likely to fail in
  19588. spectacular ways.
  19589. '-mgnu-attribute'
  19590. '-mno-gnu-attribute'
  19591. Emit .gnu_attribute assembly directives to set tag/value pairs in a
  19592. .gnu.attributes section that specify ABI variations in function
  19593. parameters or return values.
  19594. '-mprototype'
  19595. '-mno-prototype'
  19596. On System V.4 and embedded PowerPC systems assume that all calls to
  19597. variable argument functions are properly prototyped. Otherwise,
  19598. the compiler must insert an instruction before every non-prototyped
  19599. call to set or clear bit 6 of the condition code register ('CR') to
  19600. indicate whether floating-point values are passed in the
  19601. floating-point registers in case the function takes variable
  19602. arguments. With '-mprototype', only calls to prototyped variable
  19603. argument functions set or clear the bit.
  19604. '-msim'
  19605. On embedded PowerPC systems, assume that the startup module is
  19606. called 'sim-crt0.o' and that the standard C libraries are
  19607. 'libsim.a' and 'libc.a'. This is the default for
  19608. 'powerpc-*-eabisim' configurations.
  19609. '-mmvme'
  19610. On embedded PowerPC systems, assume that the startup module is
  19611. called 'crt0.o' and the standard C libraries are 'libmvme.a' and
  19612. 'libc.a'.
  19613. '-mads'
  19614. On embedded PowerPC systems, assume that the startup module is
  19615. called 'crt0.o' and the standard C libraries are 'libads.a' and
  19616. 'libc.a'.
  19617. '-myellowknife'
  19618. On embedded PowerPC systems, assume that the startup module is
  19619. called 'crt0.o' and the standard C libraries are 'libyk.a' and
  19620. 'libc.a'.
  19621. '-mvxworks'
  19622. On System V.4 and embedded PowerPC systems, specify that you are
  19623. compiling for a VxWorks system.
  19624. '-memb'
  19625. On embedded PowerPC systems, set the 'PPC_EMB' bit in the ELF flags
  19626. header to indicate that 'eabi' extended relocations are used.
  19627. '-meabi'
  19628. '-mno-eabi'
  19629. On System V.4 and embedded PowerPC systems do (do not) adhere to
  19630. the Embedded Applications Binary Interface (EABI), which is a set
  19631. of modifications to the System V.4 specifications. Selecting
  19632. '-meabi' means that the stack is aligned to an 8-byte boundary, a
  19633. function '__eabi' is called from 'main' to set up the EABI
  19634. environment, and the '-msdata' option can use both 'r2' and 'r13'
  19635. to point to two separate small data areas. Selecting '-mno-eabi'
  19636. means that the stack is aligned to a 16-byte boundary, no EABI
  19637. initialization function is called from 'main', and the '-msdata'
  19638. option only uses 'r13' to point to a single small data area. The
  19639. '-meabi' option is on by default if you configured GCC using one of
  19640. the 'powerpc*-*-eabi*' options.
  19641. '-msdata=eabi'
  19642. On System V.4 and embedded PowerPC systems, put small initialized
  19643. 'const' global and static data in the '.sdata2' section, which is
  19644. pointed to by register 'r2'. Put small initialized non-'const'
  19645. global and static data in the '.sdata' section, which is pointed to
  19646. by register 'r13'. Put small uninitialized global and static data
  19647. in the '.sbss' section, which is adjacent to the '.sdata' section.
  19648. The '-msdata=eabi' option is incompatible with the '-mrelocatable'
  19649. option. The '-msdata=eabi' option also sets the '-memb' option.
  19650. '-msdata=sysv'
  19651. On System V.4 and embedded PowerPC systems, put small global and
  19652. static data in the '.sdata' section, which is pointed to by
  19653. register 'r13'. Put small uninitialized global and static data in
  19654. the '.sbss' section, which is adjacent to the '.sdata' section.
  19655. The '-msdata=sysv' option is incompatible with the '-mrelocatable'
  19656. option.
  19657. '-msdata=default'
  19658. '-msdata'
  19659. On System V.4 and embedded PowerPC systems, if '-meabi' is used,
  19660. compile code the same as '-msdata=eabi', otherwise compile code the
  19661. same as '-msdata=sysv'.
  19662. '-msdata=data'
  19663. On System V.4 and embedded PowerPC systems, put small global data
  19664. in the '.sdata' section. Put small uninitialized global data in
  19665. the '.sbss' section. Do not use register 'r13' to address small
  19666. data however. This is the default behavior unless other '-msdata'
  19667. options are used.
  19668. '-msdata=none'
  19669. '-mno-sdata'
  19670. On embedded PowerPC systems, put all initialized global and static
  19671. data in the '.data' section, and all uninitialized data in the
  19672. '.bss' section.
  19673. '-mreadonly-in-sdata'
  19674. Put read-only objects in the '.sdata' section as well. This is the
  19675. default.
  19676. '-mblock-move-inline-limit=NUM'
  19677. Inline all block moves (such as calls to 'memcpy' or structure
  19678. copies) less than or equal to NUM bytes. The minimum value for NUM
  19679. is 32 bytes on 32-bit targets and 64 bytes on 64-bit targets. The
  19680. default value is target-specific.
  19681. '-mblock-compare-inline-limit=NUM'
  19682. Generate non-looping inline code for all block compares (such as
  19683. calls to 'memcmp' or structure compares) less than or equal to NUM
  19684. bytes. If NUM is 0, all inline expansion (non-loop and loop) of
  19685. block compare is disabled. The default value is target-specific.
  19686. '-mblock-compare-inline-loop-limit=NUM'
  19687. Generate an inline expansion using loop code for all block compares
  19688. that are less than or equal to NUM bytes, but greater than the
  19689. limit for non-loop inline block compare expansion. If the block
  19690. length is not constant, at most NUM bytes will be compared before
  19691. 'memcmp' is called to compare the remainder of the block. The
  19692. default value is target-specific.
  19693. '-mstring-compare-inline-limit=NUM'
  19694. Compare at most NUM string bytes with inline code. If the
  19695. difference or end of string is not found at the end of the inline
  19696. compare a call to 'strcmp' or 'strncmp' will take care of the rest
  19697. of the comparison. The default is 64 bytes.
  19698. '-G NUM'
  19699. On embedded PowerPC systems, put global and static items less than
  19700. or equal to NUM bytes into the small data or BSS sections instead
  19701. of the normal data or BSS section. By default, NUM is 8. The '-G
  19702. NUM' switch is also passed to the linker. All modules should be
  19703. compiled with the same '-G NUM' value.
  19704. '-mregnames'
  19705. '-mno-regnames'
  19706. On System V.4 and embedded PowerPC systems do (do not) emit
  19707. register names in the assembly language output using symbolic
  19708. forms.
  19709. '-mlongcall'
  19710. '-mno-longcall'
  19711. By default assume that all calls are far away so that a longer and
  19712. more expensive calling sequence is required. This is required for
  19713. calls farther than 32 megabytes (33,554,432 bytes) from the current
  19714. location. A short call is generated if the compiler knows the call
  19715. cannot be that far away. This setting can be overridden by the
  19716. 'shortcall' function attribute, or by '#pragma longcall(0)'.
  19717. Some linkers are capable of detecting out-of-range calls and
  19718. generating glue code on the fly. On these systems, long calls are
  19719. unnecessary and generate slower code. As of this writing, the AIX
  19720. linker can do this, as can the GNU linker for PowerPC/64. It is
  19721. planned to add this feature to the GNU linker for 32-bit PowerPC
  19722. systems as well.
  19723. On PowerPC64 ELFv2 and 32-bit PowerPC systems with newer GNU
  19724. linkers, GCC can generate long calls using an inline PLT call
  19725. sequence (see '-mpltseq'). PowerPC with '-mbss-plt' and PowerPC64
  19726. ELFv1 (big-endian) do not support inline PLT calls.
  19727. On Darwin/PPC systems, '#pragma longcall' generates 'jbsr callee,
  19728. L42', plus a "branch island" (glue code). The two target addresses
  19729. represent the callee and the branch island. The Darwin/PPC linker
  19730. prefers the first address and generates a 'bl callee' if the PPC
  19731. 'bl' instruction reaches the callee directly; otherwise, the linker
  19732. generates 'bl L42' to call the branch island. The branch island is
  19733. appended to the body of the calling function; it computes the full
  19734. 32-bit address of the callee and jumps to it.
  19735. On Mach-O (Darwin) systems, this option directs the compiler emit
  19736. to the glue for every direct call, and the Darwin linker decides
  19737. whether to use or discard it.
  19738. In the future, GCC may ignore all longcall specifications when the
  19739. linker is known to generate glue.
  19740. '-mpltseq'
  19741. '-mno-pltseq'
  19742. Implement (do not implement) -fno-plt and long calls using an
  19743. inline PLT call sequence that supports lazy linking and long calls
  19744. to functions in dlopen'd shared libraries. Inline PLT calls are
  19745. only supported on PowerPC64 ELFv2 and 32-bit PowerPC systems with
  19746. newer GNU linkers, and are enabled by default if the support is
  19747. detected when configuring GCC, and, in the case of 32-bit PowerPC,
  19748. if GCC is configured with '--enable-secureplt'. '-mpltseq' code
  19749. and '-mbss-plt' 32-bit PowerPC relocatable objects may not be
  19750. linked together.
  19751. '-mtls-markers'
  19752. '-mno-tls-markers'
  19753. Mark (do not mark) calls to '__tls_get_addr' with a relocation
  19754. specifying the function argument. The relocation allows the linker
  19755. to reliably associate function call with argument setup
  19756. instructions for TLS optimization, which in turn allows GCC to
  19757. better schedule the sequence.
  19758. '-mrecip'
  19759. '-mno-recip'
  19760. This option enables use of the reciprocal estimate and reciprocal
  19761. square root estimate instructions with additional Newton-Raphson
  19762. steps to increase precision instead of doing a divide or square
  19763. root and divide for floating-point arguments. You should use the
  19764. '-ffast-math' option when using '-mrecip' (or at least
  19765. '-funsafe-math-optimizations', '-ffinite-math-only',
  19766. '-freciprocal-math' and '-fno-trapping-math'). Note that while the
  19767. throughput of the sequence is generally higher than the throughput
  19768. of the non-reciprocal instruction, the precision of the sequence
  19769. can be decreased by up to 2 ulp (i.e. the inverse of 1.0 equals
  19770. 0.99999994) for reciprocal square roots.
  19771. '-mrecip=OPT'
  19772. This option controls which reciprocal estimate instructions may be
  19773. used. OPT is a comma-separated list of options, which may be
  19774. preceded by a '!' to invert the option:
  19775. 'all'
  19776. Enable all estimate instructions.
  19777. 'default'
  19778. Enable the default instructions, equivalent to '-mrecip'.
  19779. 'none'
  19780. Disable all estimate instructions, equivalent to '-mno-recip'.
  19781. 'div'
  19782. Enable the reciprocal approximation instructions for both
  19783. single and double precision.
  19784. 'divf'
  19785. Enable the single-precision reciprocal approximation
  19786. instructions.
  19787. 'divd'
  19788. Enable the double-precision reciprocal approximation
  19789. instructions.
  19790. 'rsqrt'
  19791. Enable the reciprocal square root approximation instructions
  19792. for both single and double precision.
  19793. 'rsqrtf'
  19794. Enable the single-precision reciprocal square root
  19795. approximation instructions.
  19796. 'rsqrtd'
  19797. Enable the double-precision reciprocal square root
  19798. approximation instructions.
  19799. So, for example, '-mrecip=all,!rsqrtd' enables all of the
  19800. reciprocal estimate instructions, except for the 'FRSQRTE',
  19801. 'XSRSQRTEDP', and 'XVRSQRTEDP' instructions which handle the
  19802. double-precision reciprocal square root calculations.
  19803. '-mrecip-precision'
  19804. '-mno-recip-precision'
  19805. Assume (do not assume) that the reciprocal estimate instructions
  19806. provide higher-precision estimates than is mandated by the PowerPC
  19807. ABI. Selecting '-mcpu=power6', '-mcpu=power7' or '-mcpu=power8'
  19808. automatically selects '-mrecip-precision'. The double-precision
  19809. square root estimate instructions are not generated by default on
  19810. low-precision machines, since they do not provide an estimate that
  19811. converges after three steps.
  19812. '-mveclibabi=TYPE'
  19813. Specifies the ABI type to use for vectorizing intrinsics using an
  19814. external library. The only type supported at present is 'mass',
  19815. which specifies to use IBM's Mathematical Acceleration Subsystem
  19816. (MASS) libraries for vectorizing intrinsics using external
  19817. libraries. GCC currently emits calls to 'acosd2', 'acosf4',
  19818. 'acoshd2', 'acoshf4', 'asind2', 'asinf4', 'asinhd2', 'asinhf4',
  19819. 'atan2d2', 'atan2f4', 'atand2', 'atanf4', 'atanhd2', 'atanhf4',
  19820. 'cbrtd2', 'cbrtf4', 'cosd2', 'cosf4', 'coshd2', 'coshf4', 'erfcd2',
  19821. 'erfcf4', 'erfd2', 'erff4', 'exp2d2', 'exp2f4', 'expd2', 'expf4',
  19822. 'expm1d2', 'expm1f4', 'hypotd2', 'hypotf4', 'lgammad2', 'lgammaf4',
  19823. 'log10d2', 'log10f4', 'log1pd2', 'log1pf4', 'log2d2', 'log2f4',
  19824. 'logd2', 'logf4', 'powd2', 'powf4', 'sind2', 'sinf4', 'sinhd2',
  19825. 'sinhf4', 'sqrtd2', 'sqrtf4', 'tand2', 'tanf4', 'tanhd2', and
  19826. 'tanhf4' when generating code for power7. Both '-ftree-vectorize'
  19827. and '-funsafe-math-optimizations' must also be enabled. The MASS
  19828. libraries must be specified at link time.
  19829. '-mfriz'
  19830. '-mno-friz'
  19831. Generate (do not generate) the 'friz' instruction when the
  19832. '-funsafe-math-optimizations' option is used to optimize rounding
  19833. of floating-point values to 64-bit integer and back to floating
  19834. point. The 'friz' instruction does not return the same value if
  19835. the floating-point number is too large to fit in an integer.
  19836. '-mpointers-to-nested-functions'
  19837. '-mno-pointers-to-nested-functions'
  19838. Generate (do not generate) code to load up the static chain
  19839. register ('r11') when calling through a pointer on AIX and 64-bit
  19840. Linux systems where a function pointer points to a 3-word
  19841. descriptor giving the function address, TOC value to be loaded in
  19842. register 'r2', and static chain value to be loaded in register
  19843. 'r11'. The '-mpointers-to-nested-functions' is on by default. You
  19844. cannot call through pointers to nested functions or pointers to
  19845. functions compiled in other languages that use the static chain if
  19846. you use '-mno-pointers-to-nested-functions'.
  19847. '-msave-toc-indirect'
  19848. '-mno-save-toc-indirect'
  19849. Generate (do not generate) code to save the TOC value in the
  19850. reserved stack location in the function prologue if the function
  19851. calls through a pointer on AIX and 64-bit Linux systems. If the
  19852. TOC value is not saved in the prologue, it is saved just before the
  19853. call through the pointer. The '-mno-save-toc-indirect' option is
  19854. the default.
  19855. '-mcompat-align-parm'
  19856. '-mno-compat-align-parm'
  19857. Generate (do not generate) code to pass structure parameters with a
  19858. maximum alignment of 64 bits, for compatibility with older versions
  19859. of GCC.
  19860. Older versions of GCC (prior to 4.9.0) incorrectly did not align a
  19861. structure parameter on a 128-bit boundary when that structure
  19862. contained a member requiring 128-bit alignment. This is corrected
  19863. in more recent versions of GCC. This option may be used to generate
  19864. code that is compatible with functions compiled with older versions
  19865. of GCC.
  19866. The '-mno-compat-align-parm' option is the default.
  19867. '-mstack-protector-guard=GUARD'
  19868. '-mstack-protector-guard-reg=REG'
  19869. '-mstack-protector-guard-offset=OFFSET'
  19870. '-mstack-protector-guard-symbol=SYMBOL'
  19871. Generate stack protection code using canary at GUARD. Supported
  19872. locations are 'global' for global canary or 'tls' for per-thread
  19873. canary in the TLS block (the default with GNU libc version 2.4 or
  19874. later).
  19875. With the latter choice the options
  19876. '-mstack-protector-guard-reg=REG' and
  19877. '-mstack-protector-guard-offset=OFFSET' furthermore specify which
  19878. register to use as base register for reading the canary, and from
  19879. what offset from that base register. The default for those is as
  19880. specified in the relevant ABI.
  19881. '-mstack-protector-guard-symbol=SYMBOL' overrides the offset with a
  19882. symbol reference to a canary in the TLS block.
  19883. '-mpcrel'
  19884. '-mno-pcrel'
  19885. Generate (do not generate) pc-relative addressing when the option
  19886. '-mcpu=future' is used. The '-mpcrel' option requires that the
  19887. medium code model ('-mcmodel=medium') and prefixed addressing
  19888. ('-mprefixed') options are enabled.
  19889. '-mprefixed'
  19890. '-mno-prefixed'
  19891. Generate (do not generate) addressing modes using prefixed load and
  19892. store instructions when the option '-mcpu=future' is used.
  19893. 
  19894. File: gcc.info, Node: RX Options, Next: S/390 and zSeries Options, Prev: RS/6000 and PowerPC Options, Up: Submodel Options
  19895. 3.19.45 RX Options
  19896. ------------------
  19897. These command-line options are defined for RX targets:
  19898. '-m64bit-doubles'
  19899. '-m32bit-doubles'
  19900. Make the 'double' data type be 64 bits ('-m64bit-doubles') or 32
  19901. bits ('-m32bit-doubles') in size. The default is
  19902. '-m32bit-doubles'. _Note_ RX floating-point hardware only works on
  19903. 32-bit values, which is why the default is '-m32bit-doubles'.
  19904. '-fpu'
  19905. '-nofpu'
  19906. Enables ('-fpu') or disables ('-nofpu') the use of RX
  19907. floating-point hardware. The default is enabled for the RX600
  19908. series and disabled for the RX200 series.
  19909. Floating-point instructions are only generated for 32-bit
  19910. floating-point values, however, so the FPU hardware is not used for
  19911. doubles if the '-m64bit-doubles' option is used.
  19912. _Note_ If the '-fpu' option is enabled then
  19913. '-funsafe-math-optimizations' is also enabled automatically. This
  19914. is because the RX FPU instructions are themselves unsafe.
  19915. '-mcpu=NAME'
  19916. Selects the type of RX CPU to be targeted. Currently three types
  19917. are supported, the generic 'RX600' and 'RX200' series hardware and
  19918. the specific 'RX610' CPU. The default is 'RX600'.
  19919. The only difference between 'RX600' and 'RX610' is that the 'RX610'
  19920. does not support the 'MVTIPL' instruction.
  19921. The 'RX200' series does not have a hardware floating-point unit and
  19922. so '-nofpu' is enabled by default when this type is selected.
  19923. '-mbig-endian-data'
  19924. '-mlittle-endian-data'
  19925. Store data (but not code) in the big-endian format. The default is
  19926. '-mlittle-endian-data', i.e. to store data in the little-endian
  19927. format.
  19928. '-msmall-data-limit=N'
  19929. Specifies the maximum size in bytes of global and static variables
  19930. which can be placed into the small data area. Using the small data
  19931. area can lead to smaller and faster code, but the size of area is
  19932. limited and it is up to the programmer to ensure that the area does
  19933. not overflow. Also when the small data area is used one of the
  19934. RX's registers (usually 'r13') is reserved for use pointing to this
  19935. area, so it is no longer available for use by the compiler. This
  19936. could result in slower and/or larger code if variables are pushed
  19937. onto the stack instead of being held in this register.
  19938. Note, common variables (variables that have not been initialized)
  19939. and constants are not placed into the small data area as they are
  19940. assigned to other sections in the output executable.
  19941. The default value is zero, which disables this feature. Note, this
  19942. feature is not enabled by default with higher optimization levels
  19943. ('-O2' etc) because of the potentially detrimental effects of
  19944. reserving a register. It is up to the programmer to experiment and
  19945. discover whether this feature is of benefit to their program. See
  19946. the description of the '-mpid' option for a description of how the
  19947. actual register to hold the small data area pointer is chosen.
  19948. '-msim'
  19949. '-mno-sim'
  19950. Use the simulator runtime. The default is to use the libgloss
  19951. board-specific runtime.
  19952. '-mas100-syntax'
  19953. '-mno-as100-syntax'
  19954. When generating assembler output use a syntax that is compatible
  19955. with Renesas's AS100 assembler. This syntax can also be handled by
  19956. the GAS assembler, but it has some restrictions so it is not
  19957. generated by default.
  19958. '-mmax-constant-size=N'
  19959. Specifies the maximum size, in bytes, of a constant that can be
  19960. used as an operand in a RX instruction. Although the RX
  19961. instruction set does allow constants of up to 4 bytes in length to
  19962. be used in instructions, a longer value equates to a longer
  19963. instruction. Thus in some circumstances it can be beneficial to
  19964. restrict the size of constants that are used in instructions.
  19965. Constants that are too big are instead placed into a constant pool
  19966. and referenced via register indirection.
  19967. The value N can be between 0 and 4. A value of 0 (the default) or
  19968. 4 means that constants of any size are allowed.
  19969. '-mrelax'
  19970. Enable linker relaxation. Linker relaxation is a process whereby
  19971. the linker attempts to reduce the size of a program by finding
  19972. shorter versions of various instructions. Disabled by default.
  19973. '-mint-register=N'
  19974. Specify the number of registers to reserve for fast interrupt
  19975. handler functions. The value N can be between 0 and 4. A value of
  19976. 1 means that register 'r13' is reserved for the exclusive use of
  19977. fast interrupt handlers. A value of 2 reserves 'r13' and 'r12'. A
  19978. value of 3 reserves 'r13', 'r12' and 'r11', and a value of 4
  19979. reserves 'r13' through 'r10'. A value of 0, the default, does not
  19980. reserve any registers.
  19981. '-msave-acc-in-interrupts'
  19982. Specifies that interrupt handler functions should preserve the
  19983. accumulator register. This is only necessary if normal code might
  19984. use the accumulator register, for example because it performs
  19985. 64-bit multiplications. The default is to ignore the accumulator
  19986. as this makes the interrupt handlers faster.
  19987. '-mpid'
  19988. '-mno-pid'
  19989. Enables the generation of position independent data. When enabled
  19990. any access to constant data is done via an offset from a base
  19991. address held in a register. This allows the location of constant
  19992. data to be determined at run time without requiring the executable
  19993. to be relocated, which is a benefit to embedded applications with
  19994. tight memory constraints. Data that can be modified is not
  19995. affected by this option.
  19996. Note, using this feature reserves a register, usually 'r13', for
  19997. the constant data base address. This can result in slower and/or
  19998. larger code, especially in complicated functions.
  19999. The actual register chosen to hold the constant data base address
  20000. depends upon whether the '-msmall-data-limit' and/or the
  20001. '-mint-register' command-line options are enabled. Starting with
  20002. register 'r13' and proceeding downwards, registers are allocated
  20003. first to satisfy the requirements of '-mint-register', then '-mpid'
  20004. and finally '-msmall-data-limit'. Thus it is possible for the
  20005. small data area register to be 'r8' if both '-mint-register=4' and
  20006. '-mpid' are specified on the command line.
  20007. By default this feature is not enabled. The default can be
  20008. restored via the '-mno-pid' command-line option.
  20009. '-mno-warn-multiple-fast-interrupts'
  20010. '-mwarn-multiple-fast-interrupts'
  20011. Prevents GCC from issuing a warning message if it finds more than
  20012. one fast interrupt handler when it is compiling a file. The
  20013. default is to issue a warning for each extra fast interrupt handler
  20014. found, as the RX only supports one such interrupt.
  20015. '-mallow-string-insns'
  20016. '-mno-allow-string-insns'
  20017. Enables or disables the use of the string manipulation instructions
  20018. 'SMOVF', 'SCMPU', 'SMOVB', 'SMOVU', 'SUNTIL' 'SWHILE' and also the
  20019. 'RMPA' instruction. These instructions may prefetch data, which is
  20020. not safe to do if accessing an I/O register. (See section 12.2.7
  20021. of the RX62N Group User's Manual for more information).
  20022. The default is to allow these instructions, but it is not possible
  20023. for GCC to reliably detect all circumstances where a string
  20024. instruction might be used to access an I/O register, so their use
  20025. cannot be disabled automatically. Instead it is reliant upon the
  20026. programmer to use the '-mno-allow-string-insns' option if their
  20027. program accesses I/O space.
  20028. When the instructions are enabled GCC defines the C preprocessor
  20029. symbol '__RX_ALLOW_STRING_INSNS__', otherwise it defines the symbol
  20030. '__RX_DISALLOW_STRING_INSNS__'.
  20031. '-mjsr'
  20032. '-mno-jsr'
  20033. Use only (or not only) 'JSR' instructions to access functions.
  20034. This option can be used when code size exceeds the range of 'BSR'
  20035. instructions. Note that '-mno-jsr' does not mean to not use 'JSR'
  20036. but instead means that any type of branch may be used.
  20037. _Note:_ The generic GCC command-line option '-ffixed-REG' has special
  20038. significance to the RX port when used with the 'interrupt' function
  20039. attribute. This attribute indicates a function intended to process fast
  20040. interrupts. GCC ensures that it only uses the registers 'r10', 'r11',
  20041. 'r12' and/or 'r13' and only provided that the normal use of the
  20042. corresponding registers have been restricted via the '-ffixed-REG' or
  20043. '-mint-register' command-line options.
  20044. 
  20045. File: gcc.info, Node: S/390 and zSeries Options, Next: Score Options, Prev: RX Options, Up: Submodel Options
  20046. 3.19.46 S/390 and zSeries Options
  20047. ---------------------------------
  20048. These are the '-m' options defined for the S/390 and zSeries
  20049. architecture.
  20050. '-mhard-float'
  20051. '-msoft-float'
  20052. Use (do not use) the hardware floating-point instructions and
  20053. registers for floating-point operations. When '-msoft-float' is
  20054. specified, functions in 'libgcc.a' are used to perform
  20055. floating-point operations. When '-mhard-float' is specified, the
  20056. compiler generates IEEE floating-point instructions. This is the
  20057. default.
  20058. '-mhard-dfp'
  20059. '-mno-hard-dfp'
  20060. Use (do not use) the hardware decimal-floating-point instructions
  20061. for decimal-floating-point operations. When '-mno-hard-dfp' is
  20062. specified, functions in 'libgcc.a' are used to perform
  20063. decimal-floating-point operations. When '-mhard-dfp' is specified,
  20064. the compiler generates decimal-floating-point hardware
  20065. instructions. This is the default for '-march=z9-ec' or higher.
  20066. '-mlong-double-64'
  20067. '-mlong-double-128'
  20068. These switches control the size of 'long double' type. A size of
  20069. 64 bits makes the 'long double' type equivalent to the 'double'
  20070. type. This is the default.
  20071. '-mbackchain'
  20072. '-mno-backchain'
  20073. Store (do not store) the address of the caller's frame as backchain
  20074. pointer into the callee's stack frame. A backchain may be needed
  20075. to allow debugging using tools that do not understand DWARF call
  20076. frame information. When '-mno-packed-stack' is in effect, the
  20077. backchain pointer is stored at the bottom of the stack frame; when
  20078. '-mpacked-stack' is in effect, the backchain is placed into the
  20079. topmost word of the 96/160 byte register save area.
  20080. In general, code compiled with '-mbackchain' is call-compatible
  20081. with code compiled with '-mmo-backchain'; however, use of the
  20082. backchain for debugging purposes usually requires that the whole
  20083. binary is built with '-mbackchain'. Note that the combination of
  20084. '-mbackchain', '-mpacked-stack' and '-mhard-float' is not
  20085. supported. In order to build a linux kernel use '-msoft-float'.
  20086. The default is to not maintain the backchain.
  20087. '-mpacked-stack'
  20088. '-mno-packed-stack'
  20089. Use (do not use) the packed stack layout. When '-mno-packed-stack'
  20090. is specified, the compiler uses the all fields of the 96/160 byte
  20091. register save area only for their default purpose; unused fields
  20092. still take up stack space. When '-mpacked-stack' is specified,
  20093. register save slots are densely packed at the top of the register
  20094. save area; unused space is reused for other purposes, allowing for
  20095. more efficient use of the available stack space. However, when
  20096. '-mbackchain' is also in effect, the topmost word of the save area
  20097. is always used to store the backchain, and the return address
  20098. register is always saved two words below the backchain.
  20099. As long as the stack frame backchain is not used, code generated
  20100. with '-mpacked-stack' is call-compatible with code generated with
  20101. '-mno-packed-stack'. Note that some non-FSF releases of GCC 2.95
  20102. for S/390 or zSeries generated code that uses the stack frame
  20103. backchain at run time, not just for debugging purposes. Such code
  20104. is not call-compatible with code compiled with '-mpacked-stack'.
  20105. Also, note that the combination of '-mbackchain', '-mpacked-stack'
  20106. and '-mhard-float' is not supported. In order to build a linux
  20107. kernel use '-msoft-float'.
  20108. The default is to not use the packed stack layout.
  20109. '-msmall-exec'
  20110. '-mno-small-exec'
  20111. Generate (or do not generate) code using the 'bras' instruction to
  20112. do subroutine calls. This only works reliably if the total
  20113. executable size does not exceed 64k. The default is to use the
  20114. 'basr' instruction instead, which does not have this limitation.
  20115. '-m64'
  20116. '-m31'
  20117. When '-m31' is specified, generate code compliant to the GNU/Linux
  20118. for S/390 ABI. When '-m64' is specified, generate code compliant
  20119. to the GNU/Linux for zSeries ABI. This allows GCC in particular to
  20120. generate 64-bit instructions. For the 's390' targets, the default
  20121. is '-m31', while the 's390x' targets default to '-m64'.
  20122. '-mzarch'
  20123. '-mesa'
  20124. When '-mzarch' is specified, generate code using the instructions
  20125. available on z/Architecture. When '-mesa' is specified, generate
  20126. code using the instructions available on ESA/390. Note that
  20127. '-mesa' is not possible with '-m64'. When generating code
  20128. compliant to the GNU/Linux for S/390 ABI, the default is '-mesa'.
  20129. When generating code compliant to the GNU/Linux for zSeries ABI,
  20130. the default is '-mzarch'.
  20131. '-mhtm'
  20132. '-mno-htm'
  20133. The '-mhtm' option enables a set of builtins making use of
  20134. instructions available with the transactional execution facility
  20135. introduced with the IBM zEnterprise EC12 machine generation *note
  20136. S/390 System z Built-in Functions::. '-mhtm' is enabled by default
  20137. when using '-march=zEC12'.
  20138. '-mvx'
  20139. '-mno-vx'
  20140. When '-mvx' is specified, generate code using the instructions
  20141. available with the vector extension facility introduced with the
  20142. IBM z13 machine generation. This option changes the ABI for some
  20143. vector type values with regard to alignment and calling
  20144. conventions. In case vector type values are being used in an
  20145. ABI-relevant context a GAS '.gnu_attribute' command will be added
  20146. to mark the resulting binary with the ABI used. '-mvx' is enabled
  20147. by default when using '-march=z13'.
  20148. '-mzvector'
  20149. '-mno-zvector'
  20150. The '-mzvector' option enables vector language extensions and
  20151. builtins using instructions available with the vector extension
  20152. facility introduced with the IBM z13 machine generation. This
  20153. option adds support for 'vector' to be used as a keyword to define
  20154. vector type variables and arguments. 'vector' is only available
  20155. when GNU extensions are enabled. It will not be expanded when
  20156. requesting strict standard compliance e.g. with '-std=c99'. In
  20157. addition to the GCC low-level builtins '-mzvector' enables a set of
  20158. builtins added for compatibility with AltiVec-style implementations
  20159. like Power and Cell. In order to make use of these builtins the
  20160. header file 'vecintrin.h' needs to be included. '-mzvector' is
  20161. disabled by default.
  20162. '-mmvcle'
  20163. '-mno-mvcle'
  20164. Generate (or do not generate) code using the 'mvcle' instruction to
  20165. perform block moves. When '-mno-mvcle' is specified, use a 'mvc'
  20166. loop instead. This is the default unless optimizing for size.
  20167. '-mdebug'
  20168. '-mno-debug'
  20169. Print (or do not print) additional debug information when
  20170. compiling. The default is to not print debug information.
  20171. '-march=CPU-TYPE'
  20172. Generate code that runs on CPU-TYPE, which is the name of a system
  20173. representing a certain processor type. Possible values for
  20174. CPU-TYPE are 'z900'/'arch5', 'z990'/'arch6', 'z9-109',
  20175. 'z9-ec'/'arch7', 'z10'/'arch8', 'z196'/'arch9', 'zEC12',
  20176. 'z13'/'arch11', 'z14'/'arch12', and 'native'.
  20177. The default is '-march=z900'.
  20178. Specifying 'native' as cpu type can be used to select the best
  20179. architecture option for the host processor. '-march=native' has no
  20180. effect if GCC does not recognize the processor.
  20181. '-mtune=CPU-TYPE'
  20182. Tune to CPU-TYPE everything applicable about the generated code,
  20183. except for the ABI and the set of available instructions. The list
  20184. of CPU-TYPE values is the same as for '-march'. The default is the
  20185. value used for '-march'.
  20186. '-mtpf-trace'
  20187. '-mno-tpf-trace'
  20188. Generate code that adds (does not add) in TPF OS specific branches
  20189. to trace routines in the operating system. This option is off by
  20190. default, even when compiling for the TPF OS.
  20191. '-mtpf-trace-skip'
  20192. '-mno-tpf-trace-skip'
  20193. Generate code that changes (does not change) the default branch
  20194. targets enabled by '-mtpf-trace' to point to specialized trace
  20195. routines providing the ability of selectively skipping function
  20196. trace entries for the TPF OS. This option is off by default, even
  20197. when compiling for the TPF OS and specifying '-mtpf-trace'.
  20198. '-mfused-madd'
  20199. '-mno-fused-madd'
  20200. Generate code that uses (does not use) the floating-point multiply
  20201. and accumulate instructions. These instructions are generated by
  20202. default if hardware floating point is used.
  20203. '-mwarn-framesize=FRAMESIZE'
  20204. Emit a warning if the current function exceeds the given frame
  20205. size. Because this is a compile-time check it doesn't need to be a
  20206. real problem when the program runs. It is intended to identify
  20207. functions that most probably cause a stack overflow. It is useful
  20208. to be used in an environment with limited stack size e.g. the linux
  20209. kernel.
  20210. '-mwarn-dynamicstack'
  20211. Emit a warning if the function calls 'alloca' or uses
  20212. dynamically-sized arrays. This is generally a bad idea with a
  20213. limited stack size.
  20214. '-mstack-guard=STACK-GUARD'
  20215. '-mstack-size=STACK-SIZE'
  20216. If these options are provided the S/390 back end emits additional
  20217. instructions in the function prologue that trigger a trap if the
  20218. stack size is STACK-GUARD bytes above the STACK-SIZE (remember that
  20219. the stack on S/390 grows downward). If the STACK-GUARD option is
  20220. omitted the smallest power of 2 larger than the frame size of the
  20221. compiled function is chosen. These options are intended to be used
  20222. to help debugging stack overflow problems. The additionally
  20223. emitted code causes only little overhead and hence can also be used
  20224. in production-like systems without greater performance degradation.
  20225. The given values have to be exact powers of 2 and STACK-SIZE has to
  20226. be greater than STACK-GUARD without exceeding 64k. In order to be
  20227. efficient the extra code makes the assumption that the stack starts
  20228. at an address aligned to the value given by STACK-SIZE. The
  20229. STACK-GUARD option can only be used in conjunction with STACK-SIZE.
  20230. '-mhotpatch=PRE-HALFWORDS,POST-HALFWORDS'
  20231. If the hotpatch option is enabled, a "hot-patching" function
  20232. prologue is generated for all functions in the compilation unit.
  20233. The funtion label is prepended with the given number of two-byte
  20234. NOP instructions (PRE-HALFWORDS, maximum 1000000). After the
  20235. label, 2 * POST-HALFWORDS bytes are appended, using the largest NOP
  20236. like instructions the architecture allows (maximum 1000000).
  20237. If both arguments are zero, hotpatching is disabled.
  20238. This option can be overridden for individual functions with the
  20239. 'hotpatch' attribute.
  20240. 
  20241. File: gcc.info, Node: Score Options, Next: SH Options, Prev: S/390 and zSeries Options, Up: Submodel Options
  20242. 3.19.47 Score Options
  20243. ---------------------
  20244. These options are defined for Score implementations:
  20245. '-meb'
  20246. Compile code for big-endian mode. This is the default.
  20247. '-mel'
  20248. Compile code for little-endian mode.
  20249. '-mnhwloop'
  20250. Disable generation of 'bcnz' instructions.
  20251. '-muls'
  20252. Enable generation of unaligned load and store instructions.
  20253. '-mmac'
  20254. Enable the use of multiply-accumulate instructions. Disabled by
  20255. default.
  20256. '-mscore5'
  20257. Specify the SCORE5 as the target architecture.
  20258. '-mscore5u'
  20259. Specify the SCORE5U of the target architecture.
  20260. '-mscore7'
  20261. Specify the SCORE7 as the target architecture. This is the
  20262. default.
  20263. '-mscore7d'
  20264. Specify the SCORE7D as the target architecture.
  20265. 
  20266. File: gcc.info, Node: SH Options, Next: Solaris 2 Options, Prev: Score Options, Up: Submodel Options
  20267. 3.19.48 SH Options
  20268. ------------------
  20269. These '-m' options are defined for the SH implementations:
  20270. '-m1'
  20271. Generate code for the SH1.
  20272. '-m2'
  20273. Generate code for the SH2.
  20274. '-m2e'
  20275. Generate code for the SH2e.
  20276. '-m2a-nofpu'
  20277. Generate code for the SH2a without FPU, or for a SH2a-FPU in such a
  20278. way that the floating-point unit is not used.
  20279. '-m2a-single-only'
  20280. Generate code for the SH2a-FPU, in such a way that no
  20281. double-precision floating-point operations are used.
  20282. '-m2a-single'
  20283. Generate code for the SH2a-FPU assuming the floating-point unit is
  20284. in single-precision mode by default.
  20285. '-m2a'
  20286. Generate code for the SH2a-FPU assuming the floating-point unit is
  20287. in double-precision mode by default.
  20288. '-m3'
  20289. Generate code for the SH3.
  20290. '-m3e'
  20291. Generate code for the SH3e.
  20292. '-m4-nofpu'
  20293. Generate code for the SH4 without a floating-point unit.
  20294. '-m4-single-only'
  20295. Generate code for the SH4 with a floating-point unit that only
  20296. supports single-precision arithmetic.
  20297. '-m4-single'
  20298. Generate code for the SH4 assuming the floating-point unit is in
  20299. single-precision mode by default.
  20300. '-m4'
  20301. Generate code for the SH4.
  20302. '-m4-100'
  20303. Generate code for SH4-100.
  20304. '-m4-100-nofpu'
  20305. Generate code for SH4-100 in such a way that the floating-point
  20306. unit is not used.
  20307. '-m4-100-single'
  20308. Generate code for SH4-100 assuming the floating-point unit is in
  20309. single-precision mode by default.
  20310. '-m4-100-single-only'
  20311. Generate code for SH4-100 in such a way that no double-precision
  20312. floating-point operations are used.
  20313. '-m4-200'
  20314. Generate code for SH4-200.
  20315. '-m4-200-nofpu'
  20316. Generate code for SH4-200 without in such a way that the
  20317. floating-point unit is not used.
  20318. '-m4-200-single'
  20319. Generate code for SH4-200 assuming the floating-point unit is in
  20320. single-precision mode by default.
  20321. '-m4-200-single-only'
  20322. Generate code for SH4-200 in such a way that no double-precision
  20323. floating-point operations are used.
  20324. '-m4-300'
  20325. Generate code for SH4-300.
  20326. '-m4-300-nofpu'
  20327. Generate code for SH4-300 without in such a way that the
  20328. floating-point unit is not used.
  20329. '-m4-300-single'
  20330. Generate code for SH4-300 in such a way that no double-precision
  20331. floating-point operations are used.
  20332. '-m4-300-single-only'
  20333. Generate code for SH4-300 in such a way that no double-precision
  20334. floating-point operations are used.
  20335. '-m4-340'
  20336. Generate code for SH4-340 (no MMU, no FPU).
  20337. '-m4-500'
  20338. Generate code for SH4-500 (no FPU). Passes '-isa=sh4-nofpu' to the
  20339. assembler.
  20340. '-m4a-nofpu'
  20341. Generate code for the SH4al-dsp, or for a SH4a in such a way that
  20342. the floating-point unit is not used.
  20343. '-m4a-single-only'
  20344. Generate code for the SH4a, in such a way that no double-precision
  20345. floating-point operations are used.
  20346. '-m4a-single'
  20347. Generate code for the SH4a assuming the floating-point unit is in
  20348. single-precision mode by default.
  20349. '-m4a'
  20350. Generate code for the SH4a.
  20351. '-m4al'
  20352. Same as '-m4a-nofpu', except that it implicitly passes '-dsp' to
  20353. the assembler. GCC doesn't generate any DSP instructions at the
  20354. moment.
  20355. '-mb'
  20356. Compile code for the processor in big-endian mode.
  20357. '-ml'
  20358. Compile code for the processor in little-endian mode.
  20359. '-mdalign'
  20360. Align doubles at 64-bit boundaries. Note that this changes the
  20361. calling conventions, and thus some functions from the standard C
  20362. library do not work unless you recompile it first with '-mdalign'.
  20363. '-mrelax'
  20364. Shorten some address references at link time, when possible; uses
  20365. the linker option '-relax'.
  20366. '-mbigtable'
  20367. Use 32-bit offsets in 'switch' tables. The default is to use
  20368. 16-bit offsets.
  20369. '-mbitops'
  20370. Enable the use of bit manipulation instructions on SH2A.
  20371. '-mfmovd'
  20372. Enable the use of the instruction 'fmovd'. Check '-mdalign' for
  20373. alignment constraints.
  20374. '-mrenesas'
  20375. Comply with the calling conventions defined by Renesas.
  20376. '-mno-renesas'
  20377. Comply with the calling conventions defined for GCC before the
  20378. Renesas conventions were available. This option is the default for
  20379. all targets of the SH toolchain.
  20380. '-mnomacsave'
  20381. Mark the 'MAC' register as call-clobbered, even if '-mrenesas' is
  20382. given.
  20383. '-mieee'
  20384. '-mno-ieee'
  20385. Control the IEEE compliance of floating-point comparisons, which
  20386. affects the handling of cases where the result of a comparison is
  20387. unordered. By default '-mieee' is implicitly enabled. If
  20388. '-ffinite-math-only' is enabled '-mno-ieee' is implicitly set,
  20389. which results in faster floating-point greater-equal and less-equal
  20390. comparisons. The implicit settings can be overridden by specifying
  20391. either '-mieee' or '-mno-ieee'.
  20392. '-minline-ic_invalidate'
  20393. Inline code to invalidate instruction cache entries after setting
  20394. up nested function trampolines. This option has no effect if
  20395. '-musermode' is in effect and the selected code generation option
  20396. (e.g. '-m4') does not allow the use of the 'icbi' instruction. If
  20397. the selected code generation option does not allow the use of the
  20398. 'icbi' instruction, and '-musermode' is not in effect, the inlined
  20399. code manipulates the instruction cache address array directly with
  20400. an associative write. This not only requires privileged mode at
  20401. run time, but it also fails if the cache line had been mapped via
  20402. the TLB and has become unmapped.
  20403. '-misize'
  20404. Dump instruction size and location in the assembly code.
  20405. '-mpadstruct'
  20406. This option is deprecated. It pads structures to multiple of 4
  20407. bytes, which is incompatible with the SH ABI.
  20408. '-matomic-model=MODEL'
  20409. Sets the model of atomic operations and additional parameters as a
  20410. comma separated list. For details on the atomic built-in functions
  20411. see *note __atomic Builtins::. The following models and parameters
  20412. are supported:
  20413. 'none'
  20414. Disable compiler generated atomic sequences and emit library
  20415. calls for atomic operations. This is the default if the
  20416. target is not 'sh*-*-linux*'.
  20417. 'soft-gusa'
  20418. Generate GNU/Linux compatible gUSA software atomic sequences
  20419. for the atomic built-in functions. The generated atomic
  20420. sequences require additional support from the
  20421. interrupt/exception handling code of the system and are only
  20422. suitable for SH3* and SH4* single-core systems. This option
  20423. is enabled by default when the target is 'sh*-*-linux*' and
  20424. SH3* or SH4*. When the target is SH4A, this option also
  20425. partially utilizes the hardware atomic instructions 'movli.l'
  20426. and 'movco.l' to create more efficient code, unless 'strict'
  20427. is specified.
  20428. 'soft-tcb'
  20429. Generate software atomic sequences that use a variable in the
  20430. thread control block. This is a variation of the gUSA
  20431. sequences which can also be used on SH1* and SH2* targets.
  20432. The generated atomic sequences require additional support from
  20433. the interrupt/exception handling code of the system and are
  20434. only suitable for single-core systems. When using this model,
  20435. the 'gbr-offset=' parameter has to be specified as well.
  20436. 'soft-imask'
  20437. Generate software atomic sequences that temporarily disable
  20438. interrupts by setting 'SR.IMASK = 1111'. This model works
  20439. only when the program runs in privileged mode and is only
  20440. suitable for single-core systems. Additional support from the
  20441. interrupt/exception handling code of the system is not
  20442. required. This model is enabled by default when the target is
  20443. 'sh*-*-linux*' and SH1* or SH2*.
  20444. 'hard-llcs'
  20445. Generate hardware atomic sequences using the 'movli.l' and
  20446. 'movco.l' instructions only. This is only available on SH4A
  20447. and is suitable for multi-core systems. Since the hardware
  20448. instructions support only 32 bit atomic variables access to 8
  20449. or 16 bit variables is emulated with 32 bit accesses. Code
  20450. compiled with this option is also compatible with other
  20451. software atomic model interrupt/exception handling systems if
  20452. executed on an SH4A system. Additional support from the
  20453. interrupt/exception handling code of the system is not
  20454. required for this model.
  20455. 'gbr-offset='
  20456. This parameter specifies the offset in bytes of the variable
  20457. in the thread control block structure that should be used by
  20458. the generated atomic sequences when the 'soft-tcb' model has
  20459. been selected. For other models this parameter is ignored.
  20460. The specified value must be an integer multiple of four and in
  20461. the range 0-1020.
  20462. 'strict'
  20463. This parameter prevents mixed usage of multiple atomic models,
  20464. even if they are compatible, and makes the compiler generate
  20465. atomic sequences of the specified model only.
  20466. '-mtas'
  20467. Generate the 'tas.b' opcode for '__atomic_test_and_set'. Notice
  20468. that depending on the particular hardware and software
  20469. configuration this can degrade overall performance due to the
  20470. operand cache line flushes that are implied by the 'tas.b'
  20471. instruction. On multi-core SH4A processors the 'tas.b' instruction
  20472. must be used with caution since it can result in data corruption
  20473. for certain cache configurations.
  20474. '-mprefergot'
  20475. When generating position-independent code, emit function calls
  20476. using the Global Offset Table instead of the Procedure Linkage
  20477. Table.
  20478. '-musermode'
  20479. '-mno-usermode'
  20480. Don't allow (allow) the compiler generating privileged mode code.
  20481. Specifying '-musermode' also implies '-mno-inline-ic_invalidate' if
  20482. the inlined code would not work in user mode. '-musermode' is the
  20483. default when the target is 'sh*-*-linux*'. If the target is SH1*
  20484. or SH2* '-musermode' has no effect, since there is no user mode.
  20485. '-multcost=NUMBER'
  20486. Set the cost to assume for a multiply insn.
  20487. '-mdiv=STRATEGY'
  20488. Set the division strategy to be used for integer division
  20489. operations. STRATEGY can be one of:
  20490. 'call-div1'
  20491. Calls a library function that uses the single-step division
  20492. instruction 'div1' to perform the operation. Division by zero
  20493. calculates an unspecified result and does not trap. This is
  20494. the default except for SH4, SH2A and SHcompact.
  20495. 'call-fp'
  20496. Calls a library function that performs the operation in double
  20497. precision floating point. Division by zero causes a
  20498. floating-point exception. This is the default for SHcompact
  20499. with FPU. Specifying this for targets that do not have a
  20500. double precision FPU defaults to 'call-div1'.
  20501. 'call-table'
  20502. Calls a library function that uses a lookup table for small
  20503. divisors and the 'div1' instruction with case distinction for
  20504. larger divisors. Division by zero calculates an unspecified
  20505. result and does not trap. This is the default for SH4.
  20506. Specifying this for targets that do not have dynamic shift
  20507. instructions defaults to 'call-div1'.
  20508. When a division strategy has not been specified the default
  20509. strategy is selected based on the current target. For SH2A the
  20510. default strategy is to use the 'divs' and 'divu' instructions
  20511. instead of library function calls.
  20512. '-maccumulate-outgoing-args'
  20513. Reserve space once for outgoing arguments in the function prologue
  20514. rather than around each call. Generally beneficial for performance
  20515. and size. Also needed for unwinding to avoid changing the stack
  20516. frame around conditional code.
  20517. '-mdivsi3_libfunc=NAME'
  20518. Set the name of the library function used for 32-bit signed
  20519. division to NAME. This only affects the name used in the 'call'
  20520. division strategies, and the compiler still expects the same sets
  20521. of input/output/clobbered registers as if this option were not
  20522. present.
  20523. '-mfixed-range=REGISTER-RANGE'
  20524. Generate code treating the given register range as fixed registers.
  20525. A fixed register is one that the register allocator cannot use.
  20526. This is useful when compiling kernel code. A register range is
  20527. specified as two registers separated by a dash. Multiple register
  20528. ranges can be specified separated by a comma.
  20529. '-mbranch-cost=NUM'
  20530. Assume NUM to be the cost for a branch instruction. Higher numbers
  20531. make the compiler try to generate more branch-free code if
  20532. possible. If not specified the value is selected depending on the
  20533. processor type that is being compiled for.
  20534. '-mzdcbranch'
  20535. '-mno-zdcbranch'
  20536. Assume (do not assume) that zero displacement conditional branch
  20537. instructions 'bt' and 'bf' are fast. If '-mzdcbranch' is
  20538. specified, the compiler prefers zero displacement branch code
  20539. sequences. This is enabled by default when generating code for SH4
  20540. and SH4A. It can be explicitly disabled by specifying
  20541. '-mno-zdcbranch'.
  20542. '-mcbranch-force-delay-slot'
  20543. Force the usage of delay slots for conditional branches, which
  20544. stuffs the delay slot with a 'nop' if a suitable instruction cannot
  20545. be found. By default this option is disabled. It can be enabled
  20546. to work around hardware bugs as found in the original SH7055.
  20547. '-mfused-madd'
  20548. '-mno-fused-madd'
  20549. Generate code that uses (does not use) the floating-point multiply
  20550. and accumulate instructions. These instructions are generated by
  20551. default if hardware floating point is used. The machine-dependent
  20552. '-mfused-madd' option is now mapped to the machine-independent
  20553. '-ffp-contract=fast' option, and '-mno-fused-madd' is mapped to
  20554. '-ffp-contract=off'.
  20555. '-mfsca'
  20556. '-mno-fsca'
  20557. Allow or disallow the compiler to emit the 'fsca' instruction for
  20558. sine and cosine approximations. The option '-mfsca' must be used
  20559. in combination with '-funsafe-math-optimizations'. It is enabled
  20560. by default when generating code for SH4A. Using '-mno-fsca'
  20561. disables sine and cosine approximations even if
  20562. '-funsafe-math-optimizations' is in effect.
  20563. '-mfsrra'
  20564. '-mno-fsrra'
  20565. Allow or disallow the compiler to emit the 'fsrra' instruction for
  20566. reciprocal square root approximations. The option '-mfsrra' must
  20567. be used in combination with '-funsafe-math-optimizations' and
  20568. '-ffinite-math-only'. It is enabled by default when generating
  20569. code for SH4A. Using '-mno-fsrra' disables reciprocal square root
  20570. approximations even if '-funsafe-math-optimizations' and
  20571. '-ffinite-math-only' are in effect.
  20572. '-mpretend-cmove'
  20573. Prefer zero-displacement conditional branches for conditional move
  20574. instruction patterns. This can result in faster code on the SH4
  20575. processor.
  20576. '-mfdpic'
  20577. Generate code using the FDPIC ABI.
  20578. 
  20579. File: gcc.info, Node: Solaris 2 Options, Next: SPARC Options, Prev: SH Options, Up: Submodel Options
  20580. 3.19.49 Solaris 2 Options
  20581. -------------------------
  20582. These '-m' options are supported on Solaris 2:
  20583. '-mclear-hwcap'
  20584. '-mclear-hwcap' tells the compiler to remove the hardware
  20585. capabilities generated by the Solaris assembler. This is only
  20586. necessary when object files use ISA extensions not supported by the
  20587. current machine, but check at runtime whether or not to use them.
  20588. '-mimpure-text'
  20589. '-mimpure-text', used in addition to '-shared', tells the compiler
  20590. to not pass '-z text' to the linker when linking a shared object.
  20591. Using this option, you can link position-dependent code into a
  20592. shared object.
  20593. '-mimpure-text' suppresses the "relocations remain against
  20594. allocatable but non-writable sections" linker error message.
  20595. However, the necessary relocations trigger copy-on-write, and the
  20596. shared object is not actually shared across processes. Instead of
  20597. using '-mimpure-text', you should compile all source code with
  20598. '-fpic' or '-fPIC'.
  20599. These switches are supported in addition to the above on Solaris 2:
  20600. '-pthreads'
  20601. This is a synonym for '-pthread'.
  20602. 
  20603. File: gcc.info, Node: SPARC Options, Next: System V Options, Prev: Solaris 2 Options, Up: Submodel Options
  20604. 3.19.50 SPARC Options
  20605. ---------------------
  20606. These '-m' options are supported on the SPARC:
  20607. '-mno-app-regs'
  20608. '-mapp-regs'
  20609. Specify '-mapp-regs' to generate output using the global registers
  20610. 2 through 4, which the SPARC SVR4 ABI reserves for applications.
  20611. Like the global register 1, each global register 2 through 4 is
  20612. then treated as an allocable register that is clobbered by function
  20613. calls. This is the default.
  20614. To be fully SVR4 ABI-compliant at the cost of some performance
  20615. loss, specify '-mno-app-regs'. You should compile libraries and
  20616. system software with this option.
  20617. '-mflat'
  20618. '-mno-flat'
  20619. With '-mflat', the compiler does not generate save/restore
  20620. instructions and uses a "flat" or single register window model.
  20621. This model is compatible with the regular register window model.
  20622. The local registers and the input registers (0-5) are still treated
  20623. as "call-saved" registers and are saved on the stack as needed.
  20624. With '-mno-flat' (the default), the compiler generates save/restore
  20625. instructions (except for leaf functions). This is the normal
  20626. operating mode.
  20627. '-mfpu'
  20628. '-mhard-float'
  20629. Generate output containing floating-point instructions. This is
  20630. the default.
  20631. '-mno-fpu'
  20632. '-msoft-float'
  20633. Generate output containing library calls for floating point.
  20634. *Warning:* the requisite libraries are not available for all SPARC
  20635. targets. Normally the facilities of the machine's usual C compiler
  20636. are used, but this cannot be done directly in cross-compilation.
  20637. You must make your own arrangements to provide suitable library
  20638. functions for cross-compilation. The embedded targets
  20639. 'sparc-*-aout' and 'sparclite-*-*' do provide software
  20640. floating-point support.
  20641. '-msoft-float' changes the calling convention in the output file;
  20642. therefore, it is only useful if you compile _all_ of a program with
  20643. this option. In particular, you need to compile 'libgcc.a', the
  20644. library that comes with GCC, with '-msoft-float' in order for this
  20645. to work.
  20646. '-mhard-quad-float'
  20647. Generate output containing quad-word (long double) floating-point
  20648. instructions.
  20649. '-msoft-quad-float'
  20650. Generate output containing library calls for quad-word (long
  20651. double) floating-point instructions. The functions called are
  20652. those specified in the SPARC ABI. This is the default.
  20653. As of this writing, there are no SPARC implementations that have
  20654. hardware support for the quad-word floating-point instructions.
  20655. They all invoke a trap handler for one of these instructions, and
  20656. then the trap handler emulates the effect of the instruction.
  20657. Because of the trap handler overhead, this is much slower than
  20658. calling the ABI library routines. Thus the '-msoft-quad-float'
  20659. option is the default.
  20660. '-mno-unaligned-doubles'
  20661. '-munaligned-doubles'
  20662. Assume that doubles have 8-byte alignment. This is the default.
  20663. With '-munaligned-doubles', GCC assumes that doubles have 8-byte
  20664. alignment only if they are contained in another type, or if they
  20665. have an absolute address. Otherwise, it assumes they have 4-byte
  20666. alignment. Specifying this option avoids some rare compatibility
  20667. problems with code generated by other compilers. It is not the
  20668. default because it results in a performance loss, especially for
  20669. floating-point code.
  20670. '-muser-mode'
  20671. '-mno-user-mode'
  20672. Do not generate code that can only run in supervisor mode. This is
  20673. relevant only for the 'casa' instruction emitted for the LEON3
  20674. processor. This is the default.
  20675. '-mfaster-structs'
  20676. '-mno-faster-structs'
  20677. With '-mfaster-structs', the compiler assumes that structures
  20678. should have 8-byte alignment. This enables the use of pairs of
  20679. 'ldd' and 'std' instructions for copies in structure assignment, in
  20680. place of twice as many 'ld' and 'st' pairs. However, the use of
  20681. this changed alignment directly violates the SPARC ABI. Thus, it's
  20682. intended only for use on targets where the developer acknowledges
  20683. that their resulting code is not directly in line with the rules of
  20684. the ABI.
  20685. '-mstd-struct-return'
  20686. '-mno-std-struct-return'
  20687. With '-mstd-struct-return', the compiler generates checking code in
  20688. functions returning structures or unions to detect size mismatches
  20689. between the two sides of function calls, as per the 32-bit ABI.
  20690. The default is '-mno-std-struct-return'. This option has no effect
  20691. in 64-bit mode.
  20692. '-mlra'
  20693. '-mno-lra'
  20694. Enable Local Register Allocation. This is the default for SPARC
  20695. since GCC 7 so '-mno-lra' needs to be passed to get old Reload.
  20696. '-mcpu=CPU_TYPE'
  20697. Set the instruction set, register set, and instruction scheduling
  20698. parameters for machine type CPU_TYPE. Supported values for
  20699. CPU_TYPE are 'v7', 'cypress', 'v8', 'supersparc', 'hypersparc',
  20700. 'leon', 'leon3', 'leon3v7', 'sparclite', 'f930', 'f934',
  20701. 'sparclite86x', 'sparclet', 'tsc701', 'v9', 'ultrasparc',
  20702. 'ultrasparc3', 'niagara', 'niagara2', 'niagara3', 'niagara4',
  20703. 'niagara7' and 'm8'.
  20704. Native Solaris and GNU/Linux toolchains also support the value
  20705. 'native', which selects the best architecture option for the host
  20706. processor. '-mcpu=native' has no effect if GCC does not recognize
  20707. the processor.
  20708. Default instruction scheduling parameters are used for values that
  20709. select an architecture and not an implementation. These are 'v7',
  20710. 'v8', 'sparclite', 'sparclet', 'v9'.
  20711. Here is a list of each supported architecture and their supported
  20712. implementations.
  20713. v7
  20714. cypress, leon3v7
  20715. v8
  20716. supersparc, hypersparc, leon, leon3
  20717. sparclite
  20718. f930, f934, sparclite86x
  20719. sparclet
  20720. tsc701
  20721. v9
  20722. ultrasparc, ultrasparc3, niagara, niagara2, niagara3,
  20723. niagara4, niagara7, m8
  20724. By default (unless configured otherwise), GCC generates code for
  20725. the V7 variant of the SPARC architecture. With '-mcpu=cypress',
  20726. the compiler additionally optimizes it for the Cypress CY7C602
  20727. chip, as used in the SPARCStation/SPARCServer 3xx series. This is
  20728. also appropriate for the older SPARCStation 1, 2, IPX etc.
  20729. With '-mcpu=v8', GCC generates code for the V8 variant of the SPARC
  20730. architecture. The only difference from V7 code is that the
  20731. compiler emits the integer multiply and integer divide instructions
  20732. which exist in SPARC-V8 but not in SPARC-V7. With
  20733. '-mcpu=supersparc', the compiler additionally optimizes it for the
  20734. SuperSPARC chip, as used in the SPARCStation 10, 1000 and 2000
  20735. series.
  20736. With '-mcpu=sparclite', GCC generates code for the SPARClite
  20737. variant of the SPARC architecture. This adds the integer multiply,
  20738. integer divide step and scan ('ffs') instructions which exist in
  20739. SPARClite but not in SPARC-V7. With '-mcpu=f930', the compiler
  20740. additionally optimizes it for the Fujitsu MB86930 chip, which is
  20741. the original SPARClite, with no FPU. With '-mcpu=f934', the
  20742. compiler additionally optimizes it for the Fujitsu MB86934 chip,
  20743. which is the more recent SPARClite with FPU.
  20744. With '-mcpu=sparclet', GCC generates code for the SPARClet variant
  20745. of the SPARC architecture. This adds the integer multiply,
  20746. multiply/accumulate, integer divide step and scan ('ffs')
  20747. instructions which exist in SPARClet but not in SPARC-V7. With
  20748. '-mcpu=tsc701', the compiler additionally optimizes it for the
  20749. TEMIC SPARClet chip.
  20750. With '-mcpu=v9', GCC generates code for the V9 variant of the SPARC
  20751. architecture. This adds 64-bit integer and floating-point move
  20752. instructions, 3 additional floating-point condition code registers
  20753. and conditional move instructions. With '-mcpu=ultrasparc', the
  20754. compiler additionally optimizes it for the Sun UltraSPARC I/II/IIi
  20755. chips. With '-mcpu=ultrasparc3', the compiler additionally
  20756. optimizes it for the Sun UltraSPARC III/III+/IIIi/IIIi+/IV/IV+
  20757. chips. With '-mcpu=niagara', the compiler additionally optimizes
  20758. it for Sun UltraSPARC T1 chips. With '-mcpu=niagara2', the
  20759. compiler additionally optimizes it for Sun UltraSPARC T2 chips.
  20760. With '-mcpu=niagara3', the compiler additionally optimizes it for
  20761. Sun UltraSPARC T3 chips. With '-mcpu=niagara4', the compiler
  20762. additionally optimizes it for Sun UltraSPARC T4 chips. With
  20763. '-mcpu=niagara7', the compiler additionally optimizes it for Oracle
  20764. SPARC M7 chips. With '-mcpu=m8', the compiler additionally
  20765. optimizes it for Oracle M8 chips.
  20766. '-mtune=CPU_TYPE'
  20767. Set the instruction scheduling parameters for machine type
  20768. CPU_TYPE, but do not set the instruction set or register set that
  20769. the option '-mcpu=CPU_TYPE' does.
  20770. The same values for '-mcpu=CPU_TYPE' can be used for
  20771. '-mtune=CPU_TYPE', but the only useful values are those that select
  20772. a particular CPU implementation. Those are 'cypress',
  20773. 'supersparc', 'hypersparc', 'leon', 'leon3', 'leon3v7', 'f930',
  20774. 'f934', 'sparclite86x', 'tsc701', 'ultrasparc', 'ultrasparc3',
  20775. 'niagara', 'niagara2', 'niagara3', 'niagara4', 'niagara7' and 'm8'.
  20776. With native Solaris and GNU/Linux toolchains, 'native' can also be
  20777. used.
  20778. '-mv8plus'
  20779. '-mno-v8plus'
  20780. With '-mv8plus', GCC generates code for the SPARC-V8+ ABI. The
  20781. difference from the V8 ABI is that the global and out registers are
  20782. considered 64 bits wide. This is enabled by default on Solaris in
  20783. 32-bit mode for all SPARC-V9 processors.
  20784. '-mvis'
  20785. '-mno-vis'
  20786. With '-mvis', GCC generates code that takes advantage of the
  20787. UltraSPARC Visual Instruction Set extensions. The default is
  20788. '-mno-vis'.
  20789. '-mvis2'
  20790. '-mno-vis2'
  20791. With '-mvis2', GCC generates code that takes advantage of version
  20792. 2.0 of the UltraSPARC Visual Instruction Set extensions. The
  20793. default is '-mvis2' when targeting a cpu that supports such
  20794. instructions, such as UltraSPARC-III and later. Setting '-mvis2'
  20795. also sets '-mvis'.
  20796. '-mvis3'
  20797. '-mno-vis3'
  20798. With '-mvis3', GCC generates code that takes advantage of version
  20799. 3.0 of the UltraSPARC Visual Instruction Set extensions. The
  20800. default is '-mvis3' when targeting a cpu that supports such
  20801. instructions, such as niagara-3 and later. Setting '-mvis3' also
  20802. sets '-mvis2' and '-mvis'.
  20803. '-mvis4'
  20804. '-mno-vis4'
  20805. With '-mvis4', GCC generates code that takes advantage of version
  20806. 4.0 of the UltraSPARC Visual Instruction Set extensions. The
  20807. default is '-mvis4' when targeting a cpu that supports such
  20808. instructions, such as niagara-7 and later. Setting '-mvis4' also
  20809. sets '-mvis3', '-mvis2' and '-mvis'.
  20810. '-mvis4b'
  20811. '-mno-vis4b'
  20812. With '-mvis4b', GCC generates code that takes advantage of version
  20813. 4.0 of the UltraSPARC Visual Instruction Set extensions, plus the
  20814. additional VIS instructions introduced in the Oracle SPARC
  20815. Architecture 2017. The default is '-mvis4b' when targeting a cpu
  20816. that supports such instructions, such as m8 and later. Setting
  20817. '-mvis4b' also sets '-mvis4', '-mvis3', '-mvis2' and '-mvis'.
  20818. '-mcbcond'
  20819. '-mno-cbcond'
  20820. With '-mcbcond', GCC generates code that takes advantage of the
  20821. UltraSPARC Compare-and-Branch-on-Condition instructions. The
  20822. default is '-mcbcond' when targeting a CPU that supports such
  20823. instructions, such as Niagara-4 and later.
  20824. '-mfmaf'
  20825. '-mno-fmaf'
  20826. With '-mfmaf', GCC generates code that takes advantage of the
  20827. UltraSPARC Fused Multiply-Add Floating-point instructions. The
  20828. default is '-mfmaf' when targeting a CPU that supports such
  20829. instructions, such as Niagara-3 and later.
  20830. '-mfsmuld'
  20831. '-mno-fsmuld'
  20832. With '-mfsmuld', GCC generates code that takes advantage of the
  20833. Floating-point Multiply Single to Double (FsMULd) instruction. The
  20834. default is '-mfsmuld' when targeting a CPU supporting the
  20835. architecture versions V8 or V9 with FPU except '-mcpu=leon'.
  20836. '-mpopc'
  20837. '-mno-popc'
  20838. With '-mpopc', GCC generates code that takes advantage of the
  20839. UltraSPARC Population Count instruction. The default is '-mpopc'
  20840. when targeting a CPU that supports such an instruction, such as
  20841. Niagara-2 and later.
  20842. '-msubxc'
  20843. '-mno-subxc'
  20844. With '-msubxc', GCC generates code that takes advantage of the
  20845. UltraSPARC Subtract-Extended-with-Carry instruction. The default
  20846. is '-msubxc' when targeting a CPU that supports such an
  20847. instruction, such as Niagara-7 and later.
  20848. '-mfix-at697f'
  20849. Enable the documented workaround for the single erratum of the
  20850. Atmel AT697F processor (which corresponds to erratum #13 of the
  20851. AT697E processor).
  20852. '-mfix-ut699'
  20853. Enable the documented workarounds for the floating-point errata and
  20854. the data cache nullify errata of the UT699 processor.
  20855. '-mfix-ut700'
  20856. Enable the documented workaround for the back-to-back store errata
  20857. of the UT699E/UT700 processor.
  20858. '-mfix-gr712rc'
  20859. Enable the documented workaround for the back-to-back store errata
  20860. of the GR712RC processor.
  20861. These '-m' options are supported in addition to the above on SPARC-V9
  20862. processors in 64-bit environments:
  20863. '-m32'
  20864. '-m64'
  20865. Generate code for a 32-bit or 64-bit environment. The 32-bit
  20866. environment sets int, long and pointer to 32 bits. The 64-bit
  20867. environment sets int to 32 bits and long and pointer to 64 bits.
  20868. '-mcmodel=WHICH'
  20869. Set the code model to one of
  20870. 'medlow'
  20871. The Medium/Low code model: 64-bit addresses, programs must be
  20872. linked in the low 32 bits of memory. Programs can be
  20873. statically or dynamically linked.
  20874. 'medmid'
  20875. The Medium/Middle code model: 64-bit addresses, programs must
  20876. be linked in the low 44 bits of memory, the text and data
  20877. segments must be less than 2GB in size and the data segment
  20878. must be located within 2GB of the text segment.
  20879. 'medany'
  20880. The Medium/Anywhere code model: 64-bit addresses, programs may
  20881. be linked anywhere in memory, the text and data segments must
  20882. be less than 2GB in size and the data segment must be located
  20883. within 2GB of the text segment.
  20884. 'embmedany'
  20885. The Medium/Anywhere code model for embedded systems: 64-bit
  20886. addresses, the text and data segments must be less than 2GB in
  20887. size, both starting anywhere in memory (determined at link
  20888. time). The global register %g4 points to the base of the data
  20889. segment. Programs are statically linked and PIC is not
  20890. supported.
  20891. '-mmemory-model=MEM-MODEL'
  20892. Set the memory model in force on the processor to one of
  20893. 'default'
  20894. The default memory model for the processor and operating
  20895. system.
  20896. 'rmo'
  20897. Relaxed Memory Order
  20898. 'pso'
  20899. Partial Store Order
  20900. 'tso'
  20901. Total Store Order
  20902. 'sc'
  20903. Sequential Consistency
  20904. These memory models are formally defined in Appendix D of the
  20905. SPARC-V9 architecture manual, as set in the processor's 'PSTATE.MM'
  20906. field.
  20907. '-mstack-bias'
  20908. '-mno-stack-bias'
  20909. With '-mstack-bias', GCC assumes that the stack pointer, and frame
  20910. pointer if present, are offset by -2047 which must be added back
  20911. when making stack frame references. This is the default in 64-bit
  20912. mode. Otherwise, assume no such offset is present.
  20913. 
  20914. File: gcc.info, Node: System V Options, Next: TILE-Gx Options, Prev: SPARC Options, Up: Submodel Options
  20915. 3.19.51 Options for System V
  20916. ----------------------------
  20917. These additional options are available on System V Release 4 for
  20918. compatibility with other compilers on those systems:
  20919. '-G'
  20920. Create a shared object. It is recommended that '-symbolic' or
  20921. '-shared' be used instead.
  20922. '-Qy'
  20923. Identify the versions of each tool used by the compiler, in a
  20924. '.ident' assembler directive in the output.
  20925. '-Qn'
  20926. Refrain from adding '.ident' directives to the output file (this is
  20927. the default).
  20928. '-YP,DIRS'
  20929. Search the directories DIRS, and no others, for libraries specified
  20930. with '-l'.
  20931. '-Ym,DIR'
  20932. Look in the directory DIR to find the M4 preprocessor. The
  20933. assembler uses this option.
  20934. 
  20935. File: gcc.info, Node: TILE-Gx Options, Next: TILEPro Options, Prev: System V Options, Up: Submodel Options
  20936. 3.19.52 TILE-Gx Options
  20937. -----------------------
  20938. These '-m' options are supported on the TILE-Gx:
  20939. '-mcmodel=small'
  20940. Generate code for the small model. The distance for direct calls
  20941. is limited to 500M in either direction. PC-relative addresses are
  20942. 32 bits. Absolute addresses support the full address range.
  20943. '-mcmodel=large'
  20944. Generate code for the large model. There is no limitation on call
  20945. distance, pc-relative addresses, or absolute addresses.
  20946. '-mcpu=NAME'
  20947. Selects the type of CPU to be targeted. Currently the only
  20948. supported type is 'tilegx'.
  20949. '-m32'
  20950. '-m64'
  20951. Generate code for a 32-bit or 64-bit environment. The 32-bit
  20952. environment sets int, long, and pointer to 32 bits. The 64-bit
  20953. environment sets int to 32 bits and long and pointer to 64 bits.
  20954. '-mbig-endian'
  20955. '-mlittle-endian'
  20956. Generate code in big/little endian mode, respectively.
  20957. 
  20958. File: gcc.info, Node: TILEPro Options, Next: V850 Options, Prev: TILE-Gx Options, Up: Submodel Options
  20959. 3.19.53 TILEPro Options
  20960. -----------------------
  20961. These '-m' options are supported on the TILEPro:
  20962. '-mcpu=NAME'
  20963. Selects the type of CPU to be targeted. Currently the only
  20964. supported type is 'tilepro'.
  20965. '-m32'
  20966. Generate code for a 32-bit environment, which sets int, long, and
  20967. pointer to 32 bits. This is the only supported behavior so the
  20968. flag is essentially ignored.
  20969. 
  20970. File: gcc.info, Node: V850 Options, Next: VAX Options, Prev: TILEPro Options, Up: Submodel Options
  20971. 3.19.54 V850 Options
  20972. --------------------
  20973. These '-m' options are defined for V850 implementations:
  20974. '-mlong-calls'
  20975. '-mno-long-calls'
  20976. Treat all calls as being far away (near). If calls are assumed to
  20977. be far away, the compiler always loads the function's address into
  20978. a register, and calls indirect through the pointer.
  20979. '-mno-ep'
  20980. '-mep'
  20981. Do not optimize (do optimize) basic blocks that use the same index
  20982. pointer 4 or more times to copy pointer into the 'ep' register, and
  20983. use the shorter 'sld' and 'sst' instructions. The '-mep' option is
  20984. on by default if you optimize.
  20985. '-mno-prolog-function'
  20986. '-mprolog-function'
  20987. Do not use (do use) external functions to save and restore
  20988. registers at the prologue and epilogue of a function. The external
  20989. functions are slower, but use less code space if more than one
  20990. function saves the same number of registers. The
  20991. '-mprolog-function' option is on by default if you optimize.
  20992. '-mspace'
  20993. Try to make the code as small as possible. At present, this just
  20994. turns on the '-mep' and '-mprolog-function' options.
  20995. '-mtda=N'
  20996. Put static or global variables whose size is N bytes or less into
  20997. the tiny data area that register 'ep' points to. The tiny data
  20998. area can hold up to 256 bytes in total (128 bytes for byte
  20999. references).
  21000. '-msda=N'
  21001. Put static or global variables whose size is N bytes or less into
  21002. the small data area that register 'gp' points to. The small data
  21003. area can hold up to 64 kilobytes.
  21004. '-mzda=N'
  21005. Put static or global variables whose size is N bytes or less into
  21006. the first 32 kilobytes of memory.
  21007. '-mv850'
  21008. Specify that the target processor is the V850.
  21009. '-mv850e3v5'
  21010. Specify that the target processor is the V850E3V5. The
  21011. preprocessor constant '__v850e3v5__' is defined if this option is
  21012. used.
  21013. '-mv850e2v4'
  21014. Specify that the target processor is the V850E3V5. This is an
  21015. alias for the '-mv850e3v5' option.
  21016. '-mv850e2v3'
  21017. Specify that the target processor is the V850E2V3. The
  21018. preprocessor constant '__v850e2v3__' is defined if this option is
  21019. used.
  21020. '-mv850e2'
  21021. Specify that the target processor is the V850E2. The preprocessor
  21022. constant '__v850e2__' is defined if this option is used.
  21023. '-mv850e1'
  21024. Specify that the target processor is the V850E1. The preprocessor
  21025. constants '__v850e1__' and '__v850e__' are defined if this option
  21026. is used.
  21027. '-mv850es'
  21028. Specify that the target processor is the V850ES. This is an alias
  21029. for the '-mv850e1' option.
  21030. '-mv850e'
  21031. Specify that the target processor is the V850E. The preprocessor
  21032. constant '__v850e__' is defined if this option is used.
  21033. If neither '-mv850' nor '-mv850e' nor '-mv850e1' nor '-mv850e2' nor
  21034. '-mv850e2v3' nor '-mv850e3v5' are defined then a default target
  21035. processor is chosen and the relevant '__v850*__' preprocessor
  21036. constant is defined.
  21037. The preprocessor constants '__v850' and '__v851__' are always
  21038. defined, regardless of which processor variant is the target.
  21039. '-mdisable-callt'
  21040. '-mno-disable-callt'
  21041. This option suppresses generation of the 'CALLT' instruction for
  21042. the v850e, v850e1, v850e2, v850e2v3 and v850e3v5 flavors of the
  21043. v850 architecture.
  21044. This option is enabled by default when the RH850 ABI is in use (see
  21045. '-mrh850-abi'), and disabled by default when the GCC ABI is in use.
  21046. If 'CALLT' instructions are being generated then the C preprocessor
  21047. symbol '__V850_CALLT__' is defined.
  21048. '-mrelax'
  21049. '-mno-relax'
  21050. Pass on (or do not pass on) the '-mrelax' command-line option to
  21051. the assembler.
  21052. '-mlong-jumps'
  21053. '-mno-long-jumps'
  21054. Disable (or re-enable) the generation of PC-relative jump
  21055. instructions.
  21056. '-msoft-float'
  21057. '-mhard-float'
  21058. Disable (or re-enable) the generation of hardware floating point
  21059. instructions. This option is only significant when the target
  21060. architecture is 'V850E2V3' or higher. If hardware floating point
  21061. instructions are being generated then the C preprocessor symbol
  21062. '__FPU_OK__' is defined, otherwise the symbol '__NO_FPU__' is
  21063. defined.
  21064. '-mloop'
  21065. Enables the use of the e3v5 LOOP instruction. The use of this
  21066. instruction is not enabled by default when the e3v5 architecture is
  21067. selected because its use is still experimental.
  21068. '-mrh850-abi'
  21069. '-mghs'
  21070. Enables support for the RH850 version of the V850 ABI. This is the
  21071. default. With this version of the ABI the following rules apply:
  21072. * Integer sized structures and unions are returned via a memory
  21073. pointer rather than a register.
  21074. * Large structures and unions (more than 8 bytes in size) are
  21075. passed by value.
  21076. * Functions are aligned to 16-bit boundaries.
  21077. * The '-m8byte-align' command-line option is supported.
  21078. * The '-mdisable-callt' command-line option is enabled by
  21079. default. The '-mno-disable-callt' command-line option is not
  21080. supported.
  21081. When this version of the ABI is enabled the C preprocessor symbol
  21082. '__V850_RH850_ABI__' is defined.
  21083. '-mgcc-abi'
  21084. Enables support for the old GCC version of the V850 ABI. With this
  21085. version of the ABI the following rules apply:
  21086. * Integer sized structures and unions are returned in register
  21087. 'r10'.
  21088. * Large structures and unions (more than 8 bytes in size) are
  21089. passed by reference.
  21090. * Functions are aligned to 32-bit boundaries, unless optimizing
  21091. for size.
  21092. * The '-m8byte-align' command-line option is not supported.
  21093. * The '-mdisable-callt' command-line option is supported but not
  21094. enabled by default.
  21095. When this version of the ABI is enabled the C preprocessor symbol
  21096. '__V850_GCC_ABI__' is defined.
  21097. '-m8byte-align'
  21098. '-mno-8byte-align'
  21099. Enables support for 'double' and 'long long' types to be aligned on
  21100. 8-byte boundaries. The default is to restrict the alignment of all
  21101. objects to at most 4-bytes. When '-m8byte-align' is in effect the
  21102. C preprocessor symbol '__V850_8BYTE_ALIGN__' is defined.
  21103. '-mbig-switch'
  21104. Generate code suitable for big switch tables. Use this option only
  21105. if the assembler/linker complain about out of range branches within
  21106. a switch table.
  21107. '-mapp-regs'
  21108. This option causes r2 and r5 to be used in the code generated by
  21109. the compiler. This setting is the default.
  21110. '-mno-app-regs'
  21111. This option causes r2 and r5 to be treated as fixed registers.
  21112. 
  21113. File: gcc.info, Node: VAX Options, Next: Visium Options, Prev: V850 Options, Up: Submodel Options
  21114. 3.19.55 VAX Options
  21115. -------------------
  21116. These '-m' options are defined for the VAX:
  21117. '-munix'
  21118. Do not output certain jump instructions ('aobleq' and so on) that
  21119. the Unix assembler for the VAX cannot handle across long ranges.
  21120. '-mgnu'
  21121. Do output those jump instructions, on the assumption that the GNU
  21122. assembler is being used.
  21123. '-mg'
  21124. Output code for G-format floating-point numbers instead of
  21125. D-format.
  21126. 
  21127. File: gcc.info, Node: Visium Options, Next: VMS Options, Prev: VAX Options, Up: Submodel Options
  21128. 3.19.56 Visium Options
  21129. ----------------------
  21130. '-mdebug'
  21131. A program which performs file I/O and is destined to run on an MCM
  21132. target should be linked with this option. It causes the libraries
  21133. libc.a and libdebug.a to be linked. The program should be run on
  21134. the target under the control of the GDB remote debugging stub.
  21135. '-msim'
  21136. A program which performs file I/O and is destined to run on the
  21137. simulator should be linked with option. This causes libraries
  21138. libc.a and libsim.a to be linked.
  21139. '-mfpu'
  21140. '-mhard-float'
  21141. Generate code containing floating-point instructions. This is the
  21142. default.
  21143. '-mno-fpu'
  21144. '-msoft-float'
  21145. Generate code containing library calls for floating-point.
  21146. '-msoft-float' changes the calling convention in the output file;
  21147. therefore, it is only useful if you compile _all_ of a program with
  21148. this option. In particular, you need to compile 'libgcc.a', the
  21149. library that comes with GCC, with '-msoft-float' in order for this
  21150. to work.
  21151. '-mcpu=CPU_TYPE'
  21152. Set the instruction set, register set, and instruction scheduling
  21153. parameters for machine type CPU_TYPE. Supported values for
  21154. CPU_TYPE are 'mcm', 'gr5' and 'gr6'.
  21155. 'mcm' is a synonym of 'gr5' present for backward compatibility.
  21156. By default (unless configured otherwise), GCC generates code for
  21157. the GR5 variant of the Visium architecture.
  21158. With '-mcpu=gr6', GCC generates code for the GR6 variant of the
  21159. Visium architecture. The only difference from GR5 code is that the
  21160. compiler will generate block move instructions.
  21161. '-mtune=CPU_TYPE'
  21162. Set the instruction scheduling parameters for machine type
  21163. CPU_TYPE, but do not set the instruction set or register set that
  21164. the option '-mcpu=CPU_TYPE' would.
  21165. '-msv-mode'
  21166. Generate code for the supervisor mode, where there are no
  21167. restrictions on the access to general registers. This is the
  21168. default.
  21169. '-muser-mode'
  21170. Generate code for the user mode, where the access to some general
  21171. registers is forbidden: on the GR5, registers r24 to r31 cannot be
  21172. accessed in this mode; on the GR6, only registers r29 to r31 are
  21173. affected.
  21174. 
  21175. File: gcc.info, Node: VMS Options, Next: VxWorks Options, Prev: Visium Options, Up: Submodel Options
  21176. 3.19.57 VMS Options
  21177. -------------------
  21178. These '-m' options are defined for the VMS implementations:
  21179. '-mvms-return-codes'
  21180. Return VMS condition codes from 'main'. The default is to return
  21181. POSIX-style condition (e.g. error) codes.
  21182. '-mdebug-main=PREFIX'
  21183. Flag the first routine whose name starts with PREFIX as the main
  21184. routine for the debugger.
  21185. '-mmalloc64'
  21186. Default to 64-bit memory allocation routines.
  21187. '-mpointer-size=SIZE'
  21188. Set the default size of pointers. Possible options for SIZE are
  21189. '32' or 'short' for 32 bit pointers, '64' or 'long' for 64 bit
  21190. pointers, and 'no' for supporting only 32 bit pointers. The later
  21191. option disables 'pragma pointer_size'.
  21192. 
  21193. File: gcc.info, Node: VxWorks Options, Next: x86 Options, Prev: VMS Options, Up: Submodel Options
  21194. 3.19.58 VxWorks Options
  21195. -----------------------
  21196. The options in this section are defined for all VxWorks targets.
  21197. Options specific to the target hardware are listed with the other
  21198. options for that target.
  21199. '-mrtp'
  21200. GCC can generate code for both VxWorks kernels and real time
  21201. processes (RTPs). This option switches from the former to the
  21202. latter. It also defines the preprocessor macro '__RTP__'.
  21203. '-non-static'
  21204. Link an RTP executable against shared libraries rather than static
  21205. libraries. The options '-static' and '-shared' can also be used
  21206. for RTPs (*note Link Options::); '-static' is the default.
  21207. '-Bstatic'
  21208. '-Bdynamic'
  21209. These options are passed down to the linker. They are defined for
  21210. compatibility with Diab.
  21211. '-Xbind-lazy'
  21212. Enable lazy binding of function calls. This option is equivalent
  21213. to '-Wl,-z,now' and is defined for compatibility with Diab.
  21214. '-Xbind-now'
  21215. Disable lazy binding of function calls. This option is the default
  21216. and is defined for compatibility with Diab.
  21217. 
  21218. File: gcc.info, Node: x86 Options, Next: x86 Windows Options, Prev: VxWorks Options, Up: Submodel Options
  21219. 3.19.59 x86 Options
  21220. -------------------
  21221. These '-m' options are defined for the x86 family of computers.
  21222. '-march=CPU-TYPE'
  21223. Generate instructions for the machine type CPU-TYPE. In contrast
  21224. to '-mtune=CPU-TYPE', which merely tunes the generated code for the
  21225. specified CPU-TYPE, '-march=CPU-TYPE' allows GCC to generate code
  21226. that may not run at all on processors other than the one indicated.
  21227. Specifying '-march=CPU-TYPE' implies '-mtune=CPU-TYPE'.
  21228. The choices for CPU-TYPE are:
  21229. 'native'
  21230. This selects the CPU to generate code for at compilation time
  21231. by determining the processor type of the compiling machine.
  21232. Using '-march=native' enables all instruction subsets
  21233. supported by the local machine (hence the result might not run
  21234. on different machines). Using '-mtune=native' produces code
  21235. optimized for the local machine under the constraints of the
  21236. selected instruction set.
  21237. 'x86-64'
  21238. A generic CPU with 64-bit extensions.
  21239. 'i386'
  21240. Original Intel i386 CPU.
  21241. 'i486'
  21242. Intel i486 CPU. (No scheduling is implemented for this chip.)
  21243. 'i586'
  21244. 'pentium'
  21245. Intel Pentium CPU with no MMX support.
  21246. 'lakemont'
  21247. Intel Lakemont MCU, based on Intel Pentium CPU.
  21248. 'pentium-mmx'
  21249. Intel Pentium MMX CPU, based on Pentium core with MMX
  21250. instruction set support.
  21251. 'pentiumpro'
  21252. Intel Pentium Pro CPU.
  21253. 'i686'
  21254. When used with '-march', the Pentium Pro instruction set is
  21255. used, so the code runs on all i686 family chips. When used
  21256. with '-mtune', it has the same meaning as 'generic'.
  21257. 'pentium2'
  21258. Intel Pentium II CPU, based on Pentium Pro core with MMX
  21259. instruction set support.
  21260. 'pentium3'
  21261. 'pentium3m'
  21262. Intel Pentium III CPU, based on Pentium Pro core with MMX and
  21263. SSE instruction set support.
  21264. 'pentium-m'
  21265. Intel Pentium M; low-power version of Intel Pentium III CPU
  21266. with MMX, SSE and SSE2 instruction set support. Used by
  21267. Centrino notebooks.
  21268. 'pentium4'
  21269. 'pentium4m'
  21270. Intel Pentium 4 CPU with MMX, SSE and SSE2 instruction set
  21271. support.
  21272. 'prescott'
  21273. Improved version of Intel Pentium 4 CPU with MMX, SSE, SSE2
  21274. and SSE3 instruction set support.
  21275. 'nocona'
  21276. Improved version of Intel Pentium 4 CPU with 64-bit
  21277. extensions, MMX, SSE, SSE2 and SSE3 instruction set support.
  21278. 'core2'
  21279. Intel Core 2 CPU with 64-bit extensions, MMX, SSE, SSE2, SSE3
  21280. and SSSE3 instruction set support.
  21281. 'nehalem'
  21282. Intel Nehalem CPU with 64-bit extensions, MMX, SSE, SSE2,
  21283. SSE3, SSSE3, SSE4.1, SSE4.2 and POPCNT instruction set
  21284. support.
  21285. 'westmere'
  21286. Intel Westmere CPU with 64-bit extensions, MMX, SSE, SSE2,
  21287. SSE3, SSSE3, SSE4.1, SSE4.2, POPCNT, AES and PCLMUL
  21288. instruction set support.
  21289. 'sandybridge'
  21290. Intel Sandy Bridge CPU with 64-bit extensions, MMX, SSE, SSE2,
  21291. SSE3, SSSE3, SSE4.1, SSE4.2, POPCNT, AVX, AES and PCLMUL
  21292. instruction set support.
  21293. 'ivybridge'
  21294. Intel Ivy Bridge CPU with 64-bit extensions, MMX, SSE, SSE2,
  21295. SSE3, SSSE3, SSE4.1, SSE4.2, POPCNT, AVX, AES, PCLMUL,
  21296. FSGSBASE, RDRND and F16C instruction set support.
  21297. 'haswell'
  21298. Intel Haswell CPU with 64-bit extensions, MOVBE, MMX, SSE,
  21299. SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, POPCNT, AVX, AVX2, AES,
  21300. PCLMUL, FSGSBASE, RDRND, FMA, BMI, BMI2 and F16C instruction
  21301. set support.
  21302. 'broadwell'
  21303. Intel Broadwell CPU with 64-bit extensions, MOVBE, MMX, SSE,
  21304. SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, POPCNT, AVX, AVX2, AES,
  21305. PCLMUL, FSGSBASE, RDRND, FMA, BMI, BMI2, F16C, RDSEED, ADCX
  21306. and PREFETCHW instruction set support.
  21307. 'skylake'
  21308. Intel Skylake CPU with 64-bit extensions, MOVBE, MMX, SSE,
  21309. SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, POPCNT, AVX, AVX2, AES,
  21310. PCLMUL, FSGSBASE, RDRND, FMA, BMI, BMI2, F16C, RDSEED, ADCX,
  21311. PREFETCHW, CLFLUSHOPT, XSAVEC and XSAVES instruction set
  21312. support.
  21313. 'bonnell'
  21314. Intel Bonnell CPU with 64-bit extensions, MOVBE, MMX, SSE,
  21315. SSE2, SSE3 and SSSE3 instruction set support.
  21316. 'silvermont'
  21317. Intel Silvermont CPU with 64-bit extensions, MOVBE, MMX, SSE,
  21318. SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, POPCNT, AES, PCLMUL and
  21319. RDRND instruction set support.
  21320. 'goldmont'
  21321. Intel Goldmont CPU with 64-bit extensions, MOVBE, MMX, SSE,
  21322. SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, POPCNT, AES, PCLMUL, RDRND,
  21323. XSAVE, XSAVEOPT and FSGSBASE instruction set support.
  21324. 'goldmont-plus'
  21325. Intel Goldmont Plus CPU with 64-bit extensions, MOVBE, MMX,
  21326. SSE, SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, POPCNT, AES, PCLMUL,
  21327. RDRND, XSAVE, XSAVEOPT, FSGSBASE, PTWRITE, RDPID, SGX and UMIP
  21328. instruction set support.
  21329. 'tremont'
  21330. Intel Tremont CPU with 64-bit extensions, MOVBE, MMX, SSE,
  21331. SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, POPCNT, AES, PCLMUL, RDRND,
  21332. XSAVE, XSAVEOPT, FSGSBASE, PTWRITE, RDPID, SGX, UMIP,
  21333. GFNI-SSE, CLWB and ENCLV instruction set support.
  21334. 'knl'
  21335. Intel Knight's Landing CPU with 64-bit extensions, MOVBE, MMX,
  21336. SSE, SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, POPCNT, AVX, AVX2,
  21337. AES, PCLMUL, FSGSBASE, RDRND, FMA, BMI, BMI2, F16C, RDSEED,
  21338. ADCX, PREFETCHW, AVX512F, AVX512PF, AVX512ER and AVX512CD
  21339. instruction set support.
  21340. 'knm'
  21341. Intel Knights Mill CPU with 64-bit extensions, MOVBE, MMX,
  21342. SSE, SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, POPCNT, AVX, AVX2,
  21343. AES, PCLMUL, FSGSBASE, RDRND, FMA, BMI, BMI2, F16C, RDSEED,
  21344. ADCX, PREFETCHW, AVX512F, AVX512PF, AVX512ER, AVX512CD,
  21345. AVX5124VNNIW, AVX5124FMAPS and AVX512VPOPCNTDQ instruction set
  21346. support.
  21347. 'skylake-avx512'
  21348. Intel Skylake Server CPU with 64-bit extensions, MOVBE, MMX,
  21349. SSE, SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, POPCNT, PKU, AVX,
  21350. AVX2, AES, PCLMUL, FSGSBASE, RDRND, FMA, BMI, BMI2, F16C,
  21351. RDSEED, ADCX, PREFETCHW, CLFLUSHOPT, XSAVEC, XSAVES, AVX512F,
  21352. CLWB, AVX512VL, AVX512BW, AVX512DQ and AVX512CD instruction
  21353. set support.
  21354. 'cannonlake'
  21355. Intel Cannonlake Server CPU with 64-bit extensions, MOVBE,
  21356. MMX, SSE, SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, POPCNT, PKU, AVX,
  21357. AVX2, AES, PCLMUL, FSGSBASE, RDRND, FMA, BMI, BMI2, F16C,
  21358. RDSEED, ADCX, PREFETCHW, CLFLUSHOPT, XSAVEC, XSAVES, AVX512F,
  21359. AVX512VL, AVX512BW, AVX512DQ, AVX512CD, AVX512VBMI,
  21360. AVX512IFMA, SHA and UMIP instruction set support.
  21361. 'icelake-client'
  21362. Intel Icelake Client CPU with 64-bit extensions, MOVBE, MMX,
  21363. SSE, SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, POPCNT, PKU, AVX,
  21364. AVX2, AES, PCLMUL, FSGSBASE, RDRND, FMA, BMI, BMI2, F16C,
  21365. RDSEED, ADCX, PREFETCHW, CLFLUSHOPT, XSAVEC, XSAVES, AVX512F,
  21366. AVX512VL, AVX512BW, AVX512DQ, AVX512CD, AVX512VBMI,
  21367. AVX512IFMA, SHA, CLWB, UMIP, RDPID, GFNI, AVX512VBMI2,
  21368. AVX512VPOPCNTDQ, AVX512BITALG, AVX512VNNI, VPCLMULQDQ, VAES
  21369. instruction set support.
  21370. 'icelake-server'
  21371. Intel Icelake Server CPU with 64-bit extensions, MOVBE, MMX,
  21372. SSE, SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, POPCNT, PKU, AVX,
  21373. AVX2, AES, PCLMUL, FSGSBASE, RDRND, FMA, BMI, BMI2, F16C,
  21374. RDSEED, ADCX, PREFETCHW, CLFLUSHOPT, XSAVEC, XSAVES, AVX512F,
  21375. AVX512VL, AVX512BW, AVX512DQ, AVX512CD, AVX512VBMI,
  21376. AVX512IFMA, SHA, CLWB, UMIP, RDPID, GFNI, AVX512VBMI2,
  21377. AVX512VPOPCNTDQ, AVX512BITALG, AVX512VNNI, VPCLMULQDQ, VAES,
  21378. PCONFIG and WBNOINVD instruction set support.
  21379. 'cascadelake'
  21380. Intel Cascadelake CPU with 64-bit extensions, MOVBE, MMX, SSE,
  21381. SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, POPCNT, PKU, AVX, AVX2,
  21382. AES, PCLMUL, FSGSBASE, RDRND, FMA, BMI, BMI2, F16C, RDSEED,
  21383. ADCX, PREFETCHW, CLFLUSHOPT, XSAVEC, XSAVES, AVX512F, CLWB,
  21384. AVX512VL, AVX512BW, AVX512DQ, AVX512CD and AVX512VNNI
  21385. instruction set support.
  21386. 'cooperlake'
  21387. Intel cooperlake CPU with 64-bit extensions, MOVBE, MMX, SSE,
  21388. SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, POPCNT, PKU, AVX, AVX2,
  21389. AES, PCLMUL, FSGSBASE, RDRND, FMA, BMI, BMI2, F16C, RDSEED,
  21390. ADCX, PREFETCHW, CLFLUSHOPT, XSAVEC, XSAVES, AVX512F, CLWB,
  21391. AVX512VL, AVX512BW, AVX512DQ, AVX512CD, AVX512VNNI and
  21392. AVX512BF16 instruction set support.
  21393. 'tigerlake'
  21394. Intel Tigerlake CPU with 64-bit extensions, MOVBE, MMX, SSE,
  21395. SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, POPCNT, PKU, AVX, AVX2,
  21396. AES, PCLMUL, FSGSBASE, RDRND, FMA, BMI, BMI2, F16C, RDSEED,
  21397. ADCX, PREFETCHW, CLFLUSHOPT, XSAVEC, XSAVES, AVX512F,
  21398. AVX512VL, AVX512BW, AVX512DQ, AVX512CD, AVX512VBMI,
  21399. AVX512IFMA, SHA, CLWB, UMIP, RDPID, GFNI, AVX512VBMI2,
  21400. AVX512VPOPCNTDQ, AVX512BITALG, AVX512VNNI, VPCLMULQDQ, VAES,
  21401. PCONFIG, WBNOINVD, MOVDIRI, MOVDIR64B and AVX512VP2INTERSECT
  21402. instruction set support.
  21403. 'k6'
  21404. AMD K6 CPU with MMX instruction set support.
  21405. 'k6-2'
  21406. 'k6-3'
  21407. Improved versions of AMD K6 CPU with MMX and 3DNow!
  21408. instruction set support.
  21409. 'athlon'
  21410. 'athlon-tbird'
  21411. AMD Athlon CPU with MMX, 3dNOW!, enhanced 3DNow! and SSE
  21412. prefetch instructions support.
  21413. 'athlon-4'
  21414. 'athlon-xp'
  21415. 'athlon-mp'
  21416. Improved AMD Athlon CPU with MMX, 3DNow!, enhanced 3DNow! and
  21417. full SSE instruction set support.
  21418. 'k8'
  21419. 'opteron'
  21420. 'athlon64'
  21421. 'athlon-fx'
  21422. Processors based on the AMD K8 core with x86-64 instruction
  21423. set support, including the AMD Opteron, Athlon 64, and Athlon
  21424. 64 FX processors. (This supersets MMX, SSE, SSE2, 3DNow!,
  21425. enhanced 3DNow! and 64-bit instruction set extensions.)
  21426. 'k8-sse3'
  21427. 'opteron-sse3'
  21428. 'athlon64-sse3'
  21429. Improved versions of AMD K8 cores with SSE3 instruction set
  21430. support.
  21431. 'amdfam10'
  21432. 'barcelona'
  21433. CPUs based on AMD Family 10h cores with x86-64 instruction set
  21434. support. (This supersets MMX, SSE, SSE2, SSE3, SSE4A, 3DNow!,
  21435. enhanced 3DNow!, ABM and 64-bit instruction set extensions.)
  21436. 'bdver1'
  21437. CPUs based on AMD Family 15h cores with x86-64 instruction set
  21438. support. (This supersets FMA4, AVX, XOP, LWP, AES, PCLMUL,
  21439. CX16, MMX, SSE, SSE2, SSE3, SSE4A, SSSE3, SSE4.1, SSE4.2, ABM
  21440. and 64-bit instruction set extensions.)
  21441. 'bdver2'
  21442. AMD Family 15h core based CPUs with x86-64 instruction set
  21443. support. (This supersets BMI, TBM, F16C, FMA, FMA4, AVX, XOP,
  21444. LWP, AES, PCLMUL, CX16, MMX, SSE, SSE2, SSE3, SSE4A, SSSE3,
  21445. SSE4.1, SSE4.2, ABM and 64-bit instruction set extensions.)
  21446. 'bdver3'
  21447. AMD Family 15h core based CPUs with x86-64 instruction set
  21448. support. (This supersets BMI, TBM, F16C, FMA, FMA4, FSGSBASE,
  21449. AVX, XOP, LWP, AES, PCLMUL, CX16, MMX, SSE, SSE2, SSE3, SSE4A,
  21450. SSSE3, SSE4.1, SSE4.2, ABM and 64-bit instruction set
  21451. extensions.)
  21452. 'bdver4'
  21453. AMD Family 15h core based CPUs with x86-64 instruction set
  21454. support. (This supersets BMI, BMI2, TBM, F16C, FMA, FMA4,
  21455. FSGSBASE, AVX, AVX2, XOP, LWP, AES, PCLMUL, CX16, MOVBE, MMX,
  21456. SSE, SSE2, SSE3, SSE4A, SSSE3, SSE4.1, SSE4.2, ABM and 64-bit
  21457. instruction set extensions.)
  21458. 'znver1'
  21459. AMD Family 17h core based CPUs with x86-64 instruction set
  21460. support. (This supersets BMI, BMI2, F16C, FMA, FSGSBASE, AVX,
  21461. AVX2, ADCX, RDSEED, MWAITX, SHA, CLZERO, AES, PCLMUL, CX16,
  21462. MOVBE, MMX, SSE, SSE2, SSE3, SSE4A, SSSE3, SSE4.1, SSE4.2,
  21463. ABM, XSAVEC, XSAVES, CLFLUSHOPT, POPCNT, and 64-bit
  21464. instruction set extensions.)
  21465. 'znver2'
  21466. AMD Family 17h core based CPUs with x86-64 instruction set
  21467. support. (This supersets BMI, BMI2, CLWB, F16C, FMA,
  21468. FSGSBASE, AVX, AVX2, ADCX, RDSEED, MWAITX, SHA, CLZERO, AES,
  21469. PCLMUL, CX16, MOVBE, MMX, SSE, SSE2, SSE3, SSE4A, SSSE3,
  21470. SSE4.1, SSE4.2, ABM, XSAVEC, XSAVES, CLFLUSHOPT, POPCNT,
  21471. RDPID, WBNOINVD, and 64-bit instruction set extensions.)
  21472. 'btver1'
  21473. CPUs based on AMD Family 14h cores with x86-64 instruction set
  21474. support. (This supersets MMX, SSE, SSE2, SSE3, SSSE3, SSE4A,
  21475. CX16, ABM and 64-bit instruction set extensions.)
  21476. 'btver2'
  21477. CPUs based on AMD Family 16h cores with x86-64 instruction set
  21478. support. This includes MOVBE, F16C, BMI, AVX, PCLMUL, AES,
  21479. SSE4.2, SSE4.1, CX16, ABM, SSE4A, SSSE3, SSE3, SSE2, SSE, MMX
  21480. and 64-bit instruction set extensions.
  21481. 'winchip-c6'
  21482. IDT WinChip C6 CPU, dealt in same way as i486 with additional
  21483. MMX instruction set support.
  21484. 'winchip2'
  21485. IDT WinChip 2 CPU, dealt in same way as i486 with additional
  21486. MMX and 3DNow! instruction set support.
  21487. 'c3'
  21488. VIA C3 CPU with MMX and 3DNow! instruction set support. (No
  21489. scheduling is implemented for this chip.)
  21490. 'c3-2'
  21491. VIA C3-2 (Nehemiah/C5XL) CPU with MMX and SSE instruction set
  21492. support. (No scheduling is implemented for this chip.)
  21493. 'c7'
  21494. VIA C7 (Esther) CPU with MMX, SSE, SSE2 and SSE3 instruction
  21495. set support. (No scheduling is implemented for this chip.)
  21496. 'samuel-2'
  21497. VIA Eden Samuel 2 CPU with MMX and 3DNow! instruction set
  21498. support. (No scheduling is implemented for this chip.)
  21499. 'nehemiah'
  21500. VIA Eden Nehemiah CPU with MMX and SSE instruction set
  21501. support. (No scheduling is implemented for this chip.)
  21502. 'esther'
  21503. VIA Eden Esther CPU with MMX, SSE, SSE2 and SSE3 instruction
  21504. set support. (No scheduling is implemented for this chip.)
  21505. 'eden-x2'
  21506. VIA Eden X2 CPU with x86-64, MMX, SSE, SSE2 and SSE3
  21507. instruction set support. (No scheduling is implemented for
  21508. this chip.)
  21509. 'eden-x4'
  21510. VIA Eden X4 CPU with x86-64, MMX, SSE, SSE2, SSE3, SSSE3,
  21511. SSE4.1, SSE4.2, AVX and AVX2 instruction set support. (No
  21512. scheduling is implemented for this chip.)
  21513. 'nano'
  21514. Generic VIA Nano CPU with x86-64, MMX, SSE, SSE2, SSE3 and
  21515. SSSE3 instruction set support. (No scheduling is implemented
  21516. for this chip.)
  21517. 'nano-1000'
  21518. VIA Nano 1xxx CPU with x86-64, MMX, SSE, SSE2, SSE3 and SSSE3
  21519. instruction set support. (No scheduling is implemented for
  21520. this chip.)
  21521. 'nano-2000'
  21522. VIA Nano 2xxx CPU with x86-64, MMX, SSE, SSE2, SSE3 and SSSE3
  21523. instruction set support. (No scheduling is implemented for
  21524. this chip.)
  21525. 'nano-3000'
  21526. VIA Nano 3xxx CPU with x86-64, MMX, SSE, SSE2, SSE3, SSSE3 and
  21527. SSE4.1 instruction set support. (No scheduling is implemented
  21528. for this chip.)
  21529. 'nano-x2'
  21530. VIA Nano Dual Core CPU with x86-64, MMX, SSE, SSE2, SSE3,
  21531. SSSE3 and SSE4.1 instruction set support. (No scheduling is
  21532. implemented for this chip.)
  21533. 'nano-x4'
  21534. VIA Nano Quad Core CPU with x86-64, MMX, SSE, SSE2, SSE3,
  21535. SSSE3 and SSE4.1 instruction set support. (No scheduling is
  21536. implemented for this chip.)
  21537. 'geode'
  21538. AMD Geode embedded processor with MMX and 3DNow! instruction
  21539. set support.
  21540. '-mtune=CPU-TYPE'
  21541. Tune to CPU-TYPE everything applicable about the generated code,
  21542. except for the ABI and the set of available instructions. While
  21543. picking a specific CPU-TYPE schedules things appropriately for that
  21544. particular chip, the compiler does not generate any code that
  21545. cannot run on the default machine type unless you use a
  21546. '-march=CPU-TYPE' option. For example, if GCC is configured for
  21547. i686-pc-linux-gnu then '-mtune=pentium4' generates code that is
  21548. tuned for Pentium 4 but still runs on i686 machines.
  21549. The choices for CPU-TYPE are the same as for '-march'. In
  21550. addition, '-mtune' supports 2 extra choices for CPU-TYPE:
  21551. 'generic'
  21552. Produce code optimized for the most common IA32/AMD64/EM64T
  21553. processors. If you know the CPU on which your code will run,
  21554. then you should use the corresponding '-mtune' or '-march'
  21555. option instead of '-mtune=generic'. But, if you do not know
  21556. exactly what CPU users of your application will have, then you
  21557. should use this option.
  21558. As new processors are deployed in the marketplace, the
  21559. behavior of this option will change. Therefore, if you
  21560. upgrade to a newer version of GCC, code generation controlled
  21561. by this option will change to reflect the processors that are
  21562. most common at the time that version of GCC is released.
  21563. There is no '-march=generic' option because '-march' indicates
  21564. the instruction set the compiler can use, and there is no
  21565. generic instruction set applicable to all processors. In
  21566. contrast, '-mtune' indicates the processor (or, in this case,
  21567. collection of processors) for which the code is optimized.
  21568. 'intel'
  21569. Produce code optimized for the most current Intel processors,
  21570. which are Haswell and Silvermont for this version of GCC. If
  21571. you know the CPU on which your code will run, then you should
  21572. use the corresponding '-mtune' or '-march' option instead of
  21573. '-mtune=intel'. But, if you want your application performs
  21574. better on both Haswell and Silvermont, then you should use
  21575. this option.
  21576. As new Intel processors are deployed in the marketplace, the
  21577. behavior of this option will change. Therefore, if you
  21578. upgrade to a newer version of GCC, code generation controlled
  21579. by this option will change to reflect the most current Intel
  21580. processors at the time that version of GCC is released.
  21581. There is no '-march=intel' option because '-march' indicates
  21582. the instruction set the compiler can use, and there is no
  21583. common instruction set applicable to all processors. In
  21584. contrast, '-mtune' indicates the processor (or, in this case,
  21585. collection of processors) for which the code is optimized.
  21586. '-mcpu=CPU-TYPE'
  21587. A deprecated synonym for '-mtune'.
  21588. '-mfpmath=UNIT'
  21589. Generate floating-point arithmetic for selected unit UNIT. The
  21590. choices for UNIT are:
  21591. '387'
  21592. Use the standard 387 floating-point coprocessor present on the
  21593. majority of chips and emulated otherwise. Code compiled with
  21594. this option runs almost everywhere. The temporary results are
  21595. computed in 80-bit precision instead of the precision
  21596. specified by the type, resulting in slightly different results
  21597. compared to most of other chips. See '-ffloat-store' for more
  21598. detailed description.
  21599. This is the default choice for non-Darwin x86-32 targets.
  21600. 'sse'
  21601. Use scalar floating-point instructions present in the SSE
  21602. instruction set. This instruction set is supported by Pentium
  21603. III and newer chips, and in the AMD line by Athlon-4, Athlon
  21604. XP and Athlon MP chips. The earlier version of the SSE
  21605. instruction set supports only single-precision arithmetic,
  21606. thus the double and extended-precision arithmetic are still
  21607. done using 387. A later version, present only in Pentium 4
  21608. and AMD x86-64 chips, supports double-precision arithmetic
  21609. too.
  21610. For the x86-32 compiler, you must use '-march=CPU-TYPE',
  21611. '-msse' or '-msse2' switches to enable SSE extensions and make
  21612. this option effective. For the x86-64 compiler, these
  21613. extensions are enabled by default.
  21614. The resulting code should be considerably faster in the
  21615. majority of cases and avoid the numerical instability problems
  21616. of 387 code, but may break some existing code that expects
  21617. temporaries to be 80 bits.
  21618. This is the default choice for the x86-64 compiler, Darwin
  21619. x86-32 targets, and the default choice for x86-32 targets with
  21620. the SSE2 instruction set when '-ffast-math' is enabled.
  21621. 'sse,387'
  21622. 'sse+387'
  21623. 'both'
  21624. Attempt to utilize both instruction sets at once. This
  21625. effectively doubles the amount of available registers, and on
  21626. chips with separate execution units for 387 and SSE the
  21627. execution resources too. Use this option with care, as it is
  21628. still experimental, because the GCC register allocator does
  21629. not model separate functional units well, resulting in
  21630. unstable performance.
  21631. '-masm=DIALECT'
  21632. Output assembly instructions using selected DIALECT. Also affects
  21633. which dialect is used for basic 'asm' (*note Basic Asm::) and
  21634. extended 'asm' (*note Extended Asm::). Supported choices (in
  21635. dialect order) are 'att' or 'intel'. The default is 'att'. Darwin
  21636. does not support 'intel'.
  21637. '-mieee-fp'
  21638. '-mno-ieee-fp'
  21639. Control whether or not the compiler uses IEEE floating-point
  21640. comparisons. These correctly handle the case where the result of a
  21641. comparison is unordered.
  21642. '-m80387'
  21643. '-mhard-float'
  21644. Generate output containing 80387 instructions for floating point.
  21645. '-mno-80387'
  21646. '-msoft-float'
  21647. Generate output containing library calls for floating point.
  21648. *Warning:* the requisite libraries are not part of GCC. Normally
  21649. the facilities of the machine's usual C compiler are used, but this
  21650. cannot be done directly in cross-compilation. You must make your
  21651. own arrangements to provide suitable library functions for
  21652. cross-compilation.
  21653. On machines where a function returns floating-point results in the
  21654. 80387 register stack, some floating-point opcodes may be emitted
  21655. even if '-msoft-float' is used.
  21656. '-mno-fp-ret-in-387'
  21657. Do not use the FPU registers for return values of functions.
  21658. The usual calling convention has functions return values of types
  21659. 'float' and 'double' in an FPU register, even if there is no FPU.
  21660. The idea is that the operating system should emulate an FPU.
  21661. The option '-mno-fp-ret-in-387' causes such values to be returned
  21662. in ordinary CPU registers instead.
  21663. '-mno-fancy-math-387'
  21664. Some 387 emulators do not support the 'sin', 'cos' and 'sqrt'
  21665. instructions for the 387. Specify this option to avoid generating
  21666. those instructions. This option is overridden when '-march'
  21667. indicates that the target CPU always has an FPU and so the
  21668. instruction does not need emulation. These instructions are not
  21669. generated unless you also use the '-funsafe-math-optimizations'
  21670. switch.
  21671. '-malign-double'
  21672. '-mno-align-double'
  21673. Control whether GCC aligns 'double', 'long double', and 'long long'
  21674. variables on a two-word boundary or a one-word boundary. Aligning
  21675. 'double' variables on a two-word boundary produces code that runs
  21676. somewhat faster on a Pentium at the expense of more memory.
  21677. On x86-64, '-malign-double' is enabled by default.
  21678. *Warning:* if you use the '-malign-double' switch, structures
  21679. containing the above types are aligned differently than the
  21680. published application binary interface specifications for the
  21681. x86-32 and are not binary compatible with structures in code
  21682. compiled without that switch.
  21683. '-m96bit-long-double'
  21684. '-m128bit-long-double'
  21685. These switches control the size of 'long double' type. The x86-32
  21686. application binary interface specifies the size to be 96 bits, so
  21687. '-m96bit-long-double' is the default in 32-bit mode.
  21688. Modern architectures (Pentium and newer) prefer 'long double' to be
  21689. aligned to an 8- or 16-byte boundary. In arrays or structures
  21690. conforming to the ABI, this is not possible. So specifying
  21691. '-m128bit-long-double' aligns 'long double' to a 16-byte boundary
  21692. by padding the 'long double' with an additional 32-bit zero.
  21693. In the x86-64 compiler, '-m128bit-long-double' is the default
  21694. choice as its ABI specifies that 'long double' is aligned on
  21695. 16-byte boundary.
  21696. Notice that neither of these options enable any extra precision
  21697. over the x87 standard of 80 bits for a 'long double'.
  21698. *Warning:* if you override the default value for your target ABI,
  21699. this changes the size of structures and arrays containing 'long
  21700. double' variables, as well as modifying the function calling
  21701. convention for functions taking 'long double'. Hence they are not
  21702. binary-compatible with code compiled without that switch.
  21703. '-mlong-double-64'
  21704. '-mlong-double-80'
  21705. '-mlong-double-128'
  21706. These switches control the size of 'long double' type. A size of
  21707. 64 bits makes the 'long double' type equivalent to the 'double'
  21708. type. This is the default for 32-bit Bionic C library. A size of
  21709. 128 bits makes the 'long double' type equivalent to the
  21710. '__float128' type. This is the default for 64-bit Bionic C
  21711. library.
  21712. *Warning:* if you override the default value for your target ABI,
  21713. this changes the size of structures and arrays containing 'long
  21714. double' variables, as well as modifying the function calling
  21715. convention for functions taking 'long double'. Hence they are not
  21716. binary-compatible with code compiled without that switch.
  21717. '-malign-data=TYPE'
  21718. Control how GCC aligns variables. Supported values for TYPE are
  21719. 'compat' uses increased alignment value compatible uses GCC 4.8 and
  21720. earlier, 'abi' uses alignment value as specified by the psABI, and
  21721. 'cacheline' uses increased alignment value to match the cache line
  21722. size. 'compat' is the default.
  21723. '-mlarge-data-threshold=THRESHOLD'
  21724. When '-mcmodel=medium' is specified, data objects larger than
  21725. THRESHOLD are placed in the large data section. This value must be
  21726. the same across all objects linked into the binary, and defaults to
  21727. 65535.
  21728. '-mrtd'
  21729. Use a different function-calling convention, in which functions
  21730. that take a fixed number of arguments return with the 'ret NUM'
  21731. instruction, which pops their arguments while returning. This
  21732. saves one instruction in the caller since there is no need to pop
  21733. the arguments there.
  21734. You can specify that an individual function is called with this
  21735. calling sequence with the function attribute 'stdcall'. You can
  21736. also override the '-mrtd' option by using the function attribute
  21737. 'cdecl'. *Note Function Attributes::.
  21738. *Warning:* this calling convention is incompatible with the one
  21739. normally used on Unix, so you cannot use it if you need to call
  21740. libraries compiled with the Unix compiler.
  21741. Also, you must provide function prototypes for all functions that
  21742. take variable numbers of arguments (including 'printf'); otherwise
  21743. incorrect code is generated for calls to those functions.
  21744. In addition, seriously incorrect code results if you call a
  21745. function with too many arguments. (Normally, extra arguments are
  21746. harmlessly ignored.)
  21747. '-mregparm=NUM'
  21748. Control how many registers are used to pass integer arguments. By
  21749. default, no registers are used to pass arguments, and at most 3
  21750. registers can be used. You can control this behavior for a
  21751. specific function by using the function attribute 'regparm'. *Note
  21752. Function Attributes::.
  21753. *Warning:* if you use this switch, and NUM is nonzero, then you
  21754. must build all modules with the same value, including any
  21755. libraries. This includes the system libraries and startup modules.
  21756. '-msseregparm'
  21757. Use SSE register passing conventions for float and double arguments
  21758. and return values. You can control this behavior for a specific
  21759. function by using the function attribute 'sseregparm'. *Note
  21760. Function Attributes::.
  21761. *Warning:* if you use this switch then you must build all modules
  21762. with the same value, including any libraries. This includes the
  21763. system libraries and startup modules.
  21764. '-mvect8-ret-in-mem'
  21765. Return 8-byte vectors in memory instead of MMX registers. This is
  21766. the default on VxWorks to match the ABI of the Sun Studio compilers
  21767. until version 12. _Only_ use this option if you need to remain
  21768. compatible with existing code produced by those previous compiler
  21769. versions or older versions of GCC.
  21770. '-mpc32'
  21771. '-mpc64'
  21772. '-mpc80'
  21773. Set 80387 floating-point precision to 32, 64 or 80 bits. When
  21774. '-mpc32' is specified, the significands of results of
  21775. floating-point operations are rounded to 24 bits (single
  21776. precision); '-mpc64' rounds the significands of results of
  21777. floating-point operations to 53 bits (double precision) and
  21778. '-mpc80' rounds the significands of results of floating-point
  21779. operations to 64 bits (extended double precision), which is the
  21780. default. When this option is used, floating-point operations in
  21781. higher precisions are not available to the programmer without
  21782. setting the FPU control word explicitly.
  21783. Setting the rounding of floating-point operations to less than the
  21784. default 80 bits can speed some programs by 2% or more. Note that
  21785. some mathematical libraries assume that extended-precision (80-bit)
  21786. floating-point operations are enabled by default; routines in such
  21787. libraries could suffer significant loss of accuracy, typically
  21788. through so-called "catastrophic cancellation", when this option is
  21789. used to set the precision to less than extended precision.
  21790. '-mstackrealign'
  21791. Realign the stack at entry. On the x86, the '-mstackrealign'
  21792. option generates an alternate prologue and epilogue that realigns
  21793. the run-time stack if necessary. This supports mixing legacy codes
  21794. that keep 4-byte stack alignment with modern codes that keep
  21795. 16-byte stack alignment for SSE compatibility. See also the
  21796. attribute 'force_align_arg_pointer', applicable to individual
  21797. functions.
  21798. '-mpreferred-stack-boundary=NUM'
  21799. Attempt to keep the stack boundary aligned to a 2 raised to NUM
  21800. byte boundary. If '-mpreferred-stack-boundary' is not specified,
  21801. the default is 4 (16 bytes or 128 bits).
  21802. *Warning:* When generating code for the x86-64 architecture with
  21803. SSE extensions disabled, '-mpreferred-stack-boundary=3' can be used
  21804. to keep the stack boundary aligned to 8 byte boundary. Since
  21805. x86-64 ABI require 16 byte stack alignment, this is ABI
  21806. incompatible and intended to be used in controlled environment
  21807. where stack space is important limitation. This option leads to
  21808. wrong code when functions compiled with 16 byte stack alignment
  21809. (such as functions from a standard library) are called with
  21810. misaligned stack. In this case, SSE instructions may lead to
  21811. misaligned memory access traps. In addition, variable arguments
  21812. are handled incorrectly for 16 byte aligned objects (including x87
  21813. long double and __int128), leading to wrong results. You must
  21814. build all modules with '-mpreferred-stack-boundary=3', including
  21815. any libraries. This includes the system libraries and startup
  21816. modules.
  21817. '-mincoming-stack-boundary=NUM'
  21818. Assume the incoming stack is aligned to a 2 raised to NUM byte
  21819. boundary. If '-mincoming-stack-boundary' is not specified, the one
  21820. specified by '-mpreferred-stack-boundary' is used.
  21821. On Pentium and Pentium Pro, 'double' and 'long double' values
  21822. should be aligned to an 8-byte boundary (see '-malign-double') or
  21823. suffer significant run time performance penalties. On Pentium III,
  21824. the Streaming SIMD Extension (SSE) data type '__m128' may not work
  21825. properly if it is not 16-byte aligned.
  21826. To ensure proper alignment of this values on the stack, the stack
  21827. boundary must be as aligned as that required by any value stored on
  21828. the stack. Further, every function must be generated such that it
  21829. keeps the stack aligned. Thus calling a function compiled with a
  21830. higher preferred stack boundary from a function compiled with a
  21831. lower preferred stack boundary most likely misaligns the stack. It
  21832. is recommended that libraries that use callbacks always use the
  21833. default setting.
  21834. This extra alignment does consume extra stack space, and generally
  21835. increases code size. Code that is sensitive to stack space usage,
  21836. such as embedded systems and operating system kernels, may want to
  21837. reduce the preferred alignment to '-mpreferred-stack-boundary=2'.
  21838. '-mmmx'
  21839. '-msse'
  21840. '-msse2'
  21841. '-msse3'
  21842. '-mssse3'
  21843. '-msse4'
  21844. '-msse4a'
  21845. '-msse4.1'
  21846. '-msse4.2'
  21847. '-mavx'
  21848. '-mavx2'
  21849. '-mavx512f'
  21850. '-mavx512pf'
  21851. '-mavx512er'
  21852. '-mavx512cd'
  21853. '-mavx512vl'
  21854. '-mavx512bw'
  21855. '-mavx512dq'
  21856. '-mavx512ifma'
  21857. '-mavx512vbmi'
  21858. '-msha'
  21859. '-maes'
  21860. '-mpclmul'
  21861. '-mclflushopt'
  21862. '-mclwb'
  21863. '-mfsgsbase'
  21864. '-mptwrite'
  21865. '-mrdrnd'
  21866. '-mf16c'
  21867. '-mfma'
  21868. '-mpconfig'
  21869. '-mwbnoinvd'
  21870. '-mfma4'
  21871. '-mprfchw'
  21872. '-mrdpid'
  21873. '-mprefetchwt1'
  21874. '-mrdseed'
  21875. '-msgx'
  21876. '-mxop'
  21877. '-mlwp'
  21878. '-m3dnow'
  21879. '-m3dnowa'
  21880. '-mpopcnt'
  21881. '-mabm'
  21882. '-madx'
  21883. '-mbmi'
  21884. '-mbmi2'
  21885. '-mlzcnt'
  21886. '-mfxsr'
  21887. '-mxsave'
  21888. '-mxsaveopt'
  21889. '-mxsavec'
  21890. '-mxsaves'
  21891. '-mrtm'
  21892. '-mhle'
  21893. '-mtbm'
  21894. '-mmwaitx'
  21895. '-mclzero'
  21896. '-mpku'
  21897. '-mavx512vbmi2'
  21898. '-mavx512bf16'
  21899. '-mgfni'
  21900. '-mvaes'
  21901. '-mwaitpkg'
  21902. '-mvpclmulqdq'
  21903. '-mavx512bitalg'
  21904. '-mmovdiri'
  21905. '-mmovdir64b'
  21906. '-menqcmd'
  21907. '-mavx512vpopcntdq'
  21908. '-mavx512vp2intersect'
  21909. '-mavx5124fmaps'
  21910. '-mavx512vnni'
  21911. '-mavx5124vnniw'
  21912. '-mcldemote'
  21913. These switches enable the use of instructions in the MMX, SSE,
  21914. SSE2, SSE3, SSSE3, SSE4, SSE4A, SSE4.1, SSE4.2, AVX, AVX2, AVX512F,
  21915. AVX512PF, AVX512ER, AVX512CD, AVX512VL, AVX512BW, AVX512DQ,
  21916. AVX512IFMA, AVX512VBMI, SHA, AES, PCLMUL, CLFLUSHOPT, CLWB,
  21917. FSGSBASE, PTWRITE, RDRND, F16C, FMA, PCONFIG, WBNOINVD, FMA4,
  21918. PREFETCHW, RDPID, PREFETCHWT1, RDSEED, SGX, XOP, LWP, 3DNow!,
  21919. enhanced 3DNow!, POPCNT, ABM, ADX, BMI, BMI2, LZCNT, FXSR, XSAVE,
  21920. XSAVEOPT, XSAVEC, XSAVES, RTM, HLE, TBM, MWAITX, CLZERO, PKU,
  21921. AVX512VBMI2, GFNI, VAES, WAITPKG, VPCLMULQDQ, AVX512BITALG,
  21922. MOVDIRI, MOVDIR64B, AVX512BF16, ENQCMD, AVX512VPOPCNTDQ,
  21923. AVX5124FMAPS, AVX512VNNI, AVX5124VNNIW, or CLDEMOTE extended
  21924. instruction sets. Each has a corresponding '-mno-' option to
  21925. disable use of these instructions.
  21926. These extensions are also available as built-in functions: see
  21927. *note x86 Built-in Functions::, for details of the functions
  21928. enabled and disabled by these switches.
  21929. To generate SSE/SSE2 instructions automatically from floating-point
  21930. code (as opposed to 387 instructions), see '-mfpmath=sse'.
  21931. GCC depresses SSEx instructions when '-mavx' is used. Instead, it
  21932. generates new AVX instructions or AVX equivalence for all SSEx
  21933. instructions when needed.
  21934. These options enable GCC to use these extended instructions in
  21935. generated code, even without '-mfpmath=sse'. Applications that
  21936. perform run-time CPU detection must compile separate files for each
  21937. supported architecture, using the appropriate flags. In
  21938. particular, the file containing the CPU detection code should be
  21939. compiled without these options.
  21940. '-mdump-tune-features'
  21941. This option instructs GCC to dump the names of the x86 performance
  21942. tuning features and default settings. The names can be used in
  21943. '-mtune-ctrl=FEATURE-LIST'.
  21944. '-mtune-ctrl=FEATURE-LIST'
  21945. This option is used to do fine grain control of x86 code generation
  21946. features. FEATURE-LIST is a comma separated list of FEATURE names.
  21947. See also '-mdump-tune-features'. When specified, the FEATURE is
  21948. turned on if it is not preceded with '^', otherwise, it is turned
  21949. off. '-mtune-ctrl=FEATURE-LIST' is intended to be used by GCC
  21950. developers. Using it may lead to code paths not covered by testing
  21951. and can potentially result in compiler ICEs or runtime errors.
  21952. '-mno-default'
  21953. This option instructs GCC to turn off all tunable features. See
  21954. also '-mtune-ctrl=FEATURE-LIST' and '-mdump-tune-features'.
  21955. '-mcld'
  21956. This option instructs GCC to emit a 'cld' instruction in the
  21957. prologue of functions that use string instructions. String
  21958. instructions depend on the DF flag to select between autoincrement
  21959. or autodecrement mode. While the ABI specifies the DF flag to be
  21960. cleared on function entry, some operating systems violate this
  21961. specification by not clearing the DF flag in their exception
  21962. dispatchers. The exception handler can be invoked with the DF flag
  21963. set, which leads to wrong direction mode when string instructions
  21964. are used. This option can be enabled by default on 32-bit x86
  21965. targets by configuring GCC with the '--enable-cld' configure
  21966. option. Generation of 'cld' instructions can be suppressed with
  21967. the '-mno-cld' compiler option in this case.
  21968. '-mvzeroupper'
  21969. This option instructs GCC to emit a 'vzeroupper' instruction before
  21970. a transfer of control flow out of the function to minimize the AVX
  21971. to SSE transition penalty as well as remove unnecessary 'zeroupper'
  21972. intrinsics.
  21973. '-mprefer-avx128'
  21974. This option instructs GCC to use 128-bit AVX instructions instead
  21975. of 256-bit AVX instructions in the auto-vectorizer.
  21976. '-mprefer-vector-width=OPT'
  21977. This option instructs GCC to use OPT-bit vector width in
  21978. instructions instead of default on the selected platform.
  21979. 'none'
  21980. No extra limitations applied to GCC other than defined by the
  21981. selected platform.
  21982. '128'
  21983. Prefer 128-bit vector width for instructions.
  21984. '256'
  21985. Prefer 256-bit vector width for instructions.
  21986. '512'
  21987. Prefer 512-bit vector width for instructions.
  21988. '-mcx16'
  21989. This option enables GCC to generate 'CMPXCHG16B' instructions in
  21990. 64-bit code to implement compare-and-exchange operations on 16-byte
  21991. aligned 128-bit objects. This is useful for atomic updates of data
  21992. structures exceeding one machine word in size. The compiler uses
  21993. this instruction to implement *note __sync Builtins::. However,
  21994. for *note __atomic Builtins:: operating on 128-bit integers, a
  21995. library call is always used.
  21996. '-msahf'
  21997. This option enables generation of 'SAHF' instructions in 64-bit
  21998. code. Early Intel Pentium 4 CPUs with Intel 64 support, prior to
  21999. the introduction of Pentium 4 G1 step in December 2005, lacked the
  22000. 'LAHF' and 'SAHF' instructions which are supported by AMD64. These
  22001. are load and store instructions, respectively, for certain status
  22002. flags. In 64-bit mode, the 'SAHF' instruction is used to optimize
  22003. 'fmod', 'drem', and 'remainder' built-in functions; see *note Other
  22004. Builtins:: for details.
  22005. '-mmovbe'
  22006. This option enables use of the 'movbe' instruction to implement
  22007. '__builtin_bswap32' and '__builtin_bswap64'.
  22008. '-mshstk'
  22009. The '-mshstk' option enables shadow stack built-in functions from
  22010. x86 Control-flow Enforcement Technology (CET).
  22011. '-mcrc32'
  22012. This option enables built-in functions '__builtin_ia32_crc32qi',
  22013. '__builtin_ia32_crc32hi', '__builtin_ia32_crc32si' and
  22014. '__builtin_ia32_crc32di' to generate the 'crc32' machine
  22015. instruction.
  22016. '-mrecip'
  22017. This option enables use of 'RCPSS' and 'RSQRTSS' instructions (and
  22018. their vectorized variants 'RCPPS' and 'RSQRTPS') with an additional
  22019. Newton-Raphson step to increase precision instead of 'DIVSS' and
  22020. 'SQRTSS' (and their vectorized variants) for single-precision
  22021. floating-point arguments. These instructions are generated only
  22022. when '-funsafe-math-optimizations' is enabled together with
  22023. '-ffinite-math-only' and '-fno-trapping-math'. Note that while the
  22024. throughput of the sequence is higher than the throughput of the
  22025. non-reciprocal instruction, the precision of the sequence can be
  22026. decreased by up to 2 ulp (i.e. the inverse of 1.0 equals
  22027. 0.99999994).
  22028. Note that GCC implements '1.0f/sqrtf(X)' in terms of 'RSQRTSS' (or
  22029. 'RSQRTPS') already with '-ffast-math' (or the above option
  22030. combination), and doesn't need '-mrecip'.
  22031. Also note that GCC emits the above sequence with additional
  22032. Newton-Raphson step for vectorized single-float division and
  22033. vectorized 'sqrtf(X)' already with '-ffast-math' (or the above
  22034. option combination), and doesn't need '-mrecip'.
  22035. '-mrecip=OPT'
  22036. This option controls which reciprocal estimate instructions may be
  22037. used. OPT is a comma-separated list of options, which may be
  22038. preceded by a '!' to invert the option:
  22039. 'all'
  22040. Enable all estimate instructions.
  22041. 'default'
  22042. Enable the default instructions, equivalent to '-mrecip'.
  22043. 'none'
  22044. Disable all estimate instructions, equivalent to '-mno-recip'.
  22045. 'div'
  22046. Enable the approximation for scalar division.
  22047. 'vec-div'
  22048. Enable the approximation for vectorized division.
  22049. 'sqrt'
  22050. Enable the approximation for scalar square root.
  22051. 'vec-sqrt'
  22052. Enable the approximation for vectorized square root.
  22053. So, for example, '-mrecip=all,!sqrt' enables all of the reciprocal
  22054. approximations, except for square root.
  22055. '-mveclibabi=TYPE'
  22056. Specifies the ABI type to use for vectorizing intrinsics using an
  22057. external library. Supported values for TYPE are 'svml' for the
  22058. Intel short vector math library and 'acml' for the AMD math core
  22059. library. To use this option, both '-ftree-vectorize' and
  22060. '-funsafe-math-optimizations' have to be enabled, and an SVML or
  22061. ACML ABI-compatible library must be specified at link time.
  22062. GCC currently emits calls to 'vmldExp2', 'vmldLn2', 'vmldLog102',
  22063. 'vmldPow2', 'vmldTanh2', 'vmldTan2', 'vmldAtan2', 'vmldAtanh2',
  22064. 'vmldCbrt2', 'vmldSinh2', 'vmldSin2', 'vmldAsinh2', 'vmldAsin2',
  22065. 'vmldCosh2', 'vmldCos2', 'vmldAcosh2', 'vmldAcos2', 'vmlsExp4',
  22066. 'vmlsLn4', 'vmlsLog104', 'vmlsPow4', 'vmlsTanh4', 'vmlsTan4',
  22067. 'vmlsAtan4', 'vmlsAtanh4', 'vmlsCbrt4', 'vmlsSinh4', 'vmlsSin4',
  22068. 'vmlsAsinh4', 'vmlsAsin4', 'vmlsCosh4', 'vmlsCos4', 'vmlsAcosh4'
  22069. and 'vmlsAcos4' for corresponding function type when
  22070. '-mveclibabi=svml' is used, and '__vrd2_sin', '__vrd2_cos',
  22071. '__vrd2_exp', '__vrd2_log', '__vrd2_log2', '__vrd2_log10',
  22072. '__vrs4_sinf', '__vrs4_cosf', '__vrs4_expf', '__vrs4_logf',
  22073. '__vrs4_log2f', '__vrs4_log10f' and '__vrs4_powf' for the
  22074. corresponding function type when '-mveclibabi=acml' is used.
  22075. '-mabi=NAME'
  22076. Generate code for the specified calling convention. Permissible
  22077. values are 'sysv' for the ABI used on GNU/Linux and other systems,
  22078. and 'ms' for the Microsoft ABI. The default is to use the Microsoft
  22079. ABI when targeting Microsoft Windows and the SysV ABI on all other
  22080. systems. You can control this behavior for specific functions by
  22081. using the function attributes 'ms_abi' and 'sysv_abi'. *Note
  22082. Function Attributes::.
  22083. '-mforce-indirect-call'
  22084. Force all calls to functions to be indirect. This is useful when
  22085. using Intel Processor Trace where it generates more precise timing
  22086. information for function calls.
  22087. '-mmanual-endbr'
  22088. Insert ENDBR instruction at function entry only via the 'cf_check'
  22089. function attribute. This is useful when used with the option
  22090. '-fcf-protection=branch' to control ENDBR insertion at the function
  22091. entry.
  22092. '-mcall-ms2sysv-xlogues'
  22093. Due to differences in 64-bit ABIs, any Microsoft ABI function that
  22094. calls a System V ABI function must consider RSI, RDI and XMM6-15 as
  22095. clobbered. By default, the code for saving and restoring these
  22096. registers is emitted inline, resulting in fairly lengthy prologues
  22097. and epilogues. Using '-mcall-ms2sysv-xlogues' emits prologues and
  22098. epilogues that use stubs in the static portion of libgcc to perform
  22099. these saves and restores, thus reducing function size at the cost
  22100. of a few extra instructions.
  22101. '-mtls-dialect=TYPE'
  22102. Generate code to access thread-local storage using the 'gnu' or
  22103. 'gnu2' conventions. 'gnu' is the conservative default; 'gnu2' is
  22104. more efficient, but it may add compile- and run-time requirements
  22105. that cannot be satisfied on all systems.
  22106. '-mpush-args'
  22107. '-mno-push-args'
  22108. Use PUSH operations to store outgoing parameters. This method is
  22109. shorter and usually equally fast as method using SUB/MOV operations
  22110. and is enabled by default. In some cases disabling it may improve
  22111. performance because of improved scheduling and reduced
  22112. dependencies.
  22113. '-maccumulate-outgoing-args'
  22114. If enabled, the maximum amount of space required for outgoing
  22115. arguments is computed in the function prologue. This is faster on
  22116. most modern CPUs because of reduced dependencies, improved
  22117. scheduling and reduced stack usage when the preferred stack
  22118. boundary is not equal to 2. The drawback is a notable increase in
  22119. code size. This switch implies '-mno-push-args'.
  22120. '-mthreads'
  22121. Support thread-safe exception handling on MinGW. Programs that rely
  22122. on thread-safe exception handling must compile and link all code
  22123. with the '-mthreads' option. When compiling, '-mthreads' defines
  22124. '-D_MT'; when linking, it links in a special thread helper library
  22125. '-lmingwthrd' which cleans up per-thread exception-handling data.
  22126. '-mms-bitfields'
  22127. '-mno-ms-bitfields'
  22128. Enable/disable bit-field layout compatible with the native
  22129. Microsoft Windows compiler.
  22130. If 'packed' is used on a structure, or if bit-fields are used, it
  22131. may be that the Microsoft ABI lays out the structure differently
  22132. than the way GCC normally does. Particularly when moving packed
  22133. data between functions compiled with GCC and the native Microsoft
  22134. compiler (either via function call or as data in a file), it may be
  22135. necessary to access either format.
  22136. This option is enabled by default for Microsoft Windows targets.
  22137. This behavior can also be controlled locally by use of variable or
  22138. type attributes. For more information, see *note x86 Variable
  22139. Attributes:: and *note x86 Type Attributes::.
  22140. The Microsoft structure layout algorithm is fairly simple with the
  22141. exception of the bit-field packing. The padding and alignment of
  22142. members of structures and whether a bit-field can straddle a
  22143. storage-unit boundary are determine by these rules:
  22144. 1. Structure members are stored sequentially in the order in
  22145. which they are declared: the first member has the lowest
  22146. memory address and the last member the highest.
  22147. 2. Every data object has an alignment requirement. The alignment
  22148. requirement for all data except structures, unions, and arrays
  22149. is either the size of the object or the current packing size
  22150. (specified with either the 'aligned' attribute or the 'pack'
  22151. pragma), whichever is less. For structures, unions, and
  22152. arrays, the alignment requirement is the largest alignment
  22153. requirement of its members. Every object is allocated an
  22154. offset so that:
  22155. offset % alignment_requirement == 0
  22156. 3. Adjacent bit-fields are packed into the same 1-, 2-, or 4-byte
  22157. allocation unit if the integral types are the same size and if
  22158. the next bit-field fits into the current allocation unit
  22159. without crossing the boundary imposed by the common alignment
  22160. requirements of the bit-fields.
  22161. MSVC interprets zero-length bit-fields in the following ways:
  22162. 1. If a zero-length bit-field is inserted between two bit-fields
  22163. that are normally coalesced, the bit-fields are not coalesced.
  22164. For example:
  22165. struct
  22166. {
  22167. unsigned long bf_1 : 12;
  22168. unsigned long : 0;
  22169. unsigned long bf_2 : 12;
  22170. } t1;
  22171. The size of 't1' is 8 bytes with the zero-length bit-field.
  22172. If the zero-length bit-field were removed, 't1''s size would
  22173. be 4 bytes.
  22174. 2. If a zero-length bit-field is inserted after a bit-field,
  22175. 'foo', and the alignment of the zero-length bit-field is
  22176. greater than the member that follows it, 'bar', 'bar' is
  22177. aligned as the type of the zero-length bit-field.
  22178. For example:
  22179. struct
  22180. {
  22181. char foo : 4;
  22182. short : 0;
  22183. char bar;
  22184. } t2;
  22185. struct
  22186. {
  22187. char foo : 4;
  22188. short : 0;
  22189. double bar;
  22190. } t3;
  22191. For 't2', 'bar' is placed at offset 2, rather than offset 1.
  22192. Accordingly, the size of 't2' is 4. For 't3', the zero-length
  22193. bit-field does not affect the alignment of 'bar' or, as a
  22194. result, the size of the structure.
  22195. Taking this into account, it is important to note the
  22196. following:
  22197. 1. If a zero-length bit-field follows a normal bit-field,
  22198. the type of the zero-length bit-field may affect the
  22199. alignment of the structure as whole. For example, 't2'
  22200. has a size of 4 bytes, since the zero-length bit-field
  22201. follows a normal bit-field, and is of type short.
  22202. 2. Even if a zero-length bit-field is not followed by a
  22203. normal bit-field, it may still affect the alignment of
  22204. the structure:
  22205. struct
  22206. {
  22207. char foo : 6;
  22208. long : 0;
  22209. } t4;
  22210. Here, 't4' takes up 4 bytes.
  22211. 3. Zero-length bit-fields following non-bit-field members are
  22212. ignored:
  22213. struct
  22214. {
  22215. char foo;
  22216. long : 0;
  22217. char bar;
  22218. } t5;
  22219. Here, 't5' takes up 2 bytes.
  22220. '-mno-align-stringops'
  22221. Do not align the destination of inlined string operations. This
  22222. switch reduces code size and improves performance in case the
  22223. destination is already aligned, but GCC doesn't know about it.
  22224. '-minline-all-stringops'
  22225. By default GCC inlines string operations only when the destination
  22226. is known to be aligned to least a 4-byte boundary. This enables
  22227. more inlining and increases code size, but may improve performance
  22228. of code that depends on fast 'memcpy' and 'memset' for short
  22229. lengths. The option enables inline expansion of 'strlen' for all
  22230. pointer alignments.
  22231. '-minline-stringops-dynamically'
  22232. For string operations of unknown size, use run-time checks with
  22233. inline code for small blocks and a library call for large blocks.
  22234. '-mstringop-strategy=ALG'
  22235. Override the internal decision heuristic for the particular
  22236. algorithm to use for inlining string operations. The allowed
  22237. values for ALG are:
  22238. 'rep_byte'
  22239. 'rep_4byte'
  22240. 'rep_8byte'
  22241. Expand using i386 'rep' prefix of the specified size.
  22242. 'byte_loop'
  22243. 'loop'
  22244. 'unrolled_loop'
  22245. Expand into an inline loop.
  22246. 'libcall'
  22247. Always use a library call.
  22248. '-mmemcpy-strategy=STRATEGY'
  22249. Override the internal decision heuristic to decide if
  22250. '__builtin_memcpy' should be inlined and what inline algorithm to
  22251. use when the expected size of the copy operation is known.
  22252. STRATEGY is a comma-separated list of ALG:MAX_SIZE:DEST_ALIGN
  22253. triplets. ALG is specified in '-mstringop-strategy', MAX_SIZE
  22254. specifies the max byte size with which inline algorithm ALG is
  22255. allowed. For the last triplet, the MAX_SIZE must be '-1'. The
  22256. MAX_SIZE of the triplets in the list must be specified in
  22257. increasing order. The minimal byte size for ALG is '0' for the
  22258. first triplet and 'MAX_SIZE + 1' of the preceding range.
  22259. '-mmemset-strategy=STRATEGY'
  22260. The option is similar to '-mmemcpy-strategy=' except that it is to
  22261. control '__builtin_memset' expansion.
  22262. '-momit-leaf-frame-pointer'
  22263. Don't keep the frame pointer in a register for leaf functions.
  22264. This avoids the instructions to save, set up, and restore frame
  22265. pointers and makes an extra register available in leaf functions.
  22266. The option '-fomit-leaf-frame-pointer' removes the frame pointer
  22267. for leaf functions, which might make debugging harder.
  22268. '-mtls-direct-seg-refs'
  22269. '-mno-tls-direct-seg-refs'
  22270. Controls whether TLS variables may be accessed with offsets from
  22271. the TLS segment register ('%gs' for 32-bit, '%fs' for 64-bit), or
  22272. whether the thread base pointer must be added. Whether or not this
  22273. is valid depends on the operating system, and whether it maps the
  22274. segment to cover the entire TLS area.
  22275. For systems that use the GNU C Library, the default is on.
  22276. '-msse2avx'
  22277. '-mno-sse2avx'
  22278. Specify that the assembler should encode SSE instructions with VEX
  22279. prefix. The option '-mavx' turns this on by default.
  22280. '-mfentry'
  22281. '-mno-fentry'
  22282. If profiling is active ('-pg'), put the profiling counter call
  22283. before the prologue. Note: On x86 architectures the attribute
  22284. 'ms_hook_prologue' isn't possible at the moment for '-mfentry' and
  22285. '-pg'.
  22286. '-mrecord-mcount'
  22287. '-mno-record-mcount'
  22288. If profiling is active ('-pg'), generate a __mcount_loc section
  22289. that contains pointers to each profiling call. This is useful for
  22290. automatically patching and out calls.
  22291. '-mnop-mcount'
  22292. '-mno-nop-mcount'
  22293. If profiling is active ('-pg'), generate the calls to the profiling
  22294. functions as NOPs. This is useful when they should be patched in
  22295. later dynamically. This is likely only useful together with
  22296. '-mrecord-mcount'.
  22297. '-minstrument-return=TYPE'
  22298. Instrument function exit in -pg -mfentry instrumented functions
  22299. with call to specified function. This only instruments true
  22300. returns ending with ret, but not sibling calls ending with jump.
  22301. Valid types are NONE to not instrument, CALL to generate a call to
  22302. __return__, or NOP5 to generate a 5 byte nop.
  22303. '-mrecord-return'
  22304. '-mno-record-return'
  22305. Generate a __return_loc section pointing to all return
  22306. instrumentation code.
  22307. '-mfentry-name=NAME'
  22308. Set name of __fentry__ symbol called at function entry for -pg
  22309. -mfentry functions.
  22310. '-mfentry-section=NAME'
  22311. Set name of section to record -mrecord-mcount calls (default
  22312. __mcount_loc).
  22313. '-mskip-rax-setup'
  22314. '-mno-skip-rax-setup'
  22315. When generating code for the x86-64 architecture with SSE
  22316. extensions disabled, '-mskip-rax-setup' can be used to skip setting
  22317. up RAX register when there are no variable arguments passed in
  22318. vector registers.
  22319. *Warning:* Since RAX register is used to avoid unnecessarily saving
  22320. vector registers on stack when passing variable arguments, the
  22321. impacts of this option are callees may waste some stack space,
  22322. misbehave or jump to a random location. GCC 4.4 or newer don't
  22323. have those issues, regardless the RAX register value.
  22324. '-m8bit-idiv'
  22325. '-mno-8bit-idiv'
  22326. On some processors, like Intel Atom, 8-bit unsigned integer divide
  22327. is much faster than 32-bit/64-bit integer divide. This option
  22328. generates a run-time check. If both dividend and divisor are
  22329. within range of 0 to 255, 8-bit unsigned integer divide is used
  22330. instead of 32-bit/64-bit integer divide.
  22331. '-mavx256-split-unaligned-load'
  22332. '-mavx256-split-unaligned-store'
  22333. Split 32-byte AVX unaligned load and store.
  22334. '-mstack-protector-guard=GUARD'
  22335. '-mstack-protector-guard-reg=REG'
  22336. '-mstack-protector-guard-offset=OFFSET'
  22337. Generate stack protection code using canary at GUARD. Supported
  22338. locations are 'global' for global canary or 'tls' for per-thread
  22339. canary in the TLS block (the default). This option has effect only
  22340. when '-fstack-protector' or '-fstack-protector-all' is specified.
  22341. With the latter choice the options
  22342. '-mstack-protector-guard-reg=REG' and
  22343. '-mstack-protector-guard-offset=OFFSET' furthermore specify which
  22344. segment register ('%fs' or '%gs') to use as base register for
  22345. reading the canary, and from what offset from that base register.
  22346. The default for those is as specified in the relevant ABI.
  22347. '-mgeneral-regs-only'
  22348. Generate code that uses only the general-purpose registers. This
  22349. prevents the compiler from using floating-point, vector, mask and
  22350. bound registers.
  22351. '-mindirect-branch=CHOICE'
  22352. Convert indirect call and jump with CHOICE. The default is 'keep',
  22353. which keeps indirect call and jump unmodified. 'thunk' converts
  22354. indirect call and jump to call and return thunk. 'thunk-inline'
  22355. converts indirect call and jump to inlined call and return thunk.
  22356. 'thunk-extern' converts indirect call and jump to external call and
  22357. return thunk provided in a separate object file. You can control
  22358. this behavior for a specific function by using the function
  22359. attribute 'indirect_branch'. *Note Function Attributes::.
  22360. Note that '-mcmodel=large' is incompatible with
  22361. '-mindirect-branch=thunk' and '-mindirect-branch=thunk-extern'
  22362. since the thunk function may not be reachable in the large code
  22363. model.
  22364. Note that '-mindirect-branch=thunk-extern' is compatible with
  22365. '-fcf-protection=branch' since the external thunk can be made to
  22366. enable control-flow check.
  22367. '-mfunction-return=CHOICE'
  22368. Convert function return with CHOICE. The default is 'keep', which
  22369. keeps function return unmodified. 'thunk' converts function return
  22370. to call and return thunk. 'thunk-inline' converts function return
  22371. to inlined call and return thunk. 'thunk-extern' converts function
  22372. return to external call and return thunk provided in a separate
  22373. object file. You can control this behavior for a specific function
  22374. by using the function attribute 'function_return'. *Note Function
  22375. Attributes::.
  22376. Note that '-mindirect-return=thunk-extern' is compatible with
  22377. '-fcf-protection=branch' since the external thunk can be made to
  22378. enable control-flow check.
  22379. Note that '-mcmodel=large' is incompatible with
  22380. '-mfunction-return=thunk' and '-mfunction-return=thunk-extern'
  22381. since the thunk function may not be reachable in the large code
  22382. model.
  22383. '-mindirect-branch-register'
  22384. Force indirect call and jump via register.
  22385. These '-m' switches are supported in addition to the above on x86-64
  22386. processors in 64-bit environments.
  22387. '-m32'
  22388. '-m64'
  22389. '-mx32'
  22390. '-m16'
  22391. '-miamcu'
  22392. Generate code for a 16-bit, 32-bit or 64-bit environment. The
  22393. '-m32' option sets 'int', 'long', and pointer types to 32 bits, and
  22394. generates code that runs on any i386 system.
  22395. The '-m64' option sets 'int' to 32 bits and 'long' and pointer
  22396. types to 64 bits, and generates code for the x86-64 architecture.
  22397. For Darwin only the '-m64' option also turns off the '-fno-pic' and
  22398. '-mdynamic-no-pic' options.
  22399. The '-mx32' option sets 'int', 'long', and pointer types to 32
  22400. bits, and generates code for the x86-64 architecture.
  22401. The '-m16' option is the same as '-m32', except for that it outputs
  22402. the '.code16gcc' assembly directive at the beginning of the
  22403. assembly output so that the binary can run in 16-bit mode.
  22404. The '-miamcu' option generates code which conforms to Intel MCU
  22405. psABI. It requires the '-m32' option to be turned on.
  22406. '-mno-red-zone'
  22407. Do not use a so-called "red zone" for x86-64 code. The red zone is
  22408. mandated by the x86-64 ABI; it is a 128-byte area beyond the
  22409. location of the stack pointer that is not modified by signal or
  22410. interrupt handlers and therefore can be used for temporary data
  22411. without adjusting the stack pointer. The flag '-mno-red-zone'
  22412. disables this red zone.
  22413. '-mcmodel=small'
  22414. Generate code for the small code model: the program and its symbols
  22415. must be linked in the lower 2 GB of the address space. Pointers
  22416. are 64 bits. Programs can be statically or dynamically linked.
  22417. This is the default code model.
  22418. '-mcmodel=kernel'
  22419. Generate code for the kernel code model. The kernel runs in the
  22420. negative 2 GB of the address space. This model has to be used for
  22421. Linux kernel code.
  22422. '-mcmodel=medium'
  22423. Generate code for the medium model: the program is linked in the
  22424. lower 2 GB of the address space. Small symbols are also placed
  22425. there. Symbols with sizes larger than '-mlarge-data-threshold' are
  22426. put into large data or BSS sections and can be located above 2GB.
  22427. Programs can be statically or dynamically linked.
  22428. '-mcmodel=large'
  22429. Generate code for the large model. This model makes no assumptions
  22430. about addresses and sizes of sections.
  22431. '-maddress-mode=long'
  22432. Generate code for long address mode. This is only supported for
  22433. 64-bit and x32 environments. It is the default address mode for
  22434. 64-bit environments.
  22435. '-maddress-mode=short'
  22436. Generate code for short address mode. This is only supported for
  22437. 32-bit and x32 environments. It is the default address mode for
  22438. 32-bit and x32 environments.
  22439. 
  22440. File: gcc.info, Node: x86 Windows Options, Next: Xstormy16 Options, Prev: x86 Options, Up: Submodel Options
  22441. 3.19.60 x86 Windows Options
  22442. ---------------------------
  22443. These additional options are available for Microsoft Windows targets:
  22444. '-mconsole'
  22445. This option specifies that a console application is to be
  22446. generated, by instructing the linker to set the PE header subsystem
  22447. type required for console applications. This option is available
  22448. for Cygwin and MinGW targets and is enabled by default on those
  22449. targets.
  22450. '-mdll'
  22451. This option is available for Cygwin and MinGW targets. It
  22452. specifies that a DLL--a dynamic link library--is to be generated,
  22453. enabling the selection of the required runtime startup object and
  22454. entry point.
  22455. '-mnop-fun-dllimport'
  22456. This option is available for Cygwin and MinGW targets. It
  22457. specifies that the 'dllimport' attribute should be ignored.
  22458. '-mthread'
  22459. This option is available for MinGW targets. It specifies that
  22460. MinGW-specific thread support is to be used.
  22461. '-municode'
  22462. This option is available for MinGW-w64 targets. It causes the
  22463. 'UNICODE' preprocessor macro to be predefined, and chooses
  22464. Unicode-capable runtime startup code.
  22465. '-mwin32'
  22466. This option is available for Cygwin and MinGW targets. It
  22467. specifies that the typical Microsoft Windows predefined macros are
  22468. to be set in the pre-processor, but does not influence the choice
  22469. of runtime library/startup code.
  22470. '-mwindows'
  22471. This option is available for Cygwin and MinGW targets. It
  22472. specifies that a GUI application is to be generated by instructing
  22473. the linker to set the PE header subsystem type appropriately.
  22474. '-fno-set-stack-executable'
  22475. This option is available for MinGW targets. It specifies that the
  22476. executable flag for the stack used by nested functions isn't set.
  22477. This is necessary for binaries running in kernel mode of Microsoft
  22478. Windows, as there the User32 API, which is used to set executable
  22479. privileges, isn't available.
  22480. '-fwritable-relocated-rdata'
  22481. This option is available for MinGW and Cygwin targets. It
  22482. specifies that relocated-data in read-only section is put into the
  22483. '.data' section. This is a necessary for older runtimes not
  22484. supporting modification of '.rdata' sections for pseudo-relocation.
  22485. '-mpe-aligned-commons'
  22486. This option is available for Cygwin and MinGW targets. It
  22487. specifies that the GNU extension to the PE file format that permits
  22488. the correct alignment of COMMON variables should be used when
  22489. generating code. It is enabled by default if GCC detects that the
  22490. target assembler found during configuration supports the feature.
  22491. See also under *note x86 Options:: for standard options.
  22492. 
  22493. File: gcc.info, Node: Xstormy16 Options, Next: Xtensa Options, Prev: x86 Windows Options, Up: Submodel Options
  22494. 3.19.61 Xstormy16 Options
  22495. -------------------------
  22496. These options are defined for Xstormy16:
  22497. '-msim'
  22498. Choose startup files and linker script suitable for the simulator.
  22499. 
  22500. File: gcc.info, Node: Xtensa Options, Next: zSeries Options, Prev: Xstormy16 Options, Up: Submodel Options
  22501. 3.19.62 Xtensa Options
  22502. ----------------------
  22503. These options are supported for Xtensa targets:
  22504. '-mconst16'
  22505. '-mno-const16'
  22506. Enable or disable use of 'CONST16' instructions for loading
  22507. constant values. The 'CONST16' instruction is currently not a
  22508. standard option from Tensilica. When enabled, 'CONST16'
  22509. instructions are always used in place of the standard 'L32R'
  22510. instructions. The use of 'CONST16' is enabled by default only if
  22511. the 'L32R' instruction is not available.
  22512. '-mfused-madd'
  22513. '-mno-fused-madd'
  22514. Enable or disable use of fused multiply/add and multiply/subtract
  22515. instructions in the floating-point option. This has no effect if
  22516. the floating-point option is not also enabled. Disabling fused
  22517. multiply/add and multiply/subtract instructions forces the compiler
  22518. to use separate instructions for the multiply and add/subtract
  22519. operations. This may be desirable in some cases where strict IEEE
  22520. 754-compliant results are required: the fused multiply add/subtract
  22521. instructions do not round the intermediate result, thereby
  22522. producing results with _more_ bits of precision than specified by
  22523. the IEEE standard. Disabling fused multiply add/subtract
  22524. instructions also ensures that the program output is not sensitive
  22525. to the compiler's ability to combine multiply and add/subtract
  22526. operations.
  22527. '-mserialize-volatile'
  22528. '-mno-serialize-volatile'
  22529. When this option is enabled, GCC inserts 'MEMW' instructions before
  22530. 'volatile' memory references to guarantee sequential consistency.
  22531. The default is '-mserialize-volatile'. Use
  22532. '-mno-serialize-volatile' to omit the 'MEMW' instructions.
  22533. '-mforce-no-pic'
  22534. For targets, like GNU/Linux, where all user-mode Xtensa code must
  22535. be position-independent code (PIC), this option disables PIC for
  22536. compiling kernel code.
  22537. '-mtext-section-literals'
  22538. '-mno-text-section-literals'
  22539. These options control the treatment of literal pools. The default
  22540. is '-mno-text-section-literals', which places literals in a
  22541. separate section in the output file. This allows the literal pool
  22542. to be placed in a data RAM/ROM, and it also allows the linker to
  22543. combine literal pools from separate object files to remove
  22544. redundant literals and improve code size. With
  22545. '-mtext-section-literals', the literals are interspersed in the
  22546. text section in order to keep them as close as possible to their
  22547. references. This may be necessary for large assembly files.
  22548. Literals for each function are placed right before that function.
  22549. '-mauto-litpools'
  22550. '-mno-auto-litpools'
  22551. These options control the treatment of literal pools. The default
  22552. is '-mno-auto-litpools', which places literals in a separate
  22553. section in the output file unless '-mtext-section-literals' is
  22554. used. With '-mauto-litpools' the literals are interspersed in the
  22555. text section by the assembler. Compiler does not produce explicit
  22556. '.literal' directives and loads literals into registers with 'MOVI'
  22557. instructions instead of 'L32R' to let the assembler do relaxation
  22558. and place literals as necessary. This option allows assembler to
  22559. create several literal pools per function and assemble very big
  22560. functions, which may not be possible with
  22561. '-mtext-section-literals'.
  22562. '-mtarget-align'
  22563. '-mno-target-align'
  22564. When this option is enabled, GCC instructs the assembler to
  22565. automatically align instructions to reduce branch penalties at the
  22566. expense of some code density. The assembler attempts to widen
  22567. density instructions to align branch targets and the instructions
  22568. following call instructions. If there are not enough preceding
  22569. safe density instructions to align a target, no widening is
  22570. performed. The default is '-mtarget-align'. These options do not
  22571. affect the treatment of auto-aligned instructions like 'LOOP',
  22572. which the assembler always aligns, either by widening density
  22573. instructions or by inserting NOP instructions.
  22574. '-mlongcalls'
  22575. '-mno-longcalls'
  22576. When this option is enabled, GCC instructs the assembler to
  22577. translate direct calls to indirect calls unless it can determine
  22578. that the target of a direct call is in the range allowed by the
  22579. call instruction. This translation typically occurs for calls to
  22580. functions in other source files. Specifically, the assembler
  22581. translates a direct 'CALL' instruction into an 'L32R' followed by a
  22582. 'CALLX' instruction. The default is '-mno-longcalls'. This option
  22583. should be used in programs where the call target can potentially be
  22584. out of range. This option is implemented in the assembler, not the
  22585. compiler, so the assembly code generated by GCC still shows direct
  22586. call instructions--look at the disassembled object code to see the
  22587. actual instructions. Note that the assembler uses an indirect call
  22588. for every cross-file call, not just those that really are out of
  22589. range.
  22590. 
  22591. File: gcc.info, Node: zSeries Options, Prev: Xtensa Options, Up: Submodel Options
  22592. 3.19.63 zSeries Options
  22593. -----------------------
  22594. These are listed under *Note S/390 and zSeries Options::.
  22595. 
  22596. File: gcc.info, Node: Spec Files, Next: Environment Variables, Prev: Submodel Options, Up: Invoking GCC
  22597. 3.20 Specifying Subprocesses and the Switches to Pass to Them
  22598. =============================================================
  22599. 'gcc' is a driver program. It performs its job by invoking a sequence
  22600. of other programs to do the work of compiling, assembling and linking.
  22601. GCC interprets its command-line parameters and uses these to deduce
  22602. which programs it should invoke, and which command-line options it ought
  22603. to place on their command lines. This behavior is controlled by "spec
  22604. strings". In most cases there is one spec string for each program that
  22605. GCC can invoke, but a few programs have multiple spec strings to control
  22606. their behavior. The spec strings built into GCC can be overridden by
  22607. using the '-specs=' command-line switch to specify a spec file.
  22608. "Spec files" are plain-text files that are used to construct spec
  22609. strings. They consist of a sequence of directives separated by blank
  22610. lines. The type of directive is determined by the first non-whitespace
  22611. character on the line, which can be one of the following:
  22612. '%COMMAND'
  22613. Issues a COMMAND to the spec file processor. The commands that can
  22614. appear here are:
  22615. '%include <FILE>'
  22616. Search for FILE and insert its text at the current point in
  22617. the specs file.
  22618. '%include_noerr <FILE>'
  22619. Just like '%include', but do not generate an error message if
  22620. the include file cannot be found.
  22621. '%rename OLD_NAME NEW_NAME'
  22622. Rename the spec string OLD_NAME to NEW_NAME.
  22623. '*[SPEC_NAME]:'
  22624. This tells the compiler to create, override or delete the named
  22625. spec string. All lines after this directive up to the next
  22626. directive or blank line are considered to be the text for the spec
  22627. string. If this results in an empty string then the spec is
  22628. deleted. (Or, if the spec did not exist, then nothing happens.)
  22629. Otherwise, if the spec does not currently exist a new spec is
  22630. created. If the spec does exist then its contents are overridden
  22631. by the text of this directive, unless the first character of that
  22632. text is the '+' character, in which case the text is appended to
  22633. the spec.
  22634. '[SUFFIX]:'
  22635. Creates a new '[SUFFIX] spec' pair. All lines after this directive
  22636. and up to the next directive or blank line are considered to make
  22637. up the spec string for the indicated suffix. When the compiler
  22638. encounters an input file with the named suffix, it processes the
  22639. spec string in order to work out how to compile that file. For
  22640. example:
  22641. .ZZ:
  22642. z-compile -input %i
  22643. This says that any input file whose name ends in '.ZZ' should be
  22644. passed to the program 'z-compile', which should be invoked with the
  22645. command-line switch '-input' and with the result of performing the
  22646. '%i' substitution. (See below.)
  22647. As an alternative to providing a spec string, the text following a
  22648. suffix directive can be one of the following:
  22649. '@LANGUAGE'
  22650. This says that the suffix is an alias for a known LANGUAGE.
  22651. This is similar to using the '-x' command-line switch to GCC
  22652. to specify a language explicitly. For example:
  22653. .ZZ:
  22654. @c++
  22655. Says that .ZZ files are, in fact, C++ source files.
  22656. '#NAME'
  22657. This causes an error messages saying:
  22658. NAME compiler not installed on this system.
  22659. GCC already has an extensive list of suffixes built into it. This
  22660. directive adds an entry to the end of the list of suffixes, but
  22661. since the list is searched from the end backwards, it is
  22662. effectively possible to override earlier entries using this
  22663. technique.
  22664. GCC has the following spec strings built into it. Spec files can
  22665. override these strings or create their own. Note that individual
  22666. targets can also add their own spec strings to this list.
  22667. asm Options to pass to the assembler
  22668. asm_final Options to pass to the assembler post-processor
  22669. cpp Options to pass to the C preprocessor
  22670. cc1 Options to pass to the C compiler
  22671. cc1plus Options to pass to the C++ compiler
  22672. endfile Object files to include at the end of the link
  22673. link Options to pass to the linker
  22674. lib Libraries to include on the command line to the linker
  22675. libgcc Decides which GCC support library to pass to the linker
  22676. linker Sets the name of the linker
  22677. predefines Defines to be passed to the C preprocessor
  22678. signed_char Defines to pass to CPP to say whether char is signed
  22679. by default
  22680. startfile Object files to include at the start of the link
  22681. Here is a small example of a spec file:
  22682. %rename lib old_lib
  22683. *lib:
  22684. --start-group -lgcc -lc -leval1 --end-group %(old_lib)
  22685. This example renames the spec called 'lib' to 'old_lib' and then
  22686. overrides the previous definition of 'lib' with a new one. The new
  22687. definition adds in some extra command-line options before including the
  22688. text of the old definition.
  22689. "Spec strings" are a list of command-line options to be passed to their
  22690. corresponding program. In addition, the spec strings can contain
  22691. '%'-prefixed sequences to substitute variable text or to conditionally
  22692. insert text into the command line. Using these constructs it is
  22693. possible to generate quite complex command lines.
  22694. Here is a table of all defined '%'-sequences for spec strings. Note
  22695. that spaces are not generated automatically around the results of
  22696. expanding these sequences. Therefore you can concatenate them together
  22697. or combine them with constant text in a single argument.
  22698. '%%'
  22699. Substitute one '%' into the program name or argument.
  22700. '%i'
  22701. Substitute the name of the input file being processed.
  22702. '%b'
  22703. Substitute the basename of the input file being processed. This is
  22704. the substring up to (and not including) the last period and not
  22705. including the directory.
  22706. '%B'
  22707. This is the same as '%b', but include the file suffix (text after
  22708. the last period).
  22709. '%d'
  22710. Marks the argument containing or following the '%d' as a temporary
  22711. file name, so that that file is deleted if GCC exits successfully.
  22712. Unlike '%g', this contributes no text to the argument.
  22713. '%gSUFFIX'
  22714. Substitute a file name that has suffix SUFFIX and is chosen once
  22715. per compilation, and mark the argument in the same way as '%d'. To
  22716. reduce exposure to denial-of-service attacks, the file name is now
  22717. chosen in a way that is hard to predict even when previously chosen
  22718. file names are known. For example, '%g.s ... %g.o ... %g.s' might
  22719. turn into 'ccUVUUAU.s ccXYAXZ12.o ccUVUUAU.s'. SUFFIX matches the
  22720. regexp '[.A-Za-z]*' or the special string '%O', which is treated
  22721. exactly as if '%O' had been preprocessed. Previously, '%g' was
  22722. simply substituted with a file name chosen once per compilation,
  22723. without regard to any appended suffix (which was therefore treated
  22724. just like ordinary text), making such attacks more likely to
  22725. succeed.
  22726. '%uSUFFIX'
  22727. Like '%g', but generates a new temporary file name each time it
  22728. appears instead of once per compilation.
  22729. '%USUFFIX'
  22730. Substitutes the last file name generated with '%uSUFFIX',
  22731. generating a new one if there is no such last file name. In the
  22732. absence of any '%uSUFFIX', this is just like '%gSUFFIX', except
  22733. they don't share the same suffix _space_, so '%g.s ... %U.s ...
  22734. %g.s ... %U.s' involves the generation of two distinct file names,
  22735. one for each '%g.s' and another for each '%U.s'. Previously, '%U'
  22736. was simply substituted with a file name chosen for the previous
  22737. '%u', without regard to any appended suffix.
  22738. '%jSUFFIX'
  22739. Substitutes the name of the 'HOST_BIT_BUCKET', if any, and if it is
  22740. writable, and if '-save-temps' is not used; otherwise, substitute
  22741. the name of a temporary file, just like '%u'. This temporary file
  22742. is not meant for communication between processes, but rather as a
  22743. junk disposal mechanism.
  22744. '%|SUFFIX'
  22745. '%mSUFFIX'
  22746. Like '%g', except if '-pipe' is in effect. In that case '%|'
  22747. substitutes a single dash and '%m' substitutes nothing at all.
  22748. These are the two most common ways to instruct a program that it
  22749. should read from standard input or write to standard output. If
  22750. you need something more elaborate you can use an '%{pipe:'X'}'
  22751. construct: see for example 'gcc/fortran/lang-specs.h'.
  22752. '%.SUFFIX'
  22753. Substitutes .SUFFIX for the suffixes of a matched switch's args
  22754. when it is subsequently output with '%*'. SUFFIX is terminated by
  22755. the next space or %.
  22756. '%w'
  22757. Marks the argument containing or following the '%w' as the
  22758. designated output file of this compilation. This puts the argument
  22759. into the sequence of arguments that '%o' substitutes.
  22760. '%o'
  22761. Substitutes the names of all the output files, with spaces
  22762. automatically placed around them. You should write spaces around
  22763. the '%o' as well or the results are undefined. '%o' is for use in
  22764. the specs for running the linker. Input files whose names have no
  22765. recognized suffix are not compiled at all, but they are included
  22766. among the output files, so they are linked.
  22767. '%O'
  22768. Substitutes the suffix for object files. Note that this is handled
  22769. specially when it immediately follows '%g, %u, or %U', because of
  22770. the need for those to form complete file names. The handling is
  22771. such that '%O' is treated exactly as if it had already been
  22772. substituted, except that '%g, %u, and %U' do not currently support
  22773. additional SUFFIX characters following '%O' as they do following,
  22774. for example, '.o'.
  22775. '%p'
  22776. Substitutes the standard macro predefinitions for the current
  22777. target machine. Use this when running 'cpp'.
  22778. '%P'
  22779. Like '%p', but puts '__' before and after the name of each
  22780. predefined macro, except for macros that start with '__' or with
  22781. '_L', where L is an uppercase letter. This is for ISO C.
  22782. '%I'
  22783. Substitute any of '-iprefix' (made from 'GCC_EXEC_PREFIX'),
  22784. '-isysroot' (made from 'TARGET_SYSTEM_ROOT'), '-isystem' (made from
  22785. 'COMPILER_PATH' and '-B' options) and '-imultilib' as necessary.
  22786. '%s'
  22787. Current argument is the name of a library or startup file of some
  22788. sort. Search for that file in a standard list of directories and
  22789. substitute the full name found. The current working directory is
  22790. included in the list of directories scanned.
  22791. '%T'
  22792. Current argument is the name of a linker script. Search for that
  22793. file in the current list of directories to scan for libraries. If
  22794. the file is located insert a '--script' option into the command
  22795. line followed by the full path name found. If the file is not
  22796. found then generate an error message. Note: the current working
  22797. directory is not searched.
  22798. '%eSTR'
  22799. Print STR as an error message. STR is terminated by a newline.
  22800. Use this when inconsistent options are detected.
  22801. '%(NAME)'
  22802. Substitute the contents of spec string NAME at this point.
  22803. '%x{OPTION}'
  22804. Accumulate an option for '%X'.
  22805. '%X'
  22806. Output the accumulated linker options specified by '-Wl' or a '%x'
  22807. spec string.
  22808. '%Y'
  22809. Output the accumulated assembler options specified by '-Wa'.
  22810. '%Z'
  22811. Output the accumulated preprocessor options specified by '-Wp'.
  22812. '%a'
  22813. Process the 'asm' spec. This is used to compute the switches to be
  22814. passed to the assembler.
  22815. '%A'
  22816. Process the 'asm_final' spec. This is a spec string for passing
  22817. switches to an assembler post-processor, if such a program is
  22818. needed.
  22819. '%l'
  22820. Process the 'link' spec. This is the spec for computing the
  22821. command line passed to the linker. Typically it makes use of the
  22822. '%L %G %S %D and %E' sequences.
  22823. '%D'
  22824. Dump out a '-L' option for each directory that GCC believes might
  22825. contain startup files. If the target supports multilibs then the
  22826. current multilib directory is prepended to each of these paths.
  22827. '%L'
  22828. Process the 'lib' spec. This is a spec string for deciding which
  22829. libraries are included on the command line to the linker.
  22830. '%G'
  22831. Process the 'libgcc' spec. This is a spec string for deciding
  22832. which GCC support library is included on the command line to the
  22833. linker.
  22834. '%S'
  22835. Process the 'startfile' spec. This is a spec for deciding which
  22836. object files are the first ones passed to the linker. Typically
  22837. this might be a file named 'crt0.o'.
  22838. '%E'
  22839. Process the 'endfile' spec. This is a spec string that specifies
  22840. the last object files that are passed to the linker.
  22841. '%C'
  22842. Process the 'cpp' spec. This is used to construct the arguments to
  22843. be passed to the C preprocessor.
  22844. '%1'
  22845. Process the 'cc1' spec. This is used to construct the options to
  22846. be passed to the actual C compiler ('cc1').
  22847. '%2'
  22848. Process the 'cc1plus' spec. This is used to construct the options
  22849. to be passed to the actual C++ compiler ('cc1plus').
  22850. '%*'
  22851. Substitute the variable part of a matched option. See below. Note
  22852. that each comma in the substituted string is replaced by a single
  22853. space.
  22854. '%<S'
  22855. Remove all occurrences of '-S' from the command line. Note--this
  22856. command is position dependent. '%' commands in the spec string
  22857. before this one see '-S', '%' commands in the spec string after
  22858. this one do not.
  22859. '%:FUNCTION(ARGS)'
  22860. Call the named function FUNCTION, passing it ARGS. ARGS is first
  22861. processed as a nested spec string, then split into an argument
  22862. vector in the usual fashion. The function returns a string which
  22863. is processed as if it had appeared literally as part of the current
  22864. spec.
  22865. The following built-in spec functions are provided:
  22866. 'getenv'
  22867. The 'getenv' spec function takes two arguments: an environment
  22868. variable name and a string. If the environment variable is
  22869. not defined, a fatal error is issued. Otherwise, the return
  22870. value is the value of the environment variable concatenated
  22871. with the string. For example, if 'TOPDIR' is defined as
  22872. '/path/to/top', then:
  22873. %:getenv(TOPDIR /include)
  22874. expands to '/path/to/top/include'.
  22875. 'if-exists'
  22876. The 'if-exists' spec function takes one argument, an absolute
  22877. pathname to a file. If the file exists, 'if-exists' returns
  22878. the pathname. Here is a small example of its usage:
  22879. *startfile:
  22880. crt0%O%s %:if-exists(crti%O%s) crtbegin%O%s
  22881. 'if-exists-else'
  22882. The 'if-exists-else' spec function is similar to the
  22883. 'if-exists' spec function, except that it takes two arguments.
  22884. The first argument is an absolute pathname to a file. If the
  22885. file exists, 'if-exists-else' returns the pathname. If it
  22886. does not exist, it returns the second argument. This way,
  22887. 'if-exists-else' can be used to select one file or another,
  22888. based on the existence of the first. Here is a small example
  22889. of its usage:
  22890. *startfile:
  22891. crt0%O%s %:if-exists(crti%O%s) \
  22892. %:if-exists-else(crtbeginT%O%s crtbegin%O%s)
  22893. 'replace-outfile'
  22894. The 'replace-outfile' spec function takes two arguments. It
  22895. looks for the first argument in the outfiles array and
  22896. replaces it with the second argument. Here is a small example
  22897. of its usage:
  22898. %{fgnu-runtime:%:replace-outfile(-lobjc -lobjc-gnu)}
  22899. 'remove-outfile'
  22900. The 'remove-outfile' spec function takes one argument. It
  22901. looks for the first argument in the outfiles array and removes
  22902. it. Here is a small example its usage:
  22903. %:remove-outfile(-lm)
  22904. 'pass-through-libs'
  22905. The 'pass-through-libs' spec function takes any number of
  22906. arguments. It finds any '-l' options and any non-options
  22907. ending in '.a' (which it assumes are the names of linker input
  22908. library archive files) and returns a result containing all the
  22909. found arguments each prepended by '-plugin-opt=-pass-through='
  22910. and joined by spaces. This list is intended to be passed to
  22911. the LTO linker plugin.
  22912. %:pass-through-libs(%G %L %G)
  22913. 'print-asm-header'
  22914. The 'print-asm-header' function takes no arguments and simply
  22915. prints a banner like:
  22916. Assembler options
  22917. =================
  22918. Use "-Wa,OPTION" to pass "OPTION" to the assembler.
  22919. It is used to separate compiler options from assembler options
  22920. in the '--target-help' output.
  22921. '%{S}'
  22922. Substitutes the '-S' switch, if that switch is given to GCC. If
  22923. that switch is not specified, this substitutes nothing. Note that
  22924. the leading dash is omitted when specifying this option, and it is
  22925. automatically inserted if the substitution is performed. Thus the
  22926. spec string '%{foo}' matches the command-line option '-foo' and
  22927. outputs the command-line option '-foo'.
  22928. '%W{S}'
  22929. Like %{'S'} but mark last argument supplied within as a file to be
  22930. deleted on failure.
  22931. '%{S*}'
  22932. Substitutes all the switches specified to GCC whose names start
  22933. with '-S', but which also take an argument. This is used for
  22934. switches like '-o', '-D', '-I', etc. GCC considers '-o foo' as
  22935. being one switch whose name starts with 'o'. %{o*} substitutes
  22936. this text, including the space. Thus two arguments are generated.
  22937. '%{S*&T*}'
  22938. Like %{'S'*}, but preserve order of 'S' and 'T' options (the order
  22939. of 'S' and 'T' in the spec is not significant). There can be any
  22940. number of ampersand-separated variables; for each the wild card is
  22941. optional. Useful for CPP as '%{D*&U*&A*}'.
  22942. '%{S:X}'
  22943. Substitutes 'X', if the '-S' switch is given to GCC.
  22944. '%{!S:X}'
  22945. Substitutes 'X', if the '-S' switch is _not_ given to GCC.
  22946. '%{S*:X}'
  22947. Substitutes 'X' if one or more switches whose names start with '-S'
  22948. are specified to GCC. Normally 'X' is substituted only once, no
  22949. matter how many such switches appeared. However, if '%*' appears
  22950. somewhere in 'X', then 'X' is substituted once for each matching
  22951. switch, with the '%*' replaced by the part of that switch matching
  22952. the '*'.
  22953. If '%*' appears as the last part of a spec sequence then a space is
  22954. added after the end of the last substitution. If there is more
  22955. text in the sequence, however, then a space is not generated. This
  22956. allows the '%*' substitution to be used as part of a larger string.
  22957. For example, a spec string like this:
  22958. %{mcu=*:--script=%*/memory.ld}
  22959. when matching an option like '-mcu=newchip' produces:
  22960. --script=newchip/memory.ld
  22961. '%{.S:X}'
  22962. Substitutes 'X', if processing a file with suffix 'S'.
  22963. '%{!.S:X}'
  22964. Substitutes 'X', if _not_ processing a file with suffix 'S'.
  22965. '%{,S:X}'
  22966. Substitutes 'X', if processing a file for language 'S'.
  22967. '%{!,S:X}'
  22968. Substitutes 'X', if not processing a file for language 'S'.
  22969. '%{S|P:X}'
  22970. Substitutes 'X' if either '-S' or '-P' is given to GCC. This may
  22971. be combined with '!', '.', ',', and '*' sequences as well, although
  22972. they have a stronger binding than the '|'. If '%*' appears in 'X',
  22973. all of the alternatives must be starred, and only the first
  22974. matching alternative is substituted.
  22975. For example, a spec string like this:
  22976. %{.c:-foo} %{!.c:-bar} %{.c|d:-baz} %{!.c|d:-boggle}
  22977. outputs the following command-line options from the following input
  22978. command-line options:
  22979. fred.c -foo -baz
  22980. jim.d -bar -boggle
  22981. -d fred.c -foo -baz -boggle
  22982. -d jim.d -bar -baz -boggle
  22983. '%{S:X; T:Y; :D}'
  22984. If 'S' is given to GCC, substitutes 'X'; else if 'T' is given to
  22985. GCC, substitutes 'Y'; else substitutes 'D'. There can be as many
  22986. clauses as you need. This may be combined with '.', ',', '!', '|',
  22987. and '*' as needed.
  22988. The switch matching text 'S' in a '%{S}', '%{S:X}' or similar construct
  22989. can use a backslash to ignore the special meaning of the character
  22990. following it, thus allowing literal matching of a character that is
  22991. otherwise specially treated. For example, '%{std=iso9899\:1999:X}'
  22992. substitutes 'X' if the '-std=iso9899:1999' option is given.
  22993. The conditional text 'X' in a '%{S:X}' or similar construct may contain
  22994. other nested '%' constructs or spaces, or even newlines. They are
  22995. processed as usual, as described above. Trailing white space in 'X' is
  22996. ignored. White space may also appear anywhere on the left side of the
  22997. colon in these constructs, except between '.' or '*' and the
  22998. corresponding word.
  22999. The '-O', '-f', '-m', and '-W' switches are handled specifically in
  23000. these constructs. If another value of '-O' or the negated form of a
  23001. '-f', '-m', or '-W' switch is found later in the command line, the
  23002. earlier switch value is ignored, except with {'S'*} where 'S' is just
  23003. one letter, which passes all matching options.
  23004. The character '|' at the beginning of the predicate text is used to
  23005. indicate that a command should be piped to the following command, but
  23006. only if '-pipe' is specified.
  23007. It is built into GCC which switches take arguments and which do not.
  23008. (You might think it would be useful to generalize this to allow each
  23009. compiler's spec to say which switches take arguments. But this cannot
  23010. be done in a consistent fashion. GCC cannot even decide which input
  23011. files have been specified without knowing which switches take arguments,
  23012. and it must know which input files to compile in order to tell which
  23013. compilers to run).
  23014. GCC also knows implicitly that arguments starting in '-l' are to be
  23015. treated as compiler output files, and passed to the linker in their
  23016. proper position among the other output files.
  23017. 
  23018. File: gcc.info, Node: Environment Variables, Next: Precompiled Headers, Prev: Spec Files, Up: Invoking GCC
  23019. 3.21 Environment Variables Affecting GCC
  23020. ========================================
  23021. This section describes several environment variables that affect how GCC
  23022. operates. Some of them work by specifying directories or prefixes to
  23023. use when searching for various kinds of files. Some are used to specify
  23024. other aspects of the compilation environment.
  23025. Note that you can also specify places to search using options such as
  23026. '-B', '-I' and '-L' (*note Directory Options::). These take precedence
  23027. over places specified using environment variables, which in turn take
  23028. precedence over those specified by the configuration of GCC. *Note
  23029. Controlling the Compilation Driver 'gcc': (gccint)Driver.
  23030. 'LANG'
  23031. 'LC_CTYPE'
  23032. 'LC_MESSAGES'
  23033. 'LC_ALL'
  23034. These environment variables control the way that GCC uses
  23035. localization information which allows GCC to work with different
  23036. national conventions. GCC inspects the locale categories
  23037. 'LC_CTYPE' and 'LC_MESSAGES' if it has been configured to do so.
  23038. These locale categories can be set to any value supported by your
  23039. installation. A typical value is 'en_GB.UTF-8' for English in the
  23040. United Kingdom encoded in UTF-8.
  23041. The 'LC_CTYPE' environment variable specifies character
  23042. classification. GCC uses it to determine the character boundaries
  23043. in a string; this is needed for some multibyte encodings that
  23044. contain quote and escape characters that are otherwise interpreted
  23045. as a string end or escape.
  23046. The 'LC_MESSAGES' environment variable specifies the language to
  23047. use in diagnostic messages.
  23048. If the 'LC_ALL' environment variable is set, it overrides the value
  23049. of 'LC_CTYPE' and 'LC_MESSAGES'; otherwise, 'LC_CTYPE' and
  23050. 'LC_MESSAGES' default to the value of the 'LANG' environment
  23051. variable. If none of these variables are set, GCC defaults to
  23052. traditional C English behavior.
  23053. 'TMPDIR'
  23054. If 'TMPDIR' is set, it specifies the directory to use for temporary
  23055. files. GCC uses temporary files to hold the output of one stage of
  23056. compilation which is to be used as input to the next stage: for
  23057. example, the output of the preprocessor, which is the input to the
  23058. compiler proper.
  23059. 'GCC_COMPARE_DEBUG'
  23060. Setting 'GCC_COMPARE_DEBUG' is nearly equivalent to passing
  23061. '-fcompare-debug' to the compiler driver. See the documentation of
  23062. this option for more details.
  23063. 'GCC_EXEC_PREFIX'
  23064. If 'GCC_EXEC_PREFIX' is set, it specifies a prefix to use in the
  23065. names of the subprograms executed by the compiler. No slash is
  23066. added when this prefix is combined with the name of a subprogram,
  23067. but you can specify a prefix that ends with a slash if you wish.
  23068. If 'GCC_EXEC_PREFIX' is not set, GCC attempts to figure out an
  23069. appropriate prefix to use based on the pathname it is invoked with.
  23070. If GCC cannot find the subprogram using the specified prefix, it
  23071. tries looking in the usual places for the subprogram.
  23072. The default value of 'GCC_EXEC_PREFIX' is 'PREFIX/lib/gcc/' where
  23073. PREFIX is the prefix to the installed compiler. In many cases
  23074. PREFIX is the value of 'prefix' when you ran the 'configure'
  23075. script.
  23076. Other prefixes specified with '-B' take precedence over this
  23077. prefix.
  23078. This prefix is also used for finding files such as 'crt0.o' that
  23079. are used for linking.
  23080. In addition, the prefix is used in an unusual way in finding the
  23081. directories to search for header files. For each of the standard
  23082. directories whose name normally begins with '/usr/local/lib/gcc'
  23083. (more precisely, with the value of 'GCC_INCLUDE_DIR'), GCC tries
  23084. replacing that beginning with the specified prefix to produce an
  23085. alternate directory name. Thus, with '-Bfoo/', GCC searches
  23086. 'foo/bar' just before it searches the standard directory
  23087. '/usr/local/lib/bar'. If a standard directory begins with the
  23088. configured PREFIX then the value of PREFIX is replaced by
  23089. 'GCC_EXEC_PREFIX' when looking for header files.
  23090. 'COMPILER_PATH'
  23091. The value of 'COMPILER_PATH' is a colon-separated list of
  23092. directories, much like 'PATH'. GCC tries the directories thus
  23093. specified when searching for subprograms, if it cannot find the
  23094. subprograms using 'GCC_EXEC_PREFIX'.
  23095. 'LIBRARY_PATH'
  23096. The value of 'LIBRARY_PATH' is a colon-separated list of
  23097. directories, much like 'PATH'. When configured as a native
  23098. compiler, GCC tries the directories thus specified when searching
  23099. for special linker files, if it cannot find them using
  23100. 'GCC_EXEC_PREFIX'. Linking using GCC also uses these directories
  23101. when searching for ordinary libraries for the '-l' option (but
  23102. directories specified with '-L' come first).
  23103. 'LANG'
  23104. This variable is used to pass locale information to the compiler.
  23105. One way in which this information is used is to determine the
  23106. character set to be used when character literals, string literals
  23107. and comments are parsed in C and C++. When the compiler is
  23108. configured to allow multibyte characters, the following values for
  23109. 'LANG' are recognized:
  23110. 'C-JIS'
  23111. Recognize JIS characters.
  23112. 'C-SJIS'
  23113. Recognize SJIS characters.
  23114. 'C-EUCJP'
  23115. Recognize EUCJP characters.
  23116. If 'LANG' is not defined, or if it has some other value, then the
  23117. compiler uses 'mblen' and 'mbtowc' as defined by the default locale
  23118. to recognize and translate multibyte characters.
  23119. Some additional environment variables affect the behavior of the
  23120. preprocessor.
  23121. 'CPATH'
  23122. 'C_INCLUDE_PATH'
  23123. 'CPLUS_INCLUDE_PATH'
  23124. 'OBJC_INCLUDE_PATH'
  23125. Each variable's value is a list of directories separated by a
  23126. special character, much like 'PATH', in which to look for header
  23127. files. The special character, 'PATH_SEPARATOR', is
  23128. target-dependent and determined at GCC build time. For Microsoft
  23129. Windows-based targets it is a semicolon, and for almost all other
  23130. targets it is a colon.
  23131. 'CPATH' specifies a list of directories to be searched as if
  23132. specified with '-I', but after any paths given with '-I' options on
  23133. the command line. This environment variable is used regardless of
  23134. which language is being preprocessed.
  23135. The remaining environment variables apply only when preprocessing
  23136. the particular language indicated. Each specifies a list of
  23137. directories to be searched as if specified with '-isystem', but
  23138. after any paths given with '-isystem' options on the command line.
  23139. In all these variables, an empty element instructs the compiler to
  23140. search its current working directory. Empty elements can appear at
  23141. the beginning or end of a path. For instance, if the value of
  23142. 'CPATH' is ':/special/include', that has the same effect as
  23143. '-I. -I/special/include'.
  23144. 'DEPENDENCIES_OUTPUT'
  23145. If this variable is set, its value specifies how to output
  23146. dependencies for Make based on the non-system header files
  23147. processed by the compiler. System header files are ignored in the
  23148. dependency output.
  23149. The value of 'DEPENDENCIES_OUTPUT' can be just a file name, in
  23150. which case the Make rules are written to that file, guessing the
  23151. target name from the source file name. Or the value can have the
  23152. form 'FILE TARGET', in which case the rules are written to file
  23153. FILE using TARGET as the target name.
  23154. In other words, this environment variable is equivalent to
  23155. combining the options '-MM' and '-MF' (*note Preprocessor
  23156. Options::), with an optional '-MT' switch too.
  23157. 'SUNPRO_DEPENDENCIES'
  23158. This variable is the same as 'DEPENDENCIES_OUTPUT' (see above),
  23159. except that system header files are not ignored, so it implies '-M'
  23160. rather than '-MM'. However, the dependence on the main input file
  23161. is omitted. *Note Preprocessor Options::.
  23162. 'SOURCE_DATE_EPOCH'
  23163. If this variable is set, its value specifies a UNIX timestamp to be
  23164. used in replacement of the current date and time in the '__DATE__'
  23165. and '__TIME__' macros, so that the embedded timestamps become
  23166. reproducible.
  23167. The value of 'SOURCE_DATE_EPOCH' must be a UNIX timestamp, defined
  23168. as the number of seconds (excluding leap seconds) since 01 Jan 1970
  23169. 00:00:00 represented in ASCII; identical to the output of ''date
  23170. +%s'' on GNU/Linux and other systems that support the '%s'
  23171. extension in the 'date' command.
  23172. The value should be a known timestamp such as the last modification
  23173. time of the source or package and it should be set by the build
  23174. process.
  23175. 
  23176. File: gcc.info, Node: Precompiled Headers, Prev: Environment Variables, Up: Invoking GCC
  23177. 3.22 Using Precompiled Headers
  23178. ==============================
  23179. Often large projects have many header files that are included in every
  23180. source file. The time the compiler takes to process these header files
  23181. over and over again can account for nearly all of the time required to
  23182. build the project. To make builds faster, GCC allows you to
  23183. "precompile" a header file.
  23184. To create a precompiled header file, simply compile it as you would any
  23185. other file, if necessary using the '-x' option to make the driver treat
  23186. it as a C or C++ header file. You may want to use a tool like 'make' to
  23187. keep the precompiled header up-to-date when the headers it contains
  23188. change.
  23189. A precompiled header file is searched for when '#include' is seen in
  23190. the compilation. As it searches for the included file (*note Search
  23191. Path: (cpp)Search Path.) the compiler looks for a precompiled header in
  23192. each directory just before it looks for the include file in that
  23193. directory. The name searched for is the name specified in the
  23194. '#include' with '.gch' appended. If the precompiled header file cannot
  23195. be used, it is ignored.
  23196. For instance, if you have '#include "all.h"', and you have 'all.h.gch'
  23197. in the same directory as 'all.h', then the precompiled header file is
  23198. used if possible, and the original header is used otherwise.
  23199. Alternatively, you might decide to put the precompiled header file in a
  23200. directory and use '-I' to ensure that directory is searched before (or
  23201. instead of) the directory containing the original header. Then, if you
  23202. want to check that the precompiled header file is always used, you can
  23203. put a file of the same name as the original header in this directory
  23204. containing an '#error' command.
  23205. This also works with '-include'. So yet another way to use precompiled
  23206. headers, good for projects not designed with precompiled header files in
  23207. mind, is to simply take most of the header files used by a project,
  23208. include them from another header file, precompile that header file, and
  23209. '-include' the precompiled header. If the header files have guards
  23210. against multiple inclusion, they are skipped because they've already
  23211. been included (in the precompiled header).
  23212. If you need to precompile the same header file for different languages,
  23213. targets, or compiler options, you can instead make a _directory_ named
  23214. like 'all.h.gch', and put each precompiled header in the directory,
  23215. perhaps using '-o'. It doesn't matter what you call the files in the
  23216. directory; every precompiled header in the directory is considered. The
  23217. first precompiled header encountered in the directory that is valid for
  23218. this compilation is used; they're searched in no particular order.
  23219. There are many other possibilities, limited only by your imagination,
  23220. good sense, and the constraints of your build system.
  23221. A precompiled header file can be used only when these conditions apply:
  23222. * Only one precompiled header can be used in a particular
  23223. compilation.
  23224. * A precompiled header cannot be used once the first C token is seen.
  23225. You can have preprocessor directives before a precompiled header;
  23226. you cannot include a precompiled header from inside another header.
  23227. * The precompiled header file must be produced for the same language
  23228. as the current compilation. You cannot use a C precompiled header
  23229. for a C++ compilation.
  23230. * The precompiled header file must have been produced by the same
  23231. compiler binary as the current compilation is using.
  23232. * Any macros defined before the precompiled header is included must
  23233. either be defined in the same way as when the precompiled header
  23234. was generated, or must not affect the precompiled header, which
  23235. usually means that they don't appear in the precompiled header at
  23236. all.
  23237. The '-D' option is one way to define a macro before a precompiled
  23238. header is included; using a '#define' can also do it. There are
  23239. also some options that define macros implicitly, like '-O' and
  23240. '-Wdeprecated'; the same rule applies to macros defined this way.
  23241. * If debugging information is output when using the precompiled
  23242. header, using '-g' or similar, the same kind of debugging
  23243. information must have been output when building the precompiled
  23244. header. However, a precompiled header built using '-g' can be used
  23245. in a compilation when no debugging information is being output.
  23246. * The same '-m' options must generally be used when building and
  23247. using the precompiled header. *Note Submodel Options::, for any
  23248. cases where this rule is relaxed.
  23249. * Each of the following options must be the same when building and
  23250. using the precompiled header:
  23251. -fexceptions
  23252. * Some other command-line options starting with '-f', '-p', or '-O'
  23253. must be defined in the same way as when the precompiled header was
  23254. generated. At present, it's not clear which options are safe to
  23255. change and which are not; the safest choice is to use exactly the
  23256. same options when generating and using the precompiled header. The
  23257. following are known to be safe:
  23258. -fmessage-length= -fpreprocessed -fsched-interblock
  23259. -fsched-spec -fsched-spec-load -fsched-spec-load-dangerous
  23260. -fsched-verbose=NUMBER -fschedule-insns -fvisibility=
  23261. -pedantic-errors
  23262. * Address space layout randomization (ASLR) can lead to not binary
  23263. identical PCH files. If you rely on stable PCH file contents
  23264. disable ASLR when generating PCH files.
  23265. For all of these except the last, the compiler automatically ignores
  23266. the precompiled header if the conditions aren't met. If you find an
  23267. option combination that doesn't work and doesn't cause the precompiled
  23268. header to be ignored, please consider filing a bug report, see *note
  23269. Bugs::.
  23270. If you do use differing options when generating and using the
  23271. precompiled header, the actual behavior is a mixture of the behavior for
  23272. the options. For instance, if you use '-g' to generate the precompiled
  23273. header but not when using it, you may or may not get debugging
  23274. information for routines in the precompiled header.
  23275. 
  23276. File: gcc.info, Node: C Implementation, Next: C++ Implementation, Prev: Invoking GCC, Up: Top
  23277. 4 C Implementation-Defined Behavior
  23278. ***********************************
  23279. A conforming implementation of ISO C is required to document its choice
  23280. of behavior in each of the areas that are designated "implementation
  23281. defined". The following lists all such areas, along with the section
  23282. numbers from the ISO/IEC 9899:1990, ISO/IEC 9899:1999 and ISO/IEC
  23283. 9899:2011 standards. Some areas are only implementation-defined in one
  23284. version of the standard.
  23285. Some choices depend on the externally determined ABI for the platform
  23286. (including standard character encodings) which GCC follows; these are
  23287. listed as "determined by ABI" below. *Note Binary Compatibility:
  23288. Compatibility, and <http://gcc.gnu.org/readings.html>. Some choices are
  23289. documented in the preprocessor manual. *Note Implementation-defined
  23290. behavior: (cpp)Implementation-defined behavior. Some choices are made
  23291. by the library and operating system (or other environment when compiling
  23292. for a freestanding environment); refer to their documentation for
  23293. details.
  23294. * Menu:
  23295. * Translation implementation::
  23296. * Environment implementation::
  23297. * Identifiers implementation::
  23298. * Characters implementation::
  23299. * Integers implementation::
  23300. * Floating point implementation::
  23301. * Arrays and pointers implementation::
  23302. * Hints implementation::
  23303. * Structures unions enumerations and bit-fields implementation::
  23304. * Qualifiers implementation::
  23305. * Declarators implementation::
  23306. * Statements implementation::
  23307. * Preprocessing directives implementation::
  23308. * Library functions implementation::
  23309. * Architecture implementation::
  23310. * Locale-specific behavior implementation::
  23311. 
  23312. File: gcc.info, Node: Translation implementation, Next: Environment implementation, Up: C Implementation
  23313. 4.1 Translation
  23314. ===============
  23315. * 'How a diagnostic is identified (C90 3.7, C99 and C11 3.10, C90,
  23316. C99 and C11 5.1.1.3).'
  23317. Diagnostics consist of all the output sent to stderr by GCC.
  23318. * 'Whether each nonempty sequence of white-space characters other
  23319. than new-line is retained or replaced by one space character in
  23320. translation phase 3 (C90, C99 and C11 5.1.1.2).'
  23321. *Note Implementation-defined behavior: (cpp)Implementation-defined
  23322. behavior.
  23323. 
  23324. File: gcc.info, Node: Environment implementation, Next: Identifiers implementation, Prev: Translation implementation, Up: C Implementation
  23325. 4.2 Environment
  23326. ===============
  23327. The behavior of most of these points are dependent on the implementation
  23328. of the C library, and are not defined by GCC itself.
  23329. * 'The mapping between physical source file multibyte characters and
  23330. the source character set in translation phase 1 (C90, C99 and C11
  23331. 5.1.1.2).'
  23332. *Note Implementation-defined behavior: (cpp)Implementation-defined
  23333. behavior.
  23334. 
  23335. File: gcc.info, Node: Identifiers implementation, Next: Characters implementation, Prev: Environment implementation, Up: C Implementation
  23336. 4.3 Identifiers
  23337. ===============
  23338. * 'Which additional multibyte characters may appear in identifiers
  23339. and their correspondence to universal character names (C99 and C11
  23340. 6.4.2).'
  23341. *Note Implementation-defined behavior: (cpp)Implementation-defined
  23342. behavior.
  23343. * 'The number of significant initial characters in an identifier (C90
  23344. 6.1.2, C90, C99 and C11 5.2.4.1, C99 and C11 6.4.2).'
  23345. For internal names, all characters are significant. For external
  23346. names, the number of significant characters are defined by the
  23347. linker; for almost all targets, all characters are significant.
  23348. * 'Whether case distinctions are significant in an identifier with
  23349. external linkage (C90 6.1.2).'
  23350. This is a property of the linker. C99 and C11 require that case
  23351. distinctions are always significant in identifiers with external
  23352. linkage and systems without this property are not supported by GCC.
  23353. 
  23354. File: gcc.info, Node: Characters implementation, Next: Integers implementation, Prev: Identifiers implementation, Up: C Implementation
  23355. 4.4 Characters
  23356. ==============
  23357. * 'The number of bits in a byte (C90 3.4, C99 and C11 3.6).'
  23358. Determined by ABI.
  23359. * 'The values of the members of the execution character set (C90, C99
  23360. and C11 5.2.1).'
  23361. Determined by ABI.
  23362. * 'The unique value of the member of the execution character set
  23363. produced for each of the standard alphabetic escape sequences (C90,
  23364. C99 and C11 5.2.2).'
  23365. Determined by ABI.
  23366. * 'The value of a 'char' object into which has been stored any
  23367. character other than a member of the basic execution character set
  23368. (C90 6.1.2.5, C99 and C11 6.2.5).'
  23369. Determined by ABI.
  23370. * 'Which of 'signed char' or 'unsigned char' has the same range,
  23371. representation, and behavior as "plain" 'char' (C90 6.1.2.5, C90
  23372. 6.2.1.1, C99 and C11 6.2.5, C99 and C11 6.3.1.1).'
  23373. Determined by ABI. The options '-funsigned-char' and
  23374. '-fsigned-char' change the default. *Note Options Controlling C
  23375. Dialect: C Dialect Options.
  23376. * 'The mapping of members of the source character set (in character
  23377. constants and string literals) to members of the execution
  23378. character set (C90 6.1.3.4, C99 and C11 6.4.4.4, C90, C99 and C11
  23379. 5.1.1.2).'
  23380. Determined by ABI.
  23381. * 'The value of an integer character constant containing more than
  23382. one character or containing a character or escape sequence that
  23383. does not map to a single-byte execution character (C90 6.1.3.4, C99
  23384. and C11 6.4.4.4).'
  23385. *Note Implementation-defined behavior: (cpp)Implementation-defined
  23386. behavior.
  23387. * 'The value of a wide character constant containing more than one
  23388. multibyte character or a single multibyte character that maps to
  23389. multiple members of the extended execution character set, or
  23390. containing a multibyte character or escape sequence not represented
  23391. in the extended execution character set (C90 6.1.3.4, C99 and C11
  23392. 6.4.4.4).'
  23393. *Note Implementation-defined behavior: (cpp)Implementation-defined
  23394. behavior.
  23395. * 'The current locale used to convert a wide character constant
  23396. consisting of a single multibyte character that maps to a member of
  23397. the extended execution character set into a corresponding wide
  23398. character code (C90 6.1.3.4, C99 and C11 6.4.4.4).'
  23399. *Note Implementation-defined behavior: (cpp)Implementation-defined
  23400. behavior.
  23401. * 'Whether differently-prefixed wide string literal tokens can be
  23402. concatenated and, if so, the treatment of the resulting multibyte
  23403. character sequence (C11 6.4.5).'
  23404. Such tokens may not be concatenated.
  23405. * 'The current locale used to convert a wide string literal into
  23406. corresponding wide character codes (C90 6.1.4, C99 and C11 6.4.5).'
  23407. *Note Implementation-defined behavior: (cpp)Implementation-defined
  23408. behavior.
  23409. * 'The value of a string literal containing a multibyte character or
  23410. escape sequence not represented in the execution character set (C90
  23411. 6.1.4, C99 and C11 6.4.5).'
  23412. *Note Implementation-defined behavior: (cpp)Implementation-defined
  23413. behavior.
  23414. * 'The encoding of any of 'wchar_t', 'char16_t', and 'char32_t' where
  23415. the corresponding standard encoding macro ('__STDC_ISO_10646__',
  23416. '__STDC_UTF_16__', or '__STDC_UTF_32__') is not defined (C11
  23417. 6.10.8.2).'
  23418. *Note Implementation-defined behavior: (cpp)Implementation-defined
  23419. behavior. 'char16_t' and 'char32_t' literals are always encoded in
  23420. UTF-16 and UTF-32 respectively.
  23421. 
  23422. File: gcc.info, Node: Integers implementation, Next: Floating point implementation, Prev: Characters implementation, Up: C Implementation
  23423. 4.5 Integers
  23424. ============
  23425. * 'Any extended integer types that exist in the implementation (C99
  23426. and C11 6.2.5).'
  23427. GCC does not support any extended integer types.
  23428. * 'Whether signed integer types are represented using sign and
  23429. magnitude, two's complement, or one's complement, and whether the
  23430. extraordinary value is a trap representation or an ordinary value
  23431. (C99 and C11 6.2.6.2).'
  23432. GCC supports only two's complement integer types, and all bit
  23433. patterns are ordinary values.
  23434. * 'The rank of any extended integer type relative to another extended
  23435. integer type with the same precision (C99 and C11 6.3.1.1).'
  23436. GCC does not support any extended integer types.
  23437. * 'The result of, or the signal raised by, converting an integer to a
  23438. signed integer type when the value cannot be represented in an
  23439. object of that type (C90 6.2.1.2, C99 and C11 6.3.1.3).'
  23440. For conversion to a type of width N, the value is reduced modulo
  23441. 2^N to be within range of the type; no signal is raised.
  23442. * 'The results of some bitwise operations on signed integers (C90
  23443. 6.3, C99 and C11 6.5).'
  23444. Bitwise operators act on the representation of the value including
  23445. both the sign and value bits, where the sign bit is considered
  23446. immediately above the highest-value value bit. Signed '>>' acts on
  23447. negative numbers by sign extension.
  23448. As an extension to the C language, GCC does not use the latitude
  23449. given in C99 and C11 only to treat certain aspects of signed '<<'
  23450. as undefined. However, '-fsanitize=shift' (and
  23451. '-fsanitize=undefined') will diagnose such cases. They are also
  23452. diagnosed where constant expressions are required.
  23453. * 'The sign of the remainder on integer division (C90 6.3.5).'
  23454. GCC always follows the C99 and C11 requirement that the result of
  23455. division is truncated towards zero.
  23456. 
  23457. File: gcc.info, Node: Floating point implementation, Next: Arrays and pointers implementation, Prev: Integers implementation, Up: C Implementation
  23458. 4.6 Floating Point
  23459. ==================
  23460. * 'The accuracy of the floating-point operations and of the library
  23461. functions in '<math.h>' and '<complex.h>' that return
  23462. floating-point results (C90, C99 and C11 5.2.4.2.2).'
  23463. The accuracy is unknown.
  23464. * 'The rounding behaviors characterized by non-standard values of
  23465. 'FLT_ROUNDS' (C90, C99 and C11 5.2.4.2.2).'
  23466. GCC does not use such values.
  23467. * 'The evaluation methods characterized by non-standard negative
  23468. values of 'FLT_EVAL_METHOD' (C99 and C11 5.2.4.2.2).'
  23469. GCC does not use such values.
  23470. * 'The direction of rounding when an integer is converted to a
  23471. floating-point number that cannot exactly represent the original
  23472. value (C90 6.2.1.3, C99 and C11 6.3.1.4).'
  23473. C99 Annex F is followed.
  23474. * 'The direction of rounding when a floating-point number is
  23475. converted to a narrower floating-point number (C90 6.2.1.4, C99 and
  23476. C11 6.3.1.5).'
  23477. C99 Annex F is followed.
  23478. * 'How the nearest representable value or the larger or smaller
  23479. representable value immediately adjacent to the nearest
  23480. representable value is chosen for certain floating constants (C90
  23481. 6.1.3.1, C99 and C11 6.4.4.2).'
  23482. C99 Annex F is followed.
  23483. * 'Whether and how floating expressions are contracted when not
  23484. disallowed by the 'FP_CONTRACT' pragma (C99 and C11 6.5).'
  23485. Expressions are currently only contracted if '-ffp-contract=fast',
  23486. '-funsafe-math-optimizations' or '-ffast-math' are used. This is
  23487. subject to change.
  23488. * 'The default state for the 'FENV_ACCESS' pragma (C99 and C11
  23489. 7.6.1).'
  23490. This pragma is not implemented, but the default is to "off" unless
  23491. '-frounding-math' is used in which case it is "on".
  23492. * 'Additional floating-point exceptions, rounding modes,
  23493. environments, and classifications, and their macro names (C99 and
  23494. C11 7.6, C99 and C11 7.12).'
  23495. This is dependent on the implementation of the C library, and is
  23496. not defined by GCC itself.
  23497. * 'The default state for the 'FP_CONTRACT' pragma (C99 and C11
  23498. 7.12.2).'
  23499. This pragma is not implemented. Expressions are currently only
  23500. contracted if '-ffp-contract=fast', '-funsafe-math-optimizations'
  23501. or '-ffast-math' are used. This is subject to change.
  23502. * 'Whether the "inexact" floating-point exception can be raised when
  23503. the rounded result actually does equal the mathematical result in
  23504. an IEC 60559 conformant implementation (C99 F.9).'
  23505. This is dependent on the implementation of the C library, and is
  23506. not defined by GCC itself.
  23507. * 'Whether the "underflow" (and "inexact") floating-point exception
  23508. can be raised when a result is tiny but not inexact in an IEC 60559
  23509. conformant implementation (C99 F.9).'
  23510. This is dependent on the implementation of the C library, and is
  23511. not defined by GCC itself.
  23512. 
  23513. File: gcc.info, Node: Arrays and pointers implementation, Next: Hints implementation, Prev: Floating point implementation, Up: C Implementation
  23514. 4.7 Arrays and Pointers
  23515. =======================
  23516. * 'The result of converting a pointer to an integer or vice versa
  23517. (C90 6.3.4, C99 and C11 6.3.2.3).'
  23518. A cast from pointer to integer discards most-significant bits if
  23519. the pointer representation is larger than the integer type,
  23520. sign-extends(1) if the pointer representation is smaller than the
  23521. integer type, otherwise the bits are unchanged.
  23522. A cast from integer to pointer discards most-significant bits if
  23523. the pointer representation is smaller than the integer type,
  23524. extends according to the signedness of the integer type if the
  23525. pointer representation is larger than the integer type, otherwise
  23526. the bits are unchanged.
  23527. When casting from pointer to integer and back again, the resulting
  23528. pointer must reference the same object as the original pointer,
  23529. otherwise the behavior is undefined. That is, one may not use
  23530. integer arithmetic to avoid the undefined behavior of pointer
  23531. arithmetic as proscribed in C99 and C11 6.5.6/8.
  23532. * 'The size of the result of subtracting two pointers to elements of
  23533. the same array (C90 6.3.6, C99 and C11 6.5.6).'
  23534. The value is as specified in the standard and the type is
  23535. determined by the ABI.
  23536. ---------- Footnotes ----------
  23537. (1) Future versions of GCC may zero-extend, or use a target-defined
  23538. 'ptr_extend' pattern. Do not rely on sign extension.
  23539. 
  23540. File: gcc.info, Node: Hints implementation, Next: Structures unions enumerations and bit-fields implementation, Prev: Arrays and pointers implementation, Up: C Implementation
  23541. 4.8 Hints
  23542. =========
  23543. * 'The extent to which suggestions made by using the 'register'
  23544. storage-class specifier are effective (C90 6.5.1, C99 and C11
  23545. 6.7.1).'
  23546. The 'register' specifier affects code generation only in these
  23547. ways:
  23548. * When used as part of the register variable extension, see
  23549. *note Explicit Register Variables::.
  23550. * When '-O0' is in use, the compiler allocates distinct stack
  23551. memory for all variables that do not have the 'register'
  23552. storage-class specifier; if 'register' is specified, the
  23553. variable may have a shorter lifespan than the code would
  23554. indicate and may never be placed in memory.
  23555. * On some rare x86 targets, 'setjmp' doesn't save the registers
  23556. in all circumstances. In those cases, GCC doesn't allocate
  23557. any variables in registers unless they are marked 'register'.
  23558. * 'The extent to which suggestions made by using the inline function
  23559. specifier are effective (C99 and C11 6.7.4).'
  23560. GCC will not inline any functions if the '-fno-inline' option is
  23561. used or if '-O0' is used. Otherwise, GCC may still be unable to
  23562. inline a function for many reasons; the '-Winline' option may be
  23563. used to determine if a function has not been inlined and why not.
  23564. 
  23565. File: gcc.info, Node: Structures unions enumerations and bit-fields implementation, Next: Qualifiers implementation, Prev: Hints implementation, Up: C Implementation
  23566. 4.9 Structures, Unions, Enumerations, and Bit-Fields
  23567. ====================================================
  23568. * 'A member of a union object is accessed using a member of a
  23569. different type (C90 6.3.2.3).'
  23570. The relevant bytes of the representation of the object are treated
  23571. as an object of the type used for the access. *Note
  23572. Type-punning::. This may be a trap representation.
  23573. * 'Whether a "plain" 'int' bit-field is treated as a 'signed int'
  23574. bit-field or as an 'unsigned int' bit-field (C90 6.5.2, C90
  23575. 6.5.2.1, C99 and C11 6.7.2, C99 and C11 6.7.2.1).'
  23576. By default it is treated as 'signed int' but this may be changed by
  23577. the '-funsigned-bitfields' option.
  23578. * 'Allowable bit-field types other than '_Bool', 'signed int', and
  23579. 'unsigned int' (C99 and C11 6.7.2.1).'
  23580. Other integer types, such as 'long int', and enumerated types are
  23581. permitted even in strictly conforming mode.
  23582. * 'Whether atomic types are permitted for bit-fields (C11 6.7.2.1).'
  23583. Atomic types are not permitted for bit-fields.
  23584. * 'Whether a bit-field can straddle a storage-unit boundary (C90
  23585. 6.5.2.1, C99 and C11 6.7.2.1).'
  23586. Determined by ABI.
  23587. * 'The order of allocation of bit-fields within a unit (C90 6.5.2.1,
  23588. C99 and C11 6.7.2.1).'
  23589. Determined by ABI.
  23590. * 'The alignment of non-bit-field members of structures (C90 6.5.2.1,
  23591. C99 and C11 6.7.2.1).'
  23592. Determined by ABI.
  23593. * 'The integer type compatible with each enumerated type (C90
  23594. 6.5.2.2, C99 and C11 6.7.2.2).'
  23595. Normally, the type is 'unsigned int' if there are no negative
  23596. values in the enumeration, otherwise 'int'. If '-fshort-enums' is
  23597. specified, then if there are negative values it is the first of
  23598. 'signed char', 'short' and 'int' that can represent all the values,
  23599. otherwise it is the first of 'unsigned char', 'unsigned short' and
  23600. 'unsigned int' that can represent all the values.
  23601. On some targets, '-fshort-enums' is the default; this is determined
  23602. by the ABI.
  23603. 
  23604. File: gcc.info, Node: Qualifiers implementation, Next: Declarators implementation, Prev: Structures unions enumerations and bit-fields implementation, Up: C Implementation
  23605. 4.10 Qualifiers
  23606. ===============
  23607. * 'What constitutes an access to an object that has
  23608. volatile-qualified type (C90 6.5.3, C99 and C11 6.7.3).'
  23609. Such an object is normally accessed by pointers and used for
  23610. accessing hardware. In most expressions, it is intuitively obvious
  23611. what is a read and what is a write. For example
  23612. volatile int *dst = SOMEVALUE;
  23613. volatile int *src = SOMEOTHERVALUE;
  23614. *dst = *src;
  23615. will cause a read of the volatile object pointed to by SRC and
  23616. store the value into the volatile object pointed to by DST. There
  23617. is no guarantee that these reads and writes are atomic, especially
  23618. for objects larger than 'int'.
  23619. However, if the volatile storage is not being modified, and the
  23620. value of the volatile storage is not used, then the situation is
  23621. less obvious. For example
  23622. volatile int *src = SOMEVALUE;
  23623. *src;
  23624. According to the C standard, such an expression is an rvalue whose
  23625. type is the unqualified version of its original type, i.e. 'int'.
  23626. Whether GCC interprets this as a read of the volatile object being
  23627. pointed to or only as a request to evaluate the expression for its
  23628. side effects depends on this type.
  23629. If it is a scalar type, or on most targets an aggregate type whose
  23630. only member object is of a scalar type, or a union type whose
  23631. member objects are of scalar types, the expression is interpreted
  23632. by GCC as a read of the volatile object; in the other cases, the
  23633. expression is only evaluated for its side effects.
  23634. 
  23635. File: gcc.info, Node: Declarators implementation, Next: Statements implementation, Prev: Qualifiers implementation, Up: C Implementation
  23636. 4.11 Declarators
  23637. ================
  23638. * 'The maximum number of declarators that may modify an arithmetic,
  23639. structure or union type (C90 6.5.4).'
  23640. GCC is only limited by available memory.
  23641. 
  23642. File: gcc.info, Node: Statements implementation, Next: Preprocessing directives implementation, Prev: Declarators implementation, Up: C Implementation
  23643. 4.12 Statements
  23644. ===============
  23645. * 'The maximum number of 'case' values in a 'switch' statement (C90
  23646. 6.6.4.2).'
  23647. GCC is only limited by available memory.
  23648. 
  23649. File: gcc.info, Node: Preprocessing directives implementation, Next: Library functions implementation, Prev: Statements implementation, Up: C Implementation
  23650. 4.13 Preprocessing Directives
  23651. =============================
  23652. *Note Implementation-defined behavior: (cpp)Implementation-defined
  23653. behavior, for details of these aspects of implementation-defined
  23654. behavior.
  23655. * 'The locations within '#pragma' directives where header name
  23656. preprocessing tokens are recognized (C11 6.4, C11 6.4.7).'
  23657. * 'How sequences in both forms of header names are mapped to headers
  23658. or external source file names (C90 6.1.7, C99 and C11 6.4.7).'
  23659. * 'Whether the value of a character constant in a constant expression
  23660. that controls conditional inclusion matches the value of the same
  23661. character constant in the execution character set (C90 6.8.1, C99
  23662. and C11 6.10.1).'
  23663. * 'Whether the value of a single-character character constant in a
  23664. constant expression that controls conditional inclusion may have a
  23665. negative value (C90 6.8.1, C99 and C11 6.10.1).'
  23666. * 'The places that are searched for an included '<>' delimited
  23667. header, and how the places are specified or the header is
  23668. identified (C90 6.8.2, C99 and C11 6.10.2).'
  23669. * 'How the named source file is searched for in an included '""'
  23670. delimited header (C90 6.8.2, C99 and C11 6.10.2).'
  23671. * 'The method by which preprocessing tokens (possibly resulting from
  23672. macro expansion) in a '#include' directive are combined into a
  23673. header name (C90 6.8.2, C99 and C11 6.10.2).'
  23674. * 'The nesting limit for '#include' processing (C90 6.8.2, C99 and
  23675. C11 6.10.2).'
  23676. * 'Whether the '#' operator inserts a '\' character before the '\'
  23677. character that begins a universal character name in a character
  23678. constant or string literal (C99 and C11 6.10.3.2).'
  23679. * 'The behavior on each recognized non-'STDC #pragma' directive (C90
  23680. 6.8.6, C99 and C11 6.10.6).'
  23681. *Note Pragmas: (cpp)Pragmas, for details of pragmas accepted by GCC
  23682. on all targets. *Note Pragmas Accepted by GCC: Pragmas, for
  23683. details of target-specific pragmas.
  23684. * 'The definitions for '__DATE__' and '__TIME__' when respectively,
  23685. the date and time of translation are not available (C90 6.8.8, C99
  23686. 6.10.8, C11 6.10.8.1).'
  23687. 
  23688. File: gcc.info, Node: Library functions implementation, Next: Architecture implementation, Prev: Preprocessing directives implementation, Up: C Implementation
  23689. 4.14 Library Functions
  23690. ======================
  23691. The behavior of most of these points are dependent on the implementation
  23692. of the C library, and are not defined by GCC itself.
  23693. * 'The null pointer constant to which the macro 'NULL' expands (C90
  23694. 7.1.6, C99 7.17, C11 7.19).'
  23695. In '<stddef.h>', 'NULL' expands to '((void *)0)'. GCC does not
  23696. provide the other headers which define 'NULL' and some library
  23697. implementations may use other definitions in those headers.
  23698. 
  23699. File: gcc.info, Node: Architecture implementation, Next: Locale-specific behavior implementation, Prev: Library functions implementation, Up: C Implementation
  23700. 4.15 Architecture
  23701. =================
  23702. * 'The values or expressions assigned to the macros specified in the
  23703. headers '<float.h>', '<limits.h>', and '<stdint.h>' (C90, C99 and
  23704. C11 5.2.4.2, C99 7.18.2, C99 7.18.3, C11 7.20.2, C11 7.20.3).'
  23705. Determined by ABI.
  23706. * 'The result of attempting to indirectly access an object with
  23707. automatic or thread storage duration from a thread other than the
  23708. one with which it is associated (C11 6.2.4).'
  23709. Such accesses are supported, subject to the same requirements for
  23710. synchronization for concurrent accesses as for concurrent accesses
  23711. to any object.
  23712. * 'The number, order, and encoding of bytes in any object (when not
  23713. explicitly specified in this International Standard) (C99 and C11
  23714. 6.2.6.1).'
  23715. Determined by ABI.
  23716. * 'Whether any extended alignments are supported and the contexts in
  23717. which they are supported (C11 6.2.8).'
  23718. Extended alignments up to 2^{28} (bytes) are supported for objects
  23719. of automatic storage duration. Alignments supported for objects of
  23720. static and thread storage duration are determined by the ABI.
  23721. * 'Valid alignment values other than those returned by an _Alignof
  23722. expression for fundamental types, if any (C11 6.2.8).'
  23723. Valid alignments are powers of 2 up to and including 2^{28}.
  23724. * 'The value of the result of the 'sizeof' and '_Alignof' operators
  23725. (C90 6.3.3.4, C99 and C11 6.5.3.4).'
  23726. Determined by ABI.
  23727. 
  23728. File: gcc.info, Node: Locale-specific behavior implementation, Prev: Architecture implementation, Up: C Implementation
  23729. 4.16 Locale-Specific Behavior
  23730. =============================
  23731. The behavior of these points are dependent on the implementation of the
  23732. C library, and are not defined by GCC itself.
  23733. 
  23734. File: gcc.info, Node: C++ Implementation, Next: C Extensions, Prev: C Implementation, Up: Top
  23735. 5 C++ Implementation-Defined Behavior
  23736. *************************************
  23737. A conforming implementation of ISO C++ is required to document its
  23738. choice of behavior in each of the areas that are designated
  23739. "implementation defined". The following lists all such areas, along
  23740. with the section numbers from the ISO/IEC 14882:1998 and ISO/IEC
  23741. 14882:2003 standards. Some areas are only implementation-defined in one
  23742. version of the standard.
  23743. Some choices depend on the externally determined ABI for the platform
  23744. (including standard character encodings) which GCC follows; these are
  23745. listed as "determined by ABI" below. *Note Binary Compatibility:
  23746. Compatibility, and <http://gcc.gnu.org/readings.html>. Some choices are
  23747. documented in the preprocessor manual. *Note Implementation-defined
  23748. behavior: (cpp)Implementation-defined behavior. Some choices are
  23749. documented in the corresponding document for the C language. *Note C
  23750. Implementation::. Some choices are made by the library and operating
  23751. system (or other environment when compiling for a freestanding
  23752. environment); refer to their documentation for details.
  23753. * Menu:
  23754. * Conditionally-supported behavior::
  23755. * Exception handling::
  23756. 
  23757. File: gcc.info, Node: Conditionally-supported behavior, Next: Exception handling, Up: C++ Implementation
  23758. 5.1 Conditionally-Supported Behavior
  23759. ====================================
  23760. 'Each implementation shall include documentation that identifies all
  23761. conditionally-supported constructs that it does not support (C++0x
  23762. 1.4).'
  23763. * 'Whether an argument of class type with a non-trivial copy
  23764. constructor or destructor can be passed to ... (C++0x 5.2.2).'
  23765. Such argument passing is supported, using the same
  23766. pass-by-invisible-reference approach used for normal function
  23767. arguments of such types.
  23768. 
  23769. File: gcc.info, Node: Exception handling, Prev: Conditionally-supported behavior, Up: C++ Implementation
  23770. 5.2 Exception Handling
  23771. ======================
  23772. * 'In the situation where no matching handler is found, it is
  23773. implementation-defined whether or not the stack is unwound before
  23774. std::terminate() is called (C++98 15.5.1).'
  23775. The stack is not unwound before std::terminate is called.
  23776. c Copyright (C) 1988-2020 Free Software Foundation, Inc.
  23777. 
  23778. File: gcc.info, Node: C Extensions, Next: C++ Extensions, Prev: C++ Implementation, Up: Top
  23779. 6 Extensions to the C Language Family
  23780. *************************************
  23781. GNU C provides several language features not found in ISO standard C.
  23782. (The '-pedantic' option directs GCC to print a warning message if any of
  23783. these features is used.) To test for the availability of these features
  23784. in conditional compilation, check for a predefined macro '__GNUC__',
  23785. which is always defined under GCC.
  23786. These extensions are available in C and Objective-C. Most of them are
  23787. also available in C++. *Note Extensions to the C++ Language: C++
  23788. Extensions, for extensions that apply _only_ to C++.
  23789. Some features that are in ISO C99 but not C90 or C++ are also, as
  23790. extensions, accepted by GCC in C90 mode and in C++.
  23791. * Menu:
  23792. * Statement Exprs:: Putting statements and declarations inside expressions.
  23793. * Local Labels:: Labels local to a block.
  23794. * Labels as Values:: Getting pointers to labels, and computed gotos.
  23795. * Nested Functions:: Nested function in GNU C.
  23796. * Nonlocal Gotos:: Nonlocal gotos.
  23797. * Constructing Calls:: Dispatching a call to another function.
  23798. * Typeof:: 'typeof': referring to the type of an expression.
  23799. * Conditionals:: Omitting the middle operand of a '?:' expression.
  23800. * __int128:: 128-bit integers--'__int128'.
  23801. * Long Long:: Double-word integers--'long long int'.
  23802. * Complex:: Data types for complex numbers.
  23803. * Floating Types:: Additional Floating Types.
  23804. * Half-Precision:: Half-Precision Floating Point.
  23805. * Decimal Float:: Decimal Floating Types.
  23806. * Hex Floats:: Hexadecimal floating-point constants.
  23807. * Fixed-Point:: Fixed-Point Types.
  23808. * Named Address Spaces::Named address spaces.
  23809. * Zero Length:: Zero-length arrays.
  23810. * Empty Structures:: Structures with no members.
  23811. * Variable Length:: Arrays whose length is computed at run time.
  23812. * Variadic Macros:: Macros with a variable number of arguments.
  23813. * Escaped Newlines:: Slightly looser rules for escaped newlines.
  23814. * Subscripting:: Any array can be subscripted, even if not an lvalue.
  23815. * Pointer Arith:: Arithmetic on 'void'-pointers and function pointers.
  23816. * Variadic Pointer Args:: Pointer arguments to variadic functions.
  23817. * Pointers to Arrays:: Pointers to arrays with qualifiers work as expected.
  23818. * Initializers:: Non-constant initializers.
  23819. * Compound Literals:: Compound literals give structures, unions
  23820. or arrays as values.
  23821. * Designated Inits:: Labeling elements of initializers.
  23822. * Case Ranges:: 'case 1 ... 9' and such.
  23823. * Cast to Union:: Casting to union type from any member of the union.
  23824. * Mixed Declarations:: Mixing declarations and code.
  23825. * Function Attributes:: Declaring that functions have no side effects,
  23826. or that they can never return.
  23827. * Variable Attributes:: Specifying attributes of variables.
  23828. * Type Attributes:: Specifying attributes of types.
  23829. * Label Attributes:: Specifying attributes on labels.
  23830. * Enumerator Attributes:: Specifying attributes on enumerators.
  23831. * Statement Attributes:: Specifying attributes on statements.
  23832. * Attribute Syntax:: Formal syntax for attributes.
  23833. * Function Prototypes:: Prototype declarations and old-style definitions.
  23834. * C++ Comments:: C++ comments are recognized.
  23835. * Dollar Signs:: Dollar sign is allowed in identifiers.
  23836. * Character Escapes:: '\e' stands for the character <ESC>.
  23837. * Alignment:: Determining the alignment of a function, type or variable.
  23838. * Inline:: Defining inline functions (as fast as macros).
  23839. * Volatiles:: What constitutes an access to a volatile object.
  23840. * Using Assembly Language with C:: Instructions and extensions for interfacing C with assembler.
  23841. * Alternate Keywords:: '__const__', '__asm__', etc., for header files.
  23842. * Incomplete Enums:: 'enum foo;', with details to follow.
  23843. * Function Names:: Printable strings which are the name of the current
  23844. function.
  23845. * Return Address:: Getting the return or frame address of a function.
  23846. * Vector Extensions:: Using vector instructions through built-in functions.
  23847. * Offsetof:: Special syntax for implementing 'offsetof'.
  23848. * __sync Builtins:: Legacy built-in functions for atomic memory access.
  23849. * __atomic Builtins:: Atomic built-in functions with memory model.
  23850. * Integer Overflow Builtins:: Built-in functions to perform arithmetics and
  23851. arithmetic overflow checking.
  23852. * x86 specific memory model extensions for transactional memory:: x86 memory models.
  23853. * Object Size Checking:: Built-in functions for limited buffer overflow
  23854. checking.
  23855. * Other Builtins:: Other built-in functions.
  23856. * Target Builtins:: Built-in functions specific to particular targets.
  23857. * Target Format Checks:: Format checks specific to particular targets.
  23858. * Pragmas:: Pragmas accepted by GCC.
  23859. * Unnamed Fields:: Unnamed struct/union fields within structs/unions.
  23860. * Thread-Local:: Per-thread variables.
  23861. * Binary constants:: Binary constants using the '0b' prefix.
  23862. 
  23863. File: gcc.info, Node: Statement Exprs, Next: Local Labels, Up: C Extensions
  23864. 6.1 Statements and Declarations in Expressions
  23865. ==============================================
  23866. A compound statement enclosed in parentheses may appear as an expression
  23867. in GNU C. This allows you to use loops, switches, and local variables
  23868. within an expression.
  23869. Recall that a compound statement is a sequence of statements surrounded
  23870. by braces; in this construct, parentheses go around the braces. For
  23871. example:
  23872. ({ int y = foo (); int z;
  23873. if (y > 0) z = y;
  23874. else z = - y;
  23875. z; })
  23876. is a valid (though slightly more complex than necessary) expression for
  23877. the absolute value of 'foo ()'.
  23878. The last thing in the compound statement should be an expression
  23879. followed by a semicolon; the value of this subexpression serves as the
  23880. value of the entire construct. (If you use some other kind of statement
  23881. last within the braces, the construct has type 'void', and thus
  23882. effectively no value.)
  23883. This feature is especially useful in making macro definitions "safe"
  23884. (so that they evaluate each operand exactly once). For example, the
  23885. "maximum" function is commonly defined as a macro in standard C as
  23886. follows:
  23887. #define max(a,b) ((a) > (b) ? (a) : (b))
  23888. But this definition computes either A or B twice, with bad results if
  23889. the operand has side effects. In GNU C, if you know the type of the
  23890. operands (here taken as 'int'), you can avoid this problem by defining
  23891. the macro as follows:
  23892. #define maxint(a,b) \
  23893. ({int _a = (a), _b = (b); _a > _b ? _a : _b; })
  23894. Note that introducing variable declarations (as we do in 'maxint') can
  23895. cause variable shadowing, so while this example using the 'max' macro
  23896. produces correct results:
  23897. int _a = 1, _b = 2, c;
  23898. c = max (_a, _b);
  23899. this example using maxint will not:
  23900. int _a = 1, _b = 2, c;
  23901. c = maxint (_a, _b);
  23902. This problem may for instance occur when we use this pattern
  23903. recursively, like so:
  23904. #define maxint3(a, b, c) \
  23905. ({int _a = (a), _b = (b), _c = (c); maxint (maxint (_a, _b), _c); })
  23906. Embedded statements are not allowed in constant expressions, such as
  23907. the value of an enumeration constant, the width of a bit-field, or the
  23908. initial value of a static variable.
  23909. If you don't know the type of the operand, you can still do this, but
  23910. you must use 'typeof' or '__auto_type' (*note Typeof::).
  23911. In G++, the result value of a statement expression undergoes array and
  23912. function pointer decay, and is returned by value to the enclosing
  23913. expression. For instance, if 'A' is a class, then
  23914. A a;
  23915. ({a;}).Foo ()
  23916. constructs a temporary 'A' object to hold the result of the statement
  23917. expression, and that is used to invoke 'Foo'. Therefore the 'this'
  23918. pointer observed by 'Foo' is not the address of 'a'.
  23919. In a statement expression, any temporaries created within a statement
  23920. are destroyed at that statement's end. This makes statement expressions
  23921. inside macros slightly different from function calls. In the latter
  23922. case temporaries introduced during argument evaluation are destroyed at
  23923. the end of the statement that includes the function call. In the
  23924. statement expression case they are destroyed during the statement
  23925. expression. For instance,
  23926. #define macro(a) ({__typeof__(a) b = (a); b + 3; })
  23927. template<typename T> T function(T a) { T b = a; return b + 3; }
  23928. void foo ()
  23929. {
  23930. macro (X ());
  23931. function (X ());
  23932. }
  23933. has different places where temporaries are destroyed. For the 'macro'
  23934. case, the temporary 'X' is destroyed just after the initialization of
  23935. 'b'. In the 'function' case that temporary is destroyed when the
  23936. function returns.
  23937. These considerations mean that it is probably a bad idea to use
  23938. statement expressions of this form in header files that are designed to
  23939. work with C++. (Note that some versions of the GNU C Library contained
  23940. header files using statement expressions that lead to precisely this
  23941. bug.)
  23942. Jumping into a statement expression with 'goto' or using a 'switch'
  23943. statement outside the statement expression with a 'case' or 'default'
  23944. label inside the statement expression is not permitted. Jumping into a
  23945. statement expression with a computed 'goto' (*note Labels as Values::)
  23946. has undefined behavior. Jumping out of a statement expression is
  23947. permitted, but if the statement expression is part of a larger
  23948. expression then it is unspecified which other subexpressions of that
  23949. expression have been evaluated except where the language definition
  23950. requires certain subexpressions to be evaluated before or after the
  23951. statement expression. A 'break' or 'continue' statement inside of a
  23952. statement expression used in 'while', 'do' or 'for' loop or 'switch'
  23953. statement condition or 'for' statement init or increment expressions
  23954. jumps to an outer loop or 'switch' statement if any (otherwise it is an
  23955. error), rather than to the loop or 'switch' statement in whose condition
  23956. or init or increment expression it appears. In any case, as with a
  23957. function call, the evaluation of a statement expression is not
  23958. interleaved with the evaluation of other parts of the containing
  23959. expression. For example,
  23960. foo (), (({ bar1 (); goto a; 0; }) + bar2 ()), baz();
  23961. calls 'foo' and 'bar1' and does not call 'baz' but may or may not call
  23962. 'bar2'. If 'bar2' is called, it is called after 'foo' and before
  23963. 'bar1'.
  23964. 
  23965. File: gcc.info, Node: Local Labels, Next: Labels as Values, Prev: Statement Exprs, Up: C Extensions
  23966. 6.2 Locally Declared Labels
  23967. ===========================
  23968. GCC allows you to declare "local labels" in any nested block scope. A
  23969. local label is just like an ordinary label, but you can only reference
  23970. it (with a 'goto' statement, or by taking its address) within the block
  23971. in which it is declared.
  23972. A local label declaration looks like this:
  23973. __label__ LABEL;
  23974. or
  23975. __label__ LABEL1, LABEL2, /* ... */;
  23976. Local label declarations must come at the beginning of the block,
  23977. before any ordinary declarations or statements.
  23978. The label declaration defines the label _name_, but does not define the
  23979. label itself. You must do this in the usual way, with 'LABEL:', within
  23980. the statements of the statement expression.
  23981. The local label feature is useful for complex macros. If a macro
  23982. contains nested loops, a 'goto' can be useful for breaking out of them.
  23983. However, an ordinary label whose scope is the whole function cannot be
  23984. used: if the macro can be expanded several times in one function, the
  23985. label is multiply defined in that function. A local label avoids this
  23986. problem. For example:
  23987. #define SEARCH(value, array, target) \
  23988. do { \
  23989. __label__ found; \
  23990. typeof (target) _SEARCH_target = (target); \
  23991. typeof (*(array)) *_SEARCH_array = (array); \
  23992. int i, j; \
  23993. int value; \
  23994. for (i = 0; i < max; i++) \
  23995. for (j = 0; j < max; j++) \
  23996. if (_SEARCH_array[i][j] == _SEARCH_target) \
  23997. { (value) = i; goto found; } \
  23998. (value) = -1; \
  23999. found:; \
  24000. } while (0)
  24001. This could also be written using a statement expression:
  24002. #define SEARCH(array, target) \
  24003. ({ \
  24004. __label__ found; \
  24005. typeof (target) _SEARCH_target = (target); \
  24006. typeof (*(array)) *_SEARCH_array = (array); \
  24007. int i, j; \
  24008. int value; \
  24009. for (i = 0; i < max; i++) \
  24010. for (j = 0; j < max; j++) \
  24011. if (_SEARCH_array[i][j] == _SEARCH_target) \
  24012. { value = i; goto found; } \
  24013. value = -1; \
  24014. found: \
  24015. value; \
  24016. })
  24017. Local label declarations also make the labels they declare visible to
  24018. nested functions, if there are any. *Note Nested Functions::, for
  24019. details.
  24020. 
  24021. File: gcc.info, Node: Labels as Values, Next: Nested Functions, Prev: Local Labels, Up: C Extensions
  24022. 6.3 Labels as Values
  24023. ====================
  24024. You can get the address of a label defined in the current function (or a
  24025. containing function) with the unary operator '&&'. The value has type
  24026. 'void *'. This value is a constant and can be used wherever a constant
  24027. of that type is valid. For example:
  24028. void *ptr;
  24029. /* ... */
  24030. ptr = &&foo;
  24031. To use these values, you need to be able to jump to one. This is done
  24032. with the computed goto statement(1), 'goto *EXP;'. For example,
  24033. goto *ptr;
  24034. Any expression of type 'void *' is allowed.
  24035. One way of using these constants is in initializing a static array that
  24036. serves as a jump table:
  24037. static void *array[] = { &&foo, &&bar, &&hack };
  24038. Then you can select a label with indexing, like this:
  24039. goto *array[i];
  24040. Note that this does not check whether the subscript is in bounds--array
  24041. indexing in C never does that.
  24042. Such an array of label values serves a purpose much like that of the
  24043. 'switch' statement. The 'switch' statement is cleaner, so use that
  24044. rather than an array unless the problem does not fit a 'switch'
  24045. statement very well.
  24046. Another use of label values is in an interpreter for threaded code.
  24047. The labels within the interpreter function can be stored in the threaded
  24048. code for super-fast dispatching.
  24049. You may not use this mechanism to jump to code in a different function.
  24050. If you do that, totally unpredictable things happen. The best way to
  24051. avoid this is to store the label address only in automatic variables and
  24052. never pass it as an argument.
  24053. An alternate way to write the above example is
  24054. static const int array[] = { &&foo - &&foo, &&bar - &&foo,
  24055. &&hack - &&foo };
  24056. goto *(&&foo + array[i]);
  24057. This is more friendly to code living in shared libraries, as it reduces
  24058. the number of dynamic relocations that are needed, and by consequence,
  24059. allows the data to be read-only. This alternative with label
  24060. differences is not supported for the AVR target, please use the first
  24061. approach for AVR programs.
  24062. The '&&foo' expressions for the same label might have different values
  24063. if the containing function is inlined or cloned. If a program relies on
  24064. them being always the same, '__attribute__((__noinline__,__noclone__))'
  24065. should be used to prevent inlining and cloning. If '&&foo' is used in a
  24066. static variable initializer, inlining and cloning is forbidden.
  24067. ---------- Footnotes ----------
  24068. (1) The analogous feature in Fortran is called an assigned goto, but
  24069. that name seems inappropriate in C, where one can do more than simply
  24070. store label addresses in label variables.
  24071. 
  24072. File: gcc.info, Node: Nested Functions, Next: Nonlocal Gotos, Prev: Labels as Values, Up: C Extensions
  24073. 6.4 Nested Functions
  24074. ====================
  24075. A "nested function" is a function defined inside another function.
  24076. Nested functions are supported as an extension in GNU C, but are not
  24077. supported by GNU C++.
  24078. The nested function's name is local to the block where it is defined.
  24079. For example, here we define a nested function named 'square', and call
  24080. it twice:
  24081. foo (double a, double b)
  24082. {
  24083. double square (double z) { return z * z; }
  24084. return square (a) + square (b);
  24085. }
  24086. The nested function can access all the variables of the containing
  24087. function that are visible at the point of its definition. This is
  24088. called "lexical scoping". For example, here we show a nested function
  24089. which uses an inherited variable named 'offset':
  24090. bar (int *array, int offset, int size)
  24091. {
  24092. int access (int *array, int index)
  24093. { return array[index + offset]; }
  24094. int i;
  24095. /* ... */
  24096. for (i = 0; i < size; i++)
  24097. /* ... */ access (array, i) /* ... */
  24098. }
  24099. Nested function definitions are permitted within functions in the
  24100. places where variable definitions are allowed; that is, in any block,
  24101. mixed with the other declarations and statements in the block.
  24102. It is possible to call the nested function from outside the scope of
  24103. its name by storing its address or passing the address to another
  24104. function:
  24105. hack (int *array, int size)
  24106. {
  24107. void store (int index, int value)
  24108. { array[index] = value; }
  24109. intermediate (store, size);
  24110. }
  24111. Here, the function 'intermediate' receives the address of 'store' as an
  24112. argument. If 'intermediate' calls 'store', the arguments given to
  24113. 'store' are used to store into 'array'. But this technique works only
  24114. so long as the containing function ('hack', in this example) does not
  24115. exit.
  24116. If you try to call the nested function through its address after the
  24117. containing function exits, all hell breaks loose. If you try to call it
  24118. after a containing scope level exits, and if it refers to some of the
  24119. variables that are no longer in scope, you may be lucky, but it's not
  24120. wise to take the risk. If, however, the nested function does not refer
  24121. to anything that has gone out of scope, you should be safe.
  24122. GCC implements taking the address of a nested function using a
  24123. technique called "trampolines". This technique was described in
  24124. 'Lexical Closures for C++' (Thomas M. Breuel, USENIX C++ Conference
  24125. Proceedings, October 17-21, 1988).
  24126. A nested function can jump to a label inherited from a containing
  24127. function, provided the label is explicitly declared in the containing
  24128. function (*note Local Labels::). Such a jump returns instantly to the
  24129. containing function, exiting the nested function that did the 'goto' and
  24130. any intermediate functions as well. Here is an example:
  24131. bar (int *array, int offset, int size)
  24132. {
  24133. __label__ failure;
  24134. int access (int *array, int index)
  24135. {
  24136. if (index > size)
  24137. goto failure;
  24138. return array[index + offset];
  24139. }
  24140. int i;
  24141. /* ... */
  24142. for (i = 0; i < size; i++)
  24143. /* ... */ access (array, i) /* ... */
  24144. /* ... */
  24145. return 0;
  24146. /* Control comes here from 'access'
  24147. if it detects an error. */
  24148. failure:
  24149. return -1;
  24150. }
  24151. A nested function always has no linkage. Declaring one with 'extern'
  24152. or 'static' is erroneous. If you need to declare the nested function
  24153. before its definition, use 'auto' (which is otherwise meaningless for
  24154. function declarations).
  24155. bar (int *array, int offset, int size)
  24156. {
  24157. __label__ failure;
  24158. auto int access (int *, int);
  24159. /* ... */
  24160. int access (int *array, int index)
  24161. {
  24162. if (index > size)
  24163. goto failure;
  24164. return array[index + offset];
  24165. }
  24166. /* ... */
  24167. }
  24168. 
  24169. File: gcc.info, Node: Nonlocal Gotos, Next: Constructing Calls, Prev: Nested Functions, Up: C Extensions
  24170. 6.5 Nonlocal Gotos
  24171. ==================
  24172. GCC provides the built-in functions '__builtin_setjmp' and
  24173. '__builtin_longjmp' which are similar to, but not interchangeable with,
  24174. the C library functions 'setjmp' and 'longjmp'. The built-in versions
  24175. are used internally by GCC's libraries to implement exception handling
  24176. on some targets. You should use the standard C library functions
  24177. declared in '<setjmp.h>' in user code instead of the builtins.
  24178. The built-in versions of these functions use GCC's normal mechanisms to
  24179. save and restore registers using the stack on function entry and exit.
  24180. The jump buffer argument BUF holds only the information needed to
  24181. restore the stack frame, rather than the entire set of saved register
  24182. values.
  24183. An important caveat is that GCC arranges to save and restore only those
  24184. registers known to the specific architecture variant being compiled for.
  24185. This can make '__builtin_setjmp' and '__builtin_longjmp' more efficient
  24186. than their library counterparts in some cases, but it can also cause
  24187. incorrect and mysterious behavior when mixing with code that uses the
  24188. full register set.
  24189. You should declare the jump buffer argument BUF to the built-in
  24190. functions as:
  24191. #include <stdint.h>
  24192. intptr_t BUF[5];
  24193. -- Built-in Function: int __builtin_setjmp (intptr_t *BUF)
  24194. This function saves the current stack context in BUF.
  24195. '__builtin_setjmp' returns 0 when returning directly, and 1 when
  24196. returning from '__builtin_longjmp' using the same BUF.
  24197. -- Built-in Function: void __builtin_longjmp (intptr_t *BUF, int VAL)
  24198. This function restores the stack context in BUF, saved by a
  24199. previous call to '__builtin_setjmp'. After '__builtin_longjmp' is
  24200. finished, the program resumes execution as if the matching
  24201. '__builtin_setjmp' returns the value VAL, which must be 1.
  24202. Because '__builtin_longjmp' depends on the function return
  24203. mechanism to restore the stack context, it cannot be called from
  24204. the same function calling '__builtin_setjmp' to initialize BUF. It
  24205. can only be called from a function called (directly or indirectly)
  24206. from the function calling '__builtin_setjmp'.
  24207. 
  24208. File: gcc.info, Node: Constructing Calls, Next: Typeof, Prev: Nonlocal Gotos, Up: C Extensions
  24209. 6.6 Constructing Function Calls
  24210. ===============================
  24211. Using the built-in functions described below, you can record the
  24212. arguments a function received, and call another function with the same
  24213. arguments, without knowing the number or types of the arguments.
  24214. You can also record the return value of that function call, and later
  24215. return that value, without knowing what data type the function tried to
  24216. return (as long as your caller expects that data type).
  24217. However, these built-in functions may interact badly with some
  24218. sophisticated features or other extensions of the language. It is,
  24219. therefore, not recommended to use them outside very simple functions
  24220. acting as mere forwarders for their arguments.
  24221. -- Built-in Function: void * __builtin_apply_args ()
  24222. This built-in function returns a pointer to data describing how to
  24223. perform a call with the same arguments as are passed to the current
  24224. function.
  24225. The function saves the arg pointer register, structure value
  24226. address, and all registers that might be used to pass arguments to
  24227. a function into a block of memory allocated on the stack. Then it
  24228. returns the address of that block.
  24229. -- Built-in Function: void * __builtin_apply (void (*FUNCTION)(), void
  24230. *ARGUMENTS, size_t SIZE)
  24231. This built-in function invokes FUNCTION with a copy of the
  24232. parameters described by ARGUMENTS and SIZE.
  24233. The value of ARGUMENTS should be the value returned by
  24234. '__builtin_apply_args'. The argument SIZE specifies the size of
  24235. the stack argument data, in bytes.
  24236. This function returns a pointer to data describing how to return
  24237. whatever value is returned by FUNCTION. The data is saved in a
  24238. block of memory allocated on the stack.
  24239. It is not always simple to compute the proper value for SIZE. The
  24240. value is used by '__builtin_apply' to compute the amount of data
  24241. that should be pushed on the stack and copied from the incoming
  24242. argument area.
  24243. -- Built-in Function: void __builtin_return (void *RESULT)
  24244. This built-in function returns the value described by RESULT from
  24245. the containing function. You should specify, for RESULT, a value
  24246. returned by '__builtin_apply'.
  24247. -- Built-in Function: __builtin_va_arg_pack ()
  24248. This built-in function represents all anonymous arguments of an
  24249. inline function. It can be used only in inline functions that are
  24250. always inlined, never compiled as a separate function, such as
  24251. those using '__attribute__ ((__always_inline__))' or '__attribute__
  24252. ((__gnu_inline__))' extern inline functions. It must be only
  24253. passed as last argument to some other function with variable
  24254. arguments. This is useful for writing small wrapper inlines for
  24255. variable argument functions, when using preprocessor macros is
  24256. undesirable. For example:
  24257. extern int myprintf (FILE *f, const char *format, ...);
  24258. extern inline __attribute__ ((__gnu_inline__)) int
  24259. myprintf (FILE *f, const char *format, ...)
  24260. {
  24261. int r = fprintf (f, "myprintf: ");
  24262. if (r < 0)
  24263. return r;
  24264. int s = fprintf (f, format, __builtin_va_arg_pack ());
  24265. if (s < 0)
  24266. return s;
  24267. return r + s;
  24268. }
  24269. -- Built-in Function: size_t __builtin_va_arg_pack_len ()
  24270. This built-in function returns the number of anonymous arguments of
  24271. an inline function. It can be used only in inline functions that
  24272. are always inlined, never compiled as a separate function, such as
  24273. those using '__attribute__ ((__always_inline__))' or '__attribute__
  24274. ((__gnu_inline__))' extern inline functions. For example following
  24275. does link- or run-time checking of open arguments for optimized
  24276. code:
  24277. #ifdef __OPTIMIZE__
  24278. extern inline __attribute__((__gnu_inline__)) int
  24279. myopen (const char *path, int oflag, ...)
  24280. {
  24281. if (__builtin_va_arg_pack_len () > 1)
  24282. warn_open_too_many_arguments ();
  24283. if (__builtin_constant_p (oflag))
  24284. {
  24285. if ((oflag & O_CREAT) != 0 && __builtin_va_arg_pack_len () < 1)
  24286. {
  24287. warn_open_missing_mode ();
  24288. return __open_2 (path, oflag);
  24289. }
  24290. return open (path, oflag, __builtin_va_arg_pack ());
  24291. }
  24292. if (__builtin_va_arg_pack_len () < 1)
  24293. return __open_2 (path, oflag);
  24294. return open (path, oflag, __builtin_va_arg_pack ());
  24295. }
  24296. #endif
  24297. 
  24298. File: gcc.info, Node: Typeof, Next: Conditionals, Prev: Constructing Calls, Up: C Extensions
  24299. 6.7 Referring to a Type with 'typeof'
  24300. =====================================
  24301. Another way to refer to the type of an expression is with 'typeof'. The
  24302. syntax of using of this keyword looks like 'sizeof', but the construct
  24303. acts semantically like a type name defined with 'typedef'.
  24304. There are two ways of writing the argument to 'typeof': with an
  24305. expression or with a type. Here is an example with an expression:
  24306. typeof (x[0](1))
  24307. This assumes that 'x' is an array of pointers to functions; the type
  24308. described is that of the values of the functions.
  24309. Here is an example with a typename as the argument:
  24310. typeof (int *)
  24311. Here the type described is that of pointers to 'int'.
  24312. If you are writing a header file that must work when included in ISO C
  24313. programs, write '__typeof__' instead of 'typeof'. *Note Alternate
  24314. Keywords::.
  24315. A 'typeof' construct can be used anywhere a typedef name can be used.
  24316. For example, you can use it in a declaration, in a cast, or inside of
  24317. 'sizeof' or 'typeof'.
  24318. The operand of 'typeof' is evaluated for its side effects if and only
  24319. if it is an expression of variably modified type or the name of such a
  24320. type.
  24321. 'typeof' is often useful in conjunction with statement expressions
  24322. (*note Statement Exprs::). Here is how the two together can be used to
  24323. define a safe "maximum" macro which operates on any arithmetic type and
  24324. evaluates each of its arguments exactly once:
  24325. #define max(a,b) \
  24326. ({ typeof (a) _a = (a); \
  24327. typeof (b) _b = (b); \
  24328. _a > _b ? _a : _b; })
  24329. The reason for using names that start with underscores for the local
  24330. variables is to avoid conflicts with variable names that occur within
  24331. the expressions that are substituted for 'a' and 'b'. Eventually we
  24332. hope to design a new form of declaration syntax that allows you to
  24333. declare variables whose scopes start only after their initializers; this
  24334. will be a more reliable way to prevent such conflicts.
  24335. Some more examples of the use of 'typeof':
  24336. * This declares 'y' with the type of what 'x' points to.
  24337. typeof (*x) y;
  24338. * This declares 'y' as an array of such values.
  24339. typeof (*x) y[4];
  24340. * This declares 'y' as an array of pointers to characters:
  24341. typeof (typeof (char *)[4]) y;
  24342. It is equivalent to the following traditional C declaration:
  24343. char *y[4];
  24344. To see the meaning of the declaration using 'typeof', and why it
  24345. might be a useful way to write, rewrite it with these macros:
  24346. #define pointer(T) typeof(T *)
  24347. #define array(T, N) typeof(T [N])
  24348. Now the declaration can be rewritten this way:
  24349. array (pointer (char), 4) y;
  24350. Thus, 'array (pointer (char), 4)' is the type of arrays of 4
  24351. pointers to 'char'.
  24352. In GNU C, but not GNU C++, you may also declare the type of a variable
  24353. as '__auto_type'. In that case, the declaration must declare only one
  24354. variable, whose declarator must just be an identifier, the declaration
  24355. must be initialized, and the type of the variable is determined by the
  24356. initializer; the name of the variable is not in scope until after the
  24357. initializer. (In C++, you should use C++11 'auto' for this purpose.)
  24358. Using '__auto_type', the "maximum" macro above could be written as:
  24359. #define max(a,b) \
  24360. ({ __auto_type _a = (a); \
  24361. __auto_type _b = (b); \
  24362. _a > _b ? _a : _b; })
  24363. Using '__auto_type' instead of 'typeof' has two advantages:
  24364. * Each argument to the macro appears only once in the expansion of
  24365. the macro. This prevents the size of the macro expansion growing
  24366. exponentially when calls to such macros are nested inside arguments
  24367. of such macros.
  24368. * If the argument to the macro has variably modified type, it is
  24369. evaluated only once when using '__auto_type', but twice if 'typeof'
  24370. is used.
  24371. 
  24372. File: gcc.info, Node: Conditionals, Next: __int128, Prev: Typeof, Up: C Extensions
  24373. 6.8 Conditionals with Omitted Operands
  24374. ======================================
  24375. The middle operand in a conditional expression may be omitted. Then if
  24376. the first operand is nonzero, its value is the value of the conditional
  24377. expression.
  24378. Therefore, the expression
  24379. x ? : y
  24380. has the value of 'x' if that is nonzero; otherwise, the value of 'y'.
  24381. This example is perfectly equivalent to
  24382. x ? x : y
  24383. In this simple case, the ability to omit the middle operand is not
  24384. especially useful. When it becomes useful is when the first operand
  24385. does, or may (if it is a macro argument), contain a side effect. Then
  24386. repeating the operand in the middle would perform the side effect twice.
  24387. Omitting the middle operand uses the value already computed without the
  24388. undesirable effects of recomputing it.
  24389. 
  24390. File: gcc.info, Node: __int128, Next: Long Long, Prev: Conditionals, Up: C Extensions
  24391. 6.9 128-bit Integers
  24392. ====================
  24393. As an extension the integer scalar type '__int128' is supported for
  24394. targets which have an integer mode wide enough to hold 128 bits. Simply
  24395. write '__int128' for a signed 128-bit integer, or 'unsigned __int128'
  24396. for an unsigned 128-bit integer. There is no support in GCC for
  24397. expressing an integer constant of type '__int128' for targets with 'long
  24398. long' integer less than 128 bits wide.
  24399. 
  24400. File: gcc.info, Node: Long Long, Next: Complex, Prev: __int128, Up: C Extensions
  24401. 6.10 Double-Word Integers
  24402. =========================
  24403. ISO C99 and ISO C++11 support data types for integers that are at least
  24404. 64 bits wide, and as an extension GCC supports them in C90 and C++98
  24405. modes. Simply write 'long long int' for a signed integer, or 'unsigned
  24406. long long int' for an unsigned integer. To make an integer constant of
  24407. type 'long long int', add the suffix 'LL' to the integer. To make an
  24408. integer constant of type 'unsigned long long int', add the suffix 'ULL'
  24409. to the integer.
  24410. You can use these types in arithmetic like any other integer types.
  24411. Addition, subtraction, and bitwise boolean operations on these types are
  24412. open-coded on all types of machines. Multiplication is open-coded if
  24413. the machine supports a fullword-to-doubleword widening multiply
  24414. instruction. Division and shifts are open-coded only on machines that
  24415. provide special support. The operations that are not open-coded use
  24416. special library routines that come with GCC.
  24417. There may be pitfalls when you use 'long long' types for function
  24418. arguments without function prototypes. If a function expects type 'int'
  24419. for its argument, and you pass a value of type 'long long int',
  24420. confusion results because the caller and the subroutine disagree about
  24421. the number of bytes for the argument. Likewise, if the function expects
  24422. 'long long int' and you pass 'int'. The best way to avoid such problems
  24423. is to use prototypes.
  24424. 
  24425. File: gcc.info, Node: Complex, Next: Floating Types, Prev: Long Long, Up: C Extensions
  24426. 6.11 Complex Numbers
  24427. ====================
  24428. ISO C99 supports complex floating data types, and as an extension GCC
  24429. supports them in C90 mode and in C++. GCC also supports complex integer
  24430. data types which are not part of ISO C99. You can declare complex types
  24431. using the keyword '_Complex'. As an extension, the older GNU keyword
  24432. '__complex__' is also supported.
  24433. For example, '_Complex double x;' declares 'x' as a variable whose real
  24434. part and imaginary part are both of type 'double'. '_Complex short int
  24435. y;' declares 'y' to have real and imaginary parts of type 'short int';
  24436. this is not likely to be useful, but it shows that the set of complex
  24437. types is complete.
  24438. To write a constant with a complex data type, use the suffix 'i' or 'j'
  24439. (either one; they are equivalent). For example, '2.5fi' has type
  24440. '_Complex float' and '3i' has type '_Complex int'. Such a constant
  24441. always has a pure imaginary value, but you can form any complex value
  24442. you like by adding one to a real constant. This is a GNU extension; if
  24443. you have an ISO C99 conforming C library (such as the GNU C Library),
  24444. and want to construct complex constants of floating type, you should
  24445. include '<complex.h>' and use the macros 'I' or '_Complex_I' instead.
  24446. The ISO C++14 library also defines the 'i' suffix, so C++14 code that
  24447. includes the '<complex>' header cannot use 'i' for the GNU extension.
  24448. The 'j' suffix still has the GNU meaning.
  24449. To extract the real part of a complex-valued expression EXP, write
  24450. '__real__ EXP'. Likewise, use '__imag__' to extract the imaginary part.
  24451. This is a GNU extension; for values of floating type, you should use the
  24452. ISO C99 functions 'crealf', 'creal', 'creall', 'cimagf', 'cimag' and
  24453. 'cimagl', declared in '<complex.h>' and also provided as built-in
  24454. functions by GCC.
  24455. The operator '~' performs complex conjugation when used on a value with
  24456. a complex type. This is a GNU extension; for values of floating type,
  24457. you should use the ISO C99 functions 'conjf', 'conj' and 'conjl',
  24458. declared in '<complex.h>' and also provided as built-in functions by
  24459. GCC.
  24460. GCC can allocate complex automatic variables in a noncontiguous
  24461. fashion; it's even possible for the real part to be in a register while
  24462. the imaginary part is on the stack (or vice versa). Only the DWARF
  24463. debug info format can represent this, so use of DWARF is recommended.
  24464. If you are using the stabs debug info format, GCC describes a
  24465. noncontiguous complex variable as if it were two separate variables of
  24466. noncomplex type. If the variable's actual name is 'foo', the two
  24467. fictitious variables are named 'foo$real' and 'foo$imag'. You can
  24468. examine and set these two fictitious variables with your debugger.
  24469. 
  24470. File: gcc.info, Node: Floating Types, Next: Half-Precision, Prev: Complex, Up: C Extensions
  24471. 6.12 Additional Floating Types
  24472. ==============================
  24473. ISO/IEC TS 18661-3:2015 defines C support for additional floating types
  24474. '_FloatN' and '_FloatNx', and GCC supports these type names; the set of
  24475. types supported depends on the target architecture. These types are not
  24476. supported when compiling C++. Constants with these types use suffixes
  24477. 'fN' or 'FN' and 'fNx' or 'FNx'. These type names can be used together
  24478. with '_Complex' to declare complex types.
  24479. As an extension, GNU C and GNU C++ support additional floating types,
  24480. which are not supported by all targets.
  24481. * '__float128' is available on i386, x86_64, IA-64, and hppa HP-UX,
  24482. as well as on PowerPC GNU/Linux targets that enable the vector
  24483. scalar (VSX) instruction set. '__float128' supports the 128-bit
  24484. floating type. On i386, x86_64, PowerPC, and IA-64 other than
  24485. HP-UX, '__float128' is an alias for '_Float128'. On hppa and IA-64
  24486. HP-UX, '__float128' is an alias for 'long double'.
  24487. * '__float80' is available on the i386, x86_64, and IA-64 targets,
  24488. and supports the 80-bit ('XFmode') floating type. It is an alias
  24489. for the type name '_Float64x' on these targets.
  24490. * '__ibm128' is available on PowerPC targets, and provides access to
  24491. the IBM extended double format which is the current format used for
  24492. 'long double'. When 'long double' transitions to '__float128' on
  24493. PowerPC in the future, '__ibm128' will remain for use in
  24494. conversions between the two types.
  24495. Support for these additional types includes the arithmetic operators:
  24496. add, subtract, multiply, divide; unary arithmetic operators; relational
  24497. operators; equality operators; and conversions to and from integer and
  24498. other floating types. Use a suffix 'w' or 'W' in a literal constant of
  24499. type '__float80' or type '__ibm128'. Use a suffix 'q' or 'Q' for
  24500. '_float128'.
  24501. In order to use '_Float128', '__float128', and '__ibm128' on PowerPC
  24502. Linux systems, you must use the '-mfloat128' option. It is expected in
  24503. future versions of GCC that '_Float128' and '__float128' will be enabled
  24504. automatically.
  24505. The '_Float128' type is supported on all systems where '__float128' is
  24506. supported or where 'long double' has the IEEE binary128 format. The
  24507. '_Float64x' type is supported on all systems where '__float128' is
  24508. supported. The '_Float32' type is supported on all systems supporting
  24509. IEEE binary32; the '_Float64' and '_Float32x' types are supported on all
  24510. systems supporting IEEE binary64. The '_Float16' type is supported on
  24511. AArch64 systems by default, and on ARM systems when the IEEE format for
  24512. 16-bit floating-point types is selected with '-mfp16-format=ieee'. GCC
  24513. does not currently support '_Float128x' on any systems.
  24514. On the i386, x86_64, IA-64, and HP-UX targets, you can declare complex
  24515. types using the corresponding internal complex type, 'XCmode' for
  24516. '__float80' type and 'TCmode' for '__float128' type:
  24517. typedef _Complex float __attribute__((mode(TC))) _Complex128;
  24518. typedef _Complex float __attribute__((mode(XC))) _Complex80;
  24519. On the PowerPC Linux VSX targets, you can declare complex types using
  24520. the corresponding internal complex type, 'KCmode' for '__float128' type
  24521. and 'ICmode' for '__ibm128' type:
  24522. typedef _Complex float __attribute__((mode(KC))) _Complex_float128;
  24523. typedef _Complex float __attribute__((mode(IC))) _Complex_ibm128;
  24524. 
  24525. File: gcc.info, Node: Half-Precision, Next: Decimal Float, Prev: Floating Types, Up: C Extensions
  24526. 6.13 Half-Precision Floating Point
  24527. ==================================
  24528. On ARM and AArch64 targets, GCC supports half-precision (16-bit)
  24529. floating point via the '__fp16' type defined in the ARM C Language
  24530. Extensions. On ARM systems, you must enable this type explicitly with
  24531. the '-mfp16-format' command-line option in order to use it.
  24532. ARM targets support two incompatible representations for half-precision
  24533. floating-point values. You must choose one of the representations and
  24534. use it consistently in your program.
  24535. Specifying '-mfp16-format=ieee' selects the IEEE 754-2008 format. This
  24536. format can represent normalized values in the range of 2^{-14} to 65504.
  24537. There are 11 bits of significand precision, approximately 3 decimal
  24538. digits.
  24539. Specifying '-mfp16-format=alternative' selects the ARM alternative
  24540. format. This representation is similar to the IEEE format, but does not
  24541. support infinities or NaNs. Instead, the range of exponents is
  24542. extended, so that this format can represent normalized values in the
  24543. range of 2^{-14} to 131008.
  24544. The GCC port for AArch64 only supports the IEEE 754-2008 format, and
  24545. does not require use of the '-mfp16-format' command-line option.
  24546. The '__fp16' type may only be used as an argument to intrinsics defined
  24547. in '<arm_fp16.h>', or as a storage format. For purposes of arithmetic
  24548. and other operations, '__fp16' values in C or C++ expressions are
  24549. automatically promoted to 'float'.
  24550. The ARM target provides hardware support for conversions between
  24551. '__fp16' and 'float' values as an extension to VFP and NEON (Advanced
  24552. SIMD), and from ARMv8-A provides hardware support for conversions
  24553. between '__fp16' and 'double' values. GCC generates code using these
  24554. hardware instructions if you compile with options to select an FPU that
  24555. provides them; for example, '-mfpu=neon-fp16 -mfloat-abi=softfp', in
  24556. addition to the '-mfp16-format' option to select a half-precision
  24557. format.
  24558. Language-level support for the '__fp16' data type is independent of
  24559. whether GCC generates code using hardware floating-point instructions.
  24560. In cases where hardware support is not specified, GCC implements
  24561. conversions between '__fp16' and other types as library calls.
  24562. It is recommended that portable code use the '_Float16' type defined by
  24563. ISO/IEC TS 18661-3:2015. *Note Floating Types::.
  24564. 
  24565. File: gcc.info, Node: Decimal Float, Next: Hex Floats, Prev: Half-Precision, Up: C Extensions
  24566. 6.14 Decimal Floating Types
  24567. ===========================
  24568. As an extension, GNU C supports decimal floating types as defined in the
  24569. N1312 draft of ISO/IEC WDTR24732. Support for decimal floating types in
  24570. GCC will evolve as the draft technical report changes. Calling
  24571. conventions for any target might also change. Not all targets support
  24572. decimal floating types.
  24573. The decimal floating types are '_Decimal32', '_Decimal64', and
  24574. '_Decimal128'. They use a radix of ten, unlike the floating types
  24575. 'float', 'double', and 'long double' whose radix is not specified by the
  24576. C standard but is usually two.
  24577. Support for decimal floating types includes the arithmetic operators
  24578. add, subtract, multiply, divide; unary arithmetic operators; relational
  24579. operators; equality operators; and conversions to and from integer and
  24580. other floating types. Use a suffix 'df' or 'DF' in a literal constant
  24581. of type '_Decimal32', 'dd' or 'DD' for '_Decimal64', and 'dl' or 'DL'
  24582. for '_Decimal128'.
  24583. GCC support of decimal float as specified by the draft technical report
  24584. is incomplete:
  24585. * When the value of a decimal floating type cannot be represented in
  24586. the integer type to which it is being converted, the result is
  24587. undefined rather than the result value specified by the draft
  24588. technical report.
  24589. * GCC does not provide the C library functionality associated with
  24590. 'math.h', 'fenv.h', 'stdio.h', 'stdlib.h', and 'wchar.h', which
  24591. must come from a separate C library implementation. Because of
  24592. this the GNU C compiler does not define macro '__STDC_DEC_FP__' to
  24593. indicate that the implementation conforms to the technical report.
  24594. Types '_Decimal32', '_Decimal64', and '_Decimal128' are supported by
  24595. the DWARF debug information format.
  24596. 
  24597. File: gcc.info, Node: Hex Floats, Next: Fixed-Point, Prev: Decimal Float, Up: C Extensions
  24598. 6.15 Hex Floats
  24599. ===============
  24600. ISO C99 and ISO C++17 support floating-point numbers written not only in
  24601. the usual decimal notation, such as '1.55e1', but also numbers such as
  24602. '0x1.fp3' written in hexadecimal format. As a GNU extension, GCC
  24603. supports this in C90 mode (except in some cases when strictly
  24604. conforming) and in C++98, C++11 and C++14 modes. In that format the
  24605. '0x' hex introducer and the 'p' or 'P' exponent field are mandatory.
  24606. The exponent is a decimal number that indicates the power of 2 by which
  24607. the significant part is multiplied. Thus '0x1.f' is 1 15/16, 'p3'
  24608. multiplies it by 8, and the value of '0x1.fp3' is the same as '1.55e1'.
  24609. Unlike for floating-point numbers in the decimal notation the exponent
  24610. is always required in the hexadecimal notation. Otherwise the compiler
  24611. would not be able to resolve the ambiguity of, e.g., '0x1.f'. This
  24612. could mean '1.0f' or '1.9375' since 'f' is also the extension for
  24613. floating-point constants of type 'float'.
  24614. 
  24615. File: gcc.info, Node: Fixed-Point, Next: Named Address Spaces, Prev: Hex Floats, Up: C Extensions
  24616. 6.16 Fixed-Point Types
  24617. ======================
  24618. As an extension, GNU C supports fixed-point types as defined in the
  24619. N1169 draft of ISO/IEC DTR 18037. Support for fixed-point types in GCC
  24620. will evolve as the draft technical report changes. Calling conventions
  24621. for any target might also change. Not all targets support fixed-point
  24622. types.
  24623. The fixed-point types are 'short _Fract', '_Fract', 'long _Fract',
  24624. 'long long _Fract', 'unsigned short _Fract', 'unsigned _Fract',
  24625. 'unsigned long _Fract', 'unsigned long long _Fract', '_Sat short
  24626. _Fract', '_Sat _Fract', '_Sat long _Fract', '_Sat long long _Fract',
  24627. '_Sat unsigned short _Fract', '_Sat unsigned _Fract', '_Sat unsigned
  24628. long _Fract', '_Sat unsigned long long _Fract', 'short _Accum',
  24629. '_Accum', 'long _Accum', 'long long _Accum', 'unsigned short _Accum',
  24630. 'unsigned _Accum', 'unsigned long _Accum', 'unsigned long long _Accum',
  24631. '_Sat short _Accum', '_Sat _Accum', '_Sat long _Accum', '_Sat long long
  24632. _Accum', '_Sat unsigned short _Accum', '_Sat unsigned _Accum', '_Sat
  24633. unsigned long _Accum', '_Sat unsigned long long _Accum'.
  24634. Fixed-point data values contain fractional and optional integral parts.
  24635. The format of fixed-point data varies and depends on the target machine.
  24636. Support for fixed-point types includes:
  24637. * prefix and postfix increment and decrement operators ('++', '--')
  24638. * unary arithmetic operators ('+', '-', '!')
  24639. * binary arithmetic operators ('+', '-', '*', '/')
  24640. * binary shift operators ('<<', '>>')
  24641. * relational operators ('<', '<=', '>=', '>')
  24642. * equality operators ('==', '!=')
  24643. * assignment operators ('+=', '-=', '*=', '/=', '<<=', '>>=')
  24644. * conversions to and from integer, floating-point, or fixed-point
  24645. types
  24646. Use a suffix in a fixed-point literal constant:
  24647. * 'hr' or 'HR' for 'short _Fract' and '_Sat short _Fract'
  24648. * 'r' or 'R' for '_Fract' and '_Sat _Fract'
  24649. * 'lr' or 'LR' for 'long _Fract' and '_Sat long _Fract'
  24650. * 'llr' or 'LLR' for 'long long _Fract' and '_Sat long long _Fract'
  24651. * 'uhr' or 'UHR' for 'unsigned short _Fract' and '_Sat unsigned short
  24652. _Fract'
  24653. * 'ur' or 'UR' for 'unsigned _Fract' and '_Sat unsigned _Fract'
  24654. * 'ulr' or 'ULR' for 'unsigned long _Fract' and '_Sat unsigned long
  24655. _Fract'
  24656. * 'ullr' or 'ULLR' for 'unsigned long long _Fract' and '_Sat unsigned
  24657. long long _Fract'
  24658. * 'hk' or 'HK' for 'short _Accum' and '_Sat short _Accum'
  24659. * 'k' or 'K' for '_Accum' and '_Sat _Accum'
  24660. * 'lk' or 'LK' for 'long _Accum' and '_Sat long _Accum'
  24661. * 'llk' or 'LLK' for 'long long _Accum' and '_Sat long long _Accum'
  24662. * 'uhk' or 'UHK' for 'unsigned short _Accum' and '_Sat unsigned short
  24663. _Accum'
  24664. * 'uk' or 'UK' for 'unsigned _Accum' and '_Sat unsigned _Accum'
  24665. * 'ulk' or 'ULK' for 'unsigned long _Accum' and '_Sat unsigned long
  24666. _Accum'
  24667. * 'ullk' or 'ULLK' for 'unsigned long long _Accum' and '_Sat unsigned
  24668. long long _Accum'
  24669. GCC support of fixed-point types as specified by the draft technical
  24670. report is incomplete:
  24671. * Pragmas to control overflow and rounding behaviors are not
  24672. implemented.
  24673. Fixed-point types are supported by the DWARF debug information format.
  24674. 
  24675. File: gcc.info, Node: Named Address Spaces, Next: Zero Length, Prev: Fixed-Point, Up: C Extensions
  24676. 6.17 Named Address Spaces
  24677. =========================
  24678. As an extension, GNU C supports named address spaces as defined in the
  24679. N1275 draft of ISO/IEC DTR 18037. Support for named address spaces in
  24680. GCC will evolve as the draft technical report changes. Calling
  24681. conventions for any target might also change. At present, only the AVR,
  24682. M32C, RL78, and x86 targets support address spaces other than the
  24683. generic address space.
  24684. Address space identifiers may be used exactly like any other C type
  24685. qualifier (e.g., 'const' or 'volatile'). See the N1275 document for
  24686. more details.
  24687. 6.17.1 AVR Named Address Spaces
  24688. -------------------------------
  24689. On the AVR target, there are several address spaces that can be used in
  24690. order to put read-only data into the flash memory and access that data
  24691. by means of the special instructions 'LPM' or 'ELPM' needed to read from
  24692. flash.
  24693. Devices belonging to 'avrtiny' and 'avrxmega3' can access flash memory
  24694. by means of 'LD*' instructions because the flash memory is mapped into
  24695. the RAM address space. There is _no need_ for language extensions like
  24696. '__flash' or attribute *note 'progmem': AVR Variable Attributes. The
  24697. default linker description files for these devices cater for that
  24698. feature and '.rodata' stays in flash: The compiler just generates 'LD*'
  24699. instructions, and the linker script adds core specific offsets to all
  24700. '.rodata' symbols: '0x4000' in the case of 'avrtiny' and '0x8000' in the
  24701. case of 'avrxmega3'. See *note AVR Options:: for a list of respective
  24702. devices.
  24703. For devices not in 'avrtiny' or 'avrxmega3', any data including
  24704. read-only data is located in RAM (the generic address space) because
  24705. flash memory is not visible in the RAM address space. In order to
  24706. locate read-only data in flash memory _and_ to generate the right
  24707. instructions to access this data without using (inline) assembler code,
  24708. special address spaces are needed.
  24709. '__flash'
  24710. The '__flash' qualifier locates data in the '.progmem.data'
  24711. section. Data is read using the 'LPM' instruction. Pointers to
  24712. this address space are 16 bits wide.
  24713. '__flash1'
  24714. '__flash2'
  24715. '__flash3'
  24716. '__flash4'
  24717. '__flash5'
  24718. These are 16-bit address spaces locating data in section
  24719. '.progmemN.data' where N refers to address space '__flashN'. The
  24720. compiler sets the 'RAMPZ' segment register appropriately before
  24721. reading data by means of the 'ELPM' instruction.
  24722. '__memx'
  24723. This is a 24-bit address space that linearizes flash and RAM: If
  24724. the high bit of the address is set, data is read from RAM using the
  24725. lower two bytes as RAM address. If the high bit of the address is
  24726. clear, data is read from flash with 'RAMPZ' set according to the
  24727. high byte of the address. *Note '__builtin_avr_flash_segment': AVR
  24728. Built-in Functions.
  24729. Objects in this address space are located in '.progmemx.data'.
  24730. Example
  24731. char my_read (const __flash char ** p)
  24732. {
  24733. /* p is a pointer to RAM that points to a pointer to flash.
  24734. The first indirection of p reads that flash pointer
  24735. from RAM and the second indirection reads a char from this
  24736. flash address. */
  24737. return **p;
  24738. }
  24739. /* Locate array[] in flash memory */
  24740. const __flash int array[] = { 3, 5, 7, 11, 13, 17, 19 };
  24741. int i = 1;
  24742. int main (void)
  24743. {
  24744. /* Return 17 by reading from flash memory */
  24745. return array[array[i]];
  24746. }
  24747. For each named address space supported by avr-gcc there is an equally
  24748. named but uppercase built-in macro defined. The purpose is to
  24749. facilitate testing if respective address space support is available or
  24750. not:
  24751. #ifdef __FLASH
  24752. const __flash int var = 1;
  24753. int read_var (void)
  24754. {
  24755. return var;
  24756. }
  24757. #else
  24758. #include <avr/pgmspace.h> /* From AVR-LibC */
  24759. const int var PROGMEM = 1;
  24760. int read_var (void)
  24761. {
  24762. return (int) pgm_read_word (&var);
  24763. }
  24764. #endif /* __FLASH */
  24765. Notice that attribute *note 'progmem': AVR Variable Attributes. locates
  24766. data in flash but accesses to these data read from generic address
  24767. space, i.e. from RAM, so that you need special accessors like
  24768. 'pgm_read_byte' from AVR-LibC (http://nongnu.org/avr-libc/user-manual/)
  24769. together with attribute 'progmem'.
  24770. Limitations and caveats
  24771. * Reading across the 64 KiB section boundary of the '__flash' or
  24772. '__flashN' address spaces shows undefined behavior. The only
  24773. address space that supports reading across the 64 KiB flash segment
  24774. boundaries is '__memx'.
  24775. * If you use one of the '__flashN' address spaces you must arrange
  24776. your linker script to locate the '.progmemN.data' sections
  24777. according to your needs.
  24778. * Any data or pointers to the non-generic address spaces must be
  24779. qualified as 'const', i.e. as read-only data. This still applies
  24780. if the data in one of these address spaces like software version
  24781. number or calibration lookup table are intended to be changed after
  24782. load time by, say, a boot loader. In this case the right
  24783. qualification is 'const' 'volatile' so that the compiler must not
  24784. optimize away known values or insert them as immediates into
  24785. operands of instructions.
  24786. * The following code initializes a variable 'pfoo' located in static
  24787. storage with a 24-bit address:
  24788. extern const __memx char foo;
  24789. const __memx void *pfoo = &foo;
  24790. * On the reduced Tiny devices like ATtiny40, no address spaces are
  24791. supported. Just use vanilla C / C++ code without overhead as
  24792. outlined above. Attribute 'progmem' is supported but works
  24793. differently, see *note AVR Variable Attributes::.
  24794. 6.17.2 M32C Named Address Spaces
  24795. --------------------------------
  24796. On the M32C target, with the R8C and M16C CPU variants, variables
  24797. qualified with '__far' are accessed using 32-bit addresses in order to
  24798. access memory beyond the first 64 Ki bytes. If '__far' is used with the
  24799. M32CM or M32C CPU variants, it has no effect.
  24800. 6.17.3 RL78 Named Address Spaces
  24801. --------------------------------
  24802. On the RL78 target, variables qualified with '__far' are accessed with
  24803. 32-bit pointers (20-bit addresses) rather than the default 16-bit
  24804. addresses. Non-far variables are assumed to appear in the topmost
  24805. 64 KiB of the address space.
  24806. 6.17.4 x86 Named Address Spaces
  24807. -------------------------------
  24808. On the x86 target, variables may be declared as being relative to the
  24809. '%fs' or '%gs' segments.
  24810. '__seg_fs'
  24811. '__seg_gs'
  24812. The object is accessed with the respective segment override prefix.
  24813. The respective segment base must be set via some method specific to
  24814. the operating system. Rather than require an expensive system call
  24815. to retrieve the segment base, these address spaces are not
  24816. considered to be subspaces of the generic (flat) address space.
  24817. This means that explicit casts are required to convert pointers
  24818. between these address spaces and the generic address space. In
  24819. practice the application should cast to 'uintptr_t' and apply the
  24820. segment base offset that it installed previously.
  24821. The preprocessor symbols '__SEG_FS' and '__SEG_GS' are defined when
  24822. these address spaces are supported.
  24823. 
  24824. File: gcc.info, Node: Zero Length, Next: Empty Structures, Prev: Named Address Spaces, Up: C Extensions
  24825. 6.18 Arrays of Length Zero
  24826. ==========================
  24827. Declaring zero-length arrays is allowed in GNU C as an extension. A
  24828. zero-length array can be useful as the last element of a structure that
  24829. is really a header for a variable-length object:
  24830. struct line {
  24831. int length;
  24832. char contents[0];
  24833. };
  24834. struct line *thisline = (struct line *)
  24835. malloc (sizeof (struct line) + this_length);
  24836. thisline->length = this_length;
  24837. Although the size of a zero-length array is zero, an array member of
  24838. this kind may increase the size of the enclosing type as a result of
  24839. tail padding. The offset of a zero-length array member from the
  24840. beginning of the enclosing structure is the same as the offset of an
  24841. array with one or more elements of the same type. The alignment of a
  24842. zero-length array is the same as the alignment of its elements.
  24843. Declaring zero-length arrays in other contexts, including as interior
  24844. members of structure objects or as non-member objects, is discouraged.
  24845. Accessing elements of zero-length arrays declared in such contexts is
  24846. undefined and may be diagnosed.
  24847. In the absence of the zero-length array extension, in ISO C90 the
  24848. 'contents' array in the example above would typically be declared to
  24849. have a single element. Unlike a zero-length array which only
  24850. contributes to the size of the enclosing structure for the purposes of
  24851. alignment, a one-element array always occupies at least as much space as
  24852. a single object of the type. Although using one-element arrays this way
  24853. is discouraged, GCC handles accesses to trailing one-element array
  24854. members analogously to zero-length arrays.
  24855. The preferred mechanism to declare variable-length types like 'struct
  24856. line' above is the ISO C99 "flexible array member", with slightly
  24857. different syntax and semantics:
  24858. * Flexible array members are written as 'contents[]' without the '0'.
  24859. * Flexible array members have incomplete type, and so the 'sizeof'
  24860. operator may not be applied. As a quirk of the original
  24861. implementation of zero-length arrays, 'sizeof' evaluates to zero.
  24862. * Flexible array members may only appear as the last member of a
  24863. 'struct' that is otherwise non-empty.
  24864. * A structure containing a flexible array member, or a union
  24865. containing such a structure (possibly recursively), may not be a
  24866. member of a structure or an element of an array. (However, these
  24867. uses are permitted by GCC as extensions.)
  24868. Non-empty initialization of zero-length arrays is treated like any case
  24869. where there are more initializer elements than the array holds, in that
  24870. a suitable warning about "excess elements in array" is given, and the
  24871. excess elements (all of them, in this case) are ignored.
  24872. GCC allows static initialization of flexible array members. This is
  24873. equivalent to defining a new structure containing the original structure
  24874. followed by an array of sufficient size to contain the data. E.g. in
  24875. the following, 'f1' is constructed as if it were declared like 'f2'.
  24876. struct f1 {
  24877. int x; int y[];
  24878. } f1 = { 1, { 2, 3, 4 } };
  24879. struct f2 {
  24880. struct f1 f1; int data[3];
  24881. } f2 = { { 1 }, { 2, 3, 4 } };
  24882. The convenience of this extension is that 'f1' has the desired type,
  24883. eliminating the need to consistently refer to 'f2.f1'.
  24884. This has symmetry with normal static arrays, in that an array of
  24885. unknown size is also written with '[]'.
  24886. Of course, this extension only makes sense if the extra data comes at
  24887. the end of a top-level object, as otherwise we would be overwriting data
  24888. at subsequent offsets. To avoid undue complication and confusion with
  24889. initialization of deeply nested arrays, we simply disallow any non-empty
  24890. initialization except when the structure is the top-level object. For
  24891. example:
  24892. struct foo { int x; int y[]; };
  24893. struct bar { struct foo z; };
  24894. struct foo a = { 1, { 2, 3, 4 } }; // Valid.
  24895. struct bar b = { { 1, { 2, 3, 4 } } }; // Invalid.
  24896. struct bar c = { { 1, { } } }; // Valid.
  24897. struct foo d[1] = { { 1, { 2, 3, 4 } } }; // Invalid.
  24898. 
  24899. File: gcc.info, Node: Empty Structures, Next: Variable Length, Prev: Zero Length, Up: C Extensions
  24900. 6.19 Structures with No Members
  24901. ===============================
  24902. GCC permits a C structure to have no members:
  24903. struct empty {
  24904. };
  24905. The structure has size zero. In C++, empty structures are part of the
  24906. language. G++ treats empty structures as if they had a single member of
  24907. type 'char'.
  24908. 
  24909. File: gcc.info, Node: Variable Length, Next: Variadic Macros, Prev: Empty Structures, Up: C Extensions
  24910. 6.20 Arrays of Variable Length
  24911. ==============================
  24912. Variable-length automatic arrays are allowed in ISO C99, and as an
  24913. extension GCC accepts them in C90 mode and in C++. These arrays are
  24914. declared like any other automatic arrays, but with a length that is not
  24915. a constant expression. The storage is allocated at the point of
  24916. declaration and deallocated when the block scope containing the
  24917. declaration exits. For example:
  24918. FILE *
  24919. concat_fopen (char *s1, char *s2, char *mode)
  24920. {
  24921. char str[strlen (s1) + strlen (s2) + 1];
  24922. strcpy (str, s1);
  24923. strcat (str, s2);
  24924. return fopen (str, mode);
  24925. }
  24926. Jumping or breaking out of the scope of the array name deallocates the
  24927. storage. Jumping into the scope is not allowed; you get an error
  24928. message for it.
  24929. As an extension, GCC accepts variable-length arrays as a member of a
  24930. structure or a union. For example:
  24931. void
  24932. foo (int n)
  24933. {
  24934. struct S { int x[n]; };
  24935. }
  24936. You can use the function 'alloca' to get an effect much like
  24937. variable-length arrays. The function 'alloca' is available in many
  24938. other C implementations (but not in all). On the other hand,
  24939. variable-length arrays are more elegant.
  24940. There are other differences between these two methods. Space allocated
  24941. with 'alloca' exists until the containing _function_ returns. The space
  24942. for a variable-length array is deallocated as soon as the array name's
  24943. scope ends, unless you also use 'alloca' in this scope.
  24944. You can also use variable-length arrays as arguments to functions:
  24945. struct entry
  24946. tester (int len, char data[len][len])
  24947. {
  24948. /* ... */
  24949. }
  24950. The length of an array is computed once when the storage is allocated
  24951. and is remembered for the scope of the array in case you access it with
  24952. 'sizeof'.
  24953. If you want to pass the array first and the length afterward, you can
  24954. use a forward declaration in the parameter list--another GNU extension.
  24955. struct entry
  24956. tester (int len; char data[len][len], int len)
  24957. {
  24958. /* ... */
  24959. }
  24960. The 'int len' before the semicolon is a "parameter forward
  24961. declaration", and it serves the purpose of making the name 'len' known
  24962. when the declaration of 'data' is parsed.
  24963. You can write any number of such parameter forward declarations in the
  24964. parameter list. They can be separated by commas or semicolons, but the
  24965. last one must end with a semicolon, which is followed by the "real"
  24966. parameter declarations. Each forward declaration must match a "real"
  24967. declaration in parameter name and data type. ISO C99 does not support
  24968. parameter forward declarations.
  24969. 
  24970. File: gcc.info, Node: Variadic Macros, Next: Escaped Newlines, Prev: Variable Length, Up: C Extensions
  24971. 6.21 Macros with a Variable Number of Arguments.
  24972. ================================================
  24973. In the ISO C standard of 1999, a macro can be declared to accept a
  24974. variable number of arguments much as a function can. The syntax for
  24975. defining the macro is similar to that of a function. Here is an
  24976. example:
  24977. #define debug(format, ...) fprintf (stderr, format, __VA_ARGS__)
  24978. Here '...' is a "variable argument". In the invocation of such a macro,
  24979. it represents the zero or more tokens until the closing parenthesis that
  24980. ends the invocation, including any commas. This set of tokens replaces
  24981. the identifier '__VA_ARGS__' in the macro body wherever it appears. See
  24982. the CPP manual for more information.
  24983. GCC has long supported variadic macros, and used a different syntax
  24984. that allowed you to give a name to the variable arguments just like any
  24985. other argument. Here is an example:
  24986. #define debug(format, args...) fprintf (stderr, format, args)
  24987. This is in all ways equivalent to the ISO C example above, but arguably
  24988. more readable and descriptive.
  24989. GNU CPP has two further variadic macro extensions, and permits them to
  24990. be used with either of the above forms of macro definition.
  24991. In standard C, you are not allowed to leave the variable argument out
  24992. entirely; but you are allowed to pass an empty argument. For example,
  24993. this invocation is invalid in ISO C, because there is no comma after the
  24994. string:
  24995. debug ("A message")
  24996. GNU CPP permits you to completely omit the variable arguments in this
  24997. way. In the above examples, the compiler would complain, though since
  24998. the expansion of the macro still has the extra comma after the format
  24999. string.
  25000. To help solve this problem, CPP behaves specially for variable
  25001. arguments used with the token paste operator, '##'. If instead you
  25002. write
  25003. #define debug(format, ...) fprintf (stderr, format, ## __VA_ARGS__)
  25004. and if the variable arguments are omitted or empty, the '##' operator
  25005. causes the preprocessor to remove the comma before it. If you do
  25006. provide some variable arguments in your macro invocation, GNU CPP does
  25007. not complain about the paste operation and instead places the variable
  25008. arguments after the comma. Just like any other pasted macro argument,
  25009. these arguments are not macro expanded.
  25010. 
  25011. File: gcc.info, Node: Escaped Newlines, Next: Subscripting, Prev: Variadic Macros, Up: C Extensions
  25012. 6.22 Slightly Looser Rules for Escaped Newlines
  25013. ===============================================
  25014. The preprocessor treatment of escaped newlines is more relaxed than that
  25015. specified by the C90 standard, which requires the newline to immediately
  25016. follow a backslash. GCC's implementation allows whitespace in the form
  25017. of spaces, horizontal and vertical tabs, and form feeds between the
  25018. backslash and the subsequent newline. The preprocessor issues a
  25019. warning, but treats it as a valid escaped newline and combines the two
  25020. lines to form a single logical line. This works within comments and
  25021. tokens, as well as between tokens. Comments are _not_ treated as
  25022. whitespace for the purposes of this relaxation, since they have not yet
  25023. been replaced with spaces.
  25024. 
  25025. File: gcc.info, Node: Subscripting, Next: Pointer Arith, Prev: Escaped Newlines, Up: C Extensions
  25026. 6.23 Non-Lvalue Arrays May Have Subscripts
  25027. ==========================================
  25028. In ISO C99, arrays that are not lvalues still decay to pointers, and may
  25029. be subscripted, although they may not be modified or used after the next
  25030. sequence point and the unary '&' operator may not be applied to them.
  25031. As an extension, GNU C allows such arrays to be subscripted in C90 mode,
  25032. though otherwise they do not decay to pointers outside C99 mode. For
  25033. example, this is valid in GNU C though not valid in C90:
  25034. struct foo {int a[4];};
  25035. struct foo f();
  25036. bar (int index)
  25037. {
  25038. return f().a[index];
  25039. }
  25040. 
  25041. File: gcc.info, Node: Pointer Arith, Next: Variadic Pointer Args, Prev: Subscripting, Up: C Extensions
  25042. 6.24 Arithmetic on 'void'- and Function-Pointers
  25043. ================================================
  25044. In GNU C, addition and subtraction operations are supported on pointers
  25045. to 'void' and on pointers to functions. This is done by treating the
  25046. size of a 'void' or of a function as 1.
  25047. A consequence of this is that 'sizeof' is also allowed on 'void' and on
  25048. function types, and returns 1.
  25049. The option '-Wpointer-arith' requests a warning if these extensions are
  25050. used.
  25051. 
  25052. File: gcc.info, Node: Variadic Pointer Args, Next: Pointers to Arrays, Prev: Pointer Arith, Up: C Extensions
  25053. 6.25 Pointer Arguments in Variadic Functions
  25054. ============================================
  25055. Standard C requires that pointer types used with 'va_arg' in functions
  25056. with variable argument lists either must be compatible with that of the
  25057. actual argument, or that one type must be a pointer to 'void' and the
  25058. other a pointer to a character type. GNU C implements the POSIX XSI
  25059. extension that additionally permits the use of 'va_arg' with a pointer
  25060. type to receive arguments of any other pointer type.
  25061. In particular, in GNU C 'va_arg (ap, void *)' can safely be used to
  25062. consume an argument of any pointer type.
  25063. 
  25064. File: gcc.info, Node: Pointers to Arrays, Next: Initializers, Prev: Variadic Pointer Args, Up: C Extensions
  25065. 6.26 Pointers to Arrays with Qualifiers Work as Expected
  25066. ========================================================
  25067. In GNU C, pointers to arrays with qualifiers work similar to pointers to
  25068. other qualified types. For example, a value of type 'int (*)[5]' can be
  25069. used to initialize a variable of type 'const int (*)[5]'. These types
  25070. are incompatible in ISO C because the 'const' qualifier is formally
  25071. attached to the element type of the array and not the array itself.
  25072. extern void
  25073. transpose (int N, int M, double out[M][N], const double in[N][M]);
  25074. double x[3][2];
  25075. double y[2][3];
  25076. ...
  25077. transpose(3, 2, y, x);
  25078. 
  25079. File: gcc.info, Node: Initializers, Next: Compound Literals, Prev: Pointers to Arrays, Up: C Extensions
  25080. 6.27 Non-Constant Initializers
  25081. ==============================
  25082. As in standard C++ and ISO C99, the elements of an aggregate initializer
  25083. for an automatic variable are not required to be constant expressions in
  25084. GNU C. Here is an example of an initializer with run-time varying
  25085. elements:
  25086. foo (float f, float g)
  25087. {
  25088. float beat_freqs[2] = { f-g, f+g };
  25089. /* ... */
  25090. }
  25091. 
  25092. File: gcc.info, Node: Compound Literals, Next: Designated Inits, Prev: Initializers, Up: C Extensions
  25093. 6.28 Compound Literals
  25094. ======================
  25095. A compound literal looks like a cast of a brace-enclosed aggregate
  25096. initializer list. Its value is an object of the type specified in the
  25097. cast, containing the elements specified in the initializer. Unlike the
  25098. result of a cast, a compound literal is an lvalue. ISO C99 and later
  25099. support compound literals. As an extension, GCC supports compound
  25100. literals also in C90 mode and in C++, although as explained below, the
  25101. C++ semantics are somewhat different.
  25102. Usually, the specified type of a compound literal is a structure.
  25103. Assume that 'struct foo' and 'structure' are declared as shown:
  25104. struct foo {int a; char b[2];} structure;
  25105. Here is an example of constructing a 'struct foo' with a compound
  25106. literal:
  25107. structure = ((struct foo) {x + y, 'a', 0});
  25108. This is equivalent to writing the following:
  25109. {
  25110. struct foo temp = {x + y, 'a', 0};
  25111. structure = temp;
  25112. }
  25113. You can also construct an array, though this is dangerous in C++, as
  25114. explained below. If all the elements of the compound literal are (made
  25115. up of) simple constant expressions suitable for use in initializers of
  25116. objects of static storage duration, then the compound literal can be
  25117. coerced to a pointer to its first element and used in such an
  25118. initializer, as shown here:
  25119. char **foo = (char *[]) { "x", "y", "z" };
  25120. Compound literals for scalar types and union types are also allowed.
  25121. In the following example the variable 'i' is initialized to the value
  25122. '2', the result of incrementing the unnamed object created by the
  25123. compound literal.
  25124. int i = ++(int) { 1 };
  25125. As a GNU extension, GCC allows initialization of objects with static
  25126. storage duration by compound literals (which is not possible in ISO C99
  25127. because the initializer is not a constant). It is handled as if the
  25128. object were initialized only with the brace-enclosed list if the types
  25129. of the compound literal and the object match. The elements of the
  25130. compound literal must be constant. If the object being initialized has
  25131. array type of unknown size, the size is determined by the size of the
  25132. compound literal.
  25133. static struct foo x = (struct foo) {1, 'a', 'b'};
  25134. static int y[] = (int []) {1, 2, 3};
  25135. static int z[] = (int [3]) {1};
  25136. The above lines are equivalent to the following:
  25137. static struct foo x = {1, 'a', 'b'};
  25138. static int y[] = {1, 2, 3};
  25139. static int z[] = {1, 0, 0};
  25140. In C, a compound literal designates an unnamed object with static or
  25141. automatic storage duration. In C++, a compound literal designates a
  25142. temporary object that only lives until the end of its full-expression.
  25143. As a result, well-defined C code that takes the address of a subobject
  25144. of a compound literal can be undefined in C++, so G++ rejects the
  25145. conversion of a temporary array to a pointer. For instance, if the
  25146. array compound literal example above appeared inside a function, any
  25147. subsequent use of 'foo' in C++ would have undefined behavior because the
  25148. lifetime of the array ends after the declaration of 'foo'.
  25149. As an optimization, G++ sometimes gives array compound literals longer
  25150. lifetimes: when the array either appears outside a function or has a
  25151. 'const'-qualified type. If 'foo' and its initializer had elements of
  25152. type 'char *const' rather than 'char *', or if 'foo' were a global
  25153. variable, the array would have static storage duration. But it is
  25154. probably safest just to avoid the use of array compound literals in C++
  25155. code.
  25156. 
  25157. File: gcc.info, Node: Designated Inits, Next: Case Ranges, Prev: Compound Literals, Up: C Extensions
  25158. 6.29 Designated Initializers
  25159. ============================
  25160. Standard C90 requires the elements of an initializer to appear in a
  25161. fixed order, the same as the order of the elements in the array or
  25162. structure being initialized.
  25163. In ISO C99 you can give the elements in any order, specifying the array
  25164. indices or structure field names they apply to, and GNU C allows this as
  25165. an extension in C90 mode as well. This extension is not implemented in
  25166. GNU C++.
  25167. To specify an array index, write '[INDEX] =' before the element value.
  25168. For example,
  25169. int a[6] = { [4] = 29, [2] = 15 };
  25170. is equivalent to
  25171. int a[6] = { 0, 0, 15, 0, 29, 0 };
  25172. The index values must be constant expressions, even if the array being
  25173. initialized is automatic.
  25174. An alternative syntax for this that has been obsolete since GCC 2.5 but
  25175. GCC still accepts is to write '[INDEX]' before the element value, with
  25176. no '='.
  25177. To initialize a range of elements to the same value, write '[FIRST ...
  25178. LAST] = VALUE'. This is a GNU extension. For example,
  25179. int widths[] = { [0 ... 9] = 1, [10 ... 99] = 2, [100] = 3 };
  25180. If the value in it has side effects, the side effects happen only once,
  25181. not for each initialized field by the range initializer.
  25182. Note that the length of the array is the highest value specified plus
  25183. one.
  25184. In a structure initializer, specify the name of a field to initialize
  25185. with '.FIELDNAME =' before the element value. For example, given the
  25186. following structure,
  25187. struct point { int x, y; };
  25188. the following initialization
  25189. struct point p = { .y = yvalue, .x = xvalue };
  25190. is equivalent to
  25191. struct point p = { xvalue, yvalue };
  25192. Another syntax that has the same meaning, obsolete since GCC 2.5, is
  25193. 'FIELDNAME:', as shown here:
  25194. struct point p = { y: yvalue, x: xvalue };
  25195. Omitted fields are implicitly initialized the same as for objects that
  25196. have static storage duration.
  25197. The '[INDEX]' or '.FIELDNAME' is known as a "designator". You can also
  25198. use a designator (or the obsolete colon syntax) when initializing a
  25199. union, to specify which element of the union should be used. For
  25200. example,
  25201. union foo { int i; double d; };
  25202. union foo f = { .d = 4 };
  25203. converts 4 to a 'double' to store it in the union using the second
  25204. element. By contrast, casting 4 to type 'union foo' stores it into the
  25205. union as the integer 'i', since it is an integer. *Note Cast to
  25206. Union::.
  25207. You can combine this technique of naming elements with ordinary C
  25208. initialization of successive elements. Each initializer element that
  25209. does not have a designator applies to the next consecutive element of
  25210. the array or structure. For example,
  25211. int a[6] = { [1] = v1, v2, [4] = v4 };
  25212. is equivalent to
  25213. int a[6] = { 0, v1, v2, 0, v4, 0 };
  25214. Labeling the elements of an array initializer is especially useful when
  25215. the indices are characters or belong to an 'enum' type. For example:
  25216. int whitespace[256]
  25217. = { [' '] = 1, ['\t'] = 1, ['\h'] = 1,
  25218. ['\f'] = 1, ['\n'] = 1, ['\r'] = 1 };
  25219. You can also write a series of '.FIELDNAME' and '[INDEX]' designators
  25220. before an '=' to specify a nested subobject to initialize; the list is
  25221. taken relative to the subobject corresponding to the closest surrounding
  25222. brace pair. For example, with the 'struct point' declaration above:
  25223. struct point ptarray[10] = { [2].y = yv2, [2].x = xv2, [0].x = xv0 };
  25224. If the same field is initialized multiple times, or overlapping fields
  25225. of a union are initialized, the value from the last initialization is
  25226. used. When a field of a union is itself a structure, the entire
  25227. structure from the last field initialized is used. If any previous
  25228. initializer has side effect, it is unspecified whether the side effect
  25229. happens or not. Currently, GCC discards the side-effecting initializer
  25230. expressions and issues a warning.
  25231. 
  25232. File: gcc.info, Node: Case Ranges, Next: Cast to Union, Prev: Designated Inits, Up: C Extensions
  25233. 6.30 Case Ranges
  25234. ================
  25235. You can specify a range of consecutive values in a single 'case' label,
  25236. like this:
  25237. case LOW ... HIGH:
  25238. This has the same effect as the proper number of individual 'case'
  25239. labels, one for each integer value from LOW to HIGH, inclusive.
  25240. This feature is especially useful for ranges of ASCII character codes:
  25241. case 'A' ... 'Z':
  25242. *Be careful:* Write spaces around the '...', for otherwise it may be
  25243. parsed wrong when you use it with integer values. For example, write
  25244. this:
  25245. case 1 ... 5:
  25246. rather than this:
  25247. case 1...5:
  25248. 
  25249. File: gcc.info, Node: Cast to Union, Next: Mixed Declarations, Prev: Case Ranges, Up: C Extensions
  25250. 6.31 Cast to a Union Type
  25251. =========================
  25252. A cast to a union type is a C extension not available in C++. It looks
  25253. just like ordinary casts with the constraint that the type specified is
  25254. a union type. You can specify the type either with the 'union' keyword
  25255. or with a 'typedef' name that refers to a union. The result of a cast
  25256. to a union is a temporary rvalue of the union type with a member whose
  25257. type matches that of the operand initialized to the value of the
  25258. operand. The effect of a cast to a union is similar to a compound
  25259. literal except that it yields an rvalue like standard casts do. *Note
  25260. Compound Literals::.
  25261. Expressions that may be cast to the union type are those whose type
  25262. matches at least one of the members of the union. Thus, given the
  25263. following union and variables:
  25264. union foo { int i; double d; };
  25265. int x;
  25266. double y;
  25267. union foo z;
  25268. both 'x' and 'y' can be cast to type 'union foo' and the following
  25269. assignments
  25270. z = (union foo) x;
  25271. z = (union foo) y;
  25272. are shorthand equivalents of these
  25273. z = (union foo) { .i = x };
  25274. z = (union foo) { .d = y };
  25275. However, '(union foo) FLT_MAX;' is not a valid cast because the union
  25276. has no member of type 'float'.
  25277. Using the cast as the right-hand side of an assignment to a variable of
  25278. union type is equivalent to storing in a member of the union with the
  25279. same type
  25280. union foo u;
  25281. /* ... */
  25282. u = (union foo) x == u.i = x
  25283. u = (union foo) y == u.d = y
  25284. You can also use the union cast as a function argument:
  25285. void hack (union foo);
  25286. /* ... */
  25287. hack ((union foo) x);
  25288. 
  25289. File: gcc.info, Node: Mixed Declarations, Next: Function Attributes, Prev: Cast to Union, Up: C Extensions
  25290. 6.32 Mixed Declarations and Code
  25291. ================================
  25292. ISO C99 and ISO C++ allow declarations and code to be freely mixed
  25293. within compound statements. As an extension, GNU C also allows this in
  25294. C90 mode. For example, you could do:
  25295. int i;
  25296. /* ... */
  25297. i++;
  25298. int j = i + 2;
  25299. Each identifier is visible from where it is declared until the end of
  25300. the enclosing block.
  25301. 
  25302. File: gcc.info, Node: Function Attributes, Next: Variable Attributes, Prev: Mixed Declarations, Up: C Extensions
  25303. 6.33 Declaring Attributes of Functions
  25304. ======================================
  25305. In GNU C and C++, you can use function attributes to specify certain
  25306. function properties that may help the compiler optimize calls or check
  25307. code more carefully for correctness. For example, you can use
  25308. attributes to specify that a function never returns ('noreturn'),
  25309. returns a value depending only on the values of its arguments ('const'),
  25310. or has 'printf'-style arguments ('format').
  25311. You can also use attributes to control memory placement, code
  25312. generation options or call/return conventions within the function being
  25313. annotated. Many of these attributes are target-specific. For example,
  25314. many targets support attributes for defining interrupt handler
  25315. functions, which typically must follow special register usage and return
  25316. conventions. Such attributes are described in the subsection for each
  25317. target. However, a considerable number of attributes are supported by
  25318. most, if not all targets. Those are described in the *note Common
  25319. Function Attributes:: section.
  25320. Function attributes are introduced by the '__attribute__' keyword in
  25321. the declaration of a function, followed by an attribute specification
  25322. enclosed in double parentheses. You can specify multiple attributes in
  25323. a declaration by separating them by commas within the double parentheses
  25324. or by immediately following one attribute specification with another.
  25325. *Note Attribute Syntax::, for the exact rules on attribute syntax and
  25326. placement. Compatible attribute specifications on distinct declarations
  25327. of the same function are merged. An attribute specification that is not
  25328. compatible with attributes already applied to a declaration of the same
  25329. function is ignored with a warning.
  25330. Some function attributes take one or more arguments that refer to the
  25331. function's parameters by their positions within the function parameter
  25332. list. Such attribute arguments are referred to as "positional
  25333. arguments". Unless specified otherwise, positional arguments that
  25334. specify properties of parameters with pointer types can also specify the
  25335. same properties of the implicit C++ 'this' argument in non-static member
  25336. functions, and of parameters of reference to a pointer type. For
  25337. ordinary functions, position one refers to the first parameter on the
  25338. list. In C++ non-static member functions, position one refers to the
  25339. implicit 'this' pointer. The same restrictions and effects apply to
  25340. function attributes used with ordinary functions or C++ member
  25341. functions.
  25342. GCC also supports attributes on variable declarations (*note Variable
  25343. Attributes::), labels (*note Label Attributes::), enumerators (*note
  25344. Enumerator Attributes::), statements (*note Statement Attributes::), and
  25345. types (*note Type Attributes::).
  25346. There is some overlap between the purposes of attributes and pragmas
  25347. (*note Pragmas Accepted by GCC: Pragmas.). It has been found convenient
  25348. to use '__attribute__' to achieve a natural attachment of attributes to
  25349. their corresponding declarations, whereas '#pragma' is of use for
  25350. compatibility with other compilers or constructs that do not naturally
  25351. form part of the grammar.
  25352. In addition to the attributes documented here, GCC plugins may provide
  25353. their own attributes.
  25354. * Menu:
  25355. * Common Function Attributes::
  25356. * AArch64 Function Attributes::
  25357. * AMD GCN Function Attributes::
  25358. * ARC Function Attributes::
  25359. * ARM Function Attributes::
  25360. * AVR Function Attributes::
  25361. * Blackfin Function Attributes::
  25362. * CR16 Function Attributes::
  25363. * C-SKY Function Attributes::
  25364. * Epiphany Function Attributes::
  25365. * H8/300 Function Attributes::
  25366. * IA-64 Function Attributes::
  25367. * M32C Function Attributes::
  25368. * M32R/D Function Attributes::
  25369. * m68k Function Attributes::
  25370. * MCORE Function Attributes::
  25371. * MeP Function Attributes::
  25372. * MicroBlaze Function Attributes::
  25373. * Microsoft Windows Function Attributes::
  25374. * MIPS Function Attributes::
  25375. * MSP430 Function Attributes::
  25376. * NDS32 Function Attributes::
  25377. * Nios II Function Attributes::
  25378. * Nvidia PTX Function Attributes::
  25379. * PowerPC Function Attributes::
  25380. * RISC-V Function Attributes::
  25381. * RL78 Function Attributes::
  25382. * RX Function Attributes::
  25383. * S/390 Function Attributes::
  25384. * SH Function Attributes::
  25385. * Symbian OS Function Attributes::
  25386. * V850 Function Attributes::
  25387. * Visium Function Attributes::
  25388. * x86 Function Attributes::
  25389. * Xstormy16 Function Attributes::
  25390. 
  25391. File: gcc.info, Node: Common Function Attributes, Next: AArch64 Function Attributes, Up: Function Attributes
  25392. 6.33.1 Common Function Attributes
  25393. ---------------------------------
  25394. The following attributes are supported on most targets.
  25395. 'access'
  25396. 'access (ACCESS-MODE, REF-INDEX)'
  25397. 'access (ACCESS-MODE, REF-INDEX, SIZE-INDEX)'
  25398. The 'access' attribute enables the detection of invalid or unsafe
  25399. accesses by functions to which they apply or their callers, as well
  25400. as write-only accesses to objects that are never read from. Such
  25401. accesses may be diagnosed by warnings such as
  25402. '-Wstringop-overflow', '-Wuninitialized', '-Wunused', and others.
  25403. The 'access' attribute specifies that a function to whose
  25404. by-reference arguments the attribute applies accesses the
  25405. referenced object according to ACCESS-MODE. The ACCESS-MODE
  25406. argument is required and must be one of three names: 'read_only',
  25407. 'read_write', or 'write_only'. The remaining two are positional
  25408. arguments.
  25409. The required REF-INDEX positional argument denotes a function
  25410. argument of pointer (or in C++, reference) type that is subject to
  25411. the access. The same pointer argument can be referenced by at most
  25412. one distinct 'access' attribute.
  25413. The optional SIZE-INDEX positional argument denotes a function
  25414. argument of integer type that specifies the maximum size of the
  25415. access. The size is the number of elements of the type referenced
  25416. by REF-INDEX, or the number of bytes when the pointer type is
  25417. 'void*'. When no SIZE-INDEX argument is specified, the pointer
  25418. argument must be either null or point to a space that is suitably
  25419. aligned and large for at least one object of the referenced type
  25420. (this implies that a past-the-end pointer is not a valid argument).
  25421. The actual size of the access may be less but it must not be more.
  25422. The 'read_only' access mode specifies that the pointer to which it
  25423. applies is used to read the referenced object but not write to it.
  25424. Unless the argument specifying the size of the access denoted by
  25425. SIZE-INDEX is zero, the referenced object must be initialized. The
  25426. mode implies a stronger guarantee than the 'const' qualifier which,
  25427. when cast away from a pointer, does not prevent the pointed-to
  25428. object from being modified. Examples of the use of the 'read_only'
  25429. access mode is the argument to the 'puts' function, or the second
  25430. and third arguments to the 'memcpy' function.
  25431. __attribute__ ((access (read_only, 1))) int puts (const char*);
  25432. __attribute__ ((access (read_only, 1, 2))) void* memcpy (void*, const void*, size_t);
  25433. The 'read_write' access mode applies to arguments of pointer types
  25434. without the 'const' qualifier. It specifies that the pointer to
  25435. which it applies is used to both read and write the referenced
  25436. object. Unless the argument specifying the size of the access
  25437. denoted by SIZE-INDEX is zero, the object referenced by the pointer
  25438. must be initialized. An example of the use of the 'read_write'
  25439. access mode is the first argument to the 'strcat' function.
  25440. __attribute__ ((access (read_write, 1), access (read_only, 2))) char* strcat (char*, const char*);
  25441. The 'write_only' access mode applies to arguments of pointer types
  25442. without the 'const' qualifier. It specifies that the pointer to
  25443. which it applies is used to write to the referenced object but not
  25444. read from it. The object referenced by the pointer need not be
  25445. initialized. An example of the use of the 'write_only' access mode
  25446. is the first argument to the 'strcpy' function, or the first two
  25447. arguments to the 'fgets' function.
  25448. __attribute__ ((access (write_only, 1), access (read_only, 2))) char* strcpy (char*, const char*);
  25449. __attribute__ ((access (write_only, 1, 2), access (read_write, 3))) int fgets (char*, int, FILE*);
  25450. 'alias ("TARGET")'
  25451. The 'alias' attribute causes the declaration to be emitted as an
  25452. alias for another symbol, which must have been previously declared
  25453. with the same type, and for variables, also the same size and
  25454. alignment. Declaring an alias with a different type than the
  25455. target is undefined and may be diagnosed. As an example, the
  25456. following declarations:
  25457. void __f () { /* Do something. */; }
  25458. void f () __attribute__ ((weak, alias ("__f")));
  25459. define 'f' to be a weak alias for '__f'. In C++, the mangled name
  25460. for the target must be used. It is an error if '__f' is not
  25461. defined in the same translation unit.
  25462. This attribute requires assembler and object file support, and may
  25463. not be available on all targets.
  25464. 'aligned'
  25465. 'aligned (ALIGNMENT)'
  25466. The 'aligned' attribute specifies a minimum alignment for the first
  25467. instruction of the function, measured in bytes. When specified,
  25468. ALIGNMENT must be an integer constant power of 2. Specifying no
  25469. ALIGNMENT argument implies the ideal alignment for the target. The
  25470. '__alignof__' operator can be used to determine what that is (*note
  25471. Alignment::). The attribute has no effect when a definition for
  25472. the function is not provided in the same translation unit.
  25473. The attribute cannot be used to decrease the alignment of a
  25474. function previously declared with a more restrictive alignment;
  25475. only to increase it. Attempts to do otherwise are diagnosed. Some
  25476. targets specify a minimum default alignment for functions that is
  25477. greater than 1. On such targets, specifying a less restrictive
  25478. alignment is silently ignored. Using the attribute overrides the
  25479. effect of the '-falign-functions' (*note Optimize Options::) option
  25480. for this function.
  25481. Note that the effectiveness of 'aligned' attributes may be limited
  25482. by inherent limitations in the system linker and/or object file
  25483. format. On some systems, the linker is only able to arrange for
  25484. functions to be aligned up to a certain maximum alignment. (For
  25485. some linkers, the maximum supported alignment may be very very
  25486. small.) See your linker documentation for further information.
  25487. The 'aligned' attribute can also be used for variables and fields
  25488. (*note Variable Attributes::.)
  25489. 'alloc_align (POSITION)'
  25490. The 'alloc_align' attribute may be applied to a function that
  25491. returns a pointer and takes at least one argument of an integer or
  25492. enumerated type. It indicates that the returned pointer is aligned
  25493. on a boundary given by the function argument at POSITION.
  25494. Meaningful alignments are powers of 2 greater than one. GCC uses
  25495. this information to improve pointer alignment analysis.
  25496. The function parameter denoting the allocated alignment is
  25497. specified by one constant integer argument whose number is the
  25498. argument of the attribute. Argument numbering starts at one.
  25499. For instance,
  25500. void* my_memalign (size_t, size_t) __attribute__ ((alloc_align (1)));
  25501. declares that 'my_memalign' returns memory with minimum alignment
  25502. given by parameter 1.
  25503. 'alloc_size (POSITION)'
  25504. 'alloc_size (POSITION-1, POSITION-2)'
  25505. The 'alloc_size' attribute may be applied to a function that
  25506. returns a pointer and takes at least one argument of an integer or
  25507. enumerated type. It indicates that the returned pointer points to
  25508. memory whose size is given by the function argument at POSITION-1,
  25509. or by the product of the arguments at POSITION-1 and POSITION-2.
  25510. Meaningful sizes are positive values less than 'PTRDIFF_MAX'. GCC
  25511. uses this information to improve the results of
  25512. '__builtin_object_size'.
  25513. The function parameter(s) denoting the allocated size are specified
  25514. by one or two integer arguments supplied to the attribute. The
  25515. allocated size is either the value of the single function argument
  25516. specified or the product of the two function arguments specified.
  25517. Argument numbering starts at one for ordinary functions, and at two
  25518. for C++ non-static member functions.
  25519. For instance,
  25520. void* my_calloc (size_t, size_t) __attribute__ ((alloc_size (1, 2)));
  25521. void* my_realloc (void*, size_t) __attribute__ ((alloc_size (2)));
  25522. declares that 'my_calloc' returns memory of the size given by the
  25523. product of parameter 1 and 2 and that 'my_realloc' returns memory
  25524. of the size given by parameter 2.
  25525. 'always_inline'
  25526. Generally, functions are not inlined unless optimization is
  25527. specified. For functions declared inline, this attribute inlines
  25528. the function independent of any restrictions that otherwise apply
  25529. to inlining. Failure to inline such a function is diagnosed as an
  25530. error. Note that if such a function is called indirectly the
  25531. compiler may or may not inline it depending on optimization level
  25532. and a failure to inline an indirect call may or may not be
  25533. diagnosed.
  25534. 'artificial'
  25535. This attribute is useful for small inline wrappers that if possible
  25536. should appear during debugging as a unit. Depending on the debug
  25537. info format it either means marking the function as artificial or
  25538. using the caller location for all instructions within the inlined
  25539. body.
  25540. 'assume_aligned (ALIGNMENT)'
  25541. 'assume_aligned (ALIGNMENT, OFFSET)'
  25542. The 'assume_aligned' attribute may be applied to a function that
  25543. returns a pointer. It indicates that the returned pointer is
  25544. aligned on a boundary given by ALIGNMENT. If the attribute has two
  25545. arguments, the second argument is misalignment OFFSET. Meaningful
  25546. values of ALIGNMENT are powers of 2 greater than one. Meaningful
  25547. values of OFFSET are greater than zero and less than ALIGNMENT.
  25548. For instance
  25549. void* my_alloc1 (size_t) __attribute__((assume_aligned (16)));
  25550. void* my_alloc2 (size_t) __attribute__((assume_aligned (32, 8)));
  25551. declares that 'my_alloc1' returns 16-byte aligned pointers and that
  25552. 'my_alloc2' returns a pointer whose value modulo 32 is equal to 8.
  25553. 'cold'
  25554. The 'cold' attribute on functions is used to inform the compiler
  25555. that the function is unlikely to be executed. The function is
  25556. optimized for size rather than speed and on many targets it is
  25557. placed into a special subsection of the text section so all cold
  25558. functions appear close together, improving code locality of
  25559. non-cold parts of program. The paths leading to calls of cold
  25560. functions within code are marked as unlikely by the branch
  25561. prediction mechanism. It is thus useful to mark functions used to
  25562. handle unlikely conditions, such as 'perror', as cold to improve
  25563. optimization of hot functions that do call marked functions in rare
  25564. occasions.
  25565. When profile feedback is available, via '-fprofile-use', cold
  25566. functions are automatically detected and this attribute is ignored.
  25567. 'const'
  25568. Calls to functions whose return value is not affected by changes to
  25569. the observable state of the program and that have no observable
  25570. effects on such state other than to return a value may lend
  25571. themselves to optimizations such as common subexpression
  25572. elimination. Declaring such functions with the 'const' attribute
  25573. allows GCC to avoid emitting some calls in repeated invocations of
  25574. the function with the same argument values.
  25575. For example,
  25576. int square (int) __attribute__ ((const));
  25577. tells GCC that subsequent calls to function 'square' with the same
  25578. argument value can be replaced by the result of the first call
  25579. regardless of the statements in between.
  25580. The 'const' attribute prohibits a function from reading objects
  25581. that affect its return value between successive invocations.
  25582. However, functions declared with the attribute can safely read
  25583. objects that do not change their return value, such as non-volatile
  25584. constants.
  25585. The 'const' attribute imposes greater restrictions on a function's
  25586. definition than the similar 'pure' attribute. Declaring the same
  25587. function with both the 'const' and the 'pure' attribute is
  25588. diagnosed. Because a const function cannot have any observable
  25589. side effects it does not make sense for it to return 'void'.
  25590. Declaring such a function is diagnosed.
  25591. Note that a function that has pointer arguments and examines the
  25592. data pointed to must _not_ be declared 'const' if the pointed-to
  25593. data might change between successive invocations of the function.
  25594. In general, since a function cannot distinguish data that might
  25595. change from data that cannot, const functions should never take
  25596. pointer or, in C++, reference arguments. Likewise, a function that
  25597. calls a non-const function usually must not be const itself.
  25598. 'constructor'
  25599. 'destructor'
  25600. 'constructor (PRIORITY)'
  25601. 'destructor (PRIORITY)'
  25602. The 'constructor' attribute causes the function to be called
  25603. automatically before execution enters 'main ()'. Similarly, the
  25604. 'destructor' attribute causes the function to be called
  25605. automatically after 'main ()' completes or 'exit ()' is called.
  25606. Functions with these attributes are useful for initializing data
  25607. that is used implicitly during the execution of the program.
  25608. On some targets the attributes also accept an integer argument to
  25609. specify a priority to control the order in which constructor and
  25610. destructor functions are run. A constructor with a smaller
  25611. priority number runs before a constructor with a larger priority
  25612. number; the opposite relationship holds for destructors. So, if
  25613. you have a constructor that allocates a resource and a destructor
  25614. that deallocates the same resource, both functions typically have
  25615. the same priority. The priorities for constructor and destructor
  25616. functions are the same as those specified for namespace-scope C++
  25617. objects (*note C++ Attributes::). However, at present, the order
  25618. in which constructors for C++ objects with static storage duration
  25619. and functions decorated with attribute 'constructor' are invoked is
  25620. unspecified. In mixed declarations, attribute 'init_priority' can
  25621. be used to impose a specific ordering.
  25622. Using the argument forms of the 'constructor' and 'destructor'
  25623. attributes on targets where the feature is not supported is
  25624. rejected with an error.
  25625. 'copy'
  25626. 'copy (FUNCTION)'
  25627. The 'copy' attribute applies the set of attributes with which
  25628. FUNCTION has been declared to the declaration of the function to
  25629. which the attribute is applied. The attribute is designed for
  25630. libraries that define aliases or function resolvers that are
  25631. expected to specify the same set of attributes as their targets.
  25632. The 'copy' attribute can be used with functions, variables, or
  25633. types. However, the kind of symbol to which the attribute is
  25634. applied (either function or variable) must match the kind of symbol
  25635. to which the argument refers. The 'copy' attribute copies only
  25636. syntactic and semantic attributes but not attributes that affect a
  25637. symbol's linkage or visibility such as 'alias', 'visibility', or
  25638. 'weak'. The 'deprecated' and 'target_clones' attribute are also
  25639. not copied. *Note Common Type Attributes::. *Note Common Variable
  25640. Attributes::.
  25641. For example, the STRONGALIAS macro below makes use of the 'alias'
  25642. and 'copy' attributes to define an alias named ALLOC for function
  25643. ALLOCATE declared with attributes ALLOC_SIZE, MALLOC, and NOTHROW.
  25644. Thanks to the '__typeof__' operator the alias has the same type as
  25645. the target function. As a result of the 'copy' attribute the alias
  25646. also shares the same attributes as the target.
  25647. #define StrongAlias(TargetFunc, AliasDecl) \
  25648. extern __typeof__ (TargetFunc) AliasDecl \
  25649. __attribute__ ((alias (#TargetFunc), copy (TargetFunc)));
  25650. extern __attribute__ ((alloc_size (1), malloc, nothrow))
  25651. void* allocate (size_t);
  25652. StrongAlias (allocate, alloc);
  25653. 'deprecated'
  25654. 'deprecated (MSG)'
  25655. The 'deprecated' attribute results in a warning if the function is
  25656. used anywhere in the source file. This is useful when identifying
  25657. functions that are expected to be removed in a future version of a
  25658. program. The warning also includes the location of the declaration
  25659. of the deprecated function, to enable users to easily find further
  25660. information about why the function is deprecated, or what they
  25661. should do instead. Note that the warnings only occurs for uses:
  25662. int old_fn () __attribute__ ((deprecated));
  25663. int old_fn ();
  25664. int (*fn_ptr)() = old_fn;
  25665. results in a warning on line 3 but not line 2. The optional MSG
  25666. argument, which must be a string, is printed in the warning if
  25667. present.
  25668. The 'deprecated' attribute can also be used for variables and types
  25669. (*note Variable Attributes::, *note Type Attributes::.)
  25670. The message attached to the attribute is affected by the setting of
  25671. the '-fmessage-length' option.
  25672. 'error ("MESSAGE")'
  25673. 'warning ("MESSAGE")'
  25674. If the 'error' or 'warning' attribute is used on a function
  25675. declaration and a call to such a function is not eliminated through
  25676. dead code elimination or other optimizations, an error or warning
  25677. (respectively) that includes MESSAGE is diagnosed. This is useful
  25678. for compile-time checking, especially together with
  25679. '__builtin_constant_p' and inline functions where checking the
  25680. inline function arguments is not possible through 'extern char
  25681. [(condition) ? 1 : -1];' tricks.
  25682. While it is possible to leave the function undefined and thus
  25683. invoke a link failure (to define the function with a message in
  25684. '.gnu.warning*' section), when using these attributes the problem
  25685. is diagnosed earlier and with exact location of the call even in
  25686. presence of inline functions or when not emitting debugging
  25687. information.
  25688. 'externally_visible'
  25689. This attribute, attached to a global variable or function,
  25690. nullifies the effect of the '-fwhole-program' command-line option,
  25691. so the object remains visible outside the current compilation unit.
  25692. If '-fwhole-program' is used together with '-flto' and 'gold' is
  25693. used as the linker plugin, 'externally_visible' attributes are
  25694. automatically added to functions (not variable yet due to a current
  25695. 'gold' issue) that are accessed outside of LTO objects according to
  25696. resolution file produced by 'gold'. For other linkers that cannot
  25697. generate resolution file, explicit 'externally_visible' attributes
  25698. are still necessary.
  25699. 'flatten'
  25700. Generally, inlining into a function is limited. For a function
  25701. marked with this attribute, every call inside this function is
  25702. inlined, if possible. Functions declared with attribute 'noinline'
  25703. and similar are not inlined. Whether the function itself is
  25704. considered for inlining depends on its size and the current
  25705. inlining parameters.
  25706. 'format (ARCHETYPE, STRING-INDEX, FIRST-TO-CHECK)'
  25707. The 'format' attribute specifies that a function takes 'printf',
  25708. 'scanf', 'strftime' or 'strfmon' style arguments that should be
  25709. type-checked against a format string. For example, the
  25710. declaration:
  25711. extern int
  25712. my_printf (void *my_object, const char *my_format, ...)
  25713. __attribute__ ((format (printf, 2, 3)));
  25714. causes the compiler to check the arguments in calls to 'my_printf'
  25715. for consistency with the 'printf' style format string argument
  25716. 'my_format'.
  25717. The parameter ARCHETYPE determines how the format string is
  25718. interpreted, and should be 'printf', 'scanf', 'strftime',
  25719. 'gnu_printf', 'gnu_scanf', 'gnu_strftime' or 'strfmon'. (You can
  25720. also use '__printf__', '__scanf__', '__strftime__' or
  25721. '__strfmon__'.) On MinGW targets, 'ms_printf', 'ms_scanf', and
  25722. 'ms_strftime' are also present. ARCHETYPE values such as 'printf'
  25723. refer to the formats accepted by the system's C runtime library,
  25724. while values prefixed with 'gnu_' always refer to the formats
  25725. accepted by the GNU C Library. On Microsoft Windows targets,
  25726. values prefixed with 'ms_' refer to the formats accepted by the
  25727. 'msvcrt.dll' library. The parameter STRING-INDEX specifies which
  25728. argument is the format string argument (starting from 1), while
  25729. FIRST-TO-CHECK is the number of the first argument to check against
  25730. the format string. For functions where the arguments are not
  25731. available to be checked (such as 'vprintf'), specify the third
  25732. parameter as zero. In this case the compiler only checks the
  25733. format string for consistency. For 'strftime' formats, the third
  25734. parameter is required to be zero. Since non-static C++ methods
  25735. have an implicit 'this' argument, the arguments of such methods
  25736. should be counted from two, not one, when giving values for
  25737. STRING-INDEX and FIRST-TO-CHECK.
  25738. In the example above, the format string ('my_format') is the second
  25739. argument of the function 'my_print', and the arguments to check
  25740. start with the third argument, so the correct parameters for the
  25741. format attribute are 2 and 3.
  25742. The 'format' attribute allows you to identify your own functions
  25743. that take format strings as arguments, so that GCC can check the
  25744. calls to these functions for errors. The compiler always (unless
  25745. '-ffreestanding' or '-fno-builtin' is used) checks formats for the
  25746. standard library functions 'printf', 'fprintf', 'sprintf', 'scanf',
  25747. 'fscanf', 'sscanf', 'strftime', 'vprintf', 'vfprintf' and
  25748. 'vsprintf' whenever such warnings are requested (using '-Wformat'),
  25749. so there is no need to modify the header file 'stdio.h'. In C99
  25750. mode, the functions 'snprintf', 'vsnprintf', 'vscanf', 'vfscanf'
  25751. and 'vsscanf' are also checked. Except in strictly conforming C
  25752. standard modes, the X/Open function 'strfmon' is also checked as
  25753. are 'printf_unlocked' and 'fprintf_unlocked'. *Note Options
  25754. Controlling C Dialect: C Dialect Options.
  25755. For Objective-C dialects, 'NSString' (or '__NSString__') is
  25756. recognized in the same context. Declarations including these
  25757. format attributes are parsed for correct syntax, however the result
  25758. of checking of such format strings is not yet defined, and is not
  25759. carried out by this version of the compiler.
  25760. The target may also provide additional types of format checks.
  25761. *Note Format Checks Specific to Particular Target Machines: Target
  25762. Format Checks.
  25763. 'format_arg (STRING-INDEX)'
  25764. The 'format_arg' attribute specifies that a function takes one or
  25765. more format strings for a 'printf', 'scanf', 'strftime' or
  25766. 'strfmon' style function and modifies it (for example, to translate
  25767. it into another language), so the result can be passed to a
  25768. 'printf', 'scanf', 'strftime' or 'strfmon' style function (with the
  25769. remaining arguments to the format function the same as they would
  25770. have been for the unmodified string). Multiple 'format_arg'
  25771. attributes may be applied to the same function, each designating a
  25772. distinct parameter as a format string. For example, the
  25773. declaration:
  25774. extern char *
  25775. my_dgettext (char *my_domain, const char *my_format)
  25776. __attribute__ ((format_arg (2)));
  25777. causes the compiler to check the arguments in calls to a 'printf',
  25778. 'scanf', 'strftime' or 'strfmon' type function, whose format string
  25779. argument is a call to the 'my_dgettext' function, for consistency
  25780. with the format string argument 'my_format'. If the 'format_arg'
  25781. attribute had not been specified, all the compiler could tell in
  25782. such calls to format functions would be that the format string
  25783. argument is not constant; this would generate a warning when
  25784. '-Wformat-nonliteral' is used, but the calls could not be checked
  25785. without the attribute.
  25786. In calls to a function declared with more than one 'format_arg'
  25787. attribute, each with a distinct argument value, the corresponding
  25788. actual function arguments are checked against all format strings
  25789. designated by the attributes. This capability is designed to
  25790. support the GNU 'ngettext' family of functions.
  25791. The parameter STRING-INDEX specifies which argument is the format
  25792. string argument (starting from one). Since non-static C++ methods
  25793. have an implicit 'this' argument, the arguments of such methods
  25794. should be counted from two.
  25795. The 'format_arg' attribute allows you to identify your own
  25796. functions that modify format strings, so that GCC can check the
  25797. calls to 'printf', 'scanf', 'strftime' or 'strfmon' type function
  25798. whose operands are a call to one of your own function. The
  25799. compiler always treats 'gettext', 'dgettext', and 'dcgettext' in
  25800. this manner except when strict ISO C support is requested by
  25801. '-ansi' or an appropriate '-std' option, or '-ffreestanding' or
  25802. '-fno-builtin' is used. *Note Options Controlling C Dialect: C
  25803. Dialect Options.
  25804. For Objective-C dialects, the 'format-arg' attribute may refer to
  25805. an 'NSString' reference for compatibility with the 'format'
  25806. attribute above.
  25807. The target may also allow additional types in 'format-arg'
  25808. attributes. *Note Format Checks Specific to Particular Target
  25809. Machines: Target Format Checks.
  25810. 'gnu_inline'
  25811. This attribute should be used with a function that is also declared
  25812. with the 'inline' keyword. It directs GCC to treat the function as
  25813. if it were defined in gnu90 mode even when compiling in C99 or
  25814. gnu99 mode.
  25815. If the function is declared 'extern', then this definition of the
  25816. function is used only for inlining. In no case is the function
  25817. compiled as a standalone function, not even if you take its address
  25818. explicitly. Such an address becomes an external reference, as if
  25819. you had only declared the function, and had not defined it. This
  25820. has almost the effect of a macro. The way to use this is to put a
  25821. function definition in a header file with this attribute, and put
  25822. another copy of the function, without 'extern', in a library file.
  25823. The definition in the header file causes most calls to the function
  25824. to be inlined. If any uses of the function remain, they refer to
  25825. the single copy in the library. Note that the two definitions of
  25826. the functions need not be precisely the same, although if they do
  25827. not have the same effect your program may behave oddly.
  25828. In C, if the function is neither 'extern' nor 'static', then the
  25829. function is compiled as a standalone function, as well as being
  25830. inlined where possible.
  25831. This is how GCC traditionally handled functions declared 'inline'.
  25832. Since ISO C99 specifies a different semantics for 'inline', this
  25833. function attribute is provided as a transition measure and as a
  25834. useful feature in its own right. This attribute is available in
  25835. GCC 4.1.3 and later. It is available if either of the preprocessor
  25836. macros '__GNUC_GNU_INLINE__' or '__GNUC_STDC_INLINE__' are defined.
  25837. *Note An Inline Function is As Fast As a Macro: Inline.
  25838. In C++, this attribute does not depend on 'extern' in any way, but
  25839. it still requires the 'inline' keyword to enable its special
  25840. behavior.
  25841. 'hot'
  25842. The 'hot' attribute on a function is used to inform the compiler
  25843. that the function is a hot spot of the compiled program. The
  25844. function is optimized more aggressively and on many targets it is
  25845. placed into a special subsection of the text section so all hot
  25846. functions appear close together, improving locality.
  25847. When profile feedback is available, via '-fprofile-use', hot
  25848. functions are automatically detected and this attribute is ignored.
  25849. 'ifunc ("RESOLVER")'
  25850. The 'ifunc' attribute is used to mark a function as an indirect
  25851. function using the STT_GNU_IFUNC symbol type extension to the ELF
  25852. standard. This allows the resolution of the symbol value to be
  25853. determined dynamically at load time, and an optimized version of
  25854. the routine to be selected for the particular processor or other
  25855. system characteristics determined then. To use this attribute,
  25856. first define the implementation functions available, and a resolver
  25857. function that returns a pointer to the selected implementation
  25858. function. The implementation functions' declarations must match
  25859. the API of the function being implemented. The resolver should be
  25860. declared to be a function taking no arguments and returning a
  25861. pointer to a function of the same type as the implementation. For
  25862. example:
  25863. void *my_memcpy (void *dst, const void *src, size_t len)
  25864. {
  25865. ...
  25866. return dst;
  25867. }
  25868. static void * (*resolve_memcpy (void))(void *, const void *, size_t)
  25869. {
  25870. return my_memcpy; // we will just always select this routine
  25871. }
  25872. The exported header file declaring the function the user calls
  25873. would contain:
  25874. extern void *memcpy (void *, const void *, size_t);
  25875. allowing the user to call 'memcpy' as a regular function, unaware
  25876. of the actual implementation. Finally, the indirect function needs
  25877. to be defined in the same translation unit as the resolver
  25878. function:
  25879. void *memcpy (void *, const void *, size_t)
  25880. __attribute__ ((ifunc ("resolve_memcpy")));
  25881. In C++, the 'ifunc' attribute takes a string that is the mangled
  25882. name of the resolver function. A C++ resolver for a non-static
  25883. member function of class 'C' should be declared to return a pointer
  25884. to a non-member function taking pointer to 'C' as the first
  25885. argument, followed by the same arguments as of the implementation
  25886. function. G++ checks the signatures of the two functions and
  25887. issues a '-Wattribute-alias' warning for mismatches. To suppress a
  25888. warning for the necessary cast from a pointer to the implementation
  25889. member function to the type of the corresponding non-member
  25890. function use the '-Wno-pmf-conversions' option. For example:
  25891. class S
  25892. {
  25893. private:
  25894. int debug_impl (int);
  25895. int optimized_impl (int);
  25896. typedef int Func (S*, int);
  25897. static Func* resolver ();
  25898. public:
  25899. int interface (int);
  25900. };
  25901. int S::debug_impl (int) { /* ... */ }
  25902. int S::optimized_impl (int) { /* ... */ }
  25903. S::Func* S::resolver ()
  25904. {
  25905. int (S::*pimpl) (int)
  25906. = getenv ("DEBUG") ? &S::debug_impl : &S::optimized_impl;
  25907. // Cast triggers -Wno-pmf-conversions.
  25908. return reinterpret_cast<Func*>(pimpl);
  25909. }
  25910. int S::interface (int) __attribute__ ((ifunc ("_ZN1S8resolverEv")));
  25911. Indirect functions cannot be weak. Binutils version 2.20.1 or
  25912. higher and GNU C Library version 2.11.1 are required to use this
  25913. feature.
  25914. 'interrupt'
  25915. 'interrupt_handler'
  25916. Many GCC back ends support attributes to indicate that a function
  25917. is an interrupt handler, which tells the compiler to generate
  25918. function entry and exit sequences that differ from those from
  25919. regular functions. The exact syntax and behavior are
  25920. target-specific; refer to the following subsections for details.
  25921. 'leaf'
  25922. Calls to external functions with this attribute must return to the
  25923. current compilation unit only by return or by exception handling.
  25924. In particular, a leaf function is not allowed to invoke callback
  25925. functions passed to it from the current compilation unit, directly
  25926. call functions exported by the unit, or 'longjmp' into the unit.
  25927. Leaf functions might still call functions from other compilation
  25928. units and thus they are not necessarily leaf in the sense that they
  25929. contain no function calls at all.
  25930. The attribute is intended for library functions to improve dataflow
  25931. analysis. The compiler takes the hint that any data not escaping
  25932. the current compilation unit cannot be used or modified by the leaf
  25933. function. For example, the 'sin' function is a leaf function, but
  25934. 'qsort' is not.
  25935. Note that leaf functions might indirectly run a signal handler
  25936. defined in the current compilation unit that uses static variables.
  25937. Similarly, when lazy symbol resolution is in effect, leaf functions
  25938. might invoke indirect functions whose resolver function or
  25939. implementation function is defined in the current compilation unit
  25940. and uses static variables. There is no standard-compliant way to
  25941. write such a signal handler, resolver function, or implementation
  25942. function, and the best that you can do is to remove the 'leaf'
  25943. attribute or mark all such static variables 'volatile'. Lastly,
  25944. for ELF-based systems that support symbol interposition, care
  25945. should be taken that functions defined in the current compilation
  25946. unit do not unexpectedly interpose other symbols based on the
  25947. defined standards mode and defined feature test macros; otherwise
  25948. an inadvertent callback would be added.
  25949. The attribute has no effect on functions defined within the current
  25950. compilation unit. This is to allow easy merging of multiple
  25951. compilation units into one, for example, by using the link-time
  25952. optimization. For this reason the attribute is not allowed on
  25953. types to annotate indirect calls.
  25954. 'malloc'
  25955. This tells the compiler that a function is 'malloc'-like, i.e.,
  25956. that the pointer P returned by the function cannot alias any other
  25957. pointer valid when the function returns, and moreover no pointers
  25958. to valid objects occur in any storage addressed by P.
  25959. Using this attribute can improve optimization. Compiler predicts
  25960. that a function with the attribute returns non-null in most cases.
  25961. Functions like 'malloc' and 'calloc' have this property because
  25962. they return a pointer to uninitialized or zeroed-out storage.
  25963. However, functions like 'realloc' do not have this property, as
  25964. they can return a pointer to storage containing pointers.
  25965. 'no_icf'
  25966. This function attribute prevents a functions from being merged with
  25967. another semantically equivalent function.
  25968. 'no_instrument_function'
  25969. If any of '-finstrument-functions', '-p', or '-pg' are given,
  25970. profiling function calls are generated at entry and exit of most
  25971. user-compiled functions. Functions with this attribute are not so
  25972. instrumented.
  25973. 'no_profile_instrument_function'
  25974. The 'no_profile_instrument_function' attribute on functions is used
  25975. to inform the compiler that it should not process any profile
  25976. feedback based optimization code instrumentation.
  25977. 'no_reorder'
  25978. Do not reorder functions or variables marked 'no_reorder' against
  25979. each other or top level assembler statements the executable. The
  25980. actual order in the program will depend on the linker command line.
  25981. Static variables marked like this are also not removed. This has a
  25982. similar effect as the '-fno-toplevel-reorder' option, but only
  25983. applies to the marked symbols.
  25984. 'no_sanitize ("SANITIZE_OPTION")'
  25985. The 'no_sanitize' attribute on functions is used to inform the
  25986. compiler that it should not do sanitization of any option mentioned
  25987. in SANITIZE_OPTION. A list of values acceptable by the
  25988. '-fsanitize' option can be provided.
  25989. void __attribute__ ((no_sanitize ("alignment", "object-size")))
  25990. f () { /* Do something. */; }
  25991. void __attribute__ ((no_sanitize ("alignment,object-size")))
  25992. g () { /* Do something. */; }
  25993. 'no_sanitize_address'
  25994. 'no_address_safety_analysis'
  25995. The 'no_sanitize_address' attribute on functions is used to inform
  25996. the compiler that it should not instrument memory accesses in the
  25997. function when compiling with the '-fsanitize=address' option. The
  25998. 'no_address_safety_analysis' is a deprecated alias of the
  25999. 'no_sanitize_address' attribute, new code should use
  26000. 'no_sanitize_address'.
  26001. 'no_sanitize_thread'
  26002. The 'no_sanitize_thread' attribute on functions is used to inform
  26003. the compiler that it should not instrument memory accesses in the
  26004. function when compiling with the '-fsanitize=thread' option.
  26005. 'no_sanitize_undefined'
  26006. The 'no_sanitize_undefined' attribute on functions is used to
  26007. inform the compiler that it should not check for undefined behavior
  26008. in the function when compiling with the '-fsanitize=undefined'
  26009. option.
  26010. 'no_split_stack'
  26011. If '-fsplit-stack' is given, functions have a small prologue which
  26012. decides whether to split the stack. Functions with the
  26013. 'no_split_stack' attribute do not have that prologue, and thus may
  26014. run with only a small amount of stack space available.
  26015. 'no_stack_limit'
  26016. This attribute locally overrides the '-fstack-limit-register' and
  26017. '-fstack-limit-symbol' command-line options; it has the effect of
  26018. disabling stack limit checking in the function it applies to.
  26019. 'noclone'
  26020. This function attribute prevents a function from being considered
  26021. for cloning--a mechanism that produces specialized copies of
  26022. functions and which is (currently) performed by interprocedural
  26023. constant propagation.
  26024. 'noinline'
  26025. This function attribute prevents a function from being considered
  26026. for inlining. If the function does not have side effects, there
  26027. are optimizations other than inlining that cause function calls to
  26028. be optimized away, although the function call is live. To keep
  26029. such calls from being optimized away, put
  26030. asm ("");
  26031. (*note Extended Asm::) in the called function, to serve as a
  26032. special side effect.
  26033. 'noipa'
  26034. Disable interprocedural optimizations between the function with
  26035. this attribute and its callers, as if the body of the function is
  26036. not available when optimizing callers and the callers are
  26037. unavailable when optimizing the body. This attribute implies
  26038. 'noinline', 'noclone' and 'no_icf' attributes. However, this
  26039. attribute is not equivalent to a combination of other attributes,
  26040. because its purpose is to suppress existing and future
  26041. optimizations employing interprocedural analysis, including those
  26042. that do not have an attribute suitable for disabling them
  26043. individually. This attribute is supported mainly for the purpose
  26044. of testing the compiler.
  26045. 'nonnull'
  26046. 'nonnull (ARG-INDEX, ...)'
  26047. The 'nonnull' attribute may be applied to a function that takes at
  26048. least one argument of a pointer type. It indicates that the
  26049. referenced arguments must be non-null pointers. For instance, the
  26050. declaration:
  26051. extern void *
  26052. my_memcpy (void *dest, const void *src, size_t len)
  26053. __attribute__((nonnull (1, 2)));
  26054. causes the compiler to check that, in calls to 'my_memcpy',
  26055. arguments DEST and SRC are non-null. If the compiler determines
  26056. that a null pointer is passed in an argument slot marked as
  26057. non-null, and the '-Wnonnull' option is enabled, a warning is
  26058. issued. *Note Warning Options::. Unless disabled by the
  26059. '-fno-delete-null-pointer-checks' option the compiler may also
  26060. perform optimizations based on the knowledge that certain function
  26061. arguments cannot be null. In addition, the
  26062. '-fisolate-erroneous-paths-attribute' option can be specified to
  26063. have GCC transform calls with null arguments to non-null functions
  26064. into traps. *Note Optimize Options::.
  26065. If no ARG-INDEX is given to the 'nonnull' attribute, all pointer
  26066. arguments are marked as non-null. To illustrate, the following
  26067. declaration is equivalent to the previous example:
  26068. extern void *
  26069. my_memcpy (void *dest, const void *src, size_t len)
  26070. __attribute__((nonnull));
  26071. 'noplt'
  26072. The 'noplt' attribute is the counterpart to option '-fno-plt'.
  26073. Calls to functions marked with this attribute in
  26074. position-independent code do not use the PLT.
  26075. /* Externally defined function foo. */
  26076. int foo () __attribute__ ((noplt));
  26077. int
  26078. main (/* ... */)
  26079. {
  26080. /* ... */
  26081. foo ();
  26082. /* ... */
  26083. }
  26084. The 'noplt' attribute on function 'foo' tells the compiler to
  26085. assume that the function 'foo' is externally defined and that the
  26086. call to 'foo' must avoid the PLT in position-independent code.
  26087. In position-dependent code, a few targets also convert calls to
  26088. functions that are marked to not use the PLT to use the GOT
  26089. instead.
  26090. 'noreturn'
  26091. A few standard library functions, such as 'abort' and 'exit',
  26092. cannot return. GCC knows this automatically. Some programs define
  26093. their own functions that never return. You can declare them
  26094. 'noreturn' to tell the compiler this fact. For example,
  26095. void fatal () __attribute__ ((noreturn));
  26096. void
  26097. fatal (/* ... */)
  26098. {
  26099. /* ... */ /* Print error message. */ /* ... */
  26100. exit (1);
  26101. }
  26102. The 'noreturn' keyword tells the compiler to assume that 'fatal'
  26103. cannot return. It can then optimize without regard to what would
  26104. happen if 'fatal' ever did return. This makes slightly better
  26105. code. More importantly, it helps avoid spurious warnings of
  26106. uninitialized variables.
  26107. The 'noreturn' keyword does not affect the exceptional path when
  26108. that applies: a 'noreturn'-marked function may still return to the
  26109. caller by throwing an exception or calling 'longjmp'.
  26110. In order to preserve backtraces, GCC will never turn calls to
  26111. 'noreturn' functions into tail calls.
  26112. Do not assume that registers saved by the calling function are
  26113. restored before calling the 'noreturn' function.
  26114. It does not make sense for a 'noreturn' function to have a return
  26115. type other than 'void'.
  26116. 'nothrow'
  26117. The 'nothrow' attribute is used to inform the compiler that a
  26118. function cannot throw an exception. For example, most functions in
  26119. the standard C library can be guaranteed not to throw an exception
  26120. with the notable exceptions of 'qsort' and 'bsearch' that take
  26121. function pointer arguments.
  26122. 'optimize (LEVEL, ...)'
  26123. 'optimize (STRING, ...)'
  26124. The 'optimize' attribute is used to specify that a function is to
  26125. be compiled with different optimization options than specified on
  26126. the command line. Valid arguments are constant non-negative
  26127. integers and strings. Each numeric argument specifies an
  26128. optimization LEVEL. Each STRING argument consists of one or more
  26129. comma-separated substrings. Each substring that begins with the
  26130. letter 'O' refers to an optimization option such as '-O0' or '-Os'.
  26131. Other substrings are taken as suffixes to the '-f' prefix jointly
  26132. forming the name of an optimization option. *Note Optimize
  26133. Options::.
  26134. '#pragma GCC optimize' can be used to set optimization options for
  26135. more than one function. *Note Function Specific Option Pragmas::,
  26136. for details about the pragma.
  26137. Providing multiple strings as arguments separated by commas to
  26138. specify multiple options is equivalent to separating the option
  26139. suffixes with a comma (',') within a single string. Spaces are not
  26140. permitted within the strings.
  26141. Not every optimization option that starts with the -F prefix
  26142. specified by the attribute necessarily has an effect on the
  26143. function. The 'optimize' attribute should be used for debugging
  26144. purposes only. It is not suitable in production code.
  26145. 'patchable_function_entry'
  26146. In case the target's text segment can be made writable at run time
  26147. by any means, padding the function entry with a number of NOPs can
  26148. be used to provide a universal tool for instrumentation.
  26149. The 'patchable_function_entry' function attribute can be used to
  26150. change the number of NOPs to any desired value. The two-value
  26151. syntax is the same as for the command-line switch
  26152. '-fpatchable-function-entry=N,M', generating N NOPs, with the
  26153. function entry point before the Mth NOP instruction. M defaults to
  26154. 0 if omitted e.g. function entry point is before the first NOP.
  26155. If patchable function entries are enabled globally using the
  26156. command-line option '-fpatchable-function-entry=N,M', then you must
  26157. disable instrumentation on all functions that are part of the
  26158. instrumentation framework with the attribute
  26159. 'patchable_function_entry (0)' to prevent recursion.
  26160. 'pure'
  26161. Calls to functions that have no observable effects on the state of
  26162. the program other than to return a value may lend themselves to
  26163. optimizations such as common subexpression elimination. Declaring
  26164. such functions with the 'pure' attribute allows GCC to avoid
  26165. emitting some calls in repeated invocations of the function with
  26166. the same argument values.
  26167. The 'pure' attribute prohibits a function from modifying the state
  26168. of the program that is observable by means other than inspecting
  26169. the function's return value. However, functions declared with the
  26170. 'pure' attribute can safely read any non-volatile objects, and
  26171. modify the value of objects in a way that does not affect their
  26172. return value or the observable state of the program.
  26173. For example,
  26174. int hash (char *) __attribute__ ((pure));
  26175. tells GCC that subsequent calls to the function 'hash' with the
  26176. same string can be replaced by the result of the first call
  26177. provided the state of the program observable by 'hash', including
  26178. the contents of the array itself, does not change in between. Even
  26179. though 'hash' takes a non-const pointer argument it must not modify
  26180. the array it points to, or any other object whose value the rest of
  26181. the program may depend on. However, the caller may safely change
  26182. the contents of the array between successive calls to the function
  26183. (doing so disables the optimization). The restriction also applies
  26184. to member objects referenced by the 'this' pointer in C++
  26185. non-static member functions.
  26186. Some common examples of pure functions are 'strlen' or 'memcmp'.
  26187. Interesting non-pure functions are functions with infinite loops or
  26188. those depending on volatile memory or other system resource, that
  26189. may change between consecutive calls (such as the standard C 'feof'
  26190. function in a multithreading environment).
  26191. The 'pure' attribute imposes similar but looser restrictions on a
  26192. function's definition than the 'const' attribute: 'pure' allows the
  26193. function to read any non-volatile memory, even if it changes in
  26194. between successive invocations of the function. Declaring the same
  26195. function with both the 'pure' and the 'const' attribute is
  26196. diagnosed. Because a pure function cannot have any observable side
  26197. effects it does not make sense for such a function to return
  26198. 'void'. Declaring such a function is diagnosed.
  26199. 'returns_nonnull'
  26200. The 'returns_nonnull' attribute specifies that the function return
  26201. value should be a non-null pointer. For instance, the declaration:
  26202. extern void *
  26203. mymalloc (size_t len) __attribute__((returns_nonnull));
  26204. lets the compiler optimize callers based on the knowledge that the
  26205. return value will never be null.
  26206. 'returns_twice'
  26207. The 'returns_twice' attribute tells the compiler that a function
  26208. may return more than one time. The compiler ensures that all
  26209. registers are dead before calling such a function and emits a
  26210. warning about the variables that may be clobbered after the second
  26211. return from the function. Examples of such functions are 'setjmp'
  26212. and 'vfork'. The 'longjmp'-like counterpart of such function, if
  26213. any, might need to be marked with the 'noreturn' attribute.
  26214. 'section ("SECTION-NAME")'
  26215. Normally, the compiler places the code it generates in the 'text'
  26216. section. Sometimes, however, you need additional sections, or you
  26217. need certain particular functions to appear in special sections.
  26218. The 'section' attribute specifies that a function lives in a
  26219. particular section. For example, the declaration:
  26220. extern void foobar (void) __attribute__ ((section ("bar")));
  26221. puts the function 'foobar' in the 'bar' section.
  26222. Some file formats do not support arbitrary sections so the
  26223. 'section' attribute is not available on all platforms. If you need
  26224. to map the entire contents of a module to a particular section,
  26225. consider using the facilities of the linker instead.
  26226. 'sentinel'
  26227. 'sentinel (POSITION)'
  26228. This function attribute indicates that an argument in a call to the
  26229. function is expected to be an explicit 'NULL'. The attribute is
  26230. only valid on variadic functions. By default, the sentinel is
  26231. expected to be the last argument of the function call. If the
  26232. optional POSITION argument is specified to the attribute, the
  26233. sentinel must be located at POSITION counting backwards from the
  26234. end of the argument list.
  26235. __attribute__ ((sentinel))
  26236. is equivalent to
  26237. __attribute__ ((sentinel(0)))
  26238. The attribute is automatically set with a position of 0 for the
  26239. built-in functions 'execl' and 'execlp'. The built-in function
  26240. 'execle' has the attribute set with a position of 1.
  26241. A valid 'NULL' in this context is defined as zero with any object
  26242. pointer type. If your system defines the 'NULL' macro with an
  26243. integer type then you need to add an explicit cast. During
  26244. installation GCC replaces the system '<stddef.h>' header with a
  26245. copy that redefines NULL appropriately.
  26246. The warnings for missing or incorrect sentinels are enabled with
  26247. '-Wformat'.
  26248. 'simd'
  26249. 'simd("MASK")'
  26250. This attribute enables creation of one or more function versions
  26251. that can process multiple arguments using SIMD instructions from a
  26252. single invocation. Specifying this attribute allows compiler to
  26253. assume that such versions are available at link time (provided in
  26254. the same or another translation unit). Generated versions are
  26255. target-dependent and described in the corresponding Vector ABI
  26256. document. For x86_64 target this document can be found
  26257. here (https://sourceware.org/glibc/wiki/libmvec?action=AttachFile&do=view&target=VectorABI.txt).
  26258. The optional argument MASK may have the value 'notinbranch' or
  26259. 'inbranch', and instructs the compiler to generate non-masked or
  26260. masked clones correspondingly. By default, all clones are
  26261. generated.
  26262. If the attribute is specified and '#pragma omp declare simd' is
  26263. present on a declaration and the '-fopenmp' or '-fopenmp-simd'
  26264. switch is specified, then the attribute is ignored.
  26265. 'stack_protect'
  26266. This attribute adds stack protection code to the function if flags
  26267. '-fstack-protector', '-fstack-protector-strong' or
  26268. '-fstack-protector-explicit' are set.
  26269. 'target (STRING, ...)'
  26270. Multiple target back ends implement the 'target' attribute to
  26271. specify that a function is to be compiled with different target
  26272. options than specified on the command line. One or more strings
  26273. can be provided as arguments. Each string consists of one or more
  26274. comma-separated suffixes to the '-m' prefix jointly forming the
  26275. name of a machine-dependent option. *Note Machine-Dependent
  26276. Options: Submodel Options.
  26277. The 'target' attribute can be used for instance to have a function
  26278. compiled with a different ISA (instruction set architecture) than
  26279. the default. '#pragma GCC target' can be used to specify
  26280. target-specific options for more than one function. *Note Function
  26281. Specific Option Pragmas::, for details about the pragma.
  26282. For instance, on an x86, you could declare one function with the
  26283. 'target("sse4.1,arch=core2")' attribute and another with
  26284. 'target("sse4a,arch=amdfam10")'. This is equivalent to compiling
  26285. the first function with '-msse4.1' and '-march=core2' options, and
  26286. the second function with '-msse4a' and '-march=amdfam10' options.
  26287. It is up to you to make sure that a function is only invoked on a
  26288. machine that supports the particular ISA it is compiled for (for
  26289. example by using 'cpuid' on x86 to determine what feature bits and
  26290. architecture family are used).
  26291. int core2_func (void) __attribute__ ((__target__ ("arch=core2")));
  26292. int sse3_func (void) __attribute__ ((__target__ ("sse3")));
  26293. Providing multiple strings as arguments separated by commas to
  26294. specify multiple options is equivalent to separating the option
  26295. suffixes with a comma (',') within a single string. Spaces are not
  26296. permitted within the strings.
  26297. The options supported are specific to each target; refer to *note
  26298. x86 Function Attributes::, *note PowerPC Function Attributes::,
  26299. *note ARM Function Attributes::, *note AArch64 Function
  26300. Attributes::, *note Nios II Function Attributes::, and *note S/390
  26301. Function Attributes:: for details.
  26302. 'symver ("NAME2@NODENAME")'
  26303. On ELF targets this attribute creates a symbol version. The NAME2
  26304. part of the parameter is the actual name of the symbol by which it
  26305. will be externally referenced. The 'nodename' portion should be
  26306. the name of a node specified in the version script supplied to the
  26307. linker when building a shared library. Versioned symbol must be
  26308. defined and must be exported with default visibility.
  26309. __attribute__ ((__symver__ ("foo@VERS_1"))) int
  26310. foo_v1 (void)
  26311. {
  26312. }
  26313. Will produce a '.symver foo_v1, foo@VERS_1' directive in the
  26314. assembler output.
  26315. It's an error to define multiple version of a given symbol. In
  26316. such case an alias can be used.
  26317. __attribute__ ((__symver__ ("foo@VERS_2")))
  26318. __attribute__ ((alias ("foo_v1")))
  26319. int symver_foo_v1 (void);
  26320. This example creates an alias of 'foo_v1' with symbol name
  26321. 'symver_foo_v1' which will be version 'VERS_2' of 'foo'.
  26322. Finally if the parameter is '"NAME2@@NODENAME"' then in addition to
  26323. creating a symbol version (as if '"NAME2@NODENAME"' was used) the
  26324. version will be also used to resolve NAME2 by the linker.
  26325. 'target_clones (OPTIONS)'
  26326. The 'target_clones' attribute is used to specify that a function be
  26327. cloned into multiple versions compiled with different target
  26328. options than specified on the command line. The supported options
  26329. and restrictions are the same as for 'target' attribute.
  26330. For instance, on an x86, you could compile a function with
  26331. 'target_clones("sse4.1,avx")'. GCC creates two function clones,
  26332. one compiled with '-msse4.1' and another with '-mavx'.
  26333. On a PowerPC, you can compile a function with
  26334. 'target_clones("cpu=power9,default")'. GCC will create two
  26335. function clones, one compiled with '-mcpu=power9' and another with
  26336. the default options. GCC must be configured to use GLIBC 2.23 or
  26337. newer in order to use the 'target_clones' attribute.
  26338. It also creates a resolver function (see the 'ifunc' attribute
  26339. above) that dynamically selects a clone suitable for current
  26340. architecture. The resolver is created only if there is a usage of
  26341. a function with 'target_clones' attribute.
  26342. Note that any subsequent call of a function without 'target_clone'
  26343. from a 'target_clone' caller will not lead to copying (target
  26344. clone) of the called function. If you want to enforce such
  26345. behaviour, we recommend declaring the calling function with the
  26346. 'flatten' attribute?
  26347. 'unused'
  26348. This attribute, attached to a function, means that the function is
  26349. meant to be possibly unused. GCC does not produce a warning for
  26350. this function.
  26351. 'used'
  26352. This attribute, attached to a function, means that code must be
  26353. emitted for the function even if it appears that the function is
  26354. not referenced. This is useful, for example, when the function is
  26355. referenced only in inline assembly.
  26356. When applied to a member function of a C++ class template, the
  26357. attribute also means that the function is instantiated if the class
  26358. itself is instantiated.
  26359. 'visibility ("VISIBILITY_TYPE")'
  26360. This attribute affects the linkage of the declaration to which it
  26361. is attached. It can be applied to variables (*note Common Variable
  26362. Attributes::) and types (*note Common Type Attributes::) as well as
  26363. functions.
  26364. There are four supported VISIBILITY_TYPE values: default, hidden,
  26365. protected or internal visibility.
  26366. void __attribute__ ((visibility ("protected")))
  26367. f () { /* Do something. */; }
  26368. int i __attribute__ ((visibility ("hidden")));
  26369. The possible values of VISIBILITY_TYPE correspond to the visibility
  26370. settings in the ELF gABI.
  26371. 'default'
  26372. Default visibility is the normal case for the object file
  26373. format. This value is available for the visibility attribute
  26374. to override other options that may change the assumed
  26375. visibility of entities.
  26376. On ELF, default visibility means that the declaration is
  26377. visible to other modules and, in shared libraries, means that
  26378. the declared entity may be overridden.
  26379. On Darwin, default visibility means that the declaration is
  26380. visible to other modules.
  26381. Default visibility corresponds to "external linkage" in the
  26382. language.
  26383. 'hidden'
  26384. Hidden visibility indicates that the entity declared has a new
  26385. form of linkage, which we call "hidden linkage". Two
  26386. declarations of an object with hidden linkage refer to the
  26387. same object if they are in the same shared object.
  26388. 'internal'
  26389. Internal visibility is like hidden visibility, but with
  26390. additional processor specific semantics. Unless otherwise
  26391. specified by the psABI, GCC defines internal visibility to
  26392. mean that a function is _never_ called from another module.
  26393. Compare this with hidden functions which, while they cannot be
  26394. referenced directly by other modules, can be referenced
  26395. indirectly via function pointers. By indicating that a
  26396. function cannot be called from outside the module, GCC may for
  26397. instance omit the load of a PIC register since it is known
  26398. that the calling function loaded the correct value.
  26399. 'protected'
  26400. Protected visibility is like default visibility except that it
  26401. indicates that references within the defining module bind to
  26402. the definition in that module. That is, the declared entity
  26403. cannot be overridden by another module.
  26404. All visibilities are supported on many, but not all, ELF targets
  26405. (supported when the assembler supports the '.visibility'
  26406. pseudo-op). Default visibility is supported everywhere. Hidden
  26407. visibility is supported on Darwin targets.
  26408. The visibility attribute should be applied only to declarations
  26409. that would otherwise have external linkage. The attribute should
  26410. be applied consistently, so that the same entity should not be
  26411. declared with different settings of the attribute.
  26412. In C++, the visibility attribute applies to types as well as
  26413. functions and objects, because in C++ types have linkage. A class
  26414. must not have greater visibility than its non-static data member
  26415. types and bases, and class members default to the visibility of
  26416. their class. Also, a declaration without explicit visibility is
  26417. limited to the visibility of its type.
  26418. In C++, you can mark member functions and static member variables
  26419. of a class with the visibility attribute. This is useful if you
  26420. know a particular method or static member variable should only be
  26421. used from one shared object; then you can mark it hidden while the
  26422. rest of the class has default visibility. Care must be taken to
  26423. avoid breaking the One Definition Rule; for example, it is usually
  26424. not useful to mark an inline method as hidden without marking the
  26425. whole class as hidden.
  26426. A C++ namespace declaration can also have the visibility attribute.
  26427. namespace nspace1 __attribute__ ((visibility ("protected")))
  26428. { /* Do something. */; }
  26429. This attribute applies only to the particular namespace body, not
  26430. to other definitions of the same namespace; it is equivalent to
  26431. using '#pragma GCC visibility' before and after the namespace
  26432. definition (*note Visibility Pragmas::).
  26433. In C++, if a template argument has limited visibility, this
  26434. restriction is implicitly propagated to the template instantiation.
  26435. Otherwise, template instantiations and specializations default to
  26436. the visibility of their template.
  26437. If both the template and enclosing class have explicit visibility,
  26438. the visibility from the template is used.
  26439. 'warn_unused_result'
  26440. The 'warn_unused_result' attribute causes a warning to be emitted
  26441. if a caller of the function with this attribute does not use its
  26442. return value. This is useful for functions where not checking the
  26443. result is either a security problem or always a bug, such as
  26444. 'realloc'.
  26445. int fn () __attribute__ ((warn_unused_result));
  26446. int foo ()
  26447. {
  26448. if (fn () < 0) return -1;
  26449. fn ();
  26450. return 0;
  26451. }
  26452. results in warning on line 5.
  26453. 'weak'
  26454. The 'weak' attribute causes a declaration of an external symbol to
  26455. be emitted as a weak symbol rather than a global. This is
  26456. primarily useful in defining library functions that can be
  26457. overridden in user code, though it can also be used with
  26458. non-function declarations. The overriding symbol must have the
  26459. same type as the weak symbol. In addition, if it designates a
  26460. variable it must also have the same size and alignment as the weak
  26461. symbol. Weak symbols are supported for ELF targets, and also for
  26462. a.out targets when using the GNU assembler and linker.
  26463. 'weakref'
  26464. 'weakref ("TARGET")'
  26465. The 'weakref' attribute marks a declaration as a weak reference.
  26466. Without arguments, it should be accompanied by an 'alias' attribute
  26467. naming the target symbol. Alternatively, TARGET may be given as an
  26468. argument to 'weakref' itself, naming the target definition of the
  26469. alias. The TARGET must have the same type as the declaration. In
  26470. addition, if it designates a variable it must also have the same
  26471. size and alignment as the declaration. In either form of the
  26472. declaration 'weakref' implicitly marks the declared symbol as
  26473. 'weak'. Without a TARGET given as an argument to 'weakref' or to
  26474. 'alias', 'weakref' is equivalent to 'weak' (in that case the
  26475. declaration may be 'extern').
  26476. /* Given the declaration: */
  26477. extern int y (void);
  26478. /* the following... */
  26479. static int x (void) __attribute__ ((weakref ("y")));
  26480. /* is equivalent to... */
  26481. static int x (void) __attribute__ ((weakref, alias ("y")));
  26482. /* or, alternatively, to... */
  26483. static int x (void) __attribute__ ((weakref));
  26484. static int x (void) __attribute__ ((alias ("y")));
  26485. A weak reference is an alias that does not by itself require a
  26486. definition to be given for the target symbol. If the target symbol
  26487. is only referenced through weak references, then it becomes a
  26488. 'weak' undefined symbol. If it is directly referenced, however,
  26489. then such strong references prevail, and a definition is required
  26490. for the symbol, not necessarily in the same translation unit.
  26491. The effect is equivalent to moving all references to the alias to a
  26492. separate translation unit, renaming the alias to the aliased
  26493. symbol, declaring it as weak, compiling the two separate
  26494. translation units and performing a link with relocatable output
  26495. (i.e. 'ld -r') on them.
  26496. A declaration to which 'weakref' is attached and that is associated
  26497. with a named 'target' must be 'static'.
  26498. 
  26499. File: gcc.info, Node: AArch64 Function Attributes, Next: AMD GCN Function Attributes, Prev: Common Function Attributes, Up: Function Attributes
  26500. 6.33.2 AArch64 Function Attributes
  26501. ----------------------------------
  26502. The following target-specific function attributes are available for the
  26503. AArch64 target. For the most part, these options mirror the behavior of
  26504. similar command-line options (*note AArch64 Options::), but on a
  26505. per-function basis.
  26506. 'general-regs-only'
  26507. Indicates that no floating-point or Advanced SIMD registers should
  26508. be used when generating code for this function. If the function
  26509. explicitly uses floating-point code, then the compiler gives an
  26510. error. This is the same behavior as that of the command-line
  26511. option '-mgeneral-regs-only'.
  26512. 'fix-cortex-a53-835769'
  26513. Indicates that the workaround for the Cortex-A53 erratum 835769
  26514. should be applied to this function. To explicitly disable the
  26515. workaround for this function specify the negated form:
  26516. 'no-fix-cortex-a53-835769'. This corresponds to the behavior of
  26517. the command line options '-mfix-cortex-a53-835769' and
  26518. '-mno-fix-cortex-a53-835769'.
  26519. 'cmodel='
  26520. Indicates that code should be generated for a particular code model
  26521. for this function. The behavior and permissible arguments are the
  26522. same as for the command line option '-mcmodel='.
  26523. 'strict-align'
  26524. 'no-strict-align'
  26525. 'strict-align' indicates that the compiler should not assume that
  26526. unaligned memory references are handled by the system. To allow
  26527. the compiler to assume that aligned memory references are handled
  26528. by the system, the inverse attribute 'no-strict-align' can be
  26529. specified. The behavior is same as for the command-line option
  26530. '-mstrict-align' and '-mno-strict-align'.
  26531. 'omit-leaf-frame-pointer'
  26532. Indicates that the frame pointer should be omitted for a leaf
  26533. function call. To keep the frame pointer, the inverse attribute
  26534. 'no-omit-leaf-frame-pointer' can be specified. These attributes
  26535. have the same behavior as the command-line options
  26536. '-momit-leaf-frame-pointer' and '-mno-omit-leaf-frame-pointer'.
  26537. 'tls-dialect='
  26538. Specifies the TLS dialect to use for this function. The behavior
  26539. and permissible arguments are the same as for the command-line
  26540. option '-mtls-dialect='.
  26541. 'arch='
  26542. Specifies the architecture version and architectural extensions to
  26543. use for this function. The behavior and permissible arguments are
  26544. the same as for the '-march=' command-line option.
  26545. 'tune='
  26546. Specifies the core for which to tune the performance of this
  26547. function. The behavior and permissible arguments are the same as
  26548. for the '-mtune=' command-line option.
  26549. 'cpu='
  26550. Specifies the core for which to tune the performance of this
  26551. function and also whose architectural features to use. The
  26552. behavior and valid arguments are the same as for the '-mcpu='
  26553. command-line option.
  26554. 'sign-return-address'
  26555. Select the function scope on which return address signing will be
  26556. applied. The behavior and permissible arguments are the same as
  26557. for the command-line option '-msign-return-address='. The default
  26558. value is 'none'. This attribute is deprecated. The
  26559. 'branch-protection' attribute should be used instead.
  26560. 'branch-protection'
  26561. Select the function scope on which branch protection will be
  26562. applied. The behavior and permissible arguments are the same as
  26563. for the command-line option '-mbranch-protection='. The default
  26564. value is 'none'.
  26565. The above target attributes can be specified as follows:
  26566. __attribute__((target("ATTR-STRING")))
  26567. int
  26568. f (int a)
  26569. {
  26570. return a + 5;
  26571. }
  26572. where 'ATTR-STRING' is one of the attribute strings specified above.
  26573. Additionally, the architectural extension string may be specified on
  26574. its own. This can be used to turn on and off particular architectural
  26575. extensions without having to specify a particular architecture version
  26576. or core. Example:
  26577. __attribute__((target("+crc+nocrypto")))
  26578. int
  26579. foo (int a)
  26580. {
  26581. return a + 5;
  26582. }
  26583. In this example 'target("+crc+nocrypto")' enables the 'crc' extension
  26584. and disables the 'crypto' extension for the function 'foo' without
  26585. modifying an existing '-march=' or '-mcpu' option.
  26586. Multiple target function attributes can be specified by separating them
  26587. with a comma. For example:
  26588. __attribute__((target("arch=armv8-a+crc+crypto,tune=cortex-a53")))
  26589. int
  26590. foo (int a)
  26591. {
  26592. return a + 5;
  26593. }
  26594. is valid and compiles function 'foo' for ARMv8-A with 'crc' and
  26595. 'crypto' extensions and tunes it for 'cortex-a53'.
  26596. 6.33.2.1 Inlining rules
  26597. .......................
  26598. Specifying target attributes on individual functions or performing
  26599. link-time optimization across translation units compiled with different
  26600. target options can affect function inlining rules:
  26601. In particular, a caller function can inline a callee function only if
  26602. the architectural features available to the callee are a subset of the
  26603. features available to the caller. For example: A function 'foo'
  26604. compiled with '-march=armv8-a+crc', or tagged with the equivalent
  26605. 'arch=armv8-a+crc' attribute, can inline a function 'bar' compiled with
  26606. '-march=armv8-a+nocrc' because the all the architectural features that
  26607. function 'bar' requires are available to function 'foo'. Conversely,
  26608. function 'bar' cannot inline function 'foo'.
  26609. Additionally inlining a function compiled with '-mstrict-align' into a
  26610. function compiled without '-mstrict-align' is not allowed. However,
  26611. inlining a function compiled without '-mstrict-align' into a function
  26612. compiled with '-mstrict-align' is allowed.
  26613. Note that CPU tuning options and attributes such as the '-mcpu=',
  26614. '-mtune=' do not inhibit inlining unless the CPU specified by the
  26615. '-mcpu=' option or the 'cpu=' attribute conflicts with the architectural
  26616. feature rules specified above.
  26617. 
  26618. File: gcc.info, Node: AMD GCN Function Attributes, Next: ARC Function Attributes, Prev: AArch64 Function Attributes, Up: Function Attributes
  26619. 6.33.3 AMD GCN Function Attributes
  26620. ----------------------------------
  26621. These function attributes are supported by the AMD GCN back end:
  26622. 'amdgpu_hsa_kernel'
  26623. This attribute indicates that the corresponding function should be
  26624. compiled as a kernel function, that is an entry point that can be
  26625. invoked from the host via the HSA runtime library. By default
  26626. functions are only callable only from other GCN functions.
  26627. This attribute is implicitly applied to any function named 'main',
  26628. using default parameters.
  26629. Kernel functions may return an integer value, which will be written
  26630. to a conventional place within the HSA "kernargs" region.
  26631. The attribute parameters configure what values are passed into the
  26632. kernel function by the GPU drivers, via the initial register state.
  26633. Some values are used by the compiler, and therefore forced on.
  26634. Enabling other options may break assumptions in the compiler and/or
  26635. run-time libraries.
  26636. 'private_segment_buffer'
  26637. Set 'enable_sgpr_private_segment_buffer' flag. Always on
  26638. (required to locate the stack).
  26639. 'dispatch_ptr'
  26640. Set 'enable_sgpr_dispatch_ptr' flag. Always on (required to
  26641. locate the launch dimensions).
  26642. 'queue_ptr'
  26643. Set 'enable_sgpr_queue_ptr' flag. Always on (required to
  26644. convert address spaces).
  26645. 'kernarg_segment_ptr'
  26646. Set 'enable_sgpr_kernarg_segment_ptr' flag. Always on
  26647. (required to locate the kernel arguments, "kernargs").
  26648. 'dispatch_id'
  26649. Set 'enable_sgpr_dispatch_id' flag.
  26650. 'flat_scratch_init'
  26651. Set 'enable_sgpr_flat_scratch_init' flag.
  26652. 'private_segment_size'
  26653. Set 'enable_sgpr_private_segment_size' flag.
  26654. 'grid_workgroup_count_X'
  26655. Set 'enable_sgpr_grid_workgroup_count_x' flag. Always on
  26656. (required to use OpenACC/OpenMP).
  26657. 'grid_workgroup_count_Y'
  26658. Set 'enable_sgpr_grid_workgroup_count_y' flag.
  26659. 'grid_workgroup_count_Z'
  26660. Set 'enable_sgpr_grid_workgroup_count_z' flag.
  26661. 'workgroup_id_X'
  26662. Set 'enable_sgpr_workgroup_id_x' flag.
  26663. 'workgroup_id_Y'
  26664. Set 'enable_sgpr_workgroup_id_y' flag.
  26665. 'workgroup_id_Z'
  26666. Set 'enable_sgpr_workgroup_id_z' flag.
  26667. 'workgroup_info'
  26668. Set 'enable_sgpr_workgroup_info' flag.
  26669. 'private_segment_wave_offset'
  26670. Set 'enable_sgpr_private_segment_wave_byte_offset' flag.
  26671. Always on (required to locate the stack).
  26672. 'work_item_id_X'
  26673. Set 'enable_vgpr_workitem_id' parameter. Always on (can't be
  26674. disabled).
  26675. 'work_item_id_Y'
  26676. Set 'enable_vgpr_workitem_id' parameter. Always on (required
  26677. to enable vectorization.)
  26678. 'work_item_id_Z'
  26679. Set 'enable_vgpr_workitem_id' parameter. Always on (required
  26680. to use OpenACC/OpenMP).
  26681. 
  26682. File: gcc.info, Node: ARC Function Attributes, Next: ARM Function Attributes, Prev: AMD GCN Function Attributes, Up: Function Attributes
  26683. 6.33.4 ARC Function Attributes
  26684. ------------------------------
  26685. These function attributes are supported by the ARC back end:
  26686. 'interrupt'
  26687. Use this attribute to indicate that the specified function is an
  26688. interrupt handler. The compiler generates function entry and exit
  26689. sequences suitable for use in an interrupt handler when this
  26690. attribute is present.
  26691. On the ARC, you must specify the kind of interrupt to be handled in
  26692. a parameter to the interrupt attribute like this:
  26693. void f () __attribute__ ((interrupt ("ilink1")));
  26694. Permissible values for this parameter are: 'ilink1' and 'ilink2'
  26695. for ARCv1 architecture, and 'ilink' and 'firq' for ARCv2
  26696. architecture.
  26697. 'long_call'
  26698. 'medium_call'
  26699. 'short_call'
  26700. These attributes specify how a particular function is called.
  26701. These attributes override the '-mlong-calls' and '-mmedium-calls'
  26702. (*note ARC Options::) command-line switches and '#pragma
  26703. long_calls' settings.
  26704. For ARC, a function marked with the 'long_call' attribute is always
  26705. called using register-indirect jump-and-link instructions, thereby
  26706. enabling the called function to be placed anywhere within the
  26707. 32-bit address space. A function marked with the 'medium_call'
  26708. attribute will always be close enough to be called with an
  26709. unconditional branch-and-link instruction, which has a 25-bit
  26710. offset from the call site. A function marked with the 'short_call'
  26711. attribute will always be close enough to be called with a
  26712. conditional branch-and-link instruction, which has a 21-bit offset
  26713. from the call site.
  26714. 'jli_always'
  26715. Forces a particular function to be called using 'jli' instruction.
  26716. The 'jli' instruction makes use of a table stored into '.jlitab'
  26717. section, which holds the location of the functions which are
  26718. addressed using this instruction.
  26719. 'jli_fixed'
  26720. Identical like the above one, but the location of the function in
  26721. the 'jli' table is known and given as an attribute parameter.
  26722. 'secure_call'
  26723. This attribute allows one to mark secure-code functions that are
  26724. callable from normal mode. The location of the secure call
  26725. function into the 'sjli' table needs to be passed as argument.
  26726. 'naked'
  26727. This attribute allows the compiler to construct the requisite
  26728. function declaration, while allowing the body of the function to be
  26729. assembly code. The specified function will not have
  26730. prologue/epilogue sequences generated by the compiler. Only basic
  26731. 'asm' statements can safely be included in naked functions (*note
  26732. Basic Asm::). While using extended 'asm' or a mixture of basic
  26733. 'asm' and C code may appear to work, they cannot be depended upon
  26734. to work reliably and are not supported.
  26735. 
  26736. File: gcc.info, Node: ARM Function Attributes, Next: AVR Function Attributes, Prev: ARC Function Attributes, Up: Function Attributes
  26737. 6.33.5 ARM Function Attributes
  26738. ------------------------------
  26739. These function attributes are supported for ARM targets:
  26740. 'general-regs-only'
  26741. Indicates that no floating-point or Advanced SIMD registers should
  26742. be used when generating code for this function. If the function
  26743. explicitly uses floating-point code, then the compiler gives an
  26744. error. This is the same behavior as that of the command-line
  26745. option '-mgeneral-regs-only'.
  26746. 'interrupt'
  26747. Use this attribute to indicate that the specified function is an
  26748. interrupt handler. The compiler generates function entry and exit
  26749. sequences suitable for use in an interrupt handler when this
  26750. attribute is present.
  26751. You can specify the kind of interrupt to be handled by adding an
  26752. optional parameter to the interrupt attribute like this:
  26753. void f () __attribute__ ((interrupt ("IRQ")));
  26754. Permissible values for this parameter are: 'IRQ', 'FIQ', 'SWI',
  26755. 'ABORT' and 'UNDEF'.
  26756. On ARMv7-M the interrupt type is ignored, and the attribute means
  26757. the function may be called with a word-aligned stack pointer.
  26758. 'isr'
  26759. Use this attribute on ARM to write Interrupt Service Routines.
  26760. This is an alias to the 'interrupt' attribute above.
  26761. 'long_call'
  26762. 'short_call'
  26763. These attributes specify how a particular function is called.
  26764. These attributes override the '-mlong-calls' (*note ARM Options::)
  26765. command-line switch and '#pragma long_calls' settings. For ARM,
  26766. the 'long_call' attribute indicates that the function might be far
  26767. away from the call site and require a different (more expensive)
  26768. calling sequence. The 'short_call' attribute always places the
  26769. offset to the function from the call site into the 'BL' instruction
  26770. directly.
  26771. 'naked'
  26772. This attribute allows the compiler to construct the requisite
  26773. function declaration, while allowing the body of the function to be
  26774. assembly code. The specified function will not have
  26775. prologue/epilogue sequences generated by the compiler. Only basic
  26776. 'asm' statements can safely be included in naked functions (*note
  26777. Basic Asm::). While using extended 'asm' or a mixture of basic
  26778. 'asm' and C code may appear to work, they cannot be depended upon
  26779. to work reliably and are not supported.
  26780. 'pcs'
  26781. The 'pcs' attribute can be used to control the calling convention
  26782. used for a function on ARM. The attribute takes an argument that
  26783. specifies the calling convention to use.
  26784. When compiling using the AAPCS ABI (or a variant of it) then valid
  26785. values for the argument are '"aapcs"' and '"aapcs-vfp"'. In order
  26786. to use a variant other than '"aapcs"' then the compiler must be
  26787. permitted to use the appropriate co-processor registers (i.e., the
  26788. VFP registers must be available in order to use '"aapcs-vfp"').
  26789. For example,
  26790. /* Argument passed in r0, and result returned in r0+r1. */
  26791. double f2d (float) __attribute__((pcs("aapcs")));
  26792. Variadic functions always use the '"aapcs"' calling convention and
  26793. the compiler rejects attempts to specify an alternative.
  26794. 'target (OPTIONS)'
  26795. As discussed in *note Common Function Attributes::, this attribute
  26796. allows specification of target-specific compilation options.
  26797. On ARM, the following options are allowed:
  26798. 'thumb'
  26799. Force code generation in the Thumb (T16/T32) ISA, depending on
  26800. the architecture level.
  26801. 'arm'
  26802. Force code generation in the ARM (A32) ISA.
  26803. Functions from different modes can be inlined in the caller's
  26804. mode.
  26805. 'fpu='
  26806. Specifies the fpu for which to tune the performance of this
  26807. function. The behavior and permissible arguments are the same
  26808. as for the '-mfpu=' command-line option.
  26809. 'arch='
  26810. Specifies the architecture version and architectural
  26811. extensions to use for this function. The behavior and
  26812. permissible arguments are the same as for the '-march='
  26813. command-line option.
  26814. The above target attributes can be specified as follows:
  26815. __attribute__((target("arch=armv8-a+crc")))
  26816. int
  26817. f (int a)
  26818. {
  26819. return a + 5;
  26820. }
  26821. Additionally, the architectural extension string may be
  26822. specified on its own. This can be used to turn on and off
  26823. particular architectural extensions without having to specify
  26824. a particular architecture version or core. Example:
  26825. __attribute__((target("+crc+nocrypto")))
  26826. int
  26827. foo (int a)
  26828. {
  26829. return a + 5;
  26830. }
  26831. In this example 'target("+crc+nocrypto")' enables the 'crc'
  26832. extension and disables the 'crypto' extension for the function
  26833. 'foo' without modifying an existing '-march=' or '-mcpu'
  26834. option.
  26835. 
  26836. File: gcc.info, Node: AVR Function Attributes, Next: Blackfin Function Attributes, Prev: ARM Function Attributes, Up: Function Attributes
  26837. 6.33.6 AVR Function Attributes
  26838. ------------------------------
  26839. These function attributes are supported by the AVR back end:
  26840. 'interrupt'
  26841. Use this attribute to indicate that the specified function is an
  26842. interrupt handler. The compiler generates function entry and exit
  26843. sequences suitable for use in an interrupt handler when this
  26844. attribute is present.
  26845. On the AVR, the hardware globally disables interrupts when an
  26846. interrupt is executed. The first instruction of an interrupt
  26847. handler declared with this attribute is a 'SEI' instruction to
  26848. re-enable interrupts. See also the 'signal' function attribute
  26849. that does not insert a 'SEI' instruction. If both 'signal' and
  26850. 'interrupt' are specified for the same function, 'signal' is
  26851. silently ignored.
  26852. 'naked'
  26853. This attribute allows the compiler to construct the requisite
  26854. function declaration, while allowing the body of the function to be
  26855. assembly code. The specified function will not have
  26856. prologue/epilogue sequences generated by the compiler. Only basic
  26857. 'asm' statements can safely be included in naked functions (*note
  26858. Basic Asm::). While using extended 'asm' or a mixture of basic
  26859. 'asm' and C code may appear to work, they cannot be depended upon
  26860. to work reliably and are not supported.
  26861. 'no_gccisr'
  26862. Do not use '__gcc_isr' pseudo instructions in a function with the
  26863. 'interrupt' or 'signal' attribute aka. interrupt service routine
  26864. (ISR). Use this attribute if the preamble of the ISR prologue
  26865. should always read
  26866. push __zero_reg__
  26867. push __tmp_reg__
  26868. in __tmp_reg__, __SREG__
  26869. push __tmp_reg__
  26870. clr __zero_reg__
  26871. and accordingly for the postamble of the epilogue -- no matter
  26872. whether the mentioned registers are actually used in the ISR or
  26873. not. Situations where you might want to use this attribute
  26874. include:
  26875. * Code that (effectively) clobbers bits of 'SREG' other than the
  26876. 'I'-flag by writing to the memory location of 'SREG'.
  26877. * Code that uses inline assembler to jump to a different
  26878. function which expects (parts of) the prologue code as
  26879. outlined above to be present.
  26880. To disable '__gcc_isr' generation for the whole compilation unit,
  26881. there is option '-mno-gas-isr-prologues', *note AVR Options::.
  26882. 'OS_main'
  26883. 'OS_task'
  26884. On AVR, functions with the 'OS_main' or 'OS_task' attribute do not
  26885. save/restore any call-saved register in their prologue/epilogue.
  26886. The 'OS_main' attribute can be used when there _is guarantee_ that
  26887. interrupts are disabled at the time when the function is entered.
  26888. This saves resources when the stack pointer has to be changed to
  26889. set up a frame for local variables.
  26890. The 'OS_task' attribute can be used when there is _no guarantee_
  26891. that interrupts are disabled at that time when the function is
  26892. entered like for, e.g. task functions in a multi-threading
  26893. operating system. In that case, changing the stack pointer
  26894. register is guarded by save/clear/restore of the global interrupt
  26895. enable flag.
  26896. The differences to the 'naked' function attribute are:
  26897. * 'naked' functions do not have a return instruction whereas
  26898. 'OS_main' and 'OS_task' functions have a 'RET' or 'RETI'
  26899. return instruction.
  26900. * 'naked' functions do not set up a frame for local variables or
  26901. a frame pointer whereas 'OS_main' and 'OS_task' do this as
  26902. needed.
  26903. 'signal'
  26904. Use this attribute on the AVR to indicate that the specified
  26905. function is an interrupt handler. The compiler generates function
  26906. entry and exit sequences suitable for use in an interrupt handler
  26907. when this attribute is present.
  26908. See also the 'interrupt' function attribute.
  26909. The AVR hardware globally disables interrupts when an interrupt is
  26910. executed. Interrupt handler functions defined with the 'signal'
  26911. attribute do not re-enable interrupts. It is save to enable
  26912. interrupts in a 'signal' handler. This "save" only applies to the
  26913. code generated by the compiler and not to the IRQ layout of the
  26914. application which is responsibility of the application.
  26915. If both 'signal' and 'interrupt' are specified for the same
  26916. function, 'signal' is silently ignored.
  26917. 
  26918. File: gcc.info, Node: Blackfin Function Attributes, Next: CR16 Function Attributes, Prev: AVR Function Attributes, Up: Function Attributes
  26919. 6.33.7 Blackfin Function Attributes
  26920. -----------------------------------
  26921. These function attributes are supported by the Blackfin back end:
  26922. 'exception_handler'
  26923. Use this attribute on the Blackfin to indicate that the specified
  26924. function is an exception handler. The compiler generates function
  26925. entry and exit sequences suitable for use in an exception handler
  26926. when this attribute is present.
  26927. 'interrupt_handler'
  26928. Use this attribute to indicate that the specified function is an
  26929. interrupt handler. The compiler generates function entry and exit
  26930. sequences suitable for use in an interrupt handler when this
  26931. attribute is present.
  26932. 'kspisusp'
  26933. When used together with 'interrupt_handler', 'exception_handler' or
  26934. 'nmi_handler', code is generated to load the stack pointer from the
  26935. USP register in the function prologue.
  26936. 'l1_text'
  26937. This attribute specifies a function to be placed into L1
  26938. Instruction SRAM. The function is put into a specific section
  26939. named '.l1.text'. With '-mfdpic', function calls with a such
  26940. function as the callee or caller uses inlined PLT.
  26941. 'l2'
  26942. This attribute specifies a function to be placed into L2 SRAM. The
  26943. function is put into a specific section named '.l2.text'. With
  26944. '-mfdpic', callers of such functions use an inlined PLT.
  26945. 'longcall'
  26946. 'shortcall'
  26947. The 'longcall' attribute indicates that the function might be far
  26948. away from the call site and require a different (more expensive)
  26949. calling sequence. The 'shortcall' attribute indicates that the
  26950. function is always close enough for the shorter calling sequence to
  26951. be used. These attributes override the '-mlongcall' switch.
  26952. 'nesting'
  26953. Use this attribute together with 'interrupt_handler',
  26954. 'exception_handler' or 'nmi_handler' to indicate that the function
  26955. entry code should enable nested interrupts or exceptions.
  26956. 'nmi_handler'
  26957. Use this attribute on the Blackfin to indicate that the specified
  26958. function is an NMI handler. The compiler generates function entry
  26959. and exit sequences suitable for use in an NMI handler when this
  26960. attribute is present.
  26961. 'saveall'
  26962. Use this attribute to indicate that all registers except the stack
  26963. pointer should be saved in the prologue regardless of whether they
  26964. are used or not.
  26965. 
  26966. File: gcc.info, Node: CR16 Function Attributes, Next: C-SKY Function Attributes, Prev: Blackfin Function Attributes, Up: Function Attributes
  26967. 6.33.8 CR16 Function Attributes
  26968. -------------------------------
  26969. These function attributes are supported by the CR16 back end:
  26970. 'interrupt'
  26971. Use this attribute to indicate that the specified function is an
  26972. interrupt handler. The compiler generates function entry and exit
  26973. sequences suitable for use in an interrupt handler when this
  26974. attribute is present.
  26975. 
  26976. File: gcc.info, Node: C-SKY Function Attributes, Next: Epiphany Function Attributes, Prev: CR16 Function Attributes, Up: Function Attributes
  26977. 6.33.9 C-SKY Function Attributes
  26978. --------------------------------
  26979. These function attributes are supported by the C-SKY back end:
  26980. 'interrupt'
  26981. 'isr'
  26982. Use these attributes to indicate that the specified function is an
  26983. interrupt handler. The compiler generates function entry and exit
  26984. sequences suitable for use in an interrupt handler when either of
  26985. these attributes are present.
  26986. Use of these options requires the '-mistack' command-line option to
  26987. enable support for the necessary interrupt stack instructions.
  26988. They are ignored with a warning otherwise. *Note C-SKY Options::.
  26989. 'naked'
  26990. This attribute allows the compiler to construct the requisite
  26991. function declaration, while allowing the body of the function to be
  26992. assembly code. The specified function will not have
  26993. prologue/epilogue sequences generated by the compiler. Only basic
  26994. 'asm' statements can safely be included in naked functions (*note
  26995. Basic Asm::). While using extended 'asm' or a mixture of basic
  26996. 'asm' and C code may appear to work, they cannot be depended upon
  26997. to work reliably and are not supported.
  26998. 
  26999. File: gcc.info, Node: Epiphany Function Attributes, Next: H8/300 Function Attributes, Prev: C-SKY Function Attributes, Up: Function Attributes
  27000. 6.33.10 Epiphany Function Attributes
  27001. ------------------------------------
  27002. These function attributes are supported by the Epiphany back end:
  27003. 'disinterrupt'
  27004. This attribute causes the compiler to emit instructions to disable
  27005. interrupts for the duration of the given function.
  27006. 'forwarder_section'
  27007. This attribute modifies the behavior of an interrupt handler. The
  27008. interrupt handler may be in external memory which cannot be reached
  27009. by a branch instruction, so generate a local memory trampoline to
  27010. transfer control. The single parameter identifies the section
  27011. where the trampoline is placed.
  27012. 'interrupt'
  27013. Use this attribute to indicate that the specified function is an
  27014. interrupt handler. The compiler generates function entry and exit
  27015. sequences suitable for use in an interrupt handler when this
  27016. attribute is present. It may also generate a special section with
  27017. code to initialize the interrupt vector table.
  27018. On Epiphany targets one or more optional parameters can be added
  27019. like this:
  27020. void __attribute__ ((interrupt ("dma0, dma1"))) universal_dma_handler ();
  27021. Permissible values for these parameters are: 'reset',
  27022. 'software_exception', 'page_miss', 'timer0', 'timer1', 'message',
  27023. 'dma0', 'dma1', 'wand' and 'swi'. Multiple parameters indicate
  27024. that multiple entries in the interrupt vector table should be
  27025. initialized for this function, i.e. for each parameter NAME, a jump
  27026. to the function is emitted in the section ivt_entry_NAME. The
  27027. parameter(s) may be omitted entirely, in which case no interrupt
  27028. vector table entry is provided.
  27029. Note that interrupts are enabled inside the function unless the
  27030. 'disinterrupt' attribute is also specified.
  27031. The following examples are all valid uses of these attributes on
  27032. Epiphany targets:
  27033. void __attribute__ ((interrupt)) universal_handler ();
  27034. void __attribute__ ((interrupt ("dma1"))) dma1_handler ();
  27035. void __attribute__ ((interrupt ("dma0, dma1")))
  27036. universal_dma_handler ();
  27037. void __attribute__ ((interrupt ("timer0"), disinterrupt))
  27038. fast_timer_handler ();
  27039. void __attribute__ ((interrupt ("dma0, dma1"),
  27040. forwarder_section ("tramp")))
  27041. external_dma_handler ();
  27042. 'long_call'
  27043. 'short_call'
  27044. These attributes specify how a particular function is called.
  27045. These attributes override the '-mlong-calls' (*note Adapteva
  27046. Epiphany Options::) command-line switch and '#pragma long_calls'
  27047. settings.
  27048. 
  27049. File: gcc.info, Node: H8/300 Function Attributes, Next: IA-64 Function Attributes, Prev: Epiphany Function Attributes, Up: Function Attributes
  27050. 6.33.11 H8/300 Function Attributes
  27051. ----------------------------------
  27052. These function attributes are available for H8/300 targets:
  27053. 'function_vector'
  27054. Use this attribute on the H8/300, H8/300H, and H8S to indicate that
  27055. the specified function should be called through the function
  27056. vector. Calling a function through the function vector reduces
  27057. code size; however, the function vector has a limited size (maximum
  27058. 128 entries on the H8/300 and 64 entries on the H8/300H and H8S)
  27059. and shares space with the interrupt vector.
  27060. 'interrupt_handler'
  27061. Use this attribute on the H8/300, H8/300H, and H8S to indicate that
  27062. the specified function is an interrupt handler. The compiler
  27063. generates function entry and exit sequences suitable for use in an
  27064. interrupt handler when this attribute is present.
  27065. 'saveall'
  27066. Use this attribute on the H8/300, H8/300H, and H8S to indicate that
  27067. all registers except the stack pointer should be saved in the
  27068. prologue regardless of whether they are used or not.
  27069. 
  27070. File: gcc.info, Node: IA-64 Function Attributes, Next: M32C Function Attributes, Prev: H8/300 Function Attributes, Up: Function Attributes
  27071. 6.33.12 IA-64 Function Attributes
  27072. ---------------------------------
  27073. These function attributes are supported on IA-64 targets:
  27074. 'syscall_linkage'
  27075. This attribute is used to modify the IA-64 calling convention by
  27076. marking all input registers as live at all function exits. This
  27077. makes it possible to restart a system call after an interrupt
  27078. without having to save/restore the input registers. This also
  27079. prevents kernel data from leaking into application code.
  27080. 'version_id'
  27081. This IA-64 HP-UX attribute, attached to a global variable or
  27082. function, renames a symbol to contain a version string, thus
  27083. allowing for function level versioning. HP-UX system header files
  27084. may use function level versioning for some system calls.
  27085. extern int foo () __attribute__((version_id ("20040821")));
  27086. Calls to 'foo' are mapped to calls to 'foo{20040821}'.
  27087. 
  27088. File: gcc.info, Node: M32C Function Attributes, Next: M32R/D Function Attributes, Prev: IA-64 Function Attributes, Up: Function Attributes
  27089. 6.33.13 M32C Function Attributes
  27090. --------------------------------
  27091. These function attributes are supported by the M32C back end:
  27092. 'bank_switch'
  27093. When added to an interrupt handler with the M32C port, causes the
  27094. prologue and epilogue to use bank switching to preserve the
  27095. registers rather than saving them on the stack.
  27096. 'fast_interrupt'
  27097. Use this attribute on the M32C port to indicate that the specified
  27098. function is a fast interrupt handler. This is just like the
  27099. 'interrupt' attribute, except that 'freit' is used to return
  27100. instead of 'reit'.
  27101. 'function_vector'
  27102. On M16C/M32C targets, the 'function_vector' attribute declares a
  27103. special page subroutine call function. Use of this attribute
  27104. reduces the code size by 2 bytes for each call generated to the
  27105. subroutine. The argument to the attribute is the vector number
  27106. entry from the special page vector table which contains the 16
  27107. low-order bits of the subroutine's entry address. Each vector
  27108. table has special page number (18 to 255) that is used in 'jsrs'
  27109. instructions. Jump addresses of the routines are generated by
  27110. adding 0x0F0000 (in case of M16C targets) or 0xFF0000 (in case of
  27111. M32C targets), to the 2-byte addresses set in the vector table.
  27112. Therefore you need to ensure that all the special page vector
  27113. routines should get mapped within the address range 0x0F0000 to
  27114. 0x0FFFFF (for M16C) and 0xFF0000 to 0xFFFFFF (for M32C).
  27115. In the following example 2 bytes are saved for each call to
  27116. function 'foo'.
  27117. void foo (void) __attribute__((function_vector(0x18)));
  27118. void foo (void)
  27119. {
  27120. }
  27121. void bar (void)
  27122. {
  27123. foo();
  27124. }
  27125. If functions are defined in one file and are called in another
  27126. file, then be sure to write this declaration in both files.
  27127. This attribute is ignored for R8C target.
  27128. 'interrupt'
  27129. Use this attribute to indicate that the specified function is an
  27130. interrupt handler. The compiler generates function entry and exit
  27131. sequences suitable for use in an interrupt handler when this
  27132. attribute is present.
  27133. 
  27134. File: gcc.info, Node: M32R/D Function Attributes, Next: m68k Function Attributes, Prev: M32C Function Attributes, Up: Function Attributes
  27135. 6.33.14 M32R/D Function Attributes
  27136. ----------------------------------
  27137. These function attributes are supported by the M32R/D back end:
  27138. 'interrupt'
  27139. Use this attribute to indicate that the specified function is an
  27140. interrupt handler. The compiler generates function entry and exit
  27141. sequences suitable for use in an interrupt handler when this
  27142. attribute is present.
  27143. 'model (MODEL-NAME)'
  27144. On the M32R/D, use this attribute to set the addressability of an
  27145. object, and of the code generated for a function. The identifier
  27146. MODEL-NAME is one of 'small', 'medium', or 'large', representing
  27147. each of the code models.
  27148. Small model objects live in the lower 16MB of memory (so that their
  27149. addresses can be loaded with the 'ld24' instruction), and are
  27150. callable with the 'bl' instruction.
  27151. Medium model objects may live anywhere in the 32-bit address space
  27152. (the compiler generates 'seth/add3' instructions to load their
  27153. addresses), and are callable with the 'bl' instruction.
  27154. Large model objects may live anywhere in the 32-bit address space
  27155. (the compiler generates 'seth/add3' instructions to load their
  27156. addresses), and may not be reachable with the 'bl' instruction (the
  27157. compiler generates the much slower 'seth/add3/jl' instruction
  27158. sequence).
  27159. 
  27160. File: gcc.info, Node: m68k Function Attributes, Next: MCORE Function Attributes, Prev: M32R/D Function Attributes, Up: Function Attributes
  27161. 6.33.15 m68k Function Attributes
  27162. --------------------------------
  27163. These function attributes are supported by the m68k back end:
  27164. 'interrupt'
  27165. 'interrupt_handler'
  27166. Use this attribute to indicate that the specified function is an
  27167. interrupt handler. The compiler generates function entry and exit
  27168. sequences suitable for use in an interrupt handler when this
  27169. attribute is present. Either name may be used.
  27170. 'interrupt_thread'
  27171. Use this attribute on fido, a subarchitecture of the m68k, to
  27172. indicate that the specified function is an interrupt handler that
  27173. is designed to run as a thread. The compiler omits generate
  27174. prologue/epilogue sequences and replaces the return instruction
  27175. with a 'sleep' instruction. This attribute is available only on
  27176. fido.
  27177. 
  27178. File: gcc.info, Node: MCORE Function Attributes, Next: MeP Function Attributes, Prev: m68k Function Attributes, Up: Function Attributes
  27179. 6.33.16 MCORE Function Attributes
  27180. ---------------------------------
  27181. These function attributes are supported by the MCORE back end:
  27182. 'naked'
  27183. This attribute allows the compiler to construct the requisite
  27184. function declaration, while allowing the body of the function to be
  27185. assembly code. The specified function will not have
  27186. prologue/epilogue sequences generated by the compiler. Only basic
  27187. 'asm' statements can safely be included in naked functions (*note
  27188. Basic Asm::). While using extended 'asm' or a mixture of basic
  27189. 'asm' and C code may appear to work, they cannot be depended upon
  27190. to work reliably and are not supported.
  27191. 
  27192. File: gcc.info, Node: MeP Function Attributes, Next: MicroBlaze Function Attributes, Prev: MCORE Function Attributes, Up: Function Attributes
  27193. 6.33.17 MeP Function Attributes
  27194. -------------------------------
  27195. These function attributes are supported by the MeP back end:
  27196. 'disinterrupt'
  27197. On MeP targets, this attribute causes the compiler to emit
  27198. instructions to disable interrupts for the duration of the given
  27199. function.
  27200. 'interrupt'
  27201. Use this attribute to indicate that the specified function is an
  27202. interrupt handler. The compiler generates function entry and exit
  27203. sequences suitable for use in an interrupt handler when this
  27204. attribute is present.
  27205. 'near'
  27206. This attribute causes the compiler to assume the called function is
  27207. close enough to use the normal calling convention, overriding the
  27208. '-mtf' command-line option.
  27209. 'far'
  27210. On MeP targets this causes the compiler to use a calling convention
  27211. that assumes the called function is too far away for the built-in
  27212. addressing modes.
  27213. 'vliw'
  27214. The 'vliw' attribute tells the compiler to emit instructions in
  27215. VLIW mode instead of core mode. Note that this attribute is not
  27216. allowed unless a VLIW coprocessor has been configured and enabled
  27217. through command-line options.
  27218. 
  27219. File: gcc.info, Node: MicroBlaze Function Attributes, Next: Microsoft Windows Function Attributes, Prev: MeP Function Attributes, Up: Function Attributes
  27220. 6.33.18 MicroBlaze Function Attributes
  27221. --------------------------------------
  27222. These function attributes are supported on MicroBlaze targets:
  27223. 'save_volatiles'
  27224. Use this attribute to indicate that the function is an interrupt
  27225. handler. All volatile registers (in addition to non-volatile
  27226. registers) are saved in the function prologue. If the function is
  27227. a leaf function, only volatiles used by the function are saved. A
  27228. normal function return is generated instead of a return from
  27229. interrupt.
  27230. 'break_handler'
  27231. Use this attribute to indicate that the specified function is a
  27232. break handler. The compiler generates function entry and exit
  27233. sequences suitable for use in an break handler when this attribute
  27234. is present. The return from 'break_handler' is done through the
  27235. 'rtbd' instead of 'rtsd'.
  27236. void f () __attribute__ ((break_handler));
  27237. 'interrupt_handler'
  27238. 'fast_interrupt'
  27239. These attributes indicate that the specified function is an
  27240. interrupt handler. Use the 'fast_interrupt' attribute to indicate
  27241. handlers used in low-latency interrupt mode, and
  27242. 'interrupt_handler' for interrupts that do not use low-latency
  27243. handlers. In both cases, GCC emits appropriate prologue code and
  27244. generates a return from the handler using 'rtid' instead of 'rtsd'.
  27245. 
  27246. File: gcc.info, Node: Microsoft Windows Function Attributes, Next: MIPS Function Attributes, Prev: MicroBlaze Function Attributes, Up: Function Attributes
  27247. 6.33.19 Microsoft Windows Function Attributes
  27248. ---------------------------------------------
  27249. The following attributes are available on Microsoft Windows and Symbian
  27250. OS targets.
  27251. 'dllexport'
  27252. On Microsoft Windows targets and Symbian OS targets the 'dllexport'
  27253. attribute causes the compiler to provide a global pointer to a
  27254. pointer in a DLL, so that it can be referenced with the 'dllimport'
  27255. attribute. On Microsoft Windows targets, the pointer name is
  27256. formed by combining '_imp__' and the function or variable name.
  27257. You can use '__declspec(dllexport)' as a synonym for '__attribute__
  27258. ((dllexport))' for compatibility with other compilers.
  27259. On systems that support the 'visibility' attribute, this attribute
  27260. also implies "default" visibility. It is an error to explicitly
  27261. specify any other visibility.
  27262. GCC's default behavior is to emit all inline functions with the
  27263. 'dllexport' attribute. Since this can cause object file-size
  27264. bloat, you can use '-fno-keep-inline-dllexport', which tells GCC to
  27265. ignore the attribute for inlined functions unless the
  27266. '-fkeep-inline-functions' flag is used instead.
  27267. The attribute is ignored for undefined symbols.
  27268. When applied to C++ classes, the attribute marks defined
  27269. non-inlined member functions and static data members as exports.
  27270. Static consts initialized in-class are not marked unless they are
  27271. also defined out-of-class.
  27272. For Microsoft Windows targets there are alternative methods for
  27273. including the symbol in the DLL's export table such as using a
  27274. '.def' file with an 'EXPORTS' section or, with GNU ld, using the
  27275. '--export-all' linker flag.
  27276. 'dllimport'
  27277. On Microsoft Windows and Symbian OS targets, the 'dllimport'
  27278. attribute causes the compiler to reference a function or variable
  27279. via a global pointer to a pointer that is set up by the DLL
  27280. exporting the symbol. The attribute implies 'extern'. On
  27281. Microsoft Windows targets, the pointer name is formed by combining
  27282. '_imp__' and the function or variable name.
  27283. You can use '__declspec(dllimport)' as a synonym for '__attribute__
  27284. ((dllimport))' for compatibility with other compilers.
  27285. On systems that support the 'visibility' attribute, this attribute
  27286. also implies "default" visibility. It is an error to explicitly
  27287. specify any other visibility.
  27288. Currently, the attribute is ignored for inlined functions. If the
  27289. attribute is applied to a symbol _definition_, an error is
  27290. reported. If a symbol previously declared 'dllimport' is later
  27291. defined, the attribute is ignored in subsequent references, and a
  27292. warning is emitted. The attribute is also overridden by a
  27293. subsequent declaration as 'dllexport'.
  27294. When applied to C++ classes, the attribute marks non-inlined member
  27295. functions and static data members as imports. However, the
  27296. attribute is ignored for virtual methods to allow creation of
  27297. vtables using thunks.
  27298. On the SH Symbian OS target the 'dllimport' attribute also has
  27299. another affect--it can cause the vtable and run-time type
  27300. information for a class to be exported. This happens when the
  27301. class has a dllimported constructor or a non-inline, non-pure
  27302. virtual function and, for either of those two conditions, the class
  27303. also has an inline constructor or destructor and has a key function
  27304. that is defined in the current translation unit.
  27305. For Microsoft Windows targets the use of the 'dllimport' attribute
  27306. on functions is not necessary, but provides a small performance
  27307. benefit by eliminating a thunk in the DLL. The use of the
  27308. 'dllimport' attribute on imported variables can be avoided by
  27309. passing the '--enable-auto-import' switch to the GNU linker. As
  27310. with functions, using the attribute for a variable eliminates a
  27311. thunk in the DLL.
  27312. One drawback to using this attribute is that a pointer to a
  27313. _variable_ marked as 'dllimport' cannot be used as a constant
  27314. address. However, a pointer to a _function_ with the 'dllimport'
  27315. attribute can be used as a constant initializer; in this case, the
  27316. address of a stub function in the import lib is referenced. On
  27317. Microsoft Windows targets, the attribute can be disabled for
  27318. functions by setting the '-mnop-fun-dllimport' flag.
  27319. 
  27320. File: gcc.info, Node: MIPS Function Attributes, Next: MSP430 Function Attributes, Prev: Microsoft Windows Function Attributes, Up: Function Attributes
  27321. 6.33.20 MIPS Function Attributes
  27322. --------------------------------
  27323. These function attributes are supported by the MIPS back end:
  27324. 'interrupt'
  27325. Use this attribute to indicate that the specified function is an
  27326. interrupt handler. The compiler generates function entry and exit
  27327. sequences suitable for use in an interrupt handler when this
  27328. attribute is present. An optional argument is supported for the
  27329. interrupt attribute which allows the interrupt mode to be
  27330. described. By default GCC assumes the external interrupt
  27331. controller (EIC) mode is in use, this can be explicitly set using
  27332. 'eic'. When interrupts are non-masked then the requested Interrupt
  27333. Priority Level (IPL) is copied to the current IPL which has the
  27334. effect of only enabling higher priority interrupts. To use
  27335. vectored interrupt mode use the argument
  27336. 'vector=[sw0|sw1|hw0|hw1|hw2|hw3|hw4|hw5]', this will change the
  27337. behavior of the non-masked interrupt support and GCC will arrange
  27338. to mask all interrupts from sw0 up to and including the specified
  27339. interrupt vector.
  27340. You can use the following attributes to modify the behavior of an
  27341. interrupt handler:
  27342. 'use_shadow_register_set'
  27343. Assume that the handler uses a shadow register set, instead of
  27344. the main general-purpose registers. An optional argument
  27345. 'intstack' is supported to indicate that the shadow register
  27346. set contains a valid stack pointer.
  27347. 'keep_interrupts_masked'
  27348. Keep interrupts masked for the whole function. Without this
  27349. attribute, GCC tries to reenable interrupts for as much of the
  27350. function as it can.
  27351. 'use_debug_exception_return'
  27352. Return using the 'deret' instruction. Interrupt handlers that
  27353. don't have this attribute return using 'eret' instead.
  27354. You can use any combination of these attributes, as shown below:
  27355. void __attribute__ ((interrupt)) v0 ();
  27356. void __attribute__ ((interrupt, use_shadow_register_set)) v1 ();
  27357. void __attribute__ ((interrupt, keep_interrupts_masked)) v2 ();
  27358. void __attribute__ ((interrupt, use_debug_exception_return)) v3 ();
  27359. void __attribute__ ((interrupt, use_shadow_register_set,
  27360. keep_interrupts_masked)) v4 ();
  27361. void __attribute__ ((interrupt, use_shadow_register_set,
  27362. use_debug_exception_return)) v5 ();
  27363. void __attribute__ ((interrupt, keep_interrupts_masked,
  27364. use_debug_exception_return)) v6 ();
  27365. void __attribute__ ((interrupt, use_shadow_register_set,
  27366. keep_interrupts_masked,
  27367. use_debug_exception_return)) v7 ();
  27368. void __attribute__ ((interrupt("eic"))) v8 ();
  27369. void __attribute__ ((interrupt("vector=hw3"))) v9 ();
  27370. 'long_call'
  27371. 'short_call'
  27372. 'near'
  27373. 'far'
  27374. These attributes specify how a particular function is called on
  27375. MIPS. The attributes override the '-mlong-calls' (*note MIPS
  27376. Options::) command-line switch. The 'long_call' and 'far'
  27377. attributes are synonyms, and cause the compiler to always call the
  27378. function by first loading its address into a register, and then
  27379. using the contents of that register. The 'short_call' and 'near'
  27380. attributes are synonyms, and have the opposite effect; they specify
  27381. that non-PIC calls should be made using the more efficient 'jal'
  27382. instruction.
  27383. 'mips16'
  27384. 'nomips16'
  27385. On MIPS targets, you can use the 'mips16' and 'nomips16' function
  27386. attributes to locally select or turn off MIPS16 code generation. A
  27387. function with the 'mips16' attribute is emitted as MIPS16 code,
  27388. while MIPS16 code generation is disabled for functions with the
  27389. 'nomips16' attribute. These attributes override the '-mips16' and
  27390. '-mno-mips16' options on the command line (*note MIPS Options::).
  27391. When compiling files containing mixed MIPS16 and non-MIPS16 code,
  27392. the preprocessor symbol '__mips16' reflects the setting on the
  27393. command line, not that within individual functions. Mixed MIPS16
  27394. and non-MIPS16 code may interact badly with some GCC extensions
  27395. such as '__builtin_apply' (*note Constructing Calls::).
  27396. 'micromips, MIPS'
  27397. 'nomicromips, MIPS'
  27398. On MIPS targets, you can use the 'micromips' and 'nomicromips'
  27399. function attributes to locally select or turn off microMIPS code
  27400. generation. A function with the 'micromips' attribute is emitted
  27401. as microMIPS code, while microMIPS code generation is disabled for
  27402. functions with the 'nomicromips' attribute. These attributes
  27403. override the '-mmicromips' and '-mno-micromips' options on the
  27404. command line (*note MIPS Options::).
  27405. When compiling files containing mixed microMIPS and non-microMIPS
  27406. code, the preprocessor symbol '__mips_micromips' reflects the
  27407. setting on the command line, not that within individual functions.
  27408. Mixed microMIPS and non-microMIPS code may interact badly with some
  27409. GCC extensions such as '__builtin_apply' (*note Constructing
  27410. Calls::).
  27411. 'nocompression'
  27412. On MIPS targets, you can use the 'nocompression' function attribute
  27413. to locally turn off MIPS16 and microMIPS code generation. This
  27414. attribute overrides the '-mips16' and '-mmicromips' options on the
  27415. command line (*note MIPS Options::).
  27416. 
  27417. File: gcc.info, Node: MSP430 Function Attributes, Next: NDS32 Function Attributes, Prev: MIPS Function Attributes, Up: Function Attributes
  27418. 6.33.21 MSP430 Function Attributes
  27419. ----------------------------------
  27420. These function attributes are supported by the MSP430 back end:
  27421. 'critical'
  27422. Critical functions disable interrupts upon entry and restore the
  27423. previous interrupt state upon exit. Critical functions cannot also
  27424. have the 'naked', 'reentrant' or 'interrupt' attributes.
  27425. The MSP430 hardware ensures that interrupts are disabled on entry
  27426. to 'interrupt' functions, and restores the previous interrupt state
  27427. on exit. The 'critical' attribute is therefore redundant on
  27428. 'interrupt' functions.
  27429. 'interrupt'
  27430. Use this attribute to indicate that the specified function is an
  27431. interrupt handler. The compiler generates function entry and exit
  27432. sequences suitable for use in an interrupt handler when this
  27433. attribute is present.
  27434. You can provide an argument to the interrupt attribute which
  27435. specifies a name or number. If the argument is a number it
  27436. indicates the slot in the interrupt vector table (0 - 31) to which
  27437. this handler should be assigned. If the argument is a name it is
  27438. treated as a symbolic name for the vector slot. These names should
  27439. match up with appropriate entries in the linker script. By default
  27440. the names 'watchdog' for vector 26, 'nmi' for vector 30 and 'reset'
  27441. for vector 31 are recognized.
  27442. 'naked'
  27443. This attribute allows the compiler to construct the requisite
  27444. function declaration, while allowing the body of the function to be
  27445. assembly code. The specified function will not have
  27446. prologue/epilogue sequences generated by the compiler. Only basic
  27447. 'asm' statements can safely be included in naked functions (*note
  27448. Basic Asm::). While using extended 'asm' or a mixture of basic
  27449. 'asm' and C code may appear to work, they cannot be depended upon
  27450. to work reliably and are not supported.
  27451. 'reentrant'
  27452. Reentrant functions disable interrupts upon entry and enable them
  27453. upon exit. Reentrant functions cannot also have the 'naked' or
  27454. 'critical' attributes. They can have the 'interrupt' attribute.
  27455. 'wakeup'
  27456. This attribute only applies to interrupt functions. It is silently
  27457. ignored if applied to a non-interrupt function. A wakeup interrupt
  27458. function will rouse the processor from any low-power state that it
  27459. might be in when the function exits.
  27460. 'lower'
  27461. 'upper'
  27462. 'either'
  27463. On the MSP430 target these attributes can be used to specify
  27464. whether the function or variable should be placed into low memory,
  27465. high memory, or the placement should be left to the linker to
  27466. decide. The attributes are only significant if compiling for the
  27467. MSP430X architecture in the large memory model.
  27468. The attributes work in conjunction with a linker script that has
  27469. been augmented to specify where to place sections with a '.lower'
  27470. and a '.upper' prefix. So, for example, as well as placing the
  27471. '.data' section, the script also specifies the placement of a
  27472. '.lower.data' and a '.upper.data' section. The intention is that
  27473. 'lower' sections are placed into a small but easier to access
  27474. memory region and the upper sections are placed into a larger, but
  27475. slower to access, region.
  27476. The 'either' attribute is special. It tells the linker to place
  27477. the object into the corresponding 'lower' section if there is room
  27478. for it. If there is insufficient room then the object is placed
  27479. into the corresponding 'upper' section instead. Note that the
  27480. placement algorithm is not very sophisticated. It does not attempt
  27481. to find an optimal packing of the 'lower' sections. It just makes
  27482. one pass over the objects and does the best that it can. Using the
  27483. '-ffunction-sections' and '-fdata-sections' command-line options
  27484. can help the packing, however, since they produce smaller, easier
  27485. to pack regions.
  27486. 
  27487. File: gcc.info, Node: NDS32 Function Attributes, Next: Nios II Function Attributes, Prev: MSP430 Function Attributes, Up: Function Attributes
  27488. 6.33.22 NDS32 Function Attributes
  27489. ---------------------------------
  27490. These function attributes are supported by the NDS32 back end:
  27491. 'exception'
  27492. Use this attribute on the NDS32 target to indicate that the
  27493. specified function is an exception handler. The compiler will
  27494. generate corresponding sections for use in an exception handler.
  27495. 'interrupt'
  27496. On NDS32 target, this attribute indicates that the specified
  27497. function is an interrupt handler. The compiler generates
  27498. corresponding sections for use in an interrupt handler. You can
  27499. use the following attributes to modify the behavior:
  27500. 'nested'
  27501. This interrupt service routine is interruptible.
  27502. 'not_nested'
  27503. This interrupt service routine is not interruptible.
  27504. 'nested_ready'
  27505. This interrupt service routine is interruptible after
  27506. 'PSW.GIE' (global interrupt enable) is set. This allows
  27507. interrupt service routine to finish some short critical code
  27508. before enabling interrupts.
  27509. 'save_all'
  27510. The system will help save all registers into stack before
  27511. entering interrupt handler.
  27512. 'partial_save'
  27513. The system will help save caller registers into stack before
  27514. entering interrupt handler.
  27515. 'naked'
  27516. This attribute allows the compiler to construct the requisite
  27517. function declaration, while allowing the body of the function to be
  27518. assembly code. The specified function will not have
  27519. prologue/epilogue sequences generated by the compiler. Only basic
  27520. 'asm' statements can safely be included in naked functions (*note
  27521. Basic Asm::). While using extended 'asm' or a mixture of basic
  27522. 'asm' and C code may appear to work, they cannot be depended upon
  27523. to work reliably and are not supported.
  27524. 'reset'
  27525. Use this attribute on the NDS32 target to indicate that the
  27526. specified function is a reset handler. The compiler will generate
  27527. corresponding sections for use in a reset handler. You can use the
  27528. following attributes to provide extra exception handling:
  27529. 'nmi'
  27530. Provide a user-defined function to handle NMI exception.
  27531. 'warm'
  27532. Provide a user-defined function to handle warm reset
  27533. exception.
  27534. 
  27535. File: gcc.info, Node: Nios II Function Attributes, Next: Nvidia PTX Function Attributes, Prev: NDS32 Function Attributes, Up: Function Attributes
  27536. 6.33.23 Nios II Function Attributes
  27537. -----------------------------------
  27538. These function attributes are supported by the Nios II back end:
  27539. 'target (OPTIONS)'
  27540. As discussed in *note Common Function Attributes::, this attribute
  27541. allows specification of target-specific compilation options.
  27542. When compiling for Nios II, the following options are allowed:
  27543. 'custom-INSN=N'
  27544. 'no-custom-INSN'
  27545. Each 'custom-INSN=N' attribute locally enables use of a custom
  27546. instruction with encoding N when generating code that uses
  27547. INSN. Similarly, 'no-custom-INSN' locally inhibits use of the
  27548. custom instruction INSN. These target attributes correspond
  27549. to the '-mcustom-INSN=N' and '-mno-custom-INSN' command-line
  27550. options, and support the same set of INSN keywords. *Note
  27551. Nios II Options::, for more information.
  27552. 'custom-fpu-cfg=NAME'
  27553. This attribute corresponds to the '-mcustom-fpu-cfg=NAME'
  27554. command-line option, to select a predefined set of custom
  27555. instructions named NAME. *Note Nios II Options::, for more
  27556. information.
  27557. 
  27558. File: gcc.info, Node: Nvidia PTX Function Attributes, Next: PowerPC Function Attributes, Prev: Nios II Function Attributes, Up: Function Attributes
  27559. 6.33.24 Nvidia PTX Function Attributes
  27560. --------------------------------------
  27561. These function attributes are supported by the Nvidia PTX back end:
  27562. 'kernel'
  27563. This attribute indicates that the corresponding function should be
  27564. compiled as a kernel function, which can be invoked from the host
  27565. via the CUDA RT library. By default functions are only callable
  27566. only from other PTX functions.
  27567. Kernel functions must have 'void' return type.
  27568. 
  27569. File: gcc.info, Node: PowerPC Function Attributes, Next: RISC-V Function Attributes, Prev: Nvidia PTX Function Attributes, Up: Function Attributes
  27570. 6.33.25 PowerPC Function Attributes
  27571. -----------------------------------
  27572. These function attributes are supported by the PowerPC back end:
  27573. 'longcall'
  27574. 'shortcall'
  27575. The 'longcall' attribute indicates that the function might be far
  27576. away from the call site and require a different (more expensive)
  27577. calling sequence. The 'shortcall' attribute indicates that the
  27578. function is always close enough for the shorter calling sequence to
  27579. be used. These attributes override both the '-mlongcall' switch
  27580. and the '#pragma longcall' setting.
  27581. *Note RS/6000 and PowerPC Options::, for more information on
  27582. whether long calls are necessary.
  27583. 'target (OPTIONS)'
  27584. As discussed in *note Common Function Attributes::, this attribute
  27585. allows specification of target-specific compilation options.
  27586. On the PowerPC, the following options are allowed:
  27587. 'altivec'
  27588. 'no-altivec'
  27589. Generate code that uses (does not use) AltiVec instructions.
  27590. In 32-bit code, you cannot enable AltiVec instructions unless
  27591. '-mabi=altivec' is used on the command line.
  27592. 'cmpb'
  27593. 'no-cmpb'
  27594. Generate code that uses (does not use) the compare bytes
  27595. instruction implemented on the POWER6 processor and other
  27596. processors that support the PowerPC V2.05 architecture.
  27597. 'dlmzb'
  27598. 'no-dlmzb'
  27599. Generate code that uses (does not use) the string-search
  27600. 'dlmzb' instruction on the IBM 405, 440, 464 and 476
  27601. processors. This instruction is generated by default when
  27602. targeting those processors.
  27603. 'fprnd'
  27604. 'no-fprnd'
  27605. Generate code that uses (does not use) the FP round to integer
  27606. instructions implemented on the POWER5+ processor and other
  27607. processors that support the PowerPC V2.03 architecture.
  27608. 'hard-dfp'
  27609. 'no-hard-dfp'
  27610. Generate code that uses (does not use) the decimal
  27611. floating-point instructions implemented on some POWER
  27612. processors.
  27613. 'isel'
  27614. 'no-isel'
  27615. Generate code that uses (does not use) ISEL instruction.
  27616. 'mfcrf'
  27617. 'no-mfcrf'
  27618. Generate code that uses (does not use) the move from condition
  27619. register field instruction implemented on the POWER4 processor
  27620. and other processors that support the PowerPC V2.01
  27621. architecture.
  27622. 'mulhw'
  27623. 'no-mulhw'
  27624. Generate code that uses (does not use) the half-word multiply
  27625. and multiply-accumulate instructions on the IBM 405, 440, 464
  27626. and 476 processors. These instructions are generated by
  27627. default when targeting those processors.
  27628. 'multiple'
  27629. 'no-multiple'
  27630. Generate code that uses (does not use) the load multiple word
  27631. instructions and the store multiple word instructions.
  27632. 'update'
  27633. 'no-update'
  27634. Generate code that uses (does not use) the load or store
  27635. instructions that update the base register to the address of
  27636. the calculated memory location.
  27637. 'popcntb'
  27638. 'no-popcntb'
  27639. Generate code that uses (does not use) the popcount and
  27640. double-precision FP reciprocal estimate instruction
  27641. implemented on the POWER5 processor and other processors that
  27642. support the PowerPC V2.02 architecture.
  27643. 'popcntd'
  27644. 'no-popcntd'
  27645. Generate code that uses (does not use) the popcount
  27646. instruction implemented on the POWER7 processor and other
  27647. processors that support the PowerPC V2.06 architecture.
  27648. 'powerpc-gfxopt'
  27649. 'no-powerpc-gfxopt'
  27650. Generate code that uses (does not use) the optional PowerPC
  27651. architecture instructions in the Graphics group, including
  27652. floating-point select.
  27653. 'powerpc-gpopt'
  27654. 'no-powerpc-gpopt'
  27655. Generate code that uses (does not use) the optional PowerPC
  27656. architecture instructions in the General Purpose group,
  27657. including floating-point square root.
  27658. 'recip-precision'
  27659. 'no-recip-precision'
  27660. Assume (do not assume) that the reciprocal estimate
  27661. instructions provide higher-precision estimates than is
  27662. mandated by the PowerPC ABI.
  27663. 'string'
  27664. 'no-string'
  27665. Generate code that uses (does not use) the load string
  27666. instructions and the store string word instructions to save
  27667. multiple registers and do small block moves.
  27668. 'vsx'
  27669. 'no-vsx'
  27670. Generate code that uses (does not use) vector/scalar (VSX)
  27671. instructions, and also enable the use of built-in functions
  27672. that allow more direct access to the VSX instruction set. In
  27673. 32-bit code, you cannot enable VSX or AltiVec instructions
  27674. unless '-mabi=altivec' is used on the command line.
  27675. 'friz'
  27676. 'no-friz'
  27677. Generate (do not generate) the 'friz' instruction when the
  27678. '-funsafe-math-optimizations' option is used to optimize
  27679. rounding a floating-point value to 64-bit integer and back to
  27680. floating point. The 'friz' instruction does not return the
  27681. same value if the floating-point number is too large to fit in
  27682. an integer.
  27683. 'avoid-indexed-addresses'
  27684. 'no-avoid-indexed-addresses'
  27685. Generate code that tries to avoid (not avoid) the use of
  27686. indexed load or store instructions.
  27687. 'paired'
  27688. 'no-paired'
  27689. Generate code that uses (does not use) the generation of
  27690. PAIRED simd instructions.
  27691. 'longcall'
  27692. 'no-longcall'
  27693. Generate code that assumes (does not assume) that all calls
  27694. are far away so that a longer more expensive calling sequence
  27695. is required.
  27696. 'cpu=CPU'
  27697. Specify the architecture to generate code for when compiling
  27698. the function. If you select the 'target("cpu=power7")'
  27699. attribute when generating 32-bit code, VSX and AltiVec
  27700. instructions are not generated unless you use the
  27701. '-mabi=altivec' option on the command line.
  27702. 'tune=TUNE'
  27703. Specify the architecture to tune for when compiling the
  27704. function. If you do not specify the 'target("tune=TUNE")'
  27705. attribute and you do specify the 'target("cpu=CPU")'
  27706. attribute, compilation tunes for the CPU architecture, and not
  27707. the default tuning specified on the command line.
  27708. On the PowerPC, the inliner does not inline a function that has
  27709. different target options than the caller, unless the callee has a
  27710. subset of the target options of the caller.
  27711. 
  27712. File: gcc.info, Node: RISC-V Function Attributes, Next: RL78 Function Attributes, Prev: PowerPC Function Attributes, Up: Function Attributes
  27713. 6.33.26 RISC-V Function Attributes
  27714. ----------------------------------
  27715. These function attributes are supported by the RISC-V back end:
  27716. 'naked'
  27717. This attribute allows the compiler to construct the requisite
  27718. function declaration, while allowing the body of the function to be
  27719. assembly code. The specified function will not have
  27720. prologue/epilogue sequences generated by the compiler. Only basic
  27721. 'asm' statements can safely be included in naked functions (*note
  27722. Basic Asm::). While using extended 'asm' or a mixture of basic
  27723. 'asm' and C code may appear to work, they cannot be depended upon
  27724. to work reliably and are not supported.
  27725. 'interrupt'
  27726. Use this attribute to indicate that the specified function is an
  27727. interrupt handler. The compiler generates function entry and exit
  27728. sequences suitable for use in an interrupt handler when this
  27729. attribute is present.
  27730. You can specify the kind of interrupt to be handled by adding an
  27731. optional parameter to the interrupt attribute like this:
  27732. void f (void) __attribute__ ((interrupt ("user")));
  27733. Permissible values for this parameter are 'user', 'supervisor', and
  27734. 'machine'. If there is no parameter, then it defaults to
  27735. 'machine'.
  27736. 
  27737. File: gcc.info, Node: RL78 Function Attributes, Next: RX Function Attributes, Prev: RISC-V Function Attributes, Up: Function Attributes
  27738. 6.33.27 RL78 Function Attributes
  27739. --------------------------------
  27740. These function attributes are supported by the RL78 back end:
  27741. 'interrupt'
  27742. 'brk_interrupt'
  27743. These attributes indicate that the specified function is an
  27744. interrupt handler. The compiler generates function entry and exit
  27745. sequences suitable for use in an interrupt handler when this
  27746. attribute is present.
  27747. Use 'brk_interrupt' instead of 'interrupt' for handlers intended to
  27748. be used with the 'BRK' opcode (i.e. those that must end with 'RETB'
  27749. instead of 'RETI').
  27750. 'naked'
  27751. This attribute allows the compiler to construct the requisite
  27752. function declaration, while allowing the body of the function to be
  27753. assembly code. The specified function will not have
  27754. prologue/epilogue sequences generated by the compiler. Only basic
  27755. 'asm' statements can safely be included in naked functions (*note
  27756. Basic Asm::). While using extended 'asm' or a mixture of basic
  27757. 'asm' and C code may appear to work, they cannot be depended upon
  27758. to work reliably and are not supported.
  27759. 
  27760. File: gcc.info, Node: RX Function Attributes, Next: S/390 Function Attributes, Prev: RL78 Function Attributes, Up: Function Attributes
  27761. 6.33.28 RX Function Attributes
  27762. ------------------------------
  27763. These function attributes are supported by the RX back end:
  27764. 'fast_interrupt'
  27765. Use this attribute on the RX port to indicate that the specified
  27766. function is a fast interrupt handler. This is just like the
  27767. 'interrupt' attribute, except that 'freit' is used to return
  27768. instead of 'reit'.
  27769. 'interrupt'
  27770. Use this attribute to indicate that the specified function is an
  27771. interrupt handler. The compiler generates function entry and exit
  27772. sequences suitable for use in an interrupt handler when this
  27773. attribute is present.
  27774. On RX and RL78 targets, you may specify one or more vector numbers
  27775. as arguments to the attribute, as well as naming an alternate table
  27776. name. Parameters are handled sequentially, so one handler can be
  27777. assigned to multiple entries in multiple tables. One may also pass
  27778. the magic string '"$default"' which causes the function to be used
  27779. for any unfilled slots in the current table.
  27780. This example shows a simple assignment of a function to one vector
  27781. in the default table (note that preprocessor macros may be used for
  27782. chip-specific symbolic vector names):
  27783. void __attribute__ ((interrupt (5))) txd1_handler ();
  27784. This example assigns a function to two slots in the default table
  27785. (using preprocessor macros defined elsewhere) and makes it the
  27786. default for the 'dct' table:
  27787. void __attribute__ ((interrupt (RXD1_VECT,RXD2_VECT,"dct","$default")))
  27788. txd1_handler ();
  27789. 'naked'
  27790. This attribute allows the compiler to construct the requisite
  27791. function declaration, while allowing the body of the function to be
  27792. assembly code. The specified function will not have
  27793. prologue/epilogue sequences generated by the compiler. Only basic
  27794. 'asm' statements can safely be included in naked functions (*note
  27795. Basic Asm::). While using extended 'asm' or a mixture of basic
  27796. 'asm' and C code may appear to work, they cannot be depended upon
  27797. to work reliably and are not supported.
  27798. 'vector'
  27799. This RX attribute is similar to the 'interrupt' attribute,
  27800. including its parameters, but does not make the function an
  27801. interrupt-handler type function (i.e. it retains the normal C
  27802. function calling ABI). See the 'interrupt' attribute for a
  27803. description of its arguments.
  27804. 
  27805. File: gcc.info, Node: S/390 Function Attributes, Next: SH Function Attributes, Prev: RX Function Attributes, Up: Function Attributes
  27806. 6.33.29 S/390 Function Attributes
  27807. ---------------------------------
  27808. These function attributes are supported on the S/390:
  27809. 'hotpatch (HALFWORDS-BEFORE-FUNCTION-LABEL,HALFWORDS-AFTER-FUNCTION-LABEL)'
  27810. On S/390 System z targets, you can use this function attribute to
  27811. make GCC generate a "hot-patching" function prologue. If the
  27812. '-mhotpatch=' command-line option is used at the same time, the
  27813. 'hotpatch' attribute takes precedence. The first of the two
  27814. arguments specifies the number of halfwords to be added before the
  27815. function label. A second argument can be used to specify the
  27816. number of halfwords to be added after the function label. For both
  27817. arguments the maximum allowed value is 1000000.
  27818. If both arguments are zero, hotpatching is disabled.
  27819. 'target (OPTIONS)'
  27820. As discussed in *note Common Function Attributes::, this attribute
  27821. allows specification of target-specific compilation options.
  27822. On S/390, the following options are supported:
  27823. 'arch='
  27824. 'tune='
  27825. 'stack-guard='
  27826. 'stack-size='
  27827. 'branch-cost='
  27828. 'warn-framesize='
  27829. 'backchain'
  27830. 'no-backchain'
  27831. 'hard-dfp'
  27832. 'no-hard-dfp'
  27833. 'hard-float'
  27834. 'soft-float'
  27835. 'htm'
  27836. 'no-htm'
  27837. 'vx'
  27838. 'no-vx'
  27839. 'packed-stack'
  27840. 'no-packed-stack'
  27841. 'small-exec'
  27842. 'no-small-exec'
  27843. 'mvcle'
  27844. 'no-mvcle'
  27845. 'warn-dynamicstack'
  27846. 'no-warn-dynamicstack'
  27847. The options work exactly like the S/390 specific command line
  27848. options (without the prefix '-m') except that they do not change
  27849. any feature macros. For example,
  27850. target("no-vx")
  27851. does not undefine the '__VEC__' macro.
  27852. 
  27853. File: gcc.info, Node: SH Function Attributes, Next: Symbian OS Function Attributes, Prev: S/390 Function Attributes, Up: Function Attributes
  27854. 6.33.30 SH Function Attributes
  27855. ------------------------------
  27856. These function attributes are supported on the SH family of processors:
  27857. 'function_vector'
  27858. On SH2A targets, this attribute declares a function to be called
  27859. using the TBR relative addressing mode. The argument to this
  27860. attribute is the entry number of the same function in a vector
  27861. table containing all the TBR relative addressable functions. For
  27862. correct operation the TBR must be setup accordingly to point to the
  27863. start of the vector table before any functions with this attribute
  27864. are invoked. Usually a good place to do the initialization is the
  27865. startup routine. The TBR relative vector table can have at max 256
  27866. function entries. The jumps to these functions are generated using
  27867. a SH2A specific, non delayed branch instruction JSR/N @(disp8,TBR).
  27868. You must use GAS and GLD from GNU binutils version 2.7 or later for
  27869. this attribute to work correctly.
  27870. In an application, for a function being called once, this attribute
  27871. saves at least 8 bytes of code; and if other successive calls are
  27872. being made to the same function, it saves 2 bytes of code per each
  27873. of these calls.
  27874. 'interrupt_handler'
  27875. Use this attribute to indicate that the specified function is an
  27876. interrupt handler. The compiler generates function entry and exit
  27877. sequences suitable for use in an interrupt handler when this
  27878. attribute is present.
  27879. 'nosave_low_regs'
  27880. Use this attribute on SH targets to indicate that an
  27881. 'interrupt_handler' function should not save and restore registers
  27882. R0..R7. This can be used on SH3* and SH4* targets that have a
  27883. second R0..R7 register bank for non-reentrant interrupt handlers.
  27884. 'renesas'
  27885. On SH targets this attribute specifies that the function or struct
  27886. follows the Renesas ABI.
  27887. 'resbank'
  27888. On the SH2A target, this attribute enables the high-speed register
  27889. saving and restoration using a register bank for
  27890. 'interrupt_handler' routines. Saving to the bank is performed
  27891. automatically after the CPU accepts an interrupt that uses a
  27892. register bank.
  27893. The nineteen 32-bit registers comprising general register R0 to
  27894. R14, control register GBR, and system registers MACH, MACL, and PR
  27895. and the vector table address offset are saved into a register bank.
  27896. Register banks are stacked in first-in last-out (FILO) sequence.
  27897. Restoration from the bank is executed by issuing a RESBANK
  27898. instruction.
  27899. 'sp_switch'
  27900. Use this attribute on the SH to indicate an 'interrupt_handler'
  27901. function should switch to an alternate stack. It expects a string
  27902. argument that names a global variable holding the address of the
  27903. alternate stack.
  27904. void *alt_stack;
  27905. void f () __attribute__ ((interrupt_handler,
  27906. sp_switch ("alt_stack")));
  27907. 'trap_exit'
  27908. Use this attribute on the SH for an 'interrupt_handler' to return
  27909. using 'trapa' instead of 'rte'. This attribute expects an integer
  27910. argument specifying the trap number to be used.
  27911. 'trapa_handler'
  27912. On SH targets this function attribute is similar to
  27913. 'interrupt_handler' but it does not save and restore all registers.
  27914. 
  27915. File: gcc.info, Node: Symbian OS Function Attributes, Next: V850 Function Attributes, Prev: SH Function Attributes, Up: Function Attributes
  27916. 6.33.31 Symbian OS Function Attributes
  27917. --------------------------------------
  27918. *Note Microsoft Windows Function Attributes::, for discussion of the
  27919. 'dllexport' and 'dllimport' attributes.
  27920. 
  27921. File: gcc.info, Node: V850 Function Attributes, Next: Visium Function Attributes, Prev: Symbian OS Function Attributes, Up: Function Attributes
  27922. 6.33.32 V850 Function Attributes
  27923. --------------------------------
  27924. The V850 back end supports these function attributes:
  27925. 'interrupt'
  27926. 'interrupt_handler'
  27927. Use these attributes to indicate that the specified function is an
  27928. interrupt handler. The compiler generates function entry and exit
  27929. sequences suitable for use in an interrupt handler when either
  27930. attribute is present.
  27931. 
  27932. File: gcc.info, Node: Visium Function Attributes, Next: x86 Function Attributes, Prev: V850 Function Attributes, Up: Function Attributes
  27933. 6.33.33 Visium Function Attributes
  27934. ----------------------------------
  27935. These function attributes are supported by the Visium back end:
  27936. 'interrupt'
  27937. Use this attribute to indicate that the specified function is an
  27938. interrupt handler. The compiler generates function entry and exit
  27939. sequences suitable for use in an interrupt handler when this
  27940. attribute is present.
  27941. 
  27942. File: gcc.info, Node: x86 Function Attributes, Next: Xstormy16 Function Attributes, Prev: Visium Function Attributes, Up: Function Attributes
  27943. 6.33.34 x86 Function Attributes
  27944. -------------------------------
  27945. These function attributes are supported by the x86 back end:
  27946. 'cdecl'
  27947. On the x86-32 targets, the 'cdecl' attribute causes the compiler to
  27948. assume that the calling function pops off the stack space used to
  27949. pass arguments. This is useful to override the effects of the
  27950. '-mrtd' switch.
  27951. 'fastcall'
  27952. On x86-32 targets, the 'fastcall' attribute causes the compiler to
  27953. pass the first argument (if of integral type) in the register ECX
  27954. and the second argument (if of integral type) in the register EDX.
  27955. Subsequent and other typed arguments are passed on the stack. The
  27956. called function pops the arguments off the stack. If the number of
  27957. arguments is variable all arguments are pushed on the stack.
  27958. 'thiscall'
  27959. On x86-32 targets, the 'thiscall' attribute causes the compiler to
  27960. pass the first argument (if of integral type) in the register ECX.
  27961. Subsequent and other typed arguments are passed on the stack. The
  27962. called function pops the arguments off the stack. If the number of
  27963. arguments is variable all arguments are pushed on the stack. The
  27964. 'thiscall' attribute is intended for C++ non-static member
  27965. functions. As a GCC extension, this calling convention can be used
  27966. for C functions and for static member methods.
  27967. 'ms_abi'
  27968. 'sysv_abi'
  27969. On 32-bit and 64-bit x86 targets, you can use an ABI attribute to
  27970. indicate which calling convention should be used for a function.
  27971. The 'ms_abi' attribute tells the compiler to use the Microsoft ABI,
  27972. while the 'sysv_abi' attribute tells the compiler to use the ABI
  27973. used on GNU/Linux and other systems. The default is to use the
  27974. Microsoft ABI when targeting Windows. On all other systems, the
  27975. default is the x86/AMD ABI.
  27976. Note, the 'ms_abi' attribute for Microsoft Windows 64-bit targets
  27977. currently requires the '-maccumulate-outgoing-args' option.
  27978. 'callee_pop_aggregate_return (NUMBER)'
  27979. On x86-32 targets, you can use this attribute to control how
  27980. aggregates are returned in memory. If the caller is responsible
  27981. for popping the hidden pointer together with the rest of the
  27982. arguments, specify NUMBER equal to zero. If callee is responsible
  27983. for popping the hidden pointer, specify NUMBER equal to one.
  27984. The default x86-32 ABI assumes that the callee pops the stack for
  27985. hidden pointer. However, on x86-32 Microsoft Windows targets, the
  27986. compiler assumes that the caller pops the stack for hidden pointer.
  27987. 'ms_hook_prologue'
  27988. On 32-bit and 64-bit x86 targets, you can use this function
  27989. attribute to make GCC generate the "hot-patching" function prologue
  27990. used in Win32 API functions in Microsoft Windows XP Service Pack 2
  27991. and newer.
  27992. 'naked'
  27993. This attribute allows the compiler to construct the requisite
  27994. function declaration, while allowing the body of the function to be
  27995. assembly code. The specified function will not have
  27996. prologue/epilogue sequences generated by the compiler. Only basic
  27997. 'asm' statements can safely be included in naked functions (*note
  27998. Basic Asm::). While using extended 'asm' or a mixture of basic
  27999. 'asm' and C code may appear to work, they cannot be depended upon
  28000. to work reliably and are not supported.
  28001. 'regparm (NUMBER)'
  28002. On x86-32 targets, the 'regparm' attribute causes the compiler to
  28003. pass arguments number one to NUMBER if they are of integral type in
  28004. registers EAX, EDX, and ECX instead of on the stack. Functions
  28005. that take a variable number of arguments continue to be passed all
  28006. of their arguments on the stack.
  28007. Beware that on some ELF systems this attribute is unsuitable for
  28008. global functions in shared libraries with lazy binding (which is
  28009. the default). Lazy binding sends the first call via resolving code
  28010. in the loader, which might assume EAX, EDX and ECX can be
  28011. clobbered, as per the standard calling conventions. Solaris 8 is
  28012. affected by this. Systems with the GNU C Library version 2.1 or
  28013. higher and FreeBSD are believed to be safe since the loaders there
  28014. save EAX, EDX and ECX. (Lazy binding can be disabled with the
  28015. linker or the loader if desired, to avoid the problem.)
  28016. 'sseregparm'
  28017. On x86-32 targets with SSE support, the 'sseregparm' attribute
  28018. causes the compiler to pass up to 3 floating-point arguments in SSE
  28019. registers instead of on the stack. Functions that take a variable
  28020. number of arguments continue to pass all of their floating-point
  28021. arguments on the stack.
  28022. 'force_align_arg_pointer'
  28023. On x86 targets, the 'force_align_arg_pointer' attribute may be
  28024. applied to individual function definitions, generating an alternate
  28025. prologue and epilogue that realigns the run-time stack if
  28026. necessary. This supports mixing legacy codes that run with a
  28027. 4-byte aligned stack with modern codes that keep a 16-byte stack
  28028. for SSE compatibility.
  28029. 'stdcall'
  28030. On x86-32 targets, the 'stdcall' attribute causes the compiler to
  28031. assume that the called function pops off the stack space used to
  28032. pass arguments, unless it takes a variable number of arguments.
  28033. 'no_caller_saved_registers'
  28034. Use this attribute to indicate that the specified function has no
  28035. caller-saved registers. That is, all registers are callee-saved.
  28036. For example, this attribute can be used for a function called from
  28037. an interrupt handler. The compiler generates proper function entry
  28038. and exit sequences to save and restore any modified registers,
  28039. except for the EFLAGS register. Since GCC doesn't preserve SSE,
  28040. MMX nor x87 states, the GCC option '-mgeneral-regs-only' should be
  28041. used to compile functions with 'no_caller_saved_registers'
  28042. attribute.
  28043. 'interrupt'
  28044. Use this attribute to indicate that the specified function is an
  28045. interrupt handler or an exception handler (depending on parameters
  28046. passed to the function, explained further). The compiler generates
  28047. function entry and exit sequences suitable for use in an interrupt
  28048. handler when this attribute is present. The 'IRET' instruction,
  28049. instead of the 'RET' instruction, is used to return from interrupt
  28050. handlers. All registers, except for the EFLAGS register which is
  28051. restored by the 'IRET' instruction, are preserved by the compiler.
  28052. Since GCC doesn't preserve SSE, MMX nor x87 states, the GCC option
  28053. '-mgeneral-regs-only' should be used to compile interrupt and
  28054. exception handlers.
  28055. Any interruptible-without-stack-switch code must be compiled with
  28056. '-mno-red-zone' since interrupt handlers can and will, because of
  28057. the hardware design, touch the red zone.
  28058. An interrupt handler must be declared with a mandatory pointer
  28059. argument:
  28060. struct interrupt_frame;
  28061. __attribute__ ((interrupt))
  28062. void
  28063. f (struct interrupt_frame *frame)
  28064. {
  28065. }
  28066. and you must define 'struct interrupt_frame' as described in the
  28067. processor's manual.
  28068. Exception handlers differ from interrupt handlers because the
  28069. system pushes an error code on the stack. An exception handler
  28070. declaration is similar to that for an interrupt handler, but with a
  28071. different mandatory function signature. The compiler arranges to
  28072. pop the error code off the stack before the 'IRET' instruction.
  28073. #ifdef __x86_64__
  28074. typedef unsigned long long int uword_t;
  28075. #else
  28076. typedef unsigned int uword_t;
  28077. #endif
  28078. struct interrupt_frame;
  28079. __attribute__ ((interrupt))
  28080. void
  28081. f (struct interrupt_frame *frame, uword_t error_code)
  28082. {
  28083. ...
  28084. }
  28085. Exception handlers should only be used for exceptions that push an
  28086. error code; you should use an interrupt handler in other cases.
  28087. The system will crash if the wrong kind of handler is used.
  28088. 'target (OPTIONS)'
  28089. As discussed in *note Common Function Attributes::, this attribute
  28090. allows specification of target-specific compilation options.
  28091. On the x86, the following options are allowed:
  28092. '3dnow'
  28093. 'no-3dnow'
  28094. Enable/disable the generation of the 3DNow! instructions.
  28095. '3dnowa'
  28096. 'no-3dnowa'
  28097. Enable/disable the generation of the enhanced 3DNow!
  28098. instructions.
  28099. 'abm'
  28100. 'no-abm'
  28101. Enable/disable the generation of the advanced bit
  28102. instructions.
  28103. 'adx'
  28104. 'no-adx'
  28105. Enable/disable the generation of the ADX instructions.
  28106. 'aes'
  28107. 'no-aes'
  28108. Enable/disable the generation of the AES instructions.
  28109. 'avx'
  28110. 'no-avx'
  28111. Enable/disable the generation of the AVX instructions.
  28112. 'avx2'
  28113. 'no-avx2'
  28114. Enable/disable the generation of the AVX2 instructions.
  28115. 'avx5124fmaps'
  28116. 'no-avx5124fmaps'
  28117. Enable/disable the generation of the AVX5124FMAPS
  28118. instructions.
  28119. 'avx5124vnniw'
  28120. 'no-avx5124vnniw'
  28121. Enable/disable the generation of the AVX5124VNNIW
  28122. instructions.
  28123. 'avx512bitalg'
  28124. 'no-avx512bitalg'
  28125. Enable/disable the generation of the AVX512BITALG
  28126. instructions.
  28127. 'avx512bw'
  28128. 'no-avx512bw'
  28129. Enable/disable the generation of the AVX512BW instructions.
  28130. 'avx512cd'
  28131. 'no-avx512cd'
  28132. Enable/disable the generation of the AVX512CD instructions.
  28133. 'avx512dq'
  28134. 'no-avx512dq'
  28135. Enable/disable the generation of the AVX512DQ instructions.
  28136. 'avx512er'
  28137. 'no-avx512er'
  28138. Enable/disable the generation of the AVX512ER instructions.
  28139. 'avx512f'
  28140. 'no-avx512f'
  28141. Enable/disable the generation of the AVX512F instructions.
  28142. 'avx512ifma'
  28143. 'no-avx512ifma'
  28144. Enable/disable the generation of the AVX512IFMA instructions.
  28145. 'avx512pf'
  28146. 'no-avx512pf'
  28147. Enable/disable the generation of the AVX512PF instructions.
  28148. 'avx512vbmi'
  28149. 'no-avx512vbmi'
  28150. Enable/disable the generation of the AVX512VBMI instructions.
  28151. 'avx512vbmi2'
  28152. 'no-avx512vbmi2'
  28153. Enable/disable the generation of the AVX512VBMI2 instructions.
  28154. 'avx512vl'
  28155. 'no-avx512vl'
  28156. Enable/disable the generation of the AVX512VL instructions.
  28157. 'avx512vnni'
  28158. 'no-avx512vnni'
  28159. Enable/disable the generation of the AVX512VNNI instructions.
  28160. 'avx512vpopcntdq'
  28161. 'no-avx512vpopcntdq'
  28162. Enable/disable the generation of the AVX512VPOPCNTDQ
  28163. instructions.
  28164. 'bmi'
  28165. 'no-bmi'
  28166. Enable/disable the generation of the BMI instructions.
  28167. 'bmi2'
  28168. 'no-bmi2'
  28169. Enable/disable the generation of the BMI2 instructions.
  28170. 'cldemote'
  28171. 'no-cldemote'
  28172. Enable/disable the generation of the CLDEMOTE instructions.
  28173. 'clflushopt'
  28174. 'no-clflushopt'
  28175. Enable/disable the generation of the CLFLUSHOPT instructions.
  28176. 'clwb'
  28177. 'no-clwb'
  28178. Enable/disable the generation of the CLWB instructions.
  28179. 'clzero'
  28180. 'no-clzero'
  28181. Enable/disable the generation of the CLZERO instructions.
  28182. 'crc32'
  28183. 'no-crc32'
  28184. Enable/disable the generation of the CRC32 instructions.
  28185. 'cx16'
  28186. 'no-cx16'
  28187. Enable/disable the generation of the CMPXCHG16B instructions.
  28188. 'default'
  28189. *Note Function Multiversioning::, where it is used to specify
  28190. the default function version.
  28191. 'f16c'
  28192. 'no-f16c'
  28193. Enable/disable the generation of the F16C instructions.
  28194. 'fma'
  28195. 'no-fma'
  28196. Enable/disable the generation of the FMA instructions.
  28197. 'fma4'
  28198. 'no-fma4'
  28199. Enable/disable the generation of the FMA4 instructions.
  28200. 'fsgsbase'
  28201. 'no-fsgsbase'
  28202. Enable/disable the generation of the FSGSBASE instructions.
  28203. 'fxsr'
  28204. 'no-fxsr'
  28205. Enable/disable the generation of the FXSR instructions.
  28206. 'gfni'
  28207. 'no-gfni'
  28208. Enable/disable the generation of the GFNI instructions.
  28209. 'hle'
  28210. 'no-hle'
  28211. Enable/disable the generation of the HLE instruction prefixes.
  28212. 'lwp'
  28213. 'no-lwp'
  28214. Enable/disable the generation of the LWP instructions.
  28215. 'lzcnt'
  28216. 'no-lzcnt'
  28217. Enable/disable the generation of the LZCNT instructions.
  28218. 'mmx'
  28219. 'no-mmx'
  28220. Enable/disable the generation of the MMX instructions.
  28221. 'movbe'
  28222. 'no-movbe'
  28223. Enable/disable the generation of the MOVBE instructions.
  28224. 'movdir64b'
  28225. 'no-movdir64b'
  28226. Enable/disable the generation of the MOVDIR64B instructions.
  28227. 'movdiri'
  28228. 'no-movdiri'
  28229. Enable/disable the generation of the MOVDIRI instructions.
  28230. 'mwaitx'
  28231. 'no-mwaitx'
  28232. Enable/disable the generation of the MWAITX instructions.
  28233. 'pclmul'
  28234. 'no-pclmul'
  28235. Enable/disable the generation of the PCLMUL instructions.
  28236. 'pconfig'
  28237. 'no-pconfig'
  28238. Enable/disable the generation of the PCONFIG instructions.
  28239. 'pku'
  28240. 'no-pku'
  28241. Enable/disable the generation of the PKU instructions.
  28242. 'popcnt'
  28243. 'no-popcnt'
  28244. Enable/disable the generation of the POPCNT instruction.
  28245. 'prefetchwt1'
  28246. 'no-prefetchwt1'
  28247. Enable/disable the generation of the PREFETCHWT1 instructions.
  28248. 'prfchw'
  28249. 'no-prfchw'
  28250. Enable/disable the generation of the PREFETCHW instruction.
  28251. 'ptwrite'
  28252. 'no-ptwrite'
  28253. Enable/disable the generation of the PTWRITE instructions.
  28254. 'rdpid'
  28255. 'no-rdpid'
  28256. Enable/disable the generation of the RDPID instructions.
  28257. 'rdrnd'
  28258. 'no-rdrnd'
  28259. Enable/disable the generation of the RDRND instructions.
  28260. 'rdseed'
  28261. 'no-rdseed'
  28262. Enable/disable the generation of the RDSEED instructions.
  28263. 'rtm'
  28264. 'no-rtm'
  28265. Enable/disable the generation of the RTM instructions.
  28266. 'sahf'
  28267. 'no-sahf'
  28268. Enable/disable the generation of the SAHF instructions.
  28269. 'sgx'
  28270. 'no-sgx'
  28271. Enable/disable the generation of the SGX instructions.
  28272. 'sha'
  28273. 'no-sha'
  28274. Enable/disable the generation of the SHA instructions.
  28275. 'shstk'
  28276. 'no-shstk'
  28277. Enable/disable the shadow stack built-in functions from CET.
  28278. 'sse'
  28279. 'no-sse'
  28280. Enable/disable the generation of the SSE instructions.
  28281. 'sse2'
  28282. 'no-sse2'
  28283. Enable/disable the generation of the SSE2 instructions.
  28284. 'sse3'
  28285. 'no-sse3'
  28286. Enable/disable the generation of the SSE3 instructions.
  28287. 'sse4'
  28288. 'no-sse4'
  28289. Enable/disable the generation of the SSE4 instructions (both
  28290. SSE4.1 and SSE4.2).
  28291. 'sse4.1'
  28292. 'no-sse4.1'
  28293. Enable/disable the generation of the sse4.1 instructions.
  28294. 'sse4.2'
  28295. 'no-sse4.2'
  28296. Enable/disable the generation of the sse4.2 instructions.
  28297. 'sse4a'
  28298. 'no-sse4a'
  28299. Enable/disable the generation of the SSE4A instructions.
  28300. 'ssse3'
  28301. 'no-ssse3'
  28302. Enable/disable the generation of the SSSE3 instructions.
  28303. 'tbm'
  28304. 'no-tbm'
  28305. Enable/disable the generation of the TBM instructions.
  28306. 'vaes'
  28307. 'no-vaes'
  28308. Enable/disable the generation of the VAES instructions.
  28309. 'vpclmulqdq'
  28310. 'no-vpclmulqdq'
  28311. Enable/disable the generation of the VPCLMULQDQ instructions.
  28312. 'waitpkg'
  28313. 'no-waitpkg'
  28314. Enable/disable the generation of the WAITPKG instructions.
  28315. 'wbnoinvd'
  28316. 'no-wbnoinvd'
  28317. Enable/disable the generation of the WBNOINVD instructions.
  28318. 'xop'
  28319. 'no-xop'
  28320. Enable/disable the generation of the XOP instructions.
  28321. 'xsave'
  28322. 'no-xsave'
  28323. Enable/disable the generation of the XSAVE instructions.
  28324. 'xsavec'
  28325. 'no-xsavec'
  28326. Enable/disable the generation of the XSAVEC instructions.
  28327. 'xsaveopt'
  28328. 'no-xsaveopt'
  28329. Enable/disable the generation of the XSAVEOPT instructions.
  28330. 'xsaves'
  28331. 'no-xsaves'
  28332. Enable/disable the generation of the XSAVES instructions.
  28333. 'cld'
  28334. 'no-cld'
  28335. Enable/disable the generation of the CLD before string moves.
  28336. 'fancy-math-387'
  28337. 'no-fancy-math-387'
  28338. Enable/disable the generation of the 'sin', 'cos', and 'sqrt'
  28339. instructions on the 387 floating-point unit.
  28340. 'ieee-fp'
  28341. 'no-ieee-fp'
  28342. Enable/disable the generation of floating point that depends
  28343. on IEEE arithmetic.
  28344. 'inline-all-stringops'
  28345. 'no-inline-all-stringops'
  28346. Enable/disable inlining of string operations.
  28347. 'inline-stringops-dynamically'
  28348. 'no-inline-stringops-dynamically'
  28349. Enable/disable the generation of the inline code to do small
  28350. string operations and calling the library routines for large
  28351. operations.
  28352. 'align-stringops'
  28353. 'no-align-stringops'
  28354. Do/do not align destination of inlined string operations.
  28355. 'recip'
  28356. 'no-recip'
  28357. Enable/disable the generation of RCPSS, RCPPS, RSQRTSS and
  28358. RSQRTPS instructions followed an additional Newton-Raphson
  28359. step instead of doing a floating-point division.
  28360. 'arch=ARCH'
  28361. Specify the architecture to generate code for in compiling the
  28362. function.
  28363. 'tune=TUNE'
  28364. Specify the architecture to tune for in compiling the
  28365. function.
  28366. 'fpmath=FPMATH'
  28367. Specify which floating-point unit to use. You must specify
  28368. the 'target("fpmath=sse,387")' option as
  28369. 'target("fpmath=sse+387")' because the comma would separate
  28370. different options.
  28371. 'indirect_branch("CHOICE")'
  28372. On x86 targets, the 'indirect_branch' attribute causes the
  28373. compiler to convert indirect call and jump with CHOICE.
  28374. 'keep' keeps indirect call and jump unmodified. 'thunk'
  28375. converts indirect call and jump to call and return thunk.
  28376. 'thunk-inline' converts indirect call and jump to inlined call
  28377. and return thunk. 'thunk-extern' converts indirect call and
  28378. jump to external call and return thunk provided in a separate
  28379. object file.
  28380. 'function_return("CHOICE")'
  28381. On x86 targets, the 'function_return' attribute causes the
  28382. compiler to convert function return with CHOICE. 'keep' keeps
  28383. function return unmodified. 'thunk' converts function return
  28384. to call and return thunk. 'thunk-inline' converts function
  28385. return to inlined call and return thunk. 'thunk-extern'
  28386. converts function return to external call and return thunk
  28387. provided in a separate object file.
  28388. 'nocf_check'
  28389. The 'nocf_check' attribute on a function is used to inform the
  28390. compiler that the function's prologue should not be
  28391. instrumented when compiled with the '-fcf-protection=branch'
  28392. option. The compiler assumes that the function's address is a
  28393. valid target for a control-flow transfer.
  28394. The 'nocf_check' attribute on a type of pointer to function is
  28395. used to inform the compiler that a call through the pointer
  28396. should not be instrumented when compiled with the
  28397. '-fcf-protection=branch' option. The compiler assumes that
  28398. the function's address from the pointer is a valid target for
  28399. a control-flow transfer. A direct function call through a
  28400. function name is assumed to be a safe call thus direct calls
  28401. are not instrumented by the compiler.
  28402. The 'nocf_check' attribute is applied to an object's type. In
  28403. case of assignment of a function address or a function pointer
  28404. to another pointer, the attribute is not carried over from the
  28405. right-hand object's type; the type of left-hand object stays
  28406. unchanged. The compiler checks for 'nocf_check' attribute
  28407. mismatch and reports a warning in case of mismatch.
  28408. {
  28409. int foo (void) __attribute__(nocf_check);
  28410. void (*foo1)(void) __attribute__(nocf_check);
  28411. void (*foo2)(void);
  28412. /* foo's address is assumed to be valid. */
  28413. int
  28414. foo (void)
  28415. /* This call site is not checked for control-flow
  28416. validity. */
  28417. (*foo1)();
  28418. /* A warning is issued about attribute mismatch. */
  28419. foo1 = foo2;
  28420. /* This call site is still not checked. */
  28421. (*foo1)();
  28422. /* This call site is checked. */
  28423. (*foo2)();
  28424. /* A warning is issued about attribute mismatch. */
  28425. foo2 = foo1;
  28426. /* This call site is still checked. */
  28427. (*foo2)();
  28428. return 0;
  28429. }
  28430. 'cf_check'
  28431. The 'cf_check' attribute on a function is used to inform the
  28432. compiler that ENDBR instruction should be placed at the
  28433. function entry when '-fcf-protection=branch' is enabled.
  28434. 'indirect_return'
  28435. The 'indirect_return' attribute can be applied to a function,
  28436. as well as variable or type of function pointer to inform the
  28437. compiler that the function may return via indirect branch.
  28438. 'fentry_name("NAME")'
  28439. On x86 targets, the 'fentry_name' attribute sets the function
  28440. to call on function entry when function instrumentation is
  28441. enabled with '-pg -mfentry'. When NAME is nop then a 5 byte
  28442. nop sequence is generated.
  28443. 'fentry_section("NAME")'
  28444. On x86 targets, the 'fentry_section' attribute sets the name
  28445. of the section to record function entry instrumentation calls
  28446. in when enabled with '-pg -mrecord-mcount'
  28447. On the x86, the inliner does not inline a function that has
  28448. different target options than the caller, unless the callee has a
  28449. subset of the target options of the caller. For example a function
  28450. declared with 'target("sse3")' can inline a function with
  28451. 'target("sse2")', since '-msse3' implies '-msse2'.
  28452. 
  28453. File: gcc.info, Node: Xstormy16 Function Attributes, Prev: x86 Function Attributes, Up: Function Attributes
  28454. 6.33.35 Xstormy16 Function Attributes
  28455. -------------------------------------
  28456. These function attributes are supported by the Xstormy16 back end:
  28457. 'interrupt'
  28458. Use this attribute to indicate that the specified function is an
  28459. interrupt handler. The compiler generates function entry and exit
  28460. sequences suitable for use in an interrupt handler when this
  28461. attribute is present.
  28462. 
  28463. File: gcc.info, Node: Variable Attributes, Next: Type Attributes, Prev: Function Attributes, Up: C Extensions
  28464. 6.34 Specifying Attributes of Variables
  28465. =======================================
  28466. The keyword '__attribute__' allows you to specify special properties of
  28467. variables, function parameters, or structure, union, and, in C++, class
  28468. members. This '__attribute__' keyword is followed by an attribute
  28469. specification enclosed in double parentheses. Some attributes are
  28470. currently defined generically for variables. Other attributes are
  28471. defined for variables on particular target systems. Other attributes
  28472. are available for functions (*note Function Attributes::), labels (*note
  28473. Label Attributes::), enumerators (*note Enumerator Attributes::),
  28474. statements (*note Statement Attributes::), and for types (*note Type
  28475. Attributes::). Other front ends might define more attributes (*note
  28476. Extensions to the C++ Language: C++ Extensions.).
  28477. *Note Attribute Syntax::, for details of the exact syntax for using
  28478. attributes.
  28479. * Menu:
  28480. * Common Variable Attributes::
  28481. * ARC Variable Attributes::
  28482. * AVR Variable Attributes::
  28483. * Blackfin Variable Attributes::
  28484. * H8/300 Variable Attributes::
  28485. * IA-64 Variable Attributes::
  28486. * M32R/D Variable Attributes::
  28487. * MeP Variable Attributes::
  28488. * Microsoft Windows Variable Attributes::
  28489. * MSP430 Variable Attributes::
  28490. * Nvidia PTX Variable Attributes::
  28491. * PowerPC Variable Attributes::
  28492. * RL78 Variable Attributes::
  28493. * V850 Variable Attributes::
  28494. * x86 Variable Attributes::
  28495. * Xstormy16 Variable Attributes::
  28496. 
  28497. File: gcc.info, Node: Common Variable Attributes, Next: ARC Variable Attributes, Up: Variable Attributes
  28498. 6.34.1 Common Variable Attributes
  28499. ---------------------------------
  28500. The following attributes are supported on most targets.
  28501. 'alias ("TARGET")'
  28502. The 'alias' variable attribute causes the declaration to be emitted
  28503. as an alias for another symbol known as an "alias target". Except
  28504. for top-level qualifiers the alias target must have the same type
  28505. as the alias. For instance, the following
  28506. int var_target;
  28507. extern int __attribute__ ((alias ("var_target"))) var_alias;
  28508. defines 'var_alias' to be an alias for the 'var_target' variable.
  28509. It is an error if the alias target is not defined in the same
  28510. translation unit as the alias.
  28511. Note that in the absence of the attribute GCC assumes that distinct
  28512. declarations with external linkage denote distinct objects. Using
  28513. both the alias and the alias target to access the same object is
  28514. undefined in a translation unit without a declaration of the alias
  28515. with the attribute.
  28516. This attribute requires assembler and object file support, and may
  28517. not be available on all targets.
  28518. 'aligned'
  28519. 'aligned (ALIGNMENT)'
  28520. The 'aligned' attribute specifies a minimum alignment for the
  28521. variable or structure field, measured in bytes. When specified,
  28522. ALIGNMENT must be an integer constant power of 2. Specifying no
  28523. ALIGNMENT argument implies the maximum alignment for the target,
  28524. which is often, but by no means always, 8 or 16 bytes.
  28525. For example, the declaration:
  28526. int x __attribute__ ((aligned (16))) = 0;
  28527. causes the compiler to allocate the global variable 'x' on a
  28528. 16-byte boundary. On a 68040, this could be used in conjunction
  28529. with an 'asm' expression to access the 'move16' instruction which
  28530. requires 16-byte aligned operands.
  28531. You can also specify the alignment of structure fields. For
  28532. example, to create a double-word aligned 'int' pair, you could
  28533. write:
  28534. struct foo { int x[2] __attribute__ ((aligned (8))); };
  28535. This is an alternative to creating a union with a 'double' member,
  28536. which forces the union to be double-word aligned.
  28537. As in the preceding examples, you can explicitly specify the
  28538. alignment (in bytes) that you wish the compiler to use for a given
  28539. variable or structure field. Alternatively, you can leave out the
  28540. alignment factor and just ask the compiler to align a variable or
  28541. field to the default alignment for the target architecture you are
  28542. compiling for. The default alignment is sufficient for all scalar
  28543. types, but may not be enough for all vector types on a target that
  28544. supports vector operations. The default alignment is fixed for a
  28545. particular target ABI.
  28546. GCC also provides a target specific macro '__BIGGEST_ALIGNMENT__',
  28547. which is the largest alignment ever used for any data type on the
  28548. target machine you are compiling for. For example, you could
  28549. write:
  28550. short array[3] __attribute__ ((aligned (__BIGGEST_ALIGNMENT__)));
  28551. The compiler automatically sets the alignment for the declared
  28552. variable or field to '__BIGGEST_ALIGNMENT__'. Doing this can often
  28553. make copy operations more efficient, because the compiler can use
  28554. whatever instructions copy the biggest chunks of memory when
  28555. performing copies to or from the variables or fields that you have
  28556. aligned this way. Note that the value of '__BIGGEST_ALIGNMENT__'
  28557. may change depending on command-line options.
  28558. When used on a struct, or struct member, the 'aligned' attribute
  28559. can only increase the alignment; in order to decrease it, the
  28560. 'packed' attribute must be specified as well. When used as part of
  28561. a typedef, the 'aligned' attribute can both increase and decrease
  28562. alignment, and specifying the 'packed' attribute generates a
  28563. warning.
  28564. Note that the effectiveness of 'aligned' attributes for static
  28565. variables may be limited by inherent limitations in the system
  28566. linker and/or object file format. On some systems, the linker is
  28567. only able to arrange for variables to be aligned up to a certain
  28568. maximum alignment. (For some linkers, the maximum supported
  28569. alignment may be very very small.) If your linker is only able to
  28570. align variables up to a maximum of 8-byte alignment, then
  28571. specifying 'aligned(16)' in an '__attribute__' still only provides
  28572. you with 8-byte alignment. See your linker documentation for
  28573. further information.
  28574. Stack variables are not affected by linker restrictions; GCC can
  28575. properly align them on any target.
  28576. The 'aligned' attribute can also be used for functions (*note
  28577. Common Function Attributes::.)
  28578. 'warn_if_not_aligned (ALIGNMENT)'
  28579. This attribute specifies a threshold for the structure field,
  28580. measured in bytes. If the structure field is aligned below the
  28581. threshold, a warning will be issued. For example, the declaration:
  28582. struct foo
  28583. {
  28584. int i1;
  28585. int i2;
  28586. unsigned long long x __attribute__ ((warn_if_not_aligned (16)));
  28587. };
  28588. causes the compiler to issue an warning on 'struct foo', like
  28589. 'warning: alignment 8 of 'struct foo' is less than 16'. The
  28590. compiler also issues a warning, like 'warning: 'x' offset 8 in
  28591. 'struct foo' isn't aligned to 16', when the structure field has the
  28592. misaligned offset:
  28593. struct __attribute__ ((aligned (16))) foo
  28594. {
  28595. int i1;
  28596. int i2;
  28597. unsigned long long x __attribute__ ((warn_if_not_aligned (16)));
  28598. };
  28599. This warning can be disabled by '-Wno-if-not-aligned'. The
  28600. 'warn_if_not_aligned' attribute can also be used for types (*note
  28601. Common Type Attributes::.)
  28602. 'alloc_size (POSITION)'
  28603. 'alloc_size (POSITION-1, POSITION-2)'
  28604. The 'alloc_size' variable attribute may be applied to the
  28605. declaration of a pointer to a function that returns a pointer and
  28606. takes at least one argument of an integer type. It indicates that
  28607. the returned pointer points to an object whose size is given by the
  28608. function argument at POSITION-1, or by the product of the arguments
  28609. at POSITION-1 and POSITION-2. Meaningful sizes are positive values
  28610. less than 'PTRDIFF_MAX'. Other sizes are disagnosed when detected.
  28611. GCC uses this information to improve the results of
  28612. '__builtin_object_size'.
  28613. For instance, the following declarations
  28614. typedef __attribute__ ((alloc_size (1, 2))) void*
  28615. (*calloc_ptr) (size_t, size_t);
  28616. typedef __attribute__ ((alloc_size (1))) void*
  28617. (*malloc_ptr) (size_t);
  28618. specify that 'calloc_ptr' is a pointer of a function that, like the
  28619. standard C function 'calloc', returns an object whose size is given
  28620. by the product of arguments 1 and 2, and similarly, that
  28621. 'malloc_ptr', like the standard C function 'malloc', returns an
  28622. object whose size is given by argument 1 to the function.
  28623. 'cleanup (CLEANUP_FUNCTION)'
  28624. The 'cleanup' attribute runs a function when the variable goes out
  28625. of scope. This attribute can only be applied to auto function
  28626. scope variables; it may not be applied to parameters or variables
  28627. with static storage duration. The function must take one
  28628. parameter, a pointer to a type compatible with the variable. The
  28629. return value of the function (if any) is ignored.
  28630. If '-fexceptions' is enabled, then CLEANUP_FUNCTION is run during
  28631. the stack unwinding that happens during the processing of the
  28632. exception. Note that the 'cleanup' attribute does not allow the
  28633. exception to be caught, only to perform an action. It is undefined
  28634. what happens if CLEANUP_FUNCTION does not return normally.
  28635. 'common'
  28636. 'nocommon'
  28637. The 'common' attribute requests GCC to place a variable in "common"
  28638. storage. The 'nocommon' attribute requests the opposite--to
  28639. allocate space for it directly.
  28640. These attributes override the default chosen by the '-fno-common'
  28641. and '-fcommon' flags respectively.
  28642. 'copy'
  28643. 'copy (VARIABLE)'
  28644. The 'copy' attribute applies the set of attributes with which
  28645. VARIABLE has been declared to the declaration of the variable to
  28646. which the attribute is applied. The attribute is designed for
  28647. libraries that define aliases that are expected to specify the same
  28648. set of attributes as the aliased symbols. The 'copy' attribute can
  28649. be used with variables, functions or types. However, the kind of
  28650. symbol to which the attribute is applied (either varible or
  28651. function) must match the kind of symbol to which the argument
  28652. refers. The 'copy' attribute copies only syntactic and semantic
  28653. attributes but not attributes that affect a symbol's linkage or
  28654. visibility such as 'alias', 'visibility', or 'weak'. The
  28655. 'deprecated' attribute is also not copied. *Note Common Function
  28656. Attributes::. *Note Common Type Attributes::.
  28657. 'deprecated'
  28658. 'deprecated (MSG)'
  28659. The 'deprecated' attribute results in a warning if the variable is
  28660. used anywhere in the source file. This is useful when identifying
  28661. variables that are expected to be removed in a future version of a
  28662. program. The warning also includes the location of the declaration
  28663. of the deprecated variable, to enable users to easily find further
  28664. information about why the variable is deprecated, or what they
  28665. should do instead. Note that the warning only occurs for uses:
  28666. extern int old_var __attribute__ ((deprecated));
  28667. extern int old_var;
  28668. int new_fn () { return old_var; }
  28669. results in a warning on line 3 but not line 2. The optional MSG
  28670. argument, which must be a string, is printed in the warning if
  28671. present.
  28672. The 'deprecated' attribute can also be used for functions and types
  28673. (*note Common Function Attributes::, *note Common Type
  28674. Attributes::).
  28675. The message attached to the attribute is affected by the setting of
  28676. the '-fmessage-length' option.
  28677. 'mode (MODE)'
  28678. This attribute specifies the data type for the
  28679. declaration--whichever type corresponds to the mode MODE. This in
  28680. effect lets you request an integer or floating-point type according
  28681. to its width.
  28682. *Note (gccint)Machine Modes::, for a list of the possible keywords
  28683. for MODE. You may also specify a mode of 'byte' or '__byte__' to
  28684. indicate the mode corresponding to a one-byte integer, 'word' or
  28685. '__word__' for the mode of a one-word integer, and 'pointer' or
  28686. '__pointer__' for the mode used to represent pointers.
  28687. 'nonstring'
  28688. The 'nonstring' variable attribute specifies that an object or
  28689. member declaration with type array of 'char', 'signed char', or
  28690. 'unsigned char', or pointer to such a type is intended to store
  28691. character arrays that do not necessarily contain a terminating
  28692. 'NUL'. This is useful in detecting uses of such arrays or pointers
  28693. with functions that expect 'NUL'-terminated strings, and to avoid
  28694. warnings when such an array or pointer is used as an argument to a
  28695. bounded string manipulation function such as 'strncpy'. For
  28696. example, without the attribute, GCC will issue a warning for the
  28697. 'strncpy' call below because it may truncate the copy without
  28698. appending the terminating 'NUL' character. Using the attribute
  28699. makes it possible to suppress the warning. However, when the array
  28700. is declared with the attribute the call to 'strlen' is diagnosed
  28701. because when the array doesn't contain a 'NUL'-terminated string
  28702. the call is undefined. To copy, compare, of search non-string
  28703. character arrays use the 'memcpy', 'memcmp', 'memchr', and other
  28704. functions that operate on arrays of bytes. In addition, calling
  28705. 'strnlen' and 'strndup' with such arrays is safe provided a
  28706. suitable bound is specified, and not diagnosed.
  28707. struct Data
  28708. {
  28709. char name [32] __attribute__ ((nonstring));
  28710. };
  28711. int f (struct Data *pd, const char *s)
  28712. {
  28713. strncpy (pd->name, s, sizeof pd->name);
  28714. ...
  28715. return strlen (pd->name); // unsafe, gets a warning
  28716. }
  28717. 'packed'
  28718. The 'packed' attribute specifies that a structure member should
  28719. have the smallest possible alignment--one bit for a bit-field and
  28720. one byte otherwise, unless a larger value is specified with the
  28721. 'aligned' attribute. The attribute does not apply to non-member
  28722. objects.
  28723. For example in the structure below, the member array 'x' is packed
  28724. so that it immediately follows 'a' with no intervening padding:
  28725. struct foo
  28726. {
  28727. char a;
  28728. int x[2] __attribute__ ((packed));
  28729. };
  28730. _Note:_ The 4.1, 4.2 and 4.3 series of GCC ignore the 'packed'
  28731. attribute on bit-fields of type 'char'. This has been fixed in GCC
  28732. 4.4 but the change can lead to differences in the structure layout.
  28733. See the documentation of '-Wpacked-bitfield-compat' for more
  28734. information.
  28735. 'section ("SECTION-NAME")'
  28736. Normally, the compiler places the objects it generates in sections
  28737. like 'data' and 'bss'. Sometimes, however, you need additional
  28738. sections, or you need certain particular variables to appear in
  28739. special sections, for example to map to special hardware. The
  28740. 'section' attribute specifies that a variable (or function) lives
  28741. in a particular section. For example, this small program uses
  28742. several specific section names:
  28743. struct duart a __attribute__ ((section ("DUART_A"))) = { 0 };
  28744. struct duart b __attribute__ ((section ("DUART_B"))) = { 0 };
  28745. char stack[10000] __attribute__ ((section ("STACK"))) = { 0 };
  28746. int init_data __attribute__ ((section ("INITDATA")));
  28747. main()
  28748. {
  28749. /* Initialize stack pointer */
  28750. init_sp (stack + sizeof (stack));
  28751. /* Initialize initialized data */
  28752. memcpy (&init_data, &data, &edata - &data);
  28753. /* Turn on the serial ports */
  28754. init_duart (&a);
  28755. init_duart (&b);
  28756. }
  28757. Use the 'section' attribute with _global_ variables and not _local_
  28758. variables, as shown in the example.
  28759. You may use the 'section' attribute with initialized or
  28760. uninitialized global variables but the linker requires each object
  28761. be defined once, with the exception that uninitialized variables
  28762. tentatively go in the 'common' (or 'bss') section and can be
  28763. multiply "defined". Using the 'section' attribute changes what
  28764. section the variable goes into and may cause the linker to issue an
  28765. error if an uninitialized variable has multiple definitions. You
  28766. can force a variable to be initialized with the '-fno-common' flag
  28767. or the 'nocommon' attribute.
  28768. Some file formats do not support arbitrary sections so the
  28769. 'section' attribute is not available on all platforms. If you need
  28770. to map the entire contents of a module to a particular section,
  28771. consider using the facilities of the linker instead.
  28772. 'tls_model ("TLS_MODEL")'
  28773. The 'tls_model' attribute sets thread-local storage model (*note
  28774. Thread-Local::) of a particular '__thread' variable, overriding
  28775. '-ftls-model=' command-line switch on a per-variable basis. The
  28776. TLS_MODEL argument should be one of 'global-dynamic',
  28777. 'local-dynamic', 'initial-exec' or 'local-exec'.
  28778. Not all targets support this attribute.
  28779. 'unused'
  28780. This attribute, attached to a variable, means that the variable is
  28781. meant to be possibly unused. GCC does not produce a warning for
  28782. this variable.
  28783. 'used'
  28784. This attribute, attached to a variable with static storage, means
  28785. that the variable must be emitted even if it appears that the
  28786. variable is not referenced.
  28787. When applied to a static data member of a C++ class template, the
  28788. attribute also means that the member is instantiated if the class
  28789. itself is instantiated.
  28790. 'vector_size (BYTES)'
  28791. This attribute specifies the vector size for the type of the
  28792. declared variable, measured in bytes. The type to which it applies
  28793. is known as the "base type". The BYTES argument must be a positive
  28794. power-of-two multiple of the base type size. For example, the
  28795. declaration:
  28796. int foo __attribute__ ((vector_size (16)));
  28797. causes the compiler to set the mode for 'foo', to be 16 bytes,
  28798. divided into 'int' sized units. Assuming a 32-bit 'int', 'foo''s
  28799. type is a vector of four units of four bytes each, and the
  28800. corresponding mode of 'foo' is 'V4SI'. *Note Vector Extensions::,
  28801. for details of manipulating vector variables.
  28802. This attribute is only applicable to integral and floating scalars,
  28803. although arrays, pointers, and function return values are allowed
  28804. in conjunction with this construct.
  28805. Aggregates with this attribute are invalid, even if they are of the
  28806. same size as a corresponding scalar. For example, the declaration:
  28807. struct S { int a; };
  28808. struct S __attribute__ ((vector_size (16))) foo;
  28809. is invalid even if the size of the structure is the same as the
  28810. size of the 'int'.
  28811. 'visibility ("VISIBILITY_TYPE")'
  28812. This attribute affects the linkage of the declaration to which it
  28813. is attached. The 'visibility' attribute is described in *note
  28814. Common Function Attributes::.
  28815. 'weak'
  28816. The 'weak' attribute is described in *note Common Function
  28817. Attributes::.
  28818. 'noinit'
  28819. Any data with the 'noinit' attribute will not be initialized by the
  28820. C runtime startup code, or the program loader. Not initializing
  28821. data in this way can reduce program startup times. This attribute
  28822. is specific to ELF targets and relies on the linker to place such
  28823. data in the right location
  28824. 
  28825. File: gcc.info, Node: ARC Variable Attributes, Next: AVR Variable Attributes, Prev: Common Variable Attributes, Up: Variable Attributes
  28826. 6.34.2 ARC Variable Attributes
  28827. ------------------------------
  28828. 'aux'
  28829. The 'aux' attribute is used to directly access the ARC's auxiliary
  28830. register space from C. The auxilirary register number is given via
  28831. attribute argument.
  28832. 
  28833. File: gcc.info, Node: AVR Variable Attributes, Next: Blackfin Variable Attributes, Prev: ARC Variable Attributes, Up: Variable Attributes
  28834. 6.34.3 AVR Variable Attributes
  28835. ------------------------------
  28836. 'progmem'
  28837. The 'progmem' attribute is used on the AVR to place read-only data
  28838. in the non-volatile program memory (flash). The 'progmem'
  28839. attribute accomplishes this by putting respective variables into a
  28840. section whose name starts with '.progmem'.
  28841. This attribute works similar to the 'section' attribute but adds
  28842. additional checking.
  28843. * Ordinary AVR cores with 32 general purpose registers:
  28844. 'progmem' affects the location of the data but not how this
  28845. data is accessed. In order to read data located with the
  28846. 'progmem' attribute (inline) assembler must be used.
  28847. /* Use custom macros from AVR-LibC (http://nongnu.org/avr-libc/user-manual/) */
  28848. #include <avr/pgmspace.h>
  28849. /* Locate var in flash memory */
  28850. const int var[2] PROGMEM = { 1, 2 };
  28851. int read_var (int i)
  28852. {
  28853. /* Access var[] by accessor macro from avr/pgmspace.h */
  28854. return (int) pgm_read_word (& var[i]);
  28855. }
  28856. AVR is a Harvard architecture processor and data and read-only
  28857. data normally resides in the data memory (RAM).
  28858. See also the *note AVR Named Address Spaces:: section for an
  28859. alternate way to locate and access data in flash memory.
  28860. * AVR cores with flash memory visible in the RAM address range:
  28861. On such devices, there is no need for attribute 'progmem' or
  28862. *note '__flash': AVR Named Address Spaces. qualifier at all.
  28863. Just use standard C / C++. The compiler will generate 'LD*'
  28864. instructions. As flash memory is visible in the RAM address
  28865. range, and the default linker script does _not_ locate
  28866. '.rodata' in RAM, no special features are needed in order not
  28867. to waste RAM for read-only data or to read from flash. You
  28868. might even get slightly better performance by avoiding
  28869. 'progmem' and '__flash'. This applies to devices from
  28870. families 'avrtiny' and 'avrxmega3', see *note AVR Options::
  28871. for an overview.
  28872. * Reduced AVR Tiny cores like ATtiny40:
  28873. The compiler adds '0x4000' to the addresses of objects and
  28874. declarations in 'progmem' and locates the objects in flash
  28875. memory, namely in section '.progmem.data'. The offset is
  28876. needed because the flash memory is visible in the RAM address
  28877. space starting at address '0x4000'.
  28878. Data in 'progmem' can be accessed by means of ordinary C code,
  28879. no special functions or macros are needed.
  28880. /* var is located in flash memory */
  28881. extern const int var[2] __attribute__((progmem));
  28882. int read_var (int i)
  28883. {
  28884. return var[i];
  28885. }
  28886. Please notice that on these devices, there is no need for
  28887. 'progmem' at all.
  28888. 'io'
  28889. 'io (ADDR)'
  28890. Variables with the 'io' attribute are used to address memory-mapped
  28891. peripherals in the io address range. If an address is specified,
  28892. the variable is assigned that address, and the value is interpreted
  28893. as an address in the data address space. Example:
  28894. volatile int porta __attribute__((io (0x22)));
  28895. The address specified in the address in the data address range.
  28896. Otherwise, the variable it is not assigned an address, but the
  28897. compiler will still use in/out instructions where applicable,
  28898. assuming some other module assigns an address in the io address
  28899. range. Example:
  28900. extern volatile int porta __attribute__((io));
  28901. 'io_low'
  28902. 'io_low (ADDR)'
  28903. This is like the 'io' attribute, but additionally it informs the
  28904. compiler that the object lies in the lower half of the I/O area,
  28905. allowing the use of 'cbi', 'sbi', 'sbic' and 'sbis' instructions.
  28906. 'address'
  28907. 'address (ADDR)'
  28908. Variables with the 'address' attribute are used to address
  28909. memory-mapped peripherals that may lie outside the io address
  28910. range.
  28911. volatile int porta __attribute__((address (0x600)));
  28912. 'absdata'
  28913. Variables in static storage and with the 'absdata' attribute can be
  28914. accessed by the 'LDS' and 'STS' instructions which take absolute
  28915. addresses.
  28916. * This attribute is only supported for the reduced AVR Tiny core
  28917. like ATtiny40.
  28918. * You must make sure that respective data is located in the
  28919. address range '0x40'...'0xbf' accessible by 'LDS' and 'STS'.
  28920. One way to achieve this as an appropriate linker description
  28921. file.
  28922. * If the location does not fit the address range of 'LDS' and
  28923. 'STS', there is currently (Binutils 2.26) just an unspecific
  28924. warning like
  28925. 'module.c:(.text+0x1c): warning: internal error: out of
  28926. range error'
  28927. See also the '-mabsdata' *note command-line option: AVR Options.
  28928. 
  28929. File: gcc.info, Node: Blackfin Variable Attributes, Next: H8/300 Variable Attributes, Prev: AVR Variable Attributes, Up: Variable Attributes
  28930. 6.34.4 Blackfin Variable Attributes
  28931. -----------------------------------
  28932. Three attributes are currently defined for the Blackfin.
  28933. 'l1_data'
  28934. 'l1_data_A'
  28935. 'l1_data_B'
  28936. Use these attributes on the Blackfin to place the variable into L1
  28937. Data SRAM. Variables with 'l1_data' attribute are put into the
  28938. specific section named '.l1.data'. Those with 'l1_data_A'
  28939. attribute are put into the specific section named '.l1.data.A'.
  28940. Those with 'l1_data_B' attribute are put into the specific section
  28941. named '.l1.data.B'.
  28942. 'l2'
  28943. Use this attribute on the Blackfin to place the variable into L2
  28944. SRAM. Variables with 'l2' attribute are put into the specific
  28945. section named '.l2.data'.
  28946. 
  28947. File: gcc.info, Node: H8/300 Variable Attributes, Next: IA-64 Variable Attributes, Prev: Blackfin Variable Attributes, Up: Variable Attributes
  28948. 6.34.5 H8/300 Variable Attributes
  28949. ---------------------------------
  28950. These variable attributes are available for H8/300 targets:
  28951. 'eightbit_data'
  28952. Use this attribute on the H8/300, H8/300H, and H8S to indicate that
  28953. the specified variable should be placed into the eight-bit data
  28954. section. The compiler generates more efficient code for certain
  28955. operations on data in the eight-bit data area. Note the eight-bit
  28956. data area is limited to 256 bytes of data.
  28957. You must use GAS and GLD from GNU binutils version 2.7 or later for
  28958. this attribute to work correctly.
  28959. 'tiny_data'
  28960. Use this attribute on the H8/300H and H8S to indicate that the
  28961. specified variable should be placed into the tiny data section.
  28962. The compiler generates more efficient code for loads and stores on
  28963. data in the tiny data section. Note the tiny data area is limited
  28964. to slightly under 32KB of data.
  28965. 
  28966. File: gcc.info, Node: IA-64 Variable Attributes, Next: M32R/D Variable Attributes, Prev: H8/300 Variable Attributes, Up: Variable Attributes
  28967. 6.34.6 IA-64 Variable Attributes
  28968. --------------------------------
  28969. The IA-64 back end supports the following variable attribute:
  28970. 'model (MODEL-NAME)'
  28971. On IA-64, use this attribute to set the addressability of an
  28972. object. At present, the only supported identifier for MODEL-NAME
  28973. is 'small', indicating addressability via "small" (22-bit)
  28974. addresses (so that their addresses can be loaded with the 'addl'
  28975. instruction). Caveat: such addressing is by definition not
  28976. position independent and hence this attribute must not be used for
  28977. objects defined by shared libraries.
  28978. 
  28979. File: gcc.info, Node: M32R/D Variable Attributes, Next: MeP Variable Attributes, Prev: IA-64 Variable Attributes, Up: Variable Attributes
  28980. 6.34.7 M32R/D Variable Attributes
  28981. ---------------------------------
  28982. One attribute is currently defined for the M32R/D.
  28983. 'model (MODEL-NAME)'
  28984. Use this attribute on the M32R/D to set the addressability of an
  28985. object. The identifier MODEL-NAME is one of 'small', 'medium', or
  28986. 'large', representing each of the code models.
  28987. Small model objects live in the lower 16MB of memory (so that their
  28988. addresses can be loaded with the 'ld24' instruction).
  28989. Medium and large model objects may live anywhere in the 32-bit
  28990. address space (the compiler generates 'seth/add3' instructions to
  28991. load their addresses).
  28992. 
  28993. File: gcc.info, Node: MeP Variable Attributes, Next: Microsoft Windows Variable Attributes, Prev: M32R/D Variable Attributes, Up: Variable Attributes
  28994. 6.34.8 MeP Variable Attributes
  28995. ------------------------------
  28996. The MeP target has a number of addressing modes and busses. The 'near'
  28997. space spans the standard memory space's first 16 megabytes (24 bits).
  28998. The 'far' space spans the entire 32-bit memory space. The 'based' space
  28999. is a 128-byte region in the memory space that is addressed relative to
  29000. the '$tp' register. The 'tiny' space is a 65536-byte region relative to
  29001. the '$gp' register. In addition to these memory regions, the MeP target
  29002. has a separate 16-bit control bus which is specified with 'cb'
  29003. attributes.
  29004. 'based'
  29005. Any variable with the 'based' attribute is assigned to the '.based'
  29006. section, and is accessed with relative to the '$tp' register.
  29007. 'tiny'
  29008. Likewise, the 'tiny' attribute assigned variables to the '.tiny'
  29009. section, relative to the '$gp' register.
  29010. 'near'
  29011. Variables with the 'near' attribute are assumed to have addresses
  29012. that fit in a 24-bit addressing mode. This is the default for
  29013. large variables ('-mtiny=4' is the default) but this attribute can
  29014. override '-mtiny=' for small variables, or override '-ml'.
  29015. 'far'
  29016. Variables with the 'far' attribute are addressed using a full
  29017. 32-bit address. Since this covers the entire memory space, this
  29018. allows modules to make no assumptions about where variables might
  29019. be stored.
  29020. 'io'
  29021. 'io (ADDR)'
  29022. Variables with the 'io' attribute are used to address memory-mapped
  29023. peripherals. If an address is specified, the variable is assigned
  29024. that address, else it is not assigned an address (it is assumed
  29025. some other module assigns an address). Example:
  29026. int timer_count __attribute__((io(0x123)));
  29027. 'cb'
  29028. 'cb (ADDR)'
  29029. Variables with the 'cb' attribute are used to access the control
  29030. bus, using special instructions. 'addr' indicates the control bus
  29031. address. Example:
  29032. int cpu_clock __attribute__((cb(0x123)));
  29033. 
  29034. File: gcc.info, Node: Microsoft Windows Variable Attributes, Next: MSP430 Variable Attributes, Prev: MeP Variable Attributes, Up: Variable Attributes
  29035. 6.34.9 Microsoft Windows Variable Attributes
  29036. --------------------------------------------
  29037. You can use these attributes on Microsoft Windows targets. *note x86
  29038. Variable Attributes:: for additional Windows compatibility attributes
  29039. available on all x86 targets.
  29040. 'dllimport'
  29041. 'dllexport'
  29042. The 'dllimport' and 'dllexport' attributes are described in *note
  29043. Microsoft Windows Function Attributes::.
  29044. 'selectany'
  29045. The 'selectany' attribute causes an initialized global variable to
  29046. have link-once semantics. When multiple definitions of the
  29047. variable are encountered by the linker, the first is selected and
  29048. the remainder are discarded. Following usage by the Microsoft
  29049. compiler, the linker is told _not_ to warn about size or content
  29050. differences of the multiple definitions.
  29051. Although the primary usage of this attribute is for POD types, the
  29052. attribute can also be applied to global C++ objects that are
  29053. initialized by a constructor. In this case, the static
  29054. initialization and destruction code for the object is emitted in
  29055. each translation defining the object, but the calls to the
  29056. constructor and destructor are protected by a link-once guard
  29057. variable.
  29058. The 'selectany' attribute is only available on Microsoft Windows
  29059. targets. You can use '__declspec (selectany)' as a synonym for
  29060. '__attribute__ ((selectany))' for compatibility with other
  29061. compilers.
  29062. 'shared'
  29063. On Microsoft Windows, in addition to putting variable definitions
  29064. in a named section, the section can also be shared among all
  29065. running copies of an executable or DLL. For example, this small
  29066. program defines shared data by putting it in a named section
  29067. 'shared' and marking the section shareable:
  29068. int foo __attribute__((section ("shared"), shared)) = 0;
  29069. int
  29070. main()
  29071. {
  29072. /* Read and write foo. All running
  29073. copies see the same value. */
  29074. return 0;
  29075. }
  29076. You may only use the 'shared' attribute along with 'section'
  29077. attribute with a fully-initialized global definition because of the
  29078. way linkers work. See 'section' attribute for more information.
  29079. The 'shared' attribute is only available on Microsoft Windows.
  29080. 
  29081. File: gcc.info, Node: MSP430 Variable Attributes, Next: Nvidia PTX Variable Attributes, Prev: Microsoft Windows Variable Attributes, Up: Variable Attributes
  29082. 6.34.10 MSP430 Variable Attributes
  29083. ----------------------------------
  29084. 'noinit'
  29085. Any data with the 'noinit' attribute will not be initialised by the
  29086. C runtime startup code, or the program loader. Not initialising
  29087. data in this way can reduce program startup times.
  29088. 'persistent'
  29089. Any variable with the 'persistent' attribute will not be
  29090. initialised by the C runtime startup code. Instead its value will
  29091. be set once, when the application is loaded, and then never
  29092. initialised again, even if the processor is reset or the program
  29093. restarts. Persistent data is intended to be placed into FLASH RAM,
  29094. where its value will be retained across resets. The linker script
  29095. being used to create the application should ensure that persistent
  29096. data is correctly placed.
  29097. 'upper'
  29098. 'either'
  29099. These attributes are the same as the MSP430 function attributes of
  29100. the same name (*note MSP430 Function Attributes::).
  29101. 'lower'
  29102. This option behaves mostly the same as the MSP430 function
  29103. attribute of the same name (*note MSP430 Function Attributes::),
  29104. but it has some additional functionality.
  29105. If '-mdata-region='{'upper,either,none'} has been passed, or the
  29106. 'section' attribute is applied to a variable, the compiler will
  29107. generate 430X instructions to handle it. This is because the
  29108. compiler has to assume that the variable could get placed in the
  29109. upper memory region (above address 0xFFFF). Marking the variable
  29110. with the 'lower' attribute informs the compiler that the variable
  29111. will be placed in lower memory so it is safe to use 430
  29112. instructions to handle it.
  29113. In the case of the 'section' attribute, the section name given will
  29114. be used, and the '.lower' prefix will not be added.
  29115. 
  29116. File: gcc.info, Node: Nvidia PTX Variable Attributes, Next: PowerPC Variable Attributes, Prev: MSP430 Variable Attributes, Up: Variable Attributes
  29117. 6.34.11 Nvidia PTX Variable Attributes
  29118. --------------------------------------
  29119. These variable attributes are supported by the Nvidia PTX back end:
  29120. 'shared'
  29121. Use this attribute to place a variable in the '.shared' memory
  29122. space. This memory space is private to each cooperative thread
  29123. array; only threads within one thread block refer to the same
  29124. instance of the variable. The runtime does not initialize
  29125. variables in this memory space.
  29126. 
  29127. File: gcc.info, Node: PowerPC Variable Attributes, Next: RL78 Variable Attributes, Prev: Nvidia PTX Variable Attributes, Up: Variable Attributes
  29128. 6.34.12 PowerPC Variable Attributes
  29129. -----------------------------------
  29130. Three attributes currently are defined for PowerPC configurations:
  29131. 'altivec', 'ms_struct' and 'gcc_struct'.
  29132. For full documentation of the struct attributes please see the
  29133. documentation in *note x86 Variable Attributes::.
  29134. For documentation of 'altivec' attribute please see the documentation
  29135. in *note PowerPC Type Attributes::.
  29136. 
  29137. File: gcc.info, Node: RL78 Variable Attributes, Next: V850 Variable Attributes, Prev: PowerPC Variable Attributes, Up: Variable Attributes
  29138. 6.34.13 RL78 Variable Attributes
  29139. --------------------------------
  29140. The RL78 back end supports the 'saddr' variable attribute. This
  29141. specifies placement of the corresponding variable in the SADDR area,
  29142. which can be accessed more efficiently than the default memory region.
  29143. 
  29144. File: gcc.info, Node: V850 Variable Attributes, Next: x86 Variable Attributes, Prev: RL78 Variable Attributes, Up: Variable Attributes
  29145. 6.34.14 V850 Variable Attributes
  29146. --------------------------------
  29147. These variable attributes are supported by the V850 back end:
  29148. 'sda'
  29149. Use this attribute to explicitly place a variable in the small data
  29150. area, which can hold up to 64 kilobytes.
  29151. 'tda'
  29152. Use this attribute to explicitly place a variable in the tiny data
  29153. area, which can hold up to 256 bytes in total.
  29154. 'zda'
  29155. Use this attribute to explicitly place a variable in the first 32
  29156. kilobytes of memory.
  29157. 
  29158. File: gcc.info, Node: x86 Variable Attributes, Next: Xstormy16 Variable Attributes, Prev: V850 Variable Attributes, Up: Variable Attributes
  29159. 6.34.15 x86 Variable Attributes
  29160. -------------------------------
  29161. Two attributes are currently defined for x86 configurations: 'ms_struct'
  29162. and 'gcc_struct'.
  29163. 'ms_struct'
  29164. 'gcc_struct'
  29165. If 'packed' is used on a structure, or if bit-fields are used, it
  29166. may be that the Microsoft ABI lays out the structure differently
  29167. than the way GCC normally does. Particularly when moving packed
  29168. data between functions compiled with GCC and the native Microsoft
  29169. compiler (either via function call or as data in a file), it may be
  29170. necessary to access either format.
  29171. The 'ms_struct' and 'gcc_struct' attributes correspond to the
  29172. '-mms-bitfields' and '-mno-ms-bitfields' command-line options,
  29173. respectively; see *note x86 Options::, for details of how structure
  29174. layout is affected. *Note x86 Type Attributes::, for information
  29175. about the corresponding attributes on types.
  29176. 
  29177. File: gcc.info, Node: Xstormy16 Variable Attributes, Prev: x86 Variable Attributes, Up: Variable Attributes
  29178. 6.34.16 Xstormy16 Variable Attributes
  29179. -------------------------------------
  29180. One attribute is currently defined for xstormy16 configurations:
  29181. 'below100'.
  29182. 'below100'
  29183. If a variable has the 'below100' attribute ('BELOW100' is allowed
  29184. also), GCC places the variable in the first 0x100 bytes of memory
  29185. and use special opcodes to access it. Such variables are placed in
  29186. either the '.bss_below100' section or the '.data_below100' section.
  29187. 
  29188. File: gcc.info, Node: Type Attributes, Next: Label Attributes, Prev: Variable Attributes, Up: C Extensions
  29189. 6.35 Specifying Attributes of Types
  29190. ===================================
  29191. The keyword '__attribute__' allows you to specify various special
  29192. properties of types. Some type attributes apply only to structure and
  29193. union types, and in C++, also class types, while others can apply to any
  29194. type defined via a 'typedef' declaration. Unless otherwise specified,
  29195. the same restrictions and effects apply to attributes regardless of
  29196. whether a type is a trivial structure or a C++ class with user-defined
  29197. constructors, destructors, or a copy assignment.
  29198. Other attributes are defined for functions (*note Function
  29199. Attributes::), labels (*note Label Attributes::), enumerators (*note
  29200. Enumerator Attributes::), statements (*note Statement Attributes::), and
  29201. for variables (*note Variable Attributes::).
  29202. The '__attribute__' keyword is followed by an attribute specification
  29203. enclosed in double parentheses.
  29204. You may specify type attributes in an enum, struct or union type
  29205. declaration or definition by placing them immediately after the
  29206. 'struct', 'union' or 'enum' keyword. You can also place them just past
  29207. the closing curly brace of the definition, but this is less preferred
  29208. because logically the type should be fully defined at the closing brace.
  29209. You can also include type attributes in a 'typedef' declaration. *Note
  29210. Attribute Syntax::, for details of the exact syntax for using
  29211. attributes.
  29212. * Menu:
  29213. * Common Type Attributes::
  29214. * ARC Type Attributes::
  29215. * ARM Type Attributes::
  29216. * MeP Type Attributes::
  29217. * PowerPC Type Attributes::
  29218. * x86 Type Attributes::
  29219. 
  29220. File: gcc.info, Node: Common Type Attributes, Next: ARC Type Attributes, Up: Type Attributes
  29221. 6.35.1 Common Type Attributes
  29222. -----------------------------
  29223. The following type attributes are supported on most targets.
  29224. 'aligned'
  29225. 'aligned (ALIGNMENT)'
  29226. The 'aligned' attribute specifies a minimum alignment (in bytes)
  29227. for variables of the specified type. When specified, ALIGNMENT
  29228. must be a power of 2. Specifying no ALIGNMENT argument implies the
  29229. maximum alignment for the target, which is often, but by no means
  29230. always, 8 or 16 bytes. For example, the declarations:
  29231. struct __attribute__ ((aligned (8))) S { short f[3]; };
  29232. typedef int more_aligned_int __attribute__ ((aligned (8)));
  29233. force the compiler to ensure (as far as it can) that each variable
  29234. whose type is 'struct S' or 'more_aligned_int' is allocated and
  29235. aligned _at least_ on a 8-byte boundary. On a SPARC, having all
  29236. variables of type 'struct S' aligned to 8-byte boundaries allows
  29237. the compiler to use the 'ldd' and 'std' (doubleword load and store)
  29238. instructions when copying one variable of type 'struct S' to
  29239. another, thus improving run-time efficiency.
  29240. Note that the alignment of any given 'struct' or 'union' type is
  29241. required by the ISO C standard to be at least a perfect multiple of
  29242. the lowest common multiple of the alignments of all of the members
  29243. of the 'struct' or 'union' in question. This means that you _can_
  29244. effectively adjust the alignment of a 'struct' or 'union' type by
  29245. attaching an 'aligned' attribute to any one of the members of such
  29246. a type, but the notation illustrated in the example above is a more
  29247. obvious, intuitive, and readable way to request the compiler to
  29248. adjust the alignment of an entire 'struct' or 'union' type.
  29249. As in the preceding example, you can explicitly specify the
  29250. alignment (in bytes) that you wish the compiler to use for a given
  29251. 'struct' or 'union' type. Alternatively, you can leave out the
  29252. alignment factor and just ask the compiler to align a type to the
  29253. maximum useful alignment for the target machine you are compiling
  29254. for. For example, you could write:
  29255. struct __attribute__ ((aligned)) S { short f[3]; };
  29256. Whenever you leave out the alignment factor in an 'aligned'
  29257. attribute specification, the compiler automatically sets the
  29258. alignment for the type to the largest alignment that is ever used
  29259. for any data type on the target machine you are compiling for.
  29260. Doing this can often make copy operations more efficient, because
  29261. the compiler can use whatever instructions copy the biggest chunks
  29262. of memory when performing copies to or from the variables that have
  29263. types that you have aligned this way.
  29264. In the example above, if the size of each 'short' is 2 bytes, then
  29265. the size of the entire 'struct S' type is 6 bytes. The smallest
  29266. power of two that is greater than or equal to that is 8, so the
  29267. compiler sets the alignment for the entire 'struct S' type to 8
  29268. bytes.
  29269. Note that although you can ask the compiler to select a
  29270. time-efficient alignment for a given type and then declare only
  29271. individual stand-alone objects of that type, the compiler's ability
  29272. to select a time-efficient alignment is primarily useful only when
  29273. you plan to create arrays of variables having the relevant
  29274. (efficiently aligned) type. If you declare or use arrays of
  29275. variables of an efficiently-aligned type, then it is likely that
  29276. your program also does pointer arithmetic (or subscripting, which
  29277. amounts to the same thing) on pointers to the relevant type, and
  29278. the code that the compiler generates for these pointer arithmetic
  29279. operations is often more efficient for efficiently-aligned types
  29280. than for other types.
  29281. Note that the effectiveness of 'aligned' attributes may be limited
  29282. by inherent limitations in your linker. On many systems, the
  29283. linker is only able to arrange for variables to be aligned up to a
  29284. certain maximum alignment. (For some linkers, the maximum
  29285. supported alignment may be very very small.) If your linker is
  29286. only able to align variables up to a maximum of 8-byte alignment,
  29287. then specifying 'aligned (16)' in an '__attribute__' still only
  29288. provides you with 8-byte alignment. See your linker documentation
  29289. for further information.
  29290. When used on a struct, or struct member, the 'aligned' attribute
  29291. can only increase the alignment; in order to decrease it, the
  29292. 'packed' attribute must be specified as well. When used as part of
  29293. a typedef, the 'aligned' attribute can both increase and decrease
  29294. alignment, and specifying the 'packed' attribute generates a
  29295. warning.
  29296. 'warn_if_not_aligned (ALIGNMENT)'
  29297. This attribute specifies a threshold for the structure field,
  29298. measured in bytes. If the structure field is aligned below the
  29299. threshold, a warning will be issued. For example, the declaration:
  29300. typedef unsigned long long __u64
  29301. __attribute__((aligned (4), warn_if_not_aligned (8)));
  29302. struct foo
  29303. {
  29304. int i1;
  29305. int i2;
  29306. __u64 x;
  29307. };
  29308. causes the compiler to issue an warning on 'struct foo', like
  29309. 'warning: alignment 4 of 'struct foo' is less than 8'. It is used
  29310. to define 'struct foo' in such a way that 'struct foo' has the same
  29311. layout and the structure field 'x' has the same alignment when
  29312. '__u64' is aligned at either 4 or 8 bytes. Align 'struct foo' to 8
  29313. bytes:
  29314. struct __attribute__ ((aligned (8))) foo
  29315. {
  29316. int i1;
  29317. int i2;
  29318. __u64 x;
  29319. };
  29320. silences the warning. The compiler also issues a warning, like
  29321. 'warning: 'x' offset 12 in 'struct foo' isn't aligned to 8', when
  29322. the structure field has the misaligned offset:
  29323. struct __attribute__ ((aligned (8))) foo
  29324. {
  29325. int i1;
  29326. int i2;
  29327. int i3;
  29328. __u64 x;
  29329. };
  29330. This warning can be disabled by '-Wno-if-not-aligned'.
  29331. 'alloc_size (POSITION)'
  29332. 'alloc_size (POSITION-1, POSITION-2)'
  29333. The 'alloc_size' type attribute may be applied to the definition of
  29334. a type of a function that returns a pointer and takes at least one
  29335. argument of an integer type. It indicates that the returned
  29336. pointer points to an object whose size is given by the function
  29337. argument at POSITION-1, or by the product of the arguments at
  29338. POSITION-1 and POSITION-2. Meaningful sizes are positive values
  29339. less than 'PTRDIFF_MAX'. Other sizes are disagnosed when detected.
  29340. GCC uses this information to improve the results of
  29341. '__builtin_object_size'.
  29342. For instance, the following declarations
  29343. typedef __attribute__ ((alloc_size (1, 2))) void*
  29344. calloc_type (size_t, size_t);
  29345. typedef __attribute__ ((alloc_size (1))) void*
  29346. malloc_type (size_t);
  29347. specify that 'calloc_type' is a type of a function that, like the
  29348. standard C function 'calloc', returns an object whose size is given
  29349. by the product of arguments 1 and 2, and that 'malloc_type', like
  29350. the standard C function 'malloc', returns an object whose size is
  29351. given by argument 1 to the function.
  29352. 'copy'
  29353. 'copy (EXPRESSION)'
  29354. The 'copy' attribute applies the set of attributes with which the
  29355. type of the EXPRESSION has been declared to the declaration of the
  29356. type to which the attribute is applied. The attribute is designed
  29357. for libraries that define aliases that are expected to specify the
  29358. same set of attributes as the aliased symbols. The 'copy'
  29359. attribute can be used with types, variables, or functions.
  29360. However, the kind of symbol to which the attribute is applied
  29361. (either varible or function) must match the kind of symbol to which
  29362. the argument refers. The 'copy' attribute copies only syntactic
  29363. and semantic attributes but not attributes that affect a symbol's
  29364. linkage or visibility such as 'alias', 'visibility', or 'weak'.
  29365. The 'deprecated' attribute is also not copied. *Note Common
  29366. Function Attributes::. *Note Common Variable Attributes::.
  29367. For example, suppose 'struct A' below is defined in some third
  29368. party library header to have the alignment requirement 'N' and to
  29369. force a warning whenever a variable of the type is not so aligned
  29370. due to attribute 'packed'. Specifying the 'copy' attribute on the
  29371. definition on the unrelated 'struct B' has the effect of copying
  29372. all relevant attributes from the type referenced by the pointer
  29373. expression to 'struct B'.
  29374. struct __attribute__ ((aligned (N), warn_if_not_aligned (N)))
  29375. A { /* ... */ };
  29376. struct __attribute__ ((copy ( (struct A *)0)) B { /* ... */ };
  29377. 'deprecated'
  29378. 'deprecated (MSG)'
  29379. The 'deprecated' attribute results in a warning if the type is used
  29380. anywhere in the source file. This is useful when identifying types
  29381. that are expected to be removed in a future version of a program.
  29382. If possible, the warning also includes the location of the
  29383. declaration of the deprecated type, to enable users to easily find
  29384. further information about why the type is deprecated, or what they
  29385. should do instead. Note that the warnings only occur for uses and
  29386. then only if the type is being applied to an identifier that itself
  29387. is not being declared as deprecated.
  29388. typedef int T1 __attribute__ ((deprecated));
  29389. T1 x;
  29390. typedef T1 T2;
  29391. T2 y;
  29392. typedef T1 T3 __attribute__ ((deprecated));
  29393. T3 z __attribute__ ((deprecated));
  29394. results in a warning on line 2 and 3 but not lines 4, 5, or 6. No
  29395. warning is issued for line 4 because T2 is not explicitly
  29396. deprecated. Line 5 has no warning because T3 is explicitly
  29397. deprecated. Similarly for line 6. The optional MSG argument,
  29398. which must be a string, is printed in the warning if present.
  29399. Control characters in the string will be replaced with escape
  29400. sequences, and if the '-fmessage-length' option is set to 0 (its
  29401. default value) then any newline characters will be ignored.
  29402. The 'deprecated' attribute can also be used for functions and
  29403. variables (*note Function Attributes::, *note Variable
  29404. Attributes::.)
  29405. The message attached to the attribute is affected by the setting of
  29406. the '-fmessage-length' option.
  29407. 'designated_init'
  29408. This attribute may only be applied to structure types. It
  29409. indicates that any initialization of an object of this type must
  29410. use designated initializers rather than positional initializers.
  29411. The intent of this attribute is to allow the programmer to indicate
  29412. that a structure's layout may change, and that therefore relying on
  29413. positional initialization will result in future breakage.
  29414. GCC emits warnings based on this attribute by default; use
  29415. '-Wno-designated-init' to suppress them.
  29416. 'may_alias'
  29417. Accesses through pointers to types with this attribute are not
  29418. subject to type-based alias analysis, but are instead assumed to be
  29419. able to alias any other type of objects. In the context of section
  29420. 6.5 paragraph 7 of the C99 standard, an lvalue expression
  29421. dereferencing such a pointer is treated like having a character
  29422. type. See '-fstrict-aliasing' for more information on aliasing
  29423. issues. This extension exists to support some vector APIs, in
  29424. which pointers to one vector type are permitted to alias pointers
  29425. to a different vector type.
  29426. Note that an object of a type with this attribute does not have any
  29427. special semantics.
  29428. Example of use:
  29429. typedef short __attribute__ ((__may_alias__)) short_a;
  29430. int
  29431. main (void)
  29432. {
  29433. int a = 0x12345678;
  29434. short_a *b = (short_a *) &a;
  29435. b[1] = 0;
  29436. if (a == 0x12345678)
  29437. abort();
  29438. exit(0);
  29439. }
  29440. If you replaced 'short_a' with 'short' in the variable declaration,
  29441. the above program would abort when compiled with
  29442. '-fstrict-aliasing', which is on by default at '-O2' or above.
  29443. 'mode (MODE)'
  29444. This attribute specifies the data type for the
  29445. declaration--whichever type corresponds to the mode MODE. This in
  29446. effect lets you request an integer or floating-point type according
  29447. to its width.
  29448. *Note (gccint)Machine Modes::, for a list of the possible keywords
  29449. for MODE. You may also specify a mode of 'byte' or '__byte__' to
  29450. indicate the mode corresponding to a one-byte integer, 'word' or
  29451. '__word__' for the mode of a one-word integer, and 'pointer' or
  29452. '__pointer__' for the mode used to represent pointers.
  29453. 'packed'
  29454. This attribute, attached to a 'struct', 'union', or C++ 'class'
  29455. type definition, specifies that each of its members (other than
  29456. zero-width bit-fields) is placed to minimize the memory required.
  29457. This is equivalent to specifying the 'packed' attribute on each of
  29458. the members.
  29459. When attached to an 'enum' definition, the 'packed' attribute
  29460. indicates that the smallest integral type should be used.
  29461. Specifying the '-fshort-enums' flag on the command line is
  29462. equivalent to specifying the 'packed' attribute on all 'enum'
  29463. definitions.
  29464. In the following example 'struct my_packed_struct''s members are
  29465. packed closely together, but the internal layout of its 's' member
  29466. is not packed--to do that, 'struct my_unpacked_struct' needs to be
  29467. packed too.
  29468. struct my_unpacked_struct
  29469. {
  29470. char c;
  29471. int i;
  29472. };
  29473. struct __attribute__ ((__packed__)) my_packed_struct
  29474. {
  29475. char c;
  29476. int i;
  29477. struct my_unpacked_struct s;
  29478. };
  29479. You may only specify the 'packed' attribute on the definition of an
  29480. 'enum', 'struct', 'union', or 'class', not on a 'typedef' that does
  29481. not also define the enumerated type, structure, union, or class.
  29482. 'scalar_storage_order ("ENDIANNESS")'
  29483. When attached to a 'union' or a 'struct', this attribute sets the
  29484. storage order, aka endianness, of the scalar fields of the type, as
  29485. well as the array fields whose component is scalar. The supported
  29486. endiannesses are 'big-endian' and 'little-endian'. The attribute
  29487. has no effects on fields which are themselves a 'union', a 'struct'
  29488. or an array whose component is a 'union' or a 'struct', and it is
  29489. possible for these fields to have a different scalar storage order
  29490. than the enclosing type.
  29491. This attribute is supported only for targets that use a uniform
  29492. default scalar storage order (fortunately, most of them), i.e.
  29493. targets that store the scalars either all in big-endian or all in
  29494. little-endian.
  29495. Additional restrictions are enforced for types with the reverse
  29496. scalar storage order with regard to the scalar storage order of the
  29497. target:
  29498. * Taking the address of a scalar field of a 'union' or a
  29499. 'struct' with reverse scalar storage order is not permitted
  29500. and yields an error.
  29501. * Taking the address of an array field, whose component is
  29502. scalar, of a 'union' or a 'struct' with reverse scalar storage
  29503. order is permitted but yields a warning, unless
  29504. '-Wno-scalar-storage-order' is specified.
  29505. * Taking the address of a 'union' or a 'struct' with reverse
  29506. scalar storage order is permitted.
  29507. These restrictions exist because the storage order attribute is
  29508. lost when the address of a scalar or the address of an array with
  29509. scalar component is taken, so storing indirectly through this
  29510. address generally does not work. The second case is nevertheless
  29511. allowed to be able to perform a block copy from or to the array.
  29512. Moreover, the use of type punning or aliasing to toggle the storage
  29513. order is not supported; that is to say, a given scalar object
  29514. cannot be accessed through distinct types that assign a different
  29515. storage order to it.
  29516. 'transparent_union'
  29517. This attribute, attached to a 'union' type definition, indicates
  29518. that any function parameter having that union type causes calls to
  29519. that function to be treated in a special way.
  29520. First, the argument corresponding to a transparent union type can
  29521. be of any type in the union; no cast is required. Also, if the
  29522. union contains a pointer type, the corresponding argument can be a
  29523. null pointer constant or a void pointer expression; and if the
  29524. union contains a void pointer type, the corresponding argument can
  29525. be any pointer expression. If the union member type is a pointer,
  29526. qualifiers like 'const' on the referenced type must be respected,
  29527. just as with normal pointer conversions.
  29528. Second, the argument is passed to the function using the calling
  29529. conventions of the first member of the transparent union, not the
  29530. calling conventions of the union itself. All members of the union
  29531. must have the same machine representation; this is necessary for
  29532. this argument passing to work properly.
  29533. Transparent unions are designed for library functions that have
  29534. multiple interfaces for compatibility reasons. For example,
  29535. suppose the 'wait' function must accept either a value of type 'int
  29536. *' to comply with POSIX, or a value of type 'union wait *' to
  29537. comply with the 4.1BSD interface. If 'wait''s parameter were 'void
  29538. *', 'wait' would accept both kinds of arguments, but it would also
  29539. accept any other pointer type and this would make argument type
  29540. checking less useful. Instead, '<sys/wait.h>' might define the
  29541. interface as follows:
  29542. typedef union __attribute__ ((__transparent_union__))
  29543. {
  29544. int *__ip;
  29545. union wait *__up;
  29546. } wait_status_ptr_t;
  29547. pid_t wait (wait_status_ptr_t);
  29548. This interface allows either 'int *' or 'union wait *' arguments to
  29549. be passed, using the 'int *' calling convention. The program can
  29550. call 'wait' with arguments of either type:
  29551. int w1 () { int w; return wait (&w); }
  29552. int w2 () { union wait w; return wait (&w); }
  29553. With this interface, 'wait''s implementation might look like this:
  29554. pid_t wait (wait_status_ptr_t p)
  29555. {
  29556. return waitpid (-1, p.__ip, 0);
  29557. }
  29558. 'unused'
  29559. When attached to a type (including a 'union' or a 'struct'), this
  29560. attribute means that variables of that type are meant to appear
  29561. possibly unused. GCC does not produce a warning for any variables
  29562. of that type, even if the variable appears to do nothing. This is
  29563. often the case with lock or thread classes, which are usually
  29564. defined and then not referenced, but contain constructors and
  29565. destructors that have nontrivial bookkeeping functions.
  29566. 'vector_size (BYTES)'
  29567. This attribute specifies the vector size for the type, measured in
  29568. bytes. The type to which it applies is known as the "base type".
  29569. The BYTES argument must be a positive power-of-two multiple of the
  29570. base type size. For example, the following declarations:
  29571. typedef __attribute__ ((vector_size (32))) int int_vec32_t ;
  29572. typedef __attribute__ ((vector_size (32))) int* int_vec32_ptr_t;
  29573. typedef __attribute__ ((vector_size (32))) int int_vec32_arr3_t[3];
  29574. define 'int_vec32_t' to be a 32-byte vector type composed of 'int'
  29575. sized units. With 'int' having a size of 4 bytes, the type defines
  29576. a vector of eight units, four bytes each. The mode of variables of
  29577. type 'int_vec32_t' is 'V8SI'. 'int_vec32_ptr_t' is then defined to
  29578. be a pointer to such a vector type, and 'int_vec32_arr3_t' to be an
  29579. array of three such vectors. *Note Vector Extensions::, for
  29580. details of manipulating objects of vector types.
  29581. This attribute is only applicable to integral and floating scalar
  29582. types. In function declarations the attribute applies to the
  29583. function return type.
  29584. For example, the following:
  29585. __attribute__ ((vector_size (16))) float get_flt_vec16 (void);
  29586. declares 'get_flt_vec16' to be a function returning a 16-byte
  29587. vector with the base type 'float'.
  29588. 'visibility'
  29589. In C++, attribute visibility (*note Function Attributes::) can also
  29590. be applied to class, struct, union and enum types. Unlike other
  29591. type attributes, the attribute must appear between the initial
  29592. keyword and the name of the type; it cannot appear after the body
  29593. of the type.
  29594. Note that the type visibility is applied to vague linkage entities
  29595. associated with the class (vtable, typeinfo node, etc.). In
  29596. particular, if a class is thrown as an exception in one shared
  29597. object and caught in another, the class must have default
  29598. visibility. Otherwise the two shared objects are unable to use the
  29599. same typeinfo node and exception handling will break.
  29600. To specify multiple attributes, separate them by commas within the
  29601. double parentheses: for example, '__attribute__ ((aligned (16),
  29602. packed))'.
  29603. 
  29604. File: gcc.info, Node: ARC Type Attributes, Next: ARM Type Attributes, Prev: Common Type Attributes, Up: Type Attributes
  29605. 6.35.2 ARC Type Attributes
  29606. --------------------------
  29607. Declaring objects with 'uncached' allows you to exclude data-cache
  29608. participation in load and store operations on those objects without
  29609. involving the additional semantic implications of 'volatile'. The '.di'
  29610. instruction suffix is used for all loads and stores of data declared
  29611. 'uncached'.
  29612. 
  29613. File: gcc.info, Node: ARM Type Attributes, Next: MeP Type Attributes, Prev: ARC Type Attributes, Up: Type Attributes
  29614. 6.35.3 ARM Type Attributes
  29615. --------------------------
  29616. On those ARM targets that support 'dllimport' (such as Symbian OS), you
  29617. can use the 'notshared' attribute to indicate that the virtual table and
  29618. other similar data for a class should not be exported from a DLL. For
  29619. example:
  29620. class __declspec(notshared) C {
  29621. public:
  29622. __declspec(dllimport) C();
  29623. virtual void f();
  29624. }
  29625. __declspec(dllexport)
  29626. C::C() {}
  29627. In this code, 'C::C' is exported from the current DLL, but the virtual
  29628. table for 'C' is not exported. (You can use '__attribute__' instead of
  29629. '__declspec' if you prefer, but most Symbian OS code uses '__declspec'.)
  29630. 
  29631. File: gcc.info, Node: MeP Type Attributes, Next: PowerPC Type Attributes, Prev: ARM Type Attributes, Up: Type Attributes
  29632. 6.35.4 MeP Type Attributes
  29633. --------------------------
  29634. Many of the MeP variable attributes may be applied to types as well.
  29635. Specifically, the 'based', 'tiny', 'near', and 'far' attributes may be
  29636. applied to either. The 'io' and 'cb' attributes may not be applied to
  29637. types.
  29638. 
  29639. File: gcc.info, Node: PowerPC Type Attributes, Next: x86 Type Attributes, Prev: MeP Type Attributes, Up: Type Attributes
  29640. 6.35.5 PowerPC Type Attributes
  29641. ------------------------------
  29642. Three attributes currently are defined for PowerPC configurations:
  29643. 'altivec', 'ms_struct' and 'gcc_struct'.
  29644. For full documentation of the 'ms_struct' and 'gcc_struct' attributes
  29645. please see the documentation in *note x86 Type Attributes::.
  29646. The 'altivec' attribute allows one to declare AltiVec vector data types
  29647. supported by the AltiVec Programming Interface Manual. The attribute
  29648. requires an argument to specify one of three vector types: 'vector__',
  29649. 'pixel__' (always followed by unsigned short), and 'bool__' (always
  29650. followed by unsigned).
  29651. __attribute__((altivec(vector__)))
  29652. __attribute__((altivec(pixel__))) unsigned short
  29653. __attribute__((altivec(bool__))) unsigned
  29654. These attributes mainly are intended to support the '__vector',
  29655. '__pixel', and '__bool' AltiVec keywords.
  29656. 
  29657. File: gcc.info, Node: x86 Type Attributes, Prev: PowerPC Type Attributes, Up: Type Attributes
  29658. 6.35.6 x86 Type Attributes
  29659. --------------------------
  29660. Two attributes are currently defined for x86 configurations: 'ms_struct'
  29661. and 'gcc_struct'.
  29662. 'ms_struct'
  29663. 'gcc_struct'
  29664. If 'packed' is used on a structure, or if bit-fields are used it
  29665. may be that the Microsoft ABI packs them differently than GCC
  29666. normally packs them. Particularly when moving packed data between
  29667. functions compiled with GCC and the native Microsoft compiler
  29668. (either via function call or as data in a file), it may be
  29669. necessary to access either format.
  29670. The 'ms_struct' and 'gcc_struct' attributes correspond to the
  29671. '-mms-bitfields' and '-mno-ms-bitfields' command-line options,
  29672. respectively; see *note x86 Options::, for details of how structure
  29673. layout is affected. *Note x86 Variable Attributes::, for
  29674. information about the corresponding attributes on variables.
  29675. 
  29676. File: gcc.info, Node: Label Attributes, Next: Enumerator Attributes, Prev: Type Attributes, Up: C Extensions
  29677. 6.36 Label Attributes
  29678. =====================
  29679. GCC allows attributes to be set on C labels. *Note Attribute Syntax::,
  29680. for details of the exact syntax for using attributes. Other attributes
  29681. are available for functions (*note Function Attributes::), variables
  29682. (*note Variable Attributes::), enumerators (*note Enumerator
  29683. Attributes::), statements (*note Statement Attributes::), and for types
  29684. (*note Type Attributes::).
  29685. This example uses the 'cold' label attribute to indicate the
  29686. 'ErrorHandling' branch is unlikely to be taken and that the
  29687. 'ErrorHandling' label is unused:
  29688. asm goto ("some asm" : : : : NoError);
  29689. /* This branch (the fall-through from the asm) is less commonly used */
  29690. ErrorHandling:
  29691. __attribute__((cold, unused)); /* Semi-colon is required here */
  29692. printf("error\n");
  29693. return 0;
  29694. NoError:
  29695. printf("no error\n");
  29696. return 1;
  29697. 'unused'
  29698. This feature is intended for program-generated code that may
  29699. contain unused labels, but which is compiled with '-Wall'. It is
  29700. not normally appropriate to use in it human-written code, though it
  29701. could be useful in cases where the code that jumps to the label is
  29702. contained within an '#ifdef' conditional.
  29703. 'hot'
  29704. The 'hot' attribute on a label is used to inform the compiler that
  29705. the path following the label is more likely than paths that are not
  29706. so annotated. This attribute is used in cases where
  29707. '__builtin_expect' cannot be used, for instance with computed goto
  29708. or 'asm goto'.
  29709. 'cold'
  29710. The 'cold' attribute on labels is used to inform the compiler that
  29711. the path following the label is unlikely to be executed. This
  29712. attribute is used in cases where '__builtin_expect' cannot be used,
  29713. for instance with computed goto or 'asm goto'.
  29714. 
  29715. File: gcc.info, Node: Enumerator Attributes, Next: Statement Attributes, Prev: Label Attributes, Up: C Extensions
  29716. 6.37 Enumerator Attributes
  29717. ==========================
  29718. GCC allows attributes to be set on enumerators. *Note Attribute
  29719. Syntax::, for details of the exact syntax for using attributes. Other
  29720. attributes are available for functions (*note Function Attributes::),
  29721. variables (*note Variable Attributes::), labels (*note Label
  29722. Attributes::), statements (*note Statement Attributes::), and for types
  29723. (*note Type Attributes::).
  29724. This example uses the 'deprecated' enumerator attribute to indicate the
  29725. 'oldval' enumerator is deprecated:
  29726. enum E {
  29727. oldval __attribute__((deprecated)),
  29728. newval
  29729. };
  29730. int
  29731. fn (void)
  29732. {
  29733. return oldval;
  29734. }
  29735. 'deprecated'
  29736. The 'deprecated' attribute results in a warning if the enumerator
  29737. is used anywhere in the source file. This is useful when
  29738. identifying enumerators that are expected to be removed in a future
  29739. version of a program. The warning also includes the location of
  29740. the declaration of the deprecated enumerator, to enable users to
  29741. easily find further information about why the enumerator is
  29742. deprecated, or what they should do instead. Note that the warnings
  29743. only occurs for uses.
  29744. 
  29745. File: gcc.info, Node: Statement Attributes, Next: Attribute Syntax, Prev: Enumerator Attributes, Up: C Extensions
  29746. 6.38 Statement Attributes
  29747. =========================
  29748. GCC allows attributes to be set on null statements. *Note Attribute
  29749. Syntax::, for details of the exact syntax for using attributes. Other
  29750. attributes are available for functions (*note Function Attributes::),
  29751. variables (*note Variable Attributes::), labels (*note Label
  29752. Attributes::), enumerators (*note Enumerator Attributes::), and for
  29753. types (*note Type Attributes::).
  29754. This example uses the 'fallthrough' statement attribute to indicate
  29755. that the '-Wimplicit-fallthrough' warning should not be emitted:
  29756. switch (cond)
  29757. {
  29758. case 1:
  29759. bar (1);
  29760. __attribute__((fallthrough));
  29761. case 2:
  29762. ...
  29763. }
  29764. 'fallthrough'
  29765. The 'fallthrough' attribute with a null statement serves as a
  29766. fallthrough statement. It hints to the compiler that a statement
  29767. that falls through to another case label, or user-defined label in
  29768. a switch statement is intentional and thus the
  29769. '-Wimplicit-fallthrough' warning must not trigger. The fallthrough
  29770. attribute may appear at most once in each attribute list, and may
  29771. not be mixed with other attributes. It can only be used in a
  29772. switch statement (the compiler will issue an error otherwise),
  29773. after a preceding statement and before a logically succeeding case
  29774. label, or user-defined label.
  29775. 
  29776. File: gcc.info, Node: Attribute Syntax, Next: Function Prototypes, Prev: Statement Attributes, Up: C Extensions
  29777. 6.39 Attribute Syntax
  29778. =====================
  29779. This section describes the syntax with which '__attribute__' may be
  29780. used, and the constructs to which attribute specifiers bind, for the C
  29781. language. Some details may vary for C++ and Objective-C. Because of
  29782. infelicities in the grammar for attributes, some forms described here
  29783. may not be successfully parsed in all cases.
  29784. There are some problems with the semantics of attributes in C++. For
  29785. example, there are no manglings for attributes, although they may affect
  29786. code generation, so problems may arise when attributed types are used in
  29787. conjunction with templates or overloading. Similarly, 'typeid' does not
  29788. distinguish between types with different attributes. Support for
  29789. attributes in C++ may be restricted in future to attributes on
  29790. declarations only, but not on nested declarators.
  29791. *Note Function Attributes::, for details of the semantics of attributes
  29792. applying to functions. *Note Variable Attributes::, for details of the
  29793. semantics of attributes applying to variables. *Note Type Attributes::,
  29794. for details of the semantics of attributes applying to structure, union
  29795. and enumerated types. *Note Label Attributes::, for details of the
  29796. semantics of attributes applying to labels. *Note Enumerator
  29797. Attributes::, for details of the semantics of attributes applying to
  29798. enumerators. *Note Statement Attributes::, for details of the semantics
  29799. of attributes applying to statements.
  29800. An "attribute specifier" is of the form '__attribute__
  29801. ((ATTRIBUTE-LIST))'. An "attribute list" is a possibly empty
  29802. comma-separated sequence of "attributes", where each attribute is one of
  29803. the following:
  29804. * Empty. Empty attributes are ignored.
  29805. * An attribute name (which may be an identifier such as 'unused', or
  29806. a reserved word such as 'const').
  29807. * An attribute name followed by a parenthesized list of parameters
  29808. for the attribute. These parameters take one of the following
  29809. forms:
  29810. * An identifier. For example, 'mode' attributes use this form.
  29811. * An identifier followed by a comma and a non-empty
  29812. comma-separated list of expressions. For example, 'format'
  29813. attributes use this form.
  29814. * A possibly empty comma-separated list of expressions. For
  29815. example, 'format_arg' attributes use this form with the list
  29816. being a single integer constant expression, and 'alias'
  29817. attributes use this form with the list being a single string
  29818. constant.
  29819. An "attribute specifier list" is a sequence of one or more attribute
  29820. specifiers, not separated by any other tokens.
  29821. You may optionally specify attribute names with '__' preceding and
  29822. following the name. This allows you to use them in header files without
  29823. being concerned about a possible macro of the same name. For example,
  29824. you may use the attribute name '__noreturn__' instead of 'noreturn'.
  29825. Label Attributes
  29826. ................
  29827. In GNU C, an attribute specifier list may appear after the colon
  29828. following a label, other than a 'case' or 'default' label. GNU C++ only
  29829. permits attributes on labels if the attribute specifier is immediately
  29830. followed by a semicolon (i.e., the label applies to an empty statement).
  29831. If the semicolon is missing, C++ label attributes are ambiguous, as it
  29832. is permissible for a declaration, which could begin with an attribute
  29833. list, to be labelled in C++. Declarations cannot be labelled in C90 or
  29834. C99, so the ambiguity does not arise there.
  29835. Enumerator Attributes
  29836. .....................
  29837. In GNU C, an attribute specifier list may appear as part of an
  29838. enumerator. The attribute goes after the enumeration constant, before
  29839. '=', if present. The optional attribute in the enumerator appertains to
  29840. the enumeration constant. It is not possible to place the attribute
  29841. after the constant expression, if present.
  29842. Statement Attributes
  29843. ....................
  29844. In GNU C, an attribute specifier list may appear as part of a null
  29845. statement. The attribute goes before the semicolon.
  29846. Type Attributes
  29847. ...............
  29848. An attribute specifier list may appear as part of a 'struct', 'union' or
  29849. 'enum' specifier. It may go either immediately after the 'struct',
  29850. 'union' or 'enum' keyword, or after the closing brace. The former
  29851. syntax is preferred. Where attribute specifiers follow the closing
  29852. brace, they are considered to relate to the structure, union or
  29853. enumerated type defined, not to any enclosing declaration the type
  29854. specifier appears in, and the type defined is not complete until after
  29855. the attribute specifiers.
  29856. All other attributes
  29857. ....................
  29858. Otherwise, an attribute specifier appears as part of a declaration,
  29859. counting declarations of unnamed parameters and type names, and relates
  29860. to that declaration (which may be nested in another declaration, for
  29861. example in the case of a parameter declaration), or to a particular
  29862. declarator within a declaration. Where an attribute specifier is
  29863. applied to a parameter declared as a function or an array, it should
  29864. apply to the function or array rather than the pointer to which the
  29865. parameter is implicitly converted, but this is not yet correctly
  29866. implemented.
  29867. Any list of specifiers and qualifiers at the start of a declaration may
  29868. contain attribute specifiers, whether or not such a list may in that
  29869. context contain storage class specifiers. (Some attributes, however,
  29870. are essentially in the nature of storage class specifiers, and only make
  29871. sense where storage class specifiers may be used; for example,
  29872. 'section'.) There is one necessary limitation to this syntax: the first
  29873. old-style parameter declaration in a function definition cannot begin
  29874. with an attribute specifier, because such an attribute applies to the
  29875. function instead by syntax described below (which, however, is not yet
  29876. implemented in this case). In some other cases, attribute specifiers
  29877. are permitted by this grammar but not yet supported by the compiler.
  29878. All attribute specifiers in this place relate to the declaration as a
  29879. whole. In the obsolescent usage where a type of 'int' is implied by the
  29880. absence of type specifiers, such a list of specifiers and qualifiers may
  29881. be an attribute specifier list with no other specifiers or qualifiers.
  29882. At present, the first parameter in a function prototype must have some
  29883. type specifier that is not an attribute specifier; this resolves an
  29884. ambiguity in the interpretation of 'void f(int (__attribute__((foo))
  29885. x))', but is subject to change. At present, if the parentheses of a
  29886. function declarator contain only attributes then those attributes are
  29887. ignored, rather than yielding an error or warning or implying a single
  29888. parameter of type int, but this is subject to change.
  29889. An attribute specifier list may appear immediately before a declarator
  29890. (other than the first) in a comma-separated list of declarators in a
  29891. declaration of more than one identifier using a single list of
  29892. specifiers and qualifiers. Such attribute specifiers apply only to the
  29893. identifier before whose declarator they appear. For example, in
  29894. __attribute__((noreturn)) void d0 (void),
  29895. __attribute__((format(printf, 1, 2))) d1 (const char *, ...),
  29896. d2 (void);
  29897. the 'noreturn' attribute applies to all the functions declared; the
  29898. 'format' attribute only applies to 'd1'.
  29899. An attribute specifier list may appear immediately before the comma,
  29900. '=' or semicolon terminating the declaration of an identifier other than
  29901. a function definition. Such attribute specifiers apply to the declared
  29902. object or function. Where an assembler name for an object or function
  29903. is specified (*note Asm Labels::), the attribute must follow the 'asm'
  29904. specification.
  29905. An attribute specifier list may, in future, be permitted to appear
  29906. after the declarator in a function definition (before any old-style
  29907. parameter declarations or the function body).
  29908. Attribute specifiers may be mixed with type qualifiers appearing inside
  29909. the '[]' of a parameter array declarator, in the C99 construct by which
  29910. such qualifiers are applied to the pointer to which the array is
  29911. implicitly converted. Such attribute specifiers apply to the pointer,
  29912. not to the array, but at present this is not implemented and they are
  29913. ignored.
  29914. An attribute specifier list may appear at the start of a nested
  29915. declarator. At present, there are some limitations in this usage: the
  29916. attributes correctly apply to the declarator, but for most individual
  29917. attributes the semantics this implies are not implemented. When
  29918. attribute specifiers follow the '*' of a pointer declarator, they may be
  29919. mixed with any type qualifiers present. The following describes the
  29920. formal semantics of this syntax. It makes the most sense if you are
  29921. familiar with the formal specification of declarators in the ISO C
  29922. standard.
  29923. Consider (as in C99 subclause 6.7.5 paragraph 4) a declaration 'T D1',
  29924. where 'T' contains declaration specifiers that specify a type TYPE (such
  29925. as 'int') and 'D1' is a declarator that contains an identifier IDENT.
  29926. The type specified for IDENT for derived declarators whose type does not
  29927. include an attribute specifier is as in the ISO C standard.
  29928. If 'D1' has the form '( ATTRIBUTE-SPECIFIER-LIST D )', and the
  29929. declaration 'T D' specifies the type "DERIVED-DECLARATOR-TYPE-LIST TYPE"
  29930. for IDENT, then 'T D1' specifies the type "DERIVED-DECLARATOR-TYPE-LIST
  29931. ATTRIBUTE-SPECIFIER-LIST TYPE" for IDENT.
  29932. If 'D1' has the form '* TYPE-QUALIFIER-AND-ATTRIBUTE-SPECIFIER-LIST D',
  29933. and the declaration 'T D' specifies the type
  29934. "DERIVED-DECLARATOR-TYPE-LIST TYPE" for IDENT, then 'T D1' specifies the
  29935. type "DERIVED-DECLARATOR-TYPE-LIST
  29936. TYPE-QUALIFIER-AND-ATTRIBUTE-SPECIFIER-LIST pointer to TYPE" for IDENT.
  29937. For example,
  29938. void (__attribute__((noreturn)) ****f) (void);
  29939. specifies the type "pointer to pointer to pointer to pointer to
  29940. non-returning function returning 'void'". As another example,
  29941. char *__attribute__((aligned(8))) *f;
  29942. specifies the type "pointer to 8-byte-aligned pointer to 'char'". Note
  29943. again that this does not work with most attributes; for example, the
  29944. usage of 'aligned' and 'noreturn' attributes given above is not yet
  29945. supported.
  29946. For compatibility with existing code written for compiler versions that
  29947. did not implement attributes on nested declarators, some laxity is
  29948. allowed in the placing of attributes. If an attribute that only applies
  29949. to types is applied to a declaration, it is treated as applying to the
  29950. type of that declaration. If an attribute that only applies to
  29951. declarations is applied to the type of a declaration, it is treated as
  29952. applying to that declaration; and, for compatibility with code placing
  29953. the attributes immediately before the identifier declared, such an
  29954. attribute applied to a function return type is treated as applying to
  29955. the function type, and such an attribute applied to an array element
  29956. type is treated as applying to the array type. If an attribute that
  29957. only applies to function types is applied to a pointer-to-function type,
  29958. it is treated as applying to the pointer target type; if such an
  29959. attribute is applied to a function return type that is not a
  29960. pointer-to-function type, it is treated as applying to the function
  29961. type.
  29962. 
  29963. File: gcc.info, Node: Function Prototypes, Next: C++ Comments, Prev: Attribute Syntax, Up: C Extensions
  29964. 6.40 Prototypes and Old-Style Function Definitions
  29965. ==================================================
  29966. GNU C extends ISO C to allow a function prototype to override a later
  29967. old-style non-prototype definition. Consider the following example:
  29968. /* Use prototypes unless the compiler is old-fashioned. */
  29969. #ifdef __STDC__
  29970. #define P(x) x
  29971. #else
  29972. #define P(x) ()
  29973. #endif
  29974. /* Prototype function declaration. */
  29975. int isroot P((uid_t));
  29976. /* Old-style function definition. */
  29977. int
  29978. isroot (x) /* ??? lossage here ??? */
  29979. uid_t x;
  29980. {
  29981. return x == 0;
  29982. }
  29983. Suppose the type 'uid_t' happens to be 'short'. ISO C does not allow
  29984. this example, because subword arguments in old-style non-prototype
  29985. definitions are promoted. Therefore in this example the function
  29986. definition's argument is really an 'int', which does not match the
  29987. prototype argument type of 'short'.
  29988. This restriction of ISO C makes it hard to write code that is portable
  29989. to traditional C compilers, because the programmer does not know whether
  29990. the 'uid_t' type is 'short', 'int', or 'long'. Therefore, in cases like
  29991. these GNU C allows a prototype to override a later old-style definition.
  29992. More precisely, in GNU C, a function prototype argument type overrides
  29993. the argument type specified by a later old-style definition if the
  29994. former type is the same as the latter type before promotion. Thus in
  29995. GNU C the above example is equivalent to the following:
  29996. int isroot (uid_t);
  29997. int
  29998. isroot (uid_t x)
  29999. {
  30000. return x == 0;
  30001. }
  30002. GNU C++ does not support old-style function definitions, so this
  30003. extension is irrelevant.
  30004. 
  30005. File: gcc.info, Node: C++ Comments, Next: Dollar Signs, Prev: Function Prototypes, Up: C Extensions
  30006. 6.41 C++ Style Comments
  30007. =======================
  30008. In GNU C, you may use C++ style comments, which start with '//' and
  30009. continue until the end of the line. Many other C implementations allow
  30010. such comments, and they are included in the 1999 C standard. However,
  30011. C++ style comments are not recognized if you specify an '-std' option
  30012. specifying a version of ISO C before C99, or '-ansi' (equivalent to
  30013. '-std=c90').
  30014. 
  30015. File: gcc.info, Node: Dollar Signs, Next: Character Escapes, Prev: C++ Comments, Up: C Extensions
  30016. 6.42 Dollar Signs in Identifier Names
  30017. =====================================
  30018. In GNU C, you may normally use dollar signs in identifier names. This
  30019. is because many traditional C implementations allow such identifiers.
  30020. However, dollar signs in identifiers are not supported on a few target
  30021. machines, typically because the target assembler does not allow them.
  30022. 
  30023. File: gcc.info, Node: Character Escapes, Next: Alignment, Prev: Dollar Signs, Up: C Extensions
  30024. 6.43 The Character <ESC> in Constants
  30025. =====================================
  30026. You can use the sequence '\e' in a string or character constant to stand
  30027. for the ASCII character <ESC>.
  30028. 
  30029. File: gcc.info, Node: Alignment, Next: Inline, Prev: Character Escapes, Up: C Extensions
  30030. 6.44 Determining the Alignment of Functions, Types or Variables
  30031. ===============================================================
  30032. The keyword '__alignof__' determines the alignment requirement of a
  30033. function, object, or a type, or the minimum alignment usually required
  30034. by a type. Its syntax is just like 'sizeof' and C11 '_Alignof'.
  30035. For example, if the target machine requires a 'double' value to be
  30036. aligned on an 8-byte boundary, then '__alignof__ (double)' is 8. This
  30037. is true on many RISC machines. On more traditional machine designs,
  30038. '__alignof__ (double)' is 4 or even 2.
  30039. Some machines never actually require alignment; they allow references
  30040. to any data type even at an odd address. For these machines,
  30041. '__alignof__' reports the smallest alignment that GCC gives the data
  30042. type, usually as mandated by the target ABI.
  30043. If the operand of '__alignof__' is an lvalue rather than a type, its
  30044. value is the required alignment for its type, taking into account any
  30045. minimum alignment specified by attribute 'aligned' (*note Common
  30046. Variable Attributes::). For example, after this declaration:
  30047. struct foo { int x; char y; } foo1;
  30048. the value of '__alignof__ (foo1.y)' is 1, even though its actual
  30049. alignment is probably 2 or 4, the same as '__alignof__ (int)'. It is an
  30050. error to ask for the alignment of an incomplete type other than 'void'.
  30051. If the operand of the '__alignof__' expression is a function, the
  30052. expression evaluates to the alignment of the function which may be
  30053. specified by attribute 'aligned' (*note Common Function Attributes::).
  30054. 
  30055. File: gcc.info, Node: Inline, Next: Volatiles, Prev: Alignment, Up: C Extensions
  30056. 6.45 An Inline Function is As Fast As a Macro
  30057. =============================================
  30058. By declaring a function inline, you can direct GCC to make calls to that
  30059. function faster. One way GCC can achieve this is to integrate that
  30060. function's code into the code for its callers. This makes execution
  30061. faster by eliminating the function-call overhead; in addition, if any of
  30062. the actual argument values are constant, their known values may permit
  30063. simplifications at compile time so that not all of the inline function's
  30064. code needs to be included. The effect on code size is less predictable;
  30065. object code may be larger or smaller with function inlining, depending
  30066. on the particular case. You can also direct GCC to try to integrate all
  30067. "simple enough" functions into their callers with the option
  30068. '-finline-functions'.
  30069. GCC implements three different semantics of declaring a function
  30070. inline. One is available with '-std=gnu89' or '-fgnu89-inline' or when
  30071. 'gnu_inline' attribute is present on all inline declarations, another
  30072. when '-std=c99', '-std=gnu99' or an option for a later C version is used
  30073. (without '-fgnu89-inline'), and the third is used when compiling C++.
  30074. To declare a function inline, use the 'inline' keyword in its
  30075. declaration, like this:
  30076. static inline int
  30077. inc (int *a)
  30078. {
  30079. return (*a)++;
  30080. }
  30081. If you are writing a header file to be included in ISO C90 programs,
  30082. write '__inline__' instead of 'inline'. *Note Alternate Keywords::.
  30083. The three types of inlining behave similarly in two important cases:
  30084. when the 'inline' keyword is used on a 'static' function, like the
  30085. example above, and when a function is first declared without using the
  30086. 'inline' keyword and then is defined with 'inline', like this:
  30087. extern int inc (int *a);
  30088. inline int
  30089. inc (int *a)
  30090. {
  30091. return (*a)++;
  30092. }
  30093. In both of these common cases, the program behaves the same as if you
  30094. had not used the 'inline' keyword, except for its speed.
  30095. When a function is both inline and 'static', if all calls to the
  30096. function are integrated into the caller, and the function's address is
  30097. never used, then the function's own assembler code is never referenced.
  30098. In this case, GCC does not actually output assembler code for the
  30099. function, unless you specify the option '-fkeep-inline-functions'. If
  30100. there is a nonintegrated call, then the function is compiled to
  30101. assembler code as usual. The function must also be compiled as usual if
  30102. the program refers to its address, because that cannot be inlined.
  30103. Note that certain usages in a function definition can make it
  30104. unsuitable for inline substitution. Among these usages are: variadic
  30105. functions, use of 'alloca', use of computed goto (*note Labels as
  30106. Values::), use of nonlocal goto, use of nested functions, use of
  30107. 'setjmp', use of '__builtin_longjmp' and use of '__builtin_return' or
  30108. '__builtin_apply_args'. Using '-Winline' warns when a function marked
  30109. 'inline' could not be substituted, and gives the reason for the failure.
  30110. As required by ISO C++, GCC considers member functions defined within
  30111. the body of a class to be marked inline even if they are not explicitly
  30112. declared with the 'inline' keyword. You can override this with
  30113. '-fno-default-inline'; *note Options Controlling C++ Dialect: C++
  30114. Dialect Options.
  30115. GCC does not inline any functions when not optimizing unless you
  30116. specify the 'always_inline' attribute for the function, like this:
  30117. /* Prototype. */
  30118. inline void foo (const char) __attribute__((always_inline));
  30119. The remainder of this section is specific to GNU C90 inlining.
  30120. When an inline function is not 'static', then the compiler must assume
  30121. that there may be calls from other source files; since a global symbol
  30122. can be defined only once in any program, the function must not be
  30123. defined in the other source files, so the calls therein cannot be
  30124. integrated. Therefore, a non-'static' inline function is always
  30125. compiled on its own in the usual fashion.
  30126. If you specify both 'inline' and 'extern' in the function definition,
  30127. then the definition is used only for inlining. In no case is the
  30128. function compiled on its own, not even if you refer to its address
  30129. explicitly. Such an address becomes an external reference, as if you
  30130. had only declared the function, and had not defined it.
  30131. This combination of 'inline' and 'extern' has almost the effect of a
  30132. macro. The way to use it is to put a function definition in a header
  30133. file with these keywords, and put another copy of the definition
  30134. (lacking 'inline' and 'extern') in a library file. The definition in
  30135. the header file causes most calls to the function to be inlined. If any
  30136. uses of the function remain, they refer to the single copy in the
  30137. library.
  30138. 
  30139. File: gcc.info, Node: Volatiles, Next: Using Assembly Language with C, Prev: Inline, Up: C Extensions
  30140. 6.46 When is a Volatile Object Accessed?
  30141. ========================================
  30142. C has the concept of volatile objects. These are normally accessed by
  30143. pointers and used for accessing hardware or inter-thread communication.
  30144. The standard encourages compilers to refrain from optimizations
  30145. concerning accesses to volatile objects, but leaves it implementation
  30146. defined as to what constitutes a volatile access. The minimum
  30147. requirement is that at a sequence point all previous accesses to
  30148. volatile objects have stabilized and no subsequent accesses have
  30149. occurred. Thus an implementation is free to reorder and combine
  30150. volatile accesses that occur between sequence points, but cannot do so
  30151. for accesses across a sequence point. The use of volatile does not
  30152. allow you to violate the restriction on updating objects multiple times
  30153. between two sequence points.
  30154. Accesses to non-volatile objects are not ordered with respect to
  30155. volatile accesses. You cannot use a volatile object as a memory barrier
  30156. to order a sequence of writes to non-volatile memory. For instance:
  30157. int *ptr = SOMETHING;
  30158. volatile int vobj;
  30159. *ptr = SOMETHING;
  30160. vobj = 1;
  30161. Unless *PTR and VOBJ can be aliased, it is not guaranteed that the write
  30162. to *PTR occurs by the time the update of VOBJ happens. If you need this
  30163. guarantee, you must use a stronger memory barrier such as:
  30164. int *ptr = SOMETHING;
  30165. volatile int vobj;
  30166. *ptr = SOMETHING;
  30167. asm volatile ("" : : : "memory");
  30168. vobj = 1;
  30169. A scalar volatile object is read when it is accessed in a void context:
  30170. volatile int *src = SOMEVALUE;
  30171. *src;
  30172. Such expressions are rvalues, and GCC implements this as a read of the
  30173. volatile object being pointed to.
  30174. Assignments are also expressions and have an rvalue. However when
  30175. assigning to a scalar volatile, the volatile object is not reread,
  30176. regardless of whether the assignment expression's rvalue is used or not.
  30177. If the assignment's rvalue is used, the value is that assigned to the
  30178. volatile object. For instance, there is no read of VOBJ in all the
  30179. following cases:
  30180. int obj;
  30181. volatile int vobj;
  30182. vobj = SOMETHING;
  30183. obj = vobj = SOMETHING;
  30184. obj ? vobj = ONETHING : vobj = ANOTHERTHING;
  30185. obj = (SOMETHING, vobj = ANOTHERTHING);
  30186. If you need to read the volatile object after an assignment has
  30187. occurred, you must use a separate expression with an intervening
  30188. sequence point.
  30189. As bit-fields are not individually addressable, volatile bit-fields may
  30190. be implicitly read when written to, or when adjacent bit-fields are
  30191. accessed. Bit-field operations may be optimized such that adjacent
  30192. bit-fields are only partially accessed, if they straddle a storage unit
  30193. boundary. For these reasons it is unwise to use volatile bit-fields to
  30194. access hardware.
  30195. 
  30196. File: gcc.info, Node: Using Assembly Language with C, Next: Alternate Keywords, Prev: Volatiles, Up: C Extensions
  30197. 6.47 How to Use Inline Assembly Language in C Code
  30198. ==================================================
  30199. The 'asm' keyword allows you to embed assembler instructions within C
  30200. code. GCC provides two forms of inline 'asm' statements. A "basic
  30201. 'asm'" statement is one with no operands (*note Basic Asm::), while an
  30202. "extended 'asm'" statement (*note Extended Asm::) includes one or more
  30203. operands. The extended form is preferred for mixing C and assembly
  30204. language within a function, but to include assembly language at top
  30205. level you must use basic 'asm'.
  30206. You can also use the 'asm' keyword to override the assembler name for a
  30207. C symbol, or to place a C variable in a specific register.
  30208. * Menu:
  30209. * Basic Asm:: Inline assembler without operands.
  30210. * Extended Asm:: Inline assembler with operands.
  30211. * Constraints:: Constraints for 'asm' operands
  30212. * Asm Labels:: Specifying the assembler name to use for a C symbol.
  30213. * Explicit Register Variables:: Defining variables residing in specified
  30214. registers.
  30215. * Size of an asm:: How GCC calculates the size of an 'asm' block.
  30216. 
  30217. File: gcc.info, Node: Basic Asm, Next: Extended Asm, Up: Using Assembly Language with C
  30218. 6.47.1 Basic Asm -- Assembler Instructions Without Operands
  30219. -----------------------------------------------------------
  30220. A basic 'asm' statement has the following syntax:
  30221. asm ASM-QUALIFIERS ( ASSEMBLERINSTRUCTIONS )
  30222. The 'asm' keyword is a GNU extension. When writing code that can be
  30223. compiled with '-ansi' and the various '-std' options, use '__asm__'
  30224. instead of 'asm' (*note Alternate Keywords::).
  30225. Qualifiers
  30226. ..........
  30227. 'volatile'
  30228. The optional 'volatile' qualifier has no effect. All basic 'asm'
  30229. blocks are implicitly volatile.
  30230. 'inline'
  30231. If you use the 'inline' qualifier, then for inlining purposes the
  30232. size of the 'asm' statement is taken as the smallest size possible
  30233. (*note Size of an asm::).
  30234. Parameters
  30235. ..........
  30236. ASSEMBLERINSTRUCTIONS
  30237. This is a literal string that specifies the assembler code. The
  30238. string can contain any instructions recognized by the assembler,
  30239. including directives. GCC does not parse the assembler
  30240. instructions themselves and does not know what they mean or even
  30241. whether they are valid assembler input.
  30242. You may place multiple assembler instructions together in a single
  30243. 'asm' string, separated by the characters normally used in assembly
  30244. code for the system. A combination that works in most places is a
  30245. newline to break the line, plus a tab character (written as
  30246. '\n\t'). Some assemblers allow semicolons as a line separator.
  30247. However, note that some assembler dialects use semicolons to start
  30248. a comment.
  30249. Remarks
  30250. .......
  30251. Using extended 'asm' (*note Extended Asm::) typically produces smaller,
  30252. safer, and more efficient code, and in most cases it is a better
  30253. solution than basic 'asm'. However, there are two situations where only
  30254. basic 'asm' can be used:
  30255. * Extended 'asm' statements have to be inside a C function, so to
  30256. write inline assembly language at file scope ("top-level"), outside
  30257. of C functions, you must use basic 'asm'. You can use this
  30258. technique to emit assembler directives, define assembly language
  30259. macros that can be invoked elsewhere in the file, or write entire
  30260. functions in assembly language. Basic 'asm' statements outside of
  30261. functions may not use any qualifiers.
  30262. * Functions declared with the 'naked' attribute also require basic
  30263. 'asm' (*note Function Attributes::).
  30264. Safely accessing C data and calling functions from basic 'asm' is more
  30265. complex than it may appear. To access C data, it is better to use
  30266. extended 'asm'.
  30267. Do not expect a sequence of 'asm' statements to remain perfectly
  30268. consecutive after compilation. If certain instructions need to remain
  30269. consecutive in the output, put them in a single multi-instruction 'asm'
  30270. statement. Note that GCC's optimizers can move 'asm' statements
  30271. relative to other code, including across jumps.
  30272. 'asm' statements may not perform jumps into other 'asm' statements.
  30273. GCC does not know about these jumps, and therefore cannot take account
  30274. of them when deciding how to optimize. Jumps from 'asm' to C labels are
  30275. only supported in extended 'asm'.
  30276. Under certain circumstances, GCC may duplicate (or remove duplicates
  30277. of) your assembly code when optimizing. This can lead to unexpected
  30278. duplicate symbol errors during compilation if your assembly code defines
  30279. symbols or labels.
  30280. *Warning:* The C standards do not specify semantics for 'asm', making
  30281. it a potential source of incompatibilities between compilers. These
  30282. incompatibilities may not produce compiler warnings/errors.
  30283. GCC does not parse basic 'asm''s ASSEMBLERINSTRUCTIONS, which means
  30284. there is no way to communicate to the compiler what is happening inside
  30285. them. GCC has no visibility of symbols in the 'asm' and may discard
  30286. them as unreferenced. It also does not know about side effects of the
  30287. assembler code, such as modifications to memory or registers. Unlike
  30288. some compilers, GCC assumes that no changes to general purpose registers
  30289. occur. This assumption may change in a future release.
  30290. To avoid complications from future changes to the semantics and the
  30291. compatibility issues between compilers, consider replacing basic 'asm'
  30292. with extended 'asm'. See How to convert from basic asm to extended asm
  30293. (https://gcc.gnu.org/wiki/ConvertBasicAsmToExtended) for information
  30294. about how to perform this conversion.
  30295. The compiler copies the assembler instructions in a basic 'asm'
  30296. verbatim to the assembly language output file, without processing
  30297. dialects or any of the '%' operators that are available with extended
  30298. 'asm'. This results in minor differences between basic 'asm' strings
  30299. and extended 'asm' templates. For example, to refer to registers you
  30300. might use '%eax' in basic 'asm' and '%%eax' in extended 'asm'.
  30301. On targets such as x86 that support multiple assembler dialects, all
  30302. basic 'asm' blocks use the assembler dialect specified by the '-masm'
  30303. command-line option (*note x86 Options::). Basic 'asm' provides no
  30304. mechanism to provide different assembler strings for different dialects.
  30305. For basic 'asm' with non-empty assembler string GCC assumes the
  30306. assembler block does not change any general purpose registers, but it
  30307. may read or write any globally accessible variable.
  30308. Here is an example of basic 'asm' for i386:
  30309. /* Note that this code will not compile with -masm=intel */
  30310. #define DebugBreak() asm("int $3")
  30311. 
  30312. File: gcc.info, Node: Extended Asm, Next: Constraints, Prev: Basic Asm, Up: Using Assembly Language with C
  30313. 6.47.2 Extended Asm - Assembler Instructions with C Expression Operands
  30314. -----------------------------------------------------------------------
  30315. With extended 'asm' you can read and write C variables from assembler
  30316. and perform jumps from assembler code to C labels. Extended 'asm'
  30317. syntax uses colons (':') to delimit the operand parameters after the
  30318. assembler template:
  30319. asm ASM-QUALIFIERS ( ASSEMBLERTEMPLATE
  30320. : OUTPUTOPERANDS
  30321. [ : INPUTOPERANDS
  30322. [ : CLOBBERS ] ])
  30323. asm ASM-QUALIFIERS ( ASSEMBLERTEMPLATE
  30324. :
  30325. : INPUTOPERANDS
  30326. : CLOBBERS
  30327. : GOTOLABELS)
  30328. where in the last form, ASM-QUALIFIERS contains 'goto' (and in the
  30329. first form, not).
  30330. The 'asm' keyword is a GNU extension. When writing code that can be
  30331. compiled with '-ansi' and the various '-std' options, use '__asm__'
  30332. instead of 'asm' (*note Alternate Keywords::).
  30333. Qualifiers
  30334. ..........
  30335. 'volatile'
  30336. The typical use of extended 'asm' statements is to manipulate input
  30337. values to produce output values. However, your 'asm' statements
  30338. may also produce side effects. If so, you may need to use the
  30339. 'volatile' qualifier to disable certain optimizations. *Note
  30340. Volatile::.
  30341. 'inline'
  30342. If you use the 'inline' qualifier, then for inlining purposes the
  30343. size of the 'asm' statement is taken as the smallest size possible
  30344. (*note Size of an asm::).
  30345. 'goto'
  30346. This qualifier informs the compiler that the 'asm' statement may
  30347. perform a jump to one of the labels listed in the GOTOLABELS.
  30348. *Note GotoLabels::.
  30349. Parameters
  30350. ..........
  30351. ASSEMBLERTEMPLATE
  30352. This is a literal string that is the template for the assembler
  30353. code. It is a combination of fixed text and tokens that refer to
  30354. the input, output, and goto parameters. *Note AssemblerTemplate::.
  30355. OUTPUTOPERANDS
  30356. A comma-separated list of the C variables modified by the
  30357. instructions in the ASSEMBLERTEMPLATE. An empty list is permitted.
  30358. *Note OutputOperands::.
  30359. INPUTOPERANDS
  30360. A comma-separated list of C expressions read by the instructions in
  30361. the ASSEMBLERTEMPLATE. An empty list is permitted. *Note
  30362. InputOperands::.
  30363. CLOBBERS
  30364. A comma-separated list of registers or other values changed by the
  30365. ASSEMBLERTEMPLATE, beyond those listed as outputs. An empty list
  30366. is permitted. *Note Clobbers and Scratch Registers::.
  30367. GOTOLABELS
  30368. When you are using the 'goto' form of 'asm', this section contains
  30369. the list of all C labels to which the code in the ASSEMBLERTEMPLATE
  30370. may jump. *Note GotoLabels::.
  30371. 'asm' statements may not perform jumps into other 'asm' statements,
  30372. only to the listed GOTOLABELS. GCC's optimizers do not know about
  30373. other jumps; therefore they cannot take account of them when
  30374. deciding how to optimize.
  30375. The total number of input + output + goto operands is limited to 30.
  30376. Remarks
  30377. .......
  30378. The 'asm' statement allows you to include assembly instructions directly
  30379. within C code. This may help you to maximize performance in
  30380. time-sensitive code or to access assembly instructions that are not
  30381. readily available to C programs.
  30382. Note that extended 'asm' statements must be inside a function. Only
  30383. basic 'asm' may be outside functions (*note Basic Asm::). Functions
  30384. declared with the 'naked' attribute also require basic 'asm' (*note
  30385. Function Attributes::).
  30386. While the uses of 'asm' are many and varied, it may help to think of an
  30387. 'asm' statement as a series of low-level instructions that convert input
  30388. parameters to output parameters. So a simple (if not particularly
  30389. useful) example for i386 using 'asm' might look like this:
  30390. int src = 1;
  30391. int dst;
  30392. asm ("mov %1, %0\n\t"
  30393. "add $1, %0"
  30394. : "=r" (dst)
  30395. : "r" (src));
  30396. printf("%d\n", dst);
  30397. This code copies 'src' to 'dst' and add 1 to 'dst'.
  30398. 6.47.2.1 Volatile
  30399. .................
  30400. GCC's optimizers sometimes discard 'asm' statements if they determine
  30401. there is no need for the output variables. Also, the optimizers may
  30402. move code out of loops if they believe that the code will always return
  30403. the same result (i.e. none of its input values change between calls).
  30404. Using the 'volatile' qualifier disables these optimizations. 'asm'
  30405. statements that have no output operands, including 'asm goto'
  30406. statements, are implicitly volatile.
  30407. This i386 code demonstrates a case that does not use (or require) the
  30408. 'volatile' qualifier. If it is performing assertion checking, this code
  30409. uses 'asm' to perform the validation. Otherwise, 'dwRes' is
  30410. unreferenced by any code. As a result, the optimizers can discard the
  30411. 'asm' statement, which in turn removes the need for the entire 'DoCheck'
  30412. routine. By omitting the 'volatile' qualifier when it isn't needed you
  30413. allow the optimizers to produce the most efficient code possible.
  30414. void DoCheck(uint32_t dwSomeValue)
  30415. {
  30416. uint32_t dwRes;
  30417. // Assumes dwSomeValue is not zero.
  30418. asm ("bsfl %1,%0"
  30419. : "=r" (dwRes)
  30420. : "r" (dwSomeValue)
  30421. : "cc");
  30422. assert(dwRes > 3);
  30423. }
  30424. The next example shows a case where the optimizers can recognize that
  30425. the input ('dwSomeValue') never changes during the execution of the
  30426. function and can therefore move the 'asm' outside the loop to produce
  30427. more efficient code. Again, using the 'volatile' qualifier disables
  30428. this type of optimization.
  30429. void do_print(uint32_t dwSomeValue)
  30430. {
  30431. uint32_t dwRes;
  30432. for (uint32_t x=0; x < 5; x++)
  30433. {
  30434. // Assumes dwSomeValue is not zero.
  30435. asm ("bsfl %1,%0"
  30436. : "=r" (dwRes)
  30437. : "r" (dwSomeValue)
  30438. : "cc");
  30439. printf("%u: %u %u\n", x, dwSomeValue, dwRes);
  30440. }
  30441. }
  30442. The following example demonstrates a case where you need to use the
  30443. 'volatile' qualifier. It uses the x86 'rdtsc' instruction, which reads
  30444. the computer's time-stamp counter. Without the 'volatile' qualifier,
  30445. the optimizers might assume that the 'asm' block will always return the
  30446. same value and therefore optimize away the second call.
  30447. uint64_t msr;
  30448. asm volatile ( "rdtsc\n\t" // Returns the time in EDX:EAX.
  30449. "shl $32, %%rdx\n\t" // Shift the upper bits left.
  30450. "or %%rdx, %0" // 'Or' in the lower bits.
  30451. : "=a" (msr)
  30452. :
  30453. : "rdx");
  30454. printf("msr: %llx\n", msr);
  30455. // Do other work...
  30456. // Reprint the timestamp
  30457. asm volatile ( "rdtsc\n\t" // Returns the time in EDX:EAX.
  30458. "shl $32, %%rdx\n\t" // Shift the upper bits left.
  30459. "or %%rdx, %0" // 'Or' in the lower bits.
  30460. : "=a" (msr)
  30461. :
  30462. : "rdx");
  30463. printf("msr: %llx\n", msr);
  30464. GCC's optimizers do not treat this code like the non-volatile code in
  30465. the earlier examples. They do not move it out of loops or omit it on
  30466. the assumption that the result from a previous call is still valid.
  30467. Note that the compiler can move even 'volatile asm' instructions
  30468. relative to other code, including across jump instructions. For
  30469. example, on many targets there is a system register that controls the
  30470. rounding mode of floating-point operations. Setting it with a 'volatile
  30471. asm' statement, as in the following PowerPC example, does not work
  30472. reliably.
  30473. asm volatile("mtfsf 255, %0" : : "f" (fpenv));
  30474. sum = x + y;
  30475. The compiler may move the addition back before the 'volatile asm'
  30476. statement. To make it work as expected, add an artificial dependency to
  30477. the 'asm' by referencing a variable in the subsequent code, for example:
  30478. asm volatile ("mtfsf 255,%1" : "=X" (sum) : "f" (fpenv));
  30479. sum = x + y;
  30480. Under certain circumstances, GCC may duplicate (or remove duplicates
  30481. of) your assembly code when optimizing. This can lead to unexpected
  30482. duplicate symbol errors during compilation if your 'asm' code defines
  30483. symbols or labels. Using '%=' (*note AssemblerTemplate::) may help
  30484. resolve this problem.
  30485. 6.47.2.2 Assembler Template
  30486. ...........................
  30487. An assembler template is a literal string containing assembler
  30488. instructions. The compiler replaces tokens in the template that refer
  30489. to inputs, outputs, and goto labels, and then outputs the resulting
  30490. string to the assembler. The string can contain any instructions
  30491. recognized by the assembler, including directives. GCC does not parse
  30492. the assembler instructions themselves and does not know what they mean
  30493. or even whether they are valid assembler input. However, it does count
  30494. the statements (*note Size of an asm::).
  30495. You may place multiple assembler instructions together in a single
  30496. 'asm' string, separated by the characters normally used in assembly code
  30497. for the system. A combination that works in most places is a newline to
  30498. break the line, plus a tab character to move to the instruction field
  30499. (written as '\n\t'). Some assemblers allow semicolons as a line
  30500. separator. However, note that some assembler dialects use semicolons to
  30501. start a comment.
  30502. Do not expect a sequence of 'asm' statements to remain perfectly
  30503. consecutive after compilation, even when you are using the 'volatile'
  30504. qualifier. If certain instructions need to remain consecutive in the
  30505. output, put them in a single multi-instruction 'asm' statement.
  30506. Accessing data from C programs without using input/output operands
  30507. (such as by using global symbols directly from the assembler template)
  30508. may not work as expected. Similarly, calling functions directly from an
  30509. assembler template requires a detailed understanding of the target
  30510. assembler and ABI.
  30511. Since GCC does not parse the assembler template, it has no visibility
  30512. of any symbols it references. This may result in GCC discarding those
  30513. symbols as unreferenced unless they are also listed as input, output, or
  30514. goto operands.
  30515. Special format strings
  30516. ......................
  30517. In addition to the tokens described by the input, output, and goto
  30518. operands, these tokens have special meanings in the assembler template:
  30519. '%%'
  30520. Outputs a single '%' into the assembler code.
  30521. '%='
  30522. Outputs a number that is unique to each instance of the 'asm'
  30523. statement in the entire compilation. This option is useful when
  30524. creating local labels and referring to them multiple times in a
  30525. single template that generates multiple assembler instructions.
  30526. '%{'
  30527. '%|'
  30528. '%}'
  30529. Outputs '{', '|', and '}' characters (respectively) into the
  30530. assembler code. When unescaped, these characters have special
  30531. meaning to indicate multiple assembler dialects, as described
  30532. below.
  30533. Multiple assembler dialects in 'asm' templates
  30534. ..............................................
  30535. On targets such as x86, GCC supports multiple assembler dialects. The
  30536. '-masm' option controls which dialect GCC uses as its default for inline
  30537. assembler. The target-specific documentation for the '-masm' option
  30538. contains the list of supported dialects, as well as the default dialect
  30539. if the option is not specified. This information may be important to
  30540. understand, since assembler code that works correctly when compiled
  30541. using one dialect will likely fail if compiled using another. *Note x86
  30542. Options::.
  30543. If your code needs to support multiple assembler dialects (for example,
  30544. if you are writing public headers that need to support a variety of
  30545. compilation options), use constructs of this form:
  30546. { dialect0 | dialect1 | dialect2... }
  30547. This construct outputs 'dialect0' when using dialect #0 to compile the
  30548. code, 'dialect1' for dialect #1, etc. If there are fewer alternatives
  30549. within the braces than the number of dialects the compiler supports, the
  30550. construct outputs nothing.
  30551. For example, if an x86 compiler supports two dialects ('att', 'intel'),
  30552. an assembler template such as this:
  30553. "bt{l %[Offset],%[Base] | %[Base],%[Offset]}; jc %l2"
  30554. is equivalent to one of
  30555. "btl %[Offset],%[Base] ; jc %l2" /* att dialect */
  30556. "bt %[Base],%[Offset]; jc %l2" /* intel dialect */
  30557. Using that same compiler, this code:
  30558. "xchg{l}\t{%%}ebx, %1"
  30559. corresponds to either
  30560. "xchgl\t%%ebx, %1" /* att dialect */
  30561. "xchg\tebx, %1" /* intel dialect */
  30562. There is no support for nesting dialect alternatives.
  30563. 6.47.2.3 Output Operands
  30564. ........................
  30565. An 'asm' statement has zero or more output operands indicating the names
  30566. of C variables modified by the assembler code.
  30567. In this i386 example, 'old' (referred to in the template string as
  30568. '%0') and '*Base' (as '%1') are outputs and 'Offset' ('%2') is an input:
  30569. bool old;
  30570. __asm__ ("btsl %2,%1\n\t" // Turn on zero-based bit #Offset in Base.
  30571. "sbb %0,%0" // Use the CF to calculate old.
  30572. : "=r" (old), "+rm" (*Base)
  30573. : "Ir" (Offset)
  30574. : "cc");
  30575. return old;
  30576. Operands are separated by commas. Each operand has this format:
  30577. [ [ASMSYMBOLICNAME] ] CONSTRAINT (CVARIABLENAME)
  30578. ASMSYMBOLICNAME
  30579. Specifies a symbolic name for the operand. Reference the name in
  30580. the assembler template by enclosing it in square brackets (i.e.
  30581. '%[Value]'). The scope of the name is the 'asm' statement that
  30582. contains the definition. Any valid C variable name is acceptable,
  30583. including names already defined in the surrounding code. No two
  30584. operands within the same 'asm' statement can use the same symbolic
  30585. name.
  30586. When not using an ASMSYMBOLICNAME, use the (zero-based) position of
  30587. the operand in the list of operands in the assembler template. For
  30588. example if there are three output operands, use '%0' in the
  30589. template to refer to the first, '%1' for the second, and '%2' for
  30590. the third.
  30591. CONSTRAINT
  30592. A string constant specifying constraints on the placement of the
  30593. operand; *Note Constraints::, for details.
  30594. Output constraints must begin with either '=' (a variable
  30595. overwriting an existing value) or '+' (when reading and writing).
  30596. When using '=', do not assume the location contains the existing
  30597. value on entry to the 'asm', except when the operand is tied to an
  30598. input; *note Input Operands: InputOperands.
  30599. After the prefix, there must be one or more additional constraints
  30600. (*note Constraints::) that describe where the value resides.
  30601. Common constraints include 'r' for register and 'm' for memory.
  30602. When you list more than one possible location (for example,
  30603. '"=rm"'), the compiler chooses the most efficient one based on the
  30604. current context. If you list as many alternates as the 'asm'
  30605. statement allows, you permit the optimizers to produce the best
  30606. possible code. If you must use a specific register, but your
  30607. Machine Constraints do not provide sufficient control to select the
  30608. specific register you want, local register variables may provide a
  30609. solution (*note Local Register Variables::).
  30610. CVARIABLENAME
  30611. Specifies a C lvalue expression to hold the output, typically a
  30612. variable name. The enclosing parentheses are a required part of
  30613. the syntax.
  30614. When the compiler selects the registers to use to represent the output
  30615. operands, it does not use any of the clobbered registers (*note Clobbers
  30616. and Scratch Registers::).
  30617. Output operand expressions must be lvalues. The compiler cannot check
  30618. whether the operands have data types that are reasonable for the
  30619. instruction being executed. For output expressions that are not
  30620. directly addressable (for example a bit-field), the constraint must
  30621. allow a register. In that case, GCC uses the register as the output of
  30622. the 'asm', and then stores that register into the output.
  30623. Operands using the '+' constraint modifier count as two operands (that
  30624. is, both as input and output) towards the total maximum of 30 operands
  30625. per 'asm' statement.
  30626. Use the '&' constraint modifier (*note Modifiers::) on all output
  30627. operands that must not overlap an input. Otherwise, GCC may allocate
  30628. the output operand in the same register as an unrelated input operand,
  30629. on the assumption that the assembler code consumes its inputs before
  30630. producing outputs. This assumption may be false if the assembler code
  30631. actually consists of more than one instruction.
  30632. The same problem can occur if one output parameter (A) allows a
  30633. register constraint and another output parameter (B) allows a memory
  30634. constraint. The code generated by GCC to access the memory address in B
  30635. can contain registers which _might_ be shared by A, and GCC considers
  30636. those registers to be inputs to the asm. As above, GCC assumes that
  30637. such input registers are consumed before any outputs are written. This
  30638. assumption may result in incorrect behavior if the 'asm' statement
  30639. writes to A before using B. Combining the '&' modifier with the
  30640. register constraint on A ensures that modifying A does not affect the
  30641. address referenced by B. Otherwise, the location of B is undefined if A
  30642. is modified before using B.
  30643. 'asm' supports operand modifiers on operands (for example '%k2' instead
  30644. of simply '%2'). Typically these qualifiers are hardware dependent.
  30645. The list of supported modifiers for x86 is found at *note x86 Operand
  30646. modifiers: x86Operandmodifiers.
  30647. If the C code that follows the 'asm' makes no use of any of the output
  30648. operands, use 'volatile' for the 'asm' statement to prevent the
  30649. optimizers from discarding the 'asm' statement as unneeded (see *note
  30650. Volatile::).
  30651. This code makes no use of the optional ASMSYMBOLICNAME. Therefore it
  30652. references the first output operand as '%0' (were there a second, it
  30653. would be '%1', etc). The number of the first input operand is one
  30654. greater than that of the last output operand. In this i386 example,
  30655. that makes 'Mask' referenced as '%1':
  30656. uint32_t Mask = 1234;
  30657. uint32_t Index;
  30658. asm ("bsfl %1, %0"
  30659. : "=r" (Index)
  30660. : "r" (Mask)
  30661. : "cc");
  30662. That code overwrites the variable 'Index' ('='), placing the value in a
  30663. register ('r'). Using the generic 'r' constraint instead of a
  30664. constraint for a specific register allows the compiler to pick the
  30665. register to use, which can result in more efficient code. This may not
  30666. be possible if an assembler instruction requires a specific register.
  30667. The following i386 example uses the ASMSYMBOLICNAME syntax. It
  30668. produces the same result as the code above, but some may consider it
  30669. more readable or more maintainable since reordering index numbers is not
  30670. necessary when adding or removing operands. The names 'aIndex' and
  30671. 'aMask' are only used in this example to emphasize which names get used
  30672. where. It is acceptable to reuse the names 'Index' and 'Mask'.
  30673. uint32_t Mask = 1234;
  30674. uint32_t Index;
  30675. asm ("bsfl %[aMask], %[aIndex]"
  30676. : [aIndex] "=r" (Index)
  30677. : [aMask] "r" (Mask)
  30678. : "cc");
  30679. Here are some more examples of output operands.
  30680. uint32_t c = 1;
  30681. uint32_t d;
  30682. uint32_t *e = &c;
  30683. asm ("mov %[e], %[d]"
  30684. : [d] "=rm" (d)
  30685. : [e] "rm" (*e));
  30686. Here, 'd' may either be in a register or in memory. Since the compiler
  30687. might already have the current value of the 'uint32_t' location pointed
  30688. to by 'e' in a register, you can enable it to choose the best location
  30689. for 'd' by specifying both constraints.
  30690. 6.47.2.4 Flag Output Operands
  30691. .............................
  30692. Some targets have a special register that holds the "flags" for the
  30693. result of an operation or comparison. Normally, the contents of that
  30694. register are either unmodifed by the asm, or the 'asm' statement is
  30695. considered to clobber the contents.
  30696. On some targets, a special form of output operand exists by which
  30697. conditions in the flags register may be outputs of the asm. The set of
  30698. conditions supported are target specific, but the general rule is that
  30699. the output variable must be a scalar integer, and the value is boolean.
  30700. When supported, the target defines the preprocessor symbol
  30701. '__GCC_ASM_FLAG_OUTPUTS__'.
  30702. Because of the special nature of the flag output operands, the
  30703. constraint may not include alternatives.
  30704. Most often, the target has only one flags register, and thus is an
  30705. implied operand of many instructions. In this case, the operand should
  30706. not be referenced within the assembler template via '%0' etc, as there's
  30707. no corresponding text in the assembly language.
  30708. ARM
  30709. AArch64
  30710. The flag output constraints for the ARM family are of the form
  30711. '=@ccCOND' where COND is one of the standard conditions defined in
  30712. the ARM ARM for 'ConditionHolds'.
  30713. 'eq'
  30714. Z flag set, or equal
  30715. 'ne'
  30716. Z flag clear or not equal
  30717. 'cs'
  30718. 'hs'
  30719. C flag set or unsigned greater than equal
  30720. 'cc'
  30721. 'lo'
  30722. C flag clear or unsigned less than
  30723. 'mi'
  30724. N flag set or "minus"
  30725. 'pl'
  30726. N flag clear or "plus"
  30727. 'vs'
  30728. V flag set or signed overflow
  30729. 'vc'
  30730. V flag clear
  30731. 'hi'
  30732. unsigned greater than
  30733. 'ls'
  30734. unsigned less than equal
  30735. 'ge'
  30736. signed greater than equal
  30737. 'lt'
  30738. signed less than
  30739. 'gt'
  30740. signed greater than
  30741. 'le'
  30742. signed less than equal
  30743. The flag output constraints are not supported in thumb1 mode.
  30744. x86 family
  30745. The flag output constraints for the x86 family are of the form
  30746. '=@ccCOND' where COND is one of the standard conditions defined in
  30747. the ISA manual for 'jCC' or 'setCC'.
  30748. 'a'
  30749. "above" or unsigned greater than
  30750. 'ae'
  30751. "above or equal" or unsigned greater than or equal
  30752. 'b'
  30753. "below" or unsigned less than
  30754. 'be'
  30755. "below or equal" or unsigned less than or equal
  30756. 'c'
  30757. carry flag set
  30758. 'e'
  30759. 'z'
  30760. "equal" or zero flag set
  30761. 'g'
  30762. signed greater than
  30763. 'ge'
  30764. signed greater than or equal
  30765. 'l'
  30766. signed less than
  30767. 'le'
  30768. signed less than or equal
  30769. 'o'
  30770. overflow flag set
  30771. 'p'
  30772. parity flag set
  30773. 's'
  30774. sign flag set
  30775. 'na'
  30776. 'nae'
  30777. 'nb'
  30778. 'nbe'
  30779. 'nc'
  30780. 'ne'
  30781. 'ng'
  30782. 'nge'
  30783. 'nl'
  30784. 'nle'
  30785. 'no'
  30786. 'np'
  30787. 'ns'
  30788. 'nz'
  30789. "not" FLAG, or inverted versions of those above
  30790. 6.47.2.5 Input Operands
  30791. .......................
  30792. Input operands make values from C variables and expressions available to
  30793. the assembly code.
  30794. Operands are separated by commas. Each operand has this format:
  30795. [ [ASMSYMBOLICNAME] ] CONSTRAINT (CEXPRESSION)
  30796. ASMSYMBOLICNAME
  30797. Specifies a symbolic name for the operand. Reference the name in
  30798. the assembler template by enclosing it in square brackets (i.e.
  30799. '%[Value]'). The scope of the name is the 'asm' statement that
  30800. contains the definition. Any valid C variable name is acceptable,
  30801. including names already defined in the surrounding code. No two
  30802. operands within the same 'asm' statement can use the same symbolic
  30803. name.
  30804. When not using an ASMSYMBOLICNAME, use the (zero-based) position of
  30805. the operand in the list of operands in the assembler template. For
  30806. example if there are two output operands and three inputs, use '%2'
  30807. in the template to refer to the first input operand, '%3' for the
  30808. second, and '%4' for the third.
  30809. CONSTRAINT
  30810. A string constant specifying constraints on the placement of the
  30811. operand; *Note Constraints::, for details.
  30812. Input constraint strings may not begin with either '=' or '+'.
  30813. When you list more than one possible location (for example,
  30814. '"irm"'), the compiler chooses the most efficient one based on the
  30815. current context. If you must use a specific register, but your
  30816. Machine Constraints do not provide sufficient control to select the
  30817. specific register you want, local register variables may provide a
  30818. solution (*note Local Register Variables::).
  30819. Input constraints can also be digits (for example, '"0"'). This
  30820. indicates that the specified input must be in the same place as the
  30821. output constraint at the (zero-based) index in the output
  30822. constraint list. When using ASMSYMBOLICNAME syntax for the output
  30823. operands, you may use these names (enclosed in brackets '[]')
  30824. instead of digits.
  30825. CEXPRESSION
  30826. This is the C variable or expression being passed to the 'asm'
  30827. statement as input. The enclosing parentheses are a required part
  30828. of the syntax.
  30829. When the compiler selects the registers to use to represent the input
  30830. operands, it does not use any of the clobbered registers (*note Clobbers
  30831. and Scratch Registers::).
  30832. If there are no output operands but there are input operands, place two
  30833. consecutive colons where the output operands would go:
  30834. __asm__ ("some instructions"
  30835. : /* No outputs. */
  30836. : "r" (Offset / 8));
  30837. *Warning:* Do _not_ modify the contents of input-only operands (except
  30838. for inputs tied to outputs). The compiler assumes that on exit from the
  30839. 'asm' statement these operands contain the same values as they had
  30840. before executing the statement. It is _not_ possible to use clobbers to
  30841. inform the compiler that the values in these inputs are changing. One
  30842. common work-around is to tie the changing input variable to an output
  30843. variable that never gets used. Note, however, that if the code that
  30844. follows the 'asm' statement makes no use of any of the output operands,
  30845. the GCC optimizers may discard the 'asm' statement as unneeded (see
  30846. *note Volatile::).
  30847. 'asm' supports operand modifiers on operands (for example '%k2' instead
  30848. of simply '%2'). Typically these qualifiers are hardware dependent.
  30849. The list of supported modifiers for x86 is found at *note x86 Operand
  30850. modifiers: x86Operandmodifiers.
  30851. In this example using the fictitious 'combine' instruction, the
  30852. constraint '"0"' for input operand 1 says that it must occupy the same
  30853. location as output operand 0. Only input operands may use numbers in
  30854. constraints, and they must each refer to an output operand. Only a
  30855. number (or the symbolic assembler name) in the constraint can guarantee
  30856. that one operand is in the same place as another. The mere fact that
  30857. 'foo' is the value of both operands is not enough to guarantee that they
  30858. are in the same place in the generated assembler code.
  30859. asm ("combine %2, %0"
  30860. : "=r" (foo)
  30861. : "0" (foo), "g" (bar));
  30862. Here is an example using symbolic names.
  30863. asm ("cmoveq %1, %2, %[result]"
  30864. : [result] "=r"(result)
  30865. : "r" (test), "r" (new), "[result]" (old));
  30866. 6.47.2.6 Clobbers and Scratch Registers
  30867. .......................................
  30868. While the compiler is aware of changes to entries listed in the output
  30869. operands, the inline 'asm' code may modify more than just the outputs.
  30870. For example, calculations may require additional registers, or the
  30871. processor may overwrite a register as a side effect of a particular
  30872. assembler instruction. In order to inform the compiler of these
  30873. changes, list them in the clobber list. Clobber list items are either
  30874. register names or the special clobbers (listed below). Each clobber
  30875. list item is a string constant enclosed in double quotes and separated
  30876. by commas.
  30877. Clobber descriptions may not in any way overlap with an input or output
  30878. operand. For example, you may not have an operand describing a register
  30879. class with one member when listing that register in the clobber list.
  30880. Variables declared to live in specific registers (*note Explicit
  30881. Register Variables::) and used as 'asm' input or output operands must
  30882. have no part mentioned in the clobber description. In particular, there
  30883. is no way to specify that input operands get modified without also
  30884. specifying them as output operands.
  30885. When the compiler selects which registers to use to represent input and
  30886. output operands, it does not use any of the clobbered registers. As a
  30887. result, clobbered registers are available for any use in the assembler
  30888. code.
  30889. Another restriction is that the clobber list should not contain the
  30890. stack pointer register. This is because the compiler requires the value
  30891. of the stack pointer to be the same after an 'asm' statement as it was
  30892. on entry to the statement. However, previous versions of GCC did not
  30893. enforce this rule and allowed the stack pointer to appear in the list,
  30894. with unclear semantics. This behavior is deprecated and listing the
  30895. stack pointer may become an error in future versions of GCC.
  30896. Here is a realistic example for the VAX showing the use of clobbered
  30897. registers:
  30898. asm volatile ("movc3 %0, %1, %2"
  30899. : /* No outputs. */
  30900. : "g" (from), "g" (to), "g" (count)
  30901. : "r0", "r1", "r2", "r3", "r4", "r5", "memory");
  30902. Also, there are two special clobber arguments:
  30903. '"cc"'
  30904. The '"cc"' clobber indicates that the assembler code modifies the
  30905. flags register. On some machines, GCC represents the condition
  30906. codes as a specific hardware register; '"cc"' serves to name this
  30907. register. On other machines, condition code handling is different,
  30908. and specifying '"cc"' has no effect. But it is valid no matter
  30909. what the target.
  30910. '"memory"'
  30911. The '"memory"' clobber tells the compiler that the assembly code
  30912. performs memory reads or writes to items other than those listed in
  30913. the input and output operands (for example, accessing the memory
  30914. pointed to by one of the input parameters). To ensure memory
  30915. contains correct values, GCC may need to flush specific register
  30916. values to memory before executing the 'asm'. Further, the compiler
  30917. does not assume that any values read from memory before an 'asm'
  30918. remain unchanged after that 'asm'; it reloads them as needed.
  30919. Using the '"memory"' clobber effectively forms a read/write memory
  30920. barrier for the compiler.
  30921. Note that this clobber does not prevent the _processor_ from doing
  30922. speculative reads past the 'asm' statement. To prevent that, you
  30923. need processor-specific fence instructions.
  30924. Flushing registers to memory has performance implications and may be an
  30925. issue for time-sensitive code. You can provide better information to
  30926. GCC to avoid this, as shown in the following examples. At a minimum,
  30927. aliasing rules allow GCC to know what memory _doesn't_ need to be
  30928. flushed.
  30929. Here is a fictitious sum of squares instruction, that takes two
  30930. pointers to floating point values in memory and produces a floating
  30931. point register output. Notice that 'x', and 'y' both appear twice in
  30932. the 'asm' parameters, once to specify memory accessed, and once to
  30933. specify a base register used by the 'asm'. You won't normally be
  30934. wasting a register by doing this as GCC can use the same register for
  30935. both purposes. However, it would be foolish to use both '%1' and '%3'
  30936. for 'x' in this 'asm' and expect them to be the same. In fact, '%3' may
  30937. well not be a register. It might be a symbolic memory reference to the
  30938. object pointed to by 'x'.
  30939. asm ("sumsq %0, %1, %2"
  30940. : "+f" (result)
  30941. : "r" (x), "r" (y), "m" (*x), "m" (*y));
  30942. Here is a fictitious '*z++ = *x++ * *y++' instruction. Notice that the
  30943. 'x', 'y' and 'z' pointer registers must be specified as input/output
  30944. because the 'asm' modifies them.
  30945. asm ("vecmul %0, %1, %2"
  30946. : "+r" (z), "+r" (x), "+r" (y), "=m" (*z)
  30947. : "m" (*x), "m" (*y));
  30948. An x86 example where the string memory argument is of unknown length.
  30949. asm("repne scasb"
  30950. : "=c" (count), "+D" (p)
  30951. : "m" (*(const char (*)[]) p), "0" (-1), "a" (0));
  30952. If you know the above will only be reading a ten byte array then you
  30953. could instead use a memory input like: '"m" (*(const char (*)[10]) p)'.
  30954. Here is an example of a PowerPC vector scale implemented in assembly,
  30955. complete with vector and condition code clobbers, and some initialized
  30956. offset registers that are unchanged by the 'asm'.
  30957. void
  30958. dscal (size_t n, double *x, double alpha)
  30959. {
  30960. asm ("/* lots of asm here */"
  30961. : "+m" (*(double (*)[n]) x), "+&r" (n), "+b" (x)
  30962. : "d" (alpha), "b" (32), "b" (48), "b" (64),
  30963. "b" (80), "b" (96), "b" (112)
  30964. : "cr0",
  30965. "vs32","vs33","vs34","vs35","vs36","vs37","vs38","vs39",
  30966. "vs40","vs41","vs42","vs43","vs44","vs45","vs46","vs47");
  30967. }
  30968. Rather than allocating fixed registers via clobbers to provide scratch
  30969. registers for an 'asm' statement, an alternative is to define a variable
  30970. and make it an early-clobber output as with 'a2' and 'a3' in the example
  30971. below. This gives the compiler register allocator more freedom. You
  30972. can also define a variable and make it an output tied to an input as
  30973. with 'a0' and 'a1', tied respectively to 'ap' and 'lda'. Of course,
  30974. with tied outputs your 'asm' can't use the input value after modifying
  30975. the output register since they are one and the same register. What's
  30976. more, if you omit the early-clobber on the output, it is possible that
  30977. GCC might allocate the same register to another of the inputs if GCC
  30978. could prove they had the same value on entry to the 'asm'. This is why
  30979. 'a1' has an early-clobber. Its tied input, 'lda' might conceivably be
  30980. known to have the value 16 and without an early-clobber share the same
  30981. register as '%11'. On the other hand, 'ap' can't be the same as any of
  30982. the other inputs, so an early-clobber on 'a0' is not needed. It is also
  30983. not desirable in this case. An early-clobber on 'a0' would cause GCC to
  30984. allocate a separate register for the '"m" (*(const double (*)[]) ap)'
  30985. input. Note that tying an input to an output is the way to set up an
  30986. initialized temporary register modified by an 'asm' statement. An input
  30987. not tied to an output is assumed by GCC to be unchanged, for example
  30988. '"b" (16)' below sets up '%11' to 16, and GCC might use that register in
  30989. following code if the value 16 happened to be needed. You can even use
  30990. a normal 'asm' output for a scratch if all inputs that might share the
  30991. same register are consumed before the scratch is used. The VSX
  30992. registers clobbered by the 'asm' statement could have used this
  30993. technique except for GCC's limit on the number of 'asm' parameters.
  30994. static void
  30995. dgemv_kernel_4x4 (long n, const double *ap, long lda,
  30996. const double *x, double *y, double alpha)
  30997. {
  30998. double *a0;
  30999. double *a1;
  31000. double *a2;
  31001. double *a3;
  31002. __asm__
  31003. (
  31004. /* lots of asm here */
  31005. "#n=%1 ap=%8=%12 lda=%13 x=%7=%10 y=%0=%2 alpha=%9 o16=%11\n"
  31006. "#a0=%3 a1=%4 a2=%5 a3=%6"
  31007. :
  31008. "+m" (*(double (*)[n]) y),
  31009. "+&r" (n), // 1
  31010. "+b" (y), // 2
  31011. "=b" (a0), // 3
  31012. "=&b" (a1), // 4
  31013. "=&b" (a2), // 5
  31014. "=&b" (a3) // 6
  31015. :
  31016. "m" (*(const double (*)[n]) x),
  31017. "m" (*(const double (*)[]) ap),
  31018. "d" (alpha), // 9
  31019. "r" (x), // 10
  31020. "b" (16), // 11
  31021. "3" (ap), // 12
  31022. "4" (lda) // 13
  31023. :
  31024. "cr0",
  31025. "vs32","vs33","vs34","vs35","vs36","vs37",
  31026. "vs40","vs41","vs42","vs43","vs44","vs45","vs46","vs47"
  31027. );
  31028. }
  31029. 6.47.2.7 Goto Labels
  31030. ....................
  31031. 'asm goto' allows assembly code to jump to one or more C labels. The
  31032. GOTOLABELS section in an 'asm goto' statement contains a comma-separated
  31033. list of all C labels to which the assembler code may jump. GCC assumes
  31034. that 'asm' execution falls through to the next statement (if this is not
  31035. the case, consider using the '__builtin_unreachable' intrinsic after the
  31036. 'asm' statement). Optimization of 'asm goto' may be improved by using
  31037. the 'hot' and 'cold' label attributes (*note Label Attributes::).
  31038. An 'asm goto' statement cannot have outputs. This is due to an
  31039. internal restriction of the compiler: control transfer instructions
  31040. cannot have outputs. If the assembler code does modify anything, use
  31041. the '"memory"' clobber to force the optimizers to flush all register
  31042. values to memory and reload them if necessary after the 'asm' statement.
  31043. Also note that an 'asm goto' statement is always implicitly considered
  31044. volatile.
  31045. To reference a label in the assembler template, prefix it with '%l'
  31046. (lowercase 'L') followed by its (zero-based) position in GOTOLABELS plus
  31047. the number of input operands. For example, if the 'asm' has three
  31048. inputs and references two labels, refer to the first label as '%l3' and
  31049. the second as '%l4').
  31050. Alternately, you can reference labels using the actual C label name
  31051. enclosed in brackets. For example, to reference a label named 'carry',
  31052. you can use '%l[carry]'. The label must still be listed in the
  31053. GOTOLABELS section when using this approach.
  31054. Here is an example of 'asm goto' for i386:
  31055. asm goto (
  31056. "btl %1, %0\n\t"
  31057. "jc %l2"
  31058. : /* No outputs. */
  31059. : "r" (p1), "r" (p2)
  31060. : "cc"
  31061. : carry);
  31062. return 0;
  31063. carry:
  31064. return 1;
  31065. The following example shows an 'asm goto' that uses a memory clobber.
  31066. int frob(int x)
  31067. {
  31068. int y;
  31069. asm goto ("frob %%r5, %1; jc %l[error]; mov (%2), %%r5"
  31070. : /* No outputs. */
  31071. : "r"(x), "r"(&y)
  31072. : "r5", "memory"
  31073. : error);
  31074. return y;
  31075. error:
  31076. return -1;
  31077. }
  31078. 6.47.2.8 x86 Operand Modifiers
  31079. ..............................
  31080. References to input, output, and goto operands in the assembler template
  31081. of extended 'asm' statements can use modifiers to affect the way the
  31082. operands are formatted in the code output to the assembler. For
  31083. example, the following code uses the 'h' and 'b' modifiers for x86:
  31084. uint16_t num;
  31085. asm volatile ("xchg %h0, %b0" : "+a" (num) );
  31086. These modifiers generate this assembler code:
  31087. xchg %ah, %al
  31088. The rest of this discussion uses the following code for illustrative
  31089. purposes.
  31090. int main()
  31091. {
  31092. int iInt = 1;
  31093. top:
  31094. asm volatile goto ("some assembler instructions here"
  31095. : /* No outputs. */
  31096. : "q" (iInt), "X" (sizeof(unsigned char) + 1), "i" (42)
  31097. : /* No clobbers. */
  31098. : top);
  31099. }
  31100. With no modifiers, this is what the output from the operands would be
  31101. for the 'att' and 'intel' dialects of assembler:
  31102. Operand 'att' 'intel'
  31103. -----------------------------------
  31104. '%0' '%eax' 'eax'
  31105. '%1' '$2' '2'
  31106. '%3' '$.L3' 'OFFSET
  31107. FLAT:.L3'
  31108. The table below shows the list of supported modifiers and their
  31109. effects.
  31110. Modifier Description Operand 'att' 'intel'
  31111. ------------------------------------------------------------------------------------
  31112. 'A' Print an absolute memory reference. '%A0' '*%rax' 'rax'
  31113. 'b' Print the QImode name of the register. '%b0' '%al' 'al'
  31114. 'c' Require a constant operand and print the '%c1' '2' '2'
  31115. constant expression with no punctuation.
  31116. 'E' Print the address in Double Integer '%E1' '%(rax)''[rax]'
  31117. (DImode) mode (8 bytes) when the target is
  31118. 64-bit. Otherwise mode is unspecified
  31119. (VOIDmode).
  31120. 'h' Print the QImode name for a "high" '%h0' '%ah' 'ah'
  31121. register.
  31122. 'H' Add 8 bytes to an offsettable memory '%H0' '8(%rax)''8[rax]'
  31123. reference. Useful when accessing the high
  31124. 8 bytes of SSE values. For a memref in
  31125. (%rax), it generates
  31126. 'k' Print the SImode name of the register. '%k0' '%eax' 'eax'
  31127. 'l' Print the label name with no punctuation. '%l3' '.L3' '.L3'
  31128. 'p' Print raw symbol name (without '%p2' '42' '42'
  31129. syntax-specific prefixes).
  31130. 'P' If used for a function, print the PLT
  31131. suffix and generate PIC code. For
  31132. example, emit 'foo@PLT' instead of 'foo'
  31133. for the function foo(). If used for a
  31134. constant, drop all syntax-specific
  31135. prefixes and issue the bare constant. See
  31136. 'p' above.
  31137. 'q' Print the DImode name of the register. '%q0' '%rax' 'rax'
  31138. 'w' Print the HImode name of the register. '%w0' '%ax' 'ax'
  31139. 'z' Print the opcode suffix for the size of '%z0' 'l'
  31140. the current integer operand (one of
  31141. 'b'/'w'/'l'/'q').
  31142. 'V' is a special modifier which prints the name of the full integer
  31143. register without '%'.
  31144. 6.47.2.9 x86 Floating-Point 'asm' Operands
  31145. ..........................................
  31146. On x86 targets, there are several rules on the usage of stack-like
  31147. registers in the operands of an 'asm'. These rules apply only to the
  31148. operands that are stack-like registers:
  31149. 1. Given a set of input registers that die in an 'asm', it is
  31150. necessary to know which are implicitly popped by the 'asm', and
  31151. which must be explicitly popped by GCC.
  31152. An input register that is implicitly popped by the 'asm' must be
  31153. explicitly clobbered, unless it is constrained to match an output
  31154. operand.
  31155. 2. For any input register that is implicitly popped by an 'asm', it is
  31156. necessary to know how to adjust the stack to compensate for the
  31157. pop. If any non-popped input is closer to the top of the reg-stack
  31158. than the implicitly popped register, it would not be possible to
  31159. know what the stack looked like--it's not clear how the rest of the
  31160. stack "slides up".
  31161. All implicitly popped input registers must be closer to the top of
  31162. the reg-stack than any input that is not implicitly popped.
  31163. It is possible that if an input dies in an 'asm', the compiler
  31164. might use the input register for an output reload. Consider this
  31165. example:
  31166. asm ("foo" : "=t" (a) : "f" (b));
  31167. This code says that input 'b' is not popped by the 'asm', and that
  31168. the 'asm' pushes a result onto the reg-stack, i.e., the stack is
  31169. one deeper after the 'asm' than it was before. But, it is possible
  31170. that reload may think that it can use the same register for both
  31171. the input and the output.
  31172. To prevent this from happening, if any input operand uses the 'f'
  31173. constraint, all output register constraints must use the '&'
  31174. early-clobber modifier.
  31175. The example above is correctly written as:
  31176. asm ("foo" : "=&t" (a) : "f" (b));
  31177. 3. Some operands need to be in particular places on the stack. All
  31178. output operands fall in this category--GCC has no other way to know
  31179. which registers the outputs appear in unless you indicate this in
  31180. the constraints.
  31181. Output operands must specifically indicate which register an output
  31182. appears in after an 'asm'. '=f' is not allowed: the operand
  31183. constraints must select a class with a single register.
  31184. 4. Output operands may not be "inserted" between existing stack
  31185. registers. Since no 387 opcode uses a read/write operand, all
  31186. output operands are dead before the 'asm', and are pushed by the
  31187. 'asm'. It makes no sense to push anywhere but the top of the
  31188. reg-stack.
  31189. Output operands must start at the top of the reg-stack: output
  31190. operands may not "skip" a register.
  31191. 5. Some 'asm' statements may need extra stack space for internal
  31192. calculations. This can be guaranteed by clobbering stack registers
  31193. unrelated to the inputs and outputs.
  31194. This 'asm' takes one input, which is internally popped, and produces
  31195. two outputs.
  31196. asm ("fsincos" : "=t" (cos), "=u" (sin) : "0" (inp));
  31197. This 'asm' takes two inputs, which are popped by the 'fyl2xp1' opcode,
  31198. and replaces them with one output. The 'st(1)' clobber is necessary for
  31199. the compiler to know that 'fyl2xp1' pops both inputs.
  31200. asm ("fyl2xp1" : "=t" (result) : "0" (x), "u" (y) : "st(1)");
  31201. 
  31202. File: gcc.info, Node: Constraints, Next: Asm Labels, Prev: Extended Asm, Up: Using Assembly Language with C
  31203. 6.47.3 Constraints for 'asm' Operands
  31204. -------------------------------------
  31205. Here are specific details on what constraint letters you can use with
  31206. 'asm' operands. Constraints can say whether an operand may be in a
  31207. register, and which kinds of register; whether the operand can be a
  31208. memory reference, and which kinds of address; whether the operand may be
  31209. an immediate constant, and which possible values it may have.
  31210. Constraints can also require two operands to match. Side-effects aren't
  31211. allowed in operands of inline 'asm', unless '<' or '>' constraints are
  31212. used, because there is no guarantee that the side effects will happen
  31213. exactly once in an instruction that can update the addressing register.
  31214. * Menu:
  31215. * Simple Constraints:: Basic use of constraints.
  31216. * Multi-Alternative:: When an insn has two alternative constraint-patterns.
  31217. * Modifiers:: More precise control over effects of constraints.
  31218. * Machine Constraints:: Special constraints for some particular machines.
  31219. 
  31220. File: gcc.info, Node: Simple Constraints, Next: Multi-Alternative, Up: Constraints
  31221. 6.47.3.1 Simple Constraints
  31222. ...........................
  31223. The simplest kind of constraint is a string full of letters, each of
  31224. which describes one kind of operand that is permitted. Here are the
  31225. letters that are allowed:
  31226. whitespace
  31227. Whitespace characters are ignored and can be inserted at any
  31228. position except the first. This enables each alternative for
  31229. different operands to be visually aligned in the machine
  31230. description even if they have different number of constraints and
  31231. modifiers.
  31232. 'm'
  31233. A memory operand is allowed, with any kind of address that the
  31234. machine supports in general. Note that the letter used for the
  31235. general memory constraint can be re-defined by a back end using the
  31236. 'TARGET_MEM_CONSTRAINT' macro.
  31237. 'o'
  31238. A memory operand is allowed, but only if the address is
  31239. "offsettable". This means that adding a small integer (actually,
  31240. the width in bytes of the operand, as determined by its machine
  31241. mode) may be added to the address and the result is also a valid
  31242. memory address.
  31243. For example, an address which is constant is offsettable; so is an
  31244. address that is the sum of a register and a constant (as long as a
  31245. slightly larger constant is also within the range of
  31246. address-offsets supported by the machine); but an autoincrement or
  31247. autodecrement address is not offsettable. More complicated
  31248. indirect/indexed addresses may or may not be offsettable depending
  31249. on the other addressing modes that the machine supports.
  31250. Note that in an output operand which can be matched by another
  31251. operand, the constraint letter 'o' is valid only when accompanied
  31252. by both '<' (if the target machine has predecrement addressing) and
  31253. '>' (if the target machine has preincrement addressing).
  31254. 'V'
  31255. A memory operand that is not offsettable. In other words, anything
  31256. that would fit the 'm' constraint but not the 'o' constraint.
  31257. '<'
  31258. A memory operand with autodecrement addressing (either predecrement
  31259. or postdecrement) is allowed. In inline 'asm' this constraint is
  31260. only allowed if the operand is used exactly once in an instruction
  31261. that can handle the side effects. Not using an operand with '<' in
  31262. constraint string in the inline 'asm' pattern at all or using it in
  31263. multiple instructions isn't valid, because the side effects
  31264. wouldn't be performed or would be performed more than once.
  31265. Furthermore, on some targets the operand with '<' in constraint
  31266. string must be accompanied by special instruction suffixes like
  31267. '%U0' instruction suffix on PowerPC or '%P0' on IA-64.
  31268. '>'
  31269. A memory operand with autoincrement addressing (either preincrement
  31270. or postincrement) is allowed. In inline 'asm' the same
  31271. restrictions as for '<' apply.
  31272. 'r'
  31273. A register operand is allowed provided that it is in a general
  31274. register.
  31275. 'i'
  31276. An immediate integer operand (one with constant value) is allowed.
  31277. This includes symbolic constants whose values will be known only at
  31278. assembly time or later.
  31279. 'n'
  31280. An immediate integer operand with a known numeric value is allowed.
  31281. Many systems cannot support assembly-time constants for operands
  31282. less than a word wide. Constraints for these operands should use
  31283. 'n' rather than 'i'.
  31284. 'I', 'J', 'K', ... 'P'
  31285. Other letters in the range 'I' through 'P' may be defined in a
  31286. machine-dependent fashion to permit immediate integer operands with
  31287. explicit integer values in specified ranges. For example, on the
  31288. 68000, 'I' is defined to stand for the range of values 1 to 8.
  31289. This is the range permitted as a shift count in the shift
  31290. instructions.
  31291. 'E'
  31292. An immediate floating operand (expression code 'const_double') is
  31293. allowed, but only if the target floating point format is the same
  31294. as that of the host machine (on which the compiler is running).
  31295. 'F'
  31296. An immediate floating operand (expression code 'const_double' or
  31297. 'const_vector') is allowed.
  31298. 'G', 'H'
  31299. 'G' and 'H' may be defined in a machine-dependent fashion to permit
  31300. immediate floating operands in particular ranges of values.
  31301. 's'
  31302. An immediate integer operand whose value is not an explicit integer
  31303. is allowed.
  31304. This might appear strange; if an insn allows a constant operand
  31305. with a value not known at compile time, it certainly must allow any
  31306. known value. So why use 's' instead of 'i'? Sometimes it allows
  31307. better code to be generated.
  31308. For example, on the 68000 in a fullword instruction it is possible
  31309. to use an immediate operand; but if the immediate value is between
  31310. -128 and 127, better code results from loading the value into a
  31311. register and using the register. This is because the load into the
  31312. register can be done with a 'moveq' instruction. We arrange for
  31313. this to happen by defining the letter 'K' to mean "any integer
  31314. outside the range -128 to 127", and then specifying 'Ks' in the
  31315. operand constraints.
  31316. 'g'
  31317. Any register, memory or immediate integer operand is allowed,
  31318. except for registers that are not general registers.
  31319. 'X'
  31320. Any operand whatsoever is allowed.
  31321. '0', '1', '2', ... '9'
  31322. An operand that matches the specified operand number is allowed.
  31323. If a digit is used together with letters within the same
  31324. alternative, the digit should come last.
  31325. This number is allowed to be more than a single digit. If multiple
  31326. digits are encountered consecutively, they are interpreted as a
  31327. single decimal integer. There is scant chance for ambiguity, since
  31328. to-date it has never been desirable that '10' be interpreted as
  31329. matching either operand 1 _or_ operand 0. Should this be desired,
  31330. one can use multiple alternatives instead.
  31331. This is called a "matching constraint" and what it really means is
  31332. that the assembler has only a single operand that fills two roles
  31333. which 'asm' distinguishes. For example, an add instruction uses
  31334. two input operands and an output operand, but on most CISC machines
  31335. an add instruction really has only two operands, one of them an
  31336. input-output operand:
  31337. addl #35,r12
  31338. Matching constraints are used in these circumstances. More
  31339. precisely, the two operands that match must include one input-only
  31340. operand and one output-only operand. Moreover, the digit must be a
  31341. smaller number than the number of the operand that uses it in the
  31342. constraint.
  31343. 'p'
  31344. An operand that is a valid memory address is allowed. This is for
  31345. "load address" and "push address" instructions.
  31346. 'p' in the constraint must be accompanied by 'address_operand' as
  31347. the predicate in the 'match_operand'. This predicate interprets
  31348. the mode specified in the 'match_operand' as the mode of the memory
  31349. reference for which the address would be valid.
  31350. OTHER-LETTERS
  31351. Other letters can be defined in machine-dependent fashion to stand
  31352. for particular classes of registers or other arbitrary operand
  31353. types. 'd', 'a' and 'f' are defined on the 68000/68020 to stand
  31354. for data, address and floating point registers.
  31355. 
  31356. File: gcc.info, Node: Multi-Alternative, Next: Modifiers, Prev: Simple Constraints, Up: Constraints
  31357. 6.47.3.2 Multiple Alternative Constraints
  31358. .........................................
  31359. Sometimes a single instruction has multiple alternative sets of possible
  31360. operands. For example, on the 68000, a logical-or instruction can
  31361. combine register or an immediate value into memory, or it can combine
  31362. any kind of operand into a register; but it cannot combine one memory
  31363. location into another.
  31364. These constraints are represented as multiple alternatives. An
  31365. alternative can be described by a series of letters for each operand.
  31366. The overall constraint for an operand is made from the letters for this
  31367. operand from the first alternative, a comma, the letters for this
  31368. operand from the second alternative, a comma, and so on until the last
  31369. alternative. All operands for a single instruction must have the same
  31370. number of alternatives.
  31371. So the first alternative for the 68000's logical-or could be written as
  31372. '"+m" (output) : "ir" (input)'. The second could be '"+r" (output):
  31373. "irm" (input)'. However, the fact that two memory locations cannot be
  31374. used in a single instruction prevents simply using '"+rm" (output) :
  31375. "irm" (input)'. Using multi-alternatives, this might be written as
  31376. '"+m,r" (output) : "ir,irm" (input)'. This describes all the available
  31377. alternatives to the compiler, allowing it to choose the most efficient
  31378. one for the current conditions.
  31379. There is no way within the template to determine which alternative was
  31380. chosen. However you may be able to wrap your 'asm' statements with
  31381. builtins such as '__builtin_constant_p' to achieve the desired results.
  31382. 
  31383. File: gcc.info, Node: Modifiers, Next: Machine Constraints, Prev: Multi-Alternative, Up: Constraints
  31384. 6.47.3.3 Constraint Modifier Characters
  31385. .......................................
  31386. Here are constraint modifier characters.
  31387. '='
  31388. Means that this operand is written to by this instruction: the
  31389. previous value is discarded and replaced by new data.
  31390. '+'
  31391. Means that this operand is both read and written by the
  31392. instruction.
  31393. When the compiler fixes up the operands to satisfy the constraints,
  31394. it needs to know which operands are read by the instruction and
  31395. which are written by it. '=' identifies an operand which is only
  31396. written; '+' identifies an operand that is both read and written;
  31397. all other operands are assumed to only be read.
  31398. If you specify '=' or '+' in a constraint, you put it in the first
  31399. character of the constraint string.
  31400. '&'
  31401. Means (in a particular alternative) that this operand is an
  31402. "earlyclobber" operand, which is written before the instruction is
  31403. finished using the input operands. Therefore, this operand may not
  31404. lie in a register that is read by the instruction or as part of any
  31405. memory address.
  31406. '&' applies only to the alternative in which it is written. In
  31407. constraints with multiple alternatives, sometimes one alternative
  31408. requires '&' while others do not. See, for example, the 'movdf'
  31409. insn of the 68000.
  31410. A operand which is read by the instruction can be tied to an
  31411. earlyclobber operand if its only use as an input occurs before the
  31412. early result is written. Adding alternatives of this form often
  31413. allows GCC to produce better code when only some of the read
  31414. operands can be affected by the earlyclobber. See, for example,
  31415. the 'mulsi3' insn of the ARM.
  31416. Furthermore, if the "earlyclobber" operand is also a read/write
  31417. operand, then that operand is written only after it's used.
  31418. '&' does not obviate the need to write '=' or '+'. As
  31419. "earlyclobber" operands are always written, a read-only
  31420. "earlyclobber" operand is ill-formed and will be rejected by the
  31421. compiler.
  31422. '%'
  31423. Declares the instruction to be commutative for this operand and the
  31424. following operand. This means that the compiler may interchange
  31425. the two operands if that is the cheapest way to make all operands
  31426. fit the constraints. '%' applies to all alternatives and must
  31427. appear as the first character in the constraint. Only read-only
  31428. operands can use '%'.
  31429. GCC can only handle one commutative pair in an asm; if you use
  31430. more, the compiler may fail. Note that you need not use the
  31431. modifier if the two alternatives are strictly identical; this would
  31432. only waste time in the reload pass.
  31433. 
  31434. File: gcc.info, Node: Machine Constraints, Prev: Modifiers, Up: Constraints
  31435. 6.47.3.4 Constraints for Particular Machines
  31436. ............................................
  31437. Whenever possible, you should use the general-purpose constraint letters
  31438. in 'asm' arguments, since they will convey meaning more readily to
  31439. people reading your code. Failing that, use the constraint letters that
  31440. usually have very similar meanings across architectures. The most
  31441. commonly used constraints are 'm' and 'r' (for memory and
  31442. general-purpose registers respectively; *note Simple Constraints::), and
  31443. 'I', usually the letter indicating the most common immediate-constant
  31444. format.
  31445. Each architecture defines additional constraints. These constraints
  31446. are used by the compiler itself for instruction generation, as well as
  31447. for 'asm' statements; therefore, some of the constraints are not
  31448. particularly useful for 'asm'. Here is a summary of some of the
  31449. machine-dependent constraints available on some particular machines; it
  31450. includes both constraints that are useful for 'asm' and constraints that
  31451. aren't. The compiler source file mentioned in the table heading for
  31452. each architecture is the definitive reference for the meanings of that
  31453. architecture's constraints.
  31454. _AArch64 family--'config/aarch64/constraints.md'_
  31455. 'k'
  31456. The stack pointer register ('SP')
  31457. 'w'
  31458. Floating point register, Advanced SIMD vector register or SVE
  31459. vector register
  31460. 'x'
  31461. Like 'w', but restricted to registers 0 to 15 inclusive.
  31462. 'y'
  31463. Like 'w', but restricted to registers 0 to 7 inclusive.
  31464. 'Upl'
  31465. One of the low eight SVE predicate registers ('P0' to 'P7')
  31466. 'Upa'
  31467. Any of the SVE predicate registers ('P0' to 'P15')
  31468. 'I'
  31469. Integer constant that is valid as an immediate operand in an
  31470. 'ADD' instruction
  31471. 'J'
  31472. Integer constant that is valid as an immediate operand in a
  31473. 'SUB' instruction (once negated)
  31474. 'K'
  31475. Integer constant that can be used with a 32-bit logical
  31476. instruction
  31477. 'L'
  31478. Integer constant that can be used with a 64-bit logical
  31479. instruction
  31480. 'M'
  31481. Integer constant that is valid as an immediate operand in a
  31482. 32-bit 'MOV' pseudo instruction. The 'MOV' may be assembled
  31483. to one of several different machine instructions depending on
  31484. the value
  31485. 'N'
  31486. Integer constant that is valid as an immediate operand in a
  31487. 64-bit 'MOV' pseudo instruction
  31488. 'S'
  31489. An absolute symbolic address or a label reference
  31490. 'Y'
  31491. Floating point constant zero
  31492. 'Z'
  31493. Integer constant zero
  31494. 'Ush'
  31495. The high part (bits 12 and upwards) of the pc-relative address
  31496. of a symbol within 4GB of the instruction
  31497. 'Q'
  31498. A memory address which uses a single base register with no
  31499. offset
  31500. 'Ump'
  31501. A memory address suitable for a load/store pair instruction in
  31502. SI, DI, SF and DF modes
  31503. _AMD GCN --'config/gcn/constraints.md'_
  31504. 'I'
  31505. Immediate integer in the range -16 to 64
  31506. 'J'
  31507. Immediate 16-bit signed integer
  31508. 'Kf'
  31509. Immediate constant -1
  31510. 'L'
  31511. Immediate 15-bit unsigned integer
  31512. 'A'
  31513. Immediate constant that can be inlined in an instruction
  31514. encoding: integer -16..64, or float 0.0, +/-0.5, +/-1.0,
  31515. +/-2.0, +/-4.0, 1.0/(2.0*PI)
  31516. 'B'
  31517. Immediate 32-bit signed integer that can be attached to an
  31518. instruction encoding
  31519. 'C'
  31520. Immediate 32-bit integer in range -16..4294967295 (i.e.
  31521. 32-bit unsigned integer or 'A' constraint)
  31522. 'DA'
  31523. Immediate 64-bit constant that can be split into two 'A'
  31524. constants
  31525. 'DB'
  31526. Immediate 64-bit constant that can be split into two 'B'
  31527. constants
  31528. 'U'
  31529. Any 'unspec'
  31530. 'Y'
  31531. Any 'symbol_ref' or 'label_ref'
  31532. 'v'
  31533. VGPR register
  31534. 'Sg'
  31535. SGPR register
  31536. 'SD'
  31537. SGPR registers valid for instruction destinations, including
  31538. VCC, M0 and EXEC
  31539. 'SS'
  31540. SGPR registers valid for instruction sources, including VCC,
  31541. M0, EXEC and SCC
  31542. 'Sm'
  31543. SGPR registers valid as a source for scalar memory
  31544. instructions (excludes M0 and EXEC)
  31545. 'Sv'
  31546. SGPR registers valid as a source or destination for vector
  31547. instructions (excludes EXEC)
  31548. 'ca'
  31549. All condition registers: SCC, VCCZ, EXECZ
  31550. 'cs'
  31551. Scalar condition register: SCC
  31552. 'cV'
  31553. Vector condition register: VCC, VCC_LO, VCC_HI
  31554. 'e'
  31555. EXEC register (EXEC_LO and EXEC_HI)
  31556. 'RB'
  31557. Memory operand with address space suitable for 'buffer_*'
  31558. instructions
  31559. 'RF'
  31560. Memory operand with address space suitable for 'flat_*'
  31561. instructions
  31562. 'RS'
  31563. Memory operand with address space suitable for 's_*'
  31564. instructions
  31565. 'RL'
  31566. Memory operand with address space suitable for 'ds_*' LDS
  31567. instructions
  31568. 'RG'
  31569. Memory operand with address space suitable for 'ds_*' GDS
  31570. instructions
  31571. 'RD'
  31572. Memory operand with address space suitable for any 'ds_*'
  31573. instructions
  31574. 'RM'
  31575. Memory operand with address space suitable for 'global_*'
  31576. instructions
  31577. _ARC --'config/arc/constraints.md'_
  31578. 'q'
  31579. Registers usable in ARCompact 16-bit instructions: 'r0'-'r3',
  31580. 'r12'-'r15'. This constraint can only match when the '-mq'
  31581. option is in effect.
  31582. 'e'
  31583. Registers usable as base-regs of memory addresses in ARCompact
  31584. 16-bit memory instructions: 'r0'-'r3', 'r12'-'r15', 'sp'.
  31585. This constraint can only match when the '-mq' option is in
  31586. effect.
  31587. 'D'
  31588. ARC FPX (dpfp) 64-bit registers. 'D0', 'D1'.
  31589. 'I'
  31590. A signed 12-bit integer constant.
  31591. 'Cal'
  31592. constant for arithmetic/logical operations. This might be any
  31593. constant that can be put into a long immediate by the assmbler
  31594. or linker without involving a PIC relocation.
  31595. 'K'
  31596. A 3-bit unsigned integer constant.
  31597. 'L'
  31598. A 6-bit unsigned integer constant.
  31599. 'CnL'
  31600. One's complement of a 6-bit unsigned integer constant.
  31601. 'CmL'
  31602. Two's complement of a 6-bit unsigned integer constant.
  31603. 'M'
  31604. A 5-bit unsigned integer constant.
  31605. 'O'
  31606. A 7-bit unsigned integer constant.
  31607. 'P'
  31608. A 8-bit unsigned integer constant.
  31609. 'H'
  31610. Any const_double value.
  31611. _ARM family--'config/arm/constraints.md'_
  31612. 'h'
  31613. In Thumb state, the core registers 'r8'-'r15'.
  31614. 'k'
  31615. The stack pointer register.
  31616. 'l'
  31617. In Thumb State the core registers 'r0'-'r7'. In ARM state
  31618. this is an alias for the 'r' constraint.
  31619. 't'
  31620. VFP floating-point registers 's0'-'s31'. Used for 32 bit
  31621. values.
  31622. 'w'
  31623. VFP floating-point registers 'd0'-'d31' and the appropriate
  31624. subset 'd0'-'d15' based on command line options. Used for 64
  31625. bit values only. Not valid for Thumb1.
  31626. 'y'
  31627. The iWMMX co-processor registers.
  31628. 'z'
  31629. The iWMMX GR registers.
  31630. 'G'
  31631. The floating-point constant 0.0
  31632. 'I'
  31633. Integer that is valid as an immediate operand in a data
  31634. processing instruction. That is, an integer in the range 0 to
  31635. 255 rotated by a multiple of 2
  31636. 'J'
  31637. Integer in the range -4095 to 4095
  31638. 'K'
  31639. Integer that satisfies constraint 'I' when inverted (ones
  31640. complement)
  31641. 'L'
  31642. Integer that satisfies constraint 'I' when negated (twos
  31643. complement)
  31644. 'M'
  31645. Integer in the range 0 to 32
  31646. 'Q'
  31647. A memory reference where the exact address is in a single
  31648. register (''m'' is preferable for 'asm' statements)
  31649. 'R'
  31650. An item in the constant pool
  31651. 'S'
  31652. A symbol in the text segment of the current file
  31653. 'Uv'
  31654. A memory reference suitable for VFP load/store insns
  31655. (reg+constant offset)
  31656. 'Uy'
  31657. A memory reference suitable for iWMMXt load/store
  31658. instructions.
  31659. 'Uq'
  31660. A memory reference suitable for the ARMv4 ldrsb instruction.
  31661. _AVR family--'config/avr/constraints.md'_
  31662. 'l'
  31663. Registers from r0 to r15
  31664. 'a'
  31665. Registers from r16 to r23
  31666. 'd'
  31667. Registers from r16 to r31
  31668. 'w'
  31669. Registers from r24 to r31. These registers can be used in
  31670. 'adiw' command
  31671. 'e'
  31672. Pointer register (r26-r31)
  31673. 'b'
  31674. Base pointer register (r28-r31)
  31675. 'q'
  31676. Stack pointer register (SPH:SPL)
  31677. 't'
  31678. Temporary register r0
  31679. 'x'
  31680. Register pair X (r27:r26)
  31681. 'y'
  31682. Register pair Y (r29:r28)
  31683. 'z'
  31684. Register pair Z (r31:r30)
  31685. 'I'
  31686. Constant greater than -1, less than 64
  31687. 'J'
  31688. Constant greater than -64, less than 1
  31689. 'K'
  31690. Constant integer 2
  31691. 'L'
  31692. Constant integer 0
  31693. 'M'
  31694. Constant that fits in 8 bits
  31695. 'N'
  31696. Constant integer -1
  31697. 'O'
  31698. Constant integer 8, 16, or 24
  31699. 'P'
  31700. Constant integer 1
  31701. 'G'
  31702. A floating point constant 0.0
  31703. 'Q'
  31704. A memory address based on Y or Z pointer with displacement.
  31705. _Blackfin family--'config/bfin/constraints.md'_
  31706. 'a'
  31707. P register
  31708. 'd'
  31709. D register
  31710. 'z'
  31711. A call clobbered P register.
  31712. 'qN'
  31713. A single register. If N is in the range 0 to 7, the
  31714. corresponding D register. If it is 'A', then the register P0.
  31715. 'D'
  31716. Even-numbered D register
  31717. 'W'
  31718. Odd-numbered D register
  31719. 'e'
  31720. Accumulator register.
  31721. 'A'
  31722. Even-numbered accumulator register.
  31723. 'B'
  31724. Odd-numbered accumulator register.
  31725. 'b'
  31726. I register
  31727. 'v'
  31728. B register
  31729. 'f'
  31730. M register
  31731. 'c'
  31732. Registers used for circular buffering, i.e. I, B, or L
  31733. registers.
  31734. 'C'
  31735. The CC register.
  31736. 't'
  31737. LT0 or LT1.
  31738. 'k'
  31739. LC0 or LC1.
  31740. 'u'
  31741. LB0 or LB1.
  31742. 'x'
  31743. Any D, P, B, M, I or L register.
  31744. 'y'
  31745. Additional registers typically used only in prologues and
  31746. epilogues: RETS, RETN, RETI, RETX, RETE, ASTAT, SEQSTAT and
  31747. USP.
  31748. 'w'
  31749. Any register except accumulators or CC.
  31750. 'Ksh'
  31751. Signed 16 bit integer (in the range -32768 to 32767)
  31752. 'Kuh'
  31753. Unsigned 16 bit integer (in the range 0 to 65535)
  31754. 'Ks7'
  31755. Signed 7 bit integer (in the range -64 to 63)
  31756. 'Ku7'
  31757. Unsigned 7 bit integer (in the range 0 to 127)
  31758. 'Ku5'
  31759. Unsigned 5 bit integer (in the range 0 to 31)
  31760. 'Ks4'
  31761. Signed 4 bit integer (in the range -8 to 7)
  31762. 'Ks3'
  31763. Signed 3 bit integer (in the range -3 to 4)
  31764. 'Ku3'
  31765. Unsigned 3 bit integer (in the range 0 to 7)
  31766. 'PN'
  31767. Constant N, where N is a single-digit constant in the range 0
  31768. to 4.
  31769. 'PA'
  31770. An integer equal to one of the MACFLAG_XXX constants that is
  31771. suitable for use with either accumulator.
  31772. 'PB'
  31773. An integer equal to one of the MACFLAG_XXX constants that is
  31774. suitable for use only with accumulator A1.
  31775. 'M1'
  31776. Constant 255.
  31777. 'M2'
  31778. Constant 65535.
  31779. 'J'
  31780. An integer constant with exactly a single bit set.
  31781. 'L'
  31782. An integer constant with all bits set except exactly one.
  31783. 'H'
  31784. 'Q'
  31785. Any SYMBOL_REF.
  31786. _CR16 Architecture--'config/cr16/cr16.h'_
  31787. 'b'
  31788. Registers from r0 to r14 (registers without stack pointer)
  31789. 't'
  31790. Register from r0 to r11 (all 16-bit registers)
  31791. 'p'
  31792. Register from r12 to r15 (all 32-bit registers)
  31793. 'I'
  31794. Signed constant that fits in 4 bits
  31795. 'J'
  31796. Signed constant that fits in 5 bits
  31797. 'K'
  31798. Signed constant that fits in 6 bits
  31799. 'L'
  31800. Unsigned constant that fits in 4 bits
  31801. 'M'
  31802. Signed constant that fits in 32 bits
  31803. 'N'
  31804. Check for 64 bits wide constants for add/sub instructions
  31805. 'G'
  31806. Floating point constant that is legal for store immediate
  31807. _C-SKY--'config/csky/constraints.md'_
  31808. 'a'
  31809. The mini registers r0 - r7.
  31810. 'b'
  31811. The low registers r0 - r15.
  31812. 'c'
  31813. C register.
  31814. 'y'
  31815. HI and LO registers.
  31816. 'l'
  31817. LO register.
  31818. 'h'
  31819. HI register.
  31820. 'v'
  31821. Vector registers.
  31822. 'z'
  31823. Stack pointer register (SP).
  31824. _Epiphany--'config/epiphany/constraints.md'_
  31825. 'U16'
  31826. An unsigned 16-bit constant.
  31827. 'K'
  31828. An unsigned 5-bit constant.
  31829. 'L'
  31830. A signed 11-bit constant.
  31831. 'Cm1'
  31832. A signed 11-bit constant added to -1. Can only match when the
  31833. '-m1reg-REG' option is active.
  31834. 'Cl1'
  31835. Left-shift of -1, i.e., a bit mask with a block of leading
  31836. ones, the rest being a block of trailing zeroes. Can only
  31837. match when the '-m1reg-REG' option is active.
  31838. 'Cr1'
  31839. Right-shift of -1, i.e., a bit mask with a trailing block of
  31840. ones, the rest being zeroes. Or to put it another way, one
  31841. less than a power of two. Can only match when the
  31842. '-m1reg-REG' option is active.
  31843. 'Cal'
  31844. Constant for arithmetic/logical operations. This is like 'i',
  31845. except that for position independent code, no symbols /
  31846. expressions needing relocations are allowed.
  31847. 'Csy'
  31848. Symbolic constant for call/jump instruction.
  31849. 'Rcs'
  31850. The register class usable in short insns. This is a register
  31851. class constraint, and can thus drive register allocation.
  31852. This constraint won't match unless '-mprefer-short-insn-regs'
  31853. is in effect.
  31854. 'Rsc'
  31855. The the register class of registers that can be used to hold a
  31856. sibcall call address. I.e., a caller-saved register.
  31857. 'Rct'
  31858. Core control register class.
  31859. 'Rgs'
  31860. The register group usable in short insns. This constraint
  31861. does not use a register class, so that it only passively
  31862. matches suitable registers, and doesn't drive register
  31863. allocation.
  31864. 'Rra'
  31865. Matches the return address if it can be replaced with the link
  31866. register.
  31867. 'Rcc'
  31868. Matches the integer condition code register.
  31869. 'Sra'
  31870. Matches the return address if it is in a stack slot.
  31871. 'Cfm'
  31872. Matches control register values to switch fp mode, which are
  31873. encapsulated in 'UNSPEC_FP_MODE'.
  31874. _FRV--'config/frv/frv.h'_
  31875. 'a'
  31876. Register in the class 'ACC_REGS' ('acc0' to 'acc7').
  31877. 'b'
  31878. Register in the class 'EVEN_ACC_REGS' ('acc0' to 'acc7').
  31879. 'c'
  31880. Register in the class 'CC_REGS' ('fcc0' to 'fcc3' and 'icc0'
  31881. to 'icc3').
  31882. 'd'
  31883. Register in the class 'GPR_REGS' ('gr0' to 'gr63').
  31884. 'e'
  31885. Register in the class 'EVEN_REGS' ('gr0' to 'gr63'). Odd
  31886. registers are excluded not in the class but through the use of
  31887. a machine mode larger than 4 bytes.
  31888. 'f'
  31889. Register in the class 'FPR_REGS' ('fr0' to 'fr63').
  31890. 'h'
  31891. Register in the class 'FEVEN_REGS' ('fr0' to 'fr63'). Odd
  31892. registers are excluded not in the class but through the use of
  31893. a machine mode larger than 4 bytes.
  31894. 'l'
  31895. Register in the class 'LR_REG' (the 'lr' register).
  31896. 'q'
  31897. Register in the class 'QUAD_REGS' ('gr2' to 'gr63'). Register
  31898. numbers not divisible by 4 are excluded not in the class but
  31899. through the use of a machine mode larger than 8 bytes.
  31900. 't'
  31901. Register in the class 'ICC_REGS' ('icc0' to 'icc3').
  31902. 'u'
  31903. Register in the class 'FCC_REGS' ('fcc0' to 'fcc3').
  31904. 'v'
  31905. Register in the class 'ICR_REGS' ('cc4' to 'cc7').
  31906. 'w'
  31907. Register in the class 'FCR_REGS' ('cc0' to 'cc3').
  31908. 'x'
  31909. Register in the class 'QUAD_FPR_REGS' ('fr0' to 'fr63').
  31910. Register numbers not divisible by 4 are excluded not in the
  31911. class but through the use of a machine mode larger than 8
  31912. bytes.
  31913. 'z'
  31914. Register in the class 'SPR_REGS' ('lcr' and 'lr').
  31915. 'A'
  31916. Register in the class 'QUAD_ACC_REGS' ('acc0' to 'acc7').
  31917. 'B'
  31918. Register in the class 'ACCG_REGS' ('accg0' to 'accg7').
  31919. 'C'
  31920. Register in the class 'CR_REGS' ('cc0' to 'cc7').
  31921. 'G'
  31922. Floating point constant zero
  31923. 'I'
  31924. 6-bit signed integer constant
  31925. 'J'
  31926. 10-bit signed integer constant
  31927. 'L'
  31928. 16-bit signed integer constant
  31929. 'M'
  31930. 16-bit unsigned integer constant
  31931. 'N'
  31932. 12-bit signed integer constant that is negative--i.e. in the
  31933. range of -2048 to -1
  31934. 'O'
  31935. Constant zero
  31936. 'P'
  31937. 12-bit signed integer constant that is greater than zero--i.e.
  31938. in the range of 1 to 2047.
  31939. _FT32--'config/ft32/constraints.md'_
  31940. 'A'
  31941. An absolute address
  31942. 'B'
  31943. An offset address
  31944. 'W'
  31945. A register indirect memory operand
  31946. 'e'
  31947. An offset address.
  31948. 'f'
  31949. An offset address.
  31950. 'O'
  31951. The constant zero or one
  31952. 'I'
  31953. A 16-bit signed constant (-32768 ... 32767)
  31954. 'w'
  31955. A bitfield mask suitable for bext or bins
  31956. 'x'
  31957. An inverted bitfield mask suitable for bext or bins
  31958. 'L'
  31959. A 16-bit unsigned constant, multiple of 4 (0 ... 65532)
  31960. 'S'
  31961. A 20-bit signed constant (-524288 ... 524287)
  31962. 'b'
  31963. A constant for a bitfield width (1 ... 16)
  31964. 'KA'
  31965. A 10-bit signed constant (-512 ... 511)
  31966. _Hewlett-Packard PA-RISC--'config/pa/pa.h'_
  31967. 'a'
  31968. General register 1
  31969. 'f'
  31970. Floating point register
  31971. 'q'
  31972. Shift amount register
  31973. 'x'
  31974. Floating point register (deprecated)
  31975. 'y'
  31976. Upper floating point register (32-bit), floating point
  31977. register (64-bit)
  31978. 'Z'
  31979. Any register
  31980. 'I'
  31981. Signed 11-bit integer constant
  31982. 'J'
  31983. Signed 14-bit integer constant
  31984. 'K'
  31985. Integer constant that can be deposited with a 'zdepi'
  31986. instruction
  31987. 'L'
  31988. Signed 5-bit integer constant
  31989. 'M'
  31990. Integer constant 0
  31991. 'N'
  31992. Integer constant that can be loaded with a 'ldil' instruction
  31993. 'O'
  31994. Integer constant whose value plus one is a power of 2
  31995. 'P'
  31996. Integer constant that can be used for 'and' operations in
  31997. 'depi' and 'extru' instructions
  31998. 'S'
  31999. Integer constant 31
  32000. 'U'
  32001. Integer constant 63
  32002. 'G'
  32003. Floating-point constant 0.0
  32004. 'A'
  32005. A 'lo_sum' data-linkage-table memory operand
  32006. 'Q'
  32007. A memory operand that can be used as the destination operand
  32008. of an integer store instruction
  32009. 'R'
  32010. A scaled or unscaled indexed memory operand
  32011. 'T'
  32012. A memory operand for floating-point loads and stores
  32013. 'W'
  32014. A register indirect memory operand
  32015. _Intel IA-64--'config/ia64/ia64.h'_
  32016. 'a'
  32017. General register 'r0' to 'r3' for 'addl' instruction
  32018. 'b'
  32019. Branch register
  32020. 'c'
  32021. Predicate register ('c' as in "conditional")
  32022. 'd'
  32023. Application register residing in M-unit
  32024. 'e'
  32025. Application register residing in I-unit
  32026. 'f'
  32027. Floating-point register
  32028. 'm'
  32029. Memory operand. If used together with '<' or '>', the operand
  32030. can have postincrement and postdecrement which require
  32031. printing with '%Pn' on IA-64.
  32032. 'G'
  32033. Floating-point constant 0.0 or 1.0
  32034. 'I'
  32035. 14-bit signed integer constant
  32036. 'J'
  32037. 22-bit signed integer constant
  32038. 'K'
  32039. 8-bit signed integer constant for logical instructions
  32040. 'L'
  32041. 8-bit adjusted signed integer constant for compare pseudo-ops
  32042. 'M'
  32043. 6-bit unsigned integer constant for shift counts
  32044. 'N'
  32045. 9-bit signed integer constant for load and store
  32046. postincrements
  32047. 'O'
  32048. The constant zero
  32049. 'P'
  32050. 0 or -1 for 'dep' instruction
  32051. 'Q'
  32052. Non-volatile memory for floating-point loads and stores
  32053. 'R'
  32054. Integer constant in the range 1 to 4 for 'shladd' instruction
  32055. 'S'
  32056. Memory operand except postincrement and postdecrement. This
  32057. is now roughly the same as 'm' when not used together with '<'
  32058. or '>'.
  32059. _M32C--'config/m32c/m32c.c'_
  32060. 'Rsp'
  32061. 'Rfb'
  32062. 'Rsb'
  32063. '$sp', '$fb', '$sb'.
  32064. 'Rcr'
  32065. Any control register, when they're 16 bits wide (nothing if
  32066. control registers are 24 bits wide)
  32067. 'Rcl'
  32068. Any control register, when they're 24 bits wide.
  32069. 'R0w'
  32070. 'R1w'
  32071. 'R2w'
  32072. 'R3w'
  32073. $r0, $r1, $r2, $r3.
  32074. 'R02'
  32075. $r0 or $r2, or $r2r0 for 32 bit values.
  32076. 'R13'
  32077. $r1 or $r3, or $r3r1 for 32 bit values.
  32078. 'Rdi'
  32079. A register that can hold a 64 bit value.
  32080. 'Rhl'
  32081. $r0 or $r1 (registers with addressable high/low bytes)
  32082. 'R23'
  32083. $r2 or $r3
  32084. 'Raa'
  32085. Address registers
  32086. 'Raw'
  32087. Address registers when they're 16 bits wide.
  32088. 'Ral'
  32089. Address registers when they're 24 bits wide.
  32090. 'Rqi'
  32091. Registers that can hold QI values.
  32092. 'Rad'
  32093. Registers that can be used with displacements ($a0, $a1, $sb).
  32094. 'Rsi'
  32095. Registers that can hold 32 bit values.
  32096. 'Rhi'
  32097. Registers that can hold 16 bit values.
  32098. 'Rhc'
  32099. Registers chat can hold 16 bit values, including all control
  32100. registers.
  32101. 'Rra'
  32102. $r0 through R1, plus $a0 and $a1.
  32103. 'Rfl'
  32104. The flags register.
  32105. 'Rmm'
  32106. The memory-based pseudo-registers $mem0 through $mem15.
  32107. 'Rpi'
  32108. Registers that can hold pointers (16 bit registers for r8c,
  32109. m16c; 24 bit registers for m32cm, m32c).
  32110. 'Rpa'
  32111. Matches multiple registers in a PARALLEL to form a larger
  32112. register. Used to match function return values.
  32113. 'Is3'
  32114. -8 ... 7
  32115. 'IS1'
  32116. -128 ... 127
  32117. 'IS2'
  32118. -32768 ... 32767
  32119. 'IU2'
  32120. 0 ... 65535
  32121. 'In4'
  32122. -8 ... -1 or 1 ... 8
  32123. 'In5'
  32124. -16 ... -1 or 1 ... 16
  32125. 'In6'
  32126. -32 ... -1 or 1 ... 32
  32127. 'IM2'
  32128. -65536 ... -1
  32129. 'Ilb'
  32130. An 8 bit value with exactly one bit set.
  32131. 'Ilw'
  32132. A 16 bit value with exactly one bit set.
  32133. 'Sd'
  32134. The common src/dest memory addressing modes.
  32135. 'Sa'
  32136. Memory addressed using $a0 or $a1.
  32137. 'Si'
  32138. Memory addressed with immediate addresses.
  32139. 'Ss'
  32140. Memory addressed using the stack pointer ($sp).
  32141. 'Sf'
  32142. Memory addressed using the frame base register ($fb).
  32143. 'Ss'
  32144. Memory addressed using the small base register ($sb).
  32145. 'S1'
  32146. $r1h
  32147. _MicroBlaze--'config/microblaze/constraints.md'_
  32148. 'd'
  32149. A general register ('r0' to 'r31').
  32150. 'z'
  32151. A status register ('rmsr', '$fcc1' to '$fcc7').
  32152. _MIPS--'config/mips/constraints.md'_
  32153. 'd'
  32154. A general-purpose register. This is equivalent to 'r' unless
  32155. generating MIPS16 code, in which case the MIPS16 register set
  32156. is used.
  32157. 'f'
  32158. A floating-point register (if available).
  32159. 'h'
  32160. Formerly the 'hi' register. This constraint is no longer
  32161. supported.
  32162. 'l'
  32163. The 'lo' register. Use this register to store values that are
  32164. no bigger than a word.
  32165. 'x'
  32166. The concatenated 'hi' and 'lo' registers. Use this register
  32167. to store doubleword values.
  32168. 'c'
  32169. A register suitable for use in an indirect jump. This will
  32170. always be '$25' for '-mabicalls'.
  32171. 'v'
  32172. Register '$3'. Do not use this constraint in new code; it is
  32173. retained only for compatibility with glibc.
  32174. 'y'
  32175. Equivalent to 'r'; retained for backwards compatibility.
  32176. 'z'
  32177. A floating-point condition code register.
  32178. 'I'
  32179. A signed 16-bit constant (for arithmetic instructions).
  32180. 'J'
  32181. Integer zero.
  32182. 'K'
  32183. An unsigned 16-bit constant (for logic instructions).
  32184. 'L'
  32185. A signed 32-bit constant in which the lower 16 bits are zero.
  32186. Such constants can be loaded using 'lui'.
  32187. 'M'
  32188. A constant that cannot be loaded using 'lui', 'addiu' or
  32189. 'ori'.
  32190. 'N'
  32191. A constant in the range -65535 to -1 (inclusive).
  32192. 'O'
  32193. A signed 15-bit constant.
  32194. 'P'
  32195. A constant in the range 1 to 65535 (inclusive).
  32196. 'G'
  32197. Floating-point zero.
  32198. 'R'
  32199. An address that can be used in a non-macro load or store.
  32200. 'ZC'
  32201. A memory operand whose address is formed by a base register
  32202. and offset that is suitable for use in instructions with the
  32203. same addressing mode as 'll' and 'sc'.
  32204. 'ZD'
  32205. An address suitable for a 'prefetch' instruction, or for any
  32206. other instruction with the same addressing mode as 'prefetch'.
  32207. _Motorola 680x0--'config/m68k/constraints.md'_
  32208. 'a'
  32209. Address register
  32210. 'd'
  32211. Data register
  32212. 'f'
  32213. 68881 floating-point register, if available
  32214. 'I'
  32215. Integer in the range 1 to 8
  32216. 'J'
  32217. 16-bit signed number
  32218. 'K'
  32219. Signed number whose magnitude is greater than 0x80
  32220. 'L'
  32221. Integer in the range -8 to -1
  32222. 'M'
  32223. Signed number whose magnitude is greater than 0x100
  32224. 'N'
  32225. Range 24 to 31, rotatert:SI 8 to 1 expressed as rotate
  32226. 'O'
  32227. 16 (for rotate using swap)
  32228. 'P'
  32229. Range 8 to 15, rotatert:HI 8 to 1 expressed as rotate
  32230. 'R'
  32231. Numbers that mov3q can handle
  32232. 'G'
  32233. Floating point constant that is not a 68881 constant
  32234. 'S'
  32235. Operands that satisfy 'm' when -mpcrel is in effect
  32236. 'T'
  32237. Operands that satisfy 's' when -mpcrel is not in effect
  32238. 'Q'
  32239. Address register indirect addressing mode
  32240. 'U'
  32241. Register offset addressing
  32242. 'W'
  32243. const_call_operand
  32244. 'Cs'
  32245. symbol_ref or const
  32246. 'Ci'
  32247. const_int
  32248. 'C0'
  32249. const_int 0
  32250. 'Cj'
  32251. Range of signed numbers that don't fit in 16 bits
  32252. 'Cmvq'
  32253. Integers valid for mvq
  32254. 'Capsw'
  32255. Integers valid for a moveq followed by a swap
  32256. 'Cmvz'
  32257. Integers valid for mvz
  32258. 'Cmvs'
  32259. Integers valid for mvs
  32260. 'Ap'
  32261. push_operand
  32262. 'Ac'
  32263. Non-register operands allowed in clr
  32264. _Moxie--'config/moxie/constraints.md'_
  32265. 'A'
  32266. An absolute address
  32267. 'B'
  32268. An offset address
  32269. 'W'
  32270. A register indirect memory operand
  32271. 'I'
  32272. A constant in the range of 0 to 255.
  32273. 'N'
  32274. A constant in the range of 0 to -255.
  32275. _MSP430-'config/msp430/constraints.md'_
  32276. 'R12'
  32277. Register R12.
  32278. 'R13'
  32279. Register R13.
  32280. 'K'
  32281. Integer constant 1.
  32282. 'L'
  32283. Integer constant -1^20..1^19.
  32284. 'M'
  32285. Integer constant 1-4.
  32286. 'Ya'
  32287. Memory references which do not require an extended MOVX
  32288. instruction.
  32289. 'Yl'
  32290. Memory reference, labels only.
  32291. 'Ys'
  32292. Memory reference, stack only.
  32293. _NDS32--'config/nds32/constraints.md'_
  32294. 'w'
  32295. LOW register class $r0 to $r7 constraint for V3/V3M ISA.
  32296. 'l'
  32297. LOW register class $r0 to $r7.
  32298. 'd'
  32299. MIDDLE register class $r0 to $r11, $r16 to $r19.
  32300. 'h'
  32301. HIGH register class $r12 to $r14, $r20 to $r31.
  32302. 't'
  32303. Temporary assist register $ta (i.e. $r15).
  32304. 'k'
  32305. Stack register $sp.
  32306. 'Iu03'
  32307. Unsigned immediate 3-bit value.
  32308. 'In03'
  32309. Negative immediate 3-bit value in the range of -7-0.
  32310. 'Iu04'
  32311. Unsigned immediate 4-bit value.
  32312. 'Is05'
  32313. Signed immediate 5-bit value.
  32314. 'Iu05'
  32315. Unsigned immediate 5-bit value.
  32316. 'In05'
  32317. Negative immediate 5-bit value in the range of -31-0.
  32318. 'Ip05'
  32319. Unsigned immediate 5-bit value for movpi45 instruction with
  32320. range 16-47.
  32321. 'Iu06'
  32322. Unsigned immediate 6-bit value constraint for addri36.sp
  32323. instruction.
  32324. 'Iu08'
  32325. Unsigned immediate 8-bit value.
  32326. 'Iu09'
  32327. Unsigned immediate 9-bit value.
  32328. 'Is10'
  32329. Signed immediate 10-bit value.
  32330. 'Is11'
  32331. Signed immediate 11-bit value.
  32332. 'Is15'
  32333. Signed immediate 15-bit value.
  32334. 'Iu15'
  32335. Unsigned immediate 15-bit value.
  32336. 'Ic15'
  32337. A constant which is not in the range of imm15u but ok for bclr
  32338. instruction.
  32339. 'Ie15'
  32340. A constant which is not in the range of imm15u but ok for bset
  32341. instruction.
  32342. 'It15'
  32343. A constant which is not in the range of imm15u but ok for btgl
  32344. instruction.
  32345. 'Ii15'
  32346. A constant whose compliment value is in the range of imm15u
  32347. and ok for bitci instruction.
  32348. 'Is16'
  32349. Signed immediate 16-bit value.
  32350. 'Is17'
  32351. Signed immediate 17-bit value.
  32352. 'Is19'
  32353. Signed immediate 19-bit value.
  32354. 'Is20'
  32355. Signed immediate 20-bit value.
  32356. 'Ihig'
  32357. The immediate value that can be simply set high 20-bit.
  32358. 'Izeb'
  32359. The immediate value 0xff.
  32360. 'Izeh'
  32361. The immediate value 0xffff.
  32362. 'Ixls'
  32363. The immediate value 0x01.
  32364. 'Ix11'
  32365. The immediate value 0x7ff.
  32366. 'Ibms'
  32367. The immediate value with power of 2.
  32368. 'Ifex'
  32369. The immediate value with power of 2 minus 1.
  32370. 'U33'
  32371. Memory constraint for 333 format.
  32372. 'U45'
  32373. Memory constraint for 45 format.
  32374. 'U37'
  32375. Memory constraint for 37 format.
  32376. _Nios II family--'config/nios2/constraints.md'_
  32377. 'I'
  32378. Integer that is valid as an immediate operand in an
  32379. instruction taking a signed 16-bit number. Range -32768 to
  32380. 32767.
  32381. 'J'
  32382. Integer that is valid as an immediate operand in an
  32383. instruction taking an unsigned 16-bit number. Range 0 to
  32384. 65535.
  32385. 'K'
  32386. Integer that is valid as an immediate operand in an
  32387. instruction taking only the upper 16-bits of a 32-bit number.
  32388. Range 32-bit numbers with the lower 16-bits being 0.
  32389. 'L'
  32390. Integer that is valid as an immediate operand for a shift
  32391. instruction. Range 0 to 31.
  32392. 'M'
  32393. Integer that is valid as an immediate operand for only the
  32394. value 0. Can be used in conjunction with the format modifier
  32395. 'z' to use 'r0' instead of '0' in the assembly output.
  32396. 'N'
  32397. Integer that is valid as an immediate operand for a custom
  32398. instruction opcode. Range 0 to 255.
  32399. 'P'
  32400. An immediate operand for R2 andchi/andci instructions.
  32401. 'S'
  32402. Matches immediates which are addresses in the small data
  32403. section and therefore can be added to 'gp' as a 16-bit
  32404. immediate to re-create their 32-bit value.
  32405. 'U'
  32406. Matches constants suitable as an operand for the rdprs and
  32407. cache instructions.
  32408. 'v'
  32409. A memory operand suitable for Nios II R2 load/store exclusive
  32410. instructions.
  32411. 'w'
  32412. A memory operand suitable for load/store IO and cache
  32413. instructions.
  32414. _OpenRISC--'config/or1k/constraints.md'_
  32415. 'I'
  32416. Integer that is valid as an immediate operand in an
  32417. instruction taking a signed 16-bit number. Range -32768 to
  32418. 32767.
  32419. 'K'
  32420. Integer that is valid as an immediate operand in an
  32421. instruction taking an unsigned 16-bit number. Range 0 to
  32422. 65535.
  32423. 'M'
  32424. Signed 16-bit constant shifted left 16 bits. (Used with
  32425. 'l.movhi')
  32426. 'O'
  32427. Zero
  32428. _PDP-11--'config/pdp11/constraints.md'_
  32429. 'a'
  32430. Floating point registers AC0 through AC3. These can be loaded
  32431. from/to memory with a single instruction.
  32432. 'd'
  32433. Odd numbered general registers (R1, R3, R5). These are used
  32434. for 16-bit multiply operations.
  32435. 'D'
  32436. A memory reference that is encoded within the opcode, but not
  32437. auto-increment or auto-decrement.
  32438. 'f'
  32439. Any of the floating point registers (AC0 through AC5).
  32440. 'G'
  32441. Floating point constant 0.
  32442. 'h'
  32443. Floating point registers AC4 and AC5. These cannot be loaded
  32444. from/to memory with a single instruction.
  32445. 'I'
  32446. An integer constant that fits in 16 bits.
  32447. 'J'
  32448. An integer constant whose low order 16 bits are zero.
  32449. 'K'
  32450. An integer constant that does not meet the constraints for
  32451. codes 'I' or 'J'.
  32452. 'L'
  32453. The integer constant 1.
  32454. 'M'
  32455. The integer constant -1.
  32456. 'N'
  32457. The integer constant 0.
  32458. 'O'
  32459. Integer constants 0 through 3; shifts by these amounts are
  32460. handled as multiple single-bit shifts rather than a single
  32461. variable-length shift.
  32462. 'Q'
  32463. A memory reference which requires an additional word (address
  32464. or offset) after the opcode.
  32465. 'R'
  32466. A memory reference that is encoded within the opcode.
  32467. _PowerPC and IBM RS6000--'config/rs6000/constraints.md'_
  32468. 'r'
  32469. A general purpose register (GPR), 'r0'...'r31'.
  32470. 'b'
  32471. A base register. Like 'r', but 'r0' is not allowed, so
  32472. 'r1'...'r31'.
  32473. 'f'
  32474. A floating point register (FPR), 'f0'...'f31'.
  32475. 'd'
  32476. A floating point register. This is the same as 'f' nowadays;
  32477. historically 'f' was for single-precision and 'd' was for
  32478. double-precision floating point.
  32479. 'v'
  32480. An Altivec vector register (VR), 'v0'...'v31'.
  32481. 'wa'
  32482. A VSX register (VSR), 'vs0'...'vs63'. This is either an FPR
  32483. ('vs0'...'vs31' are 'f0'...'f31') or a VR ('vs32'...'vs63' are
  32484. 'v0'...'v31').
  32485. When using 'wa', you should use the '%x' output modifier, so
  32486. that the correct register number is printed. For example:
  32487. asm ("xvadddp %x0,%x1,%x2"
  32488. : "=wa" (v1)
  32489. : "wa" (v2), "wa" (v3));
  32490. You should not use '%x' for 'v' operands:
  32491. asm ("xsaddqp %0,%1,%2"
  32492. : "=v" (v1)
  32493. : "v" (v2), "v" (v3));
  32494. 'c'
  32495. The count register, 'ctr'.
  32496. 'l'
  32497. The link register, 'lr'.
  32498. 'x'
  32499. Condition register field 0, 'cr0'.
  32500. 'y'
  32501. Any condition register field, 'cr0'...'cr7'.
  32502. 'I'
  32503. A signed 16-bit constant.
  32504. 'J'
  32505. An unsigned 16-bit constant shifted left 16 bits (use 'L'
  32506. instead for 'SImode' constants).
  32507. 'K'
  32508. An unsigned 16-bit constant.
  32509. 'L'
  32510. A signed 16-bit constant shifted left 16 bits.
  32511. 'eI'
  32512. A signed 34-bit integer constant if prefixed instructions are
  32513. supported.
  32514. 'm'
  32515. A memory operand. Normally, 'm' does not allow addresses that
  32516. update the base register. If the '<' or '>' constraint is
  32517. also used, they are allowed and therefore on PowerPC targets
  32518. in that case it is only safe to use 'm<>' in an 'asm'
  32519. statement if that 'asm' statement accesses the operand exactly
  32520. once. The 'asm' statement must also use '%U<OPNO>' as a
  32521. placeholder for the "update" flag in the corresponding load or
  32522. store instruction. For example:
  32523. asm ("st%U0 %1,%0" : "=m<>" (mem) : "r" (val));
  32524. is correct but:
  32525. asm ("st %1,%0" : "=m<>" (mem) : "r" (val));
  32526. is not.
  32527. 'Q'
  32528. A memory operand addressed by just a base register.
  32529. 'Z'
  32530. A memory operand accessed with indexed or indirect addressing.
  32531. 'a'
  32532. An indexed or indirect address.
  32533. _PRU--'config/pru/constraints.md'_
  32534. 'I'
  32535. An unsigned 8-bit integer constant.
  32536. 'J'
  32537. An unsigned 16-bit integer constant.
  32538. 'L'
  32539. An unsigned 5-bit integer constant (for shift counts).
  32540. 'T'
  32541. A text segment (program memory) constant label.
  32542. 'Z'
  32543. Integer constant zero.
  32544. _RL78--'config/rl78/constraints.md'_
  32545. 'Int3'
  32546. An integer constant in the range 1 ... 7.
  32547. 'Int8'
  32548. An integer constant in the range 0 ... 255.
  32549. 'J'
  32550. An integer constant in the range -255 ... 0
  32551. 'K'
  32552. The integer constant 1.
  32553. 'L'
  32554. The integer constant -1.
  32555. 'M'
  32556. The integer constant 0.
  32557. 'N'
  32558. The integer constant 2.
  32559. 'O'
  32560. The integer constant -2.
  32561. 'P'
  32562. An integer constant in the range 1 ... 15.
  32563. 'Qbi'
  32564. The built-in compare types-eq, ne, gtu, ltu, geu, and leu.
  32565. 'Qsc'
  32566. The synthetic compare types-gt, lt, ge, and le.
  32567. 'Wab'
  32568. A memory reference with an absolute address.
  32569. 'Wbc'
  32570. A memory reference using 'BC' as a base register, with an
  32571. optional offset.
  32572. 'Wca'
  32573. A memory reference using 'AX', 'BC', 'DE', or 'HL' for the
  32574. address, for calls.
  32575. 'Wcv'
  32576. A memory reference using any 16-bit register pair for the
  32577. address, for calls.
  32578. 'Wd2'
  32579. A memory reference using 'DE' as a base register, with an
  32580. optional offset.
  32581. 'Wde'
  32582. A memory reference using 'DE' as a base register, without any
  32583. offset.
  32584. 'Wfr'
  32585. Any memory reference to an address in the far address space.
  32586. 'Wh1'
  32587. A memory reference using 'HL' as a base register, with an
  32588. optional one-byte offset.
  32589. 'Whb'
  32590. A memory reference using 'HL' as a base register, with 'B' or
  32591. 'C' as the index register.
  32592. 'Whl'
  32593. A memory reference using 'HL' as a base register, without any
  32594. offset.
  32595. 'Ws1'
  32596. A memory reference using 'SP' as a base register, with an
  32597. optional one-byte offset.
  32598. 'Y'
  32599. Any memory reference to an address in the near address space.
  32600. 'A'
  32601. The 'AX' register.
  32602. 'B'
  32603. The 'BC' register.
  32604. 'D'
  32605. The 'DE' register.
  32606. 'R'
  32607. 'A' through 'L' registers.
  32608. 'S'
  32609. The 'SP' register.
  32610. 'T'
  32611. The 'HL' register.
  32612. 'Z08W'
  32613. The 16-bit 'R8' register.
  32614. 'Z10W'
  32615. The 16-bit 'R10' register.
  32616. 'Zint'
  32617. The registers reserved for interrupts ('R24' to 'R31').
  32618. 'a'
  32619. The 'A' register.
  32620. 'b'
  32621. The 'B' register.
  32622. 'c'
  32623. The 'C' register.
  32624. 'd'
  32625. The 'D' register.
  32626. 'e'
  32627. The 'E' register.
  32628. 'h'
  32629. The 'H' register.
  32630. 'l'
  32631. The 'L' register.
  32632. 'v'
  32633. The virtual registers.
  32634. 'w'
  32635. The 'PSW' register.
  32636. 'x'
  32637. The 'X' register.
  32638. _RISC-V--'config/riscv/constraints.md'_
  32639. 'f'
  32640. A floating-point register (if available).
  32641. 'I'
  32642. An I-type 12-bit signed immediate.
  32643. 'J'
  32644. Integer zero.
  32645. 'K'
  32646. A 5-bit unsigned immediate for CSR access instructions.
  32647. 'A'
  32648. An address that is held in a general-purpose register.
  32649. _RX--'config/rx/constraints.md'_
  32650. 'Q'
  32651. An address which does not involve register indirect addressing
  32652. or pre/post increment/decrement addressing.
  32653. 'Symbol'
  32654. A symbol reference.
  32655. 'Int08'
  32656. A constant in the range -256 to 255, inclusive.
  32657. 'Sint08'
  32658. A constant in the range -128 to 127, inclusive.
  32659. 'Sint16'
  32660. A constant in the range -32768 to 32767, inclusive.
  32661. 'Sint24'
  32662. A constant in the range -8388608 to 8388607, inclusive.
  32663. 'Uint04'
  32664. A constant in the range 0 to 15, inclusive.
  32665. _S/390 and zSeries--'config/s390/s390.h'_
  32666. 'a'
  32667. Address register (general purpose register except r0)
  32668. 'c'
  32669. Condition code register
  32670. 'd'
  32671. Data register (arbitrary general purpose register)
  32672. 'f'
  32673. Floating-point register
  32674. 'I'
  32675. Unsigned 8-bit constant (0-255)
  32676. 'J'
  32677. Unsigned 12-bit constant (0-4095)
  32678. 'K'
  32679. Signed 16-bit constant (-32768-32767)
  32680. 'L'
  32681. Value appropriate as displacement.
  32682. '(0..4095)'
  32683. for short displacement
  32684. '(-524288..524287)'
  32685. for long displacement
  32686. 'M'
  32687. Constant integer with a value of 0x7fffffff.
  32688. 'N'
  32689. Multiple letter constraint followed by 4 parameter letters.
  32690. '0..9:'
  32691. number of the part counting from most to least
  32692. significant
  32693. 'H,Q:'
  32694. mode of the part
  32695. 'D,S,H:'
  32696. mode of the containing operand
  32697. '0,F:'
  32698. value of the other parts (F--all bits set)
  32699. The constraint matches if the specified part of a constant has
  32700. a value different from its other parts.
  32701. 'Q'
  32702. Memory reference without index register and with short
  32703. displacement.
  32704. 'R'
  32705. Memory reference with index register and short displacement.
  32706. 'S'
  32707. Memory reference without index register but with long
  32708. displacement.
  32709. 'T'
  32710. Memory reference with index register and long displacement.
  32711. 'U'
  32712. Pointer with short displacement.
  32713. 'W'
  32714. Pointer with long displacement.
  32715. 'Y'
  32716. Shift count operand.
  32717. _SPARC--'config/sparc/sparc.h'_
  32718. 'f'
  32719. Floating-point register on the SPARC-V8 architecture and lower
  32720. floating-point register on the SPARC-V9 architecture.
  32721. 'e'
  32722. Floating-point register. It is equivalent to 'f' on the
  32723. SPARC-V8 architecture and contains both lower and upper
  32724. floating-point registers on the SPARC-V9 architecture.
  32725. 'c'
  32726. Floating-point condition code register.
  32727. 'd'
  32728. Lower floating-point register. It is only valid on the
  32729. SPARC-V9 architecture when the Visual Instruction Set is
  32730. available.
  32731. 'b'
  32732. Floating-point register. It is only valid on the SPARC-V9
  32733. architecture when the Visual Instruction Set is available.
  32734. 'h'
  32735. 64-bit global or out register for the SPARC-V8+ architecture.
  32736. 'C'
  32737. The constant all-ones, for floating-point.
  32738. 'A'
  32739. Signed 5-bit constant
  32740. 'D'
  32741. A vector constant
  32742. 'I'
  32743. Signed 13-bit constant
  32744. 'J'
  32745. Zero
  32746. 'K'
  32747. 32-bit constant with the low 12 bits clear (a constant that
  32748. can be loaded with the 'sethi' instruction)
  32749. 'L'
  32750. A constant in the range supported by 'movcc' instructions
  32751. (11-bit signed immediate)
  32752. 'M'
  32753. A constant in the range supported by 'movrcc' instructions
  32754. (10-bit signed immediate)
  32755. 'N'
  32756. Same as 'K', except that it verifies that bits that are not in
  32757. the lower 32-bit range are all zero. Must be used instead of
  32758. 'K' for modes wider than 'SImode'
  32759. 'O'
  32760. The constant 4096
  32761. 'G'
  32762. Floating-point zero
  32763. 'H'
  32764. Signed 13-bit constant, sign-extended to 32 or 64 bits
  32765. 'P'
  32766. The constant -1
  32767. 'Q'
  32768. Floating-point constant whose integral representation can be
  32769. moved into an integer register using a single sethi
  32770. instruction
  32771. 'R'
  32772. Floating-point constant whose integral representation can be
  32773. moved into an integer register using a single mov instruction
  32774. 'S'
  32775. Floating-point constant whose integral representation can be
  32776. moved into an integer register using a high/lo_sum instruction
  32777. sequence
  32778. 'T'
  32779. Memory address aligned to an 8-byte boundary
  32780. 'U'
  32781. Even register
  32782. 'W'
  32783. Memory address for 'e' constraint registers
  32784. 'w'
  32785. Memory address with only a base register
  32786. 'Y'
  32787. Vector zero
  32788. _TI C6X family--'config/c6x/constraints.md'_
  32789. 'a'
  32790. Register file A (A0-A31).
  32791. 'b'
  32792. Register file B (B0-B31).
  32793. 'A'
  32794. Predicate registers in register file A (A0-A2 on C64X and
  32795. higher, A1 and A2 otherwise).
  32796. 'B'
  32797. Predicate registers in register file B (B0-B2).
  32798. 'C'
  32799. A call-used register in register file B (B0-B9, B16-B31).
  32800. 'Da'
  32801. Register file A, excluding predicate registers (A3-A31, plus
  32802. A0 if not C64X or higher).
  32803. 'Db'
  32804. Register file B, excluding predicate registers (B3-B31).
  32805. 'Iu4'
  32806. Integer constant in the range 0 ... 15.
  32807. 'Iu5'
  32808. Integer constant in the range 0 ... 31.
  32809. 'In5'
  32810. Integer constant in the range -31 ... 0.
  32811. 'Is5'
  32812. Integer constant in the range -16 ... 15.
  32813. 'I5x'
  32814. Integer constant that can be the operand of an ADDA or a SUBA
  32815. insn.
  32816. 'IuB'
  32817. Integer constant in the range 0 ... 65535.
  32818. 'IsB'
  32819. Integer constant in the range -32768 ... 32767.
  32820. 'IsC'
  32821. Integer constant in the range -2^{20} ... 2^{20} - 1.
  32822. 'Jc'
  32823. Integer constant that is a valid mask for the clr instruction.
  32824. 'Js'
  32825. Integer constant that is a valid mask for the set instruction.
  32826. 'Q'
  32827. Memory location with A base register.
  32828. 'R'
  32829. Memory location with B base register.
  32830. 'Z'
  32831. Register B14 (aka DP).
  32832. _TILE-Gx--'config/tilegx/constraints.md'_
  32833. 'R00'
  32834. 'R01'
  32835. 'R02'
  32836. 'R03'
  32837. 'R04'
  32838. 'R05'
  32839. 'R06'
  32840. 'R07'
  32841. 'R08'
  32842. 'R09'
  32843. 'R10'
  32844. Each of these represents a register constraint for an
  32845. individual register, from r0 to r10.
  32846. 'I'
  32847. Signed 8-bit integer constant.
  32848. 'J'
  32849. Signed 16-bit integer constant.
  32850. 'K'
  32851. Unsigned 16-bit integer constant.
  32852. 'L'
  32853. Integer constant that fits in one signed byte when incremented
  32854. by one (-129 ... 126).
  32855. 'm'
  32856. Memory operand. If used together with '<' or '>', the operand
  32857. can have postincrement which requires printing with '%In' and
  32858. '%in' on TILE-Gx. For example:
  32859. asm ("st_add %I0,%1,%i0" : "=m<>" (*mem) : "r" (val));
  32860. 'M'
  32861. A bit mask suitable for the BFINS instruction.
  32862. 'N'
  32863. Integer constant that is a byte tiled out eight times.
  32864. 'O'
  32865. The integer zero constant.
  32866. 'P'
  32867. Integer constant that is a sign-extended byte tiled out as
  32868. four shorts.
  32869. 'Q'
  32870. Integer constant that fits in one signed byte when incremented
  32871. (-129 ... 126), but excluding -1.
  32872. 'S'
  32873. Integer constant that has all 1 bits consecutive and starting
  32874. at bit 0.
  32875. 'T'
  32876. A 16-bit fragment of a got, tls, or pc-relative reference.
  32877. 'U'
  32878. Memory operand except postincrement. This is roughly the same
  32879. as 'm' when not used together with '<' or '>'.
  32880. 'W'
  32881. An 8-element vector constant with identical elements.
  32882. 'Y'
  32883. A 4-element vector constant with identical elements.
  32884. 'Z0'
  32885. The integer constant 0xffffffff.
  32886. 'Z1'
  32887. The integer constant 0xffffffff00000000.
  32888. _TILEPro--'config/tilepro/constraints.md'_
  32889. 'R00'
  32890. 'R01'
  32891. 'R02'
  32892. 'R03'
  32893. 'R04'
  32894. 'R05'
  32895. 'R06'
  32896. 'R07'
  32897. 'R08'
  32898. 'R09'
  32899. 'R10'
  32900. Each of these represents a register constraint for an
  32901. individual register, from r0 to r10.
  32902. 'I'
  32903. Signed 8-bit integer constant.
  32904. 'J'
  32905. Signed 16-bit integer constant.
  32906. 'K'
  32907. Nonzero integer constant with low 16 bits zero.
  32908. 'L'
  32909. Integer constant that fits in one signed byte when incremented
  32910. by one (-129 ... 126).
  32911. 'm'
  32912. Memory operand. If used together with '<' or '>', the operand
  32913. can have postincrement which requires printing with '%In' and
  32914. '%in' on TILEPro. For example:
  32915. asm ("swadd %I0,%1,%i0" : "=m<>" (mem) : "r" (val));
  32916. 'M'
  32917. A bit mask suitable for the MM instruction.
  32918. 'N'
  32919. Integer constant that is a byte tiled out four times.
  32920. 'O'
  32921. The integer zero constant.
  32922. 'P'
  32923. Integer constant that is a sign-extended byte tiled out as two
  32924. shorts.
  32925. 'Q'
  32926. Integer constant that fits in one signed byte when incremented
  32927. (-129 ... 126), but excluding -1.
  32928. 'T'
  32929. A symbolic operand, or a 16-bit fragment of a got, tls, or
  32930. pc-relative reference.
  32931. 'U'
  32932. Memory operand except postincrement. This is roughly the same
  32933. as 'm' when not used together with '<' or '>'.
  32934. 'W'
  32935. A 4-element vector constant with identical elements.
  32936. 'Y'
  32937. A 2-element vector constant with identical elements.
  32938. _Visium--'config/visium/constraints.md'_
  32939. 'b'
  32940. EAM register 'mdb'
  32941. 'c'
  32942. EAM register 'mdc'
  32943. 'f'
  32944. Floating point register
  32945. 'l'
  32946. General register, but not 'r29', 'r30' and 'r31'
  32947. 't'
  32948. Register 'r1'
  32949. 'u'
  32950. Register 'r2'
  32951. 'v'
  32952. Register 'r3'
  32953. 'G'
  32954. Floating-point constant 0.0
  32955. 'J'
  32956. Integer constant in the range 0 .. 65535 (16-bit immediate)
  32957. 'K'
  32958. Integer constant in the range 1 .. 31 (5-bit immediate)
  32959. 'L'
  32960. Integer constant in the range -65535 .. -1 (16-bit negative
  32961. immediate)
  32962. 'M'
  32963. Integer constant -1
  32964. 'O'
  32965. Integer constant 0
  32966. 'P'
  32967. Integer constant 32
  32968. _x86 family--'config/i386/constraints.md'_
  32969. 'R'
  32970. Legacy register--the eight integer registers available on all
  32971. i386 processors ('a', 'b', 'c', 'd', 'si', 'di', 'bp', 'sp').
  32972. 'q'
  32973. Any register accessible as 'Rl'. In 32-bit mode, 'a', 'b',
  32974. 'c', and 'd'; in 64-bit mode, any integer register.
  32975. 'Q'
  32976. Any register accessible as 'Rh': 'a', 'b', 'c', and 'd'.
  32977. 'a'
  32978. The 'a' register.
  32979. 'b'
  32980. The 'b' register.
  32981. 'c'
  32982. The 'c' register.
  32983. 'd'
  32984. The 'd' register.
  32985. 'S'
  32986. The 'si' register.
  32987. 'D'
  32988. The 'di' register.
  32989. 'A'
  32990. The 'a' and 'd' registers. This class is used for
  32991. instructions that return double word results in the 'ax:dx'
  32992. register pair. Single word values will be allocated either in
  32993. 'ax' or 'dx'. For example on i386 the following implements
  32994. 'rdtsc':
  32995. unsigned long long rdtsc (void)
  32996. {
  32997. unsigned long long tick;
  32998. __asm__ __volatile__("rdtsc":"=A"(tick));
  32999. return tick;
  33000. }
  33001. This is not correct on x86-64 as it would allocate tick in
  33002. either 'ax' or 'dx'. You have to use the following variant
  33003. instead:
  33004. unsigned long long rdtsc (void)
  33005. {
  33006. unsigned int tickl, tickh;
  33007. __asm__ __volatile__("rdtsc":"=a"(tickl),"=d"(tickh));
  33008. return ((unsigned long long)tickh << 32)|tickl;
  33009. }
  33010. 'U'
  33011. The call-clobbered integer registers.
  33012. 'f'
  33013. Any 80387 floating-point (stack) register.
  33014. 't'
  33015. Top of 80387 floating-point stack ('%st(0)').
  33016. 'u'
  33017. Second from top of 80387 floating-point stack ('%st(1)').
  33018. 'y'
  33019. Any MMX register.
  33020. 'x'
  33021. Any SSE register.
  33022. 'v'
  33023. Any EVEX encodable SSE register ('%xmm0-%xmm31').
  33024. 'Yz'
  33025. First SSE register ('%xmm0').
  33026. 'I'
  33027. Integer constant in the range 0 ... 31, for 32-bit shifts.
  33028. 'J'
  33029. Integer constant in the range 0 ... 63, for 64-bit shifts.
  33030. 'K'
  33031. Signed 8-bit integer constant.
  33032. 'L'
  33033. '0xFF' or '0xFFFF', for andsi as a zero-extending move.
  33034. 'M'
  33035. 0, 1, 2, or 3 (shifts for the 'lea' instruction).
  33036. 'N'
  33037. Unsigned 8-bit integer constant (for 'in' and 'out'
  33038. instructions).
  33039. 'G'
  33040. Standard 80387 floating point constant.
  33041. 'C'
  33042. SSE constant zero operand.
  33043. 'e'
  33044. 32-bit signed integer constant, or a symbolic reference known
  33045. to fit that range (for immediate operands in sign-extending
  33046. x86-64 instructions).
  33047. 'We'
  33048. 32-bit signed integer constant, or a symbolic reference known
  33049. to fit that range (for sign-extending conversion operations
  33050. that require non-'VOIDmode' immediate operands).
  33051. 'Wz'
  33052. 32-bit unsigned integer constant, or a symbolic reference
  33053. known to fit that range (for zero-extending conversion
  33054. operations that require non-'VOIDmode' immediate operands).
  33055. 'Wd'
  33056. 128-bit integer constant where both the high and low 64-bit
  33057. word satisfy the 'e' constraint.
  33058. 'Z'
  33059. 32-bit unsigned integer constant, or a symbolic reference
  33060. known to fit that range (for immediate operands in
  33061. zero-extending x86-64 instructions).
  33062. 'Tv'
  33063. VSIB address operand.
  33064. 'Ts'
  33065. Address operand without segment register.
  33066. _Xstormy16--'config/stormy16/stormy16.h'_
  33067. 'a'
  33068. Register r0.
  33069. 'b'
  33070. Register r1.
  33071. 'c'
  33072. Register r2.
  33073. 'd'
  33074. Register r8.
  33075. 'e'
  33076. Registers r0 through r7.
  33077. 't'
  33078. Registers r0 and r1.
  33079. 'y'
  33080. The carry register.
  33081. 'z'
  33082. Registers r8 and r9.
  33083. 'I'
  33084. A constant between 0 and 3 inclusive.
  33085. 'J'
  33086. A constant that has exactly one bit set.
  33087. 'K'
  33088. A constant that has exactly one bit clear.
  33089. 'L'
  33090. A constant between 0 and 255 inclusive.
  33091. 'M'
  33092. A constant between -255 and 0 inclusive.
  33093. 'N'
  33094. A constant between -3 and 0 inclusive.
  33095. 'O'
  33096. A constant between 1 and 4 inclusive.
  33097. 'P'
  33098. A constant between -4 and -1 inclusive.
  33099. 'Q'
  33100. A memory reference that is a stack push.
  33101. 'R'
  33102. A memory reference that is a stack pop.
  33103. 'S'
  33104. A memory reference that refers to a constant address of known
  33105. value.
  33106. 'T'
  33107. The register indicated by Rx (not implemented yet).
  33108. 'U'
  33109. A constant that is not between 2 and 15 inclusive.
  33110. 'Z'
  33111. The constant 0.
  33112. _Xtensa--'config/xtensa/constraints.md'_
  33113. 'a'
  33114. General-purpose 32-bit register
  33115. 'b'
  33116. One-bit boolean register
  33117. 'A'
  33118. MAC16 40-bit accumulator register
  33119. 'I'
  33120. Signed 12-bit integer constant, for use in MOVI instructions
  33121. 'J'
  33122. Signed 8-bit integer constant, for use in ADDI instructions
  33123. 'K'
  33124. Integer constant valid for BccI instructions
  33125. 'L'
  33126. Unsigned constant valid for BccUI instructions
  33127. 
  33128. File: gcc.info, Node: Asm Labels, Next: Explicit Register Variables, Prev: Constraints, Up: Using Assembly Language with C
  33129. 6.47.4 Controlling Names Used in Assembler Code
  33130. -----------------------------------------------
  33131. You can specify the name to be used in the assembler code for a C
  33132. function or variable by writing the 'asm' (or '__asm__') keyword after
  33133. the declarator. It is up to you to make sure that the assembler names
  33134. you choose do not conflict with any other assembler symbols, or
  33135. reference registers.
  33136. Assembler names for data:
  33137. .........................
  33138. This sample shows how to specify the assembler name for data:
  33139. int foo asm ("myfoo") = 2;
  33140. This specifies that the name to be used for the variable 'foo' in the
  33141. assembler code should be 'myfoo' rather than the usual '_foo'.
  33142. On systems where an underscore is normally prepended to the name of a C
  33143. variable, this feature allows you to define names for the linker that do
  33144. not start with an underscore.
  33145. GCC does not support using this feature with a non-static local
  33146. variable since such variables do not have assembler names. If you are
  33147. trying to put the variable in a particular register, see *note Explicit
  33148. Register Variables::.
  33149. Assembler names for functions:
  33150. ..............................
  33151. To specify the assembler name for functions, write a declaration for the
  33152. function before its definition and put 'asm' there, like this:
  33153. int func (int x, int y) asm ("MYFUNC");
  33154. int func (int x, int y)
  33155. {
  33156. /* ... */
  33157. This specifies that the name to be used for the function 'func' in the
  33158. assembler code should be 'MYFUNC'.
  33159. 
  33160. File: gcc.info, Node: Explicit Register Variables, Next: Size of an asm, Prev: Asm Labels, Up: Using Assembly Language with C
  33161. 6.47.5 Variables in Specified Registers
  33162. ---------------------------------------
  33163. GNU C allows you to associate specific hardware registers with C
  33164. variables. In almost all cases, allowing the compiler to assign
  33165. registers produces the best code. However under certain unusual
  33166. circumstances, more precise control over the variable storage is
  33167. required.
  33168. Both global and local variables can be associated with a register. The
  33169. consequences of performing this association are very different between
  33170. the two, as explained in the sections below.
  33171. * Menu:
  33172. * Global Register Variables:: Variables declared at global scope.
  33173. * Local Register Variables:: Variables declared within a function.
  33174. 
  33175. File: gcc.info, Node: Global Register Variables, Next: Local Register Variables, Up: Explicit Register Variables
  33176. 6.47.5.1 Defining Global Register Variables
  33177. ...........................................
  33178. You can define a global register variable and associate it with a
  33179. specified register like this:
  33180. register int *foo asm ("r12");
  33181. Here 'r12' is the name of the register that should be used. Note that
  33182. this is the same syntax used for defining local register variables, but
  33183. for a global variable the declaration appears outside a function. The
  33184. 'register' keyword is required, and cannot be combined with 'static'.
  33185. The register name must be a valid register name for the target platform.
  33186. Do not use type qualifiers such as 'const' and 'volatile', as the
  33187. outcome may be contrary to expectations. In particular, using the
  33188. 'volatile' qualifier does not fully prevent the compiler from optimizing
  33189. accesses to the register.
  33190. Registers are a scarce resource on most systems and allowing the
  33191. compiler to manage their usage usually results in the best code.
  33192. However, under special circumstances it can make sense to reserve some
  33193. globally. For example this may be useful in programs such as
  33194. programming language interpreters that have a couple of global variables
  33195. that are accessed very often.
  33196. After defining a global register variable, for the current compilation
  33197. unit:
  33198. * If the register is a call-saved register, call ABI is affected: the
  33199. register will not be restored in function epilogue sequences after
  33200. the variable has been assigned. Therefore, functions cannot safely
  33201. return to callers that assume standard ABI.
  33202. * Conversely, if the register is a call-clobbered register, making
  33203. calls to functions that use standard ABI may lose contents of the
  33204. variable. Such calls may be created by the compiler even if none
  33205. are evident in the original program, for example when libgcc
  33206. functions are used to make up for unavailable instructions.
  33207. * Accesses to the variable may be optimized as usual and the register
  33208. remains available for allocation and use in any computations,
  33209. provided that observable values of the variable are not affected.
  33210. * If the variable is referenced in inline assembly, the type of
  33211. access must be provided to the compiler via constraints (*note
  33212. Constraints::). Accesses from basic asms are not supported.
  33213. Note that these points _only_ apply to code that is compiled with the
  33214. definition. The behavior of code that is merely linked in (for example
  33215. code from libraries) is not affected.
  33216. If you want to recompile source files that do not actually use your
  33217. global register variable so they do not use the specified register for
  33218. any other purpose, you need not actually add the global register
  33219. declaration to their source code. It suffices to specify the compiler
  33220. option '-ffixed-REG' (*note Code Gen Options::) to reserve the register.
  33221. Declaring the variable
  33222. ......................
  33223. Global register variables cannot have initial values, because an
  33224. executable file has no means to supply initial contents for a register.
  33225. When selecting a register, choose one that is normally saved and
  33226. restored by function calls on your machine. This ensures that code
  33227. which is unaware of this reservation (such as library routines) will
  33228. restore it before returning.
  33229. On machines with register windows, be sure to choose a global register
  33230. that is not affected magically by the function call mechanism.
  33231. Using the variable
  33232. ..................
  33233. When calling routines that are not aware of the reservation, be cautious
  33234. if those routines call back into code which uses them. As an example,
  33235. if you call the system library version of 'qsort', it may clobber your
  33236. registers during execution, but (if you have selected appropriate
  33237. registers) it will restore them before returning. However it will _not_
  33238. restore them before calling 'qsort''s comparison function. As a result,
  33239. global values will not reliably be available to the comparison function
  33240. unless the 'qsort' function itself is rebuilt.
  33241. Similarly, it is not safe to access the global register variables from
  33242. signal handlers or from more than one thread of control. Unless you
  33243. recompile them specially for the task at hand, the system library
  33244. routines may temporarily use the register for other things.
  33245. Furthermore, since the register is not reserved exclusively for the
  33246. variable, accessing it from handlers of asynchronous signals may observe
  33247. unrelated temporary values residing in the register.
  33248. On most machines, 'longjmp' restores to each global register variable
  33249. the value it had at the time of the 'setjmp'. On some machines,
  33250. however, 'longjmp' does not change the value of global register
  33251. variables. To be portable, the function that called 'setjmp' should
  33252. make other arrangements to save the values of the global register
  33253. variables, and to restore them in a 'longjmp'. This way, the same thing
  33254. happens regardless of what 'longjmp' does.
  33255. 
  33256. File: gcc.info, Node: Local Register Variables, Prev: Global Register Variables, Up: Explicit Register Variables
  33257. 6.47.5.2 Specifying Registers for Local Variables
  33258. .................................................
  33259. You can define a local register variable and associate it with a
  33260. specified register like this:
  33261. register int *foo asm ("r12");
  33262. Here 'r12' is the name of the register that should be used. Note that
  33263. this is the same syntax used for defining global register variables, but
  33264. for a local variable the declaration appears within a function. The
  33265. 'register' keyword is required, and cannot be combined with 'static'.
  33266. The register name must be a valid register name for the target platform.
  33267. Do not use type qualifiers such as 'const' and 'volatile', as the
  33268. outcome may be contrary to expectations. In particular, when the
  33269. 'const' qualifier is used, the compiler may substitute the variable with
  33270. its initializer in 'asm' statements, which may cause the corresponding
  33271. operand to appear in a different register.
  33272. As with global register variables, it is recommended that you choose a
  33273. register that is normally saved and restored by function calls on your
  33274. machine, so that calls to library routines will not clobber it.
  33275. The only supported use for this feature is to specify registers for
  33276. input and output operands when calling Extended 'asm' (*note Extended
  33277. Asm::). This may be necessary if the constraints for a particular
  33278. machine don't provide sufficient control to select the desired register.
  33279. To force an operand into a register, create a local variable and specify
  33280. the register name after the variable's declaration. Then use the local
  33281. variable for the 'asm' operand and specify any constraint letter that
  33282. matches the register:
  33283. register int *p1 asm ("r0") = ...;
  33284. register int *p2 asm ("r1") = ...;
  33285. register int *result asm ("r0");
  33286. asm ("sysint" : "=r" (result) : "0" (p1), "r" (p2));
  33287. _Warning:_ In the above example, be aware that a register (for example
  33288. 'r0') can be call-clobbered by subsequent code, including function calls
  33289. and library calls for arithmetic operators on other variables (for
  33290. example the initialization of 'p2'). In this case, use temporary
  33291. variables for expressions between the register assignments:
  33292. int t1 = ...;
  33293. register int *p1 asm ("r0") = ...;
  33294. register int *p2 asm ("r1") = t1;
  33295. register int *result asm ("r0");
  33296. asm ("sysint" : "=r" (result) : "0" (p1), "r" (p2));
  33297. Defining a register variable does not reserve the register. Other than
  33298. when invoking the Extended 'asm', the contents of the specified register
  33299. are not guaranteed. For this reason, the following uses are explicitly
  33300. _not_ supported. If they appear to work, it is only happenstance, and
  33301. may stop working as intended due to (seemingly) unrelated changes in
  33302. surrounding code, or even minor changes in the optimization of a future
  33303. version of gcc:
  33304. * Passing parameters to or from Basic 'asm'
  33305. * Passing parameters to or from Extended 'asm' without using input or
  33306. output operands.
  33307. * Passing parameters to or from routines written in assembler (or
  33308. other languages) using non-standard calling conventions.
  33309. Some developers use Local Register Variables in an attempt to improve
  33310. gcc's allocation of registers, especially in large functions. In this
  33311. case the register name is essentially a hint to the register allocator.
  33312. While in some instances this can generate better code, improvements are
  33313. subject to the whims of the allocator/optimizers. Since there are no
  33314. guarantees that your improvements won't be lost, this usage of Local
  33315. Register Variables is discouraged.
  33316. On the MIPS platform, there is related use for local register variables
  33317. with slightly different characteristics (*note Defining coprocessor
  33318. specifics for MIPS targets: (gccint)MIPS Coprocessors.).
  33319. 
  33320. File: gcc.info, Node: Size of an asm, Prev: Explicit Register Variables, Up: Using Assembly Language with C
  33321. 6.47.6 Size of an 'asm'
  33322. -----------------------
  33323. Some targets require that GCC track the size of each instruction used in
  33324. order to generate correct code. Because the final length of the code
  33325. produced by an 'asm' statement is only known by the assembler, GCC must
  33326. make an estimate as to how big it will be. It does this by counting the
  33327. number of instructions in the pattern of the 'asm' and multiplying that
  33328. by the length of the longest instruction supported by that processor.
  33329. (When working out the number of instructions, it assumes that any
  33330. occurrence of a newline or of whatever statement separator character is
  33331. supported by the assembler -- typically ';' -- indicates the end of an
  33332. instruction.)
  33333. Normally, GCC's estimate is adequate to ensure that correct code is
  33334. generated, but it is possible to confuse the compiler if you use pseudo
  33335. instructions or assembler macros that expand into multiple real
  33336. instructions, or if you use assembler directives that expand to more
  33337. space in the object file than is needed for a single instruction. If
  33338. this happens then the assembler may produce a diagnostic saying that a
  33339. label is unreachable.
  33340. This size is also used for inlining decisions. If you use 'asm inline'
  33341. instead of just 'asm', then for inlining purposes the size of the asm is
  33342. taken as the minimum size, ignoring how many instructions GCC thinks it
  33343. is.
  33344. 
  33345. File: gcc.info, Node: Alternate Keywords, Next: Incomplete Enums, Prev: Using Assembly Language with C, Up: C Extensions
  33346. 6.48 Alternate Keywords
  33347. =======================
  33348. '-ansi' and the various '-std' options disable certain keywords. This
  33349. causes trouble when you want to use GNU C extensions, or a
  33350. general-purpose header file that should be usable by all programs,
  33351. including ISO C programs. The keywords 'asm', 'typeof' and 'inline' are
  33352. not available in programs compiled with '-ansi' or '-std' (although
  33353. 'inline' can be used in a program compiled with '-std=c99' or a later
  33354. standard). The ISO C99 keyword 'restrict' is only available when
  33355. '-std=gnu99' (which will eventually be the default) or '-std=c99' (or
  33356. the equivalent '-std=iso9899:1999'), or an option for a later standard
  33357. version, is used.
  33358. The way to solve these problems is to put '__' at the beginning and end
  33359. of each problematical keyword. For example, use '__asm__' instead of
  33360. 'asm', and '__inline__' instead of 'inline'.
  33361. Other C compilers won't accept these alternative keywords; if you want
  33362. to compile with another compiler, you can define the alternate keywords
  33363. as macros to replace them with the customary keywords. It looks like
  33364. this:
  33365. #ifndef __GNUC__
  33366. #define __asm__ asm
  33367. #endif
  33368. '-pedantic' and other options cause warnings for many GNU C extensions.
  33369. You can prevent such warnings within one expression by writing
  33370. '__extension__' before the expression. '__extension__' has no effect
  33371. aside from this.
  33372. 
  33373. File: gcc.info, Node: Incomplete Enums, Next: Function Names, Prev: Alternate Keywords, Up: C Extensions
  33374. 6.49 Incomplete 'enum' Types
  33375. ============================
  33376. You can define an 'enum' tag without specifying its possible values.
  33377. This results in an incomplete type, much like what you get if you write
  33378. 'struct foo' without describing the elements. A later declaration that
  33379. does specify the possible values completes the type.
  33380. You cannot allocate variables or storage using the type while it is
  33381. incomplete. However, you can work with pointers to that type.
  33382. This extension may not be very useful, but it makes the handling of
  33383. 'enum' more consistent with the way 'struct' and 'union' are handled.
  33384. This extension is not supported by GNU C++.
  33385. 
  33386. File: gcc.info, Node: Function Names, Next: Return Address, Prev: Incomplete Enums, Up: C Extensions
  33387. 6.50 Function Names as Strings
  33388. ==============================
  33389. GCC provides three magic constants that hold the name of the current
  33390. function as a string. In C++11 and later modes, all three are treated
  33391. as constant expressions and can be used in 'constexpr' constexts. The
  33392. first of these constants is '__func__', which is part of the C99
  33393. standard:
  33394. The identifier '__func__' is implicitly declared by the translator as
  33395. if, immediately following the opening brace of each function definition,
  33396. the declaration
  33397. static const char __func__[] = "function-name";
  33398. appeared, where function-name is the name of the lexically-enclosing
  33399. function. This name is the unadorned name of the function. As an
  33400. extension, at file (or, in C++, namespace scope), '__func__' evaluates
  33401. to the empty string.
  33402. '__FUNCTION__' is another name for '__func__', provided for backward
  33403. compatibility with old versions of GCC.
  33404. In C, '__PRETTY_FUNCTION__' is yet another name for '__func__', except
  33405. that at file scope (or, in C++, namespace scope), it evaluates to the
  33406. string '"top level"'. In addition, in C++, '__PRETTY_FUNCTION__'
  33407. contains the signature of the function as well as its bare name. For
  33408. example, this program:
  33409. extern "C" int printf (const char *, ...);
  33410. class a {
  33411. public:
  33412. void sub (int i)
  33413. {
  33414. printf ("__FUNCTION__ = %s\n", __FUNCTION__);
  33415. printf ("__PRETTY_FUNCTION__ = %s\n", __PRETTY_FUNCTION__);
  33416. }
  33417. };
  33418. int
  33419. main (void)
  33420. {
  33421. a ax;
  33422. ax.sub (0);
  33423. return 0;
  33424. }
  33425. gives this output:
  33426. __FUNCTION__ = sub
  33427. __PRETTY_FUNCTION__ = void a::sub(int)
  33428. These identifiers are variables, not preprocessor macros, and may not
  33429. be used to initialize 'char' arrays or be concatenated with string
  33430. literals.
  33431. 
  33432. File: gcc.info, Node: Return Address, Next: Vector Extensions, Prev: Function Names, Up: C Extensions
  33433. 6.51 Getting the Return or Frame Address of a Function
  33434. ======================================================
  33435. These functions may be used to get information about the callers of a
  33436. function.
  33437. -- Built-in Function: void * __builtin_return_address (unsigned int
  33438. LEVEL)
  33439. This function returns the return address of the current function,
  33440. or of one of its callers. The LEVEL argument is number of frames
  33441. to scan up the call stack. A value of '0' yields the return
  33442. address of the current function, a value of '1' yields the return
  33443. address of the caller of the current function, and so forth. When
  33444. inlining the expected behavior is that the function returns the
  33445. address of the function that is returned to. To work around this
  33446. behavior use the 'noinline' function attribute.
  33447. The LEVEL argument must be a constant integer.
  33448. On some machines it may be impossible to determine the return
  33449. address of any function other than the current one; in such cases,
  33450. or when the top of the stack has been reached, this function
  33451. returns '0' or a random value. In addition,
  33452. '__builtin_frame_address' may be used to determine if the top of
  33453. the stack has been reached.
  33454. Additional post-processing of the returned value may be needed, see
  33455. '__builtin_extract_return_addr'.
  33456. Calling this function with a nonzero argument can have
  33457. unpredictable effects, including crashing the calling program. As
  33458. a result, calls that are considered unsafe are diagnosed when the
  33459. '-Wframe-address' option is in effect. Such calls should only be
  33460. made in debugging situations.
  33461. -- Built-in Function: void * __builtin_extract_return_addr (void *ADDR)
  33462. The address as returned by '__builtin_return_address' may have to
  33463. be fed through this function to get the actual encoded address.
  33464. For example, on the 31-bit S/390 platform the highest bit has to be
  33465. masked out, or on SPARC platforms an offset has to be added for the
  33466. true next instruction to be executed.
  33467. If no fixup is needed, this function simply passes through ADDR.
  33468. -- Built-in Function: void * __builtin_frob_return_addr (void *ADDR)
  33469. This function does the reverse of '__builtin_extract_return_addr'.
  33470. -- Built-in Function: void * __builtin_frame_address (unsigned int
  33471. LEVEL)
  33472. This function is similar to '__builtin_return_address', but it
  33473. returns the address of the function frame rather than the return
  33474. address of the function. Calling '__builtin_frame_address' with a
  33475. value of '0' yields the frame address of the current function, a
  33476. value of '1' yields the frame address of the caller of the current
  33477. function, and so forth.
  33478. The frame is the area on the stack that holds local variables and
  33479. saved registers. The frame address is normally the address of the
  33480. first word pushed on to the stack by the function. However, the
  33481. exact definition depends upon the processor and the calling
  33482. convention. If the processor has a dedicated frame pointer
  33483. register, and the function has a frame, then
  33484. '__builtin_frame_address' returns the value of the frame pointer
  33485. register.
  33486. On some machines it may be impossible to determine the frame
  33487. address of any function other than the current one; in such cases,
  33488. or when the top of the stack has been reached, this function
  33489. returns '0' if the first frame pointer is properly initialized by
  33490. the startup code.
  33491. Calling this function with a nonzero argument can have
  33492. unpredictable effects, including crashing the calling program. As
  33493. a result, calls that are considered unsafe are diagnosed when the
  33494. '-Wframe-address' option is in effect. Such calls should only be
  33495. made in debugging situations.
  33496. 
  33497. File: gcc.info, Node: Vector Extensions, Next: Offsetof, Prev: Return Address, Up: C Extensions
  33498. 6.52 Using Vector Instructions through Built-in Functions
  33499. =========================================================
  33500. On some targets, the instruction set contains SIMD vector instructions
  33501. which operate on multiple values contained in one large register at the
  33502. same time. For example, on the x86 the MMX, 3DNow! and SSE extensions
  33503. can be used this way.
  33504. The first step in using these extensions is to provide the necessary
  33505. data types. This should be done using an appropriate 'typedef':
  33506. typedef int v4si __attribute__ ((vector_size (16)));
  33507. The 'int' type specifies the "base type", while the attribute specifies
  33508. the vector size for the variable, measured in bytes. For example, the
  33509. declaration above causes the compiler to set the mode for the 'v4si'
  33510. type to be 16 bytes wide and divided into 'int' sized units. For a
  33511. 32-bit 'int' this means a vector of 4 units of 4 bytes, and the
  33512. corresponding mode of 'foo' is V4SI.
  33513. The 'vector_size' attribute is only applicable to integral and floating
  33514. scalars, although arrays, pointers, and function return values are
  33515. allowed in conjunction with this construct. Only sizes that are
  33516. positive power-of-two multiples of the base type size are currently
  33517. allowed.
  33518. All the basic integer types can be used as base types, both as signed
  33519. and as unsigned: 'char', 'short', 'int', 'long', 'long long'. In
  33520. addition, 'float' and 'double' can be used to build floating-point
  33521. vector types.
  33522. Specifying a combination that is not valid for the current architecture
  33523. causes GCC to synthesize the instructions using a narrower mode. For
  33524. example, if you specify a variable of type 'V4SI' and your architecture
  33525. does not allow for this specific SIMD type, GCC produces code that uses
  33526. 4 'SIs'.
  33527. The types defined in this manner can be used with a subset of normal C
  33528. operations. Currently, GCC allows using the following operators on
  33529. these types: '+, -, *, /, unary minus, ^, |, &, ~, %'.
  33530. The operations behave like C++ 'valarrays'. Addition is defined as the
  33531. addition of the corresponding elements of the operands. For example, in
  33532. the code below, each of the 4 elements in A is added to the
  33533. corresponding 4 elements in B and the resulting vector is stored in C.
  33534. typedef int v4si __attribute__ ((vector_size (16)));
  33535. v4si a, b, c;
  33536. c = a + b;
  33537. Subtraction, multiplication, division, and the logical operations
  33538. operate in a similar manner. Likewise, the result of using the unary
  33539. minus or complement operators on a vector type is a vector whose
  33540. elements are the negative or complemented values of the corresponding
  33541. elements in the operand.
  33542. It is possible to use shifting operators '<<', '>>' on integer-type
  33543. vectors. The operation is defined as following: '{a0, a1, ..., an} >>
  33544. {b0, b1, ..., bn} == {a0 >> b0, a1 >> b1, ..., an >> bn}'. Vector
  33545. operands must have the same number of elements.
  33546. For convenience, it is allowed to use a binary vector operation where
  33547. one operand is a scalar. In that case the compiler transforms the
  33548. scalar operand into a vector where each element is the scalar from the
  33549. operation. The transformation happens only if the scalar could be
  33550. safely converted to the vector-element type. Consider the following
  33551. code.
  33552. typedef int v4si __attribute__ ((vector_size (16)));
  33553. v4si a, b, c;
  33554. long l;
  33555. a = b + 1; /* a = b + {1,1,1,1}; */
  33556. a = 2 * b; /* a = {2,2,2,2} * b; */
  33557. a = l + a; /* Error, cannot convert long to int. */
  33558. Vectors can be subscripted as if the vector were an array with the same
  33559. number of elements and base type. Out of bound accesses invoke
  33560. undefined behavior at run time. Warnings for out of bound accesses for
  33561. vector subscription can be enabled with '-Warray-bounds'.
  33562. Vector comparison is supported with standard comparison operators: '==,
  33563. !=, <, <=, >, >='. Comparison operands can be vector expressions of
  33564. integer-type or real-type. Comparison between integer-type vectors and
  33565. real-type vectors are not supported. The result of the comparison is a
  33566. vector of the same width and number of elements as the comparison
  33567. operands with a signed integral element type.
  33568. Vectors are compared element-wise producing 0 when comparison is false
  33569. and -1 (constant of the appropriate type where all bits are set)
  33570. otherwise. Consider the following example.
  33571. typedef int v4si __attribute__ ((vector_size (16)));
  33572. v4si a = {1,2,3,4};
  33573. v4si b = {3,2,1,4};
  33574. v4si c;
  33575. c = a > b; /* The result would be {0, 0,-1, 0} */
  33576. c = a == b; /* The result would be {0,-1, 0,-1} */
  33577. In C++, the ternary operator '?:' is available. 'a?b:c', where 'b' and
  33578. 'c' are vectors of the same type and 'a' is an integer vector with the
  33579. same number of elements of the same size as 'b' and 'c', computes all
  33580. three arguments and creates a vector '{a[0]?b[0]:c[0], a[1]?b[1]:c[1],
  33581. ...}'. Note that unlike in OpenCL, 'a' is thus interpreted as 'a != 0'
  33582. and not 'a < 0'. As in the case of binary operations, this syntax is
  33583. also accepted when one of 'b' or 'c' is a scalar that is then
  33584. transformed into a vector. If both 'b' and 'c' are scalars and the type
  33585. of 'true?b:c' has the same size as the element type of 'a', then 'b' and
  33586. 'c' are converted to a vector type whose elements have this type and
  33587. with the same number of elements as 'a'.
  33588. In C++, the logic operators '!, &&, ||' are available for vectors.
  33589. '!v' is equivalent to 'v == 0', 'a && b' is equivalent to 'a!=0 & b!=0'
  33590. and 'a || b' is equivalent to 'a!=0 | b!=0'. For mixed operations
  33591. between a scalar 's' and a vector 'v', 's && v' is equivalent to
  33592. 's?v!=0:0' (the evaluation is short-circuit) and 'v && s' is equivalent
  33593. to 'v!=0 & (s?-1:0)'.
  33594. Vector shuffling is available using functions '__builtin_shuffle (vec,
  33595. mask)' and '__builtin_shuffle (vec0, vec1, mask)'. Both functions
  33596. construct a permutation of elements from one or two vectors and return a
  33597. vector of the same type as the input vector(s). The MASK is an integral
  33598. vector with the same width (W) and element count (N) as the output
  33599. vector.
  33600. The elements of the input vectors are numbered in memory ordering of
  33601. VEC0 beginning at 0 and VEC1 beginning at N. The elements of MASK are
  33602. considered modulo N in the single-operand case and modulo 2*N in the
  33603. two-operand case.
  33604. Consider the following example,
  33605. typedef int v4si __attribute__ ((vector_size (16)));
  33606. v4si a = {1,2,3,4};
  33607. v4si b = {5,6,7,8};
  33608. v4si mask1 = {0,1,1,3};
  33609. v4si mask2 = {0,4,2,5};
  33610. v4si res;
  33611. res = __builtin_shuffle (a, mask1); /* res is {1,2,2,4} */
  33612. res = __builtin_shuffle (a, b, mask2); /* res is {1,5,3,6} */
  33613. Note that '__builtin_shuffle' is intentionally semantically compatible
  33614. with the OpenCL 'shuffle' and 'shuffle2' functions.
  33615. You can declare variables and use them in function calls and returns,
  33616. as well as in assignments and some casts. You can specify a vector type
  33617. as a return type for a function. Vector types can also be used as
  33618. function arguments. It is possible to cast from one vector type to
  33619. another, provided they are of the same size (in fact, you can also cast
  33620. vectors to and from other datatypes of the same size).
  33621. You cannot operate between vectors of different lengths or different
  33622. signedness without a cast.
  33623. Vector conversion is available using the '__builtin_convertvector (vec,
  33624. vectype)' function. VEC must be an expression with integral or floating
  33625. vector type and VECTYPE an integral or floating vector type with the
  33626. same number of elements. The result has VECTYPE type and value of a C
  33627. cast of every element of VEC to the element type of VECTYPE.
  33628. Consider the following example,
  33629. typedef int v4si __attribute__ ((vector_size (16)));
  33630. typedef float v4sf __attribute__ ((vector_size (16)));
  33631. typedef double v4df __attribute__ ((vector_size (32)));
  33632. typedef unsigned long long v4di __attribute__ ((vector_size (32)));
  33633. v4si a = {1,-2,3,-4};
  33634. v4sf b = {1.5f,-2.5f,3.f,7.f};
  33635. v4di c = {1ULL,5ULL,0ULL,10ULL};
  33636. v4sf d = __builtin_convertvector (a, v4sf); /* d is {1.f,-2.f,3.f,-4.f} */
  33637. /* Equivalent of:
  33638. v4sf d = { (float)a[0], (float)a[1], (float)a[2], (float)a[3] }; */
  33639. v4df e = __builtin_convertvector (a, v4df); /* e is {1.,-2.,3.,-4.} */
  33640. v4df f = __builtin_convertvector (b, v4df); /* f is {1.5,-2.5,3.,7.} */
  33641. v4si g = __builtin_convertvector (f, v4si); /* g is {1,-2,3,7} */
  33642. v4si h = __builtin_convertvector (c, v4si); /* h is {1,5,0,10} */
  33643. Sometimes it is desirable to write code using a mix of generic vector
  33644. operations (for clarity) and machine-specific vector intrinsics (to
  33645. access vector instructions that are not exposed via generic built-ins).
  33646. On x86, intrinsic functions for integer vectors typically use the same
  33647. vector type '__m128i' irrespective of how they interpret the vector,
  33648. making it necessary to cast their arguments and return values from/to
  33649. other vector types. In C, you can make use of a 'union' type:
  33650. #include <immintrin.h>
  33651. typedef unsigned char u8x16 __attribute__ ((vector_size (16)));
  33652. typedef unsigned int u32x4 __attribute__ ((vector_size (16)));
  33653. typedef union {
  33654. __m128i mm;
  33655. u8x16 u8;
  33656. u32x4 u32;
  33657. } v128;
  33658. for variables that can be used with both built-in operators and x86
  33659. intrinsics:
  33660. v128 x, y = { 0 };
  33661. memcpy (&x, ptr, sizeof x);
  33662. y.u8 += 0x80;
  33663. x.mm = _mm_adds_epu8 (x.mm, y.mm);
  33664. x.u32 &= 0xffffff;
  33665. /* Instead of a variable, a compound literal may be used to pass the
  33666. return value of an intrinsic call to a function expecting the union: */
  33667. v128 foo (v128);
  33668. x = foo ((v128) {_mm_adds_epu8 (x.mm, y.mm)});
  33669. 
  33670. File: gcc.info, Node: Offsetof, Next: __sync Builtins, Prev: Vector Extensions, Up: C Extensions
  33671. 6.53 Support for 'offsetof'
  33672. ===========================
  33673. GCC implements for both C and C++ a syntactic extension to implement the
  33674. 'offsetof' macro.
  33675. primary:
  33676. "__builtin_offsetof" "(" typename "," offsetof_member_designator ")"
  33677. offsetof_member_designator:
  33678. identifier
  33679. | offsetof_member_designator "." identifier
  33680. | offsetof_member_designator "[" expr "]"
  33681. This extension is sufficient such that
  33682. #define offsetof(TYPE, MEMBER) __builtin_offsetof (TYPE, MEMBER)
  33683. is a suitable definition of the 'offsetof' macro. In C++, TYPE may be
  33684. dependent. In either case, MEMBER may consist of a single identifier,
  33685. or a sequence of member accesses and array references.
  33686. 
  33687. File: gcc.info, Node: __sync Builtins, Next: __atomic Builtins, Prev: Offsetof, Up: C Extensions
  33688. 6.54 Legacy '__sync' Built-in Functions for Atomic Memory Access
  33689. ================================================================
  33690. The following built-in functions are intended to be compatible with
  33691. those described in the 'Intel Itanium Processor-specific Application
  33692. Binary Interface', section 7.4. As such, they depart from normal GCC
  33693. practice by not using the '__builtin_' prefix and also by being
  33694. overloaded so that they work on multiple types.
  33695. The definition given in the Intel documentation allows only for the use
  33696. of the types 'int', 'long', 'long long' or their unsigned counterparts.
  33697. GCC allows any scalar type that is 1, 2, 4 or 8 bytes in size other than
  33698. the C type '_Bool' or the C++ type 'bool'. Operations on pointer
  33699. arguments are performed as if the operands were of the 'uintptr_t' type.
  33700. That is, they are not scaled by the size of the type to which the
  33701. pointer points.
  33702. These functions are implemented in terms of the '__atomic' builtins
  33703. (*note __atomic Builtins::). They should not be used for new code which
  33704. should use the '__atomic' builtins instead.
  33705. Not all operations are supported by all target processors. If a
  33706. particular operation cannot be implemented on the target processor, a
  33707. warning is generated and a call to an external function is generated.
  33708. The external function carries the same name as the built-in version,
  33709. with an additional suffix '_N' where N is the size of the data type.
  33710. In most cases, these built-in functions are considered a "full
  33711. barrier". That is, no memory operand is moved across the operation,
  33712. either forward or backward. Further, instructions are issued as
  33713. necessary to prevent the processor from speculating loads across the
  33714. operation and from queuing stores after the operation.
  33715. All of the routines are described in the Intel documentation to take
  33716. "an optional list of variables protected by the memory barrier". It's
  33717. not clear what is meant by that; it could mean that _only_ the listed
  33718. variables are protected, or it could mean a list of additional variables
  33719. to be protected. The list is ignored by GCC which treats it as empty.
  33720. GCC interprets an empty list as meaning that all globally accessible
  33721. variables should be protected.
  33722. 'TYPE __sync_fetch_and_add (TYPE *ptr, TYPE value, ...)'
  33723. 'TYPE __sync_fetch_and_sub (TYPE *ptr, TYPE value, ...)'
  33724. 'TYPE __sync_fetch_and_or (TYPE *ptr, TYPE value, ...)'
  33725. 'TYPE __sync_fetch_and_and (TYPE *ptr, TYPE value, ...)'
  33726. 'TYPE __sync_fetch_and_xor (TYPE *ptr, TYPE value, ...)'
  33727. 'TYPE __sync_fetch_and_nand (TYPE *ptr, TYPE value, ...)'
  33728. These built-in functions perform the operation suggested by the
  33729. name, and returns the value that had previously been in memory.
  33730. That is, operations on integer operands have the following
  33731. semantics. Operations on pointer arguments are performed as if the
  33732. operands were of the 'uintptr_t' type. That is, they are not
  33733. scaled by the size of the type to which the pointer points.
  33734. { tmp = *ptr; *ptr OP= value; return tmp; }
  33735. { tmp = *ptr; *ptr = ~(tmp & value); return tmp; } // nand
  33736. The object pointed to by the first argument must be of integer or
  33737. pointer type. It must not be a boolean type.
  33738. _Note:_ GCC 4.4 and later implement '__sync_fetch_and_nand' as
  33739. '*ptr = ~(tmp & value)' instead of '*ptr = ~tmp & value'.
  33740. 'TYPE __sync_add_and_fetch (TYPE *ptr, TYPE value, ...)'
  33741. 'TYPE __sync_sub_and_fetch (TYPE *ptr, TYPE value, ...)'
  33742. 'TYPE __sync_or_and_fetch (TYPE *ptr, TYPE value, ...)'
  33743. 'TYPE __sync_and_and_fetch (TYPE *ptr, TYPE value, ...)'
  33744. 'TYPE __sync_xor_and_fetch (TYPE *ptr, TYPE value, ...)'
  33745. 'TYPE __sync_nand_and_fetch (TYPE *ptr, TYPE value, ...)'
  33746. These built-in functions perform the operation suggested by the
  33747. name, and return the new value. That is, operations on integer
  33748. operands have the following semantics. Operations on pointer
  33749. operands are performed as if the operand's type were 'uintptr_t'.
  33750. { *ptr OP= value; return *ptr; }
  33751. { *ptr = ~(*ptr & value); return *ptr; } // nand
  33752. The same constraints on arguments apply as for the corresponding
  33753. '__sync_op_and_fetch' built-in functions.
  33754. _Note:_ GCC 4.4 and later implement '__sync_nand_and_fetch' as
  33755. '*ptr = ~(*ptr & value)' instead of '*ptr = ~*ptr & value'.
  33756. 'bool __sync_bool_compare_and_swap (TYPE *ptr, TYPE oldval, TYPE newval, ...)'
  33757. 'TYPE __sync_val_compare_and_swap (TYPE *ptr, TYPE oldval, TYPE newval, ...)'
  33758. These built-in functions perform an atomic compare and swap. That
  33759. is, if the current value of '*PTR' is OLDVAL, then write NEWVAL
  33760. into '*PTR'.
  33761. The "bool" version returns 'true' if the comparison is successful
  33762. and NEWVAL is written. The "val" version returns the contents of
  33763. '*PTR' before the operation.
  33764. '__sync_synchronize (...)'
  33765. This built-in function issues a full memory barrier.
  33766. 'TYPE __sync_lock_test_and_set (TYPE *ptr, TYPE value, ...)'
  33767. This built-in function, as described by Intel, is not a traditional
  33768. test-and-set operation, but rather an atomic exchange operation.
  33769. It writes VALUE into '*PTR', and returns the previous contents of
  33770. '*PTR'.
  33771. Many targets have only minimal support for such locks, and do not
  33772. support a full exchange operation. In this case, a target may
  33773. support reduced functionality here by which the _only_ valid value
  33774. to store is the immediate constant 1. The exact value actually
  33775. stored in '*PTR' is implementation defined.
  33776. This built-in function is not a full barrier, but rather an
  33777. "acquire barrier". This means that references after the operation
  33778. cannot move to (or be speculated to) before the operation, but
  33779. previous memory stores may not be globally visible yet, and
  33780. previous memory loads may not yet be satisfied.
  33781. 'void __sync_lock_release (TYPE *ptr, ...)'
  33782. This built-in function releases the lock acquired by
  33783. '__sync_lock_test_and_set'. Normally this means writing the
  33784. constant 0 to '*PTR'.
  33785. This built-in function is not a full barrier, but rather a "release
  33786. barrier". This means that all previous memory stores are globally
  33787. visible, and all previous memory loads have been satisfied, but
  33788. following memory reads are not prevented from being speculated to
  33789. before the barrier.
  33790. 
  33791. File: gcc.info, Node: __atomic Builtins, Next: Integer Overflow Builtins, Prev: __sync Builtins, Up: C Extensions
  33792. 6.55 Built-in Functions for Memory Model Aware Atomic Operations
  33793. ================================================================
  33794. The following built-in functions approximately match the requirements
  33795. for the C++11 memory model. They are all identified by being prefixed
  33796. with '__atomic' and most are overloaded so that they work with multiple
  33797. types.
  33798. These functions are intended to replace the legacy '__sync' builtins.
  33799. The main difference is that the memory order that is requested is a
  33800. parameter to the functions. New code should always use the '__atomic'
  33801. builtins rather than the '__sync' builtins.
  33802. Note that the '__atomic' builtins assume that programs will conform to
  33803. the C++11 memory model. In particular, they assume that programs are
  33804. free of data races. See the C++11 standard for detailed requirements.
  33805. The '__atomic' builtins can be used with any integral scalar or pointer
  33806. type that is 1, 2, 4, or 8 bytes in length. 16-byte integral types are
  33807. also allowed if '__int128' (*note __int128::) is supported by the
  33808. architecture.
  33809. The four non-arithmetic functions (load, store, exchange, and
  33810. compare_exchange) all have a generic version as well. This generic
  33811. version works on any data type. It uses the lock-free built-in function
  33812. if the specific data type size makes that possible; otherwise, an
  33813. external call is left to be resolved at run time. This external call is
  33814. the same format with the addition of a 'size_t' parameter inserted as
  33815. the first parameter indicating the size of the object being pointed to.
  33816. All objects must be the same size.
  33817. There are 6 different memory orders that can be specified. These map
  33818. to the C++11 memory orders with the same names, see the C++11 standard
  33819. or the GCC wiki on atomic synchronization
  33820. (http://gcc.gnu.org/wiki/Atomic/GCCMM/AtomicSync) for detailed
  33821. definitions. Individual targets may also support additional memory
  33822. orders for use on specific architectures. Refer to the target
  33823. documentation for details of these.
  33824. An atomic operation can both constrain code motion and be mapped to
  33825. hardware instructions for synchronization between threads (e.g., a
  33826. fence). To which extent this happens is controlled by the memory
  33827. orders, which are listed here in approximately ascending order of
  33828. strength. The description of each memory order is only meant to roughly
  33829. illustrate the effects and is not a specification; see the C++11 memory
  33830. model for precise semantics.
  33831. '__ATOMIC_RELAXED'
  33832. Implies no inter-thread ordering constraints.
  33833. '__ATOMIC_CONSUME'
  33834. This is currently implemented using the stronger '__ATOMIC_ACQUIRE'
  33835. memory order because of a deficiency in C++11's semantics for
  33836. 'memory_order_consume'.
  33837. '__ATOMIC_ACQUIRE'
  33838. Creates an inter-thread happens-before constraint from the release
  33839. (or stronger) semantic store to this acquire load. Can prevent
  33840. hoisting of code to before the operation.
  33841. '__ATOMIC_RELEASE'
  33842. Creates an inter-thread happens-before constraint to acquire (or
  33843. stronger) semantic loads that read from this release store. Can
  33844. prevent sinking of code to after the operation.
  33845. '__ATOMIC_ACQ_REL'
  33846. Combines the effects of both '__ATOMIC_ACQUIRE' and
  33847. '__ATOMIC_RELEASE'.
  33848. '__ATOMIC_SEQ_CST'
  33849. Enforces total ordering with all other '__ATOMIC_SEQ_CST'
  33850. operations.
  33851. Note that in the C++11 memory model, _fences_ (e.g.,
  33852. '__atomic_thread_fence') take effect in combination with other atomic
  33853. operations on specific memory locations (e.g., atomic loads); operations
  33854. on specific memory locations do not necessarily affect other operations
  33855. in the same way.
  33856. Target architectures are encouraged to provide their own patterns for
  33857. each of the atomic built-in functions. If no target is provided, the
  33858. original non-memory model set of '__sync' atomic built-in functions are
  33859. used, along with any required synchronization fences surrounding it in
  33860. order to achieve the proper behavior. Execution in this case is subject
  33861. to the same restrictions as those built-in functions.
  33862. If there is no pattern or mechanism to provide a lock-free instruction
  33863. sequence, a call is made to an external routine with the same parameters
  33864. to be resolved at run time.
  33865. When implementing patterns for these built-in functions, the memory
  33866. order parameter can be ignored as long as the pattern implements the
  33867. most restrictive '__ATOMIC_SEQ_CST' memory order. Any of the other
  33868. memory orders execute correctly with this memory order but they may not
  33869. execute as efficiently as they could with a more appropriate
  33870. implementation of the relaxed requirements.
  33871. Note that the C++11 standard allows for the memory order parameter to
  33872. be determined at run time rather than at compile time. These built-in
  33873. functions map any run-time value to '__ATOMIC_SEQ_CST' rather than
  33874. invoke a runtime library call or inline a switch statement. This is
  33875. standard compliant, safe, and the simplest approach for now.
  33876. The memory order parameter is a signed int, but only the lower 16 bits
  33877. are reserved for the memory order. The remainder of the signed int is
  33878. reserved for target use and should be 0. Use of the predefined atomic
  33879. values ensures proper usage.
  33880. -- Built-in Function: TYPE __atomic_load_n (TYPE *ptr, int memorder)
  33881. This built-in function implements an atomic load operation. It
  33882. returns the contents of '*PTR'.
  33883. The valid memory order variants are '__ATOMIC_RELAXED',
  33884. '__ATOMIC_SEQ_CST', '__ATOMIC_ACQUIRE', and '__ATOMIC_CONSUME'.
  33885. -- Built-in Function: void __atomic_load (TYPE *ptr, TYPE *ret, int
  33886. memorder)
  33887. This is the generic version of an atomic load. It returns the
  33888. contents of '*PTR' in '*RET'.
  33889. -- Built-in Function: void __atomic_store_n (TYPE *ptr, TYPE val, int
  33890. memorder)
  33891. This built-in function implements an atomic store operation. It
  33892. writes 'VAL' into '*PTR'.
  33893. The valid memory order variants are '__ATOMIC_RELAXED',
  33894. '__ATOMIC_SEQ_CST', and '__ATOMIC_RELEASE'.
  33895. -- Built-in Function: void __atomic_store (TYPE *ptr, TYPE *val, int
  33896. memorder)
  33897. This is the generic version of an atomic store. It stores the
  33898. value of '*VAL' into '*PTR'.
  33899. -- Built-in Function: TYPE __atomic_exchange_n (TYPE *ptr, TYPE val,
  33900. int memorder)
  33901. This built-in function implements an atomic exchange operation. It
  33902. writes VAL into '*PTR', and returns the previous contents of
  33903. '*PTR'.
  33904. The valid memory order variants are '__ATOMIC_RELAXED',
  33905. '__ATOMIC_SEQ_CST', '__ATOMIC_ACQUIRE', '__ATOMIC_RELEASE', and
  33906. '__ATOMIC_ACQ_REL'.
  33907. -- Built-in Function: void __atomic_exchange (TYPE *ptr, TYPE *val,
  33908. TYPE *ret, int memorder)
  33909. This is the generic version of an atomic exchange. It stores the
  33910. contents of '*VAL' into '*PTR'. The original value of '*PTR' is
  33911. copied into '*RET'.
  33912. -- Built-in Function: bool __atomic_compare_exchange_n (TYPE *ptr, TYPE
  33913. *expected, TYPE desired, bool weak, int success_memorder, int
  33914. failure_memorder)
  33915. This built-in function implements an atomic compare and exchange
  33916. operation. This compares the contents of '*PTR' with the contents
  33917. of '*EXPECTED'. If equal, the operation is a _read-modify-write_
  33918. operation that writes DESIRED into '*PTR'. If they are not equal,
  33919. the operation is a _read_ and the current contents of '*PTR' are
  33920. written into '*EXPECTED'. WEAK is 'true' for weak
  33921. compare_exchange, which may fail spuriously, and 'false' for the
  33922. strong variation, which never fails spuriously. Many targets only
  33923. offer the strong variation and ignore the parameter. When in
  33924. doubt, use the strong variation.
  33925. If DESIRED is written into '*PTR' then 'true' is returned and
  33926. memory is affected according to the memory order specified by
  33927. SUCCESS_MEMORDER. There are no restrictions on what memory order
  33928. can be used here.
  33929. Otherwise, 'false' is returned and memory is affected according to
  33930. FAILURE_MEMORDER. This memory order cannot be '__ATOMIC_RELEASE'
  33931. nor '__ATOMIC_ACQ_REL'. It also cannot be a stronger order than
  33932. that specified by SUCCESS_MEMORDER.
  33933. -- Built-in Function: bool __atomic_compare_exchange (TYPE *ptr, TYPE
  33934. *expected, TYPE *desired, bool weak, int success_memorder, int
  33935. failure_memorder)
  33936. This built-in function implements the generic version of
  33937. '__atomic_compare_exchange'. The function is virtually identical
  33938. to '__atomic_compare_exchange_n', except the desired value is also
  33939. a pointer.
  33940. -- Built-in Function: TYPE __atomic_add_fetch (TYPE *ptr, TYPE val, int
  33941. memorder)
  33942. -- Built-in Function: TYPE __atomic_sub_fetch (TYPE *ptr, TYPE val, int
  33943. memorder)
  33944. -- Built-in Function: TYPE __atomic_and_fetch (TYPE *ptr, TYPE val, int
  33945. memorder)
  33946. -- Built-in Function: TYPE __atomic_xor_fetch (TYPE *ptr, TYPE val, int
  33947. memorder)
  33948. -- Built-in Function: TYPE __atomic_or_fetch (TYPE *ptr, TYPE val, int
  33949. memorder)
  33950. -- Built-in Function: TYPE __atomic_nand_fetch (TYPE *ptr, TYPE val,
  33951. int memorder)
  33952. These built-in functions perform the operation suggested by the
  33953. name, and return the result of the operation. Operations on
  33954. pointer arguments are performed as if the operands were of the
  33955. 'uintptr_t' type. That is, they are not scaled by the size of the
  33956. type to which the pointer points.
  33957. { *ptr OP= val; return *ptr; }
  33958. { *ptr = ~(*ptr & val); return *ptr; } // nand
  33959. The object pointed to by the first argument must be of integer or
  33960. pointer type. It must not be a boolean type. All memory orders
  33961. are valid.
  33962. -- Built-in Function: TYPE __atomic_fetch_add (TYPE *ptr, TYPE val, int
  33963. memorder)
  33964. -- Built-in Function: TYPE __atomic_fetch_sub (TYPE *ptr, TYPE val, int
  33965. memorder)
  33966. -- Built-in Function: TYPE __atomic_fetch_and (TYPE *ptr, TYPE val, int
  33967. memorder)
  33968. -- Built-in Function: TYPE __atomic_fetch_xor (TYPE *ptr, TYPE val, int
  33969. memorder)
  33970. -- Built-in Function: TYPE __atomic_fetch_or (TYPE *ptr, TYPE val, int
  33971. memorder)
  33972. -- Built-in Function: TYPE __atomic_fetch_nand (TYPE *ptr, TYPE val,
  33973. int memorder)
  33974. These built-in functions perform the operation suggested by the
  33975. name, and return the value that had previously been in '*PTR'.
  33976. Operations on pointer arguments are performed as if the operands
  33977. were of the 'uintptr_t' type. That is, they are not scaled by the
  33978. size of the type to which the pointer points.
  33979. { tmp = *ptr; *ptr OP= val; return tmp; }
  33980. { tmp = *ptr; *ptr = ~(*ptr & val); return tmp; } // nand
  33981. The same constraints on arguments apply as for the corresponding
  33982. '__atomic_op_fetch' built-in functions. All memory orders are
  33983. valid.
  33984. -- Built-in Function: bool __atomic_test_and_set (void *ptr, int
  33985. memorder)
  33986. This built-in function performs an atomic test-and-set operation on
  33987. the byte at '*PTR'. The byte is set to some implementation defined
  33988. nonzero "set" value and the return value is 'true' if and only if
  33989. the previous contents were "set". It should be only used for
  33990. operands of type 'bool' or 'char'. For other types only part of
  33991. the value may be set.
  33992. All memory orders are valid.
  33993. -- Built-in Function: void __atomic_clear (bool *ptr, int memorder)
  33994. This built-in function performs an atomic clear operation on
  33995. '*PTR'. After the operation, '*PTR' contains 0. It should be only
  33996. used for operands of type 'bool' or 'char' and in conjunction with
  33997. '__atomic_test_and_set'. For other types it may only clear
  33998. partially. If the type is not 'bool' prefer using
  33999. '__atomic_store'.
  34000. The valid memory order variants are '__ATOMIC_RELAXED',
  34001. '__ATOMIC_SEQ_CST', and '__ATOMIC_RELEASE'.
  34002. -- Built-in Function: void __atomic_thread_fence (int memorder)
  34003. This built-in function acts as a synchronization fence between
  34004. threads based on the specified memory order.
  34005. All memory orders are valid.
  34006. -- Built-in Function: void __atomic_signal_fence (int memorder)
  34007. This built-in function acts as a synchronization fence between a
  34008. thread and signal handlers based in the same thread.
  34009. All memory orders are valid.
  34010. -- Built-in Function: bool __atomic_always_lock_free (size_t size, void
  34011. *ptr)
  34012. This built-in function returns 'true' if objects of SIZE bytes
  34013. always generate lock-free atomic instructions for the target
  34014. architecture. SIZE must resolve to a compile-time constant and the
  34015. result also resolves to a compile-time constant.
  34016. PTR is an optional pointer to the object that may be used to
  34017. determine alignment. A value of 0 indicates typical alignment
  34018. should be used. The compiler may also ignore this parameter.
  34019. if (__atomic_always_lock_free (sizeof (long long), 0))
  34020. -- Built-in Function: bool __atomic_is_lock_free (size_t size, void
  34021. *ptr)
  34022. This built-in function returns 'true' if objects of SIZE bytes
  34023. always generate lock-free atomic instructions for the target
  34024. architecture. If the built-in function is not known to be
  34025. lock-free, a call is made to a runtime routine named
  34026. '__atomic_is_lock_free'.
  34027. PTR is an optional pointer to the object that may be used to
  34028. determine alignment. A value of 0 indicates typical alignment
  34029. should be used. The compiler may also ignore this parameter.
  34030. 
  34031. File: gcc.info, Node: Integer Overflow Builtins, Next: x86 specific memory model extensions for transactional memory, Prev: __atomic Builtins, Up: C Extensions
  34032. 6.56 Built-in Functions to Perform Arithmetic with Overflow Checking
  34033. ====================================================================
  34034. The following built-in functions allow performing simple arithmetic
  34035. operations together with checking whether the operations overflowed.
  34036. -- Built-in Function: bool __builtin_add_overflow (TYPE1 a, TYPE2 b,
  34037. TYPE3 *res)
  34038. -- Built-in Function: bool __builtin_sadd_overflow (int a, int b, int
  34039. *res)
  34040. -- Built-in Function: bool __builtin_saddl_overflow (long int a, long
  34041. int b, long int *res)
  34042. -- Built-in Function: bool __builtin_saddll_overflow (long long int a,
  34043. long long int b, long long int *res)
  34044. -- Built-in Function: bool __builtin_uadd_overflow (unsigned int a,
  34045. unsigned int b, unsigned int *res)
  34046. -- Built-in Function: bool __builtin_uaddl_overflow (unsigned long int
  34047. a, unsigned long int b, unsigned long int *res)
  34048. -- Built-in Function: bool __builtin_uaddll_overflow (unsigned long
  34049. long int a, unsigned long long int b, unsigned long long int
  34050. *res)
  34051. These built-in functions promote the first two operands into
  34052. infinite precision signed type and perform addition on those
  34053. promoted operands. The result is then cast to the type the third
  34054. pointer argument points to and stored there. If the stored result
  34055. is equal to the infinite precision result, the built-in functions
  34056. return 'false', otherwise they return 'true'. As the addition is
  34057. performed in infinite signed precision, these built-in functions
  34058. have fully defined behavior for all argument values.
  34059. The first built-in function allows arbitrary integral types for
  34060. operands and the result type must be pointer to some integral type
  34061. other than enumerated or boolean type, the rest of the built-in
  34062. functions have explicit integer types.
  34063. The compiler will attempt to use hardware instructions to implement
  34064. these built-in functions where possible, like conditional jump on
  34065. overflow after addition, conditional jump on carry etc.
  34066. -- Built-in Function: bool __builtin_sub_overflow (TYPE1 a, TYPE2 b,
  34067. TYPE3 *res)
  34068. -- Built-in Function: bool __builtin_ssub_overflow (int a, int b, int
  34069. *res)
  34070. -- Built-in Function: bool __builtin_ssubl_overflow (long int a, long
  34071. int b, long int *res)
  34072. -- Built-in Function: bool __builtin_ssubll_overflow (long long int a,
  34073. long long int b, long long int *res)
  34074. -- Built-in Function: bool __builtin_usub_overflow (unsigned int a,
  34075. unsigned int b, unsigned int *res)
  34076. -- Built-in Function: bool __builtin_usubl_overflow (unsigned long int
  34077. a, unsigned long int b, unsigned long int *res)
  34078. -- Built-in Function: bool __builtin_usubll_overflow (unsigned long
  34079. long int a, unsigned long long int b, unsigned long long int
  34080. *res)
  34081. These built-in functions are similar to the add overflow checking
  34082. built-in functions above, except they perform subtraction, subtract
  34083. the second argument from the first one, instead of addition.
  34084. -- Built-in Function: bool __builtin_mul_overflow (TYPE1 a, TYPE2 b,
  34085. TYPE3 *res)
  34086. -- Built-in Function: bool __builtin_smul_overflow (int a, int b, int
  34087. *res)
  34088. -- Built-in Function: bool __builtin_smull_overflow (long int a, long
  34089. int b, long int *res)
  34090. -- Built-in Function: bool __builtin_smulll_overflow (long long int a,
  34091. long long int b, long long int *res)
  34092. -- Built-in Function: bool __builtin_umul_overflow (unsigned int a,
  34093. unsigned int b, unsigned int *res)
  34094. -- Built-in Function: bool __builtin_umull_overflow (unsigned long int
  34095. a, unsigned long int b, unsigned long int *res)
  34096. -- Built-in Function: bool __builtin_umulll_overflow (unsigned long
  34097. long int a, unsigned long long int b, unsigned long long int
  34098. *res)
  34099. These built-in functions are similar to the add overflow checking
  34100. built-in functions above, except they perform multiplication,
  34101. instead of addition.
  34102. The following built-in functions allow checking if simple arithmetic
  34103. operation would overflow.
  34104. -- Built-in Function: bool __builtin_add_overflow_p (TYPE1 a, TYPE2 b,
  34105. TYPE3 c)
  34106. -- Built-in Function: bool __builtin_sub_overflow_p (TYPE1 a, TYPE2 b,
  34107. TYPE3 c)
  34108. -- Built-in Function: bool __builtin_mul_overflow_p (TYPE1 a, TYPE2 b,
  34109. TYPE3 c)
  34110. These built-in functions are similar to '__builtin_add_overflow',
  34111. '__builtin_sub_overflow', or '__builtin_mul_overflow', except that
  34112. they don't store the result of the arithmetic operation anywhere
  34113. and the last argument is not a pointer, but some expression with
  34114. integral type other than enumerated or boolean type.
  34115. The built-in functions promote the first two operands into infinite
  34116. precision signed type and perform addition on those promoted
  34117. operands. The result is then cast to the type of the third
  34118. argument. If the cast result is equal to the infinite precision
  34119. result, the built-in functions return 'false', otherwise they
  34120. return 'true'. The value of the third argument is ignored, just
  34121. the side effects in the third argument are evaluated, and no
  34122. integral argument promotions are performed on the last argument.
  34123. If the third argument is a bit-field, the type used for the result
  34124. cast has the precision and signedness of the given bit-field,
  34125. rather than precision and signedness of the underlying type.
  34126. For example, the following macro can be used to portably check, at
  34127. compile-time, whether or not adding two constant integers will
  34128. overflow, and perform the addition only when it is known to be safe
  34129. and not to trigger a '-Woverflow' warning.
  34130. #define INT_ADD_OVERFLOW_P(a, b) \
  34131. __builtin_add_overflow_p (a, b, (__typeof__ ((a) + (b))) 0)
  34132. enum {
  34133. A = INT_MAX, B = 3,
  34134. C = INT_ADD_OVERFLOW_P (A, B) ? 0 : A + B,
  34135. D = __builtin_add_overflow_p (1, SCHAR_MAX, (signed char) 0)
  34136. };
  34137. The compiler will attempt to use hardware instructions to implement
  34138. these built-in functions where possible, like conditional jump on
  34139. overflow after addition, conditional jump on carry etc.
  34140. 
  34141. File: gcc.info, Node: x86 specific memory model extensions for transactional memory, Next: Object Size Checking, Prev: Integer Overflow Builtins, Up: C Extensions
  34142. 6.57 x86-Specific Memory Model Extensions for Transactional Memory
  34143. ==================================================================
  34144. The x86 architecture supports additional memory ordering flags to mark
  34145. critical sections for hardware lock elision. These must be specified in
  34146. addition to an existing memory order to atomic intrinsics.
  34147. '__ATOMIC_HLE_ACQUIRE'
  34148. Start lock elision on a lock variable. Memory order must be
  34149. '__ATOMIC_ACQUIRE' or stronger.
  34150. '__ATOMIC_HLE_RELEASE'
  34151. End lock elision on a lock variable. Memory order must be
  34152. '__ATOMIC_RELEASE' or stronger.
  34153. When a lock acquire fails, it is required for good performance to abort
  34154. the transaction quickly. This can be done with a '_mm_pause'.
  34155. #include <immintrin.h> // For _mm_pause
  34156. int lockvar;
  34157. /* Acquire lock with lock elision */
  34158. while (__atomic_exchange_n(&lockvar, 1, __ATOMIC_ACQUIRE|__ATOMIC_HLE_ACQUIRE))
  34159. _mm_pause(); /* Abort failed transaction */
  34160. ...
  34161. /* Free lock with lock elision */
  34162. __atomic_store_n(&lockvar, 0, __ATOMIC_RELEASE|__ATOMIC_HLE_RELEASE);
  34163. 
  34164. File: gcc.info, Node: Object Size Checking, Next: Other Builtins, Prev: x86 specific memory model extensions for transactional memory, Up: C Extensions
  34165. 6.58 Object Size Checking Built-in Functions
  34166. ============================================
  34167. GCC implements a limited buffer overflow protection mechanism that can
  34168. prevent some buffer overflow attacks by determining the sizes of objects
  34169. into which data is about to be written and preventing the writes when
  34170. the size isn't sufficient. The built-in functions described below yield
  34171. the best results when used together and when optimization is enabled.
  34172. For example, to detect object sizes across function boundaries or to
  34173. follow pointer assignments through non-trivial control flow they rely on
  34174. various optimization passes enabled with '-O2'. However, to a limited
  34175. extent, they can be used without optimization as well.
  34176. -- Built-in Function: size_t __builtin_object_size (const void * PTR,
  34177. int TYPE)
  34178. is a built-in construct that returns a constant number of bytes
  34179. from PTR to the end of the object PTR pointer points to (if known
  34180. at compile time). To determine the sizes of dynamically allocated
  34181. objects the function relies on the allocation functions called to
  34182. obtain the storage to be declared with the 'alloc_size' attribute
  34183. (*note Common Function Attributes::). '__builtin_object_size'
  34184. never evaluates its arguments for side effects. If there are any
  34185. side effects in them, it returns '(size_t) -1' for TYPE 0 or 1 and
  34186. '(size_t) 0' for TYPE 2 or 3. If there are multiple objects PTR
  34187. can point to and all of them are known at compile time, the
  34188. returned number is the maximum of remaining byte counts in those
  34189. objects if TYPE & 2 is 0 and minimum if nonzero. If it is not
  34190. possible to determine which objects PTR points to at compile time,
  34191. '__builtin_object_size' should return '(size_t) -1' for TYPE 0 or 1
  34192. and '(size_t) 0' for TYPE 2 or 3.
  34193. TYPE is an integer constant from 0 to 3. If the least significant
  34194. bit is clear, objects are whole variables, if it is set, a closest
  34195. surrounding subobject is considered the object a pointer points to.
  34196. The second bit determines if maximum or minimum of remaining bytes
  34197. is computed.
  34198. struct V { char buf1[10]; int b; char buf2[10]; } var;
  34199. char *p = &var.buf1[1], *q = &var.b;
  34200. /* Here the object p points to is var. */
  34201. assert (__builtin_object_size (p, 0) == sizeof (var) - 1);
  34202. /* The subobject p points to is var.buf1. */
  34203. assert (__builtin_object_size (p, 1) == sizeof (var.buf1) - 1);
  34204. /* The object q points to is var. */
  34205. assert (__builtin_object_size (q, 0)
  34206. == (char *) (&var + 1) - (char *) &var.b);
  34207. /* The subobject q points to is var.b. */
  34208. assert (__builtin_object_size (q, 1) == sizeof (var.b));
  34209. There are built-in functions added for many common string operation
  34210. functions, e.g., for 'memcpy' '__builtin___memcpy_chk' built-in is
  34211. provided. This built-in has an additional last argument, which is the
  34212. number of bytes remaining in the object the DEST argument points to or
  34213. '(size_t) -1' if the size is not known.
  34214. The built-in functions are optimized into the normal string functions
  34215. like 'memcpy' if the last argument is '(size_t) -1' or if it is known at
  34216. compile time that the destination object will not be overflowed. If the
  34217. compiler can determine at compile time that the object will always be
  34218. overflowed, it issues a warning.
  34219. The intended use can be e.g.
  34220. #undef memcpy
  34221. #define bos0(dest) __builtin_object_size (dest, 0)
  34222. #define memcpy(dest, src, n) \
  34223. __builtin___memcpy_chk (dest, src, n, bos0 (dest))
  34224. char *volatile p;
  34225. char buf[10];
  34226. /* It is unknown what object p points to, so this is optimized
  34227. into plain memcpy - no checking is possible. */
  34228. memcpy (p, "abcde", n);
  34229. /* Destination is known and length too. It is known at compile
  34230. time there will be no overflow. */
  34231. memcpy (&buf[5], "abcde", 5);
  34232. /* Destination is known, but the length is not known at compile time.
  34233. This will result in __memcpy_chk call that can check for overflow
  34234. at run time. */
  34235. memcpy (&buf[5], "abcde", n);
  34236. /* Destination is known and it is known at compile time there will
  34237. be overflow. There will be a warning and __memcpy_chk call that
  34238. will abort the program at run time. */
  34239. memcpy (&buf[6], "abcde", 5);
  34240. Such built-in functions are provided for 'memcpy', 'mempcpy',
  34241. 'memmove', 'memset', 'strcpy', 'stpcpy', 'strncpy', 'strcat' and
  34242. 'strncat'.
  34243. There are also checking built-in functions for formatted output
  34244. functions.
  34245. int __builtin___sprintf_chk (char *s, int flag, size_t os, const char *fmt, ...);
  34246. int __builtin___snprintf_chk (char *s, size_t maxlen, int flag, size_t os,
  34247. const char *fmt, ...);
  34248. int __builtin___vsprintf_chk (char *s, int flag, size_t os, const char *fmt,
  34249. va_list ap);
  34250. int __builtin___vsnprintf_chk (char *s, size_t maxlen, int flag, size_t os,
  34251. const char *fmt, va_list ap);
  34252. The added FLAG argument is passed unchanged to '__sprintf_chk' etc.
  34253. functions and can contain implementation specific flags on what
  34254. additional security measures the checking function might take, such as
  34255. handling '%n' differently.
  34256. The OS argument is the object size S points to, like in the other
  34257. built-in functions. There is a small difference in the behavior though,
  34258. if OS is '(size_t) -1', the built-in functions are optimized into the
  34259. non-checking functions only if FLAG is 0, otherwise the checking
  34260. function is called with OS argument set to '(size_t) -1'.
  34261. In addition to this, there are checking built-in functions
  34262. '__builtin___printf_chk', '__builtin___vprintf_chk',
  34263. '__builtin___fprintf_chk' and '__builtin___vfprintf_chk'. These have
  34264. just one additional argument, FLAG, right before format string FMT. If
  34265. the compiler is able to optimize them to 'fputc' etc. functions, it
  34266. does, otherwise the checking function is called and the FLAG argument
  34267. passed to it.
  34268. 
  34269. File: gcc.info, Node: Other Builtins, Next: Target Builtins, Prev: Object Size Checking, Up: C Extensions
  34270. 6.59 Other Built-in Functions Provided by GCC
  34271. =============================================
  34272. GCC provides a large number of built-in functions other than the ones
  34273. mentioned above. Some of these are for internal use in the processing
  34274. of exceptions or variable-length argument lists and are not documented
  34275. here because they may change from time to time; we do not recommend
  34276. general use of these functions.
  34277. The remaining functions are provided for optimization purposes.
  34278. With the exception of built-ins that have library equivalents such as
  34279. the standard C library functions discussed below, or that expand to
  34280. library calls, GCC built-in functions are always expanded inline and
  34281. thus do not have corresponding entry points and their address cannot be
  34282. obtained. Attempting to use them in an expression other than a function
  34283. call results in a compile-time error.
  34284. GCC includes built-in versions of many of the functions in the standard
  34285. C library. These functions come in two forms: one whose names start
  34286. with the '__builtin_' prefix, and the other without. Both forms have
  34287. the same type (including prototype), the same address (when their
  34288. address is taken), and the same meaning as the C library functions even
  34289. if you specify the '-fno-builtin' option *note C Dialect Options::).
  34290. Many of these functions are only optimized in certain cases; if they are
  34291. not optimized in a particular case, a call to the library function is
  34292. emitted.
  34293. Outside strict ISO C mode ('-ansi', '-std=c90', '-std=c99' or
  34294. '-std=c11'), the functions '_exit', 'alloca', 'bcmp', 'bzero',
  34295. 'dcgettext', 'dgettext', 'dremf', 'dreml', 'drem', 'exp10f', 'exp10l',
  34296. 'exp10', 'ffsll', 'ffsl', 'ffs', 'fprintf_unlocked', 'fputs_unlocked',
  34297. 'gammaf', 'gammal', 'gamma', 'gammaf_r', 'gammal_r', 'gamma_r',
  34298. 'gettext', 'index', 'isascii', 'j0f', 'j0l', 'j0', 'j1f', 'j1l', 'j1',
  34299. 'jnf', 'jnl', 'jn', 'lgammaf_r', 'lgammal_r', 'lgamma_r', 'mempcpy',
  34300. 'pow10f', 'pow10l', 'pow10', 'printf_unlocked', 'rindex', 'roundeven',
  34301. 'roundevenf', 'roudnevenl', 'scalbf', 'scalbl', 'scalb', 'signbit',
  34302. 'signbitf', 'signbitl', 'signbitd32', 'signbitd64', 'signbitd128',
  34303. 'significandf', 'significandl', 'significand', 'sincosf', 'sincosl',
  34304. 'sincos', 'stpcpy', 'stpncpy', 'strcasecmp', 'strdup', 'strfmon',
  34305. 'strncasecmp', 'strndup', 'strnlen', 'toascii', 'y0f', 'y0l', 'y0',
  34306. 'y1f', 'y1l', 'y1', 'ynf', 'ynl' and 'yn' may be handled as built-in
  34307. functions. All these functions have corresponding versions prefixed
  34308. with '__builtin_', which may be used even in strict C90 mode.
  34309. The ISO C99 functions '_Exit', 'acoshf', 'acoshl', 'acosh', 'asinhf',
  34310. 'asinhl', 'asinh', 'atanhf', 'atanhl', 'atanh', 'cabsf', 'cabsl',
  34311. 'cabs', 'cacosf', 'cacoshf', 'cacoshl', 'cacosh', 'cacosl', 'cacos',
  34312. 'cargf', 'cargl', 'carg', 'casinf', 'casinhf', 'casinhl', 'casinh',
  34313. 'casinl', 'casin', 'catanf', 'catanhf', 'catanhl', 'catanh', 'catanl',
  34314. 'catan', 'cbrtf', 'cbrtl', 'cbrt', 'ccosf', 'ccoshf', 'ccoshl', 'ccosh',
  34315. 'ccosl', 'ccos', 'cexpf', 'cexpl', 'cexp', 'cimagf', 'cimagl', 'cimag',
  34316. 'clogf', 'clogl', 'clog', 'conjf', 'conjl', 'conj', 'copysignf',
  34317. 'copysignl', 'copysign', 'cpowf', 'cpowl', 'cpow', 'cprojf', 'cprojl',
  34318. 'cproj', 'crealf', 'creall', 'creal', 'csinf', 'csinhf', 'csinhl',
  34319. 'csinh', 'csinl', 'csin', 'csqrtf', 'csqrtl', 'csqrt', 'ctanf',
  34320. 'ctanhf', 'ctanhl', 'ctanh', 'ctanl', 'ctan', 'erfcf', 'erfcl', 'erfc',
  34321. 'erff', 'erfl', 'erf', 'exp2f', 'exp2l', 'exp2', 'expm1f', 'expm1l',
  34322. 'expm1', 'fdimf', 'fdiml', 'fdim', 'fmaf', 'fmal', 'fmaxf', 'fmaxl',
  34323. 'fmax', 'fma', 'fminf', 'fminl', 'fmin', 'hypotf', 'hypotl', 'hypot',
  34324. 'ilogbf', 'ilogbl', 'ilogb', 'imaxabs', 'isblank', 'iswblank',
  34325. 'lgammaf', 'lgammal', 'lgamma', 'llabs', 'llrintf', 'llrintl', 'llrint',
  34326. 'llroundf', 'llroundl', 'llround', 'log1pf', 'log1pl', 'log1p', 'log2f',
  34327. 'log2l', 'log2', 'logbf', 'logbl', 'logb', 'lrintf', 'lrintl', 'lrint',
  34328. 'lroundf', 'lroundl', 'lround', 'nearbyintf', 'nearbyintl', 'nearbyint',
  34329. 'nextafterf', 'nextafterl', 'nextafter', 'nexttowardf', 'nexttowardl',
  34330. 'nexttoward', 'remainderf', 'remainderl', 'remainder', 'remquof',
  34331. 'remquol', 'remquo', 'rintf', 'rintl', 'rint', 'roundf', 'roundl',
  34332. 'round', 'scalblnf', 'scalblnl', 'scalbln', 'scalbnf', 'scalbnl',
  34333. 'scalbn', 'snprintf', 'tgammaf', 'tgammal', 'tgamma', 'truncf',
  34334. 'truncl', 'trunc', 'vfscanf', 'vscanf', 'vsnprintf' and 'vsscanf' are
  34335. handled as built-in functions except in strict ISO C90 mode ('-ansi' or
  34336. '-std=c90').
  34337. There are also built-in versions of the ISO C99 functions 'acosf',
  34338. 'acosl', 'asinf', 'asinl', 'atan2f', 'atan2l', 'atanf', 'atanl',
  34339. 'ceilf', 'ceill', 'cosf', 'coshf', 'coshl', 'cosl', 'expf', 'expl',
  34340. 'fabsf', 'fabsl', 'floorf', 'floorl', 'fmodf', 'fmodl', 'frexpf',
  34341. 'frexpl', 'ldexpf', 'ldexpl', 'log10f', 'log10l', 'logf', 'logl',
  34342. 'modfl', 'modf', 'powf', 'powl', 'sinf', 'sinhf', 'sinhl', 'sinl',
  34343. 'sqrtf', 'sqrtl', 'tanf', 'tanhf', 'tanhl' and 'tanl' that are
  34344. recognized in any mode since ISO C90 reserves these names for the
  34345. purpose to which ISO C99 puts them. All these functions have
  34346. corresponding versions prefixed with '__builtin_'.
  34347. There are also built-in functions '__builtin_fabsfN',
  34348. '__builtin_fabsfNx', '__builtin_copysignfN' and '__builtin_copysignfNx',
  34349. corresponding to the TS 18661-3 functions 'fabsfN', 'fabsfNx',
  34350. 'copysignfN' and 'copysignfNx', for supported types '_FloatN' and
  34351. '_FloatNx'.
  34352. There are also GNU extension functions 'clog10', 'clog10f' and
  34353. 'clog10l' which names are reserved by ISO C99 for future use. All these
  34354. functions have versions prefixed with '__builtin_'.
  34355. The ISO C94 functions 'iswalnum', 'iswalpha', 'iswcntrl', 'iswdigit',
  34356. 'iswgraph', 'iswlower', 'iswprint', 'iswpunct', 'iswspace', 'iswupper',
  34357. 'iswxdigit', 'towlower' and 'towupper' are handled as built-in functions
  34358. except in strict ISO C90 mode ('-ansi' or '-std=c90').
  34359. The ISO C90 functions 'abort', 'abs', 'acos', 'asin', 'atan2', 'atan',
  34360. 'calloc', 'ceil', 'cosh', 'cos', 'exit', 'exp', 'fabs', 'floor', 'fmod',
  34361. 'fprintf', 'fputs', 'free', 'frexp', 'fscanf', 'isalnum', 'isalpha',
  34362. 'iscntrl', 'isdigit', 'isgraph', 'islower', 'isprint', 'ispunct',
  34363. 'isspace', 'isupper', 'isxdigit', 'tolower', 'toupper', 'labs', 'ldexp',
  34364. 'log10', 'log', 'malloc', 'memchr', 'memcmp', 'memcpy', 'memset',
  34365. 'modf', 'pow', 'printf', 'putchar', 'puts', 'realloc', 'scanf', 'sinh',
  34366. 'sin', 'snprintf', 'sprintf', 'sqrt', 'sscanf', 'strcat', 'strchr',
  34367. 'strcmp', 'strcpy', 'strcspn', 'strlen', 'strncat', 'strncmp',
  34368. 'strncpy', 'strpbrk', 'strrchr', 'strspn', 'strstr', 'tanh', 'tan',
  34369. 'vfprintf', 'vprintf' and 'vsprintf' are all recognized as built-in
  34370. functions unless '-fno-builtin' is specified (or '-fno-builtin-FUNCTION'
  34371. is specified for an individual function). All of these functions have
  34372. corresponding versions prefixed with '__builtin_'.
  34373. GCC provides built-in versions of the ISO C99 floating-point comparison
  34374. macros that avoid raising exceptions for unordered operands. They have
  34375. the same names as the standard macros ( 'isgreater', 'isgreaterequal',
  34376. 'isless', 'islessequal', 'islessgreater', and 'isunordered') , with
  34377. '__builtin_' prefixed. We intend for a library implementor to be able
  34378. to simply '#define' each standard macro to its built-in equivalent. In
  34379. the same fashion, GCC provides 'fpclassify', 'isfinite', 'isinf_sign',
  34380. 'isnormal' and 'signbit' built-ins used with '__builtin_' prefixed. The
  34381. 'isinf' and 'isnan' built-in functions appear both with and without the
  34382. '__builtin_' prefix.
  34383. -- Built-in Function: void *__builtin_alloca (size_t size)
  34384. The '__builtin_alloca' function must be called at block scope. The
  34385. function allocates an object SIZE bytes large on the stack of the
  34386. calling function. The object is aligned on the default stack
  34387. alignment boundary for the target determined by the
  34388. '__BIGGEST_ALIGNMENT__' macro. The '__builtin_alloca' function
  34389. returns a pointer to the first byte of the allocated object. The
  34390. lifetime of the allocated object ends just before the calling
  34391. function returns to its caller. This is so even when
  34392. '__builtin_alloca' is called within a nested block.
  34393. For example, the following function allocates eight objects of 'n'
  34394. bytes each on the stack, storing a pointer to each in consecutive
  34395. elements of the array 'a'. It then passes the array to function
  34396. 'g' which can safely use the storage pointed to by each of the
  34397. array elements.
  34398. void f (unsigned n)
  34399. {
  34400. void *a [8];
  34401. for (int i = 0; i != 8; ++i)
  34402. a [i] = __builtin_alloca (n);
  34403. g (a, n); // safe
  34404. }
  34405. Since the '__builtin_alloca' function doesn't validate its argument
  34406. it is the responsibility of its caller to make sure the argument
  34407. doesn't cause it to exceed the stack size limit. The
  34408. '__builtin_alloca' function is provided to make it possible to
  34409. allocate on the stack arrays of bytes with an upper bound that may
  34410. be computed at run time. Since C99 Variable Length Arrays offer
  34411. similar functionality under a portable, more convenient, and safer
  34412. interface they are recommended instead, in both C99 and C++
  34413. programs where GCC provides them as an extension. *Note Variable
  34414. Length::, for details.
  34415. -- Built-in Function: void *__builtin_alloca_with_align (size_t size,
  34416. size_t alignment)
  34417. The '__builtin_alloca_with_align' function must be called at block
  34418. scope. The function allocates an object SIZE bytes large on the
  34419. stack of the calling function. The allocated object is aligned on
  34420. the boundary specified by the argument ALIGNMENT whose unit is
  34421. given in bits (not bytes). The SIZE argument must be positive and
  34422. not exceed the stack size limit. The ALIGNMENT argument must be a
  34423. constant integer expression that evaluates to a power of 2 greater
  34424. than or equal to 'CHAR_BIT' and less than some unspecified maximum.
  34425. Invocations with other values are rejected with an error indicating
  34426. the valid bounds. The function returns a pointer to the first byte
  34427. of the allocated object. The lifetime of the allocated object ends
  34428. at the end of the block in which the function was called. The
  34429. allocated storage is released no later than just before the calling
  34430. function returns to its caller, but may be released at the end of
  34431. the block in which the function was called.
  34432. For example, in the following function the call to 'g' is unsafe
  34433. because when 'overalign' is non-zero, the space allocated by
  34434. '__builtin_alloca_with_align' may have been released at the end of
  34435. the 'if' statement in which it was called.
  34436. void f (unsigned n, bool overalign)
  34437. {
  34438. void *p;
  34439. if (overalign)
  34440. p = __builtin_alloca_with_align (n, 64 /* bits */);
  34441. else
  34442. p = __builtin_alloc (n);
  34443. g (p, n); // unsafe
  34444. }
  34445. Since the '__builtin_alloca_with_align' function doesn't validate
  34446. its SIZE argument it is the responsibility of its caller to make
  34447. sure the argument doesn't cause it to exceed the stack size limit.
  34448. The '__builtin_alloca_with_align' function is provided to make it
  34449. possible to allocate on the stack overaligned arrays of bytes with
  34450. an upper bound that may be computed at run time. Since C99
  34451. Variable Length Arrays offer the same functionality under a
  34452. portable, more convenient, and safer interface they are recommended
  34453. instead, in both C99 and C++ programs where GCC provides them as an
  34454. extension. *Note Variable Length::, for details.
  34455. -- Built-in Function: void *__builtin_alloca_with_align_and_max (size_t
  34456. size, size_t alignment, size_t max_size)
  34457. Similar to '__builtin_alloca_with_align' but takes an extra
  34458. argument specifying an upper bound for SIZE in case its value
  34459. cannot be computed at compile time, for use by '-fstack-usage',
  34460. '-Wstack-usage' and '-Walloca-larger-than'. MAX_SIZE must be a
  34461. constant integer expression, it has no effect on code generation
  34462. and no attempt is made to check its compatibility with SIZE.
  34463. -- Built-in Function: bool __builtin_has_attribute (TYPE-OR-EXPRESSION,
  34464. ATTRIBUTE)
  34465. The '__builtin_has_attribute' function evaluates to an integer
  34466. constant expression equal to 'true' if the symbol or type
  34467. referenced by the TYPE-OR-EXPRESSION argument has been declared
  34468. with the ATTRIBUTE referenced by the second argument. For an
  34469. TYPE-OR-EXPRESSION argument that does not reference a symbol, since
  34470. attributes do not apply to expressions the built-in consider the
  34471. type of the argument. Neither argument is evaluated. The
  34472. TYPE-OR-EXPRESSION argument is subject to the same restrictions as
  34473. the argument to 'typeof' (*note Typeof::). The ATTRIBUTE argument
  34474. is an attribute name optionally followed by a comma-separated list
  34475. of arguments enclosed in parentheses. Both forms of attribute
  34476. names--with and without double leading and trailing
  34477. underscores--are recognized. *Note Attribute Syntax::, for
  34478. details. When no attribute arguments are specified for an
  34479. attribute that expects one or more arguments the function returns
  34480. 'true' if TYPE-OR-EXPRESSION has been declared with the attribute
  34481. regardless of the attribute argument values. Arguments provided
  34482. for an attribute that expects some are validated and matched up to
  34483. the provided number. The function returns 'true' if all provided
  34484. arguments match. For example, the first call to the function below
  34485. evaluates to 'true' because 'x' is declared with the 'aligned'
  34486. attribute but the second call evaluates to 'false' because 'x' is
  34487. declared 'aligned (8)' and not 'aligned (4)'.
  34488. __attribute__ ((aligned (8))) int x;
  34489. _Static_assert (__builtin_has_attribute (x, aligned), "aligned");
  34490. _Static_assert (!__builtin_has_attribute (x, aligned (4)), "aligned (4)");
  34491. Due to a limitation the '__builtin_has_attribute' function returns
  34492. 'false' for the 'mode' attribute even if the type or variable
  34493. referenced by the TYPE-OR-EXPRESSION argument was declared with
  34494. one. The function is also not supported with labels, and in C with
  34495. enumerators.
  34496. Note that unlike the '__has_attribute' preprocessor operator which
  34497. is suitable for use in '#if' preprocessing directives
  34498. '__builtin_has_attribute' is an intrinsic function that is not
  34499. recognized in such contexts.
  34500. -- Built-in Function: TYPE __builtin_speculation_safe_value (TYPE val,
  34501. TYPE failval)
  34502. This built-in function can be used to help mitigate against unsafe
  34503. speculative execution. TYPE may be any integral type or any
  34504. pointer type.
  34505. 1. If the CPU is not speculatively executing the code, then VAL
  34506. is returned.
  34507. 2. If the CPU is executing speculatively then either:
  34508. * The function may cause execution to pause until it is
  34509. known that the code is no-longer being executed
  34510. speculatively (in which case VAL can be returned, as
  34511. above); or
  34512. * The function may use target-dependent speculation
  34513. tracking state to cause FAILVAL to be returned when it is
  34514. known that speculative execution has incorrectly
  34515. predicted a conditional branch operation.
  34516. The second argument, FAILVAL, is optional and defaults to zero if
  34517. omitted.
  34518. GCC defines the preprocessor macro
  34519. '__HAVE_BUILTIN_SPECULATION_SAFE_VALUE' for targets that have been
  34520. updated to support this builtin.
  34521. The built-in function can be used where a variable appears to be
  34522. used in a safe way, but the CPU, due to speculative execution may
  34523. temporarily ignore the bounds checks. Consider, for example, the
  34524. following function:
  34525. int array[500];
  34526. int f (unsigned untrusted_index)
  34527. {
  34528. if (untrusted_index < 500)
  34529. return array[untrusted_index];
  34530. return 0;
  34531. }
  34532. If the function is called repeatedly with 'untrusted_index' less
  34533. than the limit of 500, then a branch predictor will learn that the
  34534. block of code that returns a value stored in 'array' will be
  34535. executed. If the function is subsequently called with an
  34536. out-of-range value it will still try to execute that block of code
  34537. first until the CPU determines that the prediction was incorrect
  34538. (the CPU will unwind any incorrect operations at that point).
  34539. However, depending on how the result of the function is used, it
  34540. might be possible to leave traces in the cache that can reveal what
  34541. was stored at the out-of-bounds location. The built-in function
  34542. can be used to provide some protection against leaking data in this
  34543. way by changing the code to:
  34544. int array[500];
  34545. int f (unsigned untrusted_index)
  34546. {
  34547. if (untrusted_index < 500)
  34548. return array[__builtin_speculation_safe_value (untrusted_index)];
  34549. return 0;
  34550. }
  34551. The built-in function will either cause execution to stall until
  34552. the conditional branch has been fully resolved, or it may permit
  34553. speculative execution to continue, but using 0 instead of
  34554. 'untrusted_value' if that exceeds the limit.
  34555. If accessing any memory location is potentially unsafe when
  34556. speculative execution is incorrect, then the code can be rewritten
  34557. as
  34558. int array[500];
  34559. int f (unsigned untrusted_index)
  34560. {
  34561. if (untrusted_index < 500)
  34562. return *__builtin_speculation_safe_value (&array[untrusted_index], NULL);
  34563. return 0;
  34564. }
  34565. which will cause a 'NULL' pointer to be used for the unsafe case.
  34566. -- Built-in Function: int __builtin_types_compatible_p (TYPE1, TYPE2)
  34567. You can use the built-in function '__builtin_types_compatible_p' to
  34568. determine whether two types are the same.
  34569. This built-in function returns 1 if the unqualified versions of the
  34570. types TYPE1 and TYPE2 (which are types, not expressions) are
  34571. compatible, 0 otherwise. The result of this built-in function can
  34572. be used in integer constant expressions.
  34573. This built-in function ignores top level qualifiers (e.g., 'const',
  34574. 'volatile'). For example, 'int' is equivalent to 'const int'.
  34575. The type 'int[]' and 'int[5]' are compatible. On the other hand,
  34576. 'int' and 'char *' are not compatible, even if the size of their
  34577. types, on the particular architecture are the same. Also, the
  34578. amount of pointer indirection is taken into account when
  34579. determining similarity. Consequently, 'short *' is not similar to
  34580. 'short **'. Furthermore, two types that are typedefed are
  34581. considered compatible if their underlying types are compatible.
  34582. An 'enum' type is not considered to be compatible with another
  34583. 'enum' type even if both are compatible with the same integer type;
  34584. this is what the C standard specifies. For example, 'enum {foo,
  34585. bar}' is not similar to 'enum {hot, dog}'.
  34586. You typically use this function in code whose execution varies
  34587. depending on the arguments' types. For example:
  34588. #define foo(x) \
  34589. ({ \
  34590. typeof (x) tmp = (x); \
  34591. if (__builtin_types_compatible_p (typeof (x), long double)) \
  34592. tmp = foo_long_double (tmp); \
  34593. else if (__builtin_types_compatible_p (typeof (x), double)) \
  34594. tmp = foo_double (tmp); \
  34595. else if (__builtin_types_compatible_p (typeof (x), float)) \
  34596. tmp = foo_float (tmp); \
  34597. else \
  34598. abort (); \
  34599. tmp; \
  34600. })
  34601. _Note:_ This construct is only available for C.
  34602. -- Built-in Function: TYPE __builtin_call_with_static_chain (CALL_EXP,
  34603. POINTER_EXP)
  34604. The CALL_EXP expression must be a function call, and the
  34605. POINTER_EXP expression must be a pointer. The POINTER_EXP is
  34606. passed to the function call in the target's static chain location.
  34607. The result of builtin is the result of the function call.
  34608. _Note:_ This builtin is only available for C. This builtin can be
  34609. used to call Go closures from C.
  34610. -- Built-in Function: TYPE __builtin_choose_expr (CONST_EXP, EXP1,
  34611. EXP2)
  34612. You can use the built-in function '__builtin_choose_expr' to
  34613. evaluate code depending on the value of a constant expression.
  34614. This built-in function returns EXP1 if CONST_EXP, which is an
  34615. integer constant expression, is nonzero. Otherwise it returns
  34616. EXP2.
  34617. This built-in function is analogous to the '? :' operator in C,
  34618. except that the expression returned has its type unaltered by
  34619. promotion rules. Also, the built-in function does not evaluate the
  34620. expression that is not chosen. For example, if CONST_EXP evaluates
  34621. to 'true', EXP2 is not evaluated even if it has side effects.
  34622. This built-in function can return an lvalue if the chosen argument
  34623. is an lvalue.
  34624. If EXP1 is returned, the return type is the same as EXP1's type.
  34625. Similarly, if EXP2 is returned, its return type is the same as
  34626. EXP2.
  34627. Example:
  34628. #define foo(x) \
  34629. __builtin_choose_expr ( \
  34630. __builtin_types_compatible_p (typeof (x), double), \
  34631. foo_double (x), \
  34632. __builtin_choose_expr ( \
  34633. __builtin_types_compatible_p (typeof (x), float), \
  34634. foo_float (x), \
  34635. /* The void expression results in a compile-time error \
  34636. when assigning the result to something. */ \
  34637. (void)0))
  34638. _Note:_ This construct is only available for C. Furthermore, the
  34639. unused expression (EXP1 or EXP2 depending on the value of
  34640. CONST_EXP) may still generate syntax errors. This may change in
  34641. future revisions.
  34642. -- Built-in Function: TYPE __builtin_tgmath (FUNCTIONS, ARGUMENTS)
  34643. The built-in function '__builtin_tgmath', available only for C and
  34644. Objective-C, calls a function determined according to the rules of
  34645. '<tgmath.h>' macros. It is intended to be used in implementations
  34646. of that header, so that expansions of macros from that header only
  34647. expand each of their arguments once, to avoid problems when calls
  34648. to such macros are nested inside the arguments of other calls to
  34649. such macros; in addition, it results in better diagnostics for
  34650. invalid calls to '<tgmath.h>' macros than implementations using
  34651. other GNU C language features. For example, the 'pow' type-generic
  34652. macro might be defined as:
  34653. #define pow(a, b) __builtin_tgmath (powf, pow, powl, \
  34654. cpowf, cpow, cpowl, a, b)
  34655. The arguments to '__builtin_tgmath' are at least two pointers to
  34656. functions, followed by the arguments to the type-generic macro
  34657. (which will be passed as arguments to the selected function). All
  34658. the pointers to functions must be pointers to prototyped functions,
  34659. none of which may have variable arguments, and all of which must
  34660. have the same number of parameters; the number of parameters of the
  34661. first function determines how many arguments to '__builtin_tgmath'
  34662. are interpreted as function pointers, and how many as the arguments
  34663. to the called function.
  34664. The types of the specified functions must all be different, but
  34665. related to each other in the same way as a set of functions that
  34666. may be selected between by a macro in '<tgmath.h>'. This means
  34667. that the functions are parameterized by a floating-point type T,
  34668. different for each such function. The function return types may
  34669. all be the same type, or they may be T for each function, or they
  34670. may be the real type corresponding to T for each function (if some
  34671. of the types T are complex). Likewise, for each parameter
  34672. position, the type of the parameter in that position may always be
  34673. the same type, or may be T for each function (this case must apply
  34674. for at least one parameter position), or may be the real type
  34675. corresponding to T for each function.
  34676. The standard rules for '<tgmath.h>' macros are used to find a
  34677. common type U from the types of the arguments for parameters whose
  34678. types vary between the functions; complex integer types (a GNU
  34679. extension) are treated like '_Complex double' for this purpose (or
  34680. '_Complex _Float64' if all the function return types are the same
  34681. '_FloatN' or '_FloatNx' type). If the function return types vary,
  34682. or are all the same integer type, the function called is the one
  34683. for which T is U, and it is an error if there is no such function.
  34684. If the function return types are all the same floating-point type,
  34685. the type-generic macro is taken to be one of those from TS 18661
  34686. that rounds the result to a narrower type; if there is a function
  34687. for which T is U, it is called, and otherwise the first function,
  34688. if any, for which T has at least the range and precision of U is
  34689. called, and it is an error if there is no such function.
  34690. -- Built-in Function: TYPE __builtin_complex (REAL, IMAG)
  34691. The built-in function '__builtin_complex' is provided for use in
  34692. implementing the ISO C11 macros 'CMPLXF', 'CMPLX' and 'CMPLXL'.
  34693. REAL and IMAG must have the same type, a real binary floating-point
  34694. type, and the result has the corresponding complex type with real
  34695. and imaginary parts REAL and IMAG. Unlike 'REAL + I * IMAG', this
  34696. works even when infinities, NaNs and negative zeros are involved.
  34697. -- Built-in Function: int __builtin_constant_p (EXP)
  34698. You can use the built-in function '__builtin_constant_p' to
  34699. determine if a value is known to be constant at compile time and
  34700. hence that GCC can perform constant-folding on expressions
  34701. involving that value. The argument of the function is the value to
  34702. test. The function returns the integer 1 if the argument is known
  34703. to be a compile-time constant and 0 if it is not known to be a
  34704. compile-time constant. A return of 0 does not indicate that the
  34705. value is _not_ a constant, but merely that GCC cannot prove it is a
  34706. constant with the specified value of the '-O' option.
  34707. You typically use this function in an embedded application where
  34708. memory is a critical resource. If you have some complex
  34709. calculation, you may want it to be folded if it involves constants,
  34710. but need to call a function if it does not. For example:
  34711. #define Scale_Value(X) \
  34712. (__builtin_constant_p (X) \
  34713. ? ((X) * SCALE + OFFSET) : Scale (X))
  34714. You may use this built-in function in either a macro or an inline
  34715. function. However, if you use it in an inlined function and pass
  34716. an argument of the function as the argument to the built-in, GCC
  34717. never returns 1 when you call the inline function with a string
  34718. constant or compound literal (*note Compound Literals::) and does
  34719. not return 1 when you pass a constant numeric value to the inline
  34720. function unless you specify the '-O' option.
  34721. You may also use '__builtin_constant_p' in initializers for static
  34722. data. For instance, you can write
  34723. static const int table[] = {
  34724. __builtin_constant_p (EXPRESSION) ? (EXPRESSION) : -1,
  34725. /* ... */
  34726. };
  34727. This is an acceptable initializer even if EXPRESSION is not a
  34728. constant expression, including the case where
  34729. '__builtin_constant_p' returns 1 because EXPRESSION can be folded
  34730. to a constant but EXPRESSION contains operands that are not
  34731. otherwise permitted in a static initializer (for example, '0 && foo
  34732. ()'). GCC must be more conservative about evaluating the built-in
  34733. in this case, because it has no opportunity to perform
  34734. optimization.
  34735. -- Built-in Function: bool __builtin_is_constant_evaluated (void)
  34736. The '__builtin_is_constant_evaluated' function is available only in
  34737. C++. The built-in is intended to be used by implementations of the
  34738. 'std::is_constant_evaluated' C++ function. Programs should make
  34739. use of the latter function rather than invoking the built-in
  34740. directly.
  34741. The main use case of the built-in is to determine whether a
  34742. 'constexpr' function is being called in a 'constexpr' context. A
  34743. call to the function evaluates to a core constant expression with
  34744. the value 'true' if and only if it occurs within the evaluation of
  34745. an expression or conversion that is manifestly constant-evaluated
  34746. as defined in the C++ standard. Manifestly constant-evaluated
  34747. contexts include constant-expressions, the conditions of 'constexpr
  34748. if' statements, constraint-expressions, and initializers of
  34749. variables usable in constant expressions. For more details refer
  34750. to the latest revision of the C++ standard.
  34751. -- Built-in Function: long __builtin_expect (long EXP, long C)
  34752. You may use '__builtin_expect' to provide the compiler with branch
  34753. prediction information. In general, you should prefer to use
  34754. actual profile feedback for this ('-fprofile-arcs'), as programmers
  34755. are notoriously bad at predicting how their programs actually
  34756. perform. However, there are applications in which this data is
  34757. hard to collect.
  34758. The return value is the value of EXP, which should be an integral
  34759. expression. The semantics of the built-in are that it is expected
  34760. that EXP == C. For example:
  34761. if (__builtin_expect (x, 0))
  34762. foo ();
  34763. indicates that we do not expect to call 'foo', since we expect 'x'
  34764. to be zero. Since you are limited to integral expressions for EXP,
  34765. you should use constructions such as
  34766. if (__builtin_expect (ptr != NULL, 1))
  34767. foo (*ptr);
  34768. when testing pointer or floating-point values.
  34769. For the purposes of branch prediction optimizations, the
  34770. probability that a '__builtin_expect' expression is 'true' is
  34771. controlled by GCC's 'builtin-expect-probability' parameter, which
  34772. defaults to 90%.
  34773. You can also use '__builtin_expect_with_probability' to explicitly
  34774. assign a probability value to individual expressions. If the
  34775. built-in is used in a loop construct, the provided probability will
  34776. influence the expected number of iterations made by loop
  34777. optimizations.
  34778. -- Built-in Function: long __builtin_expect_with_probability
  34779. (long EXP, long C, double PROBABILITY)
  34780. This function has the same semantics as '__builtin_expect', but the
  34781. caller provides the expected probability that EXP == C. The last
  34782. argument, PROBABILITY, is a floating-point value in the range 0.0
  34783. to 1.0, inclusive. The PROBABILITY argument must be constant
  34784. floating-point expression.
  34785. -- Built-in Function: void __builtin_trap (void)
  34786. This function causes the program to exit abnormally. GCC
  34787. implements this function by using a target-dependent mechanism
  34788. (such as intentionally executing an illegal instruction) or by
  34789. calling 'abort'. The mechanism used may vary from release to
  34790. release so you should not rely on any particular implementation.
  34791. -- Built-in Function: void __builtin_unreachable (void)
  34792. If control flow reaches the point of the '__builtin_unreachable',
  34793. the program is undefined. It is useful in situations where the
  34794. compiler cannot deduce the unreachability of the code.
  34795. One such case is immediately following an 'asm' statement that
  34796. either never terminates, or one that transfers control elsewhere
  34797. and never returns. In this example, without the
  34798. '__builtin_unreachable', GCC issues a warning that control reaches
  34799. the end of a non-void function. It also generates code to return
  34800. after the 'asm'.
  34801. int f (int c, int v)
  34802. {
  34803. if (c)
  34804. {
  34805. return v;
  34806. }
  34807. else
  34808. {
  34809. asm("jmp error_handler");
  34810. __builtin_unreachable ();
  34811. }
  34812. }
  34813. Because the 'asm' statement unconditionally transfers control out
  34814. of the function, control never reaches the end of the function
  34815. body. The '__builtin_unreachable' is in fact unreachable and
  34816. communicates this fact to the compiler.
  34817. Another use for '__builtin_unreachable' is following a call a
  34818. function that never returns but that is not declared
  34819. '__attribute__((noreturn))', as in this example:
  34820. void function_that_never_returns (void);
  34821. int g (int c)
  34822. {
  34823. if (c)
  34824. {
  34825. return 1;
  34826. }
  34827. else
  34828. {
  34829. function_that_never_returns ();
  34830. __builtin_unreachable ();
  34831. }
  34832. }
  34833. -- Built-in Function: void * __builtin_assume_aligned (const void *EXP,
  34834. size_t ALIGN, ...)
  34835. This function returns its first argument, and allows the compiler
  34836. to assume that the returned pointer is at least ALIGN bytes
  34837. aligned. This built-in can have either two or three arguments, if
  34838. it has three, the third argument should have integer type, and if
  34839. it is nonzero means misalignment offset. For example:
  34840. void *x = __builtin_assume_aligned (arg, 16);
  34841. means that the compiler can assume 'x', set to 'arg', is at least
  34842. 16-byte aligned, while:
  34843. void *x = __builtin_assume_aligned (arg, 32, 8);
  34844. means that the compiler can assume for 'x', set to 'arg', that
  34845. '(char *) x - 8' is 32-byte aligned.
  34846. -- Built-in Function: int __builtin_LINE ()
  34847. This function is the equivalent of the preprocessor '__LINE__'
  34848. macro and returns a constant integer expression that evaluates to
  34849. the line number of the invocation of the built-in. When used as a
  34850. C++ default argument for a function F, it returns the line number
  34851. of the call to F.
  34852. -- Built-in Function: const char * __builtin_FUNCTION ()
  34853. This function is the equivalent of the '__FUNCTION__' symbol and
  34854. returns an address constant pointing to the name of the function
  34855. from which the built-in was invoked, or the empty string if the
  34856. invocation is not at function scope. When used as a C++ default
  34857. argument for a function F, it returns the name of F's caller or the
  34858. empty string if the call was not made at function scope.
  34859. -- Built-in Function: const char * __builtin_FILE ()
  34860. This function is the equivalent of the preprocessor '__FILE__'
  34861. macro and returns an address constant pointing to the file name
  34862. containing the invocation of the built-in, or the empty string if
  34863. the invocation is not at function scope. When used as a C++
  34864. default argument for a function F, it returns the file name of the
  34865. call to F or the empty string if the call was not made at function
  34866. scope.
  34867. For example, in the following, each call to function 'foo' will
  34868. print a line similar to '"file.c:123: foo: message"' with the name
  34869. of the file and the line number of the 'printf' call, the name of
  34870. the function 'foo', followed by the word 'message'.
  34871. const char*
  34872. function (const char *func = __builtin_FUNCTION ())
  34873. {
  34874. return func;
  34875. }
  34876. void foo (void)
  34877. {
  34878. printf ("%s:%i: %s: message\n", file (), line (), function ());
  34879. }
  34880. -- Built-in Function: void __builtin___clear_cache (void *BEGIN, void
  34881. *END)
  34882. This function is used to flush the processor's instruction cache
  34883. for the region of memory between BEGIN inclusive and END exclusive.
  34884. Some targets require that the instruction cache be flushed, after
  34885. modifying memory containing code, in order to obtain deterministic
  34886. behavior.
  34887. If the target does not require instruction cache flushes,
  34888. '__builtin___clear_cache' has no effect. Otherwise either
  34889. instructions are emitted in-line to clear the instruction cache or
  34890. a call to the '__clear_cache' function in libgcc is made.
  34891. -- Built-in Function: void __builtin_prefetch (const void *ADDR, ...)
  34892. This function is used to minimize cache-miss latency by moving data
  34893. into a cache before it is accessed. You can insert calls to
  34894. '__builtin_prefetch' into code for which you know addresses of data
  34895. in memory that is likely to be accessed soon. If the target
  34896. supports them, data prefetch instructions are generated. If the
  34897. prefetch is done early enough before the access then the data will
  34898. be in the cache by the time it is accessed.
  34899. The value of ADDR is the address of the memory to prefetch. There
  34900. are two optional arguments, RW and LOCALITY. The value of RW is a
  34901. compile-time constant one or zero; one means that the prefetch is
  34902. preparing for a write to the memory address and zero, the default,
  34903. means that the prefetch is preparing for a read. The value
  34904. LOCALITY must be a compile-time constant integer between zero and
  34905. three. A value of zero means that the data has no temporal
  34906. locality, so it need not be left in the cache after the access. A
  34907. value of three means that the data has a high degree of temporal
  34908. locality and should be left in all levels of cache possible.
  34909. Values of one and two mean, respectively, a low or moderate degree
  34910. of temporal locality. The default is three.
  34911. for (i = 0; i < n; i++)
  34912. {
  34913. a[i] = a[i] + b[i];
  34914. __builtin_prefetch (&a[i+j], 1, 1);
  34915. __builtin_prefetch (&b[i+j], 0, 1);
  34916. /* ... */
  34917. }
  34918. Data prefetch does not generate faults if ADDR is invalid, but the
  34919. address expression itself must be valid. For example, a prefetch
  34920. of 'p->next' does not fault if 'p->next' is not a valid address,
  34921. but evaluation faults if 'p' is not a valid address.
  34922. If the target does not support data prefetch, the address
  34923. expression is evaluated if it includes side effects but no other
  34924. code is generated and GCC does not issue a warning.
  34925. -- Built-in Function: size_t __builtin_object_size (const void * PTR,
  34926. int TYPE)
  34927. Returns the size of an object pointed to by PTR. *Note Object Size
  34928. Checking::, for a detailed description of the function.
  34929. -- Built-in Function: double __builtin_huge_val (void)
  34930. Returns a positive infinity, if supported by the floating-point
  34931. format, else 'DBL_MAX'. This function is suitable for implementing
  34932. the ISO C macro 'HUGE_VAL'.
  34933. -- Built-in Function: float __builtin_huge_valf (void)
  34934. Similar to '__builtin_huge_val', except the return type is 'float'.
  34935. -- Built-in Function: long double __builtin_huge_vall (void)
  34936. Similar to '__builtin_huge_val', except the return type is 'long
  34937. double'.
  34938. -- Built-in Function: _FloatN __builtin_huge_valfN (void)
  34939. Similar to '__builtin_huge_val', except the return type is
  34940. '_FloatN'.
  34941. -- Built-in Function: _FloatNx __builtin_huge_valfNx (void)
  34942. Similar to '__builtin_huge_val', except the return type is
  34943. '_FloatNx'.
  34944. -- Built-in Function: int __builtin_fpclassify (int, int, int, int,
  34945. int, ...)
  34946. This built-in implements the C99 fpclassify functionality. The
  34947. first five int arguments should be the target library's notion of
  34948. the possible FP classes and are used for return values. They must
  34949. be constant values and they must appear in this order: 'FP_NAN',
  34950. 'FP_INFINITE', 'FP_NORMAL', 'FP_SUBNORMAL' and 'FP_ZERO'. The
  34951. ellipsis is for exactly one floating-point value to classify. GCC
  34952. treats the last argument as type-generic, which means it does not
  34953. do default promotion from float to double.
  34954. -- Built-in Function: double __builtin_inf (void)
  34955. Similar to '__builtin_huge_val', except a warning is generated if
  34956. the target floating-point format does not support infinities.
  34957. -- Built-in Function: _Decimal32 __builtin_infd32 (void)
  34958. Similar to '__builtin_inf', except the return type is '_Decimal32'.
  34959. -- Built-in Function: _Decimal64 __builtin_infd64 (void)
  34960. Similar to '__builtin_inf', except the return type is '_Decimal64'.
  34961. -- Built-in Function: _Decimal128 __builtin_infd128 (void)
  34962. Similar to '__builtin_inf', except the return type is
  34963. '_Decimal128'.
  34964. -- Built-in Function: float __builtin_inff (void)
  34965. Similar to '__builtin_inf', except the return type is 'float'.
  34966. This function is suitable for implementing the ISO C99 macro
  34967. 'INFINITY'.
  34968. -- Built-in Function: long double __builtin_infl (void)
  34969. Similar to '__builtin_inf', except the return type is 'long
  34970. double'.
  34971. -- Built-in Function: _FloatN __builtin_inffN (void)
  34972. Similar to '__builtin_inf', except the return type is '_FloatN'.
  34973. -- Built-in Function: _FloatN __builtin_inffNx (void)
  34974. Similar to '__builtin_inf', except the return type is '_FloatNx'.
  34975. -- Built-in Function: int __builtin_isinf_sign (...)
  34976. Similar to 'isinf', except the return value is -1 for an argument
  34977. of '-Inf' and 1 for an argument of '+Inf'. Note while the
  34978. parameter list is an ellipsis, this function only accepts exactly
  34979. one floating-point argument. GCC treats this parameter as
  34980. type-generic, which means it does not do default promotion from
  34981. float to double.
  34982. -- Built-in Function: double __builtin_nan (const char *str)
  34983. This is an implementation of the ISO C99 function 'nan'.
  34984. Since ISO C99 defines this function in terms of 'strtod', which we
  34985. do not implement, a description of the parsing is in order. The
  34986. string is parsed as by 'strtol'; that is, the base is recognized by
  34987. leading '0' or '0x' prefixes. The number parsed is placed in the
  34988. significand such that the least significant bit of the number is at
  34989. the least significant bit of the significand. The number is
  34990. truncated to fit the significand field provided. The significand
  34991. is forced to be a quiet NaN.
  34992. This function, if given a string literal all of which would have
  34993. been consumed by 'strtol', is evaluated early enough that it is
  34994. considered a compile-time constant.
  34995. -- Built-in Function: _Decimal32 __builtin_nand32 (const char *str)
  34996. Similar to '__builtin_nan', except the return type is '_Decimal32'.
  34997. -- Built-in Function: _Decimal64 __builtin_nand64 (const char *str)
  34998. Similar to '__builtin_nan', except the return type is '_Decimal64'.
  34999. -- Built-in Function: _Decimal128 __builtin_nand128 (const char *str)
  35000. Similar to '__builtin_nan', except the return type is
  35001. '_Decimal128'.
  35002. -- Built-in Function: float __builtin_nanf (const char *str)
  35003. Similar to '__builtin_nan', except the return type is 'float'.
  35004. -- Built-in Function: long double __builtin_nanl (const char *str)
  35005. Similar to '__builtin_nan', except the return type is 'long
  35006. double'.
  35007. -- Built-in Function: _FloatN __builtin_nanfN (const char *str)
  35008. Similar to '__builtin_nan', except the return type is '_FloatN'.
  35009. -- Built-in Function: _FloatNx __builtin_nanfNx (const char *str)
  35010. Similar to '__builtin_nan', except the return type is '_FloatNx'.
  35011. -- Built-in Function: double __builtin_nans (const char *str)
  35012. Similar to '__builtin_nan', except the significand is forced to be
  35013. a signaling NaN. The 'nans' function is proposed by WG14 N965.
  35014. -- Built-in Function: float __builtin_nansf (const char *str)
  35015. Similar to '__builtin_nans', except the return type is 'float'.
  35016. -- Built-in Function: long double __builtin_nansl (const char *str)
  35017. Similar to '__builtin_nans', except the return type is 'long
  35018. double'.
  35019. -- Built-in Function: _FloatN __builtin_nansfN (const char *str)
  35020. Similar to '__builtin_nans', except the return type is '_FloatN'.
  35021. -- Built-in Function: _FloatNx __builtin_nansfNx (const char *str)
  35022. Similar to '__builtin_nans', except the return type is '_FloatNx'.
  35023. -- Built-in Function: int __builtin_ffs (int x)
  35024. Returns one plus the index of the least significant 1-bit of X, or
  35025. if X is zero, returns zero.
  35026. -- Built-in Function: int __builtin_clz (unsigned int x)
  35027. Returns the number of leading 0-bits in X, starting at the most
  35028. significant bit position. If X is 0, the result is undefined.
  35029. -- Built-in Function: int __builtin_ctz (unsigned int x)
  35030. Returns the number of trailing 0-bits in X, starting at the least
  35031. significant bit position. If X is 0, the result is undefined.
  35032. -- Built-in Function: int __builtin_clrsb (int x)
  35033. Returns the number of leading redundant sign bits in X, i.e. the
  35034. number of bits following the most significant bit that are
  35035. identical to it. There are no special cases for 0 or other values.
  35036. -- Built-in Function: int __builtin_popcount (unsigned int x)
  35037. Returns the number of 1-bits in X.
  35038. -- Built-in Function: int __builtin_parity (unsigned int x)
  35039. Returns the parity of X, i.e. the number of 1-bits in X modulo 2.
  35040. -- Built-in Function: int __builtin_ffsl (long)
  35041. Similar to '__builtin_ffs', except the argument type is 'long'.
  35042. -- Built-in Function: int __builtin_clzl (unsigned long)
  35043. Similar to '__builtin_clz', except the argument type is 'unsigned
  35044. long'.
  35045. -- Built-in Function: int __builtin_ctzl (unsigned long)
  35046. Similar to '__builtin_ctz', except the argument type is 'unsigned
  35047. long'.
  35048. -- Built-in Function: int __builtin_clrsbl (long)
  35049. Similar to '__builtin_clrsb', except the argument type is 'long'.
  35050. -- Built-in Function: int __builtin_popcountl (unsigned long)
  35051. Similar to '__builtin_popcount', except the argument type is
  35052. 'unsigned long'.
  35053. -- Built-in Function: int __builtin_parityl (unsigned long)
  35054. Similar to '__builtin_parity', except the argument type is
  35055. 'unsigned long'.
  35056. -- Built-in Function: int __builtin_ffsll (long long)
  35057. Similar to '__builtin_ffs', except the argument type is 'long
  35058. long'.
  35059. -- Built-in Function: int __builtin_clzll (unsigned long long)
  35060. Similar to '__builtin_clz', except the argument type is 'unsigned
  35061. long long'.
  35062. -- Built-in Function: int __builtin_ctzll (unsigned long long)
  35063. Similar to '__builtin_ctz', except the argument type is 'unsigned
  35064. long long'.
  35065. -- Built-in Function: int __builtin_clrsbll (long long)
  35066. Similar to '__builtin_clrsb', except the argument type is 'long
  35067. long'.
  35068. -- Built-in Function: int __builtin_popcountll (unsigned long long)
  35069. Similar to '__builtin_popcount', except the argument type is
  35070. 'unsigned long long'.
  35071. -- Built-in Function: int __builtin_parityll (unsigned long long)
  35072. Similar to '__builtin_parity', except the argument type is
  35073. 'unsigned long long'.
  35074. -- Built-in Function: double __builtin_powi (double, int)
  35075. Returns the first argument raised to the power of the second.
  35076. Unlike the 'pow' function no guarantees about precision and
  35077. rounding are made.
  35078. -- Built-in Function: float __builtin_powif (float, int)
  35079. Similar to '__builtin_powi', except the argument and return types
  35080. are 'float'.
  35081. -- Built-in Function: long double __builtin_powil (long double, int)
  35082. Similar to '__builtin_powi', except the argument and return types
  35083. are 'long double'.
  35084. -- Built-in Function: uint16_t __builtin_bswap16 (uint16_t x)
  35085. Returns X with the order of the bytes reversed; for example,
  35086. '0xaabb' becomes '0xbbaa'. Byte here always means exactly 8 bits.
  35087. -- Built-in Function: uint32_t __builtin_bswap32 (uint32_t x)
  35088. Similar to '__builtin_bswap16', except the argument and return
  35089. types are 32 bit.
  35090. -- Built-in Function: uint64_t __builtin_bswap64 (uint64_t x)
  35091. Similar to '__builtin_bswap32', except the argument and return
  35092. types are 64 bit.
  35093. -- Built-in Function: Pmode __builtin_extend_pointer (void * x)
  35094. On targets where the user visible pointer size is smaller than the
  35095. size of an actual hardware address this function returns the
  35096. extended user pointer. Targets where this is true included ILP32
  35097. mode on x86_64 or Aarch64. This function is mainly useful when
  35098. writing inline assembly code.
  35099. -- Built-in Function: int __builtin_goacc_parlevel_id (int x)
  35100. Returns the openacc gang, worker or vector id depending on whether
  35101. X is 0, 1 or 2.
  35102. -- Built-in Function: int __builtin_goacc_parlevel_size (int x)
  35103. Returns the openacc gang, worker or vector size depending on
  35104. whether X is 0, 1 or 2.
  35105. 
  35106. File: gcc.info, Node: Target Builtins, Next: Target Format Checks, Prev: Other Builtins, Up: C Extensions
  35107. 6.60 Built-in Functions Specific to Particular Target Machines
  35108. ==============================================================
  35109. On some target machines, GCC supports many built-in functions specific
  35110. to those machines. Generally these generate calls to specific machine
  35111. instructions, but allow the compiler to schedule those calls.
  35112. * Menu:
  35113. * AArch64 Built-in Functions::
  35114. * Alpha Built-in Functions::
  35115. * Altera Nios II Built-in Functions::
  35116. * ARC Built-in Functions::
  35117. * ARC SIMD Built-in Functions::
  35118. * ARM iWMMXt Built-in Functions::
  35119. * ARM C Language Extensions (ACLE)::
  35120. * ARM Floating Point Status and Control Intrinsics::
  35121. * ARM ARMv8-M Security Extensions::
  35122. * AVR Built-in Functions::
  35123. * Blackfin Built-in Functions::
  35124. * BPF Built-in Functions::
  35125. * BPF Kernel Helpers::
  35126. * FR-V Built-in Functions::
  35127. * MIPS DSP Built-in Functions::
  35128. * MIPS Paired-Single Support::
  35129. * MIPS Loongson Built-in Functions::
  35130. * MIPS SIMD Architecture (MSA) Support::
  35131. * Other MIPS Built-in Functions::
  35132. * MSP430 Built-in Functions::
  35133. * NDS32 Built-in Functions::
  35134. * picoChip Built-in Functions::
  35135. * Basic PowerPC Built-in Functions::
  35136. * PowerPC AltiVec/VSX Built-in Functions::
  35137. * PowerPC Hardware Transactional Memory Built-in Functions::
  35138. * PowerPC Atomic Memory Operation Functions::
  35139. * RX Built-in Functions::
  35140. * S/390 System z Built-in Functions::
  35141. * SH Built-in Functions::
  35142. * SPARC VIS Built-in Functions::
  35143. * TI C6X Built-in Functions::
  35144. * TILE-Gx Built-in Functions::
  35145. * TILEPro Built-in Functions::
  35146. * x86 Built-in Functions::
  35147. * x86 transactional memory intrinsics::
  35148. * x86 control-flow protection intrinsics::
  35149. 
  35150. File: gcc.info, Node: AArch64 Built-in Functions, Next: Alpha Built-in Functions, Up: Target Builtins
  35151. 6.60.1 AArch64 Built-in Functions
  35152. ---------------------------------
  35153. These built-in functions are available for the AArch64 family of
  35154. processors.
  35155. unsigned int __builtin_aarch64_get_fpcr ()
  35156. void __builtin_aarch64_set_fpcr (unsigned int)
  35157. unsigned int __builtin_aarch64_get_fpsr ()
  35158. void __builtin_aarch64_set_fpsr (unsigned int)
  35159. 
  35160. File: gcc.info, Node: Alpha Built-in Functions, Next: Altera Nios II Built-in Functions, Prev: AArch64 Built-in Functions, Up: Target Builtins
  35161. 6.60.2 Alpha Built-in Functions
  35162. -------------------------------
  35163. These built-in functions are available for the Alpha family of
  35164. processors, depending on the command-line switches used.
  35165. The following built-in functions are always available. They all
  35166. generate the machine instruction that is part of the name.
  35167. long __builtin_alpha_implver (void)
  35168. long __builtin_alpha_rpcc (void)
  35169. long __builtin_alpha_amask (long)
  35170. long __builtin_alpha_cmpbge (long, long)
  35171. long __builtin_alpha_extbl (long, long)
  35172. long __builtin_alpha_extwl (long, long)
  35173. long __builtin_alpha_extll (long, long)
  35174. long __builtin_alpha_extql (long, long)
  35175. long __builtin_alpha_extwh (long, long)
  35176. long __builtin_alpha_extlh (long, long)
  35177. long __builtin_alpha_extqh (long, long)
  35178. long __builtin_alpha_insbl (long, long)
  35179. long __builtin_alpha_inswl (long, long)
  35180. long __builtin_alpha_insll (long, long)
  35181. long __builtin_alpha_insql (long, long)
  35182. long __builtin_alpha_inswh (long, long)
  35183. long __builtin_alpha_inslh (long, long)
  35184. long __builtin_alpha_insqh (long, long)
  35185. long __builtin_alpha_mskbl (long, long)
  35186. long __builtin_alpha_mskwl (long, long)
  35187. long __builtin_alpha_mskll (long, long)
  35188. long __builtin_alpha_mskql (long, long)
  35189. long __builtin_alpha_mskwh (long, long)
  35190. long __builtin_alpha_msklh (long, long)
  35191. long __builtin_alpha_mskqh (long, long)
  35192. long __builtin_alpha_umulh (long, long)
  35193. long __builtin_alpha_zap (long, long)
  35194. long __builtin_alpha_zapnot (long, long)
  35195. The following built-in functions are always with '-mmax' or '-mcpu=CPU'
  35196. where CPU is 'pca56' or later. They all generate the machine
  35197. instruction that is part of the name.
  35198. long __builtin_alpha_pklb (long)
  35199. long __builtin_alpha_pkwb (long)
  35200. long __builtin_alpha_unpkbl (long)
  35201. long __builtin_alpha_unpkbw (long)
  35202. long __builtin_alpha_minub8 (long, long)
  35203. long __builtin_alpha_minsb8 (long, long)
  35204. long __builtin_alpha_minuw4 (long, long)
  35205. long __builtin_alpha_minsw4 (long, long)
  35206. long __builtin_alpha_maxub8 (long, long)
  35207. long __builtin_alpha_maxsb8 (long, long)
  35208. long __builtin_alpha_maxuw4 (long, long)
  35209. long __builtin_alpha_maxsw4 (long, long)
  35210. long __builtin_alpha_perr (long, long)
  35211. The following built-in functions are always with '-mcix' or '-mcpu=CPU'
  35212. where CPU is 'ev67' or later. They all generate the machine instruction
  35213. that is part of the name.
  35214. long __builtin_alpha_cttz (long)
  35215. long __builtin_alpha_ctlz (long)
  35216. long __builtin_alpha_ctpop (long)
  35217. The following built-in functions are available on systems that use the
  35218. OSF/1 PALcode. Normally they invoke the 'rduniq' and 'wruniq' PAL
  35219. calls, but when invoked with '-mtls-kernel', they invoke 'rdval' and
  35220. 'wrval'.
  35221. void *__builtin_thread_pointer (void)
  35222. void __builtin_set_thread_pointer (void *)
  35223. 
  35224. File: gcc.info, Node: Altera Nios II Built-in Functions, Next: ARC Built-in Functions, Prev: Alpha Built-in Functions, Up: Target Builtins
  35225. 6.60.3 Altera Nios II Built-in Functions
  35226. ----------------------------------------
  35227. These built-in functions are available for the Altera Nios II family of
  35228. processors.
  35229. The following built-in functions are always available. They all
  35230. generate the machine instruction that is part of the name.
  35231. int __builtin_ldbio (volatile const void *)
  35232. int __builtin_ldbuio (volatile const void *)
  35233. int __builtin_ldhio (volatile const void *)
  35234. int __builtin_ldhuio (volatile const void *)
  35235. int __builtin_ldwio (volatile const void *)
  35236. void __builtin_stbio (volatile void *, int)
  35237. void __builtin_sthio (volatile void *, int)
  35238. void __builtin_stwio (volatile void *, int)
  35239. void __builtin_sync (void)
  35240. int __builtin_rdctl (int)
  35241. int __builtin_rdprs (int, int)
  35242. void __builtin_wrctl (int, int)
  35243. void __builtin_flushd (volatile void *)
  35244. void __builtin_flushda (volatile void *)
  35245. int __builtin_wrpie (int);
  35246. void __builtin_eni (int);
  35247. int __builtin_ldex (volatile const void *)
  35248. int __builtin_stex (volatile void *, int)
  35249. int __builtin_ldsex (volatile const void *)
  35250. int __builtin_stsex (volatile void *, int)
  35251. The following built-in functions are always available. They all
  35252. generate a Nios II Custom Instruction. The name of the function
  35253. represents the types that the function takes and returns. The letter
  35254. before the 'n' is the return type or void if absent. The 'n' represents
  35255. the first parameter to all the custom instructions, the custom
  35256. instruction number. The two letters after the 'n' represent the up to
  35257. two parameters to the function.
  35258. The letters represent the following data types:
  35259. '<no letter>'
  35260. 'void' for return type and no parameter for parameter types.
  35261. 'i'
  35262. 'int' for return type and parameter type
  35263. 'f'
  35264. 'float' for return type and parameter type
  35265. 'p'
  35266. 'void *' for return type and parameter type
  35267. And the function names are:
  35268. void __builtin_custom_n (void)
  35269. void __builtin_custom_ni (int)
  35270. void __builtin_custom_nf (float)
  35271. void __builtin_custom_np (void *)
  35272. void __builtin_custom_nii (int, int)
  35273. void __builtin_custom_nif (int, float)
  35274. void __builtin_custom_nip (int, void *)
  35275. void __builtin_custom_nfi (float, int)
  35276. void __builtin_custom_nff (float, float)
  35277. void __builtin_custom_nfp (float, void *)
  35278. void __builtin_custom_npi (void *, int)
  35279. void __builtin_custom_npf (void *, float)
  35280. void __builtin_custom_npp (void *, void *)
  35281. int __builtin_custom_in (void)
  35282. int __builtin_custom_ini (int)
  35283. int __builtin_custom_inf (float)
  35284. int __builtin_custom_inp (void *)
  35285. int __builtin_custom_inii (int, int)
  35286. int __builtin_custom_inif (int, float)
  35287. int __builtin_custom_inip (int, void *)
  35288. int __builtin_custom_infi (float, int)
  35289. int __builtin_custom_inff (float, float)
  35290. int __builtin_custom_infp (float, void *)
  35291. int __builtin_custom_inpi (void *, int)
  35292. int __builtin_custom_inpf (void *, float)
  35293. int __builtin_custom_inpp (void *, void *)
  35294. float __builtin_custom_fn (void)
  35295. float __builtin_custom_fni (int)
  35296. float __builtin_custom_fnf (float)
  35297. float __builtin_custom_fnp (void *)
  35298. float __builtin_custom_fnii (int, int)
  35299. float __builtin_custom_fnif (int, float)
  35300. float __builtin_custom_fnip (int, void *)
  35301. float __builtin_custom_fnfi (float, int)
  35302. float __builtin_custom_fnff (float, float)
  35303. float __builtin_custom_fnfp (float, void *)
  35304. float __builtin_custom_fnpi (void *, int)
  35305. float __builtin_custom_fnpf (void *, float)
  35306. float __builtin_custom_fnpp (void *, void *)
  35307. void * __builtin_custom_pn (void)
  35308. void * __builtin_custom_pni (int)
  35309. void * __builtin_custom_pnf (float)
  35310. void * __builtin_custom_pnp (void *)
  35311. void * __builtin_custom_pnii (int, int)
  35312. void * __builtin_custom_pnif (int, float)
  35313. void * __builtin_custom_pnip (int, void *)
  35314. void * __builtin_custom_pnfi (float, int)
  35315. void * __builtin_custom_pnff (float, float)
  35316. void * __builtin_custom_pnfp (float, void *)
  35317. void * __builtin_custom_pnpi (void *, int)
  35318. void * __builtin_custom_pnpf (void *, float)
  35319. void * __builtin_custom_pnpp (void *, void *)
  35320. 
  35321. File: gcc.info, Node: ARC Built-in Functions, Next: ARC SIMD Built-in Functions, Prev: Altera Nios II Built-in Functions, Up: Target Builtins
  35322. 6.60.4 ARC Built-in Functions
  35323. -----------------------------
  35324. The following built-in functions are provided for ARC targets. The
  35325. built-ins generate the corresponding assembly instructions. In the
  35326. examples given below, the generated code often requires an operand or
  35327. result to be in a register. Where necessary further code will be
  35328. generated to ensure this is true, but for brevity this is not described
  35329. in each case.
  35330. _Note:_ Using a built-in to generate an instruction not supported by a
  35331. target may cause problems. At present the compiler is not guaranteed to
  35332. detect such misuse, and as a result an internal compiler error may be
  35333. generated.
  35334. -- Built-in Function: int __builtin_arc_aligned (void *VAL, int
  35335. ALIGNVAL)
  35336. Return 1 if VAL is known to have the byte alignment given by
  35337. ALIGNVAL, otherwise return 0. Note that this is different from
  35338. __alignof__(*(char *)VAL) >= alignval
  35339. because __alignof__ sees only the type of the dereference, whereas
  35340. __builtin_arc_align uses alignment information from the pointer as
  35341. well as from the pointed-to type. The information available will
  35342. depend on optimization level.
  35343. -- Built-in Function: void __builtin_arc_brk (void)
  35344. Generates
  35345. brk
  35346. -- Built-in Function: unsigned int __builtin_arc_core_read (unsigned
  35347. int REGNO)
  35348. The operand is the number of a register to be read. Generates:
  35349. mov DEST, rREGNO
  35350. where the value in DEST will be the result returned from the
  35351. built-in.
  35352. -- Built-in Function: void __builtin_arc_core_write (unsigned int
  35353. REGNO, unsigned int VAL)
  35354. The first operand is the number of a register to be written, the
  35355. second operand is a compile time constant to write into that
  35356. register. Generates:
  35357. mov rREGNO, VAL
  35358. -- Built-in Function: int __builtin_arc_divaw (int A, int B)
  35359. Only available if either '-mcpu=ARC700' or '-meA' is set.
  35360. Generates:
  35361. divaw DEST, A, B
  35362. where the value in DEST will be the result returned from the
  35363. built-in.
  35364. -- Built-in Function: void __builtin_arc_flag (unsigned int A)
  35365. Generates
  35366. flag A
  35367. -- Built-in Function: unsigned int __builtin_arc_lr (unsigned int AUXR)
  35368. The operand, AUXV, is the address of an auxiliary register and must
  35369. be a compile time constant. Generates:
  35370. lr DEST, [AUXR]
  35371. Where the value in DEST will be the result returned from the
  35372. built-in.
  35373. -- Built-in Function: void __builtin_arc_mul64 (int A, int B)
  35374. Only available with '-mmul64'. Generates:
  35375. mul64 A, B
  35376. -- Built-in Function: void __builtin_arc_mulu64 (unsigned int A,
  35377. unsigned int B)
  35378. Only available with '-mmul64'. Generates:
  35379. mulu64 A, B
  35380. -- Built-in Function: void __builtin_arc_nop (void)
  35381. Generates:
  35382. nop
  35383. -- Built-in Function: int __builtin_arc_norm (int SRC)
  35384. Only valid if the 'norm' instruction is available through the
  35385. '-mnorm' option or by default with '-mcpu=ARC700'. Generates:
  35386. norm DEST, SRC
  35387. Where the value in DEST will be the result returned from the
  35388. built-in.
  35389. -- Built-in Function: short int __builtin_arc_normw (short int SRC)
  35390. Only valid if the 'normw' instruction is available through the
  35391. '-mnorm' option or by default with '-mcpu=ARC700'. Generates:
  35392. normw DEST, SRC
  35393. Where the value in DEST will be the result returned from the
  35394. built-in.
  35395. -- Built-in Function: void __builtin_arc_rtie (void)
  35396. Generates:
  35397. rtie
  35398. -- Built-in Function: void __builtin_arc_sleep (int A
  35399. Generates:
  35400. sleep A
  35401. -- Built-in Function: void __builtin_arc_sr (unsigned int AUXR,
  35402. unsigned int VAL)
  35403. The first argument, AUXV, is the address of an auxiliary register,
  35404. the second argument, VAL, is a compile time constant to be written
  35405. to the register. Generates:
  35406. sr AUXR, [VAL]
  35407. -- Built-in Function: int __builtin_arc_swap (int SRC)
  35408. Only valid with '-mswap'. Generates:
  35409. swap DEST, SRC
  35410. Where the value in DEST will be the result returned from the
  35411. built-in.
  35412. -- Built-in Function: void __builtin_arc_swi (void)
  35413. Generates:
  35414. swi
  35415. -- Built-in Function: void __builtin_arc_sync (void)
  35416. Only available with '-mcpu=ARC700'. Generates:
  35417. sync
  35418. -- Built-in Function: void __builtin_arc_trap_s (unsigned int C)
  35419. Only available with '-mcpu=ARC700'. Generates:
  35420. trap_s C
  35421. -- Built-in Function: void __builtin_arc_unimp_s (void)
  35422. Only available with '-mcpu=ARC700'. Generates:
  35423. unimp_s
  35424. The instructions generated by the following builtins are not considered
  35425. as candidates for scheduling. They are not moved around by the compiler
  35426. during scheduling, and thus can be expected to appear where they are put
  35427. in the C code:
  35428. __builtin_arc_brk()
  35429. __builtin_arc_core_read()
  35430. __builtin_arc_core_write()
  35431. __builtin_arc_flag()
  35432. __builtin_arc_lr()
  35433. __builtin_arc_sleep()
  35434. __builtin_arc_sr()
  35435. __builtin_arc_swi()
  35436. 
  35437. File: gcc.info, Node: ARC SIMD Built-in Functions, Next: ARM iWMMXt Built-in Functions, Prev: ARC Built-in Functions, Up: Target Builtins
  35438. 6.60.5 ARC SIMD Built-in Functions
  35439. ----------------------------------
  35440. SIMD builtins provided by the compiler can be used to generate the
  35441. vector instructions. This section describes the available builtins and
  35442. their usage in programs. With the '-msimd' option, the compiler
  35443. provides 128-bit vector types, which can be specified using the
  35444. 'vector_size' attribute. The header file 'arc-simd.h' can be included
  35445. to use the following predefined types:
  35446. typedef int __v4si __attribute__((vector_size(16)));
  35447. typedef short __v8hi __attribute__((vector_size(16)));
  35448. These types can be used to define 128-bit variables. The built-in
  35449. functions listed in the following section can be used on these variables
  35450. to generate the vector operations.
  35451. For all builtins, '__builtin_arc_SOMEINSN', the header file
  35452. 'arc-simd.h' also provides equivalent macros called '_SOMEINSN' that can
  35453. be used for programming ease and improved readability. The following
  35454. macros for DMA control are also provided:
  35455. #define _setup_dma_in_channel_reg _vdiwr
  35456. #define _setup_dma_out_channel_reg _vdowr
  35457. The following is a complete list of all the SIMD built-ins provided for
  35458. ARC, grouped by calling signature.
  35459. The following take two '__v8hi' arguments and return a '__v8hi' result:
  35460. __v8hi __builtin_arc_vaddaw (__v8hi, __v8hi)
  35461. __v8hi __builtin_arc_vaddw (__v8hi, __v8hi)
  35462. __v8hi __builtin_arc_vand (__v8hi, __v8hi)
  35463. __v8hi __builtin_arc_vandaw (__v8hi, __v8hi)
  35464. __v8hi __builtin_arc_vavb (__v8hi, __v8hi)
  35465. __v8hi __builtin_arc_vavrb (__v8hi, __v8hi)
  35466. __v8hi __builtin_arc_vbic (__v8hi, __v8hi)
  35467. __v8hi __builtin_arc_vbicaw (__v8hi, __v8hi)
  35468. __v8hi __builtin_arc_vdifaw (__v8hi, __v8hi)
  35469. __v8hi __builtin_arc_vdifw (__v8hi, __v8hi)
  35470. __v8hi __builtin_arc_veqw (__v8hi, __v8hi)
  35471. __v8hi __builtin_arc_vh264f (__v8hi, __v8hi)
  35472. __v8hi __builtin_arc_vh264ft (__v8hi, __v8hi)
  35473. __v8hi __builtin_arc_vh264fw (__v8hi, __v8hi)
  35474. __v8hi __builtin_arc_vlew (__v8hi, __v8hi)
  35475. __v8hi __builtin_arc_vltw (__v8hi, __v8hi)
  35476. __v8hi __builtin_arc_vmaxaw (__v8hi, __v8hi)
  35477. __v8hi __builtin_arc_vmaxw (__v8hi, __v8hi)
  35478. __v8hi __builtin_arc_vminaw (__v8hi, __v8hi)
  35479. __v8hi __builtin_arc_vminw (__v8hi, __v8hi)
  35480. __v8hi __builtin_arc_vmr1aw (__v8hi, __v8hi)
  35481. __v8hi __builtin_arc_vmr1w (__v8hi, __v8hi)
  35482. __v8hi __builtin_arc_vmr2aw (__v8hi, __v8hi)
  35483. __v8hi __builtin_arc_vmr2w (__v8hi, __v8hi)
  35484. __v8hi __builtin_arc_vmr3aw (__v8hi, __v8hi)
  35485. __v8hi __builtin_arc_vmr3w (__v8hi, __v8hi)
  35486. __v8hi __builtin_arc_vmr4aw (__v8hi, __v8hi)
  35487. __v8hi __builtin_arc_vmr4w (__v8hi, __v8hi)
  35488. __v8hi __builtin_arc_vmr5aw (__v8hi, __v8hi)
  35489. __v8hi __builtin_arc_vmr5w (__v8hi, __v8hi)
  35490. __v8hi __builtin_arc_vmr6aw (__v8hi, __v8hi)
  35491. __v8hi __builtin_arc_vmr6w (__v8hi, __v8hi)
  35492. __v8hi __builtin_arc_vmr7aw (__v8hi, __v8hi)
  35493. __v8hi __builtin_arc_vmr7w (__v8hi, __v8hi)
  35494. __v8hi __builtin_arc_vmrb (__v8hi, __v8hi)
  35495. __v8hi __builtin_arc_vmulaw (__v8hi, __v8hi)
  35496. __v8hi __builtin_arc_vmulfaw (__v8hi, __v8hi)
  35497. __v8hi __builtin_arc_vmulfw (__v8hi, __v8hi)
  35498. __v8hi __builtin_arc_vmulw (__v8hi, __v8hi)
  35499. __v8hi __builtin_arc_vnew (__v8hi, __v8hi)
  35500. __v8hi __builtin_arc_vor (__v8hi, __v8hi)
  35501. __v8hi __builtin_arc_vsubaw (__v8hi, __v8hi)
  35502. __v8hi __builtin_arc_vsubw (__v8hi, __v8hi)
  35503. __v8hi __builtin_arc_vsummw (__v8hi, __v8hi)
  35504. __v8hi __builtin_arc_vvc1f (__v8hi, __v8hi)
  35505. __v8hi __builtin_arc_vvc1ft (__v8hi, __v8hi)
  35506. __v8hi __builtin_arc_vxor (__v8hi, __v8hi)
  35507. __v8hi __builtin_arc_vxoraw (__v8hi, __v8hi)
  35508. The following take one '__v8hi' and one 'int' argument and return a
  35509. '__v8hi' result:
  35510. __v8hi __builtin_arc_vbaddw (__v8hi, int)
  35511. __v8hi __builtin_arc_vbmaxw (__v8hi, int)
  35512. __v8hi __builtin_arc_vbminw (__v8hi, int)
  35513. __v8hi __builtin_arc_vbmulaw (__v8hi, int)
  35514. __v8hi __builtin_arc_vbmulfw (__v8hi, int)
  35515. __v8hi __builtin_arc_vbmulw (__v8hi, int)
  35516. __v8hi __builtin_arc_vbrsubw (__v8hi, int)
  35517. __v8hi __builtin_arc_vbsubw (__v8hi, int)
  35518. The following take one '__v8hi' argument and one 'int' argument which
  35519. must be a 3-bit compile time constant indicating a register number
  35520. I0-I7. They return a '__v8hi' result.
  35521. __v8hi __builtin_arc_vasrw (__v8hi, const int)
  35522. __v8hi __builtin_arc_vsr8 (__v8hi, const int)
  35523. __v8hi __builtin_arc_vsr8aw (__v8hi, const int)
  35524. The following take one '__v8hi' argument and one 'int' argument which
  35525. must be a 6-bit compile time constant. They return a '__v8hi' result.
  35526. __v8hi __builtin_arc_vasrpwbi (__v8hi, const int)
  35527. __v8hi __builtin_arc_vasrrpwbi (__v8hi, const int)
  35528. __v8hi __builtin_arc_vasrrwi (__v8hi, const int)
  35529. __v8hi __builtin_arc_vasrsrwi (__v8hi, const int)
  35530. __v8hi __builtin_arc_vasrwi (__v8hi, const int)
  35531. __v8hi __builtin_arc_vsr8awi (__v8hi, const int)
  35532. __v8hi __builtin_arc_vsr8i (__v8hi, const int)
  35533. The following take one '__v8hi' argument and one 'int' argument which
  35534. must be a 8-bit compile time constant. They return a '__v8hi' result.
  35535. __v8hi __builtin_arc_vd6tapf (__v8hi, const int)
  35536. __v8hi __builtin_arc_vmvaw (__v8hi, const int)
  35537. __v8hi __builtin_arc_vmvw (__v8hi, const int)
  35538. __v8hi __builtin_arc_vmvzw (__v8hi, const int)
  35539. The following take two 'int' arguments, the second of which which must
  35540. be a 8-bit compile time constant. They return a '__v8hi' result:
  35541. __v8hi __builtin_arc_vmovaw (int, const int)
  35542. __v8hi __builtin_arc_vmovw (int, const int)
  35543. __v8hi __builtin_arc_vmovzw (int, const int)
  35544. The following take a single '__v8hi' argument and return a '__v8hi'
  35545. result:
  35546. __v8hi __builtin_arc_vabsaw (__v8hi)
  35547. __v8hi __builtin_arc_vabsw (__v8hi)
  35548. __v8hi __builtin_arc_vaddsuw (__v8hi)
  35549. __v8hi __builtin_arc_vexch1 (__v8hi)
  35550. __v8hi __builtin_arc_vexch2 (__v8hi)
  35551. __v8hi __builtin_arc_vexch4 (__v8hi)
  35552. __v8hi __builtin_arc_vsignw (__v8hi)
  35553. __v8hi __builtin_arc_vupbaw (__v8hi)
  35554. __v8hi __builtin_arc_vupbw (__v8hi)
  35555. __v8hi __builtin_arc_vupsbaw (__v8hi)
  35556. __v8hi __builtin_arc_vupsbw (__v8hi)
  35557. The following take two 'int' arguments and return no result:
  35558. void __builtin_arc_vdirun (int, int)
  35559. void __builtin_arc_vdorun (int, int)
  35560. The following take two 'int' arguments and return no result. The first
  35561. argument must a 3-bit compile time constant indicating one of the
  35562. DR0-DR7 DMA setup channels:
  35563. void __builtin_arc_vdiwr (const int, int)
  35564. void __builtin_arc_vdowr (const int, int)
  35565. The following take an 'int' argument and return no result:
  35566. void __builtin_arc_vendrec (int)
  35567. void __builtin_arc_vrec (int)
  35568. void __builtin_arc_vrecrun (int)
  35569. void __builtin_arc_vrun (int)
  35570. The following take a '__v8hi' argument and two 'int' arguments and
  35571. return a '__v8hi' result. The second argument must be a 3-bit compile
  35572. time constants, indicating one the registers I0-I7, and the third
  35573. argument must be an 8-bit compile time constant.
  35574. _Note:_ Although the equivalent hardware instructions do not take an
  35575. SIMD register as an operand, these builtins overwrite the relevant bits
  35576. of the '__v8hi' register provided as the first argument with the value
  35577. loaded from the '[Ib, u8]' location in the SDM.
  35578. __v8hi __builtin_arc_vld32 (__v8hi, const int, const int)
  35579. __v8hi __builtin_arc_vld32wh (__v8hi, const int, const int)
  35580. __v8hi __builtin_arc_vld32wl (__v8hi, const int, const int)
  35581. __v8hi __builtin_arc_vld64 (__v8hi, const int, const int)
  35582. The following take two 'int' arguments and return a '__v8hi' result.
  35583. The first argument must be a 3-bit compile time constants, indicating
  35584. one the registers I0-I7, and the second argument must be an 8-bit
  35585. compile time constant.
  35586. __v8hi __builtin_arc_vld128 (const int, const int)
  35587. __v8hi __builtin_arc_vld64w (const int, const int)
  35588. The following take a '__v8hi' argument and two 'int' arguments and
  35589. return no result. The second argument must be a 3-bit compile time
  35590. constants, indicating one the registers I0-I7, and the third argument
  35591. must be an 8-bit compile time constant.
  35592. void __builtin_arc_vst128 (__v8hi, const int, const int)
  35593. void __builtin_arc_vst64 (__v8hi, const int, const int)
  35594. The following take a '__v8hi' argument and three 'int' arguments and
  35595. return no result. The second argument must be a 3-bit compile-time
  35596. constant, identifying the 16-bit sub-register to be stored, the third
  35597. argument must be a 3-bit compile time constants, indicating one the
  35598. registers I0-I7, and the fourth argument must be an 8-bit compile time
  35599. constant.
  35600. void __builtin_arc_vst16_n (__v8hi, const int, const int, const int)
  35601. void __builtin_arc_vst32_n (__v8hi, const int, const int, const int)
  35602. 
  35603. File: gcc.info, Node: ARM iWMMXt Built-in Functions, Next: ARM C Language Extensions (ACLE), Prev: ARC SIMD Built-in Functions, Up: Target Builtins
  35604. 6.60.6 ARM iWMMXt Built-in Functions
  35605. ------------------------------------
  35606. These built-in functions are available for the ARM family of processors
  35607. when the '-mcpu=iwmmxt' switch is used:
  35608. typedef int v2si __attribute__ ((vector_size (8)));
  35609. typedef short v4hi __attribute__ ((vector_size (8)));
  35610. typedef char v8qi __attribute__ ((vector_size (8)));
  35611. int __builtin_arm_getwcgr0 (void)
  35612. void __builtin_arm_setwcgr0 (int)
  35613. int __builtin_arm_getwcgr1 (void)
  35614. void __builtin_arm_setwcgr1 (int)
  35615. int __builtin_arm_getwcgr2 (void)
  35616. void __builtin_arm_setwcgr2 (int)
  35617. int __builtin_arm_getwcgr3 (void)
  35618. void __builtin_arm_setwcgr3 (int)
  35619. int __builtin_arm_textrmsb (v8qi, int)
  35620. int __builtin_arm_textrmsh (v4hi, int)
  35621. int __builtin_arm_textrmsw (v2si, int)
  35622. int __builtin_arm_textrmub (v8qi, int)
  35623. int __builtin_arm_textrmuh (v4hi, int)
  35624. int __builtin_arm_textrmuw (v2si, int)
  35625. v8qi __builtin_arm_tinsrb (v8qi, int, int)
  35626. v4hi __builtin_arm_tinsrh (v4hi, int, int)
  35627. v2si __builtin_arm_tinsrw (v2si, int, int)
  35628. long long __builtin_arm_tmia (long long, int, int)
  35629. long long __builtin_arm_tmiabb (long long, int, int)
  35630. long long __builtin_arm_tmiabt (long long, int, int)
  35631. long long __builtin_arm_tmiaph (long long, int, int)
  35632. long long __builtin_arm_tmiatb (long long, int, int)
  35633. long long __builtin_arm_tmiatt (long long, int, int)
  35634. int __builtin_arm_tmovmskb (v8qi)
  35635. int __builtin_arm_tmovmskh (v4hi)
  35636. int __builtin_arm_tmovmskw (v2si)
  35637. long long __builtin_arm_waccb (v8qi)
  35638. long long __builtin_arm_wacch (v4hi)
  35639. long long __builtin_arm_waccw (v2si)
  35640. v8qi __builtin_arm_waddb (v8qi, v8qi)
  35641. v8qi __builtin_arm_waddbss (v8qi, v8qi)
  35642. v8qi __builtin_arm_waddbus (v8qi, v8qi)
  35643. v4hi __builtin_arm_waddh (v4hi, v4hi)
  35644. v4hi __builtin_arm_waddhss (v4hi, v4hi)
  35645. v4hi __builtin_arm_waddhus (v4hi, v4hi)
  35646. v2si __builtin_arm_waddw (v2si, v2si)
  35647. v2si __builtin_arm_waddwss (v2si, v2si)
  35648. v2si __builtin_arm_waddwus (v2si, v2si)
  35649. v8qi __builtin_arm_walign (v8qi, v8qi, int)
  35650. long long __builtin_arm_wand(long long, long long)
  35651. long long __builtin_arm_wandn (long long, long long)
  35652. v8qi __builtin_arm_wavg2b (v8qi, v8qi)
  35653. v8qi __builtin_arm_wavg2br (v8qi, v8qi)
  35654. v4hi __builtin_arm_wavg2h (v4hi, v4hi)
  35655. v4hi __builtin_arm_wavg2hr (v4hi, v4hi)
  35656. v8qi __builtin_arm_wcmpeqb (v8qi, v8qi)
  35657. v4hi __builtin_arm_wcmpeqh (v4hi, v4hi)
  35658. v2si __builtin_arm_wcmpeqw (v2si, v2si)
  35659. v8qi __builtin_arm_wcmpgtsb (v8qi, v8qi)
  35660. v4hi __builtin_arm_wcmpgtsh (v4hi, v4hi)
  35661. v2si __builtin_arm_wcmpgtsw (v2si, v2si)
  35662. v8qi __builtin_arm_wcmpgtub (v8qi, v8qi)
  35663. v4hi __builtin_arm_wcmpgtuh (v4hi, v4hi)
  35664. v2si __builtin_arm_wcmpgtuw (v2si, v2si)
  35665. long long __builtin_arm_wmacs (long long, v4hi, v4hi)
  35666. long long __builtin_arm_wmacsz (v4hi, v4hi)
  35667. long long __builtin_arm_wmacu (long long, v4hi, v4hi)
  35668. long long __builtin_arm_wmacuz (v4hi, v4hi)
  35669. v4hi __builtin_arm_wmadds (v4hi, v4hi)
  35670. v4hi __builtin_arm_wmaddu (v4hi, v4hi)
  35671. v8qi __builtin_arm_wmaxsb (v8qi, v8qi)
  35672. v4hi __builtin_arm_wmaxsh (v4hi, v4hi)
  35673. v2si __builtin_arm_wmaxsw (v2si, v2si)
  35674. v8qi __builtin_arm_wmaxub (v8qi, v8qi)
  35675. v4hi __builtin_arm_wmaxuh (v4hi, v4hi)
  35676. v2si __builtin_arm_wmaxuw (v2si, v2si)
  35677. v8qi __builtin_arm_wminsb (v8qi, v8qi)
  35678. v4hi __builtin_arm_wminsh (v4hi, v4hi)
  35679. v2si __builtin_arm_wminsw (v2si, v2si)
  35680. v8qi __builtin_arm_wminub (v8qi, v8qi)
  35681. v4hi __builtin_arm_wminuh (v4hi, v4hi)
  35682. v2si __builtin_arm_wminuw (v2si, v2si)
  35683. v4hi __builtin_arm_wmulsm (v4hi, v4hi)
  35684. v4hi __builtin_arm_wmulul (v4hi, v4hi)
  35685. v4hi __builtin_arm_wmulum (v4hi, v4hi)
  35686. long long __builtin_arm_wor (long long, long long)
  35687. v2si __builtin_arm_wpackdss (long long, long long)
  35688. v2si __builtin_arm_wpackdus (long long, long long)
  35689. v8qi __builtin_arm_wpackhss (v4hi, v4hi)
  35690. v8qi __builtin_arm_wpackhus (v4hi, v4hi)
  35691. v4hi __builtin_arm_wpackwss (v2si, v2si)
  35692. v4hi __builtin_arm_wpackwus (v2si, v2si)
  35693. long long __builtin_arm_wrord (long long, long long)
  35694. long long __builtin_arm_wrordi (long long, int)
  35695. v4hi __builtin_arm_wrorh (v4hi, long long)
  35696. v4hi __builtin_arm_wrorhi (v4hi, int)
  35697. v2si __builtin_arm_wrorw (v2si, long long)
  35698. v2si __builtin_arm_wrorwi (v2si, int)
  35699. v2si __builtin_arm_wsadb (v2si, v8qi, v8qi)
  35700. v2si __builtin_arm_wsadbz (v8qi, v8qi)
  35701. v2si __builtin_arm_wsadh (v2si, v4hi, v4hi)
  35702. v2si __builtin_arm_wsadhz (v4hi, v4hi)
  35703. v4hi __builtin_arm_wshufh (v4hi, int)
  35704. long long __builtin_arm_wslld (long long, long long)
  35705. long long __builtin_arm_wslldi (long long, int)
  35706. v4hi __builtin_arm_wsllh (v4hi, long long)
  35707. v4hi __builtin_arm_wsllhi (v4hi, int)
  35708. v2si __builtin_arm_wsllw (v2si, long long)
  35709. v2si __builtin_arm_wsllwi (v2si, int)
  35710. long long __builtin_arm_wsrad (long long, long long)
  35711. long long __builtin_arm_wsradi (long long, int)
  35712. v4hi __builtin_arm_wsrah (v4hi, long long)
  35713. v4hi __builtin_arm_wsrahi (v4hi, int)
  35714. v2si __builtin_arm_wsraw (v2si, long long)
  35715. v2si __builtin_arm_wsrawi (v2si, int)
  35716. long long __builtin_arm_wsrld (long long, long long)
  35717. long long __builtin_arm_wsrldi (long long, int)
  35718. v4hi __builtin_arm_wsrlh (v4hi, long long)
  35719. v4hi __builtin_arm_wsrlhi (v4hi, int)
  35720. v2si __builtin_arm_wsrlw (v2si, long long)
  35721. v2si __builtin_arm_wsrlwi (v2si, int)
  35722. v8qi __builtin_arm_wsubb (v8qi, v8qi)
  35723. v8qi __builtin_arm_wsubbss (v8qi, v8qi)
  35724. v8qi __builtin_arm_wsubbus (v8qi, v8qi)
  35725. v4hi __builtin_arm_wsubh (v4hi, v4hi)
  35726. v4hi __builtin_arm_wsubhss (v4hi, v4hi)
  35727. v4hi __builtin_arm_wsubhus (v4hi, v4hi)
  35728. v2si __builtin_arm_wsubw (v2si, v2si)
  35729. v2si __builtin_arm_wsubwss (v2si, v2si)
  35730. v2si __builtin_arm_wsubwus (v2si, v2si)
  35731. v4hi __builtin_arm_wunpckehsb (v8qi)
  35732. v2si __builtin_arm_wunpckehsh (v4hi)
  35733. long long __builtin_arm_wunpckehsw (v2si)
  35734. v4hi __builtin_arm_wunpckehub (v8qi)
  35735. v2si __builtin_arm_wunpckehuh (v4hi)
  35736. long long __builtin_arm_wunpckehuw (v2si)
  35737. v4hi __builtin_arm_wunpckelsb (v8qi)
  35738. v2si __builtin_arm_wunpckelsh (v4hi)
  35739. long long __builtin_arm_wunpckelsw (v2si)
  35740. v4hi __builtin_arm_wunpckelub (v8qi)
  35741. v2si __builtin_arm_wunpckeluh (v4hi)
  35742. long long __builtin_arm_wunpckeluw (v2si)
  35743. v8qi __builtin_arm_wunpckihb (v8qi, v8qi)
  35744. v4hi __builtin_arm_wunpckihh (v4hi, v4hi)
  35745. v2si __builtin_arm_wunpckihw (v2si, v2si)
  35746. v8qi __builtin_arm_wunpckilb (v8qi, v8qi)
  35747. v4hi __builtin_arm_wunpckilh (v4hi, v4hi)
  35748. v2si __builtin_arm_wunpckilw (v2si, v2si)
  35749. long long __builtin_arm_wxor (long long, long long)
  35750. long long __builtin_arm_wzero ()
  35751. 
  35752. File: gcc.info, Node: ARM C Language Extensions (ACLE), Next: ARM Floating Point Status and Control Intrinsics, Prev: ARM iWMMXt Built-in Functions, Up: Target Builtins
  35753. 6.60.7 ARM C Language Extensions (ACLE)
  35754. ---------------------------------------
  35755. GCC implements extensions for C as described in the ARM C Language
  35756. Extensions (ACLE) specification, which can be found at
  35757. <http://infocenter.arm.com/help/topic/com.arm.doc.ihi0053c/IHI0053C_acle_2_0.pdf>.
  35758. As a part of ACLE, GCC implements extensions for Advanced SIMD as
  35759. described in the ARM C Language Extensions Specification. The complete
  35760. list of Advanced SIMD intrinsics can be found at
  35761. <http://infocenter.arm.com/help/topic/com.arm.doc.ihi0073a/IHI0073A_arm_neon_intrinsics_ref.pdf>.
  35762. The built-in intrinsics for the Advanced SIMD extension are available
  35763. when NEON is enabled.
  35764. Currently, ARM and AArch64 back ends do not support ACLE 2.0 fully.
  35765. Both back ends support CRC32 intrinsics and the ARM back end supports
  35766. the Coprocessor intrinsics, all from 'arm_acle.h'. The ARM back end's
  35767. 16-bit floating-point Advanced SIMD intrinsics currently comply to ACLE
  35768. v1.1. AArch64's back end does not have support for 16-bit floating
  35769. point Advanced SIMD intrinsics yet.
  35770. See *note ARM Options:: and *note AArch64 Options:: for more
  35771. information on the availability of extensions.
  35772. 
  35773. File: gcc.info, Node: ARM Floating Point Status and Control Intrinsics, Next: ARM ARMv8-M Security Extensions, Prev: ARM C Language Extensions (ACLE), Up: Target Builtins
  35774. 6.60.8 ARM Floating Point Status and Control Intrinsics
  35775. -------------------------------------------------------
  35776. These built-in functions are available for the ARM family of processors
  35777. with floating-point unit.
  35778. unsigned int __builtin_arm_get_fpscr ()
  35779. void __builtin_arm_set_fpscr (unsigned int)
  35780. 
  35781. File: gcc.info, Node: ARM ARMv8-M Security Extensions, Next: AVR Built-in Functions, Prev: ARM Floating Point Status and Control Intrinsics, Up: Target Builtins
  35782. 6.60.9 ARM ARMv8-M Security Extensions
  35783. --------------------------------------
  35784. GCC implements the ARMv8-M Security Extensions as described in the
  35785. ARMv8-M Security Extensions: Requirements on Development Tools
  35786. Engineering Specification, which can be found at
  35787. <http://infocenter.arm.com/help/topic/com.arm.doc.ecm0359818/ECM0359818_armv8m_security_extensions_reqs_on_dev_tools_1_0.pdf>.
  35788. As part of the Security Extensions GCC implements two new function
  35789. attributes: 'cmse_nonsecure_entry' and 'cmse_nonsecure_call'.
  35790. As part of the Security Extensions GCC implements the intrinsics below.
  35791. FPTR is used here to mean any function pointer type.
  35792. cmse_address_info_t cmse_TT (void *)
  35793. cmse_address_info_t cmse_TT_fptr (FPTR)
  35794. cmse_address_info_t cmse_TTT (void *)
  35795. cmse_address_info_t cmse_TTT_fptr (FPTR)
  35796. cmse_address_info_t cmse_TTA (void *)
  35797. cmse_address_info_t cmse_TTA_fptr (FPTR)
  35798. cmse_address_info_t cmse_TTAT (void *)
  35799. cmse_address_info_t cmse_TTAT_fptr (FPTR)
  35800. void * cmse_check_address_range (void *, size_t, int)
  35801. typeof(p) cmse_nsfptr_create (FPTR p)
  35802. intptr_t cmse_is_nsfptr (FPTR)
  35803. int cmse_nonsecure_caller (void)
  35804. 
  35805. File: gcc.info, Node: AVR Built-in Functions, Next: Blackfin Built-in Functions, Prev: ARM ARMv8-M Security Extensions, Up: Target Builtins
  35806. 6.60.10 AVR Built-in Functions
  35807. ------------------------------
  35808. For each built-in function for AVR, there is an equally named, uppercase
  35809. built-in macro defined. That way users can easily query if or if not a
  35810. specific built-in is implemented or not. For example, if
  35811. '__builtin_avr_nop' is available the macro '__BUILTIN_AVR_NOP' is
  35812. defined to '1' and undefined otherwise.
  35813. 'void __builtin_avr_nop (void)'
  35814. 'void __builtin_avr_sei (void)'
  35815. 'void __builtin_avr_cli (void)'
  35816. 'void __builtin_avr_sleep (void)'
  35817. 'void __builtin_avr_wdr (void)'
  35818. 'unsigned char __builtin_avr_swap (unsigned char)'
  35819. 'unsigned int __builtin_avr_fmul (unsigned char, unsigned char)'
  35820. 'int __builtin_avr_fmuls (char, char)'
  35821. 'int __builtin_avr_fmulsu (char, unsigned char)'
  35822. These built-in functions map to the respective machine instruction,
  35823. i.e. 'nop', 'sei', 'cli', 'sleep', 'wdr', 'swap', 'fmul', 'fmuls'
  35824. resp. 'fmulsu'. The three 'fmul*' built-ins are implemented as
  35825. library call if no hardware multiplier is available.
  35826. 'void __builtin_avr_delay_cycles (unsigned long ticks)'
  35827. Delay execution for TICKS cycles. Note that this built-in does not
  35828. take into account the effect of interrupts that might increase
  35829. delay time. TICKS must be a compile-time integer constant; delays
  35830. with a variable number of cycles are not supported.
  35831. 'char __builtin_avr_flash_segment (const __memx void*)'
  35832. This built-in takes a byte address to the 24-bit *note address
  35833. space: AVR Named Address Spaces. '__memx' and returns the number of
  35834. the flash segment (the 64 KiB chunk) where the address points to.
  35835. Counting starts at '0'. If the address does not point to flash
  35836. memory, return '-1'.
  35837. 'uint8_t __builtin_avr_insert_bits (uint32_t map, uint8_t bits, uint8_t val)'
  35838. Insert bits from BITS into VAL and return the resulting value. The
  35839. nibbles of MAP determine how the insertion is performed: Let X be
  35840. the N-th nibble of MAP
  35841. 1. If X is '0xf', then the N-th bit of VAL is returned unaltered.
  35842. 2. If X is in the range 0...7, then the N-th result bit is set to
  35843. the X-th bit of BITS
  35844. 3. If X is in the range 8...'0xe', then the N-th result bit is
  35845. undefined.
  35846. One typical use case for this built-in is adjusting input and
  35847. output values to non-contiguous port layouts. Some examples:
  35848. // same as val, bits is unused
  35849. __builtin_avr_insert_bits (0xffffffff, bits, val)
  35850. // same as bits, val is unused
  35851. __builtin_avr_insert_bits (0x76543210, bits, val)
  35852. // same as rotating bits by 4
  35853. __builtin_avr_insert_bits (0x32107654, bits, 0)
  35854. // high nibble of result is the high nibble of val
  35855. // low nibble of result is the low nibble of bits
  35856. __builtin_avr_insert_bits (0xffff3210, bits, val)
  35857. // reverse the bit order of bits
  35858. __builtin_avr_insert_bits (0x01234567, bits, 0)
  35859. 'void __builtin_avr_nops (unsigned count)'
  35860. Insert COUNT 'NOP' instructions. The number of instructions must
  35861. be a compile-time integer constant.
  35862. There are many more AVR-specific built-in functions that are used to
  35863. implement the ISO/IEC TR 18037 "Embedded C" fixed-point functions of
  35864. section 7.18a.6. You don't need to use these built-ins directly.
  35865. Instead, use the declarations as supplied by the 'stdfix.h' header with
  35866. GNU-C99:
  35867. #include <stdfix.h>
  35868. // Re-interpret the bit representation of unsigned 16-bit
  35869. // integer UVAL as Q-format 0.16 value.
  35870. unsigned fract get_bits (uint_ur_t uval)
  35871. {
  35872. return urbits (uval);
  35873. }
  35874. 
  35875. File: gcc.info, Node: Blackfin Built-in Functions, Next: BPF Built-in Functions, Prev: AVR Built-in Functions, Up: Target Builtins
  35876. 6.60.11 Blackfin Built-in Functions
  35877. -----------------------------------
  35878. Currently, there are two Blackfin-specific built-in functions. These
  35879. are used for generating 'CSYNC' and 'SSYNC' machine insns without using
  35880. inline assembly; by using these built-in functions the compiler can
  35881. automatically add workarounds for hardware errata involving these
  35882. instructions. These functions are named as follows:
  35883. void __builtin_bfin_csync (void)
  35884. void __builtin_bfin_ssync (void)
  35885. 
  35886. File: gcc.info, Node: BPF Built-in Functions, Next: BPF Kernel Helpers, Prev: Blackfin Built-in Functions, Up: Target Builtins
  35887. 6.60.12 BPF Built-in Functions
  35888. ------------------------------
  35889. The following built-in functions are available for eBPF targets.
  35890. -- Built-in Function: unsigned long long __builtin_bpf_load_byte
  35891. (unsigned long long OFFSET)
  35892. Load a byte from the 'struct sk_buff' packet data pointed by the
  35893. register '%r6' and return it.
  35894. -- Built-in Function: unsigned long long __builtin_bpf_load_half
  35895. (unsigned long long OFFSET)
  35896. Load 16-bits from the 'struct sk_buff' packet data pointed by the
  35897. register '%r6' and return it.
  35898. -- Built-in Function: unsigned long long __builtin_bpf_load_word
  35899. (unsigned long long OFFSET)
  35900. Load 32-bits from the 'struct sk_buff' packet data pointed by the
  35901. register '%r6' and return it.
  35902. 
  35903. File: gcc.info, Node: BPF Kernel Helpers, Next: FR-V Built-in Functions, Prev: BPF Built-in Functions, Up: Target Builtins
  35904. 6.60.13 BPF Kernel Helpers
  35905. --------------------------
  35906. These built-in functions are available for calling kernel helpers, and
  35907. they are available depending on the kernel version selected as the CPU.
  35908. Rather than using the built-ins directly, it is preferred for programs
  35909. to include 'bpf-helpers.h' and use the wrappers defined there.
  35910. For a full description of what the helpers do, the arguments they take,
  35911. and the returned value, see the 'linux/include/uapi/linux/bpf.h' in a
  35912. Linux source tree.
  35913. void *__builtin_bpf_helper_map_lookup_elem (void *map, void *key)
  35914. int __builtin_bpf_helper_map_update_elem (void *map, void *key,
  35915. void *value,
  35916. unsigned long long flags)
  35917. int __builtin_bpf_helper_map_delete_elem (void *map, const void *key)
  35918. int __builtin_bpf_helper_map_push_elem (void *map, const void *value,
  35919. unsigned long long flags)
  35920. int __builtin_bpf_helper_map_pop_elem (void *map, void *value)
  35921. int __builtin_bpf_helper_map_peek_elem (void *map, void *value)
  35922. int __builtin_bpf_helper_clone_redirect (void *skb,
  35923. unsigned int ifindex,
  35924. unsigned long long flags)
  35925. int __builtin_bpf_helper_skb_get_tunnel_key (void *ctx, void *key, int size, int flags)
  35926. int __builtin_bpf_helper_skb_set_tunnel_key (void *ctx, void *key, int size, int flags)
  35927. int __builtin_bpf_helper_skb_get_tunnel_opt (void *ctx, void *md, int size)
  35928. int __builtin_bpf_helper_skb_set_tunnel_opt (void *ctx, void *md, int size)
  35929. int __builtin_bpf_helper_skb_get_xfrm_state (void *ctx, int index, void *state,
  35930. int size, int flags)
  35931. static unsigned long long __builtin_bpf_helper_skb_cgroup_id (void *ctx)
  35932. static unsigned long long __builtin_bpf_helper_skb_ancestor_cgroup_id
  35933. (void *ctx, int level)
  35934. int __builtin_bpf_helper_skb_vlan_push (void *ctx, __be16 vlan_proto, __u16 vlan_tci)
  35935. int __builtin_bpf_helper_skb_vlan_pop (void *ctx)
  35936. int __builtin_bpf_helper_skb_ecn_set_ce (void *ctx)
  35937. int __builtin_bpf_helper_skb_load_bytes (void *ctx, int off, void *to, int len)
  35938. int __builtin_bpf_helper_skb_load_bytes_relative (void *ctx, int off, void *to, int len, __u32 start_header)
  35939. int __builtin_bpf_helper_skb_store_bytes (void *ctx, int off, void *from, int len, int flags)
  35940. int __builtin_bpf_helper_skb_under_cgroup (void *ctx, void *map, int index)
  35941. int __builtin_bpf_helper_skb_change_head (void *, int len, int flags)
  35942. int __builtin_bpf_helper_skb_pull_data (void *, int len)
  35943. int __builtin_bpf_helper_skb_change_proto (void *ctx, __be16 proto, __u64 flags)
  35944. int __builtin_bpf_helper_skb_change_type (void *ctx, __u32 type)
  35945. int __builtin_bpf_helper_skb_change_tail (void *ctx, __u32 len, __u64 flags)
  35946. int __builtin_bpf_helper_skb_adjust_room (void *ctx, __s32 len_diff, __u32 mode,
  35947. unsigned long long flags)
  35948. Other helpers:
  35949. int __builtin_bpf_helper_probe_read (void *dst, unsigned int size, void *src)
  35950. unsigned long long __builtin_bpf_helper_ktime_get_ns (void)
  35951. int __builtin_bpf_helper_trace_printk (const char *fmt, unsigned int fmt_size, ...)
  35952. void __builtin_bpf_helper_tail_call (void *ctx, void *prog_array_map, unsigned int index)
  35953. unsigned int __builtin_bpf_helper_get_smp_processor_id (void)
  35954. unsigned long long __builtin_bpf_helper_get_current_pid_tgid (void)
  35955. unsigned long long __builtin_bpf_helper_get_current_uid_gid (void)
  35956. int __builtin_bpf_helper_get_current_comm (void *buf, unsigned int size_of_buf)
  35957. unsigned long long __builtin_bpf_helper_perf_event_read (void *map, unsigned long long flags)
  35958. int __builtin_bpf_helper_redirect (unsigned int ifindex, unsigned long long flags)
  35959. int __builtin_bpf_helper_redirect_map (void *map, unsigned int key, unsigned long long flags)
  35960. int __builtin_bpf_helper_perf_event_output (void *ctx,void *map, unsigned long long flags, void *data, unsigned long long size)
  35961. int __builtin_bpf_helper_get_stackid (void *ctx, void *map, unsigned long long flags)
  35962. int __builtin_bpf_helper_probe_write_user (void *dst, const void *src, unsigned int len)
  35963. int __builtin_bpf_helper_current_task_under_cgroup (void *map, unsigned int index)
  35964. static unsigned long long __builtin_bpf_helper_get_prandom_u32 (void)
  35965. int __builtin_bpf_helper_xdp_adjust_head (void *ctx, int offset)
  35966. int __builtin_bpf_helper_xdp_adjust_meta (void *ctx, int offset)
  35967. int __builtin_bpf_helper_get_socket_cookie (void *ctx)
  35968. int __builtin_bpf_helper_setsockopt (void *ctx, int level, int optname, void *optval,
  35969. int optlen)
  35970. int __builtin_bpf_helper_getsockopt (void *ctx, int level, int optname, void *optval,
  35971. int optlen)
  35972. int __builtin_bpf_helper_sock_ops_cb_flags_set (void *ctx, int flags)
  35973. int __builtin_bpf_helper_sk_redirect_map (void *ctx, void *map, int key, int flags)
  35974. int __builtin_bpf_helper_sk_redirect_hash (void *ctx, void *map, void *key, int flags)
  35975. int __builtin_bpf_helper_sock_map_update (void *map, void *key, void *value,
  35976. unsigned long long flags)
  35977. int __builtin_bpf_helper_sock_hash_update (void *map, void *key, void *value,
  35978. unsigned long long flags)
  35979. int __builtin_bpf_helper_perf_event_read_value (void *map, unsigned long long flags,
  35980. void *buf, unsigned int buf_size)
  35981. int __builtin_bpf_helper_perf_prog_read_value (void *ctx, void *buf,
  35982. unsigned int buf_size)
  35983. int __builtin_bpf_helper_override_return (void *ctx, unsigned long rc)
  35984. int __builtin_bpf_helper_msg_redirect_map (void *ctx, void *map, int key, int flags)
  35985. int __builtin_bpf_helper_msg_redirect_hash (void *ctx,
  35986. void *map, void *key, int flags)
  35987. int __builtin_bpf_helper_msg_apply_bytes (void *ctx, int len)
  35988. int __builtin_bpf_helper_msg_cork_bytes (void *ctx, int len)
  35989. int __builtin_bpf_helper_msg_pull_data (void *ctx, int start, int end, int flags)
  35990. int __builtin_bpf_helper_msg_push_data (void *ctx, int start, int end, int flags)
  35991. int __builtin_bpf_helper_msg_pop_data (void *ctx, int start, int cut, int flags)
  35992. int __builtin_bpf_helper_bind (void *ctx, void *addr, int addr_len)
  35993. int __builtin_bpf_helper_xdp_adjust_tail (void *ctx, int offset)
  35994. int __builtin_bpf_helper_sk_select_reuseport (void *ctx, void *map, void *key, __u32 flags)
  35995. int __builtin_bpf_helper_get_stack (void *ctx, void *buf, int size, int flags)
  35996. int __builtin_bpf_helper_fib_lookup (void *ctx, struct bpf_fib_lookup *params,
  35997. int plen, __u32 flags)
  35998. int __builtin_bpf_helper_lwt_push_encap (void *ctx, unsigned int type, void *hdr,
  35999. unsigned int len)
  36000. int __builtin_bpf_helper_lwt_seg6_store_bytes (void *ctx, unsigned int offset,
  36001. void *from, unsigned int len)
  36002. int __builtin_bpf_helper_lwt_seg6_action (void *ctx, unsigned int action, void *param,
  36003. unsigned int param_len)
  36004. int __builtin_bpf_helper_lwt_seg6_adjust_srh (void *ctx, unsigned int offset,
  36005. unsigned int len)
  36006. int __builtin_bpf_helper_rc_repeat (void *ctx)
  36007. int __builtin_bpf_helper_rc_keydown (void *ctx, unsigned int protocol,
  36008. unsigned long long scancode, unsigned int toggle)
  36009. static unsigned long long __builtin_bpf_helper_get_current_cgroup_id (void)
  36010. static void *__builtin_bpf_helper_get_local_storage (void *map, unsigned long long flags)
  36011. static struct bpf_sock *__builtin_bpf_helper_sk_lookup_tcp (void *ctx, void *tuple, int size, unsigned long long netns_id, unsigned long long flags)
  36012. static struct bpf_sock *__builtin_bpf_helper_sk_lookup_udp (void *ctx, void *tuple, int size, unsigned long long netns_id, unsigned long long flags)
  36013. int __builtin_bpf_helper_sk_release (struct bpf_sock *sk)
  36014. int __builtin_bpf_helper_rc_pointer_rel (void *ctx, int rel_x, int rel_y)
  36015. static void __builtin_bpf_helper_spin_lock (struct bpf_spin_lock *lock)
  36016. static void __builtin_bpf_helper_spin_unlock (struct bpf_spin_lock *lock)
  36017. static struct bpf_sock *__builtin_bpf_helper_sk_fullsock (struct bpf_sock *sk)
  36018. static struct bpf_tcp_sock *__builtin_bpf_helper_tcp_sock (struct bpf_sock *sk)
  36019. static struct bpf_sock *__builtin_bpf_helper_get_listener_sock (struct bpf_sock *sk)
  36020. int __builtin_bpf_helper_l3_csum_replace (void *ctx, int off, int from, int to, int flags)
  36021. int __builtin_bpf_helper_l4_csum_replace (void *ctx, int off, int from, int to, int flags)
  36022. int __builtin_bpf_helper_csum_diff (void *from, int from_size, void *to, int to_size, int seed)
  36023. static unsigned int __builtin_bpf_helper_get_cgroup_classid (void *ctx)
  36024. static unsigned int __builtin_bpf_helper_get_route_realm (void *ctx)
  36025. static unsigned int __builtin_bpf_helper_get_hash_recalc (void *ctx)
  36026. static unsigned long long __builtin_bpf_helper_get_current_task (void *ctx)
  36027. static long long __builtin_bpf_helper_csum_update (void *ctx, __u32 csum)
  36028. static void __builtin_bpf_helper_set_hash_invalid (void *ctx)
  36029. int __builtin_bpf_helper_get_numa_node_id (void)
  36030. int __builtin_bpf_helper_probe_read_str (void *ctx, __u32 size,
  36031. const void *unsafe_ptr)
  36032. static unsigned int __builtin_bpf_helper_get_socket_uid (void *ctx)
  36033. static unsigned int __builtin_bpf_helper_set_hash (void *ctx, __u32 hash)
  36034. 
  36035. File: gcc.info, Node: FR-V Built-in Functions, Next: MIPS DSP Built-in Functions, Prev: BPF Kernel Helpers, Up: Target Builtins
  36036. 6.60.14 FR-V Built-in Functions
  36037. -------------------------------
  36038. GCC provides many FR-V-specific built-in functions. In general, these
  36039. functions are intended to be compatible with those described by 'FR-V
  36040. Family, Softune C/C++ Compiler Manual (V6), Fujitsu Semiconductor'. The
  36041. two exceptions are '__MDUNPACKH' and '__MBTOHE', the GCC forms of which
  36042. pass 128-bit values by pointer rather than by value.
  36043. Most of the functions are named after specific FR-V instructions. Such
  36044. functions are said to be "directly mapped" and are summarized here in
  36045. tabular form.
  36046. * Menu:
  36047. * Argument Types::
  36048. * Directly-mapped Integer Functions::
  36049. * Directly-mapped Media Functions::
  36050. * Raw read/write Functions::
  36051. * Other Built-in Functions::
  36052. 
  36053. File: gcc.info, Node: Argument Types, Next: Directly-mapped Integer Functions, Up: FR-V Built-in Functions
  36054. 6.60.14.1 Argument Types
  36055. ........................
  36056. The arguments to the built-in functions can be divided into three
  36057. groups: register numbers, compile-time constants and run-time values.
  36058. In order to make this classification clear at a glance, the arguments
  36059. and return values are given the following pseudo types:
  36060. Pseudo type Real C type Constant? Description
  36061. 'uh' 'unsigned short' No an unsigned halfword
  36062. 'uw1' 'unsigned int' No an unsigned word
  36063. 'sw1' 'int' No a signed word
  36064. 'uw2' 'unsigned long long' No an unsigned doubleword
  36065. 'sw2' 'long long' No a signed doubleword
  36066. 'const' 'int' Yes an integer constant
  36067. 'acc' 'int' Yes an ACC register number
  36068. 'iacc' 'int' Yes an IACC register number
  36069. These pseudo types are not defined by GCC, they are simply a notational
  36070. convenience used in this manual.
  36071. Arguments of type 'uh', 'uw1', 'sw1', 'uw2' and 'sw2' are evaluated at
  36072. run time. They correspond to register operands in the underlying FR-V
  36073. instructions.
  36074. 'const' arguments represent immediate operands in the underlying FR-V
  36075. instructions. They must be compile-time constants.
  36076. 'acc' arguments are evaluated at compile time and specify the number of
  36077. an accumulator register. For example, an 'acc' argument of 2 selects
  36078. the ACC2 register.
  36079. 'iacc' arguments are similar to 'acc' arguments but specify the number
  36080. of an IACC register. See *note Other Built-in Functions:: for more
  36081. details.
  36082. 
  36083. File: gcc.info, Node: Directly-mapped Integer Functions, Next: Directly-mapped Media Functions, Prev: Argument Types, Up: FR-V Built-in Functions
  36084. 6.60.14.2 Directly-Mapped Integer Functions
  36085. ...........................................
  36086. The functions listed below map directly to FR-V I-type instructions.
  36087. Function prototype Example usage Assembly output
  36088. 'sw1 __ADDSS (sw1, sw1)' 'C = __ADDSS (A, B)' 'ADDSS A,B,C'
  36089. 'sw1 __SCAN (sw1, sw1)' 'C = __SCAN (A, B)' 'SCAN A,B,C'
  36090. 'sw1 __SCUTSS (sw1)' 'B = __SCUTSS (A)' 'SCUTSS A,B'
  36091. 'sw1 __SLASS (sw1, sw1)' 'C = __SLASS (A, B)' 'SLASS A,B,C'
  36092. 'void __SMASS (sw1, sw1)' '__SMASS (A, B)' 'SMASS A,B'
  36093. 'void __SMSSS (sw1, sw1)' '__SMSSS (A, B)' 'SMSSS A,B'
  36094. 'void __SMU (sw1, sw1)' '__SMU (A, B)' 'SMU A,B'
  36095. 'sw2 __SMUL (sw1, sw1)' 'C = __SMUL (A, B)' 'SMUL A,B,C'
  36096. 'sw1 __SUBSS (sw1, sw1)' 'C = __SUBSS (A, B)' 'SUBSS A,B,C'
  36097. 'uw2 __UMUL (uw1, uw1)' 'C = __UMUL (A, B)' 'UMUL A,B,C'
  36098. 
  36099. File: gcc.info, Node: Directly-mapped Media Functions, Next: Raw read/write Functions, Prev: Directly-mapped Integer Functions, Up: FR-V Built-in Functions
  36100. 6.60.14.3 Directly-Mapped Media Functions
  36101. .........................................
  36102. The functions listed below map directly to FR-V M-type instructions.
  36103. Function prototype Example usage Assembly output
  36104. 'uw1 __MABSHS (sw1)' 'B = __MABSHS (A)' 'MABSHS A,B'
  36105. 'void __MADDACCS (acc, acc)' '__MADDACCS (B, A)' 'MADDACCS A,B'
  36106. 'sw1 __MADDHSS (sw1, sw1)' 'C = __MADDHSS (A, 'MADDHSS A,B,C'
  36107. B)'
  36108. 'uw1 __MADDHUS (uw1, uw1)' 'C = __MADDHUS (A, 'MADDHUS A,B,C'
  36109. B)'
  36110. 'uw1 __MAND (uw1, uw1)' 'C = __MAND (A, B)' 'MAND A,B,C'
  36111. 'void __MASACCS (acc, acc)' '__MASACCS (B, A)' 'MASACCS A,B'
  36112. 'uw1 __MAVEH (uw1, uw1)' 'C = __MAVEH (A, B)' 'MAVEH A,B,C'
  36113. 'uw2 __MBTOH (uw1)' 'B = __MBTOH (A)' 'MBTOH A,B'
  36114. 'void __MBTOHE (uw1 *, uw1)' '__MBTOHE (&B, A)' 'MBTOHE A,B'
  36115. 'void __MCLRACC (acc)' '__MCLRACC (A)' 'MCLRACC A'
  36116. 'void __MCLRACCA (void)' '__MCLRACCA ()' 'MCLRACCA'
  36117. 'uw1 __Mcop1 (uw1, uw1)' 'C = __Mcop1 (A, B)' 'Mcop1 A,B,C'
  36118. 'uw1 __Mcop2 (uw1, uw1)' 'C = __Mcop2 (A, B)' 'Mcop2 A,B,C'
  36119. 'uw1 __MCPLHI (uw2, const)' 'C = __MCPLHI (A, B)' 'MCPLHI A,#B,C'
  36120. 'uw1 __MCPLI (uw2, const)' 'C = __MCPLI (A, B)' 'MCPLI A,#B,C'
  36121. 'void __MCPXIS (acc, sw1, '__MCPXIS (C, A, B)' 'MCPXIS A,B,C'
  36122. sw1)'
  36123. 'void __MCPXIU (acc, uw1, '__MCPXIU (C, A, B)' 'MCPXIU A,B,C'
  36124. uw1)'
  36125. 'void __MCPXRS (acc, sw1, '__MCPXRS (C, A, B)' 'MCPXRS A,B,C'
  36126. sw1)'
  36127. 'void __MCPXRU (acc, uw1, '__MCPXRU (C, A, B)' 'MCPXRU A,B,C'
  36128. uw1)'
  36129. 'uw1 __MCUT (acc, uw1)' 'C = __MCUT (A, B)' 'MCUT A,B,C'
  36130. 'uw1 __MCUTSS (acc, sw1)' 'C = __MCUTSS (A, B)' 'MCUTSS A,B,C'
  36131. 'void __MDADDACCS (acc, acc)' '__MDADDACCS (B, A)' 'MDADDACCS A,B'
  36132. 'void __MDASACCS (acc, acc)' '__MDASACCS (B, A)' 'MDASACCS A,B'
  36133. 'uw2 __MDCUTSSI (acc, const)' 'C = __MDCUTSSI (A, 'MDCUTSSI
  36134. B)' A,#B,C'
  36135. 'uw2 __MDPACKH (uw2, uw2)' 'C = __MDPACKH (A, 'MDPACKH A,B,C'
  36136. B)'
  36137. 'uw2 __MDROTLI (uw2, const)' 'C = __MDROTLI (A, 'MDROTLI
  36138. B)' A,#B,C'
  36139. 'void __MDSUBACCS (acc, acc)' '__MDSUBACCS (B, A)' 'MDSUBACCS A,B'
  36140. 'void __MDUNPACKH (uw1 *, '__MDUNPACKH (&B, A)' 'MDUNPACKH A,B'
  36141. uw2)'
  36142. 'uw2 __MEXPDHD (uw1, const)' 'C = __MEXPDHD (A, 'MEXPDHD
  36143. B)' A,#B,C'
  36144. 'uw1 __MEXPDHW (uw1, const)' 'C = __MEXPDHW (A, 'MEXPDHW
  36145. B)' A,#B,C'
  36146. 'uw1 __MHDSETH (uw1, const)' 'C = __MHDSETH (A, 'MHDSETH
  36147. B)' A,#B,C'
  36148. 'sw1 __MHDSETS (const)' 'B = __MHDSETS (A)' 'MHDSETS #A,B'
  36149. 'uw1 __MHSETHIH (uw1, const)' 'B = __MHSETHIH (B, 'MHSETHIH #A,B'
  36150. A)'
  36151. 'sw1 __MHSETHIS (sw1, const)' 'B = __MHSETHIS (B, 'MHSETHIS #A,B'
  36152. A)'
  36153. 'uw1 __MHSETLOH (uw1, const)' 'B = __MHSETLOH (B, 'MHSETLOH #A,B'
  36154. A)'
  36155. 'sw1 __MHSETLOS (sw1, const)' 'B = __MHSETLOS (B, 'MHSETLOS #A,B'
  36156. A)'
  36157. 'uw1 __MHTOB (uw2)' 'B = __MHTOB (A)' 'MHTOB A,B'
  36158. 'void __MMACHS (acc, sw1, '__MMACHS (C, A, B)' 'MMACHS A,B,C'
  36159. sw1)'
  36160. 'void __MMACHU (acc, uw1, '__MMACHU (C, A, B)' 'MMACHU A,B,C'
  36161. uw1)'
  36162. 'void __MMRDHS (acc, sw1, '__MMRDHS (C, A, B)' 'MMRDHS A,B,C'
  36163. sw1)'
  36164. 'void __MMRDHU (acc, uw1, '__MMRDHU (C, A, B)' 'MMRDHU A,B,C'
  36165. uw1)'
  36166. 'void __MMULHS (acc, sw1, '__MMULHS (C, A, B)' 'MMULHS A,B,C'
  36167. sw1)'
  36168. 'void __MMULHU (acc, uw1, '__MMULHU (C, A, B)' 'MMULHU A,B,C'
  36169. uw1)'
  36170. 'void __MMULXHS (acc, sw1, '__MMULXHS (C, A, B)' 'MMULXHS A,B,C'
  36171. sw1)'
  36172. 'void __MMULXHU (acc, uw1, '__MMULXHU (C, A, B)' 'MMULXHU A,B,C'
  36173. uw1)'
  36174. 'uw1 __MNOT (uw1)' 'B = __MNOT (A)' 'MNOT A,B'
  36175. 'uw1 __MOR (uw1, uw1)' 'C = __MOR (A, B)' 'MOR A,B,C'
  36176. 'uw1 __MPACKH (uh, uh)' 'C = __MPACKH (A, B)' 'MPACKH A,B,C'
  36177. 'sw2 __MQADDHSS (sw2, sw2)' 'C = __MQADDHSS (A, 'MQADDHSS
  36178. B)' A,B,C'
  36179. 'uw2 __MQADDHUS (uw2, uw2)' 'C = __MQADDHUS (A, 'MQADDHUS
  36180. B)' A,B,C'
  36181. 'void __MQCPXIS (acc, sw2, '__MQCPXIS (C, A, B)' 'MQCPXIS A,B,C'
  36182. sw2)'
  36183. 'void __MQCPXIU (acc, uw2, '__MQCPXIU (C, A, B)' 'MQCPXIU A,B,C'
  36184. uw2)'
  36185. 'void __MQCPXRS (acc, sw2, '__MQCPXRS (C, A, B)' 'MQCPXRS A,B,C'
  36186. sw2)'
  36187. 'void __MQCPXRU (acc, uw2, '__MQCPXRU (C, A, B)' 'MQCPXRU A,B,C'
  36188. uw2)'
  36189. 'sw2 __MQLCLRHS (sw2, sw2)' 'C = __MQLCLRHS (A, 'MQLCLRHS
  36190. B)' A,B,C'
  36191. 'sw2 __MQLMTHS (sw2, sw2)' 'C = __MQLMTHS (A, 'MQLMTHS A,B,C'
  36192. B)'
  36193. 'void __MQMACHS (acc, sw2, '__MQMACHS (C, A, B)' 'MQMACHS A,B,C'
  36194. sw2)'
  36195. 'void __MQMACHU (acc, uw2, '__MQMACHU (C, A, B)' 'MQMACHU A,B,C'
  36196. uw2)'
  36197. 'void __MQMACXHS (acc, sw2, '__MQMACXHS (C, A, 'MQMACXHS
  36198. sw2)' B)' A,B,C'
  36199. 'void __MQMULHS (acc, sw2, '__MQMULHS (C, A, B)' 'MQMULHS A,B,C'
  36200. sw2)'
  36201. 'void __MQMULHU (acc, uw2, '__MQMULHU (C, A, B)' 'MQMULHU A,B,C'
  36202. uw2)'
  36203. 'void __MQMULXHS (acc, sw2, '__MQMULXHS (C, A, 'MQMULXHS
  36204. sw2)' B)' A,B,C'
  36205. 'void __MQMULXHU (acc, uw2, '__MQMULXHU (C, A, 'MQMULXHU
  36206. uw2)' B)' A,B,C'
  36207. 'sw2 __MQSATHS (sw2, sw2)' 'C = __MQSATHS (A, 'MQSATHS A,B,C'
  36208. B)'
  36209. 'uw2 __MQSLLHI (uw2, int)' 'C = __MQSLLHI (A, 'MQSLLHI A,B,C'
  36210. B)'
  36211. 'sw2 __MQSRAHI (sw2, int)' 'C = __MQSRAHI (A, 'MQSRAHI A,B,C'
  36212. B)'
  36213. 'sw2 __MQSUBHSS (sw2, sw2)' 'C = __MQSUBHSS (A, 'MQSUBHSS
  36214. B)' A,B,C'
  36215. 'uw2 __MQSUBHUS (uw2, uw2)' 'C = __MQSUBHUS (A, 'MQSUBHUS
  36216. B)' A,B,C'
  36217. 'void __MQXMACHS (acc, sw2, '__MQXMACHS (C, A, 'MQXMACHS
  36218. sw2)' B)' A,B,C'
  36219. 'void __MQXMACXHS (acc, sw2, '__MQXMACXHS (C, A, 'MQXMACXHS
  36220. sw2)' B)' A,B,C'
  36221. 'uw1 __MRDACC (acc)' 'B = __MRDACC (A)' 'MRDACC A,B'
  36222. 'uw1 __MRDACCG (acc)' 'B = __MRDACCG (A)' 'MRDACCG A,B'
  36223. 'uw1 __MROTLI (uw1, const)' 'C = __MROTLI (A, B)' 'MROTLI A,#B,C'
  36224. 'uw1 __MROTRI (uw1, const)' 'C = __MROTRI (A, B)' 'MROTRI A,#B,C'
  36225. 'sw1 __MSATHS (sw1, sw1)' 'C = __MSATHS (A, B)' 'MSATHS A,B,C'
  36226. 'uw1 __MSATHU (uw1, uw1)' 'C = __MSATHU (A, B)' 'MSATHU A,B,C'
  36227. 'uw1 __MSLLHI (uw1, const)' 'C = __MSLLHI (A, B)' 'MSLLHI A,#B,C'
  36228. 'sw1 __MSRAHI (sw1, const)' 'C = __MSRAHI (A, B)' 'MSRAHI A,#B,C'
  36229. 'uw1 __MSRLHI (uw1, const)' 'C = __MSRLHI (A, B)' 'MSRLHI A,#B,C'
  36230. 'void __MSUBACCS (acc, acc)' '__MSUBACCS (B, A)' 'MSUBACCS A,B'
  36231. 'sw1 __MSUBHSS (sw1, sw1)' 'C = __MSUBHSS (A, 'MSUBHSS A,B,C'
  36232. B)'
  36233. 'uw1 __MSUBHUS (uw1, uw1)' 'C = __MSUBHUS (A, 'MSUBHUS A,B,C'
  36234. B)'
  36235. 'void __MTRAP (void)' '__MTRAP ()' 'MTRAP'
  36236. 'uw2 __MUNPACKH (uw1)' 'B = __MUNPACKH (A)' 'MUNPACKH A,B'
  36237. 'uw1 __MWCUT (uw2, uw1)' 'C = __MWCUT (A, B)' 'MWCUT A,B,C'
  36238. 'void __MWTACC (acc, uw1)' '__MWTACC (B, A)' 'MWTACC A,B'
  36239. 'void __MWTACCG (acc, uw1)' '__MWTACCG (B, A)' 'MWTACCG A,B'
  36240. 'uw1 __MXOR (uw1, uw1)' 'C = __MXOR (A, B)' 'MXOR A,B,C'
  36241. 
  36242. File: gcc.info, Node: Raw read/write Functions, Next: Other Built-in Functions, Prev: Directly-mapped Media Functions, Up: FR-V Built-in Functions
  36243. 6.60.14.4 Raw Read/Write Functions
  36244. ..................................
  36245. This sections describes built-in functions related to read and write
  36246. instructions to access memory. These functions generate 'membar'
  36247. instructions to flush the I/O load and stores where appropriate, as
  36248. described in Fujitsu's manual described above.
  36249. 'unsigned char __builtin_read8 (void *DATA)'
  36250. 'unsigned short __builtin_read16 (void *DATA)'
  36251. 'unsigned long __builtin_read32 (void *DATA)'
  36252. 'unsigned long long __builtin_read64 (void *DATA)'
  36253. 'void __builtin_write8 (void *DATA, unsigned char DATUM)'
  36254. 'void __builtin_write16 (void *DATA, unsigned short DATUM)'
  36255. 'void __builtin_write32 (void *DATA, unsigned long DATUM)'
  36256. 'void __builtin_write64 (void *DATA, unsigned long long DATUM)'
  36257. 
  36258. File: gcc.info, Node: Other Built-in Functions, Prev: Raw read/write Functions, Up: FR-V Built-in Functions
  36259. 6.60.14.5 Other Built-in Functions
  36260. ..................................
  36261. This section describes built-in functions that are not named after a
  36262. specific FR-V instruction.
  36263. 'sw2 __IACCreadll (iacc REG)'
  36264. Return the full 64-bit value of IACC0. The REG argument is
  36265. reserved for future expansion and must be 0.
  36266. 'sw1 __IACCreadl (iacc REG)'
  36267. Return the value of IACC0H if REG is 0 and IACC0L if REG is 1.
  36268. Other values of REG are rejected as invalid.
  36269. 'void __IACCsetll (iacc REG, sw2 X)'
  36270. Set the full 64-bit value of IACC0 to X. The REG argument is
  36271. reserved for future expansion and must be 0.
  36272. 'void __IACCsetl (iacc REG, sw1 X)'
  36273. Set IACC0H to X if REG is 0 and IACC0L to X if REG is 1. Other
  36274. values of REG are rejected as invalid.
  36275. 'void __data_prefetch0 (const void *X)'
  36276. Use the 'dcpl' instruction to load the contents of address X into
  36277. the data cache.
  36278. 'void __data_prefetch (const void *X)'
  36279. Use the 'nldub' instruction to load the contents of address X into
  36280. the data cache. The instruction is issued in slot I1.
  36281. 
  36282. File: gcc.info, Node: MIPS DSP Built-in Functions, Next: MIPS Paired-Single Support, Prev: FR-V Built-in Functions, Up: Target Builtins
  36283. 6.60.15 MIPS DSP Built-in Functions
  36284. -----------------------------------
  36285. The MIPS DSP Application-Specific Extension (ASE) includes new
  36286. instructions that are designed to improve the performance of DSP and
  36287. media applications. It provides instructions that operate on packed
  36288. 8-bit/16-bit integer data, Q7, Q15 and Q31 fractional data.
  36289. GCC supports MIPS DSP operations using both the generic vector
  36290. extensions (*note Vector Extensions::) and a collection of MIPS-specific
  36291. built-in functions. Both kinds of support are enabled by the '-mdsp'
  36292. command-line option.
  36293. Revision 2 of the ASE was introduced in the second half of 2006. This
  36294. revision adds extra instructions to the original ASE, but is otherwise
  36295. backwards-compatible with it. You can select revision 2 using the
  36296. command-line option '-mdspr2'; this option implies '-mdsp'.
  36297. The SCOUNT and POS bits of the DSP control register are global. The
  36298. WRDSP, EXTPDP, EXTPDPV and MTHLIP instructions modify the SCOUNT and POS
  36299. bits. During optimization, the compiler does not delete these
  36300. instructions and it does not delete calls to functions containing these
  36301. instructions.
  36302. At present, GCC only provides support for operations on 32-bit vectors.
  36303. The vector type associated with 8-bit integer data is usually called
  36304. 'v4i8', the vector type associated with Q7 is usually called 'v4q7', the
  36305. vector type associated with 16-bit integer data is usually called
  36306. 'v2i16', and the vector type associated with Q15 is usually called
  36307. 'v2q15'. They can be defined in C as follows:
  36308. typedef signed char v4i8 __attribute__ ((vector_size(4)));
  36309. typedef signed char v4q7 __attribute__ ((vector_size(4)));
  36310. typedef short v2i16 __attribute__ ((vector_size(4)));
  36311. typedef short v2q15 __attribute__ ((vector_size(4)));
  36312. 'v4i8', 'v4q7', 'v2i16' and 'v2q15' values are initialized in the same
  36313. way as aggregates. For example:
  36314. v4i8 a = {1, 2, 3, 4};
  36315. v4i8 b;
  36316. b = (v4i8) {5, 6, 7, 8};
  36317. v2q15 c = {0x0fcb, 0x3a75};
  36318. v2q15 d;
  36319. d = (v2q15) {0.1234 * 0x1.0p15, 0.4567 * 0x1.0p15};
  36320. _Note:_ The CPU's endianness determines the order in which values are
  36321. packed. On little-endian targets, the first value is the least
  36322. significant and the last value is the most significant. The opposite
  36323. order applies to big-endian targets. For example, the code above sets
  36324. the lowest byte of 'a' to '1' on little-endian targets and '4' on
  36325. big-endian targets.
  36326. _Note:_ Q7, Q15 and Q31 values must be initialized with their integer
  36327. representation. As shown in this example, the integer representation of
  36328. a Q7 value can be obtained by multiplying the fractional value by
  36329. '0x1.0p7'. The equivalent for Q15 values is to multiply by '0x1.0p15'.
  36330. The equivalent for Q31 values is to multiply by '0x1.0p31'.
  36331. The table below lists the 'v4i8' and 'v2q15' operations for which
  36332. hardware support exists. 'a' and 'b' are 'v4i8' values, and 'c' and 'd'
  36333. are 'v2q15' values.
  36334. C code MIPS instruction
  36335. 'a + b' 'addu.qb'
  36336. 'c + d' 'addq.ph'
  36337. 'a - b' 'subu.qb'
  36338. 'c - d' 'subq.ph'
  36339. The table below lists the 'v2i16' operation for which hardware support
  36340. exists for the DSP ASE REV 2. 'e' and 'f' are 'v2i16' values.
  36341. C code MIPS instruction
  36342. 'e * f' 'mul.ph'
  36343. It is easier to describe the DSP built-in functions if we first define
  36344. the following types:
  36345. typedef int q31;
  36346. typedef int i32;
  36347. typedef unsigned int ui32;
  36348. typedef long long a64;
  36349. 'q31' and 'i32' are actually the same as 'int', but we use 'q31' to
  36350. indicate a Q31 fractional value and 'i32' to indicate a 32-bit integer
  36351. value. Similarly, 'a64' is the same as 'long long', but we use 'a64' to
  36352. indicate values that are placed in one of the four DSP accumulators
  36353. ('$ac0', '$ac1', '$ac2' or '$ac3').
  36354. Also, some built-in functions prefer or require immediate numbers as
  36355. parameters, because the corresponding DSP instructions accept both
  36356. immediate numbers and register operands, or accept immediate numbers
  36357. only. The immediate parameters are listed as follows.
  36358. imm0_3: 0 to 3.
  36359. imm0_7: 0 to 7.
  36360. imm0_15: 0 to 15.
  36361. imm0_31: 0 to 31.
  36362. imm0_63: 0 to 63.
  36363. imm0_255: 0 to 255.
  36364. imm_n32_31: -32 to 31.
  36365. imm_n512_511: -512 to 511.
  36366. The following built-in functions map directly to a particular MIPS DSP
  36367. instruction. Please refer to the architecture specification for details
  36368. on what each instruction does.
  36369. v2q15 __builtin_mips_addq_ph (v2q15, v2q15)
  36370. v2q15 __builtin_mips_addq_s_ph (v2q15, v2q15)
  36371. q31 __builtin_mips_addq_s_w (q31, q31)
  36372. v4i8 __builtin_mips_addu_qb (v4i8, v4i8)
  36373. v4i8 __builtin_mips_addu_s_qb (v4i8, v4i8)
  36374. v2q15 __builtin_mips_subq_ph (v2q15, v2q15)
  36375. v2q15 __builtin_mips_subq_s_ph (v2q15, v2q15)
  36376. q31 __builtin_mips_subq_s_w (q31, q31)
  36377. v4i8 __builtin_mips_subu_qb (v4i8, v4i8)
  36378. v4i8 __builtin_mips_subu_s_qb (v4i8, v4i8)
  36379. i32 __builtin_mips_addsc (i32, i32)
  36380. i32 __builtin_mips_addwc (i32, i32)
  36381. i32 __builtin_mips_modsub (i32, i32)
  36382. i32 __builtin_mips_raddu_w_qb (v4i8)
  36383. v2q15 __builtin_mips_absq_s_ph (v2q15)
  36384. q31 __builtin_mips_absq_s_w (q31)
  36385. v4i8 __builtin_mips_precrq_qb_ph (v2q15, v2q15)
  36386. v2q15 __builtin_mips_precrq_ph_w (q31, q31)
  36387. v2q15 __builtin_mips_precrq_rs_ph_w (q31, q31)
  36388. v4i8 __builtin_mips_precrqu_s_qb_ph (v2q15, v2q15)
  36389. q31 __builtin_mips_preceq_w_phl (v2q15)
  36390. q31 __builtin_mips_preceq_w_phr (v2q15)
  36391. v2q15 __builtin_mips_precequ_ph_qbl (v4i8)
  36392. v2q15 __builtin_mips_precequ_ph_qbr (v4i8)
  36393. v2q15 __builtin_mips_precequ_ph_qbla (v4i8)
  36394. v2q15 __builtin_mips_precequ_ph_qbra (v4i8)
  36395. v2q15 __builtin_mips_preceu_ph_qbl (v4i8)
  36396. v2q15 __builtin_mips_preceu_ph_qbr (v4i8)
  36397. v2q15 __builtin_mips_preceu_ph_qbla (v4i8)
  36398. v2q15 __builtin_mips_preceu_ph_qbra (v4i8)
  36399. v4i8 __builtin_mips_shll_qb (v4i8, imm0_7)
  36400. v4i8 __builtin_mips_shll_qb (v4i8, i32)
  36401. v2q15 __builtin_mips_shll_ph (v2q15, imm0_15)
  36402. v2q15 __builtin_mips_shll_ph (v2q15, i32)
  36403. v2q15 __builtin_mips_shll_s_ph (v2q15, imm0_15)
  36404. v2q15 __builtin_mips_shll_s_ph (v2q15, i32)
  36405. q31 __builtin_mips_shll_s_w (q31, imm0_31)
  36406. q31 __builtin_mips_shll_s_w (q31, i32)
  36407. v4i8 __builtin_mips_shrl_qb (v4i8, imm0_7)
  36408. v4i8 __builtin_mips_shrl_qb (v4i8, i32)
  36409. v2q15 __builtin_mips_shra_ph (v2q15, imm0_15)
  36410. v2q15 __builtin_mips_shra_ph (v2q15, i32)
  36411. v2q15 __builtin_mips_shra_r_ph (v2q15, imm0_15)
  36412. v2q15 __builtin_mips_shra_r_ph (v2q15, i32)
  36413. q31 __builtin_mips_shra_r_w (q31, imm0_31)
  36414. q31 __builtin_mips_shra_r_w (q31, i32)
  36415. v2q15 __builtin_mips_muleu_s_ph_qbl (v4i8, v2q15)
  36416. v2q15 __builtin_mips_muleu_s_ph_qbr (v4i8, v2q15)
  36417. v2q15 __builtin_mips_mulq_rs_ph (v2q15, v2q15)
  36418. q31 __builtin_mips_muleq_s_w_phl (v2q15, v2q15)
  36419. q31 __builtin_mips_muleq_s_w_phr (v2q15, v2q15)
  36420. a64 __builtin_mips_dpau_h_qbl (a64, v4i8, v4i8)
  36421. a64 __builtin_mips_dpau_h_qbr (a64, v4i8, v4i8)
  36422. a64 __builtin_mips_dpsu_h_qbl (a64, v4i8, v4i8)
  36423. a64 __builtin_mips_dpsu_h_qbr (a64, v4i8, v4i8)
  36424. a64 __builtin_mips_dpaq_s_w_ph (a64, v2q15, v2q15)
  36425. a64 __builtin_mips_dpaq_sa_l_w (a64, q31, q31)
  36426. a64 __builtin_mips_dpsq_s_w_ph (a64, v2q15, v2q15)
  36427. a64 __builtin_mips_dpsq_sa_l_w (a64, q31, q31)
  36428. a64 __builtin_mips_mulsaq_s_w_ph (a64, v2q15, v2q15)
  36429. a64 __builtin_mips_maq_s_w_phl (a64, v2q15, v2q15)
  36430. a64 __builtin_mips_maq_s_w_phr (a64, v2q15, v2q15)
  36431. a64 __builtin_mips_maq_sa_w_phl (a64, v2q15, v2q15)
  36432. a64 __builtin_mips_maq_sa_w_phr (a64, v2q15, v2q15)
  36433. i32 __builtin_mips_bitrev (i32)
  36434. i32 __builtin_mips_insv (i32, i32)
  36435. v4i8 __builtin_mips_repl_qb (imm0_255)
  36436. v4i8 __builtin_mips_repl_qb (i32)
  36437. v2q15 __builtin_mips_repl_ph (imm_n512_511)
  36438. v2q15 __builtin_mips_repl_ph (i32)
  36439. void __builtin_mips_cmpu_eq_qb (v4i8, v4i8)
  36440. void __builtin_mips_cmpu_lt_qb (v4i8, v4i8)
  36441. void __builtin_mips_cmpu_le_qb (v4i8, v4i8)
  36442. i32 __builtin_mips_cmpgu_eq_qb (v4i8, v4i8)
  36443. i32 __builtin_mips_cmpgu_lt_qb (v4i8, v4i8)
  36444. i32 __builtin_mips_cmpgu_le_qb (v4i8, v4i8)
  36445. void __builtin_mips_cmp_eq_ph (v2q15, v2q15)
  36446. void __builtin_mips_cmp_lt_ph (v2q15, v2q15)
  36447. void __builtin_mips_cmp_le_ph (v2q15, v2q15)
  36448. v4i8 __builtin_mips_pick_qb (v4i8, v4i8)
  36449. v2q15 __builtin_mips_pick_ph (v2q15, v2q15)
  36450. v2q15 __builtin_mips_packrl_ph (v2q15, v2q15)
  36451. i32 __builtin_mips_extr_w (a64, imm0_31)
  36452. i32 __builtin_mips_extr_w (a64, i32)
  36453. i32 __builtin_mips_extr_r_w (a64, imm0_31)
  36454. i32 __builtin_mips_extr_s_h (a64, i32)
  36455. i32 __builtin_mips_extr_rs_w (a64, imm0_31)
  36456. i32 __builtin_mips_extr_rs_w (a64, i32)
  36457. i32 __builtin_mips_extr_s_h (a64, imm0_31)
  36458. i32 __builtin_mips_extr_r_w (a64, i32)
  36459. i32 __builtin_mips_extp (a64, imm0_31)
  36460. i32 __builtin_mips_extp (a64, i32)
  36461. i32 __builtin_mips_extpdp (a64, imm0_31)
  36462. i32 __builtin_mips_extpdp (a64, i32)
  36463. a64 __builtin_mips_shilo (a64, imm_n32_31)
  36464. a64 __builtin_mips_shilo (a64, i32)
  36465. a64 __builtin_mips_mthlip (a64, i32)
  36466. void __builtin_mips_wrdsp (i32, imm0_63)
  36467. i32 __builtin_mips_rddsp (imm0_63)
  36468. i32 __builtin_mips_lbux (void *, i32)
  36469. i32 __builtin_mips_lhx (void *, i32)
  36470. i32 __builtin_mips_lwx (void *, i32)
  36471. a64 __builtin_mips_ldx (void *, i32) [MIPS64 only]
  36472. i32 __builtin_mips_bposge32 (void)
  36473. a64 __builtin_mips_madd (a64, i32, i32);
  36474. a64 __builtin_mips_maddu (a64, ui32, ui32);
  36475. a64 __builtin_mips_msub (a64, i32, i32);
  36476. a64 __builtin_mips_msubu (a64, ui32, ui32);
  36477. a64 __builtin_mips_mult (i32, i32);
  36478. a64 __builtin_mips_multu (ui32, ui32);
  36479. The following built-in functions map directly to a particular MIPS DSP
  36480. REV 2 instruction. Please refer to the architecture specification for
  36481. details on what each instruction does.
  36482. v4q7 __builtin_mips_absq_s_qb (v4q7);
  36483. v2i16 __builtin_mips_addu_ph (v2i16, v2i16);
  36484. v2i16 __builtin_mips_addu_s_ph (v2i16, v2i16);
  36485. v4i8 __builtin_mips_adduh_qb (v4i8, v4i8);
  36486. v4i8 __builtin_mips_adduh_r_qb (v4i8, v4i8);
  36487. i32 __builtin_mips_append (i32, i32, imm0_31);
  36488. i32 __builtin_mips_balign (i32, i32, imm0_3);
  36489. i32 __builtin_mips_cmpgdu_eq_qb (v4i8, v4i8);
  36490. i32 __builtin_mips_cmpgdu_lt_qb (v4i8, v4i8);
  36491. i32 __builtin_mips_cmpgdu_le_qb (v4i8, v4i8);
  36492. a64 __builtin_mips_dpa_w_ph (a64, v2i16, v2i16);
  36493. a64 __builtin_mips_dps_w_ph (a64, v2i16, v2i16);
  36494. v2i16 __builtin_mips_mul_ph (v2i16, v2i16);
  36495. v2i16 __builtin_mips_mul_s_ph (v2i16, v2i16);
  36496. q31 __builtin_mips_mulq_rs_w (q31, q31);
  36497. v2q15 __builtin_mips_mulq_s_ph (v2q15, v2q15);
  36498. q31 __builtin_mips_mulq_s_w (q31, q31);
  36499. a64 __builtin_mips_mulsa_w_ph (a64, v2i16, v2i16);
  36500. v4i8 __builtin_mips_precr_qb_ph (v2i16, v2i16);
  36501. v2i16 __builtin_mips_precr_sra_ph_w (i32, i32, imm0_31);
  36502. v2i16 __builtin_mips_precr_sra_r_ph_w (i32, i32, imm0_31);
  36503. i32 __builtin_mips_prepend (i32, i32, imm0_31);
  36504. v4i8 __builtin_mips_shra_qb (v4i8, imm0_7);
  36505. v4i8 __builtin_mips_shra_r_qb (v4i8, imm0_7);
  36506. v4i8 __builtin_mips_shra_qb (v4i8, i32);
  36507. v4i8 __builtin_mips_shra_r_qb (v4i8, i32);
  36508. v2i16 __builtin_mips_shrl_ph (v2i16, imm0_15);
  36509. v2i16 __builtin_mips_shrl_ph (v2i16, i32);
  36510. v2i16 __builtin_mips_subu_ph (v2i16, v2i16);
  36511. v2i16 __builtin_mips_subu_s_ph (v2i16, v2i16);
  36512. v4i8 __builtin_mips_subuh_qb (v4i8, v4i8);
  36513. v4i8 __builtin_mips_subuh_r_qb (v4i8, v4i8);
  36514. v2q15 __builtin_mips_addqh_ph (v2q15, v2q15);
  36515. v2q15 __builtin_mips_addqh_r_ph (v2q15, v2q15);
  36516. q31 __builtin_mips_addqh_w (q31, q31);
  36517. q31 __builtin_mips_addqh_r_w (q31, q31);
  36518. v2q15 __builtin_mips_subqh_ph (v2q15, v2q15);
  36519. v2q15 __builtin_mips_subqh_r_ph (v2q15, v2q15);
  36520. q31 __builtin_mips_subqh_w (q31, q31);
  36521. q31 __builtin_mips_subqh_r_w (q31, q31);
  36522. a64 __builtin_mips_dpax_w_ph (a64, v2i16, v2i16);
  36523. a64 __builtin_mips_dpsx_w_ph (a64, v2i16, v2i16);
  36524. a64 __builtin_mips_dpaqx_s_w_ph (a64, v2q15, v2q15);
  36525. a64 __builtin_mips_dpaqx_sa_w_ph (a64, v2q15, v2q15);
  36526. a64 __builtin_mips_dpsqx_s_w_ph (a64, v2q15, v2q15);
  36527. a64 __builtin_mips_dpsqx_sa_w_ph (a64, v2q15, v2q15);
  36528. 
  36529. File: gcc.info, Node: MIPS Paired-Single Support, Next: MIPS Loongson Built-in Functions, Prev: MIPS DSP Built-in Functions, Up: Target Builtins
  36530. 6.60.16 MIPS Paired-Single Support
  36531. ----------------------------------
  36532. The MIPS64 architecture includes a number of instructions that operate
  36533. on pairs of single-precision floating-point values. Each pair is packed
  36534. into a 64-bit floating-point register, with one element being designated
  36535. the "upper half" and the other being designated the "lower half".
  36536. GCC supports paired-single operations using both the generic vector
  36537. extensions (*note Vector Extensions::) and a collection of MIPS-specific
  36538. built-in functions. Both kinds of support are enabled by the
  36539. '-mpaired-single' command-line option.
  36540. The vector type associated with paired-single values is usually called
  36541. 'v2sf'. It can be defined in C as follows:
  36542. typedef float v2sf __attribute__ ((vector_size (8)));
  36543. 'v2sf' values are initialized in the same way as aggregates. For
  36544. example:
  36545. v2sf a = {1.5, 9.1};
  36546. v2sf b;
  36547. float e, f;
  36548. b = (v2sf) {e, f};
  36549. _Note:_ The CPU's endianness determines which value is stored in the
  36550. upper half of a register and which value is stored in the lower half.
  36551. On little-endian targets, the first value is the lower one and the
  36552. second value is the upper one. The opposite order applies to big-endian
  36553. targets. For example, the code above sets the lower half of 'a' to
  36554. '1.5' on little-endian targets and '9.1' on big-endian targets.
  36555. 
  36556. File: gcc.info, Node: MIPS Loongson Built-in Functions, Next: MIPS SIMD Architecture (MSA) Support, Prev: MIPS Paired-Single Support, Up: Target Builtins
  36557. 6.60.17 MIPS Loongson Built-in Functions
  36558. ----------------------------------------
  36559. GCC provides intrinsics to access the SIMD instructions provided by the
  36560. ST Microelectronics Loongson-2E and -2F processors. These intrinsics,
  36561. available after inclusion of the 'loongson.h' header file, operate on
  36562. the following 64-bit vector types:
  36563. * 'uint8x8_t', a vector of eight unsigned 8-bit integers;
  36564. * 'uint16x4_t', a vector of four unsigned 16-bit integers;
  36565. * 'uint32x2_t', a vector of two unsigned 32-bit integers;
  36566. * 'int8x8_t', a vector of eight signed 8-bit integers;
  36567. * 'int16x4_t', a vector of four signed 16-bit integers;
  36568. * 'int32x2_t', a vector of two signed 32-bit integers.
  36569. The intrinsics provided are listed below; each is named after the
  36570. machine instruction to which it corresponds, with suffixes added as
  36571. appropriate to distinguish intrinsics that expand to the same machine
  36572. instruction yet have different argument types. Refer to the
  36573. architecture documentation for a description of the functionality of
  36574. each instruction.
  36575. int16x4_t packsswh (int32x2_t s, int32x2_t t);
  36576. int8x8_t packsshb (int16x4_t s, int16x4_t t);
  36577. uint8x8_t packushb (uint16x4_t s, uint16x4_t t);
  36578. uint32x2_t paddw_u (uint32x2_t s, uint32x2_t t);
  36579. uint16x4_t paddh_u (uint16x4_t s, uint16x4_t t);
  36580. uint8x8_t paddb_u (uint8x8_t s, uint8x8_t t);
  36581. int32x2_t paddw_s (int32x2_t s, int32x2_t t);
  36582. int16x4_t paddh_s (int16x4_t s, int16x4_t t);
  36583. int8x8_t paddb_s (int8x8_t s, int8x8_t t);
  36584. uint64_t paddd_u (uint64_t s, uint64_t t);
  36585. int64_t paddd_s (int64_t s, int64_t t);
  36586. int16x4_t paddsh (int16x4_t s, int16x4_t t);
  36587. int8x8_t paddsb (int8x8_t s, int8x8_t t);
  36588. uint16x4_t paddush (uint16x4_t s, uint16x4_t t);
  36589. uint8x8_t paddusb (uint8x8_t s, uint8x8_t t);
  36590. uint64_t pandn_ud (uint64_t s, uint64_t t);
  36591. uint32x2_t pandn_uw (uint32x2_t s, uint32x2_t t);
  36592. uint16x4_t pandn_uh (uint16x4_t s, uint16x4_t t);
  36593. uint8x8_t pandn_ub (uint8x8_t s, uint8x8_t t);
  36594. int64_t pandn_sd (int64_t s, int64_t t);
  36595. int32x2_t pandn_sw (int32x2_t s, int32x2_t t);
  36596. int16x4_t pandn_sh (int16x4_t s, int16x4_t t);
  36597. int8x8_t pandn_sb (int8x8_t s, int8x8_t t);
  36598. uint16x4_t pavgh (uint16x4_t s, uint16x4_t t);
  36599. uint8x8_t pavgb (uint8x8_t s, uint8x8_t t);
  36600. uint32x2_t pcmpeqw_u (uint32x2_t s, uint32x2_t t);
  36601. uint16x4_t pcmpeqh_u (uint16x4_t s, uint16x4_t t);
  36602. uint8x8_t pcmpeqb_u (uint8x8_t s, uint8x8_t t);
  36603. int32x2_t pcmpeqw_s (int32x2_t s, int32x2_t t);
  36604. int16x4_t pcmpeqh_s (int16x4_t s, int16x4_t t);
  36605. int8x8_t pcmpeqb_s (int8x8_t s, int8x8_t t);
  36606. uint32x2_t pcmpgtw_u (uint32x2_t s, uint32x2_t t);
  36607. uint16x4_t pcmpgth_u (uint16x4_t s, uint16x4_t t);
  36608. uint8x8_t pcmpgtb_u (uint8x8_t s, uint8x8_t t);
  36609. int32x2_t pcmpgtw_s (int32x2_t s, int32x2_t t);
  36610. int16x4_t pcmpgth_s (int16x4_t s, int16x4_t t);
  36611. int8x8_t pcmpgtb_s (int8x8_t s, int8x8_t t);
  36612. uint16x4_t pextrh_u (uint16x4_t s, int field);
  36613. int16x4_t pextrh_s (int16x4_t s, int field);
  36614. uint16x4_t pinsrh_0_u (uint16x4_t s, uint16x4_t t);
  36615. uint16x4_t pinsrh_1_u (uint16x4_t s, uint16x4_t t);
  36616. uint16x4_t pinsrh_2_u (uint16x4_t s, uint16x4_t t);
  36617. uint16x4_t pinsrh_3_u (uint16x4_t s, uint16x4_t t);
  36618. int16x4_t pinsrh_0_s (int16x4_t s, int16x4_t t);
  36619. int16x4_t pinsrh_1_s (int16x4_t s, int16x4_t t);
  36620. int16x4_t pinsrh_2_s (int16x4_t s, int16x4_t t);
  36621. int16x4_t pinsrh_3_s (int16x4_t s, int16x4_t t);
  36622. int32x2_t pmaddhw (int16x4_t s, int16x4_t t);
  36623. int16x4_t pmaxsh (int16x4_t s, int16x4_t t);
  36624. uint8x8_t pmaxub (uint8x8_t s, uint8x8_t t);
  36625. int16x4_t pminsh (int16x4_t s, int16x4_t t);
  36626. uint8x8_t pminub (uint8x8_t s, uint8x8_t t);
  36627. uint8x8_t pmovmskb_u (uint8x8_t s);
  36628. int8x8_t pmovmskb_s (int8x8_t s);
  36629. uint16x4_t pmulhuh (uint16x4_t s, uint16x4_t t);
  36630. int16x4_t pmulhh (int16x4_t s, int16x4_t t);
  36631. int16x4_t pmullh (int16x4_t s, int16x4_t t);
  36632. int64_t pmuluw (uint32x2_t s, uint32x2_t t);
  36633. uint8x8_t pasubub (uint8x8_t s, uint8x8_t t);
  36634. uint16x4_t biadd (uint8x8_t s);
  36635. uint16x4_t psadbh (uint8x8_t s, uint8x8_t t);
  36636. uint16x4_t pshufh_u (uint16x4_t dest, uint16x4_t s, uint8_t order);
  36637. int16x4_t pshufh_s (int16x4_t dest, int16x4_t s, uint8_t order);
  36638. uint16x4_t psllh_u (uint16x4_t s, uint8_t amount);
  36639. int16x4_t psllh_s (int16x4_t s, uint8_t amount);
  36640. uint32x2_t psllw_u (uint32x2_t s, uint8_t amount);
  36641. int32x2_t psllw_s (int32x2_t s, uint8_t amount);
  36642. uint16x4_t psrlh_u (uint16x4_t s, uint8_t amount);
  36643. int16x4_t psrlh_s (int16x4_t s, uint8_t amount);
  36644. uint32x2_t psrlw_u (uint32x2_t s, uint8_t amount);
  36645. int32x2_t psrlw_s (int32x2_t s, uint8_t amount);
  36646. uint16x4_t psrah_u (uint16x4_t s, uint8_t amount);
  36647. int16x4_t psrah_s (int16x4_t s, uint8_t amount);
  36648. uint32x2_t psraw_u (uint32x2_t s, uint8_t amount);
  36649. int32x2_t psraw_s (int32x2_t s, uint8_t amount);
  36650. uint32x2_t psubw_u (uint32x2_t s, uint32x2_t t);
  36651. uint16x4_t psubh_u (uint16x4_t s, uint16x4_t t);
  36652. uint8x8_t psubb_u (uint8x8_t s, uint8x8_t t);
  36653. int32x2_t psubw_s (int32x2_t s, int32x2_t t);
  36654. int16x4_t psubh_s (int16x4_t s, int16x4_t t);
  36655. int8x8_t psubb_s (int8x8_t s, int8x8_t t);
  36656. uint64_t psubd_u (uint64_t s, uint64_t t);
  36657. int64_t psubd_s (int64_t s, int64_t t);
  36658. int16x4_t psubsh (int16x4_t s, int16x4_t t);
  36659. int8x8_t psubsb (int8x8_t s, int8x8_t t);
  36660. uint16x4_t psubush (uint16x4_t s, uint16x4_t t);
  36661. uint8x8_t psubusb (uint8x8_t s, uint8x8_t t);
  36662. uint32x2_t punpckhwd_u (uint32x2_t s, uint32x2_t t);
  36663. uint16x4_t punpckhhw_u (uint16x4_t s, uint16x4_t t);
  36664. uint8x8_t punpckhbh_u (uint8x8_t s, uint8x8_t t);
  36665. int32x2_t punpckhwd_s (int32x2_t s, int32x2_t t);
  36666. int16x4_t punpckhhw_s (int16x4_t s, int16x4_t t);
  36667. int8x8_t punpckhbh_s (int8x8_t s, int8x8_t t);
  36668. uint32x2_t punpcklwd_u (uint32x2_t s, uint32x2_t t);
  36669. uint16x4_t punpcklhw_u (uint16x4_t s, uint16x4_t t);
  36670. uint8x8_t punpcklbh_u (uint8x8_t s, uint8x8_t t);
  36671. int32x2_t punpcklwd_s (int32x2_t s, int32x2_t t);
  36672. int16x4_t punpcklhw_s (int16x4_t s, int16x4_t t);
  36673. int8x8_t punpcklbh_s (int8x8_t s, int8x8_t t);
  36674. * Menu:
  36675. * Paired-Single Arithmetic::
  36676. * Paired-Single Built-in Functions::
  36677. * MIPS-3D Built-in Functions::
  36678. 
  36679. File: gcc.info, Node: Paired-Single Arithmetic, Next: Paired-Single Built-in Functions, Up: MIPS Loongson Built-in Functions
  36680. 6.60.17.1 Paired-Single Arithmetic
  36681. ..................................
  36682. The table below lists the 'v2sf' operations for which hardware support
  36683. exists. 'a', 'b' and 'c' are 'v2sf' values and 'x' is an integral
  36684. value.
  36685. C code MIPS instruction
  36686. 'a + b' 'add.ps'
  36687. 'a - b' 'sub.ps'
  36688. '-a' 'neg.ps'
  36689. 'a * b' 'mul.ps'
  36690. 'a * b + c' 'madd.ps'
  36691. 'a * b - c' 'msub.ps'
  36692. '-(a * b + c)' 'nmadd.ps'
  36693. '-(a * b - c)' 'nmsub.ps'
  36694. 'x ? a : b' 'movn.ps'/'movz.ps'
  36695. Note that the multiply-accumulate instructions can be disabled using
  36696. the command-line option '-mno-fused-madd'.
  36697. 
  36698. File: gcc.info, Node: Paired-Single Built-in Functions, Next: MIPS-3D Built-in Functions, Prev: Paired-Single Arithmetic, Up: MIPS Loongson Built-in Functions
  36699. 6.60.17.2 Paired-Single Built-in Functions
  36700. ..........................................
  36701. The following paired-single functions map directly to a particular MIPS
  36702. instruction. Please refer to the architecture specification for details
  36703. on what each instruction does.
  36704. 'v2sf __builtin_mips_pll_ps (v2sf, v2sf)'
  36705. Pair lower lower ('pll.ps').
  36706. 'v2sf __builtin_mips_pul_ps (v2sf, v2sf)'
  36707. Pair upper lower ('pul.ps').
  36708. 'v2sf __builtin_mips_plu_ps (v2sf, v2sf)'
  36709. Pair lower upper ('plu.ps').
  36710. 'v2sf __builtin_mips_puu_ps (v2sf, v2sf)'
  36711. Pair upper upper ('puu.ps').
  36712. 'v2sf __builtin_mips_cvt_ps_s (float, float)'
  36713. Convert pair to paired single ('cvt.ps.s').
  36714. 'float __builtin_mips_cvt_s_pl (v2sf)'
  36715. Convert pair lower to single ('cvt.s.pl').
  36716. 'float __builtin_mips_cvt_s_pu (v2sf)'
  36717. Convert pair upper to single ('cvt.s.pu').
  36718. 'v2sf __builtin_mips_abs_ps (v2sf)'
  36719. Absolute value ('abs.ps').
  36720. 'v2sf __builtin_mips_alnv_ps (v2sf, v2sf, int)'
  36721. Align variable ('alnv.ps').
  36722. _Note:_ The value of the third parameter must be 0 or 4 modulo 8,
  36723. otherwise the result is unpredictable. Please read the instruction
  36724. description for details.
  36725. The following multi-instruction functions are also available. In each
  36726. case, COND can be any of the 16 floating-point conditions: 'f', 'un',
  36727. 'eq', 'ueq', 'olt', 'ult', 'ole', 'ule', 'sf', 'ngle', 'seq', 'ngl',
  36728. 'lt', 'nge', 'le' or 'ngt'.
  36729. 'v2sf __builtin_mips_movt_c_COND_ps (v2sf A, v2sf B, v2sf C, v2sf D)'
  36730. 'v2sf __builtin_mips_movf_c_COND_ps (v2sf A, v2sf B, v2sf C, v2sf D)'
  36731. Conditional move based on floating-point comparison ('c.COND.ps',
  36732. 'movt.ps'/'movf.ps').
  36733. The 'movt' functions return the value X computed by:
  36734. c.COND.ps CC,A,B
  36735. mov.ps X,C
  36736. movt.ps X,D,CC
  36737. The 'movf' functions are similar but use 'movf.ps' instead of
  36738. 'movt.ps'.
  36739. 'int __builtin_mips_upper_c_COND_ps (v2sf A, v2sf B)'
  36740. 'int __builtin_mips_lower_c_COND_ps (v2sf A, v2sf B)'
  36741. Comparison of two paired-single values ('c.COND.ps',
  36742. 'bc1t'/'bc1f').
  36743. These functions compare A and B using 'c.COND.ps' and return either
  36744. the upper or lower half of the result. For example:
  36745. v2sf a, b;
  36746. if (__builtin_mips_upper_c_eq_ps (a, b))
  36747. upper_halves_are_equal ();
  36748. else
  36749. upper_halves_are_unequal ();
  36750. if (__builtin_mips_lower_c_eq_ps (a, b))
  36751. lower_halves_are_equal ();
  36752. else
  36753. lower_halves_are_unequal ();
  36754. 
  36755. File: gcc.info, Node: MIPS-3D Built-in Functions, Prev: Paired-Single Built-in Functions, Up: MIPS Loongson Built-in Functions
  36756. 6.60.17.3 MIPS-3D Built-in Functions
  36757. ....................................
  36758. The MIPS-3D Application-Specific Extension (ASE) includes additional
  36759. paired-single instructions that are designed to improve the performance
  36760. of 3D graphics operations. Support for these instructions is controlled
  36761. by the '-mips3d' command-line option.
  36762. The functions listed below map directly to a particular MIPS-3D
  36763. instruction. Please refer to the architecture specification for more
  36764. details on what each instruction does.
  36765. 'v2sf __builtin_mips_addr_ps (v2sf, v2sf)'
  36766. Reduction add ('addr.ps').
  36767. 'v2sf __builtin_mips_mulr_ps (v2sf, v2sf)'
  36768. Reduction multiply ('mulr.ps').
  36769. 'v2sf __builtin_mips_cvt_pw_ps (v2sf)'
  36770. Convert paired single to paired word ('cvt.pw.ps').
  36771. 'v2sf __builtin_mips_cvt_ps_pw (v2sf)'
  36772. Convert paired word to paired single ('cvt.ps.pw').
  36773. 'float __builtin_mips_recip1_s (float)'
  36774. 'double __builtin_mips_recip1_d (double)'
  36775. 'v2sf __builtin_mips_recip1_ps (v2sf)'
  36776. Reduced-precision reciprocal (sequence step 1) ('recip1.FMT').
  36777. 'float __builtin_mips_recip2_s (float, float)'
  36778. 'double __builtin_mips_recip2_d (double, double)'
  36779. 'v2sf __builtin_mips_recip2_ps (v2sf, v2sf)'
  36780. Reduced-precision reciprocal (sequence step 2) ('recip2.FMT').
  36781. 'float __builtin_mips_rsqrt1_s (float)'
  36782. 'double __builtin_mips_rsqrt1_d (double)'
  36783. 'v2sf __builtin_mips_rsqrt1_ps (v2sf)'
  36784. Reduced-precision reciprocal square root (sequence step 1)
  36785. ('rsqrt1.FMT').
  36786. 'float __builtin_mips_rsqrt2_s (float, float)'
  36787. 'double __builtin_mips_rsqrt2_d (double, double)'
  36788. 'v2sf __builtin_mips_rsqrt2_ps (v2sf, v2sf)'
  36789. Reduced-precision reciprocal square root (sequence step 2)
  36790. ('rsqrt2.FMT').
  36791. The following multi-instruction functions are also available. In each
  36792. case, COND can be any of the 16 floating-point conditions: 'f', 'un',
  36793. 'eq', 'ueq', 'olt', 'ult', 'ole', 'ule', 'sf', 'ngle', 'seq', 'ngl',
  36794. 'lt', 'nge', 'le' or 'ngt'.
  36795. 'int __builtin_mips_cabs_COND_s (float A, float B)'
  36796. 'int __builtin_mips_cabs_COND_d (double A, double B)'
  36797. Absolute comparison of two scalar values ('cabs.COND.FMT',
  36798. 'bc1t'/'bc1f').
  36799. These functions compare A and B using 'cabs.COND.s' or
  36800. 'cabs.COND.d' and return the result as a boolean value. For
  36801. example:
  36802. float a, b;
  36803. if (__builtin_mips_cabs_eq_s (a, b))
  36804. true ();
  36805. else
  36806. false ();
  36807. 'int __builtin_mips_upper_cabs_COND_ps (v2sf A, v2sf B)'
  36808. 'int __builtin_mips_lower_cabs_COND_ps (v2sf A, v2sf B)'
  36809. Absolute comparison of two paired-single values ('cabs.COND.ps',
  36810. 'bc1t'/'bc1f').
  36811. These functions compare A and B using 'cabs.COND.ps' and return
  36812. either the upper or lower half of the result. For example:
  36813. v2sf a, b;
  36814. if (__builtin_mips_upper_cabs_eq_ps (a, b))
  36815. upper_halves_are_equal ();
  36816. else
  36817. upper_halves_are_unequal ();
  36818. if (__builtin_mips_lower_cabs_eq_ps (a, b))
  36819. lower_halves_are_equal ();
  36820. else
  36821. lower_halves_are_unequal ();
  36822. 'v2sf __builtin_mips_movt_cabs_COND_ps (v2sf A, v2sf B, v2sf C, v2sf D)'
  36823. 'v2sf __builtin_mips_movf_cabs_COND_ps (v2sf A, v2sf B, v2sf C, v2sf D)'
  36824. Conditional move based on absolute comparison ('cabs.COND.ps',
  36825. 'movt.ps'/'movf.ps').
  36826. The 'movt' functions return the value X computed by:
  36827. cabs.COND.ps CC,A,B
  36828. mov.ps X,C
  36829. movt.ps X,D,CC
  36830. The 'movf' functions are similar but use 'movf.ps' instead of
  36831. 'movt.ps'.
  36832. 'int __builtin_mips_any_c_COND_ps (v2sf A, v2sf B)'
  36833. 'int __builtin_mips_all_c_COND_ps (v2sf A, v2sf B)'
  36834. 'int __builtin_mips_any_cabs_COND_ps (v2sf A, v2sf B)'
  36835. 'int __builtin_mips_all_cabs_COND_ps (v2sf A, v2sf B)'
  36836. Comparison of two paired-single values ('c.COND.ps'/'cabs.COND.ps',
  36837. 'bc1any2t'/'bc1any2f').
  36838. These functions compare A and B using 'c.COND.ps' or
  36839. 'cabs.COND.ps'. The 'any' forms return 'true' if either result is
  36840. 'true' and the 'all' forms return 'true' if both results are
  36841. 'true'. For example:
  36842. v2sf a, b;
  36843. if (__builtin_mips_any_c_eq_ps (a, b))
  36844. one_is_true ();
  36845. else
  36846. both_are_false ();
  36847. if (__builtin_mips_all_c_eq_ps (a, b))
  36848. both_are_true ();
  36849. else
  36850. one_is_false ();
  36851. 'int __builtin_mips_any_c_COND_4s (v2sf A, v2sf B, v2sf C, v2sf D)'
  36852. 'int __builtin_mips_all_c_COND_4s (v2sf A, v2sf B, v2sf C, v2sf D)'
  36853. 'int __builtin_mips_any_cabs_COND_4s (v2sf A, v2sf B, v2sf C, v2sf D)'
  36854. 'int __builtin_mips_all_cabs_COND_4s (v2sf A, v2sf B, v2sf C, v2sf D)'
  36855. Comparison of four paired-single values
  36856. ('c.COND.ps'/'cabs.COND.ps', 'bc1any4t'/'bc1any4f').
  36857. These functions use 'c.COND.ps' or 'cabs.COND.ps' to compare A with
  36858. B and to compare C with D. The 'any' forms return 'true' if any of
  36859. the four results are 'true' and the 'all' forms return 'true' if
  36860. all four results are 'true'. For example:
  36861. v2sf a, b, c, d;
  36862. if (__builtin_mips_any_c_eq_4s (a, b, c, d))
  36863. some_are_true ();
  36864. else
  36865. all_are_false ();
  36866. if (__builtin_mips_all_c_eq_4s (a, b, c, d))
  36867. all_are_true ();
  36868. else
  36869. some_are_false ();
  36870. 
  36871. File: gcc.info, Node: MIPS SIMD Architecture (MSA) Support, Next: Other MIPS Built-in Functions, Prev: MIPS Loongson Built-in Functions, Up: Target Builtins
  36872. 6.60.18 MIPS SIMD Architecture (MSA) Support
  36873. --------------------------------------------
  36874. * Menu:
  36875. * MIPS SIMD Architecture Built-in Functions::
  36876. GCC provides intrinsics to access the SIMD instructions provided by the
  36877. MSA MIPS SIMD Architecture. The interface is made available by
  36878. including '<msa.h>' and using '-mmsa -mhard-float -mfp64 -mnan=2008'.
  36879. For each '__builtin_msa_*', there is a shortened name of the intrinsic,
  36880. '__msa_*'.
  36881. MSA implements 128-bit wide vector registers, operating on 8-, 16-, 32-
  36882. and 64-bit integer, 16- and 32-bit fixed-point, or 32- and 64-bit
  36883. floating point data elements. The following vectors typedefs are
  36884. included in 'msa.h':
  36885. * 'v16i8', a vector of sixteen signed 8-bit integers;
  36886. * 'v16u8', a vector of sixteen unsigned 8-bit integers;
  36887. * 'v8i16', a vector of eight signed 16-bit integers;
  36888. * 'v8u16', a vector of eight unsigned 16-bit integers;
  36889. * 'v4i32', a vector of four signed 32-bit integers;
  36890. * 'v4u32', a vector of four unsigned 32-bit integers;
  36891. * 'v2i64', a vector of two signed 64-bit integers;
  36892. * 'v2u64', a vector of two unsigned 64-bit integers;
  36893. * 'v4f32', a vector of four 32-bit floats;
  36894. * 'v2f64', a vector of two 64-bit doubles.
  36895. Instructions and corresponding built-ins may have additional
  36896. restrictions and/or input/output values manipulated:
  36897. * 'imm0_1', an integer literal in range 0 to 1;
  36898. * 'imm0_3', an integer literal in range 0 to 3;
  36899. * 'imm0_7', an integer literal in range 0 to 7;
  36900. * 'imm0_15', an integer literal in range 0 to 15;
  36901. * 'imm0_31', an integer literal in range 0 to 31;
  36902. * 'imm0_63', an integer literal in range 0 to 63;
  36903. * 'imm0_255', an integer literal in range 0 to 255;
  36904. * 'imm_n16_15', an integer literal in range -16 to 15;
  36905. * 'imm_n512_511', an integer literal in range -512 to 511;
  36906. * 'imm_n1024_1022', an integer literal in range -512 to 511 left
  36907. shifted by 1 bit, i.e., -1024, -1022, ..., 1020, 1022;
  36908. * 'imm_n2048_2044', an integer literal in range -512 to 511 left
  36909. shifted by 2 bits, i.e., -2048, -2044, ..., 2040, 2044;
  36910. * 'imm_n4096_4088', an integer literal in range -512 to 511 left
  36911. shifted by 3 bits, i.e., -4096, -4088, ..., 4080, 4088;
  36912. * 'imm1_4', an integer literal in range 1 to 4;
  36913. * 'i32, i64, u32, u64, f32, f64', defined as follows:
  36914. {
  36915. typedef int i32;
  36916. #if __LONG_MAX__ == __LONG_LONG_MAX__
  36917. typedef long i64;
  36918. #else
  36919. typedef long long i64;
  36920. #endif
  36921. typedef unsigned int u32;
  36922. #if __LONG_MAX__ == __LONG_LONG_MAX__
  36923. typedef unsigned long u64;
  36924. #else
  36925. typedef unsigned long long u64;
  36926. #endif
  36927. typedef double f64;
  36928. typedef float f32;
  36929. }
  36930. 
  36931. File: gcc.info, Node: MIPS SIMD Architecture Built-in Functions, Up: MIPS SIMD Architecture (MSA) Support
  36932. 6.60.18.1 MIPS SIMD Architecture Built-in Functions
  36933. ...................................................
  36934. The intrinsics provided are listed below; each is named after the
  36935. machine instruction.
  36936. v16i8 __builtin_msa_add_a_b (v16i8, v16i8);
  36937. v8i16 __builtin_msa_add_a_h (v8i16, v8i16);
  36938. v4i32 __builtin_msa_add_a_w (v4i32, v4i32);
  36939. v2i64 __builtin_msa_add_a_d (v2i64, v2i64);
  36940. v16i8 __builtin_msa_adds_a_b (v16i8, v16i8);
  36941. v8i16 __builtin_msa_adds_a_h (v8i16, v8i16);
  36942. v4i32 __builtin_msa_adds_a_w (v4i32, v4i32);
  36943. v2i64 __builtin_msa_adds_a_d (v2i64, v2i64);
  36944. v16i8 __builtin_msa_adds_s_b (v16i8, v16i8);
  36945. v8i16 __builtin_msa_adds_s_h (v8i16, v8i16);
  36946. v4i32 __builtin_msa_adds_s_w (v4i32, v4i32);
  36947. v2i64 __builtin_msa_adds_s_d (v2i64, v2i64);
  36948. v16u8 __builtin_msa_adds_u_b (v16u8, v16u8);
  36949. v8u16 __builtin_msa_adds_u_h (v8u16, v8u16);
  36950. v4u32 __builtin_msa_adds_u_w (v4u32, v4u32);
  36951. v2u64 __builtin_msa_adds_u_d (v2u64, v2u64);
  36952. v16i8 __builtin_msa_addv_b (v16i8, v16i8);
  36953. v8i16 __builtin_msa_addv_h (v8i16, v8i16);
  36954. v4i32 __builtin_msa_addv_w (v4i32, v4i32);
  36955. v2i64 __builtin_msa_addv_d (v2i64, v2i64);
  36956. v16i8 __builtin_msa_addvi_b (v16i8, imm0_31);
  36957. v8i16 __builtin_msa_addvi_h (v8i16, imm0_31);
  36958. v4i32 __builtin_msa_addvi_w (v4i32, imm0_31);
  36959. v2i64 __builtin_msa_addvi_d (v2i64, imm0_31);
  36960. v16u8 __builtin_msa_and_v (v16u8, v16u8);
  36961. v16u8 __builtin_msa_andi_b (v16u8, imm0_255);
  36962. v16i8 __builtin_msa_asub_s_b (v16i8, v16i8);
  36963. v8i16 __builtin_msa_asub_s_h (v8i16, v8i16);
  36964. v4i32 __builtin_msa_asub_s_w (v4i32, v4i32);
  36965. v2i64 __builtin_msa_asub_s_d (v2i64, v2i64);
  36966. v16u8 __builtin_msa_asub_u_b (v16u8, v16u8);
  36967. v8u16 __builtin_msa_asub_u_h (v8u16, v8u16);
  36968. v4u32 __builtin_msa_asub_u_w (v4u32, v4u32);
  36969. v2u64 __builtin_msa_asub_u_d (v2u64, v2u64);
  36970. v16i8 __builtin_msa_ave_s_b (v16i8, v16i8);
  36971. v8i16 __builtin_msa_ave_s_h (v8i16, v8i16);
  36972. v4i32 __builtin_msa_ave_s_w (v4i32, v4i32);
  36973. v2i64 __builtin_msa_ave_s_d (v2i64, v2i64);
  36974. v16u8 __builtin_msa_ave_u_b (v16u8, v16u8);
  36975. v8u16 __builtin_msa_ave_u_h (v8u16, v8u16);
  36976. v4u32 __builtin_msa_ave_u_w (v4u32, v4u32);
  36977. v2u64 __builtin_msa_ave_u_d (v2u64, v2u64);
  36978. v16i8 __builtin_msa_aver_s_b (v16i8, v16i8);
  36979. v8i16 __builtin_msa_aver_s_h (v8i16, v8i16);
  36980. v4i32 __builtin_msa_aver_s_w (v4i32, v4i32);
  36981. v2i64 __builtin_msa_aver_s_d (v2i64, v2i64);
  36982. v16u8 __builtin_msa_aver_u_b (v16u8, v16u8);
  36983. v8u16 __builtin_msa_aver_u_h (v8u16, v8u16);
  36984. v4u32 __builtin_msa_aver_u_w (v4u32, v4u32);
  36985. v2u64 __builtin_msa_aver_u_d (v2u64, v2u64);
  36986. v16u8 __builtin_msa_bclr_b (v16u8, v16u8);
  36987. v8u16 __builtin_msa_bclr_h (v8u16, v8u16);
  36988. v4u32 __builtin_msa_bclr_w (v4u32, v4u32);
  36989. v2u64 __builtin_msa_bclr_d (v2u64, v2u64);
  36990. v16u8 __builtin_msa_bclri_b (v16u8, imm0_7);
  36991. v8u16 __builtin_msa_bclri_h (v8u16, imm0_15);
  36992. v4u32 __builtin_msa_bclri_w (v4u32, imm0_31);
  36993. v2u64 __builtin_msa_bclri_d (v2u64, imm0_63);
  36994. v16u8 __builtin_msa_binsl_b (v16u8, v16u8, v16u8);
  36995. v8u16 __builtin_msa_binsl_h (v8u16, v8u16, v8u16);
  36996. v4u32 __builtin_msa_binsl_w (v4u32, v4u32, v4u32);
  36997. v2u64 __builtin_msa_binsl_d (v2u64, v2u64, v2u64);
  36998. v16u8 __builtin_msa_binsli_b (v16u8, v16u8, imm0_7);
  36999. v8u16 __builtin_msa_binsli_h (v8u16, v8u16, imm0_15);
  37000. v4u32 __builtin_msa_binsli_w (v4u32, v4u32, imm0_31);
  37001. v2u64 __builtin_msa_binsli_d (v2u64, v2u64, imm0_63);
  37002. v16u8 __builtin_msa_binsr_b (v16u8, v16u8, v16u8);
  37003. v8u16 __builtin_msa_binsr_h (v8u16, v8u16, v8u16);
  37004. v4u32 __builtin_msa_binsr_w (v4u32, v4u32, v4u32);
  37005. v2u64 __builtin_msa_binsr_d (v2u64, v2u64, v2u64);
  37006. v16u8 __builtin_msa_binsri_b (v16u8, v16u8, imm0_7);
  37007. v8u16 __builtin_msa_binsri_h (v8u16, v8u16, imm0_15);
  37008. v4u32 __builtin_msa_binsri_w (v4u32, v4u32, imm0_31);
  37009. v2u64 __builtin_msa_binsri_d (v2u64, v2u64, imm0_63);
  37010. v16u8 __builtin_msa_bmnz_v (v16u8, v16u8, v16u8);
  37011. v16u8 __builtin_msa_bmnzi_b (v16u8, v16u8, imm0_255);
  37012. v16u8 __builtin_msa_bmz_v (v16u8, v16u8, v16u8);
  37013. v16u8 __builtin_msa_bmzi_b (v16u8, v16u8, imm0_255);
  37014. v16u8 __builtin_msa_bneg_b (v16u8, v16u8);
  37015. v8u16 __builtin_msa_bneg_h (v8u16, v8u16);
  37016. v4u32 __builtin_msa_bneg_w (v4u32, v4u32);
  37017. v2u64 __builtin_msa_bneg_d (v2u64, v2u64);
  37018. v16u8 __builtin_msa_bnegi_b (v16u8, imm0_7);
  37019. v8u16 __builtin_msa_bnegi_h (v8u16, imm0_15);
  37020. v4u32 __builtin_msa_bnegi_w (v4u32, imm0_31);
  37021. v2u64 __builtin_msa_bnegi_d (v2u64, imm0_63);
  37022. i32 __builtin_msa_bnz_b (v16u8);
  37023. i32 __builtin_msa_bnz_h (v8u16);
  37024. i32 __builtin_msa_bnz_w (v4u32);
  37025. i32 __builtin_msa_bnz_d (v2u64);
  37026. i32 __builtin_msa_bnz_v (v16u8);
  37027. v16u8 __builtin_msa_bsel_v (v16u8, v16u8, v16u8);
  37028. v16u8 __builtin_msa_bseli_b (v16u8, v16u8, imm0_255);
  37029. v16u8 __builtin_msa_bset_b (v16u8, v16u8);
  37030. v8u16 __builtin_msa_bset_h (v8u16, v8u16);
  37031. v4u32 __builtin_msa_bset_w (v4u32, v4u32);
  37032. v2u64 __builtin_msa_bset_d (v2u64, v2u64);
  37033. v16u8 __builtin_msa_bseti_b (v16u8, imm0_7);
  37034. v8u16 __builtin_msa_bseti_h (v8u16, imm0_15);
  37035. v4u32 __builtin_msa_bseti_w (v4u32, imm0_31);
  37036. v2u64 __builtin_msa_bseti_d (v2u64, imm0_63);
  37037. i32 __builtin_msa_bz_b (v16u8);
  37038. i32 __builtin_msa_bz_h (v8u16);
  37039. i32 __builtin_msa_bz_w (v4u32);
  37040. i32 __builtin_msa_bz_d (v2u64);
  37041. i32 __builtin_msa_bz_v (v16u8);
  37042. v16i8 __builtin_msa_ceq_b (v16i8, v16i8);
  37043. v8i16 __builtin_msa_ceq_h (v8i16, v8i16);
  37044. v4i32 __builtin_msa_ceq_w (v4i32, v4i32);
  37045. v2i64 __builtin_msa_ceq_d (v2i64, v2i64);
  37046. v16i8 __builtin_msa_ceqi_b (v16i8, imm_n16_15);
  37047. v8i16 __builtin_msa_ceqi_h (v8i16, imm_n16_15);
  37048. v4i32 __builtin_msa_ceqi_w (v4i32, imm_n16_15);
  37049. v2i64 __builtin_msa_ceqi_d (v2i64, imm_n16_15);
  37050. i32 __builtin_msa_cfcmsa (imm0_31);
  37051. v16i8 __builtin_msa_cle_s_b (v16i8, v16i8);
  37052. v8i16 __builtin_msa_cle_s_h (v8i16, v8i16);
  37053. v4i32 __builtin_msa_cle_s_w (v4i32, v4i32);
  37054. v2i64 __builtin_msa_cle_s_d (v2i64, v2i64);
  37055. v16i8 __builtin_msa_cle_u_b (v16u8, v16u8);
  37056. v8i16 __builtin_msa_cle_u_h (v8u16, v8u16);
  37057. v4i32 __builtin_msa_cle_u_w (v4u32, v4u32);
  37058. v2i64 __builtin_msa_cle_u_d (v2u64, v2u64);
  37059. v16i8 __builtin_msa_clei_s_b (v16i8, imm_n16_15);
  37060. v8i16 __builtin_msa_clei_s_h (v8i16, imm_n16_15);
  37061. v4i32 __builtin_msa_clei_s_w (v4i32, imm_n16_15);
  37062. v2i64 __builtin_msa_clei_s_d (v2i64, imm_n16_15);
  37063. v16i8 __builtin_msa_clei_u_b (v16u8, imm0_31);
  37064. v8i16 __builtin_msa_clei_u_h (v8u16, imm0_31);
  37065. v4i32 __builtin_msa_clei_u_w (v4u32, imm0_31);
  37066. v2i64 __builtin_msa_clei_u_d (v2u64, imm0_31);
  37067. v16i8 __builtin_msa_clt_s_b (v16i8, v16i8);
  37068. v8i16 __builtin_msa_clt_s_h (v8i16, v8i16);
  37069. v4i32 __builtin_msa_clt_s_w (v4i32, v4i32);
  37070. v2i64 __builtin_msa_clt_s_d (v2i64, v2i64);
  37071. v16i8 __builtin_msa_clt_u_b (v16u8, v16u8);
  37072. v8i16 __builtin_msa_clt_u_h (v8u16, v8u16);
  37073. v4i32 __builtin_msa_clt_u_w (v4u32, v4u32);
  37074. v2i64 __builtin_msa_clt_u_d (v2u64, v2u64);
  37075. v16i8 __builtin_msa_clti_s_b (v16i8, imm_n16_15);
  37076. v8i16 __builtin_msa_clti_s_h (v8i16, imm_n16_15);
  37077. v4i32 __builtin_msa_clti_s_w (v4i32, imm_n16_15);
  37078. v2i64 __builtin_msa_clti_s_d (v2i64, imm_n16_15);
  37079. v16i8 __builtin_msa_clti_u_b (v16u8, imm0_31);
  37080. v8i16 __builtin_msa_clti_u_h (v8u16, imm0_31);
  37081. v4i32 __builtin_msa_clti_u_w (v4u32, imm0_31);
  37082. v2i64 __builtin_msa_clti_u_d (v2u64, imm0_31);
  37083. i32 __builtin_msa_copy_s_b (v16i8, imm0_15);
  37084. i32 __builtin_msa_copy_s_h (v8i16, imm0_7);
  37085. i32 __builtin_msa_copy_s_w (v4i32, imm0_3);
  37086. i64 __builtin_msa_copy_s_d (v2i64, imm0_1);
  37087. u32 __builtin_msa_copy_u_b (v16i8, imm0_15);
  37088. u32 __builtin_msa_copy_u_h (v8i16, imm0_7);
  37089. u32 __builtin_msa_copy_u_w (v4i32, imm0_3);
  37090. u64 __builtin_msa_copy_u_d (v2i64, imm0_1);
  37091. void __builtin_msa_ctcmsa (imm0_31, i32);
  37092. v16i8 __builtin_msa_div_s_b (v16i8, v16i8);
  37093. v8i16 __builtin_msa_div_s_h (v8i16, v8i16);
  37094. v4i32 __builtin_msa_div_s_w (v4i32, v4i32);
  37095. v2i64 __builtin_msa_div_s_d (v2i64, v2i64);
  37096. v16u8 __builtin_msa_div_u_b (v16u8, v16u8);
  37097. v8u16 __builtin_msa_div_u_h (v8u16, v8u16);
  37098. v4u32 __builtin_msa_div_u_w (v4u32, v4u32);
  37099. v2u64 __builtin_msa_div_u_d (v2u64, v2u64);
  37100. v8i16 __builtin_msa_dotp_s_h (v16i8, v16i8);
  37101. v4i32 __builtin_msa_dotp_s_w (v8i16, v8i16);
  37102. v2i64 __builtin_msa_dotp_s_d (v4i32, v4i32);
  37103. v8u16 __builtin_msa_dotp_u_h (v16u8, v16u8);
  37104. v4u32 __builtin_msa_dotp_u_w (v8u16, v8u16);
  37105. v2u64 __builtin_msa_dotp_u_d (v4u32, v4u32);
  37106. v8i16 __builtin_msa_dpadd_s_h (v8i16, v16i8, v16i8);
  37107. v4i32 __builtin_msa_dpadd_s_w (v4i32, v8i16, v8i16);
  37108. v2i64 __builtin_msa_dpadd_s_d (v2i64, v4i32, v4i32);
  37109. v8u16 __builtin_msa_dpadd_u_h (v8u16, v16u8, v16u8);
  37110. v4u32 __builtin_msa_dpadd_u_w (v4u32, v8u16, v8u16);
  37111. v2u64 __builtin_msa_dpadd_u_d (v2u64, v4u32, v4u32);
  37112. v8i16 __builtin_msa_dpsub_s_h (v8i16, v16i8, v16i8);
  37113. v4i32 __builtin_msa_dpsub_s_w (v4i32, v8i16, v8i16);
  37114. v2i64 __builtin_msa_dpsub_s_d (v2i64, v4i32, v4i32);
  37115. v8i16 __builtin_msa_dpsub_u_h (v8i16, v16u8, v16u8);
  37116. v4i32 __builtin_msa_dpsub_u_w (v4i32, v8u16, v8u16);
  37117. v2i64 __builtin_msa_dpsub_u_d (v2i64, v4u32, v4u32);
  37118. v4f32 __builtin_msa_fadd_w (v4f32, v4f32);
  37119. v2f64 __builtin_msa_fadd_d (v2f64, v2f64);
  37120. v4i32 __builtin_msa_fcaf_w (v4f32, v4f32);
  37121. v2i64 __builtin_msa_fcaf_d (v2f64, v2f64);
  37122. v4i32 __builtin_msa_fceq_w (v4f32, v4f32);
  37123. v2i64 __builtin_msa_fceq_d (v2f64, v2f64);
  37124. v4i32 __builtin_msa_fclass_w (v4f32);
  37125. v2i64 __builtin_msa_fclass_d (v2f64);
  37126. v4i32 __builtin_msa_fcle_w (v4f32, v4f32);
  37127. v2i64 __builtin_msa_fcle_d (v2f64, v2f64);
  37128. v4i32 __builtin_msa_fclt_w (v4f32, v4f32);
  37129. v2i64 __builtin_msa_fclt_d (v2f64, v2f64);
  37130. v4i32 __builtin_msa_fcne_w (v4f32, v4f32);
  37131. v2i64 __builtin_msa_fcne_d (v2f64, v2f64);
  37132. v4i32 __builtin_msa_fcor_w (v4f32, v4f32);
  37133. v2i64 __builtin_msa_fcor_d (v2f64, v2f64);
  37134. v4i32 __builtin_msa_fcueq_w (v4f32, v4f32);
  37135. v2i64 __builtin_msa_fcueq_d (v2f64, v2f64);
  37136. v4i32 __builtin_msa_fcule_w (v4f32, v4f32);
  37137. v2i64 __builtin_msa_fcule_d (v2f64, v2f64);
  37138. v4i32 __builtin_msa_fcult_w (v4f32, v4f32);
  37139. v2i64 __builtin_msa_fcult_d (v2f64, v2f64);
  37140. v4i32 __builtin_msa_fcun_w (v4f32, v4f32);
  37141. v2i64 __builtin_msa_fcun_d (v2f64, v2f64);
  37142. v4i32 __builtin_msa_fcune_w (v4f32, v4f32);
  37143. v2i64 __builtin_msa_fcune_d (v2f64, v2f64);
  37144. v4f32 __builtin_msa_fdiv_w (v4f32, v4f32);
  37145. v2f64 __builtin_msa_fdiv_d (v2f64, v2f64);
  37146. v8i16 __builtin_msa_fexdo_h (v4f32, v4f32);
  37147. v4f32 __builtin_msa_fexdo_w (v2f64, v2f64);
  37148. v4f32 __builtin_msa_fexp2_w (v4f32, v4i32);
  37149. v2f64 __builtin_msa_fexp2_d (v2f64, v2i64);
  37150. v4f32 __builtin_msa_fexupl_w (v8i16);
  37151. v2f64 __builtin_msa_fexupl_d (v4f32);
  37152. v4f32 __builtin_msa_fexupr_w (v8i16);
  37153. v2f64 __builtin_msa_fexupr_d (v4f32);
  37154. v4f32 __builtin_msa_ffint_s_w (v4i32);
  37155. v2f64 __builtin_msa_ffint_s_d (v2i64);
  37156. v4f32 __builtin_msa_ffint_u_w (v4u32);
  37157. v2f64 __builtin_msa_ffint_u_d (v2u64);
  37158. v4f32 __builtin_msa_ffql_w (v8i16);
  37159. v2f64 __builtin_msa_ffql_d (v4i32);
  37160. v4f32 __builtin_msa_ffqr_w (v8i16);
  37161. v2f64 __builtin_msa_ffqr_d (v4i32);
  37162. v16i8 __builtin_msa_fill_b (i32);
  37163. v8i16 __builtin_msa_fill_h (i32);
  37164. v4i32 __builtin_msa_fill_w (i32);
  37165. v2i64 __builtin_msa_fill_d (i64);
  37166. v4f32 __builtin_msa_flog2_w (v4f32);
  37167. v2f64 __builtin_msa_flog2_d (v2f64);
  37168. v4f32 __builtin_msa_fmadd_w (v4f32, v4f32, v4f32);
  37169. v2f64 __builtin_msa_fmadd_d (v2f64, v2f64, v2f64);
  37170. v4f32 __builtin_msa_fmax_w (v4f32, v4f32);
  37171. v2f64 __builtin_msa_fmax_d (v2f64, v2f64);
  37172. v4f32 __builtin_msa_fmax_a_w (v4f32, v4f32);
  37173. v2f64 __builtin_msa_fmax_a_d (v2f64, v2f64);
  37174. v4f32 __builtin_msa_fmin_w (v4f32, v4f32);
  37175. v2f64 __builtin_msa_fmin_d (v2f64, v2f64);
  37176. v4f32 __builtin_msa_fmin_a_w (v4f32, v4f32);
  37177. v2f64 __builtin_msa_fmin_a_d (v2f64, v2f64);
  37178. v4f32 __builtin_msa_fmsub_w (v4f32, v4f32, v4f32);
  37179. v2f64 __builtin_msa_fmsub_d (v2f64, v2f64, v2f64);
  37180. v4f32 __builtin_msa_fmul_w (v4f32, v4f32);
  37181. v2f64 __builtin_msa_fmul_d (v2f64, v2f64);
  37182. v4f32 __builtin_msa_frint_w (v4f32);
  37183. v2f64 __builtin_msa_frint_d (v2f64);
  37184. v4f32 __builtin_msa_frcp_w (v4f32);
  37185. v2f64 __builtin_msa_frcp_d (v2f64);
  37186. v4f32 __builtin_msa_frsqrt_w (v4f32);
  37187. v2f64 __builtin_msa_frsqrt_d (v2f64);
  37188. v4i32 __builtin_msa_fsaf_w (v4f32, v4f32);
  37189. v2i64 __builtin_msa_fsaf_d (v2f64, v2f64);
  37190. v4i32 __builtin_msa_fseq_w (v4f32, v4f32);
  37191. v2i64 __builtin_msa_fseq_d (v2f64, v2f64);
  37192. v4i32 __builtin_msa_fsle_w (v4f32, v4f32);
  37193. v2i64 __builtin_msa_fsle_d (v2f64, v2f64);
  37194. v4i32 __builtin_msa_fslt_w (v4f32, v4f32);
  37195. v2i64 __builtin_msa_fslt_d (v2f64, v2f64);
  37196. v4i32 __builtin_msa_fsne_w (v4f32, v4f32);
  37197. v2i64 __builtin_msa_fsne_d (v2f64, v2f64);
  37198. v4i32 __builtin_msa_fsor_w (v4f32, v4f32);
  37199. v2i64 __builtin_msa_fsor_d (v2f64, v2f64);
  37200. v4f32 __builtin_msa_fsqrt_w (v4f32);
  37201. v2f64 __builtin_msa_fsqrt_d (v2f64);
  37202. v4f32 __builtin_msa_fsub_w (v4f32, v4f32);
  37203. v2f64 __builtin_msa_fsub_d (v2f64, v2f64);
  37204. v4i32 __builtin_msa_fsueq_w (v4f32, v4f32);
  37205. v2i64 __builtin_msa_fsueq_d (v2f64, v2f64);
  37206. v4i32 __builtin_msa_fsule_w (v4f32, v4f32);
  37207. v2i64 __builtin_msa_fsule_d (v2f64, v2f64);
  37208. v4i32 __builtin_msa_fsult_w (v4f32, v4f32);
  37209. v2i64 __builtin_msa_fsult_d (v2f64, v2f64);
  37210. v4i32 __builtin_msa_fsun_w (v4f32, v4f32);
  37211. v2i64 __builtin_msa_fsun_d (v2f64, v2f64);
  37212. v4i32 __builtin_msa_fsune_w (v4f32, v4f32);
  37213. v2i64 __builtin_msa_fsune_d (v2f64, v2f64);
  37214. v4i32 __builtin_msa_ftint_s_w (v4f32);
  37215. v2i64 __builtin_msa_ftint_s_d (v2f64);
  37216. v4u32 __builtin_msa_ftint_u_w (v4f32);
  37217. v2u64 __builtin_msa_ftint_u_d (v2f64);
  37218. v8i16 __builtin_msa_ftq_h (v4f32, v4f32);
  37219. v4i32 __builtin_msa_ftq_w (v2f64, v2f64);
  37220. v4i32 __builtin_msa_ftrunc_s_w (v4f32);
  37221. v2i64 __builtin_msa_ftrunc_s_d (v2f64);
  37222. v4u32 __builtin_msa_ftrunc_u_w (v4f32);
  37223. v2u64 __builtin_msa_ftrunc_u_d (v2f64);
  37224. v8i16 __builtin_msa_hadd_s_h (v16i8, v16i8);
  37225. v4i32 __builtin_msa_hadd_s_w (v8i16, v8i16);
  37226. v2i64 __builtin_msa_hadd_s_d (v4i32, v4i32);
  37227. v8u16 __builtin_msa_hadd_u_h (v16u8, v16u8);
  37228. v4u32 __builtin_msa_hadd_u_w (v8u16, v8u16);
  37229. v2u64 __builtin_msa_hadd_u_d (v4u32, v4u32);
  37230. v8i16 __builtin_msa_hsub_s_h (v16i8, v16i8);
  37231. v4i32 __builtin_msa_hsub_s_w (v8i16, v8i16);
  37232. v2i64 __builtin_msa_hsub_s_d (v4i32, v4i32);
  37233. v8i16 __builtin_msa_hsub_u_h (v16u8, v16u8);
  37234. v4i32 __builtin_msa_hsub_u_w (v8u16, v8u16);
  37235. v2i64 __builtin_msa_hsub_u_d (v4u32, v4u32);
  37236. v16i8 __builtin_msa_ilvev_b (v16i8, v16i8);
  37237. v8i16 __builtin_msa_ilvev_h (v8i16, v8i16);
  37238. v4i32 __builtin_msa_ilvev_w (v4i32, v4i32);
  37239. v2i64 __builtin_msa_ilvev_d (v2i64, v2i64);
  37240. v16i8 __builtin_msa_ilvl_b (v16i8, v16i8);
  37241. v8i16 __builtin_msa_ilvl_h (v8i16, v8i16);
  37242. v4i32 __builtin_msa_ilvl_w (v4i32, v4i32);
  37243. v2i64 __builtin_msa_ilvl_d (v2i64, v2i64);
  37244. v16i8 __builtin_msa_ilvod_b (v16i8, v16i8);
  37245. v8i16 __builtin_msa_ilvod_h (v8i16, v8i16);
  37246. v4i32 __builtin_msa_ilvod_w (v4i32, v4i32);
  37247. v2i64 __builtin_msa_ilvod_d (v2i64, v2i64);
  37248. v16i8 __builtin_msa_ilvr_b (v16i8, v16i8);
  37249. v8i16 __builtin_msa_ilvr_h (v8i16, v8i16);
  37250. v4i32 __builtin_msa_ilvr_w (v4i32, v4i32);
  37251. v2i64 __builtin_msa_ilvr_d (v2i64, v2i64);
  37252. v16i8 __builtin_msa_insert_b (v16i8, imm0_15, i32);
  37253. v8i16 __builtin_msa_insert_h (v8i16, imm0_7, i32);
  37254. v4i32 __builtin_msa_insert_w (v4i32, imm0_3, i32);
  37255. v2i64 __builtin_msa_insert_d (v2i64, imm0_1, i64);
  37256. v16i8 __builtin_msa_insve_b (v16i8, imm0_15, v16i8);
  37257. v8i16 __builtin_msa_insve_h (v8i16, imm0_7, v8i16);
  37258. v4i32 __builtin_msa_insve_w (v4i32, imm0_3, v4i32);
  37259. v2i64 __builtin_msa_insve_d (v2i64, imm0_1, v2i64);
  37260. v16i8 __builtin_msa_ld_b (const void *, imm_n512_511);
  37261. v8i16 __builtin_msa_ld_h (const void *, imm_n1024_1022);
  37262. v4i32 __builtin_msa_ld_w (const void *, imm_n2048_2044);
  37263. v2i64 __builtin_msa_ld_d (const void *, imm_n4096_4088);
  37264. v16i8 __builtin_msa_ldi_b (imm_n512_511);
  37265. v8i16 __builtin_msa_ldi_h (imm_n512_511);
  37266. v4i32 __builtin_msa_ldi_w (imm_n512_511);
  37267. v2i64 __builtin_msa_ldi_d (imm_n512_511);
  37268. v8i16 __builtin_msa_madd_q_h (v8i16, v8i16, v8i16);
  37269. v4i32 __builtin_msa_madd_q_w (v4i32, v4i32, v4i32);
  37270. v8i16 __builtin_msa_maddr_q_h (v8i16, v8i16, v8i16);
  37271. v4i32 __builtin_msa_maddr_q_w (v4i32, v4i32, v4i32);
  37272. v16i8 __builtin_msa_maddv_b (v16i8, v16i8, v16i8);
  37273. v8i16 __builtin_msa_maddv_h (v8i16, v8i16, v8i16);
  37274. v4i32 __builtin_msa_maddv_w (v4i32, v4i32, v4i32);
  37275. v2i64 __builtin_msa_maddv_d (v2i64, v2i64, v2i64);
  37276. v16i8 __builtin_msa_max_a_b (v16i8, v16i8);
  37277. v8i16 __builtin_msa_max_a_h (v8i16, v8i16);
  37278. v4i32 __builtin_msa_max_a_w (v4i32, v4i32);
  37279. v2i64 __builtin_msa_max_a_d (v2i64, v2i64);
  37280. v16i8 __builtin_msa_max_s_b (v16i8, v16i8);
  37281. v8i16 __builtin_msa_max_s_h (v8i16, v8i16);
  37282. v4i32 __builtin_msa_max_s_w (v4i32, v4i32);
  37283. v2i64 __builtin_msa_max_s_d (v2i64, v2i64);
  37284. v16u8 __builtin_msa_max_u_b (v16u8, v16u8);
  37285. v8u16 __builtin_msa_max_u_h (v8u16, v8u16);
  37286. v4u32 __builtin_msa_max_u_w (v4u32, v4u32);
  37287. v2u64 __builtin_msa_max_u_d (v2u64, v2u64);
  37288. v16i8 __builtin_msa_maxi_s_b (v16i8, imm_n16_15);
  37289. v8i16 __builtin_msa_maxi_s_h (v8i16, imm_n16_15);
  37290. v4i32 __builtin_msa_maxi_s_w (v4i32, imm_n16_15);
  37291. v2i64 __builtin_msa_maxi_s_d (v2i64, imm_n16_15);
  37292. v16u8 __builtin_msa_maxi_u_b (v16u8, imm0_31);
  37293. v8u16 __builtin_msa_maxi_u_h (v8u16, imm0_31);
  37294. v4u32 __builtin_msa_maxi_u_w (v4u32, imm0_31);
  37295. v2u64 __builtin_msa_maxi_u_d (v2u64, imm0_31);
  37296. v16i8 __builtin_msa_min_a_b (v16i8, v16i8);
  37297. v8i16 __builtin_msa_min_a_h (v8i16, v8i16);
  37298. v4i32 __builtin_msa_min_a_w (v4i32, v4i32);
  37299. v2i64 __builtin_msa_min_a_d (v2i64, v2i64);
  37300. v16i8 __builtin_msa_min_s_b (v16i8, v16i8);
  37301. v8i16 __builtin_msa_min_s_h (v8i16, v8i16);
  37302. v4i32 __builtin_msa_min_s_w (v4i32, v4i32);
  37303. v2i64 __builtin_msa_min_s_d (v2i64, v2i64);
  37304. v16u8 __builtin_msa_min_u_b (v16u8, v16u8);
  37305. v8u16 __builtin_msa_min_u_h (v8u16, v8u16);
  37306. v4u32 __builtin_msa_min_u_w (v4u32, v4u32);
  37307. v2u64 __builtin_msa_min_u_d (v2u64, v2u64);
  37308. v16i8 __builtin_msa_mini_s_b (v16i8, imm_n16_15);
  37309. v8i16 __builtin_msa_mini_s_h (v8i16, imm_n16_15);
  37310. v4i32 __builtin_msa_mini_s_w (v4i32, imm_n16_15);
  37311. v2i64 __builtin_msa_mini_s_d (v2i64, imm_n16_15);
  37312. v16u8 __builtin_msa_mini_u_b (v16u8, imm0_31);
  37313. v8u16 __builtin_msa_mini_u_h (v8u16, imm0_31);
  37314. v4u32 __builtin_msa_mini_u_w (v4u32, imm0_31);
  37315. v2u64 __builtin_msa_mini_u_d (v2u64, imm0_31);
  37316. v16i8 __builtin_msa_mod_s_b (v16i8, v16i8);
  37317. v8i16 __builtin_msa_mod_s_h (v8i16, v8i16);
  37318. v4i32 __builtin_msa_mod_s_w (v4i32, v4i32);
  37319. v2i64 __builtin_msa_mod_s_d (v2i64, v2i64);
  37320. v16u8 __builtin_msa_mod_u_b (v16u8, v16u8);
  37321. v8u16 __builtin_msa_mod_u_h (v8u16, v8u16);
  37322. v4u32 __builtin_msa_mod_u_w (v4u32, v4u32);
  37323. v2u64 __builtin_msa_mod_u_d (v2u64, v2u64);
  37324. v16i8 __builtin_msa_move_v (v16i8);
  37325. v8i16 __builtin_msa_msub_q_h (v8i16, v8i16, v8i16);
  37326. v4i32 __builtin_msa_msub_q_w (v4i32, v4i32, v4i32);
  37327. v8i16 __builtin_msa_msubr_q_h (v8i16, v8i16, v8i16);
  37328. v4i32 __builtin_msa_msubr_q_w (v4i32, v4i32, v4i32);
  37329. v16i8 __builtin_msa_msubv_b (v16i8, v16i8, v16i8);
  37330. v8i16 __builtin_msa_msubv_h (v8i16, v8i16, v8i16);
  37331. v4i32 __builtin_msa_msubv_w (v4i32, v4i32, v4i32);
  37332. v2i64 __builtin_msa_msubv_d (v2i64, v2i64, v2i64);
  37333. v8i16 __builtin_msa_mul_q_h (v8i16, v8i16);
  37334. v4i32 __builtin_msa_mul_q_w (v4i32, v4i32);
  37335. v8i16 __builtin_msa_mulr_q_h (v8i16, v8i16);
  37336. v4i32 __builtin_msa_mulr_q_w (v4i32, v4i32);
  37337. v16i8 __builtin_msa_mulv_b (v16i8, v16i8);
  37338. v8i16 __builtin_msa_mulv_h (v8i16, v8i16);
  37339. v4i32 __builtin_msa_mulv_w (v4i32, v4i32);
  37340. v2i64 __builtin_msa_mulv_d (v2i64, v2i64);
  37341. v16i8 __builtin_msa_nloc_b (v16i8);
  37342. v8i16 __builtin_msa_nloc_h (v8i16);
  37343. v4i32 __builtin_msa_nloc_w (v4i32);
  37344. v2i64 __builtin_msa_nloc_d (v2i64);
  37345. v16i8 __builtin_msa_nlzc_b (v16i8);
  37346. v8i16 __builtin_msa_nlzc_h (v8i16);
  37347. v4i32 __builtin_msa_nlzc_w (v4i32);
  37348. v2i64 __builtin_msa_nlzc_d (v2i64);
  37349. v16u8 __builtin_msa_nor_v (v16u8, v16u8);
  37350. v16u8 __builtin_msa_nori_b (v16u8, imm0_255);
  37351. v16u8 __builtin_msa_or_v (v16u8, v16u8);
  37352. v16u8 __builtin_msa_ori_b (v16u8, imm0_255);
  37353. v16i8 __builtin_msa_pckev_b (v16i8, v16i8);
  37354. v8i16 __builtin_msa_pckev_h (v8i16, v8i16);
  37355. v4i32 __builtin_msa_pckev_w (v4i32, v4i32);
  37356. v2i64 __builtin_msa_pckev_d (v2i64, v2i64);
  37357. v16i8 __builtin_msa_pckod_b (v16i8, v16i8);
  37358. v8i16 __builtin_msa_pckod_h (v8i16, v8i16);
  37359. v4i32 __builtin_msa_pckod_w (v4i32, v4i32);
  37360. v2i64 __builtin_msa_pckod_d (v2i64, v2i64);
  37361. v16i8 __builtin_msa_pcnt_b (v16i8);
  37362. v8i16 __builtin_msa_pcnt_h (v8i16);
  37363. v4i32 __builtin_msa_pcnt_w (v4i32);
  37364. v2i64 __builtin_msa_pcnt_d (v2i64);
  37365. v16i8 __builtin_msa_sat_s_b (v16i8, imm0_7);
  37366. v8i16 __builtin_msa_sat_s_h (v8i16, imm0_15);
  37367. v4i32 __builtin_msa_sat_s_w (v4i32, imm0_31);
  37368. v2i64 __builtin_msa_sat_s_d (v2i64, imm0_63);
  37369. v16u8 __builtin_msa_sat_u_b (v16u8, imm0_7);
  37370. v8u16 __builtin_msa_sat_u_h (v8u16, imm0_15);
  37371. v4u32 __builtin_msa_sat_u_w (v4u32, imm0_31);
  37372. v2u64 __builtin_msa_sat_u_d (v2u64, imm0_63);
  37373. v16i8 __builtin_msa_shf_b (v16i8, imm0_255);
  37374. v8i16 __builtin_msa_shf_h (v8i16, imm0_255);
  37375. v4i32 __builtin_msa_shf_w (v4i32, imm0_255);
  37376. v16i8 __builtin_msa_sld_b (v16i8, v16i8, i32);
  37377. v8i16 __builtin_msa_sld_h (v8i16, v8i16, i32);
  37378. v4i32 __builtin_msa_sld_w (v4i32, v4i32, i32);
  37379. v2i64 __builtin_msa_sld_d (v2i64, v2i64, i32);
  37380. v16i8 __builtin_msa_sldi_b (v16i8, v16i8, imm0_15);
  37381. v8i16 __builtin_msa_sldi_h (v8i16, v8i16, imm0_7);
  37382. v4i32 __builtin_msa_sldi_w (v4i32, v4i32, imm0_3);
  37383. v2i64 __builtin_msa_sldi_d (v2i64, v2i64, imm0_1);
  37384. v16i8 __builtin_msa_sll_b (v16i8, v16i8);
  37385. v8i16 __builtin_msa_sll_h (v8i16, v8i16);
  37386. v4i32 __builtin_msa_sll_w (v4i32, v4i32);
  37387. v2i64 __builtin_msa_sll_d (v2i64, v2i64);
  37388. v16i8 __builtin_msa_slli_b (v16i8, imm0_7);
  37389. v8i16 __builtin_msa_slli_h (v8i16, imm0_15);
  37390. v4i32 __builtin_msa_slli_w (v4i32, imm0_31);
  37391. v2i64 __builtin_msa_slli_d (v2i64, imm0_63);
  37392. v16i8 __builtin_msa_splat_b (v16i8, i32);
  37393. v8i16 __builtin_msa_splat_h (v8i16, i32);
  37394. v4i32 __builtin_msa_splat_w (v4i32, i32);
  37395. v2i64 __builtin_msa_splat_d (v2i64, i32);
  37396. v16i8 __builtin_msa_splati_b (v16i8, imm0_15);
  37397. v8i16 __builtin_msa_splati_h (v8i16, imm0_7);
  37398. v4i32 __builtin_msa_splati_w (v4i32, imm0_3);
  37399. v2i64 __builtin_msa_splati_d (v2i64, imm0_1);
  37400. v16i8 __builtin_msa_sra_b (v16i8, v16i8);
  37401. v8i16 __builtin_msa_sra_h (v8i16, v8i16);
  37402. v4i32 __builtin_msa_sra_w (v4i32, v4i32);
  37403. v2i64 __builtin_msa_sra_d (v2i64, v2i64);
  37404. v16i8 __builtin_msa_srai_b (v16i8, imm0_7);
  37405. v8i16 __builtin_msa_srai_h (v8i16, imm0_15);
  37406. v4i32 __builtin_msa_srai_w (v4i32, imm0_31);
  37407. v2i64 __builtin_msa_srai_d (v2i64, imm0_63);
  37408. v16i8 __builtin_msa_srar_b (v16i8, v16i8);
  37409. v8i16 __builtin_msa_srar_h (v8i16, v8i16);
  37410. v4i32 __builtin_msa_srar_w (v4i32, v4i32);
  37411. v2i64 __builtin_msa_srar_d (v2i64, v2i64);
  37412. v16i8 __builtin_msa_srari_b (v16i8, imm0_7);
  37413. v8i16 __builtin_msa_srari_h (v8i16, imm0_15);
  37414. v4i32 __builtin_msa_srari_w (v4i32, imm0_31);
  37415. v2i64 __builtin_msa_srari_d (v2i64, imm0_63);
  37416. v16i8 __builtin_msa_srl_b (v16i8, v16i8);
  37417. v8i16 __builtin_msa_srl_h (v8i16, v8i16);
  37418. v4i32 __builtin_msa_srl_w (v4i32, v4i32);
  37419. v2i64 __builtin_msa_srl_d (v2i64, v2i64);
  37420. v16i8 __builtin_msa_srli_b (v16i8, imm0_7);
  37421. v8i16 __builtin_msa_srli_h (v8i16, imm0_15);
  37422. v4i32 __builtin_msa_srli_w (v4i32, imm0_31);
  37423. v2i64 __builtin_msa_srli_d (v2i64, imm0_63);
  37424. v16i8 __builtin_msa_srlr_b (v16i8, v16i8);
  37425. v8i16 __builtin_msa_srlr_h (v8i16, v8i16);
  37426. v4i32 __builtin_msa_srlr_w (v4i32, v4i32);
  37427. v2i64 __builtin_msa_srlr_d (v2i64, v2i64);
  37428. v16i8 __builtin_msa_srlri_b (v16i8, imm0_7);
  37429. v8i16 __builtin_msa_srlri_h (v8i16, imm0_15);
  37430. v4i32 __builtin_msa_srlri_w (v4i32, imm0_31);
  37431. v2i64 __builtin_msa_srlri_d (v2i64, imm0_63);
  37432. void __builtin_msa_st_b (v16i8, void *, imm_n512_511);
  37433. void __builtin_msa_st_h (v8i16, void *, imm_n1024_1022);
  37434. void __builtin_msa_st_w (v4i32, void *, imm_n2048_2044);
  37435. void __builtin_msa_st_d (v2i64, void *, imm_n4096_4088);
  37436. v16i8 __builtin_msa_subs_s_b (v16i8, v16i8);
  37437. v8i16 __builtin_msa_subs_s_h (v8i16, v8i16);
  37438. v4i32 __builtin_msa_subs_s_w (v4i32, v4i32);
  37439. v2i64 __builtin_msa_subs_s_d (v2i64, v2i64);
  37440. v16u8 __builtin_msa_subs_u_b (v16u8, v16u8);
  37441. v8u16 __builtin_msa_subs_u_h (v8u16, v8u16);
  37442. v4u32 __builtin_msa_subs_u_w (v4u32, v4u32);
  37443. v2u64 __builtin_msa_subs_u_d (v2u64, v2u64);
  37444. v16u8 __builtin_msa_subsus_u_b (v16u8, v16i8);
  37445. v8u16 __builtin_msa_subsus_u_h (v8u16, v8i16);
  37446. v4u32 __builtin_msa_subsus_u_w (v4u32, v4i32);
  37447. v2u64 __builtin_msa_subsus_u_d (v2u64, v2i64);
  37448. v16i8 __builtin_msa_subsuu_s_b (v16u8, v16u8);
  37449. v8i16 __builtin_msa_subsuu_s_h (v8u16, v8u16);
  37450. v4i32 __builtin_msa_subsuu_s_w (v4u32, v4u32);
  37451. v2i64 __builtin_msa_subsuu_s_d (v2u64, v2u64);
  37452. v16i8 __builtin_msa_subv_b (v16i8, v16i8);
  37453. v8i16 __builtin_msa_subv_h (v8i16, v8i16);
  37454. v4i32 __builtin_msa_subv_w (v4i32, v4i32);
  37455. v2i64 __builtin_msa_subv_d (v2i64, v2i64);
  37456. v16i8 __builtin_msa_subvi_b (v16i8, imm0_31);
  37457. v8i16 __builtin_msa_subvi_h (v8i16, imm0_31);
  37458. v4i32 __builtin_msa_subvi_w (v4i32, imm0_31);
  37459. v2i64 __builtin_msa_subvi_d (v2i64, imm0_31);
  37460. v16i8 __builtin_msa_vshf_b (v16i8, v16i8, v16i8);
  37461. v8i16 __builtin_msa_vshf_h (v8i16, v8i16, v8i16);
  37462. v4i32 __builtin_msa_vshf_w (v4i32, v4i32, v4i32);
  37463. v2i64 __builtin_msa_vshf_d (v2i64, v2i64, v2i64);
  37464. v16u8 __builtin_msa_xor_v (v16u8, v16u8);
  37465. v16u8 __builtin_msa_xori_b (v16u8, imm0_255);
  37466. 
  37467. File: gcc.info, Node: Other MIPS Built-in Functions, Next: MSP430 Built-in Functions, Prev: MIPS SIMD Architecture (MSA) Support, Up: Target Builtins
  37468. 6.60.19 Other MIPS Built-in Functions
  37469. -------------------------------------
  37470. GCC provides other MIPS-specific built-in functions:
  37471. 'void __builtin_mips_cache (int OP, const volatile void *ADDR)'
  37472. Insert a 'cache' instruction with operands OP and ADDR. GCC
  37473. defines the preprocessor macro '___GCC_HAVE_BUILTIN_MIPS_CACHE'
  37474. when this function is available.
  37475. 'unsigned int __builtin_mips_get_fcsr (void)'
  37476. 'void __builtin_mips_set_fcsr (unsigned int VALUE)'
  37477. Get and set the contents of the floating-point control and status
  37478. register (FPU control register 31). These functions are only
  37479. available in hard-float code but can be called in both MIPS16 and
  37480. non-MIPS16 contexts.
  37481. '__builtin_mips_set_fcsr' can be used to change any bit of the
  37482. register except the condition codes, which GCC assumes are
  37483. preserved.
  37484. 
  37485. File: gcc.info, Node: MSP430 Built-in Functions, Next: NDS32 Built-in Functions, Prev: Other MIPS Built-in Functions, Up: Target Builtins
  37486. 6.60.20 MSP430 Built-in Functions
  37487. ---------------------------------
  37488. GCC provides a couple of special builtin functions to aid in the writing
  37489. of interrupt handlers in C.
  37490. '__bic_SR_register_on_exit (int MASK)'
  37491. This clears the indicated bits in the saved copy of the status
  37492. register currently residing on the stack. This only works inside
  37493. interrupt handlers and the changes to the status register will only
  37494. take affect once the handler returns.
  37495. '__bis_SR_register_on_exit (int MASK)'
  37496. This sets the indicated bits in the saved copy of the status
  37497. register currently residing on the stack. This only works inside
  37498. interrupt handlers and the changes to the status register will only
  37499. take affect once the handler returns.
  37500. '__delay_cycles (long long CYCLES)'
  37501. This inserts an instruction sequence that takes exactly CYCLES
  37502. cycles (between 0 and about 17E9) to complete. The inserted
  37503. sequence may use jumps, loops, or no-ops, and does not interfere
  37504. with any other instructions. Note that CYCLES must be a
  37505. compile-time constant integer - that is, you must pass a number,
  37506. not a variable that may be optimized to a constant later. The
  37507. number of cycles delayed by this builtin is exact.
  37508. 
  37509. File: gcc.info, Node: NDS32 Built-in Functions, Next: picoChip Built-in Functions, Prev: MSP430 Built-in Functions, Up: Target Builtins
  37510. 6.60.21 NDS32 Built-in Functions
  37511. --------------------------------
  37512. These built-in functions are available for the NDS32 target:
  37513. -- Built-in Function: void __builtin_nds32_isync (int *ADDR)
  37514. Insert an ISYNC instruction into the instruction stream where ADDR
  37515. is an instruction address for serialization.
  37516. -- Built-in Function: void __builtin_nds32_isb (void)
  37517. Insert an ISB instruction into the instruction stream.
  37518. -- Built-in Function: int __builtin_nds32_mfsr (int SR)
  37519. Return the content of a system register which is mapped by SR.
  37520. -- Built-in Function: int __builtin_nds32_mfusr (int USR)
  37521. Return the content of a user space register which is mapped by USR.
  37522. -- Built-in Function: void __builtin_nds32_mtsr (int VALUE, int SR)
  37523. Move the VALUE to a system register which is mapped by SR.
  37524. -- Built-in Function: void __builtin_nds32_mtusr (int VALUE, int USR)
  37525. Move the VALUE to a user space register which is mapped by USR.
  37526. -- Built-in Function: void __builtin_nds32_setgie_en (void)
  37527. Enable global interrupt.
  37528. -- Built-in Function: void __builtin_nds32_setgie_dis (void)
  37529. Disable global interrupt.
  37530. 
  37531. File: gcc.info, Node: picoChip Built-in Functions, Next: Basic PowerPC Built-in Functions, Prev: NDS32 Built-in Functions, Up: Target Builtins
  37532. 6.60.22 picoChip Built-in Functions
  37533. -----------------------------------
  37534. GCC provides an interface to selected machine instructions from the
  37535. picoChip instruction set.
  37536. 'int __builtin_sbc (int VALUE)'
  37537. Sign bit count. Return the number of consecutive bits in VALUE
  37538. that have the same value as the sign bit. The result is the number
  37539. of leading sign bits minus one, giving the number of redundant sign
  37540. bits in VALUE.
  37541. 'int __builtin_byteswap (int VALUE)'
  37542. Byte swap. Return the result of swapping the upper and lower bytes
  37543. of VALUE.
  37544. 'int __builtin_brev (int VALUE)'
  37545. Bit reversal. Return the result of reversing the bits in VALUE.
  37546. Bit 15 is swapped with bit 0, bit 14 is swapped with bit 1, and so
  37547. on.
  37548. 'int __builtin_adds (int X, int Y)'
  37549. Saturating addition. Return the result of adding X and Y, storing
  37550. the value 32767 if the result overflows.
  37551. 'int __builtin_subs (int X, int Y)'
  37552. Saturating subtraction. Return the result of subtracting Y from X,
  37553. storing the value -32768 if the result overflows.
  37554. 'void __builtin_halt (void)'
  37555. Halt. The processor stops execution. This built-in is useful for
  37556. implementing assertions.
  37557. 
  37558. File: gcc.info, Node: Basic PowerPC Built-in Functions, Next: PowerPC AltiVec/VSX Built-in Functions, Prev: picoChip Built-in Functions, Up: Target Builtins
  37559. 6.60.23 Basic PowerPC Built-in Functions
  37560. ----------------------------------------
  37561. * Menu:
  37562. * Basic PowerPC Built-in Functions Available on all Configurations::
  37563. * Basic PowerPC Built-in Functions Available on ISA 2.05::
  37564. * Basic PowerPC Built-in Functions Available on ISA 2.06::
  37565. * Basic PowerPC Built-in Functions Available on ISA 2.07::
  37566. * Basic PowerPC Built-in Functions Available on ISA 3.0::
  37567. This section describes PowerPC built-in functions that do not require
  37568. the inclusion of any special header files to declare prototypes or
  37569. provide macro definitions. The sections that follow describe additional
  37570. PowerPC built-in functions.
  37571. 
  37572. File: gcc.info, Node: Basic PowerPC Built-in Functions Available on all Configurations, Next: Basic PowerPC Built-in Functions Available on ISA 2.05, Up: Basic PowerPC Built-in Functions
  37573. 6.60.23.1 Basic PowerPC Built-in Functions Available on all Configurations
  37574. ..........................................................................
  37575. -- Built-in Function: void __builtin_cpu_init (void)
  37576. This function is a 'nop' on the PowerPC platform and is included
  37577. solely to maintain API compatibility with the x86 builtins.
  37578. -- Built-in Function: int __builtin_cpu_is (const char *CPUNAME)
  37579. This function returns a value of '1' if the run-time CPU is of type
  37580. CPUNAME and returns '0' otherwise
  37581. The '__builtin_cpu_is' function requires GLIBC 2.23 or newer which
  37582. exports the hardware capability bits. GCC defines the macro
  37583. '__BUILTIN_CPU_SUPPORTS__' if the '__builtin_cpu_supports' built-in
  37584. function is fully supported.
  37585. If GCC was configured to use a GLIBC before 2.23, the built-in
  37586. function '__builtin_cpu_is' always returns a 0 and the compiler
  37587. issues a warning.
  37588. The following CPU names can be detected:
  37589. 'power9'
  37590. IBM POWER9 Server CPU.
  37591. 'power8'
  37592. IBM POWER8 Server CPU.
  37593. 'power7'
  37594. IBM POWER7 Server CPU.
  37595. 'power6x'
  37596. IBM POWER6 Server CPU (RAW mode).
  37597. 'power6'
  37598. IBM POWER6 Server CPU (Architected mode).
  37599. 'power5+'
  37600. IBM POWER5+ Server CPU.
  37601. 'power5'
  37602. IBM POWER5 Server CPU.
  37603. 'ppc970'
  37604. IBM 970 Server CPU (ie, Apple G5).
  37605. 'power4'
  37606. IBM POWER4 Server CPU.
  37607. 'ppca2'
  37608. IBM A2 64-bit Embedded CPU
  37609. 'ppc476'
  37610. IBM PowerPC 476FP 32-bit Embedded CPU.
  37611. 'ppc464'
  37612. IBM PowerPC 464 32-bit Embedded CPU.
  37613. 'ppc440'
  37614. PowerPC 440 32-bit Embedded CPU.
  37615. 'ppc405'
  37616. PowerPC 405 32-bit Embedded CPU.
  37617. 'ppc-cell-be'
  37618. IBM PowerPC Cell Broadband Engine Architecture CPU.
  37619. Here is an example:
  37620. #ifdef __BUILTIN_CPU_SUPPORTS__
  37621. if (__builtin_cpu_is ("power8"))
  37622. {
  37623. do_power8 (); // POWER8 specific implementation.
  37624. }
  37625. else
  37626. #endif
  37627. {
  37628. do_generic (); // Generic implementation.
  37629. }
  37630. -- Built-in Function: int __builtin_cpu_supports (const char *FEATURE)
  37631. This function returns a value of '1' if the run-time CPU supports
  37632. the HWCAP feature FEATURE and returns '0' otherwise.
  37633. The '__builtin_cpu_supports' function requires GLIBC 2.23 or newer
  37634. which exports the hardware capability bits. GCC defines the macro
  37635. '__BUILTIN_CPU_SUPPORTS__' if the '__builtin_cpu_supports' built-in
  37636. function is fully supported.
  37637. If GCC was configured to use a GLIBC before 2.23, the built-in
  37638. function '__builtin_cpu_suports' always returns a 0 and the
  37639. compiler issues a warning.
  37640. The following features can be detected:
  37641. '4xxmac'
  37642. 4xx CPU has a Multiply Accumulator.
  37643. 'altivec'
  37644. CPU has a SIMD/Vector Unit.
  37645. 'arch_2_05'
  37646. CPU supports ISA 2.05 (eg, POWER6)
  37647. 'arch_2_06'
  37648. CPU supports ISA 2.06 (eg, POWER7)
  37649. 'arch_2_07'
  37650. CPU supports ISA 2.07 (eg, POWER8)
  37651. 'arch_3_00'
  37652. CPU supports ISA 3.0 (eg, POWER9)
  37653. 'archpmu'
  37654. CPU supports the set of compatible performance monitoring
  37655. events.
  37656. 'booke'
  37657. CPU supports the Embedded ISA category.
  37658. 'cellbe'
  37659. CPU has a CELL broadband engine.
  37660. 'darn'
  37661. CPU supports the 'darn' (deliver a random number) instruction.
  37662. 'dfp'
  37663. CPU has a decimal floating point unit.
  37664. 'dscr'
  37665. CPU supports the data stream control register.
  37666. 'ebb'
  37667. CPU supports event base branching.
  37668. 'efpdouble'
  37669. CPU has a SPE double precision floating point unit.
  37670. 'efpsingle'
  37671. CPU has a SPE single precision floating point unit.
  37672. 'fpu'
  37673. CPU has a floating point unit.
  37674. 'htm'
  37675. CPU has hardware transaction memory instructions.
  37676. 'htm-nosc'
  37677. Kernel aborts hardware transactions when a syscall is made.
  37678. 'htm-no-suspend'
  37679. CPU supports hardware transaction memory but does not support
  37680. the 'tsuspend.' instruction.
  37681. 'ic_snoop'
  37682. CPU supports icache snooping capabilities.
  37683. 'ieee128'
  37684. CPU supports 128-bit IEEE binary floating point instructions.
  37685. 'isel'
  37686. CPU supports the integer select instruction.
  37687. 'mmu'
  37688. CPU has a memory management unit.
  37689. 'notb'
  37690. CPU does not have a timebase (eg, 601 and 403gx).
  37691. 'pa6t'
  37692. CPU supports the PA Semi 6T CORE ISA.
  37693. 'power4'
  37694. CPU supports ISA 2.00 (eg, POWER4)
  37695. 'power5'
  37696. CPU supports ISA 2.02 (eg, POWER5)
  37697. 'power5+'
  37698. CPU supports ISA 2.03 (eg, POWER5+)
  37699. 'power6x'
  37700. CPU supports ISA 2.05 (eg, POWER6) extended opcodes mffgpr and
  37701. mftgpr.
  37702. 'ppc32'
  37703. CPU supports 32-bit mode execution.
  37704. 'ppc601'
  37705. CPU supports the old POWER ISA (eg, 601)
  37706. 'ppc64'
  37707. CPU supports 64-bit mode execution.
  37708. 'ppcle'
  37709. CPU supports a little-endian mode that uses address swizzling.
  37710. 'scv'
  37711. Kernel supports system call vectored.
  37712. 'smt'
  37713. CPU support simultaneous multi-threading.
  37714. 'spe'
  37715. CPU has a signal processing extension unit.
  37716. 'tar'
  37717. CPU supports the target address register.
  37718. 'true_le'
  37719. CPU supports true little-endian mode.
  37720. 'ucache'
  37721. CPU has unified I/D cache.
  37722. 'vcrypto'
  37723. CPU supports the vector cryptography instructions.
  37724. 'vsx'
  37725. CPU supports the vector-scalar extension.
  37726. Here is an example:
  37727. #ifdef __BUILTIN_CPU_SUPPORTS__
  37728. if (__builtin_cpu_supports ("fpu"))
  37729. {
  37730. asm("fadd %0,%1,%2" : "=d"(dst) : "d"(src1), "d"(src2));
  37731. }
  37732. else
  37733. #endif
  37734. {
  37735. dst = __fadd (src1, src2); // Software FP addition function.
  37736. }
  37737. The following built-in functions are also available on all PowerPC
  37738. processors:
  37739. uint64_t __builtin_ppc_get_timebase ();
  37740. unsigned long __builtin_ppc_mftb ();
  37741. double __builtin_unpack_ibm128 (__ibm128, int);
  37742. __ibm128 __builtin_pack_ibm128 (double, double);
  37743. double __builtin_mffs (void);
  37744. void __builtin_mtfsf (const int, double);
  37745. void __builtin_mtfsb0 (const int);
  37746. void __builtin_mtfsb1 (const int);
  37747. void __builtin_set_fpscr_rn (int);
  37748. The '__builtin_ppc_get_timebase' and '__builtin_ppc_mftb' functions
  37749. generate instructions to read the Time Base Register. The
  37750. '__builtin_ppc_get_timebase' function may generate multiple instructions
  37751. and always returns the 64 bits of the Time Base Register. The
  37752. '__builtin_ppc_mftb' function always generates one instruction and
  37753. returns the Time Base Register value as an unsigned long, throwing away
  37754. the most significant word on 32-bit environments. The '__builtin_mffs'
  37755. return the value of the FPSCR register. Note, ISA 3.0 supports the
  37756. '__builtin_mffsl()' which permits software to read the control and
  37757. non-sticky status bits in the FSPCR without the higher latency
  37758. associated with accessing the sticky status bits. The '__builtin_mtfsf'
  37759. takes a constant 8-bit integer field mask and a double precision
  37760. floating point argument and generates the 'mtfsf' (extended mnemonic)
  37761. instruction to write new values to selected fields of the FPSCR. The
  37762. '__builtin_mtfsb0' and '__builtin_mtfsb1' take the bit to change as an
  37763. argument. The valid bit range is between 0 and 31. The builtins map to
  37764. the 'mtfsb0' and 'mtfsb1' instructions which take the argument and add
  37765. 32. Hence these instructions only modify the FPSCR[32:63] bits by
  37766. changing the specified bit to a zero or one respectively. The
  37767. '__builtin_set_fpscr_rn' builtin allows changing both of the floating
  37768. point rounding mode bits. The argument is a 2-bit value. The argument
  37769. can either be a 'const int' or stored in a variable. The builtin uses
  37770. the ISA 3.0 instruction 'mffscrn' if available, otherwise it reads the
  37771. FPSCR, masks the current rounding mode bits out and OR's in the new
  37772. value.
  37773. 
  37774. File: gcc.info, Node: Basic PowerPC Built-in Functions Available on ISA 2.05, Next: Basic PowerPC Built-in Functions Available on ISA 2.06, Prev: Basic PowerPC Built-in Functions Available on all Configurations, Up: Basic PowerPC Built-in Functions
  37775. 6.60.23.2 Basic PowerPC Built-in Functions Available on ISA 2.05
  37776. ................................................................
  37777. The basic built-in functions described in this section are available on
  37778. the PowerPC family of processors starting with ISA 2.05 or later.
  37779. Unless specific options are explicitly disabled on the command line,
  37780. specifying option '-mcpu=power6' has the effect of enabling the
  37781. '-mpowerpc64', '-mpowerpc-gpopt', '-mpowerpc-gfxopt', '-mmfcrf',
  37782. '-mpopcntb', '-mfprnd', '-mcmpb', '-mhard-dfp', and '-mrecip-precision'
  37783. options. Specify the '-maltivec' option explicitly in combination with
  37784. the above options if desired.
  37785. The following functions require option '-mcmpb'.
  37786. unsigned long long __builtin_cmpb (unsigned long long int, unsigned long long int);
  37787. unsigned int __builtin_cmpb (unsigned int, unsigned int);
  37788. The '__builtin_cmpb' function performs a byte-wise compare on the
  37789. contents of its two arguments, returning the result of the byte-wise
  37790. comparison as the returned value. For each byte comparison, the
  37791. corresponding byte of the return value holds 0xff if the input bytes are
  37792. equal and 0 if the input bytes are not equal. If either of the
  37793. arguments to this built-in function is wider than 32 bits, the function
  37794. call expands into the form that expects 'unsigned long long int'
  37795. arguments which is only available on 64-bit targets.
  37796. The following built-in functions are available when hardware decimal
  37797. floating point ('-mhard-dfp') is available:
  37798. void __builtin_set_fpscr_drn(int);
  37799. _Decimal64 __builtin_ddedpd (int, _Decimal64);
  37800. _Decimal128 __builtin_ddedpdq (int, _Decimal128);
  37801. _Decimal64 __builtin_denbcd (int, _Decimal64);
  37802. _Decimal128 __builtin_denbcdq (int, _Decimal128);
  37803. _Decimal64 __builtin_diex (long long, _Decimal64);
  37804. _Decimal128 _builtin_diexq (long long, _Decimal128);
  37805. _Decimal64 __builtin_dscli (_Decimal64, int);
  37806. _Decimal128 __builtin_dscliq (_Decimal128, int);
  37807. _Decimal64 __builtin_dscri (_Decimal64, int);
  37808. _Decimal128 __builtin_dscriq (_Decimal128, int);
  37809. long long __builtin_dxex (_Decimal64);
  37810. long long __builtin_dxexq (_Decimal128);
  37811. _Decimal128 __builtin_pack_dec128 (unsigned long long, unsigned long long);
  37812. unsigned long long __builtin_unpack_dec128 (_Decimal128, int);
  37813. The __builtin_set_fpscr_drn builtin allows changing the three decimal
  37814. floating point rounding mode bits. The argument is a 3-bit value. The
  37815. argument can either be a const int or the value can be stored in
  37816. a variable.
  37817. The builtin uses the ISA 3.0 instruction mffscdrn if available.
  37818. Otherwise the builtin reads the FPSCR, masks the current decimal rounding
  37819. mode bits out and OR's in the new value.
  37820. The following functions require '-mhard-float', '-mpowerpc-gfxopt', and
  37821. '-mpopcntb' options.
  37822. double __builtin_recipdiv (double, double);
  37823. float __builtin_recipdivf (float, float);
  37824. double __builtin_rsqrt (double);
  37825. float __builtin_rsqrtf (float);
  37826. The 'vec_rsqrt', '__builtin_rsqrt', and '__builtin_rsqrtf' functions
  37827. generate multiple instructions to implement the reciprocal sqrt
  37828. functionality using reciprocal sqrt estimate instructions.
  37829. The '__builtin_recipdiv', and '__builtin_recipdivf' functions generate
  37830. multiple instructions to implement division using the reciprocal
  37831. estimate instructions.
  37832. The following functions require '-mhard-float' and '-mmultiple'
  37833. options.
  37834. The '__builtin_unpack_longdouble' function takes a 'long double'
  37835. argument and a compile time constant of 0 or 1. If the constant is 0,
  37836. the first 'double' within the 'long double' is returned, otherwise the
  37837. second 'double' is returned. The '__builtin_unpack_longdouble' function
  37838. is only available if 'long double' uses the IBM extended double
  37839. representation.
  37840. The '__builtin_pack_longdouble' function takes two 'double' arguments
  37841. and returns a 'long double' value that combines the two arguments. The
  37842. '__builtin_pack_longdouble' function is only available if 'long double'
  37843. uses the IBM extended double representation.
  37844. The '__builtin_unpack_ibm128' function takes a '__ibm128' argument and
  37845. a compile time constant of 0 or 1. If the constant is 0, the first
  37846. 'double' within the '__ibm128' is returned, otherwise the second
  37847. 'double' is returned.
  37848. The '__builtin_pack_ibm128' function takes two 'double' arguments and
  37849. returns a '__ibm128' value that combines the two arguments.
  37850. Additional built-in functions are available for the 64-bit PowerPC
  37851. family of processors, for efficient use of 128-bit floating point
  37852. ('__float128') values.
  37853. 
  37854. File: gcc.info, Node: Basic PowerPC Built-in Functions Available on ISA 2.06, Next: Basic PowerPC Built-in Functions Available on ISA 2.07, Prev: Basic PowerPC Built-in Functions Available on ISA 2.05, Up: Basic PowerPC Built-in Functions
  37855. 6.60.23.3 Basic PowerPC Built-in Functions Available on ISA 2.06
  37856. ................................................................
  37857. The basic built-in functions described in this section are available on
  37858. the PowerPC family of processors starting with ISA 2.05 or later.
  37859. Unless specific options are explicitly disabled on the command line,
  37860. specifying option '-mcpu=power7' has the effect of enabling all the same
  37861. options as for '-mcpu=power6' in addition to the '-maltivec',
  37862. '-mpopcntd', and '-mvsx' options.
  37863. The following basic built-in functions require '-mpopcntd':
  37864. unsigned int __builtin_addg6s (unsigned int, unsigned int);
  37865. long long __builtin_bpermd (long long, long long);
  37866. unsigned int __builtin_cbcdtd (unsigned int);
  37867. unsigned int __builtin_cdtbcd (unsigned int);
  37868. long long __builtin_divde (long long, long long);
  37869. unsigned long long __builtin_divdeu (unsigned long long, unsigned long long);
  37870. int __builtin_divwe (int, int);
  37871. unsigned int __builtin_divweu (unsigned int, unsigned int);
  37872. vector __int128 __builtin_pack_vector_int128 (long long, long long);
  37873. void __builtin_rs6000_speculation_barrier (void);
  37874. long long __builtin_unpack_vector_int128 (vector __int128, signed char);
  37875. Of these, the '__builtin_divde' and '__builtin_divdeu' functions
  37876. require a 64-bit environment.
  37877. The following basic built-in functions, which are also supported on x86
  37878. targets, require '-mfloat128'.
  37879. __float128 __builtin_fabsq (__float128);
  37880. __float128 __builtin_copysignq (__float128, __float128);
  37881. __float128 __builtin_infq (void);
  37882. __float128 __builtin_huge_valq (void);
  37883. __float128 __builtin_nanq (void);
  37884. __float128 __builtin_nansq (void);
  37885. __float128 __builtin_sqrtf128 (__float128);
  37886. __float128 __builtin_fmaf128 (__float128, __float128, __float128);
  37887. 
  37888. File: gcc.info, Node: Basic PowerPC Built-in Functions Available on ISA 2.07, Next: Basic PowerPC Built-in Functions Available on ISA 3.0, Prev: Basic PowerPC Built-in Functions Available on ISA 2.06, Up: Basic PowerPC Built-in Functions
  37889. 6.60.23.4 Basic PowerPC Built-in Functions Available on ISA 2.07
  37890. ................................................................
  37891. The basic built-in functions described in this section are available on
  37892. the PowerPC family of processors starting with ISA 2.07 or later.
  37893. Unless specific options are explicitly disabled on the command line,
  37894. specifying option '-mcpu=power8' has the effect of enabling all the same
  37895. options as for '-mcpu=power7' in addition to the '-mpower8-fusion',
  37896. '-mpower8-vector', '-mcrypto', '-mhtm', '-mquad-memory', and
  37897. '-mquad-memory-atomic' options.
  37898. This section intentionally empty.
  37899. 
  37900. File: gcc.info, Node: Basic PowerPC Built-in Functions Available on ISA 3.0, Prev: Basic PowerPC Built-in Functions Available on ISA 2.07, Up: Basic PowerPC Built-in Functions
  37901. 6.60.23.5 Basic PowerPC Built-in Functions Available on ISA 3.0
  37902. ...............................................................
  37903. The basic built-in functions described in this section are available on
  37904. the PowerPC family of processors starting with ISA 3.0 or later. Unless
  37905. specific options are explicitly disabled on the command line, specifying
  37906. option '-mcpu=power9' has the effect of enabling all the same options as
  37907. for '-mcpu=power8' in addition to the '-misel' option.
  37908. The following built-in functions are available on Linux 64-bit systems
  37909. that use the ISA 3.0 instruction set ('-mcpu=power9'):
  37910. '__float128 __builtin_addf128_round_to_odd (__float128, __float128)'
  37911. Perform a 128-bit IEEE floating point add using round to odd as the
  37912. rounding mode.
  37913. '__float128 __builtin_subf128_round_to_odd (__float128, __float128)'
  37914. Perform a 128-bit IEEE floating point subtract using round to odd
  37915. as the rounding mode.
  37916. '__float128 __builtin_mulf128_round_to_odd (__float128, __float128)'
  37917. Perform a 128-bit IEEE floating point multiply using round to odd
  37918. as the rounding mode.
  37919. '__float128 __builtin_divf128_round_to_odd (__float128, __float128)'
  37920. Perform a 128-bit IEEE floating point divide using round to odd as
  37921. the rounding mode.
  37922. '__float128 __builtin_sqrtf128_round_to_odd (__float128)'
  37923. Perform a 128-bit IEEE floating point square root using round to
  37924. odd as the rounding mode.
  37925. '__float128 __builtin_fmaf128_round_to_odd (__float128, __float128, __float128)'
  37926. Perform a 128-bit IEEE floating point fused multiply and add
  37927. operation using round to odd as the rounding mode.
  37928. 'double __builtin_truncf128_round_to_odd (__float128)'
  37929. Convert a 128-bit IEEE floating point value to 'double' using round
  37930. to odd as the rounding mode.
  37931. The following additional built-in functions are also available for the
  37932. PowerPC family of processors, starting with ISA 3.0 or later:
  37933. long long __builtin_darn (void);
  37934. long long __builtin_darn_raw (void);
  37935. int __builtin_darn_32 (void);
  37936. The '__builtin_darn' and '__builtin_darn_raw' functions require a
  37937. 64-bit environment supporting ISA 3.0 or later. The '__builtin_darn'
  37938. function provides a 64-bit conditioned random number. The
  37939. '__builtin_darn_raw' function provides a 64-bit raw random number. The
  37940. '__builtin_darn_32' function provides a 32-bit conditioned random
  37941. number.
  37942. The following additional built-in functions are also available for the
  37943. PowerPC family of processors, starting with ISA 3.0 or later:
  37944. int __builtin_byte_in_set (unsigned char u, unsigned long long set);
  37945. int __builtin_byte_in_range (unsigned char u, unsigned int range);
  37946. int __builtin_byte_in_either_range (unsigned char u, unsigned int ranges);
  37947. int __builtin_dfp_dtstsfi_lt (unsigned int comparison, _Decimal64 value);
  37948. int __builtin_dfp_dtstsfi_lt (unsigned int comparison, _Decimal128 value);
  37949. int __builtin_dfp_dtstsfi_lt_dd (unsigned int comparison, _Decimal64 value);
  37950. int __builtin_dfp_dtstsfi_lt_td (unsigned int comparison, _Decimal128 value);
  37951. int __builtin_dfp_dtstsfi_gt (unsigned int comparison, _Decimal64 value);
  37952. int __builtin_dfp_dtstsfi_gt (unsigned int comparison, _Decimal128 value);
  37953. int __builtin_dfp_dtstsfi_gt_dd (unsigned int comparison, _Decimal64 value);
  37954. int __builtin_dfp_dtstsfi_gt_td (unsigned int comparison, _Decimal128 value);
  37955. int __builtin_dfp_dtstsfi_eq (unsigned int comparison, _Decimal64 value);
  37956. int __builtin_dfp_dtstsfi_eq (unsigned int comparison, _Decimal128 value);
  37957. int __builtin_dfp_dtstsfi_eq_dd (unsigned int comparison, _Decimal64 value);
  37958. int __builtin_dfp_dtstsfi_eq_td (unsigned int comparison, _Decimal128 value);
  37959. int __builtin_dfp_dtstsfi_ov (unsigned int comparison, _Decimal64 value);
  37960. int __builtin_dfp_dtstsfi_ov (unsigned int comparison, _Decimal128 value);
  37961. int __builtin_dfp_dtstsfi_ov_dd (unsigned int comparison, _Decimal64 value);
  37962. int __builtin_dfp_dtstsfi_ov_td (unsigned int comparison, _Decimal128 value);
  37963. double __builtin_mffsl(void);
  37964. The '__builtin_byte_in_set' function requires a 64-bit environment
  37965. supporting ISA 3.0 or later. This function returns a non-zero value if
  37966. and only if its 'u' argument exactly equals one of the eight bytes
  37967. contained within its 64-bit 'set' argument.
  37968. The '__builtin_byte_in_range' and '__builtin_byte_in_either_range'
  37969. require an environment supporting ISA 3.0 or later. For these two
  37970. functions, the 'range' argument is encoded as 4 bytes, organized as
  37971. 'hi_1:lo_1:hi_2:lo_2'. The '__builtin_byte_in_range' function returns a
  37972. non-zero value if and only if its 'u' argument is within the range
  37973. bounded between 'lo_2' and 'hi_2' inclusive. The
  37974. '__builtin_byte_in_either_range' function returns non-zero if and only
  37975. if its 'u' argument is within either the range bounded between 'lo_1'
  37976. and 'hi_1' inclusive or the range bounded between 'lo_2' and 'hi_2'
  37977. inclusive.
  37978. The '__builtin_dfp_dtstsfi_lt' function returns a non-zero value if and
  37979. only if the number of signficant digits of its 'value' argument is less
  37980. than its 'comparison' argument. The '__builtin_dfp_dtstsfi_lt_dd' and
  37981. '__builtin_dfp_dtstsfi_lt_td' functions behave similarly, but require
  37982. that the type of the 'value' argument be '__Decimal64' and
  37983. '__Decimal128' respectively.
  37984. The '__builtin_dfp_dtstsfi_gt' function returns a non-zero value if and
  37985. only if the number of signficant digits of its 'value' argument is
  37986. greater than its 'comparison' argument. The
  37987. '__builtin_dfp_dtstsfi_gt_dd' and '__builtin_dfp_dtstsfi_gt_td'
  37988. functions behave similarly, but require that the type of the 'value'
  37989. argument be '__Decimal64' and '__Decimal128' respectively.
  37990. The '__builtin_dfp_dtstsfi_eq' function returns a non-zero value if and
  37991. only if the number of signficant digits of its 'value' argument equals
  37992. its 'comparison' argument. The '__builtin_dfp_dtstsfi_eq_dd' and
  37993. '__builtin_dfp_dtstsfi_eq_td' functions behave similarly, but require
  37994. that the type of the 'value' argument be '__Decimal64' and
  37995. '__Decimal128' respectively.
  37996. The '__builtin_dfp_dtstsfi_ov' function returns a non-zero value if and
  37997. only if its 'value' argument has an undefined number of significant
  37998. digits, such as when 'value' is an encoding of 'NaN'. The
  37999. '__builtin_dfp_dtstsfi_ov_dd' and '__builtin_dfp_dtstsfi_ov_td'
  38000. functions behave similarly, but require that the type of the 'value'
  38001. argument be '__Decimal64' and '__Decimal128' respectively.
  38002. The '__builtin_mffsl' uses the ISA 3.0 'mffsl' instruction to read the
  38003. FPSCR. The instruction is a lower latency version of the 'mffs'
  38004. instruction. If the 'mffsl' instruction is not available, then the
  38005. builtin uses the older 'mffs' instruction to read the FPSCR.
  38006. 
  38007. File: gcc.info, Node: PowerPC AltiVec/VSX Built-in Functions, Next: PowerPC Hardware Transactional Memory Built-in Functions, Prev: Basic PowerPC Built-in Functions, Up: Target Builtins
  38008. 6.60.24 PowerPC AltiVec/VSX Built-in Functions
  38009. ----------------------------------------------
  38010. GCC provides an interface for the PowerPC family of processors to access
  38011. the AltiVec operations described in Motorola's AltiVec Programming
  38012. Interface Manual. The interface is made available by including
  38013. '<altivec.h>' and using '-maltivec' and '-mabi=altivec'. The interface
  38014. supports the following vector types.
  38015. vector unsigned char
  38016. vector signed char
  38017. vector bool char
  38018. vector unsigned short
  38019. vector signed short
  38020. vector bool short
  38021. vector pixel
  38022. vector unsigned int
  38023. vector signed int
  38024. vector bool int
  38025. vector float
  38026. GCC's implementation of the high-level language interface available
  38027. from C and C++ code differs from Motorola's documentation in several
  38028. ways.
  38029. * A vector constant is a list of constant expressions within curly
  38030. braces.
  38031. * A vector initializer requires no cast if the vector constant is of
  38032. the same type as the variable it is initializing.
  38033. * If 'signed' or 'unsigned' is omitted, the signedness of the vector
  38034. type is the default signedness of the base type. The default
  38035. varies depending on the operating system, so a portable program
  38036. should always specify the signedness.
  38037. * Compiling with '-maltivec' adds keywords '__vector', 'vector',
  38038. '__pixel', 'pixel', '__bool' and 'bool'. When compiling ISO C, the
  38039. context-sensitive substitution of the keywords 'vector', 'pixel'
  38040. and 'bool' is disabled. To use them, you must include
  38041. '<altivec.h>' instead.
  38042. * GCC allows using a 'typedef' name as the type specifier for a
  38043. vector type, but only under the following circumstances:
  38044. * When using '__vector' instead of 'vector'; for example,
  38045. typedef signed short int16;
  38046. __vector int16 data;
  38047. * When using 'vector' in keyword-and-predefine mode; for
  38048. example,
  38049. typedef signed short int16;
  38050. vector int16 data;
  38051. Note that keyword-and-predefine mode is enabled by disabling
  38052. GNU extensions (e.g., by using '-std=c11') and including
  38053. '<altivec.h>'.
  38054. * For C, overloaded functions are implemented with macros so the
  38055. following does not work:
  38056. vec_add ((vector signed int){1, 2, 3, 4}, foo);
  38057. Since 'vec_add' is a macro, the vector constant in the example is
  38058. treated as four separate arguments. Wrap the entire argument in
  38059. parentheses for this to work.
  38060. _Note:_ Only the '<altivec.h>' interface is supported. Internally, GCC
  38061. uses built-in functions to achieve the functionality in the
  38062. aforementioned header file, but they are not supported and are subject
  38063. to change without notice.
  38064. GCC complies with the OpenPOWER 64-Bit ELF V2 ABI Specification, which
  38065. may be found at
  38066. <https://openpowerfoundation.org/?resource_lib=64-bit-elf-v2-abi-specification-power-architecture>.
  38067. Appendix A of this document lists the vector API interfaces that must be
  38068. provided by compliant compilers. Programmers should preferentially use
  38069. the interfaces described therein. However, historically GCC has
  38070. provided additional interfaces for access to vector instructions. These
  38071. are briefly described below.
  38072. * Menu:
  38073. * PowerPC AltiVec Built-in Functions on ISA 2.05::
  38074. * PowerPC AltiVec Built-in Functions Available on ISA 2.06::
  38075. * PowerPC AltiVec Built-in Functions Available on ISA 2.07::
  38076. * PowerPC AltiVec Built-in Functions Available on ISA 3.0::
  38077. 
  38078. File: gcc.info, Node: PowerPC AltiVec Built-in Functions on ISA 2.05, Next: PowerPC AltiVec Built-in Functions Available on ISA 2.06, Up: PowerPC AltiVec/VSX Built-in Functions
  38079. 6.60.24.1 PowerPC AltiVec Built-in Functions on ISA 2.05
  38080. ........................................................
  38081. The following interfaces are supported for the generic and specific
  38082. AltiVec operations and the AltiVec predicates. In cases where there is
  38083. a direct mapping between generic and specific operations, only the
  38084. generic names are shown here, although the specific operations can also
  38085. be used.
  38086. Arguments that are documented as 'const int' require literal integral
  38087. values within the range required for that operation.
  38088. vector signed char vec_abs (vector signed char);
  38089. vector signed short vec_abs (vector signed short);
  38090. vector signed int vec_abs (vector signed int);
  38091. vector float vec_abs (vector float);
  38092. vector signed char vec_abss (vector signed char);
  38093. vector signed short vec_abss (vector signed short);
  38094. vector signed int vec_abss (vector signed int);
  38095. vector signed char vec_add (vector bool char, vector signed char);
  38096. vector signed char vec_add (vector signed char, vector bool char);
  38097. vector signed char vec_add (vector signed char, vector signed char);
  38098. vector unsigned char vec_add (vector bool char, vector unsigned char);
  38099. vector unsigned char vec_add (vector unsigned char, vector bool char);
  38100. vector unsigned char vec_add (vector unsigned char, vector unsigned char);
  38101. vector signed short vec_add (vector bool short, vector signed short);
  38102. vector signed short vec_add (vector signed short, vector bool short);
  38103. vector signed short vec_add (vector signed short, vector signed short);
  38104. vector unsigned short vec_add (vector bool short, vector unsigned short);
  38105. vector unsigned short vec_add (vector unsigned short, vector bool short);
  38106. vector unsigned short vec_add (vector unsigned short, vector unsigned short);
  38107. vector signed int vec_add (vector bool int, vector signed int);
  38108. vector signed int vec_add (vector signed int, vector bool int);
  38109. vector signed int vec_add (vector signed int, vector signed int);
  38110. vector unsigned int vec_add (vector bool int, vector unsigned int);
  38111. vector unsigned int vec_add (vector unsigned int, vector bool int);
  38112. vector unsigned int vec_add (vector unsigned int, vector unsigned int);
  38113. vector float vec_add (vector float, vector float);
  38114. vector unsigned int vec_addc (vector unsigned int, vector unsigned int);
  38115. vector unsigned char vec_adds (vector bool char, vector unsigned char);
  38116. vector unsigned char vec_adds (vector unsigned char, vector bool char);
  38117. vector unsigned char vec_adds (vector unsigned char, vector unsigned char);
  38118. vector signed char vec_adds (vector bool char, vector signed char);
  38119. vector signed char vec_adds (vector signed char, vector bool char);
  38120. vector signed char vec_adds (vector signed char, vector signed char);
  38121. vector unsigned short vec_adds (vector bool short, vector unsigned short);
  38122. vector unsigned short vec_adds (vector unsigned short, vector bool short);
  38123. vector unsigned short vec_adds (vector unsigned short, vector unsigned short);
  38124. vector signed short vec_adds (vector bool short, vector signed short);
  38125. vector signed short vec_adds (vector signed short, vector bool short);
  38126. vector signed short vec_adds (vector signed short, vector signed short);
  38127. vector unsigned int vec_adds (vector bool int, vector unsigned int);
  38128. vector unsigned int vec_adds (vector unsigned int, vector bool int);
  38129. vector unsigned int vec_adds (vector unsigned int, vector unsigned int);
  38130. vector signed int vec_adds (vector bool int, vector signed int);
  38131. vector signed int vec_adds (vector signed int, vector bool int);
  38132. vector signed int vec_adds (vector signed int, vector signed int);
  38133. int vec_all_eq (vector signed char, vector bool char);
  38134. int vec_all_eq (vector signed char, vector signed char);
  38135. int vec_all_eq (vector unsigned char, vector bool char);
  38136. int vec_all_eq (vector unsigned char, vector unsigned char);
  38137. int vec_all_eq (vector bool char, vector bool char);
  38138. int vec_all_eq (vector bool char, vector unsigned char);
  38139. int vec_all_eq (vector bool char, vector signed char);
  38140. int vec_all_eq (vector signed short, vector bool short);
  38141. int vec_all_eq (vector signed short, vector signed short);
  38142. int vec_all_eq (vector unsigned short, vector bool short);
  38143. int vec_all_eq (vector unsigned short, vector unsigned short);
  38144. int vec_all_eq (vector bool short, vector bool short);
  38145. int vec_all_eq (vector bool short, vector unsigned short);
  38146. int vec_all_eq (vector bool short, vector signed short);
  38147. int vec_all_eq (vector pixel, vector pixel);
  38148. int vec_all_eq (vector signed int, vector bool int);
  38149. int vec_all_eq (vector signed int, vector signed int);
  38150. int vec_all_eq (vector unsigned int, vector bool int);
  38151. int vec_all_eq (vector unsigned int, vector unsigned int);
  38152. int vec_all_eq (vector bool int, vector bool int);
  38153. int vec_all_eq (vector bool int, vector unsigned int);
  38154. int vec_all_eq (vector bool int, vector signed int);
  38155. int vec_all_eq (vector float, vector float);
  38156. int vec_all_ge (vector bool char, vector unsigned char);
  38157. int vec_all_ge (vector unsigned char, vector bool char);
  38158. int vec_all_ge (vector unsigned char, vector unsigned char);
  38159. int vec_all_ge (vector bool char, vector signed char);
  38160. int vec_all_ge (vector signed char, vector bool char);
  38161. int vec_all_ge (vector signed char, vector signed char);
  38162. int vec_all_ge (vector bool short, vector unsigned short);
  38163. int vec_all_ge (vector unsigned short, vector bool short);
  38164. int vec_all_ge (vector unsigned short, vector unsigned short);
  38165. int vec_all_ge (vector signed short, vector signed short);
  38166. int vec_all_ge (vector bool short, vector signed short);
  38167. int vec_all_ge (vector signed short, vector bool short);
  38168. int vec_all_ge (vector bool int, vector unsigned int);
  38169. int vec_all_ge (vector unsigned int, vector bool int);
  38170. int vec_all_ge (vector unsigned int, vector unsigned int);
  38171. int vec_all_ge (vector bool int, vector signed int);
  38172. int vec_all_ge (vector signed int, vector bool int);
  38173. int vec_all_ge (vector signed int, vector signed int);
  38174. int vec_all_ge (vector float, vector float);
  38175. int vec_all_gt (vector bool char, vector unsigned char);
  38176. int vec_all_gt (vector unsigned char, vector bool char);
  38177. int vec_all_gt (vector unsigned char, vector unsigned char);
  38178. int vec_all_gt (vector bool char, vector signed char);
  38179. int vec_all_gt (vector signed char, vector bool char);
  38180. int vec_all_gt (vector signed char, vector signed char);
  38181. int vec_all_gt (vector bool short, vector unsigned short);
  38182. int vec_all_gt (vector unsigned short, vector bool short);
  38183. int vec_all_gt (vector unsigned short, vector unsigned short);
  38184. int vec_all_gt (vector bool short, vector signed short);
  38185. int vec_all_gt (vector signed short, vector bool short);
  38186. int vec_all_gt (vector signed short, vector signed short);
  38187. int vec_all_gt (vector bool int, vector unsigned int);
  38188. int vec_all_gt (vector unsigned int, vector bool int);
  38189. int vec_all_gt (vector unsigned int, vector unsigned int);
  38190. int vec_all_gt (vector bool int, vector signed int);
  38191. int vec_all_gt (vector signed int, vector bool int);
  38192. int vec_all_gt (vector signed int, vector signed int);
  38193. int vec_all_gt (vector float, vector float);
  38194. int vec_all_in (vector float, vector float);
  38195. int vec_all_le (vector bool char, vector unsigned char);
  38196. int vec_all_le (vector unsigned char, vector bool char);
  38197. int vec_all_le (vector unsigned char, vector unsigned char);
  38198. int vec_all_le (vector bool char, vector signed char);
  38199. int vec_all_le (vector signed char, vector bool char);
  38200. int vec_all_le (vector signed char, vector signed char);
  38201. int vec_all_le (vector bool short, vector unsigned short);
  38202. int vec_all_le (vector unsigned short, vector bool short);
  38203. int vec_all_le (vector unsigned short, vector unsigned short);
  38204. int vec_all_le (vector bool short, vector signed short);
  38205. int vec_all_le (vector signed short, vector bool short);
  38206. int vec_all_le (vector signed short, vector signed short);
  38207. int vec_all_le (vector bool int, vector unsigned int);
  38208. int vec_all_le (vector unsigned int, vector bool int);
  38209. int vec_all_le (vector unsigned int, vector unsigned int);
  38210. int vec_all_le (vector bool int, vector signed int);
  38211. int vec_all_le (vector signed int, vector bool int);
  38212. int vec_all_le (vector signed int, vector signed int);
  38213. int vec_all_le (vector float, vector float);
  38214. int vec_all_lt (vector bool char, vector unsigned char);
  38215. int vec_all_lt (vector unsigned char, vector bool char);
  38216. int vec_all_lt (vector unsigned char, vector unsigned char);
  38217. int vec_all_lt (vector bool char, vector signed char);
  38218. int vec_all_lt (vector signed char, vector bool char);
  38219. int vec_all_lt (vector signed char, vector signed char);
  38220. int vec_all_lt (vector bool short, vector unsigned short);
  38221. int vec_all_lt (vector unsigned short, vector bool short);
  38222. int vec_all_lt (vector unsigned short, vector unsigned short);
  38223. int vec_all_lt (vector bool short, vector signed short);
  38224. int vec_all_lt (vector signed short, vector bool short);
  38225. int vec_all_lt (vector signed short, vector signed short);
  38226. int vec_all_lt (vector bool int, vector unsigned int);
  38227. int vec_all_lt (vector unsigned int, vector bool int);
  38228. int vec_all_lt (vector unsigned int, vector unsigned int);
  38229. int vec_all_lt (vector bool int, vector signed int);
  38230. int vec_all_lt (vector signed int, vector bool int);
  38231. int vec_all_lt (vector signed int, vector signed int);
  38232. int vec_all_lt (vector float, vector float);
  38233. int vec_all_nan (vector float);
  38234. int vec_all_ne (vector signed char, vector bool char);
  38235. int vec_all_ne (vector signed char, vector signed char);
  38236. int vec_all_ne (vector unsigned char, vector bool char);
  38237. int vec_all_ne (vector unsigned char, vector unsigned char);
  38238. int vec_all_ne (vector bool char, vector bool char);
  38239. int vec_all_ne (vector bool char, vector unsigned char);
  38240. int vec_all_ne (vector bool char, vector signed char);
  38241. int vec_all_ne (vector signed short, vector bool short);
  38242. int vec_all_ne (vector signed short, vector signed short);
  38243. int vec_all_ne (vector unsigned short, vector bool short);
  38244. int vec_all_ne (vector unsigned short, vector unsigned short);
  38245. int vec_all_ne (vector bool short, vector bool short);
  38246. int vec_all_ne (vector bool short, vector unsigned short);
  38247. int vec_all_ne (vector bool short, vector signed short);
  38248. int vec_all_ne (vector pixel, vector pixel);
  38249. int vec_all_ne (vector signed int, vector bool int);
  38250. int vec_all_ne (vector signed int, vector signed int);
  38251. int vec_all_ne (vector unsigned int, vector bool int);
  38252. int vec_all_ne (vector unsigned int, vector unsigned int);
  38253. int vec_all_ne (vector bool int, vector bool int);
  38254. int vec_all_ne (vector bool int, vector unsigned int);
  38255. int vec_all_ne (vector bool int, vector signed int);
  38256. int vec_all_ne (vector float, vector float);
  38257. int vec_all_nge (vector float, vector float);
  38258. int vec_all_ngt (vector float, vector float);
  38259. int vec_all_nle (vector float, vector float);
  38260. int vec_all_nlt (vector float, vector float);
  38261. int vec_all_numeric (vector float);
  38262. vector float vec_and (vector float, vector float);
  38263. vector float vec_and (vector float, vector bool int);
  38264. vector float vec_and (vector bool int, vector float);
  38265. vector bool int vec_and (vector bool int, vector bool int);
  38266. vector signed int vec_and (vector bool int, vector signed int);
  38267. vector signed int vec_and (vector signed int, vector bool int);
  38268. vector signed int vec_and (vector signed int, vector signed int);
  38269. vector unsigned int vec_and (vector bool int, vector unsigned int);
  38270. vector unsigned int vec_and (vector unsigned int, vector bool int);
  38271. vector unsigned int vec_and (vector unsigned int, vector unsigned int);
  38272. vector bool short vec_and (vector bool short, vector bool short);
  38273. vector signed short vec_and (vector bool short, vector signed short);
  38274. vector signed short vec_and (vector signed short, vector bool short);
  38275. vector signed short vec_and (vector signed short, vector signed short);
  38276. vector unsigned short vec_and (vector bool short, vector unsigned short);
  38277. vector unsigned short vec_and (vector unsigned short, vector bool short);
  38278. vector unsigned short vec_and (vector unsigned short, vector unsigned short);
  38279. vector signed char vec_and (vector bool char, vector signed char);
  38280. vector bool char vec_and (vector bool char, vector bool char);
  38281. vector signed char vec_and (vector signed char, vector bool char);
  38282. vector signed char vec_and (vector signed char, vector signed char);
  38283. vector unsigned char vec_and (vector bool char, vector unsigned char);
  38284. vector unsigned char vec_and (vector unsigned char, vector bool char);
  38285. vector unsigned char vec_and (vector unsigned char, vector unsigned char);
  38286. vector float vec_andc (vector float, vector float);
  38287. vector float vec_andc (vector float, vector bool int);
  38288. vector float vec_andc (vector bool int, vector float);
  38289. vector bool int vec_andc (vector bool int, vector bool int);
  38290. vector signed int vec_andc (vector bool int, vector signed int);
  38291. vector signed int vec_andc (vector signed int, vector bool int);
  38292. vector signed int vec_andc (vector signed int, vector signed int);
  38293. vector unsigned int vec_andc (vector bool int, vector unsigned int);
  38294. vector unsigned int vec_andc (vector unsigned int, vector bool int);
  38295. vector unsigned int vec_andc (vector unsigned int, vector unsigned int);
  38296. vector bool short vec_andc (vector bool short, vector bool short);
  38297. vector signed short vec_andc (vector bool short, vector signed short);
  38298. vector signed short vec_andc (vector signed short, vector bool short);
  38299. vector signed short vec_andc (vector signed short, vector signed short);
  38300. vector unsigned short vec_andc (vector bool short, vector unsigned short);
  38301. vector unsigned short vec_andc (vector unsigned short, vector bool short);
  38302. vector unsigned short vec_andc (vector unsigned short, vector unsigned short);
  38303. vector signed char vec_andc (vector bool char, vector signed char);
  38304. vector bool char vec_andc (vector bool char, vector bool char);
  38305. vector signed char vec_andc (vector signed char, vector bool char);
  38306. vector signed char vec_andc (vector signed char, vector signed char);
  38307. vector unsigned char vec_andc (vector bool char, vector unsigned char);
  38308. vector unsigned char vec_andc (vector unsigned char, vector bool char);
  38309. vector unsigned char vec_andc (vector unsigned char, vector unsigned char);
  38310. int vec_any_eq (vector signed char, vector bool char);
  38311. int vec_any_eq (vector signed char, vector signed char);
  38312. int vec_any_eq (vector unsigned char, vector bool char);
  38313. int vec_any_eq (vector unsigned char, vector unsigned char);
  38314. int vec_any_eq (vector bool char, vector bool char);
  38315. int vec_any_eq (vector bool char, vector unsigned char);
  38316. int vec_any_eq (vector bool char, vector signed char);
  38317. int vec_any_eq (vector signed short, vector bool short);
  38318. int vec_any_eq (vector signed short, vector signed short);
  38319. int vec_any_eq (vector unsigned short, vector bool short);
  38320. int vec_any_eq (vector unsigned short, vector unsigned short);
  38321. int vec_any_eq (vector bool short, vector bool short);
  38322. int vec_any_eq (vector bool short, vector unsigned short);
  38323. int vec_any_eq (vector bool short, vector signed short);
  38324. int vec_any_eq (vector pixel, vector pixel);
  38325. int vec_any_eq (vector signed int, vector bool int);
  38326. int vec_any_eq (vector signed int, vector signed int);
  38327. int vec_any_eq (vector unsigned int, vector bool int);
  38328. int vec_any_eq (vector unsigned int, vector unsigned int);
  38329. int vec_any_eq (vector bool int, vector bool int);
  38330. int vec_any_eq (vector bool int, vector unsigned int);
  38331. int vec_any_eq (vector bool int, vector signed int);
  38332. int vec_any_eq (vector float, vector float);
  38333. int vec_any_ge (vector signed char, vector bool char);
  38334. int vec_any_ge (vector unsigned char, vector bool char);
  38335. int vec_any_ge (vector unsigned char, vector unsigned char);
  38336. int vec_any_ge (vector signed char, vector signed char);
  38337. int vec_any_ge (vector bool char, vector unsigned char);
  38338. int vec_any_ge (vector bool char, vector signed char);
  38339. int vec_any_ge (vector unsigned short, vector bool short);
  38340. int vec_any_ge (vector unsigned short, vector unsigned short);
  38341. int vec_any_ge (vector signed short, vector signed short);
  38342. int vec_any_ge (vector signed short, vector bool short);
  38343. int vec_any_ge (vector bool short, vector unsigned short);
  38344. int vec_any_ge (vector bool short, vector signed short);
  38345. int vec_any_ge (vector signed int, vector bool int);
  38346. int vec_any_ge (vector unsigned int, vector bool int);
  38347. int vec_any_ge (vector unsigned int, vector unsigned int);
  38348. int vec_any_ge (vector signed int, vector signed int);
  38349. int vec_any_ge (vector bool int, vector unsigned int);
  38350. int vec_any_ge (vector bool int, vector signed int);
  38351. int vec_any_ge (vector float, vector float);
  38352. int vec_any_gt (vector bool char, vector unsigned char);
  38353. int vec_any_gt (vector unsigned char, vector bool char);
  38354. int vec_any_gt (vector unsigned char, vector unsigned char);
  38355. int vec_any_gt (vector bool char, vector signed char);
  38356. int vec_any_gt (vector signed char, vector bool char);
  38357. int vec_any_gt (vector signed char, vector signed char);
  38358. int vec_any_gt (vector bool short, vector unsigned short);
  38359. int vec_any_gt (vector unsigned short, vector bool short);
  38360. int vec_any_gt (vector unsigned short, vector unsigned short);
  38361. int vec_any_gt (vector bool short, vector signed short);
  38362. int vec_any_gt (vector signed short, vector bool short);
  38363. int vec_any_gt (vector signed short, vector signed short);
  38364. int vec_any_gt (vector bool int, vector unsigned int);
  38365. int vec_any_gt (vector unsigned int, vector bool int);
  38366. int vec_any_gt (vector unsigned int, vector unsigned int);
  38367. int vec_any_gt (vector bool int, vector signed int);
  38368. int vec_any_gt (vector signed int, vector bool int);
  38369. int vec_any_gt (vector signed int, vector signed int);
  38370. int vec_any_gt (vector float, vector float);
  38371. int vec_any_le (vector bool char, vector unsigned char);
  38372. int vec_any_le (vector unsigned char, vector bool char);
  38373. int vec_any_le (vector unsigned char, vector unsigned char);
  38374. int vec_any_le (vector bool char, vector signed char);
  38375. int vec_any_le (vector signed char, vector bool char);
  38376. int vec_any_le (vector signed char, vector signed char);
  38377. int vec_any_le (vector bool short, vector unsigned short);
  38378. int vec_any_le (vector unsigned short, vector bool short);
  38379. int vec_any_le (vector unsigned short, vector unsigned short);
  38380. int vec_any_le (vector bool short, vector signed short);
  38381. int vec_any_le (vector signed short, vector bool short);
  38382. int vec_any_le (vector signed short, vector signed short);
  38383. int vec_any_le (vector bool int, vector unsigned int);
  38384. int vec_any_le (vector unsigned int, vector bool int);
  38385. int vec_any_le (vector unsigned int, vector unsigned int);
  38386. int vec_any_le (vector bool int, vector signed int);
  38387. int vec_any_le (vector signed int, vector bool int);
  38388. int vec_any_le (vector signed int, vector signed int);
  38389. int vec_any_le (vector float, vector float);
  38390. int vec_any_lt (vector bool char, vector unsigned char);
  38391. int vec_any_lt (vector unsigned char, vector bool char);
  38392. int vec_any_lt (vector unsigned char, vector unsigned char);
  38393. int vec_any_lt (vector bool char, vector signed char);
  38394. int vec_any_lt (vector signed char, vector bool char);
  38395. int vec_any_lt (vector signed char, vector signed char);
  38396. int vec_any_lt (vector bool short, vector unsigned short);
  38397. int vec_any_lt (vector unsigned short, vector bool short);
  38398. int vec_any_lt (vector unsigned short, vector unsigned short);
  38399. int vec_any_lt (vector bool short, vector signed short);
  38400. int vec_any_lt (vector signed short, vector bool short);
  38401. int vec_any_lt (vector signed short, vector signed short);
  38402. int vec_any_lt (vector bool int, vector unsigned int);
  38403. int vec_any_lt (vector unsigned int, vector bool int);
  38404. int vec_any_lt (vector unsigned int, vector unsigned int);
  38405. int vec_any_lt (vector bool int, vector signed int);
  38406. int vec_any_lt (vector signed int, vector bool int);
  38407. int vec_any_lt (vector signed int, vector signed int);
  38408. int vec_any_lt (vector float, vector float);
  38409. int vec_any_nan (vector float);
  38410. int vec_any_ne (vector signed char, vector bool char);
  38411. int vec_any_ne (vector signed char, vector signed char);
  38412. int vec_any_ne (vector unsigned char, vector bool char);
  38413. int vec_any_ne (vector unsigned char, vector unsigned char);
  38414. int vec_any_ne (vector bool char, vector bool char);
  38415. int vec_any_ne (vector bool char, vector unsigned char);
  38416. int vec_any_ne (vector bool char, vector signed char);
  38417. int vec_any_ne (vector signed short, vector bool short);
  38418. int vec_any_ne (vector signed short, vector signed short);
  38419. int vec_any_ne (vector unsigned short, vector bool short);
  38420. int vec_any_ne (vector unsigned short, vector unsigned short);
  38421. int vec_any_ne (vector bool short, vector bool short);
  38422. int vec_any_ne (vector bool short, vector unsigned short);
  38423. int vec_any_ne (vector bool short, vector signed short);
  38424. int vec_any_ne (vector pixel, vector pixel);
  38425. int vec_any_ne (vector signed int, vector bool int);
  38426. int vec_any_ne (vector signed int, vector signed int);
  38427. int vec_any_ne (vector unsigned int, vector bool int);
  38428. int vec_any_ne (vector unsigned int, vector unsigned int);
  38429. int vec_any_ne (vector bool int, vector bool int);
  38430. int vec_any_ne (vector bool int, vector unsigned int);
  38431. int vec_any_ne (vector bool int, vector signed int);
  38432. int vec_any_ne (vector float, vector float);
  38433. int vec_any_nge (vector float, vector float);
  38434. int vec_any_ngt (vector float, vector float);
  38435. int vec_any_nle (vector float, vector float);
  38436. int vec_any_nlt (vector float, vector float);
  38437. int vec_any_numeric (vector float);
  38438. int vec_any_out (vector float, vector float);
  38439. vector unsigned char vec_avg (vector unsigned char, vector unsigned char);
  38440. vector signed char vec_avg (vector signed char, vector signed char);
  38441. vector unsigned short vec_avg (vector unsigned short, vector unsigned short);
  38442. vector signed short vec_avg (vector signed short, vector signed short);
  38443. vector unsigned int vec_avg (vector unsigned int, vector unsigned int);
  38444. vector signed int vec_avg (vector signed int, vector signed int);
  38445. vector float vec_ceil (vector float);
  38446. vector signed int vec_cmpb (vector float, vector float);
  38447. vector bool char vec_cmpeq (vector bool char, vector bool char);
  38448. vector bool short vec_cmpeq (vector bool short, vector bool short);
  38449. vector bool int vec_cmpeq (vector bool int, vector bool int);
  38450. vector bool char vec_cmpeq (vector signed char, vector signed char);
  38451. vector bool char vec_cmpeq (vector unsigned char, vector unsigned char);
  38452. vector bool short vec_cmpeq (vector signed short, vector signed short);
  38453. vector bool short vec_cmpeq (vector unsigned short, vector unsigned short);
  38454. vector bool int vec_cmpeq (vector signed int, vector signed int);
  38455. vector bool int vec_cmpeq (vector unsigned int, vector unsigned int);
  38456. vector bool int vec_cmpeq (vector float, vector float);
  38457. vector bool int vec_cmpge (vector float, vector float);
  38458. vector bool char vec_cmpgt (vector unsigned char, vector unsigned char);
  38459. vector bool char vec_cmpgt (vector signed char, vector signed char);
  38460. vector bool short vec_cmpgt (vector unsigned short, vector unsigned short);
  38461. vector bool short vec_cmpgt (vector signed short, vector signed short);
  38462. vector bool int vec_cmpgt (vector unsigned int, vector unsigned int);
  38463. vector bool int vec_cmpgt (vector signed int, vector signed int);
  38464. vector bool int vec_cmpgt (vector float, vector float);
  38465. vector bool int vec_cmple (vector float, vector float);
  38466. vector bool char vec_cmplt (vector unsigned char, vector unsigned char);
  38467. vector bool char vec_cmplt (vector signed char, vector signed char);
  38468. vector bool short vec_cmplt (vector unsigned short, vector unsigned short);
  38469. vector bool short vec_cmplt (vector signed short, vector signed short);
  38470. vector bool int vec_cmplt (vector unsigned int, vector unsigned int);
  38471. vector bool int vec_cmplt (vector signed int, vector signed int);
  38472. vector bool int vec_cmplt (vector float, vector float);
  38473. vector float vec_cpsgn (vector float, vector float);
  38474. vector float vec_ctf (vector unsigned int, const int);
  38475. vector float vec_ctf (vector signed int, const int);
  38476. vector signed int vec_cts (vector float, const int);
  38477. vector unsigned int vec_ctu (vector float, const int);
  38478. void vec_dss (const int);
  38479. void vec_dssall (void);
  38480. void vec_dst (const vector unsigned char *, int, const int);
  38481. void vec_dst (const vector signed char *, int, const int);
  38482. void vec_dst (const vector bool char *, int, const int);
  38483. void vec_dst (const vector unsigned short *, int, const int);
  38484. void vec_dst (const vector signed short *, int, const int);
  38485. void vec_dst (const vector bool short *, int, const int);
  38486. void vec_dst (const vector pixel *, int, const int);
  38487. void vec_dst (const vector unsigned int *, int, const int);
  38488. void vec_dst (const vector signed int *, int, const int);
  38489. void vec_dst (const vector bool int *, int, const int);
  38490. void vec_dst (const vector float *, int, const int);
  38491. void vec_dst (const unsigned char *, int, const int);
  38492. void vec_dst (const signed char *, int, const int);
  38493. void vec_dst (const unsigned short *, int, const int);
  38494. void vec_dst (const short *, int, const int);
  38495. void vec_dst (const unsigned int *, int, const int);
  38496. void vec_dst (const int *, int, const int);
  38497. void vec_dst (const float *, int, const int);
  38498. void vec_dstst (const vector unsigned char *, int, const int);
  38499. void vec_dstst (const vector signed char *, int, const int);
  38500. void vec_dstst (const vector bool char *, int, const int);
  38501. void vec_dstst (const vector unsigned short *, int, const int);
  38502. void vec_dstst (const vector signed short *, int, const int);
  38503. void vec_dstst (const vector bool short *, int, const int);
  38504. void vec_dstst (const vector pixel *, int, const int);
  38505. void vec_dstst (const vector unsigned int *, int, const int);
  38506. void vec_dstst (const vector signed int *, int, const int);
  38507. void vec_dstst (const vector bool int *, int, const int);
  38508. void vec_dstst (const vector float *, int, const int);
  38509. void vec_dstst (const unsigned char *, int, const int);
  38510. void vec_dstst (const signed char *, int, const int);
  38511. void vec_dstst (const unsigned short *, int, const int);
  38512. void vec_dstst (const short *, int, const int);
  38513. void vec_dstst (const unsigned int *, int, const int);
  38514. void vec_dstst (const int *, int, const int);
  38515. void vec_dstst (const unsigned long *, int, const int);
  38516. void vec_dstst (const long *, int, const int);
  38517. void vec_dstst (const float *, int, const int);
  38518. void vec_dststt (const vector unsigned char *, int, const int);
  38519. void vec_dststt (const vector signed char *, int, const int);
  38520. void vec_dststt (const vector bool char *, int, const int);
  38521. void vec_dststt (const vector unsigned short *, int, const int);
  38522. void vec_dststt (const vector signed short *, int, const int);
  38523. void vec_dststt (const vector bool short *, int, const int);
  38524. void vec_dststt (const vector pixel *, int, const int);
  38525. void vec_dststt (const vector unsigned int *, int, const int);
  38526. void vec_dststt (const vector signed int *, int, const int);
  38527. void vec_dststt (const vector bool int *, int, const int);
  38528. void vec_dststt (const vector float *, int, const int);
  38529. void vec_dststt (const unsigned char *, int, const int);
  38530. void vec_dststt (const signed char *, int, const int);
  38531. void vec_dststt (const unsigned short *, int, const int);
  38532. void vec_dststt (const short *, int, const int);
  38533. void vec_dststt (const unsigned int *, int, const int);
  38534. void vec_dststt (const int *, int, const int);
  38535. void vec_dststt (const float *, int, const int);
  38536. void vec_dstt (const vector unsigned char *, int, const int);
  38537. void vec_dstt (const vector signed char *, int, const int);
  38538. void vec_dstt (const vector bool char *, int, const int);
  38539. void vec_dstt (const vector unsigned short *, int, const int);
  38540. void vec_dstt (const vector signed short *, int, const int);
  38541. void vec_dstt (const vector bool short *, int, const int);
  38542. void vec_dstt (const vector pixel *, int, const int);
  38543. void vec_dstt (const vector unsigned int *, int, const int);
  38544. void vec_dstt (const vector signed int *, int, const int);
  38545. void vec_dstt (const vector bool int *, int, const int);
  38546. void vec_dstt (const vector float *, int, const int);
  38547. void vec_dstt (const unsigned char *, int, const int);
  38548. void vec_dstt (const signed char *, int, const int);
  38549. void vec_dstt (const unsigned short *, int, const int);
  38550. void vec_dstt (const short *, int, const int);
  38551. void vec_dstt (const unsigned int *, int, const int);
  38552. void vec_dstt (const int *, int, const int);
  38553. void vec_dstt (const float *, int, const int);
  38554. vector float vec_expte (vector float);
  38555. vector float vec_floor (vector float);
  38556. vector float vec_ld (int, const vector float *);
  38557. vector float vec_ld (int, const float *);
  38558. vector bool int vec_ld (int, const vector bool int *);
  38559. vector signed int vec_ld (int, const vector signed int *);
  38560. vector signed int vec_ld (int, const int *);
  38561. vector unsigned int vec_ld (int, const vector unsigned int *);
  38562. vector unsigned int vec_ld (int, const unsigned int *);
  38563. vector bool short vec_ld (int, const vector bool short *);
  38564. vector pixel vec_ld (int, const vector pixel *);
  38565. vector signed short vec_ld (int, const vector signed short *);
  38566. vector signed short vec_ld (int, const short *);
  38567. vector unsigned short vec_ld (int, const vector unsigned short *);
  38568. vector unsigned short vec_ld (int, const unsigned short *);
  38569. vector bool char vec_ld (int, const vector bool char *);
  38570. vector signed char vec_ld (int, const vector signed char *);
  38571. vector signed char vec_ld (int, const signed char *);
  38572. vector unsigned char vec_ld (int, const vector unsigned char *);
  38573. vector unsigned char vec_ld (int, const unsigned char *);
  38574. vector signed char vec_lde (int, const signed char *);
  38575. vector unsigned char vec_lde (int, const unsigned char *);
  38576. vector signed short vec_lde (int, const short *);
  38577. vector unsigned short vec_lde (int, const unsigned short *);
  38578. vector float vec_lde (int, const float *);
  38579. vector signed int vec_lde (int, const int *);
  38580. vector unsigned int vec_lde (int, const unsigned int *);
  38581. vector float vec_ldl (int, const vector float *);
  38582. vector float vec_ldl (int, const float *);
  38583. vector bool int vec_ldl (int, const vector bool int *);
  38584. vector signed int vec_ldl (int, const vector signed int *);
  38585. vector signed int vec_ldl (int, const int *);
  38586. vector unsigned int vec_ldl (int, const vector unsigned int *);
  38587. vector unsigned int vec_ldl (int, const unsigned int *);
  38588. vector bool short vec_ldl (int, const vector bool short *);
  38589. vector pixel vec_ldl (int, const vector pixel *);
  38590. vector signed short vec_ldl (int, const vector signed short *);
  38591. vector signed short vec_ldl (int, const short *);
  38592. vector unsigned short vec_ldl (int, const vector unsigned short *);
  38593. vector unsigned short vec_ldl (int, const unsigned short *);
  38594. vector bool char vec_ldl (int, const vector bool char *);
  38595. vector signed char vec_ldl (int, const vector signed char *);
  38596. vector signed char vec_ldl (int, const signed char *);
  38597. vector unsigned char vec_ldl (int, const vector unsigned char *);
  38598. vector unsigned char vec_ldl (int, const unsigned char *);
  38599. vector float vec_loge (vector float);
  38600. vector signed char vec_lvebx (int, char *);
  38601. vector unsigned char vec_lvebx (int, unsigned char *);
  38602. vector signed short vec_lvehx (int, short *);
  38603. vector unsigned short vec_lvehx (int, unsigned short *);
  38604. vector float vec_lvewx (int, float *);
  38605. vector signed int vec_lvewx (int, int *);
  38606. vector unsigned int vec_lvewx (int, unsigned int *);
  38607. vector unsigned char vec_lvsl (int, const unsigned char *);
  38608. vector unsigned char vec_lvsl (int, const signed char *);
  38609. vector unsigned char vec_lvsl (int, const unsigned short *);
  38610. vector unsigned char vec_lvsl (int, const short *);
  38611. vector unsigned char vec_lvsl (int, const unsigned int *);
  38612. vector unsigned char vec_lvsl (int, const int *);
  38613. vector unsigned char vec_lvsl (int, const float *);
  38614. vector unsigned char vec_lvsr (int, const unsigned char *);
  38615. vector unsigned char vec_lvsr (int, const signed char *);
  38616. vector unsigned char vec_lvsr (int, const unsigned short *);
  38617. vector unsigned char vec_lvsr (int, const short *);
  38618. vector unsigned char vec_lvsr (int, const unsigned int *);
  38619. vector unsigned char vec_lvsr (int, const int *);
  38620. vector unsigned char vec_lvsr (int, const float *);
  38621. vector float vec_madd (vector float, vector float, vector float);
  38622. vector signed short vec_madds (vector signed short, vector signed short,
  38623. vector signed short);
  38624. vector unsigned char vec_max (vector bool char, vector unsigned char);
  38625. vector unsigned char vec_max (vector unsigned char, vector bool char);
  38626. vector unsigned char vec_max (vector unsigned char, vector unsigned char);
  38627. vector signed char vec_max (vector bool char, vector signed char);
  38628. vector signed char vec_max (vector signed char, vector bool char);
  38629. vector signed char vec_max (vector signed char, vector signed char);
  38630. vector unsigned short vec_max (vector bool short, vector unsigned short);
  38631. vector unsigned short vec_max (vector unsigned short, vector bool short);
  38632. vector unsigned short vec_max (vector unsigned short, vector unsigned short);
  38633. vector signed short vec_max (vector bool short, vector signed short);
  38634. vector signed short vec_max (vector signed short, vector bool short);
  38635. vector signed short vec_max (vector signed short, vector signed short);
  38636. vector unsigned int vec_max (vector bool int, vector unsigned int);
  38637. vector unsigned int vec_max (vector unsigned int, vector bool int);
  38638. vector unsigned int vec_max (vector unsigned int, vector unsigned int);
  38639. vector signed int vec_max (vector bool int, vector signed int);
  38640. vector signed int vec_max (vector signed int, vector bool int);
  38641. vector signed int vec_max (vector signed int, vector signed int);
  38642. vector float vec_max (vector float, vector float);
  38643. vector bool char vec_mergeh (vector bool char, vector bool char);
  38644. vector signed char vec_mergeh (vector signed char, vector signed char);
  38645. vector unsigned char vec_mergeh (vector unsigned char, vector unsigned char);
  38646. vector bool short vec_mergeh (vector bool short, vector bool short);
  38647. vector pixel vec_mergeh (vector pixel, vector pixel);
  38648. vector signed short vec_mergeh (vector signed short, vector signed short);
  38649. vector unsigned short vec_mergeh (vector unsigned short, vector unsigned short);
  38650. vector float vec_mergeh (vector float, vector float);
  38651. vector bool int vec_mergeh (vector bool int, vector bool int);
  38652. vector signed int vec_mergeh (vector signed int, vector signed int);
  38653. vector unsigned int vec_mergeh (vector unsigned int, vector unsigned int);
  38654. vector bool char vec_mergel (vector bool char, vector bool char);
  38655. vector signed char vec_mergel (vector signed char, vector signed char);
  38656. vector unsigned char vec_mergel (vector unsigned char, vector unsigned char);
  38657. vector bool short vec_mergel (vector bool short, vector bool short);
  38658. vector pixel vec_mergel (vector pixel, vector pixel);
  38659. vector signed short vec_mergel (vector signed short, vector signed short);
  38660. vector unsigned short vec_mergel (vector unsigned short, vector unsigned short);
  38661. vector float vec_mergel (vector float, vector float);
  38662. vector bool int vec_mergel (vector bool int, vector bool int);
  38663. vector signed int vec_mergel (vector signed int, vector signed int);
  38664. vector unsigned int vec_mergel (vector unsigned int, vector unsigned int);
  38665. vector unsigned short vec_mfvscr (void);
  38666. vector unsigned char vec_min (vector bool char, vector unsigned char);
  38667. vector unsigned char vec_min (vector unsigned char, vector bool char);
  38668. vector unsigned char vec_min (vector unsigned char, vector unsigned char);
  38669. vector signed char vec_min (vector bool char, vector signed char);
  38670. vector signed char vec_min (vector signed char, vector bool char);
  38671. vector signed char vec_min (vector signed char, vector signed char);
  38672. vector unsigned short vec_min (vector bool short, vector unsigned short);
  38673. vector unsigned short vec_min (vector unsigned short, vector bool short);
  38674. vector unsigned short vec_min (vector unsigned short, vector unsigned short);
  38675. vector signed short vec_min (vector bool short, vector signed short);
  38676. vector signed short vec_min (vector signed short, vector bool short);
  38677. vector signed short vec_min (vector signed short, vector signed short);
  38678. vector unsigned int vec_min (vector bool int, vector unsigned int);
  38679. vector unsigned int vec_min (vector unsigned int, vector bool int);
  38680. vector unsigned int vec_min (vector unsigned int, vector unsigned int);
  38681. vector signed int vec_min (vector bool int, vector signed int);
  38682. vector signed int vec_min (vector signed int, vector bool int);
  38683. vector signed int vec_min (vector signed int, vector signed int);
  38684. vector float vec_min (vector float, vector float);
  38685. vector signed short vec_mladd (vector signed short, vector signed short,
  38686. vector signed short);
  38687. vector signed short vec_mladd (vector signed short, vector unsigned short,
  38688. vector unsigned short);
  38689. vector signed short vec_mladd (vector unsigned short, vector signed short,
  38690. vector signed short);
  38691. vector unsigned short vec_mladd (vector unsigned short, vector unsigned short,
  38692. vector unsigned short);
  38693. vector signed short vec_mradds (vector signed short, vector signed short,
  38694. vector signed short);
  38695. vector unsigned int vec_msum (vector unsigned char, vector unsigned char,
  38696. vector unsigned int);
  38697. vector signed int vec_msum (vector signed char, vector unsigned char,
  38698. vector signed int);
  38699. vector unsigned int vec_msum (vector unsigned short, vector unsigned short,
  38700. vector unsigned int);
  38701. vector signed int vec_msum (vector signed short, vector signed short,
  38702. vector signed int);
  38703. vector unsigned int vec_msums (vector unsigned short, vector unsigned short,
  38704. vector unsigned int);
  38705. vector signed int vec_msums (vector signed short, vector signed short,
  38706. vector signed int);
  38707. void vec_mtvscr (vector signed int);
  38708. void vec_mtvscr (vector unsigned int);
  38709. void vec_mtvscr (vector bool int);
  38710. void vec_mtvscr (vector signed short);
  38711. void vec_mtvscr (vector unsigned short);
  38712. void vec_mtvscr (vector bool short);
  38713. void vec_mtvscr (vector pixel);
  38714. void vec_mtvscr (vector signed char);
  38715. void vec_mtvscr (vector unsigned char);
  38716. void vec_mtvscr (vector bool char);
  38717. vector float vec_mul (vector float, vector float);
  38718. vector unsigned short vec_mule (vector unsigned char, vector unsigned char);
  38719. vector signed short vec_mule (vector signed char, vector signed char);
  38720. vector unsigned int vec_mule (vector unsigned short, vector unsigned short);
  38721. vector signed int vec_mule (vector signed short, vector signed short);
  38722. vector unsigned short vec_mulo (vector unsigned char, vector unsigned char);
  38723. vector signed short vec_mulo (vector signed char, vector signed char);
  38724. vector unsigned int vec_mulo (vector unsigned short, vector unsigned short);
  38725. vector signed int vec_mulo (vector signed short, vector signed short);
  38726. vector signed char vec_nabs (vector signed char);
  38727. vector signed short vec_nabs (vector signed short);
  38728. vector signed int vec_nabs (vector signed int);
  38729. vector float vec_nabs (vector float);
  38730. vector float vec_nmsub (vector float, vector float, vector float);
  38731. vector float vec_nor (vector float, vector float);
  38732. vector signed int vec_nor (vector signed int, vector signed int);
  38733. vector unsigned int vec_nor (vector unsigned int, vector unsigned int);
  38734. vector bool int vec_nor (vector bool int, vector bool int);
  38735. vector signed short vec_nor (vector signed short, vector signed short);
  38736. vector unsigned short vec_nor (vector unsigned short, vector unsigned short);
  38737. vector bool short vec_nor (vector bool short, vector bool short);
  38738. vector signed char vec_nor (vector signed char, vector signed char);
  38739. vector unsigned char vec_nor (vector unsigned char, vector unsigned char);
  38740. vector bool char vec_nor (vector bool char, vector bool char);
  38741. vector float vec_or (vector float, vector float);
  38742. vector float vec_or (vector float, vector bool int);
  38743. vector float vec_or (vector bool int, vector float);
  38744. vector bool int vec_or (vector bool int, vector bool int);
  38745. vector signed int vec_or (vector bool int, vector signed int);
  38746. vector signed int vec_or (vector signed int, vector bool int);
  38747. vector signed int vec_or (vector signed int, vector signed int);
  38748. vector unsigned int vec_or (vector bool int, vector unsigned int);
  38749. vector unsigned int vec_or (vector unsigned int, vector bool int);
  38750. vector unsigned int vec_or (vector unsigned int, vector unsigned int);
  38751. vector bool short vec_or (vector bool short, vector bool short);
  38752. vector signed short vec_or (vector bool short, vector signed short);
  38753. vector signed short vec_or (vector signed short, vector bool short);
  38754. vector signed short vec_or (vector signed short, vector signed short);
  38755. vector unsigned short vec_or (vector bool short, vector unsigned short);
  38756. vector unsigned short vec_or (vector unsigned short, vector bool short);
  38757. vector unsigned short vec_or (vector unsigned short, vector unsigned short);
  38758. vector signed char vec_or (vector bool char, vector signed char);
  38759. vector bool char vec_or (vector bool char, vector bool char);
  38760. vector signed char vec_or (vector signed char, vector bool char);
  38761. vector signed char vec_or (vector signed char, vector signed char);
  38762. vector unsigned char vec_or (vector bool char, vector unsigned char);
  38763. vector unsigned char vec_or (vector unsigned char, vector bool char);
  38764. vector unsigned char vec_or (vector unsigned char, vector unsigned char);
  38765. vector signed char vec_pack (vector signed short, vector signed short);
  38766. vector unsigned char vec_pack (vector unsigned short, vector unsigned short);
  38767. vector bool char vec_pack (vector bool short, vector bool short);
  38768. vector signed short vec_pack (vector signed int, vector signed int);
  38769. vector unsigned short vec_pack (vector unsigned int, vector unsigned int);
  38770. vector bool short vec_pack (vector bool int, vector bool int);
  38771. vector pixel vec_packpx (vector unsigned int, vector unsigned int);
  38772. vector unsigned char vec_packs (vector unsigned short, vector unsigned short);
  38773. vector signed char vec_packs (vector signed short, vector signed short);
  38774. vector unsigned short vec_packs (vector unsigned int, vector unsigned int);
  38775. vector signed short vec_packs (vector signed int, vector signed int);
  38776. vector unsigned char vec_packsu (vector unsigned short, vector unsigned short);
  38777. vector unsigned char vec_packsu (vector signed short, vector signed short);
  38778. vector unsigned short vec_packsu (vector unsigned int, vector unsigned int);
  38779. vector unsigned short vec_packsu (vector signed int, vector signed int);
  38780. vector float vec_perm (vector float, vector float, vector unsigned char);
  38781. vector signed int vec_perm (vector signed int, vector signed int, vector unsigned char);
  38782. vector unsigned int vec_perm (vector unsigned int, vector unsigned int,
  38783. vector unsigned char);
  38784. vector bool int vec_perm (vector bool int, vector bool int, vector unsigned char);
  38785. vector signed short vec_perm (vector signed short, vector signed short,
  38786. vector unsigned char);
  38787. vector unsigned short vec_perm (vector unsigned short, vector unsigned short,
  38788. vector unsigned char);
  38789. vector bool short vec_perm (vector bool short, vector bool short, vector unsigned char);
  38790. vector pixel vec_perm (vector pixel, vector pixel, vector unsigned char);
  38791. vector signed char vec_perm (vector signed char, vector signed char,
  38792. vector unsigned char);
  38793. vector unsigned char vec_perm (vector unsigned char, vector unsigned char,
  38794. vector unsigned char);
  38795. vector bool char vec_perm (vector bool char, vector bool char, vector unsigned char);
  38796. vector float vec_re (vector float);
  38797. vector bool char vec_reve (vector bool char);
  38798. vector signed char vec_reve (vector signed char);
  38799. vector unsigned char vec_reve (vector unsigned char);
  38800. vector bool int vec_reve (vector bool int);
  38801. vector signed int vec_reve (vector signed int);
  38802. vector unsigned int vec_reve (vector unsigned int);
  38803. vector bool short vec_reve (vector bool short);
  38804. vector signed short vec_reve (vector signed short);
  38805. vector unsigned short vec_reve (vector unsigned short);
  38806. vector signed char vec_rl (vector signed char, vector unsigned char);
  38807. vector unsigned char vec_rl (vector unsigned char, vector unsigned char);
  38808. vector signed short vec_rl (vector signed short, vector unsigned short);
  38809. vector unsigned short vec_rl (vector unsigned short, vector unsigned short);
  38810. vector signed int vec_rl (vector signed int, vector unsigned int);
  38811. vector unsigned int vec_rl (vector unsigned int, vector unsigned int);
  38812. vector float vec_round (vector float);
  38813. vector float vec_rsqrt (vector float);
  38814. vector float vec_rsqrte (vector float);
  38815. vector float vec_sel (vector float, vector float, vector bool int);
  38816. vector float vec_sel (vector float, vector float, vector unsigned int);
  38817. vector signed int vec_sel (vector signed int, vector signed int, vector bool int);
  38818. vector signed int vec_sel (vector signed int, vector signed int, vector unsigned int);
  38819. vector unsigned int vec_sel (vector unsigned int, vector unsigned int, vector bool int);
  38820. vector unsigned int vec_sel (vector unsigned int, vector unsigned int,
  38821. vector unsigned int);
  38822. vector bool int vec_sel (vector bool int, vector bool int, vector bool int);
  38823. vector bool int vec_sel (vector bool int, vector bool int, vector unsigned int);
  38824. vector signed short vec_sel (vector signed short, vector signed short,
  38825. vector bool short);
  38826. vector signed short vec_sel (vector signed short, vector signed short,
  38827. vector unsigned short);
  38828. vector unsigned short vec_sel (vector unsigned short, vector unsigned short,
  38829. vector bool short);
  38830. vector unsigned short vec_sel (vector unsigned short, vector unsigned short,
  38831. vector unsigned short);
  38832. vector bool short vec_sel (vector bool short, vector bool short, vector bool short);
  38833. vector bool short vec_sel (vector bool short, vector bool short, vector unsigned short);
  38834. vector signed char vec_sel (vector signed char, vector signed char, vector bool char);
  38835. vector signed char vec_sel (vector signed char, vector signed char,
  38836. vector unsigned char);
  38837. vector unsigned char vec_sel (vector unsigned char, vector unsigned char,
  38838. vector bool char);
  38839. vector unsigned char vec_sel (vector unsigned char, vector unsigned char,
  38840. vector unsigned char);
  38841. vector bool char vec_sel (vector bool char, vector bool char, vector bool char);
  38842. vector bool char vec_sel (vector bool char, vector bool char, vector unsigned char);
  38843. vector signed char vec_sl (vector signed char, vector unsigned char);
  38844. vector unsigned char vec_sl (vector unsigned char, vector unsigned char);
  38845. vector signed short vec_sl (vector signed short, vector unsigned short);
  38846. vector unsigned short vec_sl (vector unsigned short, vector unsigned short);
  38847. vector signed int vec_sl (vector signed int, vector unsigned int);
  38848. vector unsigned int vec_sl (vector unsigned int, vector unsigned int);
  38849. vector float vec_sld (vector float, vector float, const int);
  38850. vector signed int vec_sld (vector signed int, vector signed int, const int);
  38851. vector unsigned int vec_sld (vector unsigned int, vector unsigned int, const int);
  38852. vector bool int vec_sld (vector bool int, vector bool int, const int);
  38853. vector signed short vec_sld (vector signed short, vector signed short, const int);
  38854. vector unsigned short vec_sld (vector unsigned short, vector unsigned short, const int);
  38855. vector bool short vec_sld (vector bool short, vector bool short, const int);
  38856. vector pixel vec_sld (vector pixel, vector pixel, const int);
  38857. vector signed char vec_sld (vector signed char, vector signed char, const int);
  38858. vector unsigned char vec_sld (vector unsigned char, vector unsigned char, const int);
  38859. vector bool char vec_sld (vector bool char, vector bool char, const int);
  38860. vector signed int vec_sll (vector signed int, vector unsigned int);
  38861. vector signed int vec_sll (vector signed int, vector unsigned short);
  38862. vector signed int vec_sll (vector signed int, vector unsigned char);
  38863. vector unsigned int vec_sll (vector unsigned int, vector unsigned int);
  38864. vector unsigned int vec_sll (vector unsigned int, vector unsigned short);
  38865. vector unsigned int vec_sll (vector unsigned int, vector unsigned char);
  38866. vector bool int vec_sll (vector bool int, vector unsigned int);
  38867. vector bool int vec_sll (vector bool int, vector unsigned short);
  38868. vector bool int vec_sll (vector bool int, vector unsigned char);
  38869. vector signed short vec_sll (vector signed short, vector unsigned int);
  38870. vector signed short vec_sll (vector signed short, vector unsigned short);
  38871. vector signed short vec_sll (vector signed short, vector unsigned char);
  38872. vector unsigned short vec_sll (vector unsigned short, vector unsigned int);
  38873. vector unsigned short vec_sll (vector unsigned short, vector unsigned short);
  38874. vector unsigned short vec_sll (vector unsigned short, vector unsigned char);
  38875. vector bool short vec_sll (vector bool short, vector unsigned int);
  38876. vector bool short vec_sll (vector bool short, vector unsigned short);
  38877. vector bool short vec_sll (vector bool short, vector unsigned char);
  38878. vector pixel vec_sll (vector pixel, vector unsigned int);
  38879. vector pixel vec_sll (vector pixel, vector unsigned short);
  38880. vector pixel vec_sll (vector pixel, vector unsigned char);
  38881. vector signed char vec_sll (vector signed char, vector unsigned int);
  38882. vector signed char vec_sll (vector signed char, vector unsigned short);
  38883. vector signed char vec_sll (vector signed char, vector unsigned char);
  38884. vector unsigned char vec_sll (vector unsigned char, vector unsigned int);
  38885. vector unsigned char vec_sll (vector unsigned char, vector unsigned short);
  38886. vector unsigned char vec_sll (vector unsigned char, vector unsigned char);
  38887. vector bool char vec_sll (vector bool char, vector unsigned int);
  38888. vector bool char vec_sll (vector bool char, vector unsigned short);
  38889. vector bool char vec_sll (vector bool char, vector unsigned char);
  38890. vector float vec_slo (vector float, vector signed char);
  38891. vector float vec_slo (vector float, vector unsigned char);
  38892. vector signed int vec_slo (vector signed int, vector signed char);
  38893. vector signed int vec_slo (vector signed int, vector unsigned char);
  38894. vector unsigned int vec_slo (vector unsigned int, vector signed char);
  38895. vector unsigned int vec_slo (vector unsigned int, vector unsigned char);
  38896. vector signed short vec_slo (vector signed short, vector signed char);
  38897. vector signed short vec_slo (vector signed short, vector unsigned char);
  38898. vector unsigned short vec_slo (vector unsigned short, vector signed char);
  38899. vector unsigned short vec_slo (vector unsigned short, vector unsigned char);
  38900. vector pixel vec_slo (vector pixel, vector signed char);
  38901. vector pixel vec_slo (vector pixel, vector unsigned char);
  38902. vector signed char vec_slo (vector signed char, vector signed char);
  38903. vector signed char vec_slo (vector signed char, vector unsigned char);
  38904. vector unsigned char vec_slo (vector unsigned char, vector signed char);
  38905. vector unsigned char vec_slo (vector unsigned char, vector unsigned char);
  38906. vector signed char vec_splat (vector signed char, const int);
  38907. vector unsigned char vec_splat (vector unsigned char, const int);
  38908. vector bool char vec_splat (vector bool char, const int);
  38909. vector signed short vec_splat (vector signed short, const int);
  38910. vector unsigned short vec_splat (vector unsigned short, const int);
  38911. vector bool short vec_splat (vector bool short, const int);
  38912. vector pixel vec_splat (vector pixel, const int);
  38913. vector float vec_splat (vector float, const int);
  38914. vector signed int vec_splat (vector signed int, const int);
  38915. vector unsigned int vec_splat (vector unsigned int, const int);
  38916. vector bool int vec_splat (vector bool int, const int);
  38917. vector signed short vec_splat_s16 (const int);
  38918. vector signed int vec_splat_s32 (const int);
  38919. vector signed char vec_splat_s8 (const int);
  38920. vector unsigned short vec_splat_u16 (const int);
  38921. vector unsigned int vec_splat_u32 (const int);
  38922. vector unsigned char vec_splat_u8 (const int);
  38923. vector signed char vec_splats (signed char);
  38924. vector unsigned char vec_splats (unsigned char);
  38925. vector signed short vec_splats (signed short);
  38926. vector unsigned short vec_splats (unsigned short);
  38927. vector signed int vec_splats (signed int);
  38928. vector unsigned int vec_splats (unsigned int);
  38929. vector float vec_splats (float);
  38930. vector signed char vec_sr (vector signed char, vector unsigned char);
  38931. vector unsigned char vec_sr (vector unsigned char, vector unsigned char);
  38932. vector signed short vec_sr (vector signed short, vector unsigned short);
  38933. vector unsigned short vec_sr (vector unsigned short, vector unsigned short);
  38934. vector signed int vec_sr (vector signed int, vector unsigned int);
  38935. vector unsigned int vec_sr (vector unsigned int, vector unsigned int);
  38936. vector signed char vec_sra (vector signed char, vector unsigned char);
  38937. vector unsigned char vec_sra (vector unsigned char, vector unsigned char);
  38938. vector signed short vec_sra (vector signed short, vector unsigned short);
  38939. vector unsigned short vec_sra (vector unsigned short, vector unsigned short);
  38940. vector signed int vec_sra (vector signed int, vector unsigned int);
  38941. vector unsigned int vec_sra (vector unsigned int, vector unsigned int);
  38942. vector signed int vec_srl (vector signed int, vector unsigned int);
  38943. vector signed int vec_srl (vector signed int, vector unsigned short);
  38944. vector signed int vec_srl (vector signed int, vector unsigned char);
  38945. vector unsigned int vec_srl (vector unsigned int, vector unsigned int);
  38946. vector unsigned int vec_srl (vector unsigned int, vector unsigned short);
  38947. vector unsigned int vec_srl (vector unsigned int, vector unsigned char);
  38948. vector bool int vec_srl (vector bool int, vector unsigned int);
  38949. vector bool int vec_srl (vector bool int, vector unsigned short);
  38950. vector bool int vec_srl (vector bool int, vector unsigned char);
  38951. vector signed short vec_srl (vector signed short, vector unsigned int);
  38952. vector signed short vec_srl (vector signed short, vector unsigned short);
  38953. vector signed short vec_srl (vector signed short, vector unsigned char);
  38954. vector unsigned short vec_srl (vector unsigned short, vector unsigned int);
  38955. vector unsigned short vec_srl (vector unsigned short, vector unsigned short);
  38956. vector unsigned short vec_srl (vector unsigned short, vector unsigned char);
  38957. vector bool short vec_srl (vector bool short, vector unsigned int);
  38958. vector bool short vec_srl (vector bool short, vector unsigned short);
  38959. vector bool short vec_srl (vector bool short, vector unsigned char);
  38960. vector pixel vec_srl (vector pixel, vector unsigned int);
  38961. vector pixel vec_srl (vector pixel, vector unsigned short);
  38962. vector pixel vec_srl (vector pixel, vector unsigned char);
  38963. vector signed char vec_srl (vector signed char, vector unsigned int);
  38964. vector signed char vec_srl (vector signed char, vector unsigned short);
  38965. vector signed char vec_srl (vector signed char, vector unsigned char);
  38966. vector unsigned char vec_srl (vector unsigned char, vector unsigned int);
  38967. vector unsigned char vec_srl (vector unsigned char, vector unsigned short);
  38968. vector unsigned char vec_srl (vector unsigned char, vector unsigned char);
  38969. vector bool char vec_srl (vector bool char, vector unsigned int);
  38970. vector bool char vec_srl (vector bool char, vector unsigned short);
  38971. vector bool char vec_srl (vector bool char, vector unsigned char);
  38972. vector float vec_sro (vector float, vector signed char);
  38973. vector float vec_sro (vector float, vector unsigned char);
  38974. vector signed int vec_sro (vector signed int, vector signed char);
  38975. vector signed int vec_sro (vector signed int, vector unsigned char);
  38976. vector unsigned int vec_sro (vector unsigned int, vector signed char);
  38977. vector unsigned int vec_sro (vector unsigned int, vector unsigned char);
  38978. vector signed short vec_sro (vector signed short, vector signed char);
  38979. vector signed short vec_sro (vector signed short, vector unsigned char);
  38980. vector unsigned short vec_sro (vector unsigned short, vector signed char);
  38981. vector unsigned short vec_sro (vector unsigned short, vector unsigned char);
  38982. vector pixel vec_sro (vector pixel, vector signed char);
  38983. vector pixel vec_sro (vector pixel, vector unsigned char);
  38984. vector signed char vec_sro (vector signed char, vector signed char);
  38985. vector signed char vec_sro (vector signed char, vector unsigned char);
  38986. vector unsigned char vec_sro (vector unsigned char, vector signed char);
  38987. vector unsigned char vec_sro (vector unsigned char, vector unsigned char);
  38988. void vec_st (vector float, int, vector float *);
  38989. void vec_st (vector float, int, float *);
  38990. void vec_st (vector signed int, int, vector signed int *);
  38991. void vec_st (vector signed int, int, int *);
  38992. void vec_st (vector unsigned int, int, vector unsigned int *);
  38993. void vec_st (vector unsigned int, int, unsigned int *);
  38994. void vec_st (vector bool int, int, vector bool int *);
  38995. void vec_st (vector bool int, int, unsigned int *);
  38996. void vec_st (vector bool int, int, int *);
  38997. void vec_st (vector signed short, int, vector signed short *);
  38998. void vec_st (vector signed short, int, short *);
  38999. void vec_st (vector unsigned short, int, vector unsigned short *);
  39000. void vec_st (vector unsigned short, int, unsigned short *);
  39001. void vec_st (vector bool short, int, vector bool short *);
  39002. void vec_st (vector bool short, int, unsigned short *);
  39003. void vec_st (vector pixel, int, vector pixel *);
  39004. void vec_st (vector bool short, int, short *);
  39005. void vec_st (vector signed char, int, vector signed char *);
  39006. void vec_st (vector signed char, int, signed char *);
  39007. void vec_st (vector unsigned char, int, vector unsigned char *);
  39008. void vec_st (vector unsigned char, int, unsigned char *);
  39009. void vec_st (vector bool char, int, vector bool char *);
  39010. void vec_st (vector bool char, int, unsigned char *);
  39011. void vec_st (vector bool char, int, signed char *);
  39012. void vec_ste (vector signed char, int, signed char *);
  39013. void vec_ste (vector unsigned char, int, unsigned char *);
  39014. void vec_ste (vector bool char, int, signed char *);
  39015. void vec_ste (vector bool char, int, unsigned char *);
  39016. void vec_ste (vector signed short, int, short *);
  39017. void vec_ste (vector unsigned short, int, unsigned short *);
  39018. void vec_ste (vector bool short, int, short *);
  39019. void vec_ste (vector bool short, int, unsigned short *);
  39020. void vec_ste (vector pixel, int, short *);
  39021. void vec_ste (vector pixel, int, unsigned short *);
  39022. void vec_ste (vector float, int, float *);
  39023. void vec_ste (vector signed int, int, int *);
  39024. void vec_ste (vector unsigned int, int, unsigned int *);
  39025. void vec_ste (vector bool int, int, int *);
  39026. void vec_ste (vector bool int, int, unsigned int *);
  39027. void vec_stl (vector float, int, vector float *);
  39028. void vec_stl (vector float, int, float *);
  39029. void vec_stl (vector signed int, int, vector signed int *);
  39030. void vec_stl (vector signed int, int, int *);
  39031. void vec_stl (vector unsigned int, int, vector unsigned int *);
  39032. void vec_stl (vector unsigned int, int, unsigned int *);
  39033. void vec_stl (vector bool int, int, vector bool int *);
  39034. void vec_stl (vector bool int, int, unsigned int *);
  39035. void vec_stl (vector bool int, int, int *);
  39036. void vec_stl (vector signed short, int, vector signed short *);
  39037. void vec_stl (vector signed short, int, short *);
  39038. void vec_stl (vector unsigned short, int, vector unsigned short *);
  39039. void vec_stl (vector unsigned short, int, unsigned short *);
  39040. void vec_stl (vector bool short, int, vector bool short *);
  39041. void vec_stl (vector bool short, int, unsigned short *);
  39042. void vec_stl (vector bool short, int, short *);
  39043. void vec_stl (vector pixel, int, vector pixel *);
  39044. void vec_stl (vector signed char, int, vector signed char *);
  39045. void vec_stl (vector signed char, int, signed char *);
  39046. void vec_stl (vector unsigned char, int, vector unsigned char *);
  39047. void vec_stl (vector unsigned char, int, unsigned char *);
  39048. void vec_stl (vector bool char, int, vector bool char *);
  39049. void vec_stl (vector bool char, int, unsigned char *);
  39050. void vec_stl (vector bool char, int, signed char *);
  39051. void vec_stvebx (vector signed char, int, signed char *);
  39052. void vec_stvebx (vector unsigned char, int, unsigned char *);
  39053. void vec_stvebx (vector bool char, int, signed char *);
  39054. void vec_stvebx (vector bool char, int, unsigned char *);
  39055. void vec_stvehx (vector signed short, int, short *);
  39056. void vec_stvehx (vector unsigned short, int, unsigned short *);
  39057. void vec_stvehx (vector bool short, int, short *);
  39058. void vec_stvehx (vector bool short, int, unsigned short *);
  39059. void vec_stvewx (vector float, int, float *);
  39060. void vec_stvewx (vector signed int, int, int *);
  39061. void vec_stvewx (vector unsigned int, int, unsigned int *);
  39062. void vec_stvewx (vector bool int, int, int *);
  39063. void vec_stvewx (vector bool int, int, unsigned int *);
  39064. vector signed char vec_sub (vector bool char, vector signed char);
  39065. vector signed char vec_sub (vector signed char, vector bool char);
  39066. vector signed char vec_sub (vector signed char, vector signed char);
  39067. vector unsigned char vec_sub (vector bool char, vector unsigned char);
  39068. vector unsigned char vec_sub (vector unsigned char, vector bool char);
  39069. vector unsigned char vec_sub (vector unsigned char, vector unsigned char);
  39070. vector signed short vec_sub (vector bool short, vector signed short);
  39071. vector signed short vec_sub (vector signed short, vector bool short);
  39072. vector signed short vec_sub (vector signed short, vector signed short);
  39073. vector unsigned short vec_sub (vector bool short, vector unsigned short);
  39074. vector unsigned short vec_sub (vector unsigned short, vector bool short);
  39075. vector unsigned short vec_sub (vector unsigned short, vector unsigned short);
  39076. vector signed int vec_sub (vector bool int, vector signed int);
  39077. vector signed int vec_sub (vector signed int, vector bool int);
  39078. vector signed int vec_sub (vector signed int, vector signed int);
  39079. vector unsigned int vec_sub (vector bool int, vector unsigned int);
  39080. vector unsigned int vec_sub (vector unsigned int, vector bool int);
  39081. vector unsigned int vec_sub (vector unsigned int, vector unsigned int);
  39082. vector float vec_sub (vector float, vector float);
  39083. vector signed int vec_subc (vector signed int, vector signed int);
  39084. vector unsigned int vec_subc (vector unsigned int, vector unsigned int);
  39085. vector signed int vec_sube (vector signed int, vector signed int,
  39086. vector signed int);
  39087. vector unsigned int vec_sube (vector unsigned int, vector unsigned int,
  39088. vector unsigned int);
  39089. vector signed int vec_subec (vector signed int, vector signed int,
  39090. vector signed int);
  39091. vector unsigned int vec_subec (vector unsigned int, vector unsigned int,
  39092. vector unsigned int);
  39093. vector unsigned char vec_subs (vector bool char, vector unsigned char);
  39094. vector unsigned char vec_subs (vector unsigned char, vector bool char);
  39095. vector unsigned char vec_subs (vector unsigned char, vector unsigned char);
  39096. vector signed char vec_subs (vector bool char, vector signed char);
  39097. vector signed char vec_subs (vector signed char, vector bool char);
  39098. vector signed char vec_subs (vector signed char, vector signed char);
  39099. vector unsigned short vec_subs (vector bool short, vector unsigned short);
  39100. vector unsigned short vec_subs (vector unsigned short, vector bool short);
  39101. vector unsigned short vec_subs (vector unsigned short, vector unsigned short);
  39102. vector signed short vec_subs (vector bool short, vector signed short);
  39103. vector signed short vec_subs (vector signed short, vector bool short);
  39104. vector signed short vec_subs (vector signed short, vector signed short);
  39105. vector unsigned int vec_subs (vector bool int, vector unsigned int);
  39106. vector unsigned int vec_subs (vector unsigned int, vector bool int);
  39107. vector unsigned int vec_subs (vector unsigned int, vector unsigned int);
  39108. vector signed int vec_subs (vector bool int, vector signed int);
  39109. vector signed int vec_subs (vector signed int, vector bool int);
  39110. vector signed int vec_subs (vector signed int, vector signed int);
  39111. vector signed int vec_sum2s (vector signed int, vector signed int);
  39112. vector unsigned int vec_sum4s (vector unsigned char, vector unsigned int);
  39113. vector signed int vec_sum4s (vector signed char, vector signed int);
  39114. vector signed int vec_sum4s (vector signed short, vector signed int);
  39115. vector signed int vec_sums (vector signed int, vector signed int);
  39116. vector float vec_trunc (vector float);
  39117. vector signed short vec_unpackh (vector signed char);
  39118. vector bool short vec_unpackh (vector bool char);
  39119. vector signed int vec_unpackh (vector signed short);
  39120. vector bool int vec_unpackh (vector bool short);
  39121. vector unsigned int vec_unpackh (vector pixel);
  39122. vector signed short vec_unpackl (vector signed char);
  39123. vector bool short vec_unpackl (vector bool char);
  39124. vector unsigned int vec_unpackl (vector pixel);
  39125. vector signed int vec_unpackl (vector signed short);
  39126. vector bool int vec_unpackl (vector bool short);
  39127. vector float vec_vaddfp (vector float, vector float);
  39128. vector signed char vec_vaddsbs (vector bool char, vector signed char);
  39129. vector signed char vec_vaddsbs (vector signed char, vector bool char);
  39130. vector signed char vec_vaddsbs (vector signed char, vector signed char);
  39131. vector signed short vec_vaddshs (vector bool short, vector signed short);
  39132. vector signed short vec_vaddshs (vector signed short, vector bool short);
  39133. vector signed short vec_vaddshs (vector signed short, vector signed short);
  39134. vector signed int vec_vaddsws (vector bool int, vector signed int);
  39135. vector signed int vec_vaddsws (vector signed int, vector bool int);
  39136. vector signed int vec_vaddsws (vector signed int, vector signed int);
  39137. vector signed char vec_vaddubm (vector bool char, vector signed char);
  39138. vector signed char vec_vaddubm (vector signed char, vector bool char);
  39139. vector signed char vec_vaddubm (vector signed char, vector signed char);
  39140. vector unsigned char vec_vaddubm (vector bool char, vector unsigned char);
  39141. vector unsigned char vec_vaddubm (vector unsigned char, vector bool char);
  39142. vector unsigned char vec_vaddubm (vector unsigned char, vector unsigned char);
  39143. vector unsigned char vec_vaddubs (vector bool char, vector unsigned char);
  39144. vector unsigned char vec_vaddubs (vector unsigned char, vector bool char);
  39145. vector unsigned char vec_vaddubs (vector unsigned char, vector unsigned char);
  39146. vector signed short vec_vadduhm (vector bool short, vector signed short);
  39147. vector signed short vec_vadduhm (vector signed short, vector bool short);
  39148. vector signed short vec_vadduhm (vector signed short, vector signed short);
  39149. vector unsigned short vec_vadduhm (vector bool short, vector unsigned short);
  39150. vector unsigned short vec_vadduhm (vector unsigned short, vector bool short);
  39151. vector unsigned short vec_vadduhm (vector unsigned short, vector unsigned short);
  39152. vector unsigned short vec_vadduhs (vector bool short, vector unsigned short);
  39153. vector unsigned short vec_vadduhs (vector unsigned short, vector bool short);
  39154. vector unsigned short vec_vadduhs (vector unsigned short, vector unsigned short);
  39155. vector signed int vec_vadduwm (vector bool int, vector signed int);
  39156. vector signed int vec_vadduwm (vector signed int, vector bool int);
  39157. vector signed int vec_vadduwm (vector signed int, vector signed int);
  39158. vector unsigned int vec_vadduwm (vector bool int, vector unsigned int);
  39159. vector unsigned int vec_vadduwm (vector unsigned int, vector bool int);
  39160. vector unsigned int vec_vadduwm (vector unsigned int, vector unsigned int);
  39161. vector unsigned int vec_vadduws (vector bool int, vector unsigned int);
  39162. vector unsigned int vec_vadduws (vector unsigned int, vector bool int);
  39163. vector unsigned int vec_vadduws (vector unsigned int, vector unsigned int);
  39164. vector signed char vec_vavgsb (vector signed char, vector signed char);
  39165. vector signed short vec_vavgsh (vector signed short, vector signed short);
  39166. vector signed int vec_vavgsw (vector signed int, vector signed int);
  39167. vector unsigned char vec_vavgub (vector unsigned char, vector unsigned char);
  39168. vector unsigned short vec_vavguh (vector unsigned short, vector unsigned short);
  39169. vector unsigned int vec_vavguw (vector unsigned int, vector unsigned int);
  39170. vector float vec_vcfsx (vector signed int, const int);
  39171. vector float vec_vcfux (vector unsigned int, const int);
  39172. vector bool int vec_vcmpeqfp (vector float, vector float);
  39173. vector bool char vec_vcmpequb (vector signed char, vector signed char);
  39174. vector bool char vec_vcmpequb (vector unsigned char, vector unsigned char);
  39175. vector bool short vec_vcmpequh (vector signed short, vector signed short);
  39176. vector bool short vec_vcmpequh (vector unsigned short, vector unsigned short);
  39177. vector bool int vec_vcmpequw (vector signed int, vector signed int);
  39178. vector bool int vec_vcmpequw (vector unsigned int, vector unsigned int);
  39179. vector bool int vec_vcmpgtfp (vector float, vector float);
  39180. vector bool char vec_vcmpgtsb (vector signed char, vector signed char);
  39181. vector bool short vec_vcmpgtsh (vector signed short, vector signed short);
  39182. vector bool int vec_vcmpgtsw (vector signed int, vector signed int);
  39183. vector bool char vec_vcmpgtub (vector unsigned char, vector unsigned char);
  39184. vector bool short vec_vcmpgtuh (vector unsigned short, vector unsigned short);
  39185. vector bool int vec_vcmpgtuw (vector unsigned int, vector unsigned int);
  39186. vector float vec_vmaxfp (vector float, vector float);
  39187. vector signed char vec_vmaxsb (vector bool char, vector signed char);
  39188. vector signed char vec_vmaxsb (vector signed char, vector bool char);
  39189. vector signed char vec_vmaxsb (vector signed char, vector signed char);
  39190. vector signed short vec_vmaxsh (vector bool short, vector signed short);
  39191. vector signed short vec_vmaxsh (vector signed short, vector bool short);
  39192. vector signed short vec_vmaxsh (vector signed short, vector signed short);
  39193. vector signed int vec_vmaxsw (vector bool int, vector signed int);
  39194. vector signed int vec_vmaxsw (vector signed int, vector bool int);
  39195. vector signed int vec_vmaxsw (vector signed int, vector signed int);
  39196. vector unsigned char vec_vmaxub (vector bool char, vector unsigned char);
  39197. vector unsigned char vec_vmaxub (vector unsigned char, vector bool char);
  39198. vector unsigned char vec_vmaxub (vector unsigned char, vector unsigned char);
  39199. vector unsigned short vec_vmaxuh (vector bool short, vector unsigned short);
  39200. vector unsigned short vec_vmaxuh (vector unsigned short, vector bool short);
  39201. vector unsigned short vec_vmaxuh (vector unsigned short, vector unsigned short);
  39202. vector unsigned int vec_vmaxuw (vector bool int, vector unsigned int);
  39203. vector unsigned int vec_vmaxuw (vector unsigned int, vector bool int);
  39204. vector unsigned int vec_vmaxuw (vector unsigned int, vector unsigned int);
  39205. vector float vec_vminfp (vector float, vector float);
  39206. vector signed char vec_vminsb (vector bool char, vector signed char);
  39207. vector signed char vec_vminsb (vector signed char, vector bool char);
  39208. vector signed char vec_vminsb (vector signed char, vector signed char);
  39209. vector signed short vec_vminsh (vector bool short, vector signed short);
  39210. vector signed short vec_vminsh (vector signed short, vector bool short);
  39211. vector signed short vec_vminsh (vector signed short, vector signed short);
  39212. vector signed int vec_vminsw (vector bool int, vector signed int);
  39213. vector signed int vec_vminsw (vector signed int, vector bool int);
  39214. vector signed int vec_vminsw (vector signed int, vector signed int);
  39215. vector unsigned char vec_vminub (vector bool char, vector unsigned char);
  39216. vector unsigned char vec_vminub (vector unsigned char, vector bool char);
  39217. vector unsigned char vec_vminub (vector unsigned char, vector unsigned char);
  39218. vector unsigned short vec_vminuh (vector bool short, vector unsigned short);
  39219. vector unsigned short vec_vminuh (vector unsigned short, vector bool short);
  39220. vector unsigned short vec_vminuh (vector unsigned short, vector unsigned short);
  39221. vector unsigned int vec_vminuw (vector bool int, vector unsigned int);
  39222. vector unsigned int vec_vminuw (vector unsigned int, vector bool int);
  39223. vector unsigned int vec_vminuw (vector unsigned int, vector unsigned int);
  39224. vector bool char vec_vmrghb (vector bool char, vector bool char);
  39225. vector signed char vec_vmrghb (vector signed char, vector signed char);
  39226. vector unsigned char vec_vmrghb (vector unsigned char, vector unsigned char);
  39227. vector bool short vec_vmrghh (vector bool short, vector bool short);
  39228. vector signed short vec_vmrghh (vector signed short, vector signed short);
  39229. vector unsigned short vec_vmrghh (vector unsigned short, vector unsigned short);
  39230. vector pixel vec_vmrghh (vector pixel, vector pixel);
  39231. vector float vec_vmrghw (vector float, vector float);
  39232. vector bool int vec_vmrghw (vector bool int, vector bool int);
  39233. vector signed int vec_vmrghw (vector signed int, vector signed int);
  39234. vector unsigned int vec_vmrghw (vector unsigned int, vector unsigned int);
  39235. vector bool char vec_vmrglb (vector bool char, vector bool char);
  39236. vector signed char vec_vmrglb (vector signed char, vector signed char);
  39237. vector unsigned char vec_vmrglb (vector unsigned char, vector unsigned char);
  39238. vector bool short vec_vmrglh (vector bool short, vector bool short);
  39239. vector signed short vec_vmrglh (vector signed short, vector signed short);
  39240. vector unsigned short vec_vmrglh (vector unsigned short, vector unsigned short);
  39241. vector pixel vec_vmrglh (vector pixel, vector pixel);
  39242. vector float vec_vmrglw (vector float, vector float);
  39243. vector signed int vec_vmrglw (vector signed int, vector signed int);
  39244. vector unsigned int vec_vmrglw (vector unsigned int, vector unsigned int);
  39245. vector bool int vec_vmrglw (vector bool int, vector bool int);
  39246. vector signed int vec_vmsummbm (vector signed char, vector unsigned char,
  39247. vector signed int);
  39248. vector signed int vec_vmsumshm (vector signed short, vector signed short,
  39249. vector signed int);
  39250. vector signed int vec_vmsumshs (vector signed short, vector signed short,
  39251. vector signed int);
  39252. vector unsigned int vec_vmsumubm (vector unsigned char, vector unsigned char,
  39253. vector unsigned int);
  39254. vector unsigned int vec_vmsumuhm (vector unsigned short, vector unsigned short,
  39255. vector unsigned int);
  39256. vector unsigned int vec_vmsumuhs (vector unsigned short, vector unsigned short,
  39257. vector unsigned int);
  39258. vector signed short vec_vmulesb (vector signed char, vector signed char);
  39259. vector signed int vec_vmulesh (vector signed short, vector signed short);
  39260. vector unsigned short vec_vmuleub (vector unsigned char, vector unsigned char);
  39261. vector unsigned int vec_vmuleuh (vector unsigned short, vector unsigned short);
  39262. vector signed short vec_vmulosb (vector signed char, vector signed char);
  39263. vector signed int vec_vmulosh (vector signed short, vector signed short);
  39264. vector unsigned short vec_vmuloub (vector unsigned char, vector unsigned char);
  39265. vector unsigned int vec_vmulouh (vector unsigned short, vector unsigned short);
  39266. vector signed char vec_vpkshss (vector signed short, vector signed short);
  39267. vector unsigned char vec_vpkshus (vector signed short, vector signed short);
  39268. vector signed short vec_vpkswss (vector signed int, vector signed int);
  39269. vector unsigned short vec_vpkswus (vector signed int, vector signed int);
  39270. vector bool char vec_vpkuhum (vector bool short, vector bool short);
  39271. vector signed char vec_vpkuhum (vector signed short, vector signed short);
  39272. vector unsigned char vec_vpkuhum (vector unsigned short, vector unsigned short);
  39273. vector unsigned char vec_vpkuhus (vector unsigned short, vector unsigned short);
  39274. vector bool short vec_vpkuwum (vector bool int, vector bool int);
  39275. vector signed short vec_vpkuwum (vector signed int, vector signed int);
  39276. vector unsigned short vec_vpkuwum (vector unsigned int, vector unsigned int);
  39277. vector unsigned short vec_vpkuwus (vector unsigned int, vector unsigned int);
  39278. vector signed char vec_vrlb (vector signed char, vector unsigned char);
  39279. vector unsigned char vec_vrlb (vector unsigned char, vector unsigned char);
  39280. vector signed short vec_vrlh (vector signed short, vector unsigned short);
  39281. vector unsigned short vec_vrlh (vector unsigned short, vector unsigned short);
  39282. vector signed int vec_vrlw (vector signed int, vector unsigned int);
  39283. vector unsigned int vec_vrlw (vector unsigned int, vector unsigned int);
  39284. vector signed char vec_vslb (vector signed char, vector unsigned char);
  39285. vector unsigned char vec_vslb (vector unsigned char, vector unsigned char);
  39286. vector signed short vec_vslh (vector signed short, vector unsigned short);
  39287. vector unsigned short vec_vslh (vector unsigned short, vector unsigned short);
  39288. vector signed int vec_vslw (vector signed int, vector unsigned int);
  39289. vector unsigned int vec_vslw (vector unsigned int, vector unsigned int);
  39290. vector signed char vec_vspltb (vector signed char, const int);
  39291. vector unsigned char vec_vspltb (vector unsigned char, const int);
  39292. vector bool char vec_vspltb (vector bool char, const int);
  39293. vector bool short vec_vsplth (vector bool short, const int);
  39294. vector signed short vec_vsplth (vector signed short, const int);
  39295. vector unsigned short vec_vsplth (vector unsigned short, const int);
  39296. vector pixel vec_vsplth (vector pixel, const int);
  39297. vector float vec_vspltw (vector float, const int);
  39298. vector signed int vec_vspltw (vector signed int, const int);
  39299. vector unsigned int vec_vspltw (vector unsigned int, const int);
  39300. vector bool int vec_vspltw (vector bool int, const int);
  39301. vector signed char vec_vsrab (vector signed char, vector unsigned char);
  39302. vector unsigned char vec_vsrab (vector unsigned char, vector unsigned char);
  39303. vector signed short vec_vsrah (vector signed short, vector unsigned short);
  39304. vector unsigned short vec_vsrah (vector unsigned short, vector unsigned short);
  39305. vector signed int vec_vsraw (vector signed int, vector unsigned int);
  39306. vector unsigned int vec_vsraw (vector unsigned int, vector unsigned int);
  39307. vector signed char vec_vsrb (vector signed char, vector unsigned char);
  39308. vector unsigned char vec_vsrb (vector unsigned char, vector unsigned char);
  39309. vector signed short vec_vsrh (vector signed short, vector unsigned short);
  39310. vector unsigned short vec_vsrh (vector unsigned short, vector unsigned short);
  39311. vector signed int vec_vsrw (vector signed int, vector unsigned int);
  39312. vector unsigned int vec_vsrw (vector unsigned int, vector unsigned int);
  39313. vector float vec_vsubfp (vector float, vector float);
  39314. vector signed char vec_vsubsbs (vector bool char, vector signed char);
  39315. vector signed char vec_vsubsbs (vector signed char, vector bool char);
  39316. vector signed char vec_vsubsbs (vector signed char, vector signed char);
  39317. vector signed short vec_vsubshs (vector bool short, vector signed short);
  39318. vector signed short vec_vsubshs (vector signed short, vector bool short);
  39319. vector signed short vec_vsubshs (vector signed short, vector signed short);
  39320. vector signed int vec_vsubsws (vector bool int, vector signed int);
  39321. vector signed int vec_vsubsws (vector signed int, vector bool int);
  39322. vector signed int vec_vsubsws (vector signed int, vector signed int);
  39323. vector signed char vec_vsububm (vector bool char, vector signed char);
  39324. vector signed char vec_vsububm (vector signed char, vector bool char);
  39325. vector signed char vec_vsububm (vector signed char, vector signed char);
  39326. vector unsigned char vec_vsububm (vector bool char, vector unsigned char);
  39327. vector unsigned char vec_vsububm (vector unsigned char, vector bool char);
  39328. vector unsigned char vec_vsububm (vector unsigned char, vector unsigned char);
  39329. vector unsigned char vec_vsububs (vector bool char, vector unsigned char);
  39330. vector unsigned char vec_vsububs (vector unsigned char, vector bool char);
  39331. vector unsigned char vec_vsububs (vector unsigned char, vector unsigned char);
  39332. vector signed short vec_vsubuhm (vector bool short, vector signed short);
  39333. vector signed short vec_vsubuhm (vector signed short, vector bool short);
  39334. vector signed short vec_vsubuhm (vector signed short, vector signed short);
  39335. vector unsigned short vec_vsubuhm (vector bool short, vector unsigned short);
  39336. vector unsigned short vec_vsubuhm (vector unsigned short, vector bool short);
  39337. vector unsigned short vec_vsubuhm (vector unsigned short, vector unsigned short);
  39338. vector unsigned short vec_vsubuhs (vector bool short, vector unsigned short);
  39339. vector unsigned short vec_vsubuhs (vector unsigned short, vector bool short);
  39340. vector unsigned short vec_vsubuhs (vector unsigned short, vector unsigned short);
  39341. vector signed int vec_vsubuwm (vector bool int, vector signed int);
  39342. vector signed int vec_vsubuwm (vector signed int, vector bool int);
  39343. vector signed int vec_vsubuwm (vector signed int, vector signed int);
  39344. vector unsigned int vec_vsubuwm (vector bool int, vector unsigned int);
  39345. vector unsigned int vec_vsubuwm (vector unsigned int, vector bool int);
  39346. vector unsigned int vec_vsubuwm (vector unsigned int, vector unsigned int);
  39347. vector unsigned int vec_vsubuws (vector bool int, vector unsigned int);
  39348. vector unsigned int vec_vsubuws (vector unsigned int, vector bool int);
  39349. vector unsigned int vec_vsubuws (vector unsigned int, vector unsigned int);
  39350. vector signed int vec_vsum4sbs (vector signed char, vector signed int);
  39351. vector signed int vec_vsum4shs (vector signed short, vector signed int);
  39352. vector unsigned int vec_vsum4ubs (vector unsigned char, vector unsigned int);
  39353. vector unsigned int vec_vupkhpx (vector pixel);
  39354. vector bool short vec_vupkhsb (vector bool char);
  39355. vector signed short vec_vupkhsb (vector signed char);
  39356. vector bool int vec_vupkhsh (vector bool short);
  39357. vector signed int vec_vupkhsh (vector signed short);
  39358. vector unsigned int vec_vupklpx (vector pixel);
  39359. vector bool short vec_vupklsb (vector bool char);
  39360. vector signed short vec_vupklsb (vector signed char);
  39361. vector bool int vec_vupklsh (vector bool short);
  39362. vector signed int vec_vupklsh (vector signed short);
  39363. vector float vec_xor (vector float, vector float);
  39364. vector float vec_xor (vector float, vector bool int);
  39365. vector float vec_xor (vector bool int, vector float);
  39366. vector bool int vec_xor (vector bool int, vector bool int);
  39367. vector signed int vec_xor (vector bool int, vector signed int);
  39368. vector signed int vec_xor (vector signed int, vector bool int);
  39369. vector signed int vec_xor (vector signed int, vector signed int);
  39370. vector unsigned int vec_xor (vector bool int, vector unsigned int);
  39371. vector unsigned int vec_xor (vector unsigned int, vector bool int);
  39372. vector unsigned int vec_xor (vector unsigned int, vector unsigned int);
  39373. vector bool short vec_xor (vector bool short, vector bool short);
  39374. vector signed short vec_xor (vector bool short, vector signed short);
  39375. vector signed short vec_xor (vector signed short, vector bool short);
  39376. vector signed short vec_xor (vector signed short, vector signed short);
  39377. vector unsigned short vec_xor (vector bool short, vector unsigned short);
  39378. vector unsigned short vec_xor (vector unsigned short, vector bool short);
  39379. vector unsigned short vec_xor (vector unsigned short, vector unsigned short);
  39380. vector signed char vec_xor (vector bool char, vector signed char);
  39381. vector bool char vec_xor (vector bool char, vector bool char);
  39382. vector signed char vec_xor (vector signed char, vector bool char);
  39383. vector signed char vec_xor (vector signed char, vector signed char);
  39384. vector unsigned char vec_xor (vector bool char, vector unsigned char);
  39385. vector unsigned char vec_xor (vector unsigned char, vector bool char);
  39386. vector unsigned char vec_xor (vector unsigned char, vector unsigned char);
  39387. 
  39388. File: gcc.info, Node: PowerPC AltiVec Built-in Functions Available on ISA 2.06, Next: PowerPC AltiVec Built-in Functions Available on ISA 2.07, Prev: PowerPC AltiVec Built-in Functions on ISA 2.05, Up: PowerPC AltiVec/VSX Built-in Functions
  39389. 6.60.24.2 PowerPC AltiVec Built-in Functions Available on ISA 2.06
  39390. ..................................................................
  39391. The AltiVec built-in functions described in this section are available
  39392. on the PowerPC family of processors starting with ISA 2.06 or later.
  39393. These are normally enabled by adding '-mvsx' to the command line.
  39394. When '-mvsx' is used, the following additional vector types are
  39395. implemented.
  39396. vector unsigned __int128
  39397. vector signed __int128
  39398. vector unsigned long long int
  39399. vector signed long long int
  39400. vector double
  39401. The long long types are only implemented for 64-bit code generation.
  39402. vector bool long long vec_and (vector bool long long int, vector bool long long);
  39403. vector double vec_ctf (vector unsigned long, const int);
  39404. vector double vec_ctf (vector signed long, const int);
  39405. vector signed long vec_cts (vector double, const int);
  39406. vector unsigned long vec_ctu (vector double, const int);
  39407. void vec_dst (const unsigned long *, int, const int);
  39408. void vec_dst (const long *, int, const int);
  39409. void vec_dststt (const unsigned long *, int, const int);
  39410. void vec_dststt (const long *, int, const int);
  39411. void vec_dstt (const unsigned long *, int, const int);
  39412. void vec_dstt (const long *, int, const int);
  39413. vector unsigned char vec_lvsl (int, const unsigned long *);
  39414. vector unsigned char vec_lvsl (int, const long *);
  39415. vector unsigned char vec_lvsr (int, const unsigned long *);
  39416. vector unsigned char vec_lvsr (int, const long *);
  39417. vector double vec_mul (vector double, vector double);
  39418. vector long vec_mul (vector long, vector long);
  39419. vector unsigned long vec_mul (vector unsigned long, vector unsigned long);
  39420. vector unsigned long long vec_mule (vector unsigned int, vector unsigned int);
  39421. vector signed long long vec_mule (vector signed int, vector signed int);
  39422. vector unsigned long long vec_mulo (vector unsigned int, vector unsigned int);
  39423. vector signed long long vec_mulo (vector signed int, vector signed int);
  39424. vector double vec_nabs (vector double);
  39425. vector bool long long vec_reve (vector bool long long);
  39426. vector signed long long vec_reve (vector signed long long);
  39427. vector unsigned long long vec_reve (vector unsigned long long);
  39428. vector double vec_sld (vector double, vector double, const int);
  39429. vector bool long long int vec_sld (vector bool long long int,
  39430. vector bool long long int, const int);
  39431. vector long long int vec_sld (vector long long int, vector long long int, const int);
  39432. vector unsigned long long int vec_sld (vector unsigned long long int,
  39433. vector unsigned long long int, const int);
  39434. vector long long int vec_sll (vector long long int, vector unsigned char);
  39435. vector unsigned long long int vec_sll (vector unsigned long long int,
  39436. vector unsigned char);
  39437. vector signed long long vec_slo (vector signed long long, vector signed char);
  39438. vector signed long long vec_slo (vector signed long long, vector unsigned char);
  39439. vector unsigned long long vec_slo (vector unsigned long long, vector signed char);
  39440. vector unsigned long long vec_slo (vector unsigned long long, vector unsigned char);
  39441. vector signed long vec_splat (vector signed long, const int);
  39442. vector unsigned long vec_splat (vector unsigned long, const int);
  39443. vector long long int vec_srl (vector long long int, vector unsigned char);
  39444. vector unsigned long long int vec_srl (vector unsigned long long int,
  39445. vector unsigned char);
  39446. vector long long int vec_sro (vector long long int, vector char);
  39447. vector long long int vec_sro (vector long long int, vector unsigned char);
  39448. vector unsigned long long int vec_sro (vector unsigned long long int, vector char);
  39449. vector unsigned long long int vec_sro (vector unsigned long long int,
  39450. vector unsigned char);
  39451. vector signed __int128 vec_subc (vector signed __int128, vector signed __int128);
  39452. vector unsigned __int128 vec_subc (vector unsigned __int128, vector unsigned __int128);
  39453. vector signed __int128 vec_sube (vector signed __int128, vector signed __int128,
  39454. vector signed __int128);
  39455. vector unsigned __int128 vec_sube (vector unsigned __int128, vector unsigned __int128,
  39456. vector unsigned __int128);
  39457. vector signed __int128 vec_subec (vector signed __int128, vector signed __int128,
  39458. vector signed __int128);
  39459. vector unsigned __int128 vec_subec (vector unsigned __int128, vector unsigned __int128,
  39460. vector unsigned __int128);
  39461. vector double vec_unpackh (vector float);
  39462. vector double vec_unpackl (vector float);
  39463. vector double vec_doublee (vector float);
  39464. vector double vec_doublee (vector signed int);
  39465. vector double vec_doublee (vector unsigned int);
  39466. vector double vec_doubleo (vector float);
  39467. vector double vec_doubleo (vector signed int);
  39468. vector double vec_doubleo (vector unsigned int);
  39469. vector double vec_doubleh (vector float);
  39470. vector double vec_doubleh (vector signed int);
  39471. vector double vec_doubleh (vector unsigned int);
  39472. vector double vec_doublel (vector float);
  39473. vector double vec_doublel (vector signed int);
  39474. vector double vec_doublel (vector unsigned int);
  39475. vector float vec_float (vector signed int);
  39476. vector float vec_float (vector unsigned int);
  39477. vector float vec_float2 (vector signed long long, vector signed long long);
  39478. vector float vec_float2 (vector unsigned long long, vector signed long long);
  39479. vector float vec_floate (vector double);
  39480. vector float vec_floate (vector signed long long);
  39481. vector float vec_floate (vector unsigned long long);
  39482. vector float vec_floato (vector double);
  39483. vector float vec_floato (vector signed long long);
  39484. vector float vec_floato (vector unsigned long long);
  39485. vector signed long long vec_signed (vector double);
  39486. vector signed int vec_signed (vector float);
  39487. vector signed int vec_signede (vector double);
  39488. vector signed int vec_signedo (vector double);
  39489. vector signed char vec_sldw (vector signed char, vector signed char, const int);
  39490. vector unsigned char vec_sldw (vector unsigned char, vector unsigned char, const int);
  39491. vector signed short vec_sldw (vector signed short, vector signed short, const int);
  39492. vector unsigned short vec_sldw (vector unsigned short,
  39493. vector unsigned short, const int);
  39494. vector signed int vec_sldw (vector signed int, vector signed int, const int);
  39495. vector unsigned int vec_sldw (vector unsigned int, vector unsigned int, const int);
  39496. vector signed long long vec_sldw (vector signed long long,
  39497. vector signed long long, const int);
  39498. vector unsigned long long vec_sldw (vector unsigned long long,
  39499. vector unsigned long long, const int);
  39500. vector signed long long vec_unsigned (vector double);
  39501. vector signed int vec_unsigned (vector float);
  39502. vector signed int vec_unsignede (vector double);
  39503. vector signed int vec_unsignedo (vector double);
  39504. vector double vec_abs (vector double);
  39505. vector double vec_add (vector double, vector double);
  39506. vector double vec_and (vector double, vector double);
  39507. vector double vec_and (vector double, vector bool long);
  39508. vector double vec_and (vector bool long, vector double);
  39509. vector long vec_and (vector long, vector long);
  39510. vector long vec_and (vector long, vector bool long);
  39511. vector long vec_and (vector bool long, vector long);
  39512. vector unsigned long vec_and (vector unsigned long, vector unsigned long);
  39513. vector unsigned long vec_and (vector unsigned long, vector bool long);
  39514. vector unsigned long vec_and (vector bool long, vector unsigned long);
  39515. vector double vec_andc (vector double, vector double);
  39516. vector double vec_andc (vector double, vector bool long);
  39517. vector double vec_andc (vector bool long, vector double);
  39518. vector long vec_andc (vector long, vector long);
  39519. vector long vec_andc (vector long, vector bool long);
  39520. vector long vec_andc (vector bool long, vector long);
  39521. vector unsigned long vec_andc (vector unsigned long, vector unsigned long);
  39522. vector unsigned long vec_andc (vector unsigned long, vector bool long);
  39523. vector unsigned long vec_andc (vector bool long, vector unsigned long);
  39524. vector double vec_ceil (vector double);
  39525. vector bool long vec_cmpeq (vector double, vector double);
  39526. vector bool long vec_cmpge (vector double, vector double);
  39527. vector bool long vec_cmpgt (vector double, vector double);
  39528. vector bool long vec_cmple (vector double, vector double);
  39529. vector bool long vec_cmplt (vector double, vector double);
  39530. vector double vec_cpsgn (vector double, vector double);
  39531. vector float vec_div (vector float, vector float);
  39532. vector double vec_div (vector double, vector double);
  39533. vector long vec_div (vector long, vector long);
  39534. vector unsigned long vec_div (vector unsigned long, vector unsigned long);
  39535. vector double vec_floor (vector double);
  39536. vector signed long long vec_ld (int, const vector signed long long *);
  39537. vector signed long long vec_ld (int, const signed long long *);
  39538. vector unsigned long long vec_ld (int, const vector unsigned long long *);
  39539. vector unsigned long long vec_ld (int, const unsigned long long *);
  39540. vector __int128 vec_ld (int, const vector __int128 *);
  39541. vector unsigned __int128 vec_ld (int, const vector unsigned __int128 *);
  39542. vector __int128 vec_ld (int, const __int128 *);
  39543. vector unsigned __int128 vec_ld (int, const unsigned __int128 *);
  39544. vector double vec_ld (int, const vector double *);
  39545. vector double vec_ld (int, const double *);
  39546. vector double vec_ldl (int, const vector double *);
  39547. vector double vec_ldl (int, const double *);
  39548. vector unsigned char vec_lvsl (int, const double *);
  39549. vector unsigned char vec_lvsr (int, const double *);
  39550. vector double vec_madd (vector double, vector double, vector double);
  39551. vector double vec_max (vector double, vector double);
  39552. vector signed long vec_mergeh (vector signed long, vector signed long);
  39553. vector signed long vec_mergeh (vector signed long, vector bool long);
  39554. vector signed long vec_mergeh (vector bool long, vector signed long);
  39555. vector unsigned long vec_mergeh (vector unsigned long, vector unsigned long);
  39556. vector unsigned long vec_mergeh (vector unsigned long, vector bool long);
  39557. vector unsigned long vec_mergeh (vector bool long, vector unsigned long);
  39558. vector signed long vec_mergel (vector signed long, vector signed long);
  39559. vector signed long vec_mergel (vector signed long, vector bool long);
  39560. vector signed long vec_mergel (vector bool long, vector signed long);
  39561. vector unsigned long vec_mergel (vector unsigned long, vector unsigned long);
  39562. vector unsigned long vec_mergel (vector unsigned long, vector bool long);
  39563. vector unsigned long vec_mergel (vector bool long, vector unsigned long);
  39564. vector double vec_min (vector double, vector double);
  39565. vector float vec_msub (vector float, vector float, vector float);
  39566. vector double vec_msub (vector double, vector double, vector double);
  39567. vector float vec_nearbyint (vector float);
  39568. vector double vec_nearbyint (vector double);
  39569. vector float vec_nmadd (vector float, vector float, vector float);
  39570. vector double vec_nmadd (vector double, vector double, vector double);
  39571. vector double vec_nmsub (vector double, vector double, vector double);
  39572. vector double vec_nor (vector double, vector double);
  39573. vector long vec_nor (vector long, vector long);
  39574. vector long vec_nor (vector long, vector bool long);
  39575. vector long vec_nor (vector bool long, vector long);
  39576. vector unsigned long vec_nor (vector unsigned long, vector unsigned long);
  39577. vector unsigned long vec_nor (vector unsigned long, vector bool long);
  39578. vector unsigned long vec_nor (vector bool long, vector unsigned long);
  39579. vector double vec_or (vector double, vector double);
  39580. vector double vec_or (vector double, vector bool long);
  39581. vector double vec_or (vector bool long, vector double);
  39582. vector long vec_or (vector long, vector long);
  39583. vector long vec_or (vector long, vector bool long);
  39584. vector long vec_or (vector bool long, vector long);
  39585. vector unsigned long vec_or (vector unsigned long, vector unsigned long);
  39586. vector unsigned long vec_or (vector unsigned long, vector bool long);
  39587. vector unsigned long vec_or (vector bool long, vector unsigned long);
  39588. vector double vec_perm (vector double, vector double, vector unsigned char);
  39589. vector long vec_perm (vector long, vector long, vector unsigned char);
  39590. vector unsigned long vec_perm (vector unsigned long, vector unsigned long,
  39591. vector unsigned char);
  39592. vector bool char vec_permxor (vector bool char, vector bool char,
  39593. vector bool char);
  39594. vector unsigned char vec_permxor (vector signed char, vector signed char,
  39595. vector signed char);
  39596. vector unsigned char vec_permxor (vector unsigned char, vector unsigned char,
  39597. vector unsigned char);
  39598. vector double vec_rint (vector double);
  39599. vector double vec_recip (vector double, vector double);
  39600. vector double vec_rsqrt (vector double);
  39601. vector double vec_rsqrte (vector double);
  39602. vector double vec_sel (vector double, vector double, vector bool long);
  39603. vector double vec_sel (vector double, vector double, vector unsigned long);
  39604. vector long vec_sel (vector long, vector long, vector long);
  39605. vector long vec_sel (vector long, vector long, vector unsigned long);
  39606. vector long vec_sel (vector long, vector long, vector bool long);
  39607. vector unsigned long vec_sel (vector unsigned long, vector unsigned long,
  39608. vector long);
  39609. vector unsigned long vec_sel (vector unsigned long, vector unsigned long,
  39610. vector unsigned long);
  39611. vector unsigned long vec_sel (vector unsigned long, vector unsigned long,
  39612. vector bool long);
  39613. vector double vec_splats (double);
  39614. vector signed long vec_splats (signed long);
  39615. vector unsigned long vec_splats (unsigned long);
  39616. vector float vec_sqrt (vector float);
  39617. vector double vec_sqrt (vector double);
  39618. void vec_st (vector signed long long, int, vector signed long long *);
  39619. void vec_st (vector signed long long, int, signed long long *);
  39620. void vec_st (vector unsigned long long, int, vector unsigned long long *);
  39621. void vec_st (vector unsigned long long, int, unsigned long long *);
  39622. void vec_st (vector bool long long, int, vector bool long long *);
  39623. void vec_st (vector bool long long, int, signed long long *);
  39624. void vec_st (vector bool long long, int, unsigned long long *);
  39625. void vec_st (vector double, int, vector double *);
  39626. void vec_st (vector double, int, double *);
  39627. vector double vec_sub (vector double, vector double);
  39628. vector double vec_trunc (vector double);
  39629. vector double vec_xl (int, vector double *);
  39630. vector double vec_xl (int, double *);
  39631. vector long long vec_xl (int, vector long long *);
  39632. vector long long vec_xl (int, long long *);
  39633. vector unsigned long long vec_xl (int, vector unsigned long long *);
  39634. vector unsigned long long vec_xl (int, unsigned long long *);
  39635. vector float vec_xl (int, vector float *);
  39636. vector float vec_xl (int, float *);
  39637. vector int vec_xl (int, vector int *);
  39638. vector int vec_xl (int, int *);
  39639. vector unsigned int vec_xl (int, vector unsigned int *);
  39640. vector unsigned int vec_xl (int, unsigned int *);
  39641. vector double vec_xor (vector double, vector double);
  39642. vector double vec_xor (vector double, vector bool long);
  39643. vector double vec_xor (vector bool long, vector double);
  39644. vector long vec_xor (vector long, vector long);
  39645. vector long vec_xor (vector long, vector bool long);
  39646. vector long vec_xor (vector bool long, vector long);
  39647. vector unsigned long vec_xor (vector unsigned long, vector unsigned long);
  39648. vector unsigned long vec_xor (vector unsigned long, vector bool long);
  39649. vector unsigned long vec_xor (vector bool long, vector unsigned long);
  39650. void vec_xst (vector double, int, vector double *);
  39651. void vec_xst (vector double, int, double *);
  39652. void vec_xst (vector long long, int, vector long long *);
  39653. void vec_xst (vector long long, int, long long *);
  39654. void vec_xst (vector unsigned long long, int, vector unsigned long long *);
  39655. void vec_xst (vector unsigned long long, int, unsigned long long *);
  39656. void vec_xst (vector float, int, vector float *);
  39657. void vec_xst (vector float, int, float *);
  39658. void vec_xst (vector int, int, vector int *);
  39659. void vec_xst (vector int, int, int *);
  39660. void vec_xst (vector unsigned int, int, vector unsigned int *);
  39661. void vec_xst (vector unsigned int, int, unsigned int *);
  39662. int vec_all_eq (vector double, vector double);
  39663. int vec_all_ge (vector double, vector double);
  39664. int vec_all_gt (vector double, vector double);
  39665. int vec_all_le (vector double, vector double);
  39666. int vec_all_lt (vector double, vector double);
  39667. int vec_all_nan (vector double);
  39668. int vec_all_ne (vector double, vector double);
  39669. int vec_all_nge (vector double, vector double);
  39670. int vec_all_ngt (vector double, vector double);
  39671. int vec_all_nle (vector double, vector double);
  39672. int vec_all_nlt (vector double, vector double);
  39673. int vec_all_numeric (vector double);
  39674. int vec_any_eq (vector double, vector double);
  39675. int vec_any_ge (vector double, vector double);
  39676. int vec_any_gt (vector double, vector double);
  39677. int vec_any_le (vector double, vector double);
  39678. int vec_any_lt (vector double, vector double);
  39679. int vec_any_nan (vector double);
  39680. int vec_any_ne (vector double, vector double);
  39681. int vec_any_nge (vector double, vector double);
  39682. int vec_any_ngt (vector double, vector double);
  39683. int vec_any_nle (vector double, vector double);
  39684. int vec_any_nlt (vector double, vector double);
  39685. int vec_any_numeric (vector double);
  39686. vector double vec_vsx_ld (int, const vector double *);
  39687. vector double vec_vsx_ld (int, const double *);
  39688. vector float vec_vsx_ld (int, const vector float *);
  39689. vector float vec_vsx_ld (int, const float *);
  39690. vector bool int vec_vsx_ld (int, const vector bool int *);
  39691. vector signed int vec_vsx_ld (int, const vector signed int *);
  39692. vector signed int vec_vsx_ld (int, const int *);
  39693. vector signed int vec_vsx_ld (int, const long *);
  39694. vector unsigned int vec_vsx_ld (int, const vector unsigned int *);
  39695. vector unsigned int vec_vsx_ld (int, const unsigned int *);
  39696. vector unsigned int vec_vsx_ld (int, const unsigned long *);
  39697. vector bool short vec_vsx_ld (int, const vector bool short *);
  39698. vector pixel vec_vsx_ld (int, const vector pixel *);
  39699. vector signed short vec_vsx_ld (int, const vector signed short *);
  39700. vector signed short vec_vsx_ld (int, const short *);
  39701. vector unsigned short vec_vsx_ld (int, const vector unsigned short *);
  39702. vector unsigned short vec_vsx_ld (int, const unsigned short *);
  39703. vector bool char vec_vsx_ld (int, const vector bool char *);
  39704. vector signed char vec_vsx_ld (int, const vector signed char *);
  39705. vector signed char vec_vsx_ld (int, const signed char *);
  39706. vector unsigned char vec_vsx_ld (int, const vector unsigned char *);
  39707. vector unsigned char vec_vsx_ld (int, const unsigned char *);
  39708. void vec_vsx_st (vector double, int, vector double *);
  39709. void vec_vsx_st (vector double, int, double *);
  39710. void vec_vsx_st (vector float, int, vector float *);
  39711. void vec_vsx_st (vector float, int, float *);
  39712. void vec_vsx_st (vector signed int, int, vector signed int *);
  39713. void vec_vsx_st (vector signed int, int, int *);
  39714. void vec_vsx_st (vector unsigned int, int, vector unsigned int *);
  39715. void vec_vsx_st (vector unsigned int, int, unsigned int *);
  39716. void vec_vsx_st (vector bool int, int, vector bool int *);
  39717. void vec_vsx_st (vector bool int, int, unsigned int *);
  39718. void vec_vsx_st (vector bool int, int, int *);
  39719. void vec_vsx_st (vector signed short, int, vector signed short *);
  39720. void vec_vsx_st (vector signed short, int, short *);
  39721. void vec_vsx_st (vector unsigned short, int, vector unsigned short *);
  39722. void vec_vsx_st (vector unsigned short, int, unsigned short *);
  39723. void vec_vsx_st (vector bool short, int, vector bool short *);
  39724. void vec_vsx_st (vector bool short, int, unsigned short *);
  39725. void vec_vsx_st (vector pixel, int, vector pixel *);
  39726. void vec_vsx_st (vector pixel, int, unsigned short *);
  39727. void vec_vsx_st (vector pixel, int, short *);
  39728. void vec_vsx_st (vector bool short, int, short *);
  39729. void vec_vsx_st (vector signed char, int, vector signed char *);
  39730. void vec_vsx_st (vector signed char, int, signed char *);
  39731. void vec_vsx_st (vector unsigned char, int, vector unsigned char *);
  39732. void vec_vsx_st (vector unsigned char, int, unsigned char *);
  39733. void vec_vsx_st (vector bool char, int, vector bool char *);
  39734. void vec_vsx_st (vector bool char, int, unsigned char *);
  39735. void vec_vsx_st (vector bool char, int, signed char *);
  39736. vector double vec_xxpermdi (vector double, vector double, const int);
  39737. vector float vec_xxpermdi (vector float, vector float, const int);
  39738. vector long long vec_xxpermdi (vector long long, vector long long, const int);
  39739. vector unsigned long long vec_xxpermdi (vector unsigned long long,
  39740. vector unsigned long long, const int);
  39741. vector int vec_xxpermdi (vector int, vector int, const int);
  39742. vector unsigned int vec_xxpermdi (vector unsigned int,
  39743. vector unsigned int, const int);
  39744. vector short vec_xxpermdi (vector short, vector short, const int);
  39745. vector unsigned short vec_xxpermdi (vector unsigned short,
  39746. vector unsigned short, const int);
  39747. vector signed char vec_xxpermdi (vector signed char, vector signed char,
  39748. const int);
  39749. vector unsigned char vec_xxpermdi (vector unsigned char,
  39750. vector unsigned char, const int);
  39751. vector double vec_xxsldi (vector double, vector double, int);
  39752. vector float vec_xxsldi (vector float, vector float, int);
  39753. vector long long vec_xxsldi (vector long long, vector long long, int);
  39754. vector unsigned long long vec_xxsldi (vector unsigned long long,
  39755. vector unsigned long long, int);
  39756. vector int vec_xxsldi (vector int, vector int, int);
  39757. vector unsigned int vec_xxsldi (vector unsigned int, vector unsigned int, int);
  39758. vector short vec_xxsldi (vector short, vector short, int);
  39759. vector unsigned short vec_xxsldi (vector unsigned short,
  39760. vector unsigned short, int);
  39761. vector signed char vec_xxsldi (vector signed char, vector signed char, int);
  39762. vector unsigned char vec_xxsldi (vector unsigned char,
  39763. vector unsigned char, int);
  39764. Note that the 'vec_ld' and 'vec_st' built-in functions always generate
  39765. the AltiVec 'LVX' and 'STVX' instructions even if the VSX instruction
  39766. set is available. The 'vec_vsx_ld' and 'vec_vsx_st' built-in functions
  39767. always generate the VSX 'LXVD2X', 'LXVW4X', 'STXVD2X', and 'STXVW4X'
  39768. instructions.
  39769. 
  39770. File: gcc.info, Node: PowerPC AltiVec Built-in Functions Available on ISA 2.07, Next: PowerPC AltiVec Built-in Functions Available on ISA 3.0, Prev: PowerPC AltiVec Built-in Functions Available on ISA 2.06, Up: PowerPC AltiVec/VSX Built-in Functions
  39771. 6.60.24.3 PowerPC AltiVec Built-in Functions Available on ISA 2.07
  39772. ..................................................................
  39773. If the ISA 2.07 additions to the vector/scalar (power8-vector)
  39774. instruction set are available, the following additional functions are
  39775. available for both 32-bit and 64-bit targets. For 64-bit targets, you
  39776. can use VECTOR LONG instead of VECTOR LONG LONG, VECTOR BOOL LONG
  39777. instead of VECTOR BOOL LONG LONG, and VECTOR UNSIGNED LONG instead of
  39778. VECTOR UNSIGNED LONG LONG.
  39779. vector signed char vec_neg (vector signed char);
  39780. vector signed short vec_neg (vector signed short);
  39781. vector signed int vec_neg (vector signed int);
  39782. vector signed long long vec_neg (vector signed long long);
  39783. vector float char vec_neg (vector float);
  39784. vector double vec_neg (vector double);
  39785. vector signed int vec_signed2 (vector double, vector double);
  39786. vector signed int vec_unsigned2 (vector double, vector double);
  39787. vector long long vec_abs (vector long long);
  39788. vector long long vec_add (vector long long, vector long long);
  39789. vector unsigned long long vec_add (vector unsigned long long,
  39790. vector unsigned long long);
  39791. int vec_all_eq (vector long long, vector long long);
  39792. int vec_all_eq (vector unsigned long long, vector unsigned long long);
  39793. int vec_all_ge (vector long long, vector long long);
  39794. int vec_all_ge (vector unsigned long long, vector unsigned long long);
  39795. int vec_all_gt (vector long long, vector long long);
  39796. int vec_all_gt (vector unsigned long long, vector unsigned long long);
  39797. int vec_all_le (vector long long, vector long long);
  39798. int vec_all_le (vector unsigned long long, vector unsigned long long);
  39799. int vec_all_lt (vector long long, vector long long);
  39800. int vec_all_lt (vector unsigned long long, vector unsigned long long);
  39801. int vec_all_ne (vector long long, vector long long);
  39802. int vec_all_ne (vector unsigned long long, vector unsigned long long);
  39803. int vec_any_eq (vector long long, vector long long);
  39804. int vec_any_eq (vector unsigned long long, vector unsigned long long);
  39805. int vec_any_ge (vector long long, vector long long);
  39806. int vec_any_ge (vector unsigned long long, vector unsigned long long);
  39807. int vec_any_gt (vector long long, vector long long);
  39808. int vec_any_gt (vector unsigned long long, vector unsigned long long);
  39809. int vec_any_le (vector long long, vector long long);
  39810. int vec_any_le (vector unsigned long long, vector unsigned long long);
  39811. int vec_any_lt (vector long long, vector long long);
  39812. int vec_any_lt (vector unsigned long long, vector unsigned long long);
  39813. int vec_any_ne (vector long long, vector long long);
  39814. int vec_any_ne (vector unsigned long long, vector unsigned long long);
  39815. vector bool long long vec_cmpeq (vector bool long long, vector bool long long);
  39816. vector long long vec_eqv (vector long long, vector long long);
  39817. vector long long vec_eqv (vector bool long long, vector long long);
  39818. vector long long vec_eqv (vector long long, vector bool long long);
  39819. vector unsigned long long vec_eqv (vector unsigned long long, vector unsigned long long);
  39820. vector unsigned long long vec_eqv (vector bool long long, vector unsigned long long);
  39821. vector unsigned long long vec_eqv (vector unsigned long long,
  39822. vector bool long long);
  39823. vector int vec_eqv (vector int, vector int);
  39824. vector int vec_eqv (vector bool int, vector int);
  39825. vector int vec_eqv (vector int, vector bool int);
  39826. vector unsigned int vec_eqv (vector unsigned int, vector unsigned int);
  39827. vector unsigned int vec_eqv (vector bool unsigned int, vector unsigned int);
  39828. vector unsigned int vec_eqv (vector unsigned int, vector bool unsigned int);
  39829. vector short vec_eqv (vector short, vector short);
  39830. vector short vec_eqv (vector bool short, vector short);
  39831. vector short vec_eqv (vector short, vector bool short);
  39832. vector unsigned short vec_eqv (vector unsigned short, vector unsigned short);
  39833. vector unsigned short vec_eqv (vector bool unsigned short, vector unsigned short);
  39834. vector unsigned short vec_eqv (vector unsigned short, vector bool unsigned short);
  39835. vector signed char vec_eqv (vector signed char, vector signed char);
  39836. vector signed char vec_eqv (vector bool signed char, vector signed char);
  39837. vector signed char vec_eqv (vector signed char, vector bool signed char);
  39838. vector unsigned char vec_eqv (vector unsigned char, vector unsigned char);
  39839. vector unsigned char vec_eqv (vector bool unsigned char, vector unsigned char);
  39840. vector unsigned char vec_eqv (vector unsigned char, vector bool unsigned char);
  39841. vector long long vec_max (vector long long, vector long long);
  39842. vector unsigned long long vec_max (vector unsigned long long,
  39843. vector unsigned long long);
  39844. vector signed int vec_mergee (vector signed int, vector signed int);
  39845. vector unsigned int vec_mergee (vector unsigned int, vector unsigned int);
  39846. vector bool int vec_mergee (vector bool int, vector bool int);
  39847. vector signed int vec_mergeo (vector signed int, vector signed int);
  39848. vector unsigned int vec_mergeo (vector unsigned int, vector unsigned int);
  39849. vector bool int vec_mergeo (vector bool int, vector bool int);
  39850. vector long long vec_min (vector long long, vector long long);
  39851. vector unsigned long long vec_min (vector unsigned long long,
  39852. vector unsigned long long);
  39853. vector signed long long vec_nabs (vector signed long long);
  39854. vector long long vec_nand (vector long long, vector long long);
  39855. vector long long vec_nand (vector bool long long, vector long long);
  39856. vector long long vec_nand (vector long long, vector bool long long);
  39857. vector unsigned long long vec_nand (vector unsigned long long,
  39858. vector unsigned long long);
  39859. vector unsigned long long vec_nand (vector bool long long, vector unsigned long long);
  39860. vector unsigned long long vec_nand (vector unsigned long long, vector bool long long);
  39861. vector int vec_nand (vector int, vector int);
  39862. vector int vec_nand (vector bool int, vector int);
  39863. vector int vec_nand (vector int, vector bool int);
  39864. vector unsigned int vec_nand (vector unsigned int, vector unsigned int);
  39865. vector unsigned int vec_nand (vector bool unsigned int, vector unsigned int);
  39866. vector unsigned int vec_nand (vector unsigned int, vector bool unsigned int);
  39867. vector short vec_nand (vector short, vector short);
  39868. vector short vec_nand (vector bool short, vector short);
  39869. vector short vec_nand (vector short, vector bool short);
  39870. vector unsigned short vec_nand (vector unsigned short, vector unsigned short);
  39871. vector unsigned short vec_nand (vector bool unsigned short, vector unsigned short);
  39872. vector unsigned short vec_nand (vector unsigned short, vector bool unsigned short);
  39873. vector signed char vec_nand (vector signed char, vector signed char);
  39874. vector signed char vec_nand (vector bool signed char, vector signed char);
  39875. vector signed char vec_nand (vector signed char, vector bool signed char);
  39876. vector unsigned char vec_nand (vector unsigned char, vector unsigned char);
  39877. vector unsigned char vec_nand (vector bool unsigned char, vector unsigned char);
  39878. vector unsigned char vec_nand (vector unsigned char, vector bool unsigned char);
  39879. vector long long vec_orc (vector long long, vector long long);
  39880. vector long long vec_orc (vector bool long long, vector long long);
  39881. vector long long vec_orc (vector long long, vector bool long long);
  39882. vector unsigned long long vec_orc (vector unsigned long long,
  39883. vector unsigned long long);
  39884. vector unsigned long long vec_orc (vector bool long long, vector unsigned long long);
  39885. vector unsigned long long vec_orc (vector unsigned long long, vector bool long long);
  39886. vector int vec_orc (vector int, vector int);
  39887. vector int vec_orc (vector bool int, vector int);
  39888. vector int vec_orc (vector int, vector bool int);
  39889. vector unsigned int vec_orc (vector unsigned int, vector unsigned int);
  39890. vector unsigned int vec_orc (vector bool unsigned int, vector unsigned int);
  39891. vector unsigned int vec_orc (vector unsigned int, vector bool unsigned int);
  39892. vector short vec_orc (vector short, vector short);
  39893. vector short vec_orc (vector bool short, vector short);
  39894. vector short vec_orc (vector short, vector bool short);
  39895. vector unsigned short vec_orc (vector unsigned short, vector unsigned short);
  39896. vector unsigned short vec_orc (vector bool unsigned short, vector unsigned short);
  39897. vector unsigned short vec_orc (vector unsigned short, vector bool unsigned short);
  39898. vector signed char vec_orc (vector signed char, vector signed char);
  39899. vector signed char vec_orc (vector bool signed char, vector signed char);
  39900. vector signed char vec_orc (vector signed char, vector bool signed char);
  39901. vector unsigned char vec_orc (vector unsigned char, vector unsigned char);
  39902. vector unsigned char vec_orc (vector bool unsigned char, vector unsigned char);
  39903. vector unsigned char vec_orc (vector unsigned char, vector bool unsigned char);
  39904. vector int vec_pack (vector long long, vector long long);
  39905. vector unsigned int vec_pack (vector unsigned long long, vector unsigned long long);
  39906. vector bool int vec_pack (vector bool long long, vector bool long long);
  39907. vector float vec_pack (vector double, vector double);
  39908. vector int vec_packs (vector long long, vector long long);
  39909. vector unsigned int vec_packs (vector unsigned long long, vector unsigned long long);
  39910. vector unsigned char vec_packsu (vector signed short, vector signed short)
  39911. vector unsigned char vec_packsu (vector unsigned short, vector unsigned short)
  39912. vector unsigned short int vec_packsu (vector signed int, vector signed int);
  39913. vector unsigned short int vec_packsu (vector unsigned int, vector unsigned int);
  39914. vector unsigned int vec_packsu (vector long long, vector long long);
  39915. vector unsigned int vec_packsu (vector unsigned long long, vector unsigned long long);
  39916. vector unsigned int vec_packsu (vector signed long long, vector signed long long);
  39917. vector unsigned char vec_popcnt (vector signed char);
  39918. vector unsigned char vec_popcnt (vector unsigned char);
  39919. vector unsigned short vec_popcnt (vector signed short);
  39920. vector unsigned short vec_popcnt (vector unsigned short);
  39921. vector unsigned int vec_popcnt (vector signed int);
  39922. vector unsigned int vec_popcnt (vector unsigned int);
  39923. vector unsigned long long vec_popcnt (vector signed long long);
  39924. vector unsigned long long vec_popcnt (vector unsigned long long);
  39925. vector long long vec_rl (vector long long, vector unsigned long long);
  39926. vector long long vec_rl (vector unsigned long long, vector unsigned long long);
  39927. vector long long vec_sl (vector long long, vector unsigned long long);
  39928. vector long long vec_sl (vector unsigned long long, vector unsigned long long);
  39929. vector long long vec_sr (vector long long, vector unsigned long long);
  39930. vector unsigned long long char vec_sr (vector unsigned long long,
  39931. vector unsigned long long);
  39932. vector long long vec_sra (vector long long, vector unsigned long long);
  39933. vector unsigned long long vec_sra (vector unsigned long long,
  39934. vector unsigned long long);
  39935. vector long long vec_sub (vector long long, vector long long);
  39936. vector unsigned long long vec_sub (vector unsigned long long,
  39937. vector unsigned long long);
  39938. vector long long vec_unpackh (vector int);
  39939. vector unsigned long long vec_unpackh (vector unsigned int);
  39940. vector long long vec_unpackl (vector int);
  39941. vector unsigned long long vec_unpackl (vector unsigned int);
  39942. vector long long vec_vaddudm (vector long long, vector long long);
  39943. vector long long vec_vaddudm (vector bool long long, vector long long);
  39944. vector long long vec_vaddudm (vector long long, vector bool long long);
  39945. vector unsigned long long vec_vaddudm (vector unsigned long long,
  39946. vector unsigned long long);
  39947. vector unsigned long long vec_vaddudm (vector bool unsigned long long,
  39948. vector unsigned long long);
  39949. vector unsigned long long vec_vaddudm (vector unsigned long long,
  39950. vector bool unsigned long long);
  39951. vector long long vec_vbpermq (vector signed char, vector signed char);
  39952. vector long long vec_vbpermq (vector unsigned char, vector unsigned char);
  39953. vector unsigned char vec_bperm (vector unsigned char, vector unsigned char);
  39954. vector unsigned char vec_bperm (vector unsigned long long, vector unsigned char);
  39955. vector unsigned long long vec_bperm (vector unsigned __int128, vector unsigned char);
  39956. vector long long vec_cntlz (vector long long);
  39957. vector unsigned long long vec_cntlz (vector unsigned long long);
  39958. vector int vec_cntlz (vector int);
  39959. vector unsigned int vec_cntlz (vector int);
  39960. vector short vec_cntlz (vector short);
  39961. vector unsigned short vec_cntlz (vector unsigned short);
  39962. vector signed char vec_cntlz (vector signed char);
  39963. vector unsigned char vec_cntlz (vector unsigned char);
  39964. vector long long vec_vclz (vector long long);
  39965. vector unsigned long long vec_vclz (vector unsigned long long);
  39966. vector int vec_vclz (vector int);
  39967. vector unsigned int vec_vclz (vector int);
  39968. vector short vec_vclz (vector short);
  39969. vector unsigned short vec_vclz (vector unsigned short);
  39970. vector signed char vec_vclz (vector signed char);
  39971. vector unsigned char vec_vclz (vector unsigned char);
  39972. vector signed char vec_vclzb (vector signed char);
  39973. vector unsigned char vec_vclzb (vector unsigned char);
  39974. vector long long vec_vclzd (vector long long);
  39975. vector unsigned long long vec_vclzd (vector unsigned long long);
  39976. vector short vec_vclzh (vector short);
  39977. vector unsigned short vec_vclzh (vector unsigned short);
  39978. vector int vec_vclzw (vector int);
  39979. vector unsigned int vec_vclzw (vector int);
  39980. vector signed char vec_vgbbd (vector signed char);
  39981. vector unsigned char vec_vgbbd (vector unsigned char);
  39982. vector long long vec_vmaxsd (vector long long, vector long long);
  39983. vector unsigned long long vec_vmaxud (vector unsigned long long,
  39984. unsigned vector long long);
  39985. vector long long vec_vminsd (vector long long, vector long long);
  39986. vector unsigned long long vec_vminud (vector long long, vector long long);
  39987. vector int vec_vpksdss (vector long long, vector long long);
  39988. vector unsigned int vec_vpksdss (vector long long, vector long long);
  39989. vector unsigned int vec_vpkudus (vector unsigned long long,
  39990. vector unsigned long long);
  39991. vector int vec_vpkudum (vector long long, vector long long);
  39992. vector unsigned int vec_vpkudum (vector unsigned long long,
  39993. vector unsigned long long);
  39994. vector bool int vec_vpkudum (vector bool long long, vector bool long long);
  39995. vector long long vec_vpopcnt (vector long long);
  39996. vector unsigned long long vec_vpopcnt (vector unsigned long long);
  39997. vector int vec_vpopcnt (vector int);
  39998. vector unsigned int vec_vpopcnt (vector int);
  39999. vector short vec_vpopcnt (vector short);
  40000. vector unsigned short vec_vpopcnt (vector unsigned short);
  40001. vector signed char vec_vpopcnt (vector signed char);
  40002. vector unsigned char vec_vpopcnt (vector unsigned char);
  40003. vector signed char vec_vpopcntb (vector signed char);
  40004. vector unsigned char vec_vpopcntb (vector unsigned char);
  40005. vector long long vec_vpopcntd (vector long long);
  40006. vector unsigned long long vec_vpopcntd (vector unsigned long long);
  40007. vector short vec_vpopcnth (vector short);
  40008. vector unsigned short vec_vpopcnth (vector unsigned short);
  40009. vector int vec_vpopcntw (vector int);
  40010. vector unsigned int vec_vpopcntw (vector int);
  40011. vector long long vec_vrld (vector long long, vector unsigned long long);
  40012. vector unsigned long long vec_vrld (vector unsigned long long,
  40013. vector unsigned long long);
  40014. vector long long vec_vsld (vector long long, vector unsigned long long);
  40015. vector long long vec_vsld (vector unsigned long long,
  40016. vector unsigned long long);
  40017. vector long long vec_vsrad (vector long long, vector unsigned long long);
  40018. vector unsigned long long vec_vsrad (vector unsigned long long,
  40019. vector unsigned long long);
  40020. vector long long vec_vsrd (vector long long, vector unsigned long long);
  40021. vector unsigned long long char vec_vsrd (vector unsigned long long,
  40022. vector unsigned long long);
  40023. vector long long vec_vsubudm (vector long long, vector long long);
  40024. vector long long vec_vsubudm (vector bool long long, vector long long);
  40025. vector long long vec_vsubudm (vector long long, vector bool long long);
  40026. vector unsigned long long vec_vsubudm (vector unsigned long long,
  40027. vector unsigned long long);
  40028. vector unsigned long long vec_vsubudm (vector bool long long,
  40029. vector unsigned long long);
  40030. vector unsigned long long vec_vsubudm (vector unsigned long long,
  40031. vector bool long long);
  40032. vector long long vec_vupkhsw (vector int);
  40033. vector unsigned long long vec_vupkhsw (vector unsigned int);
  40034. vector long long vec_vupklsw (vector int);
  40035. vector unsigned long long vec_vupklsw (vector int);
  40036. If the ISA 2.07 additions to the vector/scalar (power8-vector)
  40037. instruction set are available, the following additional functions are
  40038. available for 64-bit targets. New vector types (VECTOR __INT128 and
  40039. VECTOR __UINT128) are available to hold the __INT128 and __UINT128 types
  40040. to use these builtins.
  40041. The normal vector extract, and set operations work on VECTOR __INT128
  40042. and VECTOR __UINT128 types, but the index value must be 0.
  40043. vector __int128 vec_vaddcuq (vector __int128, vector __int128);
  40044. vector __uint128 vec_vaddcuq (vector __uint128, vector __uint128);
  40045. vector __int128 vec_vadduqm (vector __int128, vector __int128);
  40046. vector __uint128 vec_vadduqm (vector __uint128, vector __uint128);
  40047. vector __int128 vec_vaddecuq (vector __int128, vector __int128,
  40048. vector __int128);
  40049. vector __uint128 vec_vaddecuq (vector __uint128, vector __uint128,
  40050. vector __uint128);
  40051. vector __int128 vec_vaddeuqm (vector __int128, vector __int128,
  40052. vector __int128);
  40053. vector __uint128 vec_vaddeuqm (vector __uint128, vector __uint128,
  40054. vector __uint128);
  40055. vector __int128 vec_vsubecuq (vector __int128, vector __int128,
  40056. vector __int128);
  40057. vector __uint128 vec_vsubecuq (vector __uint128, vector __uint128,
  40058. vector __uint128);
  40059. vector __int128 vec_vsubeuqm (vector __int128, vector __int128,
  40060. vector __int128);
  40061. vector __uint128 vec_vsubeuqm (vector __uint128, vector __uint128,
  40062. vector __uint128);
  40063. vector __int128 vec_vsubcuq (vector __int128, vector __int128);
  40064. vector __uint128 vec_vsubcuq (vector __uint128, vector __uint128);
  40065. __int128 vec_vsubuqm (__int128, __int128);
  40066. __uint128 vec_vsubuqm (__uint128, __uint128);
  40067. vector __int128 __builtin_bcdadd (vector __int128, vector __int128, const int);
  40068. int __builtin_bcdadd_lt (vector __int128, vector __int128, const int);
  40069. int __builtin_bcdadd_eq (vector __int128, vector __int128, const int);
  40070. int __builtin_bcdadd_gt (vector __int128, vector __int128, const int);
  40071. int __builtin_bcdadd_ov (vector __int128, vector __int128, const int);
  40072. vector __int128 __builtin_bcdsub (vector __int128, vector __int128, const int);
  40073. int __builtin_bcdsub_lt (vector __int128, vector __int128, const int);
  40074. int __builtin_bcdsub_eq (vector __int128, vector __int128, const int);
  40075. int __builtin_bcdsub_gt (vector __int128, vector __int128, const int);
  40076. int __builtin_bcdsub_ov (vector __int128, vector __int128, const int);
  40077. 
  40078. File: gcc.info, Node: PowerPC AltiVec Built-in Functions Available on ISA 3.0, Prev: PowerPC AltiVec Built-in Functions Available on ISA 2.07, Up: PowerPC AltiVec/VSX Built-in Functions
  40079. 6.60.24.4 PowerPC AltiVec Built-in Functions Available on ISA 3.0
  40080. .................................................................
  40081. The following additional built-in functions are also available for the
  40082. PowerPC family of processors, starting with ISA 3.0 ('-mcpu=power9') or
  40083. later:
  40084. unsigned int scalar_extract_exp (double source);
  40085. unsigned long long int scalar_extract_exp (__ieee128 source);
  40086. unsigned long long int scalar_extract_sig (double source);
  40087. unsigned __int128 scalar_extract_sig (__ieee128 source);
  40088. double scalar_insert_exp (unsigned long long int significand,
  40089. unsigned long long int exponent);
  40090. double scalar_insert_exp (double significand, unsigned long long int exponent);
  40091. ieee_128 scalar_insert_exp (unsigned __int128 significand,
  40092. unsigned long long int exponent);
  40093. ieee_128 scalar_insert_exp (ieee_128 significand, unsigned long long int exponent);
  40094. int scalar_cmp_exp_gt (double arg1, double arg2);
  40095. int scalar_cmp_exp_lt (double arg1, double arg2);
  40096. int scalar_cmp_exp_eq (double arg1, double arg2);
  40097. int scalar_cmp_exp_unordered (double arg1, double arg2);
  40098. bool scalar_test_data_class (float source, const int condition);
  40099. bool scalar_test_data_class (double source, const int condition);
  40100. bool scalar_test_data_class (__ieee128 source, const int condition);
  40101. bool scalar_test_neg (float source);
  40102. bool scalar_test_neg (double source);
  40103. bool scalar_test_neg (__ieee128 source);
  40104. The 'scalar_extract_exp' and 'scalar_extract_sig' functions require a
  40105. 64-bit environment supporting ISA 3.0 or later. The
  40106. 'scalar_extract_exp' and 'scalar_extract_sig' built-in functions return
  40107. the significand and the biased exponent value respectively of their
  40108. 'source' arguments. When supplied with a 64-bit 'source' argument, the
  40109. result returned by 'scalar_extract_sig' has the '0x0010000000000000' bit
  40110. set if the function's 'source' argument is in normalized form.
  40111. Otherwise, this bit is set to 0. When supplied with a 128-bit 'source'
  40112. argument, the '0x00010000000000000000000000000000' bit of the result is
  40113. treated similarly. Note that the sign of the significand is not
  40114. represented in the result returned from the 'scalar_extract_sig'
  40115. function. Use the 'scalar_test_neg' function to test the sign of its
  40116. 'double' argument.
  40117. The 'scalar_insert_exp' functions require a 64-bit environment
  40118. supporting ISA 3.0 or later. When supplied with a 64-bit first
  40119. argument, the 'scalar_insert_exp' built-in function returns a
  40120. double-precision floating point value that is constructed by assembling
  40121. the values of its 'significand' and 'exponent' arguments. The sign of
  40122. the result is copied from the most significant bit of the 'significand'
  40123. argument. The significand and exponent components of the result are
  40124. composed of the least significant 11 bits of the 'exponent' argument and
  40125. the least significant 52 bits of the 'significand' argument
  40126. respectively.
  40127. When supplied with a 128-bit first argument, the 'scalar_insert_exp'
  40128. built-in function returns a quad-precision ieee floating point value.
  40129. The sign bit of the result is copied from the most significant bit of
  40130. the 'significand' argument. The significand and exponent components of
  40131. the result are composed of the least significant 15 bits of the
  40132. 'exponent' argument and the least significant 112 bits of the
  40133. 'significand' argument respectively.
  40134. The 'scalar_cmp_exp_gt', 'scalar_cmp_exp_lt', 'scalar_cmp_exp_eq', and
  40135. 'scalar_cmp_exp_unordered' built-in functions return a non-zero value if
  40136. 'arg1' is greater than, less than, equal to, or not comparable to 'arg2'
  40137. respectively. The arguments are not comparable if one or the other
  40138. equals NaN (not a number).
  40139. The 'scalar_test_data_class' built-in function returns 1 if any of the
  40140. condition tests enabled by the value of the 'condition' variable are
  40141. true, and 0 otherwise. The 'condition' argument must be a compile-time
  40142. constant integer with value not exceeding 127. The 'condition' argument
  40143. is encoded as a bitmask with each bit enabling the testing of a
  40144. different condition, as characterized by the following:
  40145. 0x40 Test for NaN
  40146. 0x20 Test for +Infinity
  40147. 0x10 Test for -Infinity
  40148. 0x08 Test for +Zero
  40149. 0x04 Test for -Zero
  40150. 0x02 Test for +Denormal
  40151. 0x01 Test for -Denormal
  40152. The 'scalar_test_neg' built-in function returns 1 if its 'source'
  40153. argument holds a negative value, 0 otherwise.
  40154. The following built-in functions are also available for the PowerPC
  40155. family of processors, starting with ISA 3.0 or later ('-mcpu=power9').
  40156. These string functions are described separately in order to group the
  40157. descriptions closer to the function prototypes:
  40158. int vec_all_nez (vector signed char, vector signed char);
  40159. int vec_all_nez (vector unsigned char, vector unsigned char);
  40160. int vec_all_nez (vector signed short, vector signed short);
  40161. int vec_all_nez (vector unsigned short, vector unsigned short);
  40162. int vec_all_nez (vector signed int, vector signed int);
  40163. int vec_all_nez (vector unsigned int, vector unsigned int);
  40164. int vec_any_eqz (vector signed char, vector signed char);
  40165. int vec_any_eqz (vector unsigned char, vector unsigned char);
  40166. int vec_any_eqz (vector signed short, vector signed short);
  40167. int vec_any_eqz (vector unsigned short, vector unsigned short);
  40168. int vec_any_eqz (vector signed int, vector signed int);
  40169. int vec_any_eqz (vector unsigned int, vector unsigned int);
  40170. vector bool char vec_cmpnez (vector signed char arg1, vector signed char arg2);
  40171. vector bool char vec_cmpnez (vector unsigned char arg1, vector unsigned char arg2);
  40172. vector bool short vec_cmpnez (vector signed short arg1, vector signed short arg2);
  40173. vector bool short vec_cmpnez (vector unsigned short arg1, vector unsigned short arg2);
  40174. vector bool int vec_cmpnez (vector signed int arg1, vector signed int arg2);
  40175. vector bool int vec_cmpnez (vector unsigned int, vector unsigned int);
  40176. vector signed char vec_cnttz (vector signed char);
  40177. vector unsigned char vec_cnttz (vector unsigned char);
  40178. vector signed short vec_cnttz (vector signed short);
  40179. vector unsigned short vec_cnttz (vector unsigned short);
  40180. vector signed int vec_cnttz (vector signed int);
  40181. vector unsigned int vec_cnttz (vector unsigned int);
  40182. vector signed long long vec_cnttz (vector signed long long);
  40183. vector unsigned long long vec_cnttz (vector unsigned long long);
  40184. signed int vec_cntlz_lsbb (vector signed char);
  40185. signed int vec_cntlz_lsbb (vector unsigned char);
  40186. signed int vec_cnttz_lsbb (vector signed char);
  40187. signed int vec_cnttz_lsbb (vector unsigned char);
  40188. unsigned int vec_first_match_index (vector signed char, vector signed char);
  40189. unsigned int vec_first_match_index (vector unsigned char, vector unsigned char);
  40190. unsigned int vec_first_match_index (vector signed int, vector signed int);
  40191. unsigned int vec_first_match_index (vector unsigned int, vector unsigned int);
  40192. unsigned int vec_first_match_index (vector signed short, vector signed short);
  40193. unsigned int vec_first_match_index (vector unsigned short, vector unsigned short);
  40194. unsigned int vec_first_match_or_eos_index (vector signed char, vector signed char);
  40195. unsigned int vec_first_match_or_eos_index (vector unsigned char, vector unsigned char);
  40196. unsigned int vec_first_match_or_eos_index (vector signed int, vector signed int);
  40197. unsigned int vec_first_match_or_eos_index (vector unsigned int, vector unsigned int);
  40198. unsigned int vec_first_match_or_eos_index (vector signed short, vector signed short);
  40199. unsigned int vec_first_match_or_eos_index (vector unsigned short,
  40200. vector unsigned short);
  40201. unsigned int vec_first_mismatch_index (vector signed char, vector signed char);
  40202. unsigned int vec_first_mismatch_index (vector unsigned char, vector unsigned char);
  40203. unsigned int vec_first_mismatch_index (vector signed int, vector signed int);
  40204. unsigned int vec_first_mismatch_index (vector unsigned int, vector unsigned int);
  40205. unsigned int vec_first_mismatch_index (vector signed short, vector signed short);
  40206. unsigned int vec_first_mismatch_index (vector unsigned short, vector unsigned short);
  40207. unsigned int vec_first_mismatch_or_eos_index (vector signed char, vector signed char);
  40208. unsigned int vec_first_mismatch_or_eos_index (vector unsigned char,
  40209. vector unsigned char);
  40210. unsigned int vec_first_mismatch_or_eos_index (vector signed int, vector signed int);
  40211. unsigned int vec_first_mismatch_or_eos_index (vector unsigned int, vector unsigned int);
  40212. unsigned int vec_first_mismatch_or_eos_index (vector signed short, vector signed short);
  40213. unsigned int vec_first_mismatch_or_eos_index (vector unsigned short,
  40214. vector unsigned short);
  40215. vector unsigned short vec_pack_to_short_fp32 (vector float, vector float);
  40216. vector signed char vec_xl_be (signed long long, signed char *);
  40217. vector unsigned char vec_xl_be (signed long long, unsigned char *);
  40218. vector signed int vec_xl_be (signed long long, signed int *);
  40219. vector unsigned int vec_xl_be (signed long long, unsigned int *);
  40220. vector signed __int128 vec_xl_be (signed long long, signed __int128 *);
  40221. vector unsigned __int128 vec_xl_be (signed long long, unsigned __int128 *);
  40222. vector signed long long vec_xl_be (signed long long, signed long long *);
  40223. vector unsigned long long vec_xl_be (signed long long, unsigned long long *);
  40224. vector signed short vec_xl_be (signed long long, signed short *);
  40225. vector unsigned short vec_xl_be (signed long long, unsigned short *);
  40226. vector double vec_xl_be (signed long long, double *);
  40227. vector float vec_xl_be (signed long long, float *);
  40228. vector signed char vec_xl_len (signed char *addr, size_t len);
  40229. vector unsigned char vec_xl_len (unsigned char *addr, size_t len);
  40230. vector signed int vec_xl_len (signed int *addr, size_t len);
  40231. vector unsigned int vec_xl_len (unsigned int *addr, size_t len);
  40232. vector signed __int128 vec_xl_len (signed __int128 *addr, size_t len);
  40233. vector unsigned __int128 vec_xl_len (unsigned __int128 *addr, size_t len);
  40234. vector signed long long vec_xl_len (signed long long *addr, size_t len);
  40235. vector unsigned long long vec_xl_len (unsigned long long *addr, size_t len);
  40236. vector signed short vec_xl_len (signed short *addr, size_t len);
  40237. vector unsigned short vec_xl_len (unsigned short *addr, size_t len);
  40238. vector double vec_xl_len (double *addr, size_t len);
  40239. vector float vec_xl_len (float *addr, size_t len);
  40240. vector unsigned char vec_xl_len_r (unsigned char *addr, size_t len);
  40241. void vec_xst_len (vector signed char data, signed char *addr, size_t len);
  40242. void vec_xst_len (vector unsigned char data, unsigned char *addr, size_t len);
  40243. void vec_xst_len (vector signed int data, signed int *addr, size_t len);
  40244. void vec_xst_len (vector unsigned int data, unsigned int *addr, size_t len);
  40245. void vec_xst_len (vector unsigned __int128 data, unsigned __int128 *addr, size_t len);
  40246. void vec_xst_len (vector signed long long data, signed long long *addr, size_t len);
  40247. void vec_xst_len (vector unsigned long long data, unsigned long long *addr, size_t len);
  40248. void vec_xst_len (vector signed short data, signed short *addr, size_t len);
  40249. void vec_xst_len (vector unsigned short data, unsigned short *addr, size_t len);
  40250. void vec_xst_len (vector signed __int128 data, signed __int128 *addr, size_t len);
  40251. void vec_xst_len (vector double data, double *addr, size_t len);
  40252. void vec_xst_len (vector float data, float *addr, size_t len);
  40253. void vec_xst_len_r (vector unsigned char data, unsigned char *addr, size_t len);
  40254. signed char vec_xlx (unsigned int index, vector signed char data);
  40255. unsigned char vec_xlx (unsigned int index, vector unsigned char data);
  40256. signed short vec_xlx (unsigned int index, vector signed short data);
  40257. unsigned short vec_xlx (unsigned int index, vector unsigned short data);
  40258. signed int vec_xlx (unsigned int index, vector signed int data);
  40259. unsigned int vec_xlx (unsigned int index, vector unsigned int data);
  40260. float vec_xlx (unsigned int index, vector float data);
  40261. signed char vec_xrx (unsigned int index, vector signed char data);
  40262. unsigned char vec_xrx (unsigned int index, vector unsigned char data);
  40263. signed short vec_xrx (unsigned int index, vector signed short data);
  40264. unsigned short vec_xrx (unsigned int index, vector unsigned short data);
  40265. signed int vec_xrx (unsigned int index, vector signed int data);
  40266. unsigned int vec_xrx (unsigned int index, vector unsigned int data);
  40267. float vec_xrx (unsigned int index, vector float data);
  40268. The 'vec_all_nez', 'vec_any_eqz', and 'vec_cmpnez' perform pairwise
  40269. comparisons between the elements at the same positions within their two
  40270. vector arguments. The 'vec_all_nez' function returns a non-zero value
  40271. if and only if all pairwise comparisons are not equal and no element of
  40272. either vector argument contains a zero. The 'vec_any_eqz' function
  40273. returns a non-zero value if and only if at least one pairwise comparison
  40274. is equal or if at least one element of either vector argument contains a
  40275. zero. The 'vec_cmpnez' function returns a vector of the same type as
  40276. its two arguments, within which each element consists of all ones to
  40277. denote that either the corresponding elements of the incoming arguments
  40278. are not equal or that at least one of the corresponding elements
  40279. contains zero. Otherwise, the element of the returned vector contains
  40280. all zeros.
  40281. The 'vec_cntlz_lsbb' function returns the count of the number of
  40282. consecutive leading byte elements (starting from position 0 within the
  40283. supplied vector argument) for which the least-significant bit equals
  40284. zero. The 'vec_cnttz_lsbb' function returns the count of the number of
  40285. consecutive trailing byte elements (starting from position 15 and
  40286. counting backwards within the supplied vector argument) for which the
  40287. least-significant bit equals zero.
  40288. The 'vec_xl_len' and 'vec_xst_len' functions require a 64-bit
  40289. environment supporting ISA 3.0 or later. The 'vec_xl_len' function
  40290. loads a variable length vector from memory. The 'vec_xst_len' function
  40291. stores a variable length vector to memory. With both the 'vec_xl_len'
  40292. and 'vec_xst_len' functions, the 'addr' argument represents the memory
  40293. address to or from which data will be transferred, and the 'len'
  40294. argument represents the number of bytes to be transferred, as computed
  40295. by the C expression 'min((len & 0xff), 16)'. If this expression's value
  40296. is not a multiple of the vector element's size, the behavior of this
  40297. function is undefined. In the case that the underlying computer is
  40298. configured to run in big-endian mode, the data transfer moves bytes 0 to
  40299. '(len - 1)' of the corresponding vector. In little-endian mode, the
  40300. data transfer moves bytes '(16 - len)' to '15' of the corresponding
  40301. vector. For the load function, any bytes of the result vector that are
  40302. not loaded from memory are set to zero. The value of the 'addr'
  40303. argument need not be aligned on a multiple of the vector's element size.
  40304. The 'vec_xlx' and 'vec_xrx' functions extract the single element
  40305. selected by the 'index' argument from the vector represented by the
  40306. 'data' argument. The 'index' argument always specifies a byte offset,
  40307. regardless of the size of the vector element. With 'vec_xlx', 'index'
  40308. is the offset of the first byte of the element to be extracted. With
  40309. 'vec_xrx', 'index' represents the last byte of the element to be
  40310. extracted, measured from the right end of the vector. In other words,
  40311. the last byte of the element to be extracted is found at position '(15 -
  40312. index)'. There is no requirement that 'index' be a multiple of the
  40313. vector element size. However, if the size of the vector element added
  40314. to 'index' is greater than 15, the content of the returned value is
  40315. undefined.
  40316. If the ISA 3.0 instruction set additions ('-mcpu=power9') are
  40317. available:
  40318. vector unsigned long long vec_bperm (vector unsigned long long, vector unsigned char);
  40319. vector bool char vec_cmpne (vector bool char, vector bool char);
  40320. vector bool char vec_cmpne (vector signed char, vector signed char);
  40321. vector bool char vec_cmpne (vector unsigned char, vector unsigned char);
  40322. vector bool int vec_cmpne (vector bool int, vector bool int);
  40323. vector bool int vec_cmpne (vector signed int, vector signed int);
  40324. vector bool int vec_cmpne (vector unsigned int, vector unsigned int);
  40325. vector bool long long vec_cmpne (vector bool long long, vector bool long long);
  40326. vector bool long long vec_cmpne (vector signed long long, vector signed long long);
  40327. vector bool long long vec_cmpne (vector unsigned long long, vector unsigned long long);
  40328. vector bool short vec_cmpne (vector bool short, vector bool short);
  40329. vector bool short vec_cmpne (vector signed short, vector signed short);
  40330. vector bool short vec_cmpne (vector unsigned short, vector unsigned short);
  40331. vector bool long long vec_cmpne (vector double, vector double);
  40332. vector bool int vec_cmpne (vector float, vector float);
  40333. vector float vec_extract_fp32_from_shorth (vector unsigned short);
  40334. vector float vec_extract_fp32_from_shortl (vector unsigned short);
  40335. vector long long vec_vctz (vector long long);
  40336. vector unsigned long long vec_vctz (vector unsigned long long);
  40337. vector int vec_vctz (vector int);
  40338. vector unsigned int vec_vctz (vector int);
  40339. vector short vec_vctz (vector short);
  40340. vector unsigned short vec_vctz (vector unsigned short);
  40341. vector signed char vec_vctz (vector signed char);
  40342. vector unsigned char vec_vctz (vector unsigned char);
  40343. vector signed char vec_vctzb (vector signed char);
  40344. vector unsigned char vec_vctzb (vector unsigned char);
  40345. vector long long vec_vctzd (vector long long);
  40346. vector unsigned long long vec_vctzd (vector unsigned long long);
  40347. vector short vec_vctzh (vector short);
  40348. vector unsigned short vec_vctzh (vector unsigned short);
  40349. vector int vec_vctzw (vector int);
  40350. vector unsigned int vec_vctzw (vector int);
  40351. vector unsigned long long vec_extract4b (vector unsigned char, const int);
  40352. vector unsigned char vec_insert4b (vector signed int, vector unsigned char,
  40353. const int);
  40354. vector unsigned char vec_insert4b (vector unsigned int, vector unsigned char,
  40355. const int);
  40356. vector unsigned int vec_parity_lsbb (vector signed int);
  40357. vector unsigned int vec_parity_lsbb (vector unsigned int);
  40358. vector unsigned __int128 vec_parity_lsbb (vector signed __int128);
  40359. vector unsigned __int128 vec_parity_lsbb (vector unsigned __int128);
  40360. vector unsigned long long vec_parity_lsbb (vector signed long long);
  40361. vector unsigned long long vec_parity_lsbb (vector unsigned long long);
  40362. vector int vec_vprtyb (vector int);
  40363. vector unsigned int vec_vprtyb (vector unsigned int);
  40364. vector long long vec_vprtyb (vector long long);
  40365. vector unsigned long long vec_vprtyb (vector unsigned long long);
  40366. vector int vec_vprtybw (vector int);
  40367. vector unsigned int vec_vprtybw (vector unsigned int);
  40368. vector long long vec_vprtybd (vector long long);
  40369. vector unsigned long long vec_vprtybd (vector unsigned long long);
  40370. On 64-bit targets, if the ISA 3.0 additions ('-mcpu=power9') are
  40371. available:
  40372. vector long vec_vprtyb (vector long);
  40373. vector unsigned long vec_vprtyb (vector unsigned long);
  40374. vector __int128 vec_vprtyb (vector __int128);
  40375. vector __uint128 vec_vprtyb (vector __uint128);
  40376. vector long vec_vprtybd (vector long);
  40377. vector unsigned long vec_vprtybd (vector unsigned long);
  40378. vector __int128 vec_vprtybq (vector __int128);
  40379. vector __uint128 vec_vprtybd (vector __uint128);
  40380. The following built-in vector functions are available for the PowerPC
  40381. family of processors, starting with ISA 3.0 or later ('-mcpu=power9'):
  40382. __vector unsigned char
  40383. vec_slv (__vector unsigned char src, __vector unsigned char shift_distance);
  40384. __vector unsigned char
  40385. vec_srv (__vector unsigned char src, __vector unsigned char shift_distance);
  40386. The 'vec_slv' and 'vec_srv' functions operate on all of the bytes of
  40387. their 'src' and 'shift_distance' arguments in parallel. The behavior of
  40388. the 'vec_slv' is as if there existed a temporary array of 17 unsigned
  40389. characters 'slv_array' within which elements 0 through 15 are the same
  40390. as the entries in the 'src' array and element 16 equals 0. The result
  40391. returned from the 'vec_slv' function is a '__vector' of 16 unsigned
  40392. characters within which element 'i' is computed using the C expression
  40393. '0xff & (*((unsigned short *)(slv_array + i)) << (0x07 &
  40394. shift_distance[i]))', with this resulting value coerced to the 'unsigned
  40395. char' type. The behavior of the 'vec_srv' is as if there existed a
  40396. temporary array of 17 unsigned characters 'srv_array' within which
  40397. element 0 equals zero and elements 1 through 16 equal the elements 0
  40398. through 15 of the 'src' array. The result returned from the 'vec_srv'
  40399. function is a '__vector' of 16 unsigned characters within which element
  40400. 'i' is computed using the C expression '0xff & (*((unsigned short
  40401. *)(srv_array + i)) >> (0x07 & shift_distance[i]))', with this resulting
  40402. value coerced to the 'unsigned char' type.
  40403. The following built-in functions are available for the PowerPC family
  40404. of processors, starting with ISA 3.0 or later ('-mcpu=power9'):
  40405. __vector unsigned char
  40406. vec_absd (__vector unsigned char arg1, __vector unsigned char arg2);
  40407. __vector unsigned short
  40408. vec_absd (__vector unsigned short arg1, __vector unsigned short arg2);
  40409. __vector unsigned int
  40410. vec_absd (__vector unsigned int arg1, __vector unsigned int arg2);
  40411. __vector unsigned char
  40412. vec_absdb (__vector unsigned char arg1, __vector unsigned char arg2);
  40413. __vector unsigned short
  40414. vec_absdh (__vector unsigned short arg1, __vector unsigned short arg2);
  40415. __vector unsigned int
  40416. vec_absdw (__vector unsigned int arg1, __vector unsigned int arg2);
  40417. The 'vec_absd', 'vec_absdb', 'vec_absdh', and 'vec_absdw' built-in
  40418. functions each computes the absolute differences of the pairs of vector
  40419. elements supplied in its two vector arguments, placing the absolute
  40420. differences into the corresponding elements of the vector result.
  40421. The following built-in functions are available for the PowerPC family
  40422. of processors, starting with ISA 3.0 or later ('-mcpu=power9'):
  40423. __vector unsigned int vec_extract_exp (__vector float source);
  40424. __vector unsigned long long int vec_extract_exp (__vector double source);
  40425. __vector unsigned int vec_extract_sig (__vector float source);
  40426. __vector unsigned long long int vec_extract_sig (__vector double source);
  40427. __vector float vec_insert_exp (__vector unsigned int significands,
  40428. __vector unsigned int exponents);
  40429. __vector float vec_insert_exp (__vector unsigned float significands,
  40430. __vector unsigned int exponents);
  40431. __vector double vec_insert_exp (__vector unsigned long long int significands,
  40432. __vector unsigned long long int exponents);
  40433. __vector double vec_insert_exp (__vector unsigned double significands,
  40434. __vector unsigned long long int exponents);
  40435. __vector bool int vec_test_data_class (__vector float source, const int condition);
  40436. __vector bool long long int vec_test_data_class (__vector double source,
  40437. const int condition);
  40438. The 'vec_extract_sig' and 'vec_extract_exp' built-in functions return
  40439. vectors representing the significands and biased exponent values of
  40440. their 'source' arguments respectively. Within the result vector
  40441. returned by 'vec_extract_sig', the '0x800000' bit of each vector element
  40442. returned when the function's 'source' argument is of type 'float' is set
  40443. to 1 if the corresponding floating point value is in normalized form.
  40444. Otherwise, this bit is set to 0. When the 'source' argument is of type
  40445. 'double', the '0x10000000000000' bit within each of the result vector's
  40446. elements is set according to the same rules. Note that the sign of the
  40447. significand is not represented in the result returned from the
  40448. 'vec_extract_sig' function. To extract the sign bits, use the
  40449. 'vec_cpsgn' function, which returns a new vector within which all of the
  40450. sign bits of its second argument vector are overwritten with the sign
  40451. bits copied from the coresponding elements of its first argument vector,
  40452. and all other (non-sign) bits of the second argument vector are copied
  40453. unchanged into the result vector.
  40454. The 'vec_insert_exp' built-in functions return a vector of single- or
  40455. double-precision floating point values constructed by assembling the
  40456. values of their 'significands' and 'exponents' arguments into the
  40457. corresponding elements of the returned vector. The sign of each element
  40458. of the result is copied from the most significant bit of the
  40459. corresponding entry within the 'significands' argument. Note that the
  40460. relevant bits of the 'significands' argument are the same, for both
  40461. integer and floating point types. The significand and exponent
  40462. components of each element of the result are composed of the least
  40463. significant bits of the corresponding 'significands' element and the
  40464. least significant bits of the corresponding 'exponents' element.
  40465. The 'vec_test_data_class' built-in function returns a vector
  40466. representing the results of testing the 'source' vector for the
  40467. condition selected by the 'condition' argument. The 'condition'
  40468. argument must be a compile-time constant integer with value not
  40469. exceeding 127. The 'condition' argument is encoded as a bitmask with
  40470. each bit enabling the testing of a different condition, as characterized
  40471. by the following:
  40472. 0x40 Test for NaN
  40473. 0x20 Test for +Infinity
  40474. 0x10 Test for -Infinity
  40475. 0x08 Test for +Zero
  40476. 0x04 Test for -Zero
  40477. 0x02 Test for +Denormal
  40478. 0x01 Test for -Denormal
  40479. If any of the enabled test conditions is true, the corresponding entry
  40480. in the result vector is -1. Otherwise (all of the enabled test
  40481. conditions are false), the corresponding entry of the result vector is
  40482. 0.
  40483. The following built-in functions are available for the PowerPC family
  40484. of processors, starting with ISA 3.0 or later ('-mcpu=power9'):
  40485. vector unsigned int vec_rlmi (vector unsigned int, vector unsigned int,
  40486. vector unsigned int);
  40487. vector unsigned long long vec_rlmi (vector unsigned long long,
  40488. vector unsigned long long,
  40489. vector unsigned long long);
  40490. vector unsigned int vec_rlnm (vector unsigned int, vector unsigned int,
  40491. vector unsigned int);
  40492. vector unsigned long long vec_rlnm (vector unsigned long long,
  40493. vector unsigned long long,
  40494. vector unsigned long long);
  40495. vector unsigned int vec_vrlnm (vector unsigned int, vector unsigned int);
  40496. vector unsigned long long vec_vrlnm (vector unsigned long long,
  40497. vector unsigned long long);
  40498. The result of 'vec_rlmi' is obtained by rotating each element of the
  40499. first argument vector left and inserting it under mask into the second
  40500. argument vector. The third argument vector contains the mask beginning
  40501. in bits 11:15, the mask end in bits 19:23, and the shift count in bits
  40502. 27:31, of each element.
  40503. The result of 'vec_rlnm' is obtained by rotating each element of the
  40504. first argument vector left and ANDing it with a mask specified by the
  40505. second and third argument vectors. The second argument vector contains
  40506. the shift count for each element in the low-order byte. The third
  40507. argument vector contains the mask end for each element in the low-order
  40508. byte, with the mask begin in the next higher byte.
  40509. The result of 'vec_vrlnm' is obtained by rotating each element of the
  40510. first argument vector left and ANDing it with a mask. The second
  40511. argument vector contains the mask beginning in bits 11:15, the mask end
  40512. in bits 19:23, and the shift count in bits 27:31, of each element.
  40513. If the ISA 3.0 instruction set additions ('-mcpu=power9') are
  40514. available:
  40515. vector signed bool char vec_revb (vector signed char);
  40516. vector signed char vec_revb (vector signed char);
  40517. vector unsigned char vec_revb (vector unsigned char);
  40518. vector bool short vec_revb (vector bool short);
  40519. vector short vec_revb (vector short);
  40520. vector unsigned short vec_revb (vector unsigned short);
  40521. vector bool int vec_revb (vector bool int);
  40522. vector int vec_revb (vector int);
  40523. vector unsigned int vec_revb (vector unsigned int);
  40524. vector float vec_revb (vector float);
  40525. vector bool long long vec_revb (vector bool long long);
  40526. vector long long vec_revb (vector long long);
  40527. vector unsigned long long vec_revb (vector unsigned long long);
  40528. vector double vec_revb (vector double);
  40529. On 64-bit targets, if the ISA 3.0 additions ('-mcpu=power9') are
  40530. available:
  40531. vector long vec_revb (vector long);
  40532. vector unsigned long vec_revb (vector unsigned long);
  40533. vector __int128 vec_revb (vector __int128);
  40534. vector __uint128 vec_revb (vector __uint128);
  40535. The 'vec_revb' built-in function reverses the bytes on an element by
  40536. element basis. A vector of 'vector unsigned char' or 'vector signed
  40537. char' reverses the bytes in the whole word.
  40538. If the cryptographic instructions are enabled ('-mcrypto' or
  40539. '-mcpu=power8'), the following builtins are enabled.
  40540. vector unsigned long long __builtin_crypto_vsbox (vector unsigned long long);
  40541. vector unsigned char vec_sbox_be (vector unsigned char);
  40542. vector unsigned long long __builtin_crypto_vcipher (vector unsigned long long,
  40543. vector unsigned long long);
  40544. vector unsigned char vec_cipher_be (vector unsigned char, vector unsigned char);
  40545. vector unsigned long long __builtin_crypto_vcipherlast
  40546. (vector unsigned long long,
  40547. vector unsigned long long);
  40548. vector unsigned char vec_cipherlast_be (vector unsigned char,
  40549. vector unsigned char);
  40550. vector unsigned long long __builtin_crypto_vncipher (vector unsigned long long,
  40551. vector unsigned long long);
  40552. vector unsigned char vec_ncipher_be (vector unsigned char,
  40553. vector unsigned char);
  40554. vector unsigned long long __builtin_crypto_vncipherlast (vector unsigned long long,
  40555. vector unsigned long long);
  40556. vector unsigned char vec_ncipherlast_be (vector unsigned char,
  40557. vector unsigned char);
  40558. vector unsigned char __builtin_crypto_vpermxor (vector unsigned char,
  40559. vector unsigned char,
  40560. vector unsigned char);
  40561. vector unsigned short __builtin_crypto_vpermxor (vector unsigned short,
  40562. vector unsigned short,
  40563. vector unsigned short);
  40564. vector unsigned int __builtin_crypto_vpermxor (vector unsigned int,
  40565. vector unsigned int,
  40566. vector unsigned int);
  40567. vector unsigned long long __builtin_crypto_vpermxor (vector unsigned long long,
  40568. vector unsigned long long,
  40569. vector unsigned long long);
  40570. vector unsigned char __builtin_crypto_vpmsumb (vector unsigned char,
  40571. vector unsigned char);
  40572. vector unsigned short __builtin_crypto_vpmsumh (vector unsigned short,
  40573. vector unsigned short);
  40574. vector unsigned int __builtin_crypto_vpmsumw (vector unsigned int,
  40575. vector unsigned int);
  40576. vector unsigned long long __builtin_crypto_vpmsumd (vector unsigned long long,
  40577. vector unsigned long long);
  40578. vector unsigned long long __builtin_crypto_vshasigmad (vector unsigned long long,
  40579. int, int);
  40580. vector unsigned int __builtin_crypto_vshasigmaw (vector unsigned int, int, int);
  40581. The second argument to __BUILTIN_CRYPTO_VSHASIGMAD and
  40582. __BUILTIN_CRYPTO_VSHASIGMAW must be a constant integer that is 0 or 1.
  40583. The third argument to these built-in functions must be a constant
  40584. integer in the range of 0 to 15.
  40585. If the ISA 3.0 instruction set additions are enabled ('-mcpu=power9'),
  40586. the following additional functions are available for both 32-bit and
  40587. 64-bit targets.
  40588. vector short vec_xl (int, vector short *);
  40589. vector short vec_xl (int, short *);
  40590. vector unsigned short vec_xl (int, vector unsigned short *);
  40591. vector unsigned short vec_xl (int, unsigned short *);
  40592. vector char vec_xl (int, vector char *);
  40593. vector char vec_xl (int, char *);
  40594. vector unsigned char vec_xl (int, vector unsigned char *);
  40595. vector unsigned char vec_xl (int, unsigned char *);
  40596. void vec_xst (vector short, int, vector short *);
  40597. void vec_xst (vector short, int, short *);
  40598. void vec_xst (vector unsigned short, int, vector unsigned short *);
  40599. void vec_xst (vector unsigned short, int, unsigned short *);
  40600. void vec_xst (vector char, int, vector char *);
  40601. void vec_xst (vector char, int, char *);
  40602. void vec_xst (vector unsigned char, int, vector unsigned char *);
  40603. void vec_xst (vector unsigned char, int, unsigned char *);
  40604. 
  40605. File: gcc.info, Node: PowerPC Hardware Transactional Memory Built-in Functions, Next: PowerPC Atomic Memory Operation Functions, Prev: PowerPC AltiVec/VSX Built-in Functions, Up: Target Builtins
  40606. 6.60.25 PowerPC Hardware Transactional Memory Built-in Functions
  40607. ----------------------------------------------------------------
  40608. GCC provides two interfaces for accessing the Hardware Transactional
  40609. Memory (HTM) instructions available on some of the PowerPC family of
  40610. processors (eg, POWER8). The two interfaces come in a low level
  40611. interface, consisting of built-in functions specific to PowerPC and a
  40612. higher level interface consisting of inline functions that are common
  40613. between PowerPC and S/390.
  40614. 6.60.25.1 PowerPC HTM Low Level Built-in Functions
  40615. ..................................................
  40616. The following low level built-in functions are available with '-mhtm' or
  40617. '-mcpu=CPU' where CPU is 'power8' or later. They all generate the
  40618. machine instruction that is part of the name.
  40619. The HTM builtins (with the exception of '__builtin_tbegin') return the
  40620. full 4-bit condition register value set by their associated hardware
  40621. instruction. The header file 'htmintrin.h' defines some macros that can
  40622. be used to decipher the return value. The '__builtin_tbegin' builtin
  40623. returns a simple 'true' or 'false' value depending on whether a
  40624. transaction was successfully started or not. The arguments of the
  40625. builtins match exactly the type and order of the associated hardware
  40626. instruction's operands, except for the '__builtin_tcheck' builtin, which
  40627. does not take any input arguments. Refer to the ISA manual for a
  40628. description of each instruction's operands.
  40629. unsigned int __builtin_tbegin (unsigned int)
  40630. unsigned int __builtin_tend (unsigned int)
  40631. unsigned int __builtin_tabort (unsigned int)
  40632. unsigned int __builtin_tabortdc (unsigned int, unsigned int, unsigned int)
  40633. unsigned int __builtin_tabortdci (unsigned int, unsigned int, int)
  40634. unsigned int __builtin_tabortwc (unsigned int, unsigned int, unsigned int)
  40635. unsigned int __builtin_tabortwci (unsigned int, unsigned int, int)
  40636. unsigned int __builtin_tcheck (void)
  40637. unsigned int __builtin_treclaim (unsigned int)
  40638. unsigned int __builtin_trechkpt (void)
  40639. unsigned int __builtin_tsr (unsigned int)
  40640. In addition to the above HTM built-ins, we have added built-ins for
  40641. some common extended mnemonics of the HTM instructions:
  40642. unsigned int __builtin_tendall (void)
  40643. unsigned int __builtin_tresume (void)
  40644. unsigned int __builtin_tsuspend (void)
  40645. Note that the semantics of the above HTM builtins are required to mimic
  40646. the locking semantics used for critical sections. Builtins that are
  40647. used to create a new transaction or restart a suspended transaction must
  40648. have lock acquisition like semantics while those builtins that end or
  40649. suspend a transaction must have lock release like semantics.
  40650. Specifically, this must mimic lock semantics as specified by C++11, for
  40651. example: Lock acquisition is as-if an execution of
  40652. __atomic_exchange_n(&globallock,1,__ATOMIC_ACQUIRE) that returns 0, and
  40653. lock release is as-if an execution of
  40654. __atomic_store(&globallock,0,__ATOMIC_RELEASE), with globallock being an
  40655. implicit implementation-defined lock used for all transactions. The HTM
  40656. instructions associated with with the builtins inherently provide the
  40657. correct acquisition and release hardware barriers required. However,
  40658. the compiler must also be prohibited from moving loads and stores across
  40659. the builtins in a way that would violate their semantics. This has been
  40660. accomplished by adding memory barriers to the associated HTM
  40661. instructions (which is a conservative approach to provide acquire and
  40662. release semantics). Earlier versions of the compiler did not treat the
  40663. HTM instructions as memory barriers. A '__TM_FENCE__' macro has been
  40664. added, which can be used to determine whether the current compiler
  40665. treats HTM instructions as memory barriers or not. This allows the user
  40666. to explicitly add memory barriers to their code when using an older
  40667. version of the compiler.
  40668. The following set of built-in functions are available to gain access to
  40669. the HTM specific special purpose registers.
  40670. unsigned long __builtin_get_texasr (void)
  40671. unsigned long __builtin_get_texasru (void)
  40672. unsigned long __builtin_get_tfhar (void)
  40673. unsigned long __builtin_get_tfiar (void)
  40674. void __builtin_set_texasr (unsigned long);
  40675. void __builtin_set_texasru (unsigned long);
  40676. void __builtin_set_tfhar (unsigned long);
  40677. void __builtin_set_tfiar (unsigned long);
  40678. Example usage of these low level built-in functions may look like:
  40679. #include <htmintrin.h>
  40680. int num_retries = 10;
  40681. while (1)
  40682. {
  40683. if (__builtin_tbegin (0))
  40684. {
  40685. /* Transaction State Initiated. */
  40686. if (is_locked (lock))
  40687. __builtin_tabort (0);
  40688. ... transaction code...
  40689. __builtin_tend (0);
  40690. break;
  40691. }
  40692. else
  40693. {
  40694. /* Transaction State Failed. Use locks if the transaction
  40695. failure is "persistent" or we've tried too many times. */
  40696. if (num_retries-- <= 0
  40697. || _TEXASRU_FAILURE_PERSISTENT (__builtin_get_texasru ()))
  40698. {
  40699. acquire_lock (lock);
  40700. ... non transactional fallback path...
  40701. release_lock (lock);
  40702. break;
  40703. }
  40704. }
  40705. }
  40706. One final built-in function has been added that returns the value of
  40707. the 2-bit Transaction State field of the Machine Status Register (MSR)
  40708. as stored in 'CR0'.
  40709. unsigned long __builtin_ttest (void)
  40710. This built-in can be used to determine the current transaction state
  40711. using the following code example:
  40712. #include <htmintrin.h>
  40713. unsigned char tx_state = _HTM_STATE (__builtin_ttest ());
  40714. if (tx_state == _HTM_TRANSACTIONAL)
  40715. {
  40716. /* Code to use in transactional state. */
  40717. }
  40718. else if (tx_state == _HTM_NONTRANSACTIONAL)
  40719. {
  40720. /* Code to use in non-transactional state. */
  40721. }
  40722. else if (tx_state == _HTM_SUSPENDED)
  40723. {
  40724. /* Code to use in transaction suspended state. */
  40725. }
  40726. 6.60.25.2 PowerPC HTM High Level Inline Functions
  40727. .................................................
  40728. The following high level HTM interface is made available by including
  40729. '<htmxlintrin.h>' and using '-mhtm' or '-mcpu=CPU' where CPU is 'power8'
  40730. or later. This interface is common between PowerPC and S/390, allowing
  40731. users to write one HTM source implementation that can be compiled and
  40732. executed on either system.
  40733. long __TM_simple_begin (void)
  40734. long __TM_begin (void* const TM_buff)
  40735. long __TM_end (void)
  40736. void __TM_abort (void)
  40737. void __TM_named_abort (unsigned char const code)
  40738. void __TM_resume (void)
  40739. void __TM_suspend (void)
  40740. long __TM_is_user_abort (void* const TM_buff)
  40741. long __TM_is_named_user_abort (void* const TM_buff, unsigned char *code)
  40742. long __TM_is_illegal (void* const TM_buff)
  40743. long __TM_is_footprint_exceeded (void* const TM_buff)
  40744. long __TM_nesting_depth (void* const TM_buff)
  40745. long __TM_is_nested_too_deep(void* const TM_buff)
  40746. long __TM_is_conflict(void* const TM_buff)
  40747. long __TM_is_failure_persistent(void* const TM_buff)
  40748. long __TM_failure_address(void* const TM_buff)
  40749. long long __TM_failure_code(void* const TM_buff)
  40750. Using these common set of HTM inline functions, we can create a more
  40751. portable version of the HTM example in the previous section that will
  40752. work on either PowerPC or S/390:
  40753. #include <htmxlintrin.h>
  40754. int num_retries = 10;
  40755. TM_buff_type TM_buff;
  40756. while (1)
  40757. {
  40758. if (__TM_begin (TM_buff) == _HTM_TBEGIN_STARTED)
  40759. {
  40760. /* Transaction State Initiated. */
  40761. if (is_locked (lock))
  40762. __TM_abort ();
  40763. ... transaction code...
  40764. __TM_end ();
  40765. break;
  40766. }
  40767. else
  40768. {
  40769. /* Transaction State Failed. Use locks if the transaction
  40770. failure is "persistent" or we've tried too many times. */
  40771. if (num_retries-- <= 0
  40772. || __TM_is_failure_persistent (TM_buff))
  40773. {
  40774. acquire_lock (lock);
  40775. ... non transactional fallback path...
  40776. release_lock (lock);
  40777. break;
  40778. }
  40779. }
  40780. }
  40781. 
  40782. File: gcc.info, Node: PowerPC Atomic Memory Operation Functions, Next: RX Built-in Functions, Prev: PowerPC Hardware Transactional Memory Built-in Functions, Up: Target Builtins
  40783. 6.60.26 PowerPC Atomic Memory Operation Functions
  40784. -------------------------------------------------
  40785. ISA 3.0 of the PowerPC added new atomic memory operation (amo)
  40786. instructions. GCC provides support for these instructions in 64-bit
  40787. environments. All of the functions are declared in the include file
  40788. 'amo.h'.
  40789. The functions supported are:
  40790. #include <amo.h>
  40791. uint32_t amo_lwat_add (uint32_t *, uint32_t);
  40792. uint32_t amo_lwat_xor (uint32_t *, uint32_t);
  40793. uint32_t amo_lwat_ior (uint32_t *, uint32_t);
  40794. uint32_t amo_lwat_and (uint32_t *, uint32_t);
  40795. uint32_t amo_lwat_umax (uint32_t *, uint32_t);
  40796. uint32_t amo_lwat_umin (uint32_t *, uint32_t);
  40797. uint32_t amo_lwat_swap (uint32_t *, uint32_t);
  40798. int32_t amo_lwat_sadd (int32_t *, int32_t);
  40799. int32_t amo_lwat_smax (int32_t *, int32_t);
  40800. int32_t amo_lwat_smin (int32_t *, int32_t);
  40801. int32_t amo_lwat_sswap (int32_t *, int32_t);
  40802. uint64_t amo_ldat_add (uint64_t *, uint64_t);
  40803. uint64_t amo_ldat_xor (uint64_t *, uint64_t);
  40804. uint64_t amo_ldat_ior (uint64_t *, uint64_t);
  40805. uint64_t amo_ldat_and (uint64_t *, uint64_t);
  40806. uint64_t amo_ldat_umax (uint64_t *, uint64_t);
  40807. uint64_t amo_ldat_umin (uint64_t *, uint64_t);
  40808. uint64_t amo_ldat_swap (uint64_t *, uint64_t);
  40809. int64_t amo_ldat_sadd (int64_t *, int64_t);
  40810. int64_t amo_ldat_smax (int64_t *, int64_t);
  40811. int64_t amo_ldat_smin (int64_t *, int64_t);
  40812. int64_t amo_ldat_sswap (int64_t *, int64_t);
  40813. void amo_stwat_add (uint32_t *, uint32_t);
  40814. void amo_stwat_xor (uint32_t *, uint32_t);
  40815. void amo_stwat_ior (uint32_t *, uint32_t);
  40816. void amo_stwat_and (uint32_t *, uint32_t);
  40817. void amo_stwat_umax (uint32_t *, uint32_t);
  40818. void amo_stwat_umin (uint32_t *, uint32_t);
  40819. void amo_stwat_sadd (int32_t *, int32_t);
  40820. void amo_stwat_smax (int32_t *, int32_t);
  40821. void amo_stwat_smin (int32_t *, int32_t);
  40822. void amo_stdat_add (uint64_t *, uint64_t);
  40823. void amo_stdat_xor (uint64_t *, uint64_t);
  40824. void amo_stdat_ior (uint64_t *, uint64_t);
  40825. void amo_stdat_and (uint64_t *, uint64_t);
  40826. void amo_stdat_umax (uint64_t *, uint64_t);
  40827. void amo_stdat_umin (uint64_t *, uint64_t);
  40828. void amo_stdat_sadd (int64_t *, int64_t);
  40829. void amo_stdat_smax (int64_t *, int64_t);
  40830. void amo_stdat_smin (int64_t *, int64_t);
  40831. 
  40832. File: gcc.info, Node: RX Built-in Functions, Next: S/390 System z Built-in Functions, Prev: PowerPC Atomic Memory Operation Functions, Up: Target Builtins
  40833. 6.60.27 RX Built-in Functions
  40834. -----------------------------
  40835. GCC supports some of the RX instructions which cannot be expressed in
  40836. the C programming language via the use of built-in functions. The
  40837. following functions are supported:
  40838. -- Built-in Function: void __builtin_rx_brk (void)
  40839. Generates the 'brk' machine instruction.
  40840. -- Built-in Function: void __builtin_rx_clrpsw (int)
  40841. Generates the 'clrpsw' machine instruction to clear the specified
  40842. bit in the processor status word.
  40843. -- Built-in Function: void __builtin_rx_int (int)
  40844. Generates the 'int' machine instruction to generate an interrupt
  40845. with the specified value.
  40846. -- Built-in Function: void __builtin_rx_machi (int, int)
  40847. Generates the 'machi' machine instruction to add the result of
  40848. multiplying the top 16 bits of the two arguments into the
  40849. accumulator.
  40850. -- Built-in Function: void __builtin_rx_maclo (int, int)
  40851. Generates the 'maclo' machine instruction to add the result of
  40852. multiplying the bottom 16 bits of the two arguments into the
  40853. accumulator.
  40854. -- Built-in Function: void __builtin_rx_mulhi (int, int)
  40855. Generates the 'mulhi' machine instruction to place the result of
  40856. multiplying the top 16 bits of the two arguments into the
  40857. accumulator.
  40858. -- Built-in Function: void __builtin_rx_mullo (int, int)
  40859. Generates the 'mullo' machine instruction to place the result of
  40860. multiplying the bottom 16 bits of the two arguments into the
  40861. accumulator.
  40862. -- Built-in Function: int __builtin_rx_mvfachi (void)
  40863. Generates the 'mvfachi' machine instruction to read the top 32 bits
  40864. of the accumulator.
  40865. -- Built-in Function: int __builtin_rx_mvfacmi (void)
  40866. Generates the 'mvfacmi' machine instruction to read the middle 32
  40867. bits of the accumulator.
  40868. -- Built-in Function: int __builtin_rx_mvfc (int)
  40869. Generates the 'mvfc' machine instruction which reads the control
  40870. register specified in its argument and returns its value.
  40871. -- Built-in Function: void __builtin_rx_mvtachi (int)
  40872. Generates the 'mvtachi' machine instruction to set the top 32 bits
  40873. of the accumulator.
  40874. -- Built-in Function: void __builtin_rx_mvtaclo (int)
  40875. Generates the 'mvtaclo' machine instruction to set the bottom 32
  40876. bits of the accumulator.
  40877. -- Built-in Function: void __builtin_rx_mvtc (int reg, int val)
  40878. Generates the 'mvtc' machine instruction which sets control
  40879. register number 'reg' to 'val'.
  40880. -- Built-in Function: void __builtin_rx_mvtipl (int)
  40881. Generates the 'mvtipl' machine instruction set the interrupt
  40882. priority level.
  40883. -- Built-in Function: void __builtin_rx_racw (int)
  40884. Generates the 'racw' machine instruction to round the accumulator
  40885. according to the specified mode.
  40886. -- Built-in Function: int __builtin_rx_revw (int)
  40887. Generates the 'revw' machine instruction which swaps the bytes in
  40888. the argument so that bits 0-7 now occupy bits 8-15 and vice versa,
  40889. and also bits 16-23 occupy bits 24-31 and vice versa.
  40890. -- Built-in Function: void __builtin_rx_rmpa (void)
  40891. Generates the 'rmpa' machine instruction which initiates a repeated
  40892. multiply and accumulate sequence.
  40893. -- Built-in Function: void __builtin_rx_round (float)
  40894. Generates the 'round' machine instruction which returns the
  40895. floating-point argument rounded according to the current rounding
  40896. mode set in the floating-point status word register.
  40897. -- Built-in Function: int __builtin_rx_sat (int)
  40898. Generates the 'sat' machine instruction which returns the saturated
  40899. value of the argument.
  40900. -- Built-in Function: void __builtin_rx_setpsw (int)
  40901. Generates the 'setpsw' machine instruction to set the specified bit
  40902. in the processor status word.
  40903. -- Built-in Function: void __builtin_rx_wait (void)
  40904. Generates the 'wait' machine instruction.
  40905. 
  40906. File: gcc.info, Node: S/390 System z Built-in Functions, Next: SH Built-in Functions, Prev: RX Built-in Functions, Up: Target Builtins
  40907. 6.60.28 S/390 System z Built-in Functions
  40908. -----------------------------------------
  40909. -- Built-in Function: int __builtin_tbegin (void*)
  40910. Generates the 'tbegin' machine instruction starting a
  40911. non-constrained hardware transaction. If the parameter is non-NULL
  40912. the memory area is used to store the transaction diagnostic buffer
  40913. and will be passed as first operand to 'tbegin'. This buffer can
  40914. be defined using the 'struct __htm_tdb' C struct defined in
  40915. 'htmintrin.h' and must reside on a double-word boundary. The
  40916. second tbegin operand is set to '0xff0c'. This enables
  40917. save/restore of all GPRs and disables aborts for FPR and AR
  40918. manipulations inside the transaction body. The condition code set
  40919. by the tbegin instruction is returned as integer value. The tbegin
  40920. instruction by definition overwrites the content of all FPRs. The
  40921. compiler will generate code which saves and restores the FPRs. For
  40922. soft-float code it is recommended to used the '*_nofloat' variant.
  40923. In order to prevent a TDB from being written it is required to pass
  40924. a constant zero value as parameter. Passing a zero value through a
  40925. variable is not sufficient. Although modifications of access
  40926. registers inside the transaction will not trigger an transaction
  40927. abort it is not supported to actually modify them. Access
  40928. registers do not get saved when entering a transaction. They will
  40929. have undefined state when reaching the abort code.
  40930. Macros for the possible return codes of tbegin are defined in the
  40931. 'htmintrin.h' header file:
  40932. '_HTM_TBEGIN_STARTED'
  40933. 'tbegin' has been executed as part of normal processing. The
  40934. transaction body is supposed to be executed.
  40935. '_HTM_TBEGIN_INDETERMINATE'
  40936. The transaction was aborted due to an indeterminate condition which
  40937. might be persistent.
  40938. '_HTM_TBEGIN_TRANSIENT'
  40939. The transaction aborted due to a transient failure. The
  40940. transaction should be re-executed in that case.
  40941. '_HTM_TBEGIN_PERSISTENT'
  40942. The transaction aborted due to a persistent failure. Re-execution
  40943. under same circumstances will not be productive.
  40944. -- Macro: _HTM_FIRST_USER_ABORT_CODE
  40945. The '_HTM_FIRST_USER_ABORT_CODE' defined in 'htmintrin.h' specifies
  40946. the first abort code which can be used for '__builtin_tabort'.
  40947. Values below this threshold are reserved for machine use.
  40948. -- Data type: struct __htm_tdb
  40949. The 'struct __htm_tdb' defined in 'htmintrin.h' describes the
  40950. structure of the transaction diagnostic block as specified in the
  40951. Principles of Operation manual chapter 5-91.
  40952. -- Built-in Function: int __builtin_tbegin_nofloat (void*)
  40953. Same as '__builtin_tbegin' but without FPR saves and restores.
  40954. Using this variant in code making use of FPRs will leave the FPRs
  40955. in undefined state when entering the transaction abort handler
  40956. code.
  40957. -- Built-in Function: int __builtin_tbegin_retry (void*, int)
  40958. In addition to '__builtin_tbegin' a loop for transient failures is
  40959. generated. If tbegin returns a condition code of 2 the transaction
  40960. will be retried as often as specified in the second argument. The
  40961. perform processor assist instruction is used to tell the CPU about
  40962. the number of fails so far.
  40963. -- Built-in Function: int __builtin_tbegin_retry_nofloat (void*, int)
  40964. Same as '__builtin_tbegin_retry' but without FPR saves and
  40965. restores. Using this variant in code making use of FPRs will leave
  40966. the FPRs in undefined state when entering the transaction abort
  40967. handler code.
  40968. -- Built-in Function: void __builtin_tbeginc (void)
  40969. Generates the 'tbeginc' machine instruction starting a constrained
  40970. hardware transaction. The second operand is set to '0xff08'.
  40971. -- Built-in Function: int __builtin_tend (void)
  40972. Generates the 'tend' machine instruction finishing a transaction
  40973. and making the changes visible to other threads. The condition
  40974. code generated by tend is returned as integer value.
  40975. -- Built-in Function: void __builtin_tabort (int)
  40976. Generates the 'tabort' machine instruction with the specified abort
  40977. code. Abort codes from 0 through 255 are reserved and will result
  40978. in an error message.
  40979. -- Built-in Function: void __builtin_tx_assist (int)
  40980. Generates the 'ppa rX,rY,1' machine instruction. Where the integer
  40981. parameter is loaded into rX and a value of zero is loaded into rY.
  40982. The integer parameter specifies the number of times the transaction
  40983. repeatedly aborted.
  40984. -- Built-in Function: int __builtin_tx_nesting_depth (void)
  40985. Generates the 'etnd' machine instruction. The current nesting
  40986. depth is returned as integer value. For a nesting depth of 0 the
  40987. code is not executed as part of an transaction.
  40988. -- Built-in Function: void __builtin_non_tx_store (uint64_t *,
  40989. uint64_t)
  40990. Generates the 'ntstg' machine instruction. The second argument is
  40991. written to the first arguments location. The store operation will
  40992. not be rolled-back in case of an transaction abort.
  40993. 
  40994. File: gcc.info, Node: SH Built-in Functions, Next: SPARC VIS Built-in Functions, Prev: S/390 System z Built-in Functions, Up: Target Builtins
  40995. 6.60.29 SH Built-in Functions
  40996. -----------------------------
  40997. The following built-in functions are supported on the SH1, SH2, SH3 and
  40998. SH4 families of processors:
  40999. -- Built-in Function: void __builtin_set_thread_pointer (void *PTR)
  41000. Sets the 'GBR' register to the specified value PTR. This is
  41001. usually used by system code that manages threads and execution
  41002. contexts. The compiler normally does not generate code that
  41003. modifies the contents of 'GBR' and thus the value is preserved
  41004. across function calls. Changing the 'GBR' value in user code must
  41005. be done with caution, since the compiler might use 'GBR' in order
  41006. to access thread local variables.
  41007. -- Built-in Function: void * __builtin_thread_pointer (void)
  41008. Returns the value that is currently set in the 'GBR' register.
  41009. Memory loads and stores that use the thread pointer as a base
  41010. address are turned into 'GBR' based displacement loads and stores,
  41011. if possible. For example:
  41012. struct my_tcb
  41013. {
  41014. int a, b, c, d, e;
  41015. };
  41016. int get_tcb_value (void)
  41017. {
  41018. // Generate 'mov.l @(8,gbr),r0' instruction
  41019. return ((my_tcb*)__builtin_thread_pointer ())->c;
  41020. }
  41021. -- Built-in Function: unsigned int __builtin_sh_get_fpscr (void)
  41022. Returns the value that is currently set in the 'FPSCR' register.
  41023. -- Built-in Function: void __builtin_sh_set_fpscr (unsigned int VAL)
  41024. Sets the 'FPSCR' register to the specified value VAL, while
  41025. preserving the current values of the FR, SZ and PR bits.
  41026. 
  41027. File: gcc.info, Node: SPARC VIS Built-in Functions, Next: TI C6X Built-in Functions, Prev: SH Built-in Functions, Up: Target Builtins
  41028. 6.60.30 SPARC VIS Built-in Functions
  41029. ------------------------------------
  41030. GCC supports SIMD operations on the SPARC using both the generic vector
  41031. extensions (*note Vector Extensions::) as well as built-in functions for
  41032. the SPARC Visual Instruction Set (VIS). When you use the '-mvis' switch,
  41033. the VIS extension is exposed as the following built-in functions:
  41034. typedef int v1si __attribute__ ((vector_size (4)));
  41035. typedef int v2si __attribute__ ((vector_size (8)));
  41036. typedef short v4hi __attribute__ ((vector_size (8)));
  41037. typedef short v2hi __attribute__ ((vector_size (4)));
  41038. typedef unsigned char v8qi __attribute__ ((vector_size (8)));
  41039. typedef unsigned char v4qi __attribute__ ((vector_size (4)));
  41040. void __builtin_vis_write_gsr (int64_t);
  41041. int64_t __builtin_vis_read_gsr (void);
  41042. void * __builtin_vis_alignaddr (void *, long);
  41043. void * __builtin_vis_alignaddrl (void *, long);
  41044. int64_t __builtin_vis_faligndatadi (int64_t, int64_t);
  41045. v2si __builtin_vis_faligndatav2si (v2si, v2si);
  41046. v4hi __builtin_vis_faligndatav4hi (v4si, v4si);
  41047. v8qi __builtin_vis_faligndatav8qi (v8qi, v8qi);
  41048. v4hi __builtin_vis_fexpand (v4qi);
  41049. v4hi __builtin_vis_fmul8x16 (v4qi, v4hi);
  41050. v4hi __builtin_vis_fmul8x16au (v4qi, v2hi);
  41051. v4hi __builtin_vis_fmul8x16al (v4qi, v2hi);
  41052. v4hi __builtin_vis_fmul8sux16 (v8qi, v4hi);
  41053. v4hi __builtin_vis_fmul8ulx16 (v8qi, v4hi);
  41054. v2si __builtin_vis_fmuld8sux16 (v4qi, v2hi);
  41055. v2si __builtin_vis_fmuld8ulx16 (v4qi, v2hi);
  41056. v4qi __builtin_vis_fpack16 (v4hi);
  41057. v8qi __builtin_vis_fpack32 (v2si, v8qi);
  41058. v2hi __builtin_vis_fpackfix (v2si);
  41059. v8qi __builtin_vis_fpmerge (v4qi, v4qi);
  41060. int64_t __builtin_vis_pdist (v8qi, v8qi, int64_t);
  41061. long __builtin_vis_edge8 (void *, void *);
  41062. long __builtin_vis_edge8l (void *, void *);
  41063. long __builtin_vis_edge16 (void *, void *);
  41064. long __builtin_vis_edge16l (void *, void *);
  41065. long __builtin_vis_edge32 (void *, void *);
  41066. long __builtin_vis_edge32l (void *, void *);
  41067. long __builtin_vis_fcmple16 (v4hi, v4hi);
  41068. long __builtin_vis_fcmple32 (v2si, v2si);
  41069. long __builtin_vis_fcmpne16 (v4hi, v4hi);
  41070. long __builtin_vis_fcmpne32 (v2si, v2si);
  41071. long __builtin_vis_fcmpgt16 (v4hi, v4hi);
  41072. long __builtin_vis_fcmpgt32 (v2si, v2si);
  41073. long __builtin_vis_fcmpeq16 (v4hi, v4hi);
  41074. long __builtin_vis_fcmpeq32 (v2si, v2si);
  41075. v4hi __builtin_vis_fpadd16 (v4hi, v4hi);
  41076. v2hi __builtin_vis_fpadd16s (v2hi, v2hi);
  41077. v2si __builtin_vis_fpadd32 (v2si, v2si);
  41078. v1si __builtin_vis_fpadd32s (v1si, v1si);
  41079. v4hi __builtin_vis_fpsub16 (v4hi, v4hi);
  41080. v2hi __builtin_vis_fpsub16s (v2hi, v2hi);
  41081. v2si __builtin_vis_fpsub32 (v2si, v2si);
  41082. v1si __builtin_vis_fpsub32s (v1si, v1si);
  41083. long __builtin_vis_array8 (long, long);
  41084. long __builtin_vis_array16 (long, long);
  41085. long __builtin_vis_array32 (long, long);
  41086. When you use the '-mvis2' switch, the VIS version 2.0 built-in
  41087. functions also become available:
  41088. long __builtin_vis_bmask (long, long);
  41089. int64_t __builtin_vis_bshuffledi (int64_t, int64_t);
  41090. v2si __builtin_vis_bshufflev2si (v2si, v2si);
  41091. v4hi __builtin_vis_bshufflev2si (v4hi, v4hi);
  41092. v8qi __builtin_vis_bshufflev2si (v8qi, v8qi);
  41093. long __builtin_vis_edge8n (void *, void *);
  41094. long __builtin_vis_edge8ln (void *, void *);
  41095. long __builtin_vis_edge16n (void *, void *);
  41096. long __builtin_vis_edge16ln (void *, void *);
  41097. long __builtin_vis_edge32n (void *, void *);
  41098. long __builtin_vis_edge32ln (void *, void *);
  41099. When you use the '-mvis3' switch, the VIS version 3.0 built-in
  41100. functions also become available:
  41101. void __builtin_vis_cmask8 (long);
  41102. void __builtin_vis_cmask16 (long);
  41103. void __builtin_vis_cmask32 (long);
  41104. v4hi __builtin_vis_fchksm16 (v4hi, v4hi);
  41105. v4hi __builtin_vis_fsll16 (v4hi, v4hi);
  41106. v4hi __builtin_vis_fslas16 (v4hi, v4hi);
  41107. v4hi __builtin_vis_fsrl16 (v4hi, v4hi);
  41108. v4hi __builtin_vis_fsra16 (v4hi, v4hi);
  41109. v2si __builtin_vis_fsll16 (v2si, v2si);
  41110. v2si __builtin_vis_fslas16 (v2si, v2si);
  41111. v2si __builtin_vis_fsrl16 (v2si, v2si);
  41112. v2si __builtin_vis_fsra16 (v2si, v2si);
  41113. long __builtin_vis_pdistn (v8qi, v8qi);
  41114. v4hi __builtin_vis_fmean16 (v4hi, v4hi);
  41115. int64_t __builtin_vis_fpadd64 (int64_t, int64_t);
  41116. int64_t __builtin_vis_fpsub64 (int64_t, int64_t);
  41117. v4hi __builtin_vis_fpadds16 (v4hi, v4hi);
  41118. v2hi __builtin_vis_fpadds16s (v2hi, v2hi);
  41119. v4hi __builtin_vis_fpsubs16 (v4hi, v4hi);
  41120. v2hi __builtin_vis_fpsubs16s (v2hi, v2hi);
  41121. v2si __builtin_vis_fpadds32 (v2si, v2si);
  41122. v1si __builtin_vis_fpadds32s (v1si, v1si);
  41123. v2si __builtin_vis_fpsubs32 (v2si, v2si);
  41124. v1si __builtin_vis_fpsubs32s (v1si, v1si);
  41125. long __builtin_vis_fucmple8 (v8qi, v8qi);
  41126. long __builtin_vis_fucmpne8 (v8qi, v8qi);
  41127. long __builtin_vis_fucmpgt8 (v8qi, v8qi);
  41128. long __builtin_vis_fucmpeq8 (v8qi, v8qi);
  41129. float __builtin_vis_fhadds (float, float);
  41130. double __builtin_vis_fhaddd (double, double);
  41131. float __builtin_vis_fhsubs (float, float);
  41132. double __builtin_vis_fhsubd (double, double);
  41133. float __builtin_vis_fnhadds (float, float);
  41134. double __builtin_vis_fnhaddd (double, double);
  41135. int64_t __builtin_vis_umulxhi (int64_t, int64_t);
  41136. int64_t __builtin_vis_xmulx (int64_t, int64_t);
  41137. int64_t __builtin_vis_xmulxhi (int64_t, int64_t);
  41138. When you use the '-mvis4' switch, the VIS version 4.0 built-in
  41139. functions also become available:
  41140. v8qi __builtin_vis_fpadd8 (v8qi, v8qi);
  41141. v8qi __builtin_vis_fpadds8 (v8qi, v8qi);
  41142. v8qi __builtin_vis_fpaddus8 (v8qi, v8qi);
  41143. v4hi __builtin_vis_fpaddus16 (v4hi, v4hi);
  41144. v8qi __builtin_vis_fpsub8 (v8qi, v8qi);
  41145. v8qi __builtin_vis_fpsubs8 (v8qi, v8qi);
  41146. v8qi __builtin_vis_fpsubus8 (v8qi, v8qi);
  41147. v4hi __builtin_vis_fpsubus16 (v4hi, v4hi);
  41148. long __builtin_vis_fpcmple8 (v8qi, v8qi);
  41149. long __builtin_vis_fpcmpgt8 (v8qi, v8qi);
  41150. long __builtin_vis_fpcmpule16 (v4hi, v4hi);
  41151. long __builtin_vis_fpcmpugt16 (v4hi, v4hi);
  41152. long __builtin_vis_fpcmpule32 (v2si, v2si);
  41153. long __builtin_vis_fpcmpugt32 (v2si, v2si);
  41154. v8qi __builtin_vis_fpmax8 (v8qi, v8qi);
  41155. v4hi __builtin_vis_fpmax16 (v4hi, v4hi);
  41156. v2si __builtin_vis_fpmax32 (v2si, v2si);
  41157. v8qi __builtin_vis_fpmaxu8 (v8qi, v8qi);
  41158. v4hi __builtin_vis_fpmaxu16 (v4hi, v4hi);
  41159. v2si __builtin_vis_fpmaxu32 (v2si, v2si);
  41160. v8qi __builtin_vis_fpmin8 (v8qi, v8qi);
  41161. v4hi __builtin_vis_fpmin16 (v4hi, v4hi);
  41162. v2si __builtin_vis_fpmin32 (v2si, v2si);
  41163. v8qi __builtin_vis_fpminu8 (v8qi, v8qi);
  41164. v4hi __builtin_vis_fpminu16 (v4hi, v4hi);
  41165. v2si __builtin_vis_fpminu32 (v2si, v2si);
  41166. When you use the '-mvis4b' switch, the VIS version 4.0B built-in
  41167. functions also become available:
  41168. v8qi __builtin_vis_dictunpack8 (double, int);
  41169. v4hi __builtin_vis_dictunpack16 (double, int);
  41170. v2si __builtin_vis_dictunpack32 (double, int);
  41171. long __builtin_vis_fpcmple8shl (v8qi, v8qi, int);
  41172. long __builtin_vis_fpcmpgt8shl (v8qi, v8qi, int);
  41173. long __builtin_vis_fpcmpeq8shl (v8qi, v8qi, int);
  41174. long __builtin_vis_fpcmpne8shl (v8qi, v8qi, int);
  41175. long __builtin_vis_fpcmple16shl (v4hi, v4hi, int);
  41176. long __builtin_vis_fpcmpgt16shl (v4hi, v4hi, int);
  41177. long __builtin_vis_fpcmpeq16shl (v4hi, v4hi, int);
  41178. long __builtin_vis_fpcmpne16shl (v4hi, v4hi, int);
  41179. long __builtin_vis_fpcmple32shl (v2si, v2si, int);
  41180. long __builtin_vis_fpcmpgt32shl (v2si, v2si, int);
  41181. long __builtin_vis_fpcmpeq32shl (v2si, v2si, int);
  41182. long __builtin_vis_fpcmpne32shl (v2si, v2si, int);
  41183. long __builtin_vis_fpcmpule8shl (v8qi, v8qi, int);
  41184. long __builtin_vis_fpcmpugt8shl (v8qi, v8qi, int);
  41185. long __builtin_vis_fpcmpule16shl (v4hi, v4hi, int);
  41186. long __builtin_vis_fpcmpugt16shl (v4hi, v4hi, int);
  41187. long __builtin_vis_fpcmpule32shl (v2si, v2si, int);
  41188. long __builtin_vis_fpcmpugt32shl (v2si, v2si, int);
  41189. long __builtin_vis_fpcmpde8shl (v8qi, v8qi, int);
  41190. long __builtin_vis_fpcmpde16shl (v4hi, v4hi, int);
  41191. long __builtin_vis_fpcmpde32shl (v2si, v2si, int);
  41192. long __builtin_vis_fpcmpur8shl (v8qi, v8qi, int);
  41193. long __builtin_vis_fpcmpur16shl (v4hi, v4hi, int);
  41194. long __builtin_vis_fpcmpur32shl (v2si, v2si, int);
  41195. 
  41196. File: gcc.info, Node: TI C6X Built-in Functions, Next: TILE-Gx Built-in Functions, Prev: SPARC VIS Built-in Functions, Up: Target Builtins
  41197. 6.60.31 TI C6X Built-in Functions
  41198. ---------------------------------
  41199. GCC provides intrinsics to access certain instructions of the TI C6X
  41200. processors. These intrinsics, listed below, are available after
  41201. inclusion of the 'c6x_intrinsics.h' header file. They map directly to
  41202. C6X instructions.
  41203. int _sadd (int, int)
  41204. int _ssub (int, int)
  41205. int _sadd2 (int, int)
  41206. int _ssub2 (int, int)
  41207. long long _mpy2 (int, int)
  41208. long long _smpy2 (int, int)
  41209. int _add4 (int, int)
  41210. int _sub4 (int, int)
  41211. int _saddu4 (int, int)
  41212. int _smpy (int, int)
  41213. int _smpyh (int, int)
  41214. int _smpyhl (int, int)
  41215. int _smpylh (int, int)
  41216. int _sshl (int, int)
  41217. int _subc (int, int)
  41218. int _avg2 (int, int)
  41219. int _avgu4 (int, int)
  41220. int _clrr (int, int)
  41221. int _extr (int, int)
  41222. int _extru (int, int)
  41223. int _abs (int)
  41224. int _abs2 (int)
  41225. 
  41226. File: gcc.info, Node: TILE-Gx Built-in Functions, Next: TILEPro Built-in Functions, Prev: TI C6X Built-in Functions, Up: Target Builtins
  41227. 6.60.32 TILE-Gx Built-in Functions
  41228. ----------------------------------
  41229. GCC provides intrinsics to access every instruction of the TILE-Gx
  41230. processor. The intrinsics are of the form:
  41231. unsigned long long __insn_OP (...)
  41232. Where OP is the name of the instruction. Refer to the ISA manual for
  41233. the complete list of instructions.
  41234. GCC also provides intrinsics to directly access the network registers.
  41235. The intrinsics are:
  41236. unsigned long long __tile_idn0_receive (void)
  41237. unsigned long long __tile_idn1_receive (void)
  41238. unsigned long long __tile_udn0_receive (void)
  41239. unsigned long long __tile_udn1_receive (void)
  41240. unsigned long long __tile_udn2_receive (void)
  41241. unsigned long long __tile_udn3_receive (void)
  41242. void __tile_idn_send (unsigned long long)
  41243. void __tile_udn_send (unsigned long long)
  41244. The intrinsic 'void __tile_network_barrier (void)' is used to guarantee
  41245. that no network operations before it are reordered with those after it.
  41246. 
  41247. File: gcc.info, Node: TILEPro Built-in Functions, Next: x86 Built-in Functions, Prev: TILE-Gx Built-in Functions, Up: Target Builtins
  41248. 6.60.33 TILEPro Built-in Functions
  41249. ----------------------------------
  41250. GCC provides intrinsics to access every instruction of the TILEPro
  41251. processor. The intrinsics are of the form:
  41252. unsigned __insn_OP (...)
  41253. where OP is the name of the instruction. Refer to the ISA manual for
  41254. the complete list of instructions.
  41255. GCC also provides intrinsics to directly access the network registers.
  41256. The intrinsics are:
  41257. unsigned __tile_idn0_receive (void)
  41258. unsigned __tile_idn1_receive (void)
  41259. unsigned __tile_sn_receive (void)
  41260. unsigned __tile_udn0_receive (void)
  41261. unsigned __tile_udn1_receive (void)
  41262. unsigned __tile_udn2_receive (void)
  41263. unsigned __tile_udn3_receive (void)
  41264. void __tile_idn_send (unsigned)
  41265. void __tile_sn_send (unsigned)
  41266. void __tile_udn_send (unsigned)
  41267. The intrinsic 'void __tile_network_barrier (void)' is used to guarantee
  41268. that no network operations before it are reordered with those after it.
  41269. 
  41270. File: gcc.info, Node: x86 Built-in Functions, Next: x86 transactional memory intrinsics, Prev: TILEPro Built-in Functions, Up: Target Builtins
  41271. 6.60.34 x86 Built-in Functions
  41272. ------------------------------
  41273. These built-in functions are available for the x86-32 and x86-64 family
  41274. of computers, depending on the command-line switches used.
  41275. If you specify command-line switches such as '-msse', the compiler
  41276. could use the extended instruction sets even if the built-ins are not
  41277. used explicitly in the program. For this reason, applications that
  41278. perform run-time CPU detection must compile separate files for each
  41279. supported architecture, using the appropriate flags. In particular, the
  41280. file containing the CPU detection code should be compiled without these
  41281. options.
  41282. The following machine modes are available for use with MMX built-in
  41283. functions (*note Vector Extensions::): 'V2SI' for a vector of two 32-bit
  41284. integers, 'V4HI' for a vector of four 16-bit integers, and 'V8QI' for a
  41285. vector of eight 8-bit integers. Some of the built-in functions operate
  41286. on MMX registers as a whole 64-bit entity, these use 'V1DI' as their
  41287. mode.
  41288. If 3DNow! extensions are enabled, 'V2SF' is used as a mode for a vector
  41289. of two 32-bit floating-point values.
  41290. If SSE extensions are enabled, 'V4SF' is used for a vector of four
  41291. 32-bit floating-point values. Some instructions use a vector of four
  41292. 32-bit integers, these use 'V4SI'. Finally, some instructions operate
  41293. on an entire vector register, interpreting it as a 128-bit integer,
  41294. these use mode 'TI'.
  41295. The x86-32 and x86-64 family of processors use additional built-in
  41296. functions for efficient use of 'TF' ('__float128') 128-bit floating
  41297. point and 'TC' 128-bit complex floating-point values.
  41298. The following floating-point built-in functions are always available.
  41299. All of them implement the function that is part of the name.
  41300. __float128 __builtin_fabsq (__float128)
  41301. __float128 __builtin_copysignq (__float128, __float128)
  41302. The following built-in functions are always available.
  41303. '__float128 __builtin_infq (void)'
  41304. Similar to '__builtin_inf', except the return type is '__float128'.
  41305. '__float128 __builtin_huge_valq (void)'
  41306. Similar to '__builtin_huge_val', except the return type is
  41307. '__float128'.
  41308. '__float128 __builtin_nanq (void)'
  41309. Similar to '__builtin_nan', except the return type is '__float128'.
  41310. '__float128 __builtin_nansq (void)'
  41311. Similar to '__builtin_nans', except the return type is
  41312. '__float128'.
  41313. The following built-in function is always available.
  41314. 'void __builtin_ia32_pause (void)'
  41315. Generates the 'pause' machine instruction with a compiler memory
  41316. barrier.
  41317. The following built-in functions are always available and can be used
  41318. to check the target platform type.
  41319. -- Built-in Function: void __builtin_cpu_init (void)
  41320. This function runs the CPU detection code to check the type of CPU
  41321. and the features supported. This built-in function needs to be
  41322. invoked along with the built-in functions to check CPU type and
  41323. features, '__builtin_cpu_is' and '__builtin_cpu_supports', only
  41324. when used in a function that is executed before any constructors
  41325. are called. The CPU detection code is automatically executed in a
  41326. very high priority constructor.
  41327. For example, this function has to be used in 'ifunc' resolvers that
  41328. check for CPU type using the built-in functions '__builtin_cpu_is'
  41329. and '__builtin_cpu_supports', or in constructors on targets that
  41330. don't support constructor priority.
  41331. static void (*resolve_memcpy (void)) (void)
  41332. {
  41333. // ifunc resolvers fire before constructors, explicitly call the init
  41334. // function.
  41335. __builtin_cpu_init ();
  41336. if (__builtin_cpu_supports ("ssse3"))
  41337. return ssse3_memcpy; // super fast memcpy with ssse3 instructions.
  41338. else
  41339. return default_memcpy;
  41340. }
  41341. void *memcpy (void *, const void *, size_t)
  41342. __attribute__ ((ifunc ("resolve_memcpy")));
  41343. -- Built-in Function: int __builtin_cpu_is (const char *CPUNAME)
  41344. This function returns a positive integer if the run-time CPU is of
  41345. type CPUNAME and returns '0' otherwise. The following CPU names
  41346. can be detected:
  41347. 'amd'
  41348. AMD CPU.
  41349. 'intel'
  41350. Intel CPU.
  41351. 'atom'
  41352. Intel Atom CPU.
  41353. 'slm'
  41354. Intel Silvermont CPU.
  41355. 'core2'
  41356. Intel Core 2 CPU.
  41357. 'corei7'
  41358. Intel Core i7 CPU.
  41359. 'nehalem'
  41360. Intel Core i7 Nehalem CPU.
  41361. 'westmere'
  41362. Intel Core i7 Westmere CPU.
  41363. 'sandybridge'
  41364. Intel Core i7 Sandy Bridge CPU.
  41365. 'ivybridge'
  41366. Intel Core i7 Ivy Bridge CPU.
  41367. 'haswell'
  41368. Intel Core i7 Haswell CPU.
  41369. 'broadwell'
  41370. Intel Core i7 Broadwell CPU.
  41371. 'skylake'
  41372. Intel Core i7 Skylake CPU.
  41373. 'skylake-avx512'
  41374. Intel Core i7 Skylake AVX512 CPU.
  41375. 'cannonlake'
  41376. Intel Core i7 Cannon Lake CPU.
  41377. 'icelake-client'
  41378. Intel Core i7 Ice Lake Client CPU.
  41379. 'icelake-server'
  41380. Intel Core i7 Ice Lake Server CPU.
  41381. 'cascadelake'
  41382. Intel Core i7 Cascadelake CPU.
  41383. 'tigerlake'
  41384. Intel Core i7 Tigerlake CPU.
  41385. 'cooperlake'
  41386. Intel Core i7 Cooperlake CPU.
  41387. 'bonnell'
  41388. Intel Atom Bonnell CPU.
  41389. 'silvermont'
  41390. Intel Atom Silvermont CPU.
  41391. 'goldmont'
  41392. Intel Atom Goldmont CPU.
  41393. 'goldmont-plus'
  41394. Intel Atom Goldmont Plus CPU.
  41395. 'tremont'
  41396. Intel Atom Tremont CPU.
  41397. 'knl'
  41398. Intel Knights Landing CPU.
  41399. 'knm'
  41400. Intel Knights Mill CPU.
  41401. 'amdfam10h'
  41402. AMD Family 10h CPU.
  41403. 'barcelona'
  41404. AMD Family 10h Barcelona CPU.
  41405. 'shanghai'
  41406. AMD Family 10h Shanghai CPU.
  41407. 'istanbul'
  41408. AMD Family 10h Istanbul CPU.
  41409. 'btver1'
  41410. AMD Family 14h CPU.
  41411. 'amdfam15h'
  41412. AMD Family 15h CPU.
  41413. 'bdver1'
  41414. AMD Family 15h Bulldozer version 1.
  41415. 'bdver2'
  41416. AMD Family 15h Bulldozer version 2.
  41417. 'bdver3'
  41418. AMD Family 15h Bulldozer version 3.
  41419. 'bdver4'
  41420. AMD Family 15h Bulldozer version 4.
  41421. 'btver2'
  41422. AMD Family 16h CPU.
  41423. 'amdfam17h'
  41424. AMD Family 17h CPU.
  41425. 'znver1'
  41426. AMD Family 17h Zen version 1.
  41427. 'znver2'
  41428. AMD Family 17h Zen version 2.
  41429. Here is an example:
  41430. if (__builtin_cpu_is ("corei7"))
  41431. {
  41432. do_corei7 (); // Core i7 specific implementation.
  41433. }
  41434. else
  41435. {
  41436. do_generic (); // Generic implementation.
  41437. }
  41438. -- Built-in Function: int __builtin_cpu_supports (const char *FEATURE)
  41439. This function returns a positive integer if the run-time CPU
  41440. supports FEATURE and returns '0' otherwise. The following features
  41441. can be detected:
  41442. 'cmov'
  41443. CMOV instruction.
  41444. 'mmx'
  41445. MMX instructions.
  41446. 'popcnt'
  41447. POPCNT instruction.
  41448. 'sse'
  41449. SSE instructions.
  41450. 'sse2'
  41451. SSE2 instructions.
  41452. 'sse3'
  41453. SSE3 instructions.
  41454. 'ssse3'
  41455. SSSE3 instructions.
  41456. 'sse4.1'
  41457. SSE4.1 instructions.
  41458. 'sse4.2'
  41459. SSE4.2 instructions.
  41460. 'avx'
  41461. AVX instructions.
  41462. 'avx2'
  41463. AVX2 instructions.
  41464. 'sse4a'
  41465. SSE4A instructions.
  41466. 'fma4'
  41467. FMA4 instructions.
  41468. 'xop'
  41469. XOP instructions.
  41470. 'fma'
  41471. FMA instructions.
  41472. 'avx512f'
  41473. AVX512F instructions.
  41474. 'bmi'
  41475. BMI instructions.
  41476. 'bmi2'
  41477. BMI2 instructions.
  41478. 'aes'
  41479. AES instructions.
  41480. 'pclmul'
  41481. PCLMUL instructions.
  41482. 'avx512vl'
  41483. AVX512VL instructions.
  41484. 'avx512bw'
  41485. AVX512BW instructions.
  41486. 'avx512dq'
  41487. AVX512DQ instructions.
  41488. 'avx512cd'
  41489. AVX512CD instructions.
  41490. 'avx512er'
  41491. AVX512ER instructions.
  41492. 'avx512pf'
  41493. AVX512PF instructions.
  41494. 'avx512vbmi'
  41495. AVX512VBMI instructions.
  41496. 'avx512ifma'
  41497. AVX512IFMA instructions.
  41498. 'avx5124vnniw'
  41499. AVX5124VNNIW instructions.
  41500. 'avx5124fmaps'
  41501. AVX5124FMAPS instructions.
  41502. 'avx512vpopcntdq'
  41503. AVX512VPOPCNTDQ instructions.
  41504. 'avx512vbmi2'
  41505. AVX512VBMI2 instructions.
  41506. 'gfni'
  41507. GFNI instructions.
  41508. 'vpclmulqdq'
  41509. VPCLMULQDQ instructions.
  41510. 'avx512vnni'
  41511. AVX512VNNI instructions.
  41512. 'avx512bitalg'
  41513. AVX512BITALG instructions.
  41514. Here is an example:
  41515. if (__builtin_cpu_supports ("popcnt"))
  41516. {
  41517. asm("popcnt %1,%0" : "=r"(count) : "rm"(n) : "cc");
  41518. }
  41519. else
  41520. {
  41521. count = generic_countbits (n); //generic implementation.
  41522. }
  41523. The following built-in functions are made available by '-mmmx'. All of
  41524. them generate the machine instruction that is part of the name.
  41525. v8qi __builtin_ia32_paddb (v8qi, v8qi)
  41526. v4hi __builtin_ia32_paddw (v4hi, v4hi)
  41527. v2si __builtin_ia32_paddd (v2si, v2si)
  41528. v8qi __builtin_ia32_psubb (v8qi, v8qi)
  41529. v4hi __builtin_ia32_psubw (v4hi, v4hi)
  41530. v2si __builtin_ia32_psubd (v2si, v2si)
  41531. v8qi __builtin_ia32_paddsb (v8qi, v8qi)
  41532. v4hi __builtin_ia32_paddsw (v4hi, v4hi)
  41533. v8qi __builtin_ia32_psubsb (v8qi, v8qi)
  41534. v4hi __builtin_ia32_psubsw (v4hi, v4hi)
  41535. v8qi __builtin_ia32_paddusb (v8qi, v8qi)
  41536. v4hi __builtin_ia32_paddusw (v4hi, v4hi)
  41537. v8qi __builtin_ia32_psubusb (v8qi, v8qi)
  41538. v4hi __builtin_ia32_psubusw (v4hi, v4hi)
  41539. v4hi __builtin_ia32_pmullw (v4hi, v4hi)
  41540. v4hi __builtin_ia32_pmulhw (v4hi, v4hi)
  41541. di __builtin_ia32_pand (di, di)
  41542. di __builtin_ia32_pandn (di,di)
  41543. di __builtin_ia32_por (di, di)
  41544. di __builtin_ia32_pxor (di, di)
  41545. v8qi __builtin_ia32_pcmpeqb (v8qi, v8qi)
  41546. v4hi __builtin_ia32_pcmpeqw (v4hi, v4hi)
  41547. v2si __builtin_ia32_pcmpeqd (v2si, v2si)
  41548. v8qi __builtin_ia32_pcmpgtb (v8qi, v8qi)
  41549. v4hi __builtin_ia32_pcmpgtw (v4hi, v4hi)
  41550. v2si __builtin_ia32_pcmpgtd (v2si, v2si)
  41551. v8qi __builtin_ia32_punpckhbw (v8qi, v8qi)
  41552. v4hi __builtin_ia32_punpckhwd (v4hi, v4hi)
  41553. v2si __builtin_ia32_punpckhdq (v2si, v2si)
  41554. v8qi __builtin_ia32_punpcklbw (v8qi, v8qi)
  41555. v4hi __builtin_ia32_punpcklwd (v4hi, v4hi)
  41556. v2si __builtin_ia32_punpckldq (v2si, v2si)
  41557. v8qi __builtin_ia32_packsswb (v4hi, v4hi)
  41558. v4hi __builtin_ia32_packssdw (v2si, v2si)
  41559. v8qi __builtin_ia32_packuswb (v4hi, v4hi)
  41560. v4hi __builtin_ia32_psllw (v4hi, v4hi)
  41561. v2si __builtin_ia32_pslld (v2si, v2si)
  41562. v1di __builtin_ia32_psllq (v1di, v1di)
  41563. v4hi __builtin_ia32_psrlw (v4hi, v4hi)
  41564. v2si __builtin_ia32_psrld (v2si, v2si)
  41565. v1di __builtin_ia32_psrlq (v1di, v1di)
  41566. v4hi __builtin_ia32_psraw (v4hi, v4hi)
  41567. v2si __builtin_ia32_psrad (v2si, v2si)
  41568. v4hi __builtin_ia32_psllwi (v4hi, int)
  41569. v2si __builtin_ia32_pslldi (v2si, int)
  41570. v1di __builtin_ia32_psllqi (v1di, int)
  41571. v4hi __builtin_ia32_psrlwi (v4hi, int)
  41572. v2si __builtin_ia32_psrldi (v2si, int)
  41573. v1di __builtin_ia32_psrlqi (v1di, int)
  41574. v4hi __builtin_ia32_psrawi (v4hi, int)
  41575. v2si __builtin_ia32_psradi (v2si, int)
  41576. The following built-in functions are made available either with
  41577. '-msse', or with '-m3dnowa'. All of them generate the machine
  41578. instruction that is part of the name.
  41579. v4hi __builtin_ia32_pmulhuw (v4hi, v4hi)
  41580. v8qi __builtin_ia32_pavgb (v8qi, v8qi)
  41581. v4hi __builtin_ia32_pavgw (v4hi, v4hi)
  41582. v1di __builtin_ia32_psadbw (v8qi, v8qi)
  41583. v8qi __builtin_ia32_pmaxub (v8qi, v8qi)
  41584. v4hi __builtin_ia32_pmaxsw (v4hi, v4hi)
  41585. v8qi __builtin_ia32_pminub (v8qi, v8qi)
  41586. v4hi __builtin_ia32_pminsw (v4hi, v4hi)
  41587. int __builtin_ia32_pmovmskb (v8qi)
  41588. void __builtin_ia32_maskmovq (v8qi, v8qi, char *)
  41589. void __builtin_ia32_movntq (di *, di)
  41590. void __builtin_ia32_sfence (void)
  41591. The following built-in functions are available when '-msse' is used.
  41592. All of them generate the machine instruction that is part of the name.
  41593. int __builtin_ia32_comieq (v4sf, v4sf)
  41594. int __builtin_ia32_comineq (v4sf, v4sf)
  41595. int __builtin_ia32_comilt (v4sf, v4sf)
  41596. int __builtin_ia32_comile (v4sf, v4sf)
  41597. int __builtin_ia32_comigt (v4sf, v4sf)
  41598. int __builtin_ia32_comige (v4sf, v4sf)
  41599. int __builtin_ia32_ucomieq (v4sf, v4sf)
  41600. int __builtin_ia32_ucomineq (v4sf, v4sf)
  41601. int __builtin_ia32_ucomilt (v4sf, v4sf)
  41602. int __builtin_ia32_ucomile (v4sf, v4sf)
  41603. int __builtin_ia32_ucomigt (v4sf, v4sf)
  41604. int __builtin_ia32_ucomige (v4sf, v4sf)
  41605. v4sf __builtin_ia32_addps (v4sf, v4sf)
  41606. v4sf __builtin_ia32_subps (v4sf, v4sf)
  41607. v4sf __builtin_ia32_mulps (v4sf, v4sf)
  41608. v4sf __builtin_ia32_divps (v4sf, v4sf)
  41609. v4sf __builtin_ia32_addss (v4sf, v4sf)
  41610. v4sf __builtin_ia32_subss (v4sf, v4sf)
  41611. v4sf __builtin_ia32_mulss (v4sf, v4sf)
  41612. v4sf __builtin_ia32_divss (v4sf, v4sf)
  41613. v4sf __builtin_ia32_cmpeqps (v4sf, v4sf)
  41614. v4sf __builtin_ia32_cmpltps (v4sf, v4sf)
  41615. v4sf __builtin_ia32_cmpleps (v4sf, v4sf)
  41616. v4sf __builtin_ia32_cmpgtps (v4sf, v4sf)
  41617. v4sf __builtin_ia32_cmpgeps (v4sf, v4sf)
  41618. v4sf __builtin_ia32_cmpunordps (v4sf, v4sf)
  41619. v4sf __builtin_ia32_cmpneqps (v4sf, v4sf)
  41620. v4sf __builtin_ia32_cmpnltps (v4sf, v4sf)
  41621. v4sf __builtin_ia32_cmpnleps (v4sf, v4sf)
  41622. v4sf __builtin_ia32_cmpngtps (v4sf, v4sf)
  41623. v4sf __builtin_ia32_cmpngeps (v4sf, v4sf)
  41624. v4sf __builtin_ia32_cmpordps (v4sf, v4sf)
  41625. v4sf __builtin_ia32_cmpeqss (v4sf, v4sf)
  41626. v4sf __builtin_ia32_cmpltss (v4sf, v4sf)
  41627. v4sf __builtin_ia32_cmpless (v4sf, v4sf)
  41628. v4sf __builtin_ia32_cmpunordss (v4sf, v4sf)
  41629. v4sf __builtin_ia32_cmpneqss (v4sf, v4sf)
  41630. v4sf __builtin_ia32_cmpnltss (v4sf, v4sf)
  41631. v4sf __builtin_ia32_cmpnless (v4sf, v4sf)
  41632. v4sf __builtin_ia32_cmpordss (v4sf, v4sf)
  41633. v4sf __builtin_ia32_maxps (v4sf, v4sf)
  41634. v4sf __builtin_ia32_maxss (v4sf, v4sf)
  41635. v4sf __builtin_ia32_minps (v4sf, v4sf)
  41636. v4sf __builtin_ia32_minss (v4sf, v4sf)
  41637. v4sf __builtin_ia32_andps (v4sf, v4sf)
  41638. v4sf __builtin_ia32_andnps (v4sf, v4sf)
  41639. v4sf __builtin_ia32_orps (v4sf, v4sf)
  41640. v4sf __builtin_ia32_xorps (v4sf, v4sf)
  41641. v4sf __builtin_ia32_movss (v4sf, v4sf)
  41642. v4sf __builtin_ia32_movhlps (v4sf, v4sf)
  41643. v4sf __builtin_ia32_movlhps (v4sf, v4sf)
  41644. v4sf __builtin_ia32_unpckhps (v4sf, v4sf)
  41645. v4sf __builtin_ia32_unpcklps (v4sf, v4sf)
  41646. v4sf __builtin_ia32_cvtpi2ps (v4sf, v2si)
  41647. v4sf __builtin_ia32_cvtsi2ss (v4sf, int)
  41648. v2si __builtin_ia32_cvtps2pi (v4sf)
  41649. int __builtin_ia32_cvtss2si (v4sf)
  41650. v2si __builtin_ia32_cvttps2pi (v4sf)
  41651. int __builtin_ia32_cvttss2si (v4sf)
  41652. v4sf __builtin_ia32_rcpps (v4sf)
  41653. v4sf __builtin_ia32_rsqrtps (v4sf)
  41654. v4sf __builtin_ia32_sqrtps (v4sf)
  41655. v4sf __builtin_ia32_rcpss (v4sf)
  41656. v4sf __builtin_ia32_rsqrtss (v4sf)
  41657. v4sf __builtin_ia32_sqrtss (v4sf)
  41658. v4sf __builtin_ia32_shufps (v4sf, v4sf, int)
  41659. void __builtin_ia32_movntps (float *, v4sf)
  41660. int __builtin_ia32_movmskps (v4sf)
  41661. The following built-in functions are available when '-msse' is used.
  41662. 'v4sf __builtin_ia32_loadups (float *)'
  41663. Generates the 'movups' machine instruction as a load from memory.
  41664. 'void __builtin_ia32_storeups (float *, v4sf)'
  41665. Generates the 'movups' machine instruction as a store to memory.
  41666. 'v4sf __builtin_ia32_loadss (float *)'
  41667. Generates the 'movss' machine instruction as a load from memory.
  41668. 'v4sf __builtin_ia32_loadhps (v4sf, const v2sf *)'
  41669. Generates the 'movhps' machine instruction as a load from memory.
  41670. 'v4sf __builtin_ia32_loadlps (v4sf, const v2sf *)'
  41671. Generates the 'movlps' machine instruction as a load from memory
  41672. 'void __builtin_ia32_storehps (v2sf *, v4sf)'
  41673. Generates the 'movhps' machine instruction as a store to memory.
  41674. 'void __builtin_ia32_storelps (v2sf *, v4sf)'
  41675. Generates the 'movlps' machine instruction as a store to memory.
  41676. The following built-in functions are available when '-msse2' is used.
  41677. All of them generate the machine instruction that is part of the name.
  41678. int __builtin_ia32_comisdeq (v2df, v2df)
  41679. int __builtin_ia32_comisdlt (v2df, v2df)
  41680. int __builtin_ia32_comisdle (v2df, v2df)
  41681. int __builtin_ia32_comisdgt (v2df, v2df)
  41682. int __builtin_ia32_comisdge (v2df, v2df)
  41683. int __builtin_ia32_comisdneq (v2df, v2df)
  41684. int __builtin_ia32_ucomisdeq (v2df, v2df)
  41685. int __builtin_ia32_ucomisdlt (v2df, v2df)
  41686. int __builtin_ia32_ucomisdle (v2df, v2df)
  41687. int __builtin_ia32_ucomisdgt (v2df, v2df)
  41688. int __builtin_ia32_ucomisdge (v2df, v2df)
  41689. int __builtin_ia32_ucomisdneq (v2df, v2df)
  41690. v2df __builtin_ia32_cmpeqpd (v2df, v2df)
  41691. v2df __builtin_ia32_cmpltpd (v2df, v2df)
  41692. v2df __builtin_ia32_cmplepd (v2df, v2df)
  41693. v2df __builtin_ia32_cmpgtpd (v2df, v2df)
  41694. v2df __builtin_ia32_cmpgepd (v2df, v2df)
  41695. v2df __builtin_ia32_cmpunordpd (v2df, v2df)
  41696. v2df __builtin_ia32_cmpneqpd (v2df, v2df)
  41697. v2df __builtin_ia32_cmpnltpd (v2df, v2df)
  41698. v2df __builtin_ia32_cmpnlepd (v2df, v2df)
  41699. v2df __builtin_ia32_cmpngtpd (v2df, v2df)
  41700. v2df __builtin_ia32_cmpngepd (v2df, v2df)
  41701. v2df __builtin_ia32_cmpordpd (v2df, v2df)
  41702. v2df __builtin_ia32_cmpeqsd (v2df, v2df)
  41703. v2df __builtin_ia32_cmpltsd (v2df, v2df)
  41704. v2df __builtin_ia32_cmplesd (v2df, v2df)
  41705. v2df __builtin_ia32_cmpunordsd (v2df, v2df)
  41706. v2df __builtin_ia32_cmpneqsd (v2df, v2df)
  41707. v2df __builtin_ia32_cmpnltsd (v2df, v2df)
  41708. v2df __builtin_ia32_cmpnlesd (v2df, v2df)
  41709. v2df __builtin_ia32_cmpordsd (v2df, v2df)
  41710. v2di __builtin_ia32_paddq (v2di, v2di)
  41711. v2di __builtin_ia32_psubq (v2di, v2di)
  41712. v2df __builtin_ia32_addpd (v2df, v2df)
  41713. v2df __builtin_ia32_subpd (v2df, v2df)
  41714. v2df __builtin_ia32_mulpd (v2df, v2df)
  41715. v2df __builtin_ia32_divpd (v2df, v2df)
  41716. v2df __builtin_ia32_addsd (v2df, v2df)
  41717. v2df __builtin_ia32_subsd (v2df, v2df)
  41718. v2df __builtin_ia32_mulsd (v2df, v2df)
  41719. v2df __builtin_ia32_divsd (v2df, v2df)
  41720. v2df __builtin_ia32_minpd (v2df, v2df)
  41721. v2df __builtin_ia32_maxpd (v2df, v2df)
  41722. v2df __builtin_ia32_minsd (v2df, v2df)
  41723. v2df __builtin_ia32_maxsd (v2df, v2df)
  41724. v2df __builtin_ia32_andpd (v2df, v2df)
  41725. v2df __builtin_ia32_andnpd (v2df, v2df)
  41726. v2df __builtin_ia32_orpd (v2df, v2df)
  41727. v2df __builtin_ia32_xorpd (v2df, v2df)
  41728. v2df __builtin_ia32_movsd (v2df, v2df)
  41729. v2df __builtin_ia32_unpckhpd (v2df, v2df)
  41730. v2df __builtin_ia32_unpcklpd (v2df, v2df)
  41731. v16qi __builtin_ia32_paddb128 (v16qi, v16qi)
  41732. v8hi __builtin_ia32_paddw128 (v8hi, v8hi)
  41733. v4si __builtin_ia32_paddd128 (v4si, v4si)
  41734. v2di __builtin_ia32_paddq128 (v2di, v2di)
  41735. v16qi __builtin_ia32_psubb128 (v16qi, v16qi)
  41736. v8hi __builtin_ia32_psubw128 (v8hi, v8hi)
  41737. v4si __builtin_ia32_psubd128 (v4si, v4si)
  41738. v2di __builtin_ia32_psubq128 (v2di, v2di)
  41739. v8hi __builtin_ia32_pmullw128 (v8hi, v8hi)
  41740. v8hi __builtin_ia32_pmulhw128 (v8hi, v8hi)
  41741. v2di __builtin_ia32_pand128 (v2di, v2di)
  41742. v2di __builtin_ia32_pandn128 (v2di, v2di)
  41743. v2di __builtin_ia32_por128 (v2di, v2di)
  41744. v2di __builtin_ia32_pxor128 (v2di, v2di)
  41745. v16qi __builtin_ia32_pavgb128 (v16qi, v16qi)
  41746. v8hi __builtin_ia32_pavgw128 (v8hi, v8hi)
  41747. v16qi __builtin_ia32_pcmpeqb128 (v16qi, v16qi)
  41748. v8hi __builtin_ia32_pcmpeqw128 (v8hi, v8hi)
  41749. v4si __builtin_ia32_pcmpeqd128 (v4si, v4si)
  41750. v16qi __builtin_ia32_pcmpgtb128 (v16qi, v16qi)
  41751. v8hi __builtin_ia32_pcmpgtw128 (v8hi, v8hi)
  41752. v4si __builtin_ia32_pcmpgtd128 (v4si, v4si)
  41753. v16qi __builtin_ia32_pmaxub128 (v16qi, v16qi)
  41754. v8hi __builtin_ia32_pmaxsw128 (v8hi, v8hi)
  41755. v16qi __builtin_ia32_pminub128 (v16qi, v16qi)
  41756. v8hi __builtin_ia32_pminsw128 (v8hi, v8hi)
  41757. v16qi __builtin_ia32_punpckhbw128 (v16qi, v16qi)
  41758. v8hi __builtin_ia32_punpckhwd128 (v8hi, v8hi)
  41759. v4si __builtin_ia32_punpckhdq128 (v4si, v4si)
  41760. v2di __builtin_ia32_punpckhqdq128 (v2di, v2di)
  41761. v16qi __builtin_ia32_punpcklbw128 (v16qi, v16qi)
  41762. v8hi __builtin_ia32_punpcklwd128 (v8hi, v8hi)
  41763. v4si __builtin_ia32_punpckldq128 (v4si, v4si)
  41764. v2di __builtin_ia32_punpcklqdq128 (v2di, v2di)
  41765. v16qi __builtin_ia32_packsswb128 (v8hi, v8hi)
  41766. v8hi __builtin_ia32_packssdw128 (v4si, v4si)
  41767. v16qi __builtin_ia32_packuswb128 (v8hi, v8hi)
  41768. v8hi __builtin_ia32_pmulhuw128 (v8hi, v8hi)
  41769. void __builtin_ia32_maskmovdqu (v16qi, v16qi)
  41770. v2df __builtin_ia32_loadupd (double *)
  41771. void __builtin_ia32_storeupd (double *, v2df)
  41772. v2df __builtin_ia32_loadhpd (v2df, double const *)
  41773. v2df __builtin_ia32_loadlpd (v2df, double const *)
  41774. int __builtin_ia32_movmskpd (v2df)
  41775. int __builtin_ia32_pmovmskb128 (v16qi)
  41776. void __builtin_ia32_movnti (int *, int)
  41777. void __builtin_ia32_movnti64 (long long int *, long long int)
  41778. void __builtin_ia32_movntpd (double *, v2df)
  41779. void __builtin_ia32_movntdq (v2df *, v2df)
  41780. v4si __builtin_ia32_pshufd (v4si, int)
  41781. v8hi __builtin_ia32_pshuflw (v8hi, int)
  41782. v8hi __builtin_ia32_pshufhw (v8hi, int)
  41783. v2di __builtin_ia32_psadbw128 (v16qi, v16qi)
  41784. v2df __builtin_ia32_sqrtpd (v2df)
  41785. v2df __builtin_ia32_sqrtsd (v2df)
  41786. v2df __builtin_ia32_shufpd (v2df, v2df, int)
  41787. v2df __builtin_ia32_cvtdq2pd (v4si)
  41788. v4sf __builtin_ia32_cvtdq2ps (v4si)
  41789. v4si __builtin_ia32_cvtpd2dq (v2df)
  41790. v2si __builtin_ia32_cvtpd2pi (v2df)
  41791. v4sf __builtin_ia32_cvtpd2ps (v2df)
  41792. v4si __builtin_ia32_cvttpd2dq (v2df)
  41793. v2si __builtin_ia32_cvttpd2pi (v2df)
  41794. v2df __builtin_ia32_cvtpi2pd (v2si)
  41795. int __builtin_ia32_cvtsd2si (v2df)
  41796. int __builtin_ia32_cvttsd2si (v2df)
  41797. long long __builtin_ia32_cvtsd2si64 (v2df)
  41798. long long __builtin_ia32_cvttsd2si64 (v2df)
  41799. v4si __builtin_ia32_cvtps2dq (v4sf)
  41800. v2df __builtin_ia32_cvtps2pd (v4sf)
  41801. v4si __builtin_ia32_cvttps2dq (v4sf)
  41802. v2df __builtin_ia32_cvtsi2sd (v2df, int)
  41803. v2df __builtin_ia32_cvtsi642sd (v2df, long long)
  41804. v4sf __builtin_ia32_cvtsd2ss (v4sf, v2df)
  41805. v2df __builtin_ia32_cvtss2sd (v2df, v4sf)
  41806. void __builtin_ia32_clflush (const void *)
  41807. void __builtin_ia32_lfence (void)
  41808. void __builtin_ia32_mfence (void)
  41809. v16qi __builtin_ia32_loaddqu (const char *)
  41810. void __builtin_ia32_storedqu (char *, v16qi)
  41811. v1di __builtin_ia32_pmuludq (v2si, v2si)
  41812. v2di __builtin_ia32_pmuludq128 (v4si, v4si)
  41813. v8hi __builtin_ia32_psllw128 (v8hi, v8hi)
  41814. v4si __builtin_ia32_pslld128 (v4si, v4si)
  41815. v2di __builtin_ia32_psllq128 (v2di, v2di)
  41816. v8hi __builtin_ia32_psrlw128 (v8hi, v8hi)
  41817. v4si __builtin_ia32_psrld128 (v4si, v4si)
  41818. v2di __builtin_ia32_psrlq128 (v2di, v2di)
  41819. v8hi __builtin_ia32_psraw128 (v8hi, v8hi)
  41820. v4si __builtin_ia32_psrad128 (v4si, v4si)
  41821. v2di __builtin_ia32_pslldqi128 (v2di, int)
  41822. v8hi __builtin_ia32_psllwi128 (v8hi, int)
  41823. v4si __builtin_ia32_pslldi128 (v4si, int)
  41824. v2di __builtin_ia32_psllqi128 (v2di, int)
  41825. v2di __builtin_ia32_psrldqi128 (v2di, int)
  41826. v8hi __builtin_ia32_psrlwi128 (v8hi, int)
  41827. v4si __builtin_ia32_psrldi128 (v4si, int)
  41828. v2di __builtin_ia32_psrlqi128 (v2di, int)
  41829. v8hi __builtin_ia32_psrawi128 (v8hi, int)
  41830. v4si __builtin_ia32_psradi128 (v4si, int)
  41831. v4si __builtin_ia32_pmaddwd128 (v8hi, v8hi)
  41832. v2di __builtin_ia32_movq128 (v2di)
  41833. The following built-in functions are available when '-msse3' is used.
  41834. All of them generate the machine instruction that is part of the name.
  41835. v2df __builtin_ia32_addsubpd (v2df, v2df)
  41836. v4sf __builtin_ia32_addsubps (v4sf, v4sf)
  41837. v2df __builtin_ia32_haddpd (v2df, v2df)
  41838. v4sf __builtin_ia32_haddps (v4sf, v4sf)
  41839. v2df __builtin_ia32_hsubpd (v2df, v2df)
  41840. v4sf __builtin_ia32_hsubps (v4sf, v4sf)
  41841. v16qi __builtin_ia32_lddqu (char const *)
  41842. void __builtin_ia32_monitor (void *, unsigned int, unsigned int)
  41843. v4sf __builtin_ia32_movshdup (v4sf)
  41844. v4sf __builtin_ia32_movsldup (v4sf)
  41845. void __builtin_ia32_mwait (unsigned int, unsigned int)
  41846. The following built-in functions are available when '-mssse3' is used.
  41847. All of them generate the machine instruction that is part of the name.
  41848. v2si __builtin_ia32_phaddd (v2si, v2si)
  41849. v4hi __builtin_ia32_phaddw (v4hi, v4hi)
  41850. v4hi __builtin_ia32_phaddsw (v4hi, v4hi)
  41851. v2si __builtin_ia32_phsubd (v2si, v2si)
  41852. v4hi __builtin_ia32_phsubw (v4hi, v4hi)
  41853. v4hi __builtin_ia32_phsubsw (v4hi, v4hi)
  41854. v4hi __builtin_ia32_pmaddubsw (v8qi, v8qi)
  41855. v4hi __builtin_ia32_pmulhrsw (v4hi, v4hi)
  41856. v8qi __builtin_ia32_pshufb (v8qi, v8qi)
  41857. v8qi __builtin_ia32_psignb (v8qi, v8qi)
  41858. v2si __builtin_ia32_psignd (v2si, v2si)
  41859. v4hi __builtin_ia32_psignw (v4hi, v4hi)
  41860. v1di __builtin_ia32_palignr (v1di, v1di, int)
  41861. v8qi __builtin_ia32_pabsb (v8qi)
  41862. v2si __builtin_ia32_pabsd (v2si)
  41863. v4hi __builtin_ia32_pabsw (v4hi)
  41864. The following built-in functions are available when '-mssse3' is used.
  41865. All of them generate the machine instruction that is part of the name.
  41866. v4si __builtin_ia32_phaddd128 (v4si, v4si)
  41867. v8hi __builtin_ia32_phaddw128 (v8hi, v8hi)
  41868. v8hi __builtin_ia32_phaddsw128 (v8hi, v8hi)
  41869. v4si __builtin_ia32_phsubd128 (v4si, v4si)
  41870. v8hi __builtin_ia32_phsubw128 (v8hi, v8hi)
  41871. v8hi __builtin_ia32_phsubsw128 (v8hi, v8hi)
  41872. v8hi __builtin_ia32_pmaddubsw128 (v16qi, v16qi)
  41873. v8hi __builtin_ia32_pmulhrsw128 (v8hi, v8hi)
  41874. v16qi __builtin_ia32_pshufb128 (v16qi, v16qi)
  41875. v16qi __builtin_ia32_psignb128 (v16qi, v16qi)
  41876. v4si __builtin_ia32_psignd128 (v4si, v4si)
  41877. v8hi __builtin_ia32_psignw128 (v8hi, v8hi)
  41878. v2di __builtin_ia32_palignr128 (v2di, v2di, int)
  41879. v16qi __builtin_ia32_pabsb128 (v16qi)
  41880. v4si __builtin_ia32_pabsd128 (v4si)
  41881. v8hi __builtin_ia32_pabsw128 (v8hi)
  41882. The following built-in functions are available when '-msse4.1' is used.
  41883. All of them generate the machine instruction that is part of the name.
  41884. v2df __builtin_ia32_blendpd (v2df, v2df, const int)
  41885. v4sf __builtin_ia32_blendps (v4sf, v4sf, const int)
  41886. v2df __builtin_ia32_blendvpd (v2df, v2df, v2df)
  41887. v4sf __builtin_ia32_blendvps (v4sf, v4sf, v4sf)
  41888. v2df __builtin_ia32_dppd (v2df, v2df, const int)
  41889. v4sf __builtin_ia32_dpps (v4sf, v4sf, const int)
  41890. v4sf __builtin_ia32_insertps128 (v4sf, v4sf, const int)
  41891. v2di __builtin_ia32_movntdqa (v2di *);
  41892. v16qi __builtin_ia32_mpsadbw128 (v16qi, v16qi, const int)
  41893. v8hi __builtin_ia32_packusdw128 (v4si, v4si)
  41894. v16qi __builtin_ia32_pblendvb128 (v16qi, v16qi, v16qi)
  41895. v8hi __builtin_ia32_pblendw128 (v8hi, v8hi, const int)
  41896. v2di __builtin_ia32_pcmpeqq (v2di, v2di)
  41897. v8hi __builtin_ia32_phminposuw128 (v8hi)
  41898. v16qi __builtin_ia32_pmaxsb128 (v16qi, v16qi)
  41899. v4si __builtin_ia32_pmaxsd128 (v4si, v4si)
  41900. v4si __builtin_ia32_pmaxud128 (v4si, v4si)
  41901. v8hi __builtin_ia32_pmaxuw128 (v8hi, v8hi)
  41902. v16qi __builtin_ia32_pminsb128 (v16qi, v16qi)
  41903. v4si __builtin_ia32_pminsd128 (v4si, v4si)
  41904. v4si __builtin_ia32_pminud128 (v4si, v4si)
  41905. v8hi __builtin_ia32_pminuw128 (v8hi, v8hi)
  41906. v4si __builtin_ia32_pmovsxbd128 (v16qi)
  41907. v2di __builtin_ia32_pmovsxbq128 (v16qi)
  41908. v8hi __builtin_ia32_pmovsxbw128 (v16qi)
  41909. v2di __builtin_ia32_pmovsxdq128 (v4si)
  41910. v4si __builtin_ia32_pmovsxwd128 (v8hi)
  41911. v2di __builtin_ia32_pmovsxwq128 (v8hi)
  41912. v4si __builtin_ia32_pmovzxbd128 (v16qi)
  41913. v2di __builtin_ia32_pmovzxbq128 (v16qi)
  41914. v8hi __builtin_ia32_pmovzxbw128 (v16qi)
  41915. v2di __builtin_ia32_pmovzxdq128 (v4si)
  41916. v4si __builtin_ia32_pmovzxwd128 (v8hi)
  41917. v2di __builtin_ia32_pmovzxwq128 (v8hi)
  41918. v2di __builtin_ia32_pmuldq128 (v4si, v4si)
  41919. v4si __builtin_ia32_pmulld128 (v4si, v4si)
  41920. int __builtin_ia32_ptestc128 (v2di, v2di)
  41921. int __builtin_ia32_ptestnzc128 (v2di, v2di)
  41922. int __builtin_ia32_ptestz128 (v2di, v2di)
  41923. v2df __builtin_ia32_roundpd (v2df, const int)
  41924. v4sf __builtin_ia32_roundps (v4sf, const int)
  41925. v2df __builtin_ia32_roundsd (v2df, v2df, const int)
  41926. v4sf __builtin_ia32_roundss (v4sf, v4sf, const int)
  41927. The following built-in functions are available when '-msse4.1' is used.
  41928. 'v4sf __builtin_ia32_vec_set_v4sf (v4sf, float, const int)'
  41929. Generates the 'insertps' machine instruction.
  41930. 'int __builtin_ia32_vec_ext_v16qi (v16qi, const int)'
  41931. Generates the 'pextrb' machine instruction.
  41932. 'v16qi __builtin_ia32_vec_set_v16qi (v16qi, int, const int)'
  41933. Generates the 'pinsrb' machine instruction.
  41934. 'v4si __builtin_ia32_vec_set_v4si (v4si, int, const int)'
  41935. Generates the 'pinsrd' machine instruction.
  41936. 'v2di __builtin_ia32_vec_set_v2di (v2di, long long, const int)'
  41937. Generates the 'pinsrq' machine instruction in 64bit mode.
  41938. The following built-in functions are changed to generate new SSE4.1
  41939. instructions when '-msse4.1' is used.
  41940. 'float __builtin_ia32_vec_ext_v4sf (v4sf, const int)'
  41941. Generates the 'extractps' machine instruction.
  41942. 'int __builtin_ia32_vec_ext_v4si (v4si, const int)'
  41943. Generates the 'pextrd' machine instruction.
  41944. 'long long __builtin_ia32_vec_ext_v2di (v2di, const int)'
  41945. Generates the 'pextrq' machine instruction in 64bit mode.
  41946. The following built-in functions are available when '-msse4.2' is used.
  41947. All of them generate the machine instruction that is part of the name.
  41948. v16qi __builtin_ia32_pcmpestrm128 (v16qi, int, v16qi, int, const int)
  41949. int __builtin_ia32_pcmpestri128 (v16qi, int, v16qi, int, const int)
  41950. int __builtin_ia32_pcmpestria128 (v16qi, int, v16qi, int, const int)
  41951. int __builtin_ia32_pcmpestric128 (v16qi, int, v16qi, int, const int)
  41952. int __builtin_ia32_pcmpestrio128 (v16qi, int, v16qi, int, const int)
  41953. int __builtin_ia32_pcmpestris128 (v16qi, int, v16qi, int, const int)
  41954. int __builtin_ia32_pcmpestriz128 (v16qi, int, v16qi, int, const int)
  41955. v16qi __builtin_ia32_pcmpistrm128 (v16qi, v16qi, const int)
  41956. int __builtin_ia32_pcmpistri128 (v16qi, v16qi, const int)
  41957. int __builtin_ia32_pcmpistria128 (v16qi, v16qi, const int)
  41958. int __builtin_ia32_pcmpistric128 (v16qi, v16qi, const int)
  41959. int __builtin_ia32_pcmpistrio128 (v16qi, v16qi, const int)
  41960. int __builtin_ia32_pcmpistris128 (v16qi, v16qi, const int)
  41961. int __builtin_ia32_pcmpistriz128 (v16qi, v16qi, const int)
  41962. v2di __builtin_ia32_pcmpgtq (v2di, v2di)
  41963. The following built-in functions are available when '-msse4.2' is used.
  41964. 'unsigned int __builtin_ia32_crc32qi (unsigned int, unsigned char)'
  41965. Generates the 'crc32b' machine instruction.
  41966. 'unsigned int __builtin_ia32_crc32hi (unsigned int, unsigned short)'
  41967. Generates the 'crc32w' machine instruction.
  41968. 'unsigned int __builtin_ia32_crc32si (unsigned int, unsigned int)'
  41969. Generates the 'crc32l' machine instruction.
  41970. 'unsigned long long __builtin_ia32_crc32di (unsigned long long, unsigned long long)'
  41971. Generates the 'crc32q' machine instruction.
  41972. The following built-in functions are changed to generate new SSE4.2
  41973. instructions when '-msse4.2' is used.
  41974. 'int __builtin_popcount (unsigned int)'
  41975. Generates the 'popcntl' machine instruction.
  41976. 'int __builtin_popcountl (unsigned long)'
  41977. Generates the 'popcntl' or 'popcntq' machine instruction, depending
  41978. on the size of 'unsigned long'.
  41979. 'int __builtin_popcountll (unsigned long long)'
  41980. Generates the 'popcntq' machine instruction.
  41981. The following built-in functions are available when '-mavx' is used.
  41982. All of them generate the machine instruction that is part of the name.
  41983. v4df __builtin_ia32_addpd256 (v4df,v4df)
  41984. v8sf __builtin_ia32_addps256 (v8sf,v8sf)
  41985. v4df __builtin_ia32_addsubpd256 (v4df,v4df)
  41986. v8sf __builtin_ia32_addsubps256 (v8sf,v8sf)
  41987. v4df __builtin_ia32_andnpd256 (v4df,v4df)
  41988. v8sf __builtin_ia32_andnps256 (v8sf,v8sf)
  41989. v4df __builtin_ia32_andpd256 (v4df,v4df)
  41990. v8sf __builtin_ia32_andps256 (v8sf,v8sf)
  41991. v4df __builtin_ia32_blendpd256 (v4df,v4df,int)
  41992. v8sf __builtin_ia32_blendps256 (v8sf,v8sf,int)
  41993. v4df __builtin_ia32_blendvpd256 (v4df,v4df,v4df)
  41994. v8sf __builtin_ia32_blendvps256 (v8sf,v8sf,v8sf)
  41995. v2df __builtin_ia32_cmppd (v2df,v2df,int)
  41996. v4df __builtin_ia32_cmppd256 (v4df,v4df,int)
  41997. v4sf __builtin_ia32_cmpps (v4sf,v4sf,int)
  41998. v8sf __builtin_ia32_cmpps256 (v8sf,v8sf,int)
  41999. v2df __builtin_ia32_cmpsd (v2df,v2df,int)
  42000. v4sf __builtin_ia32_cmpss (v4sf,v4sf,int)
  42001. v4df __builtin_ia32_cvtdq2pd256 (v4si)
  42002. v8sf __builtin_ia32_cvtdq2ps256 (v8si)
  42003. v4si __builtin_ia32_cvtpd2dq256 (v4df)
  42004. v4sf __builtin_ia32_cvtpd2ps256 (v4df)
  42005. v8si __builtin_ia32_cvtps2dq256 (v8sf)
  42006. v4df __builtin_ia32_cvtps2pd256 (v4sf)
  42007. v4si __builtin_ia32_cvttpd2dq256 (v4df)
  42008. v8si __builtin_ia32_cvttps2dq256 (v8sf)
  42009. v4df __builtin_ia32_divpd256 (v4df,v4df)
  42010. v8sf __builtin_ia32_divps256 (v8sf,v8sf)
  42011. v8sf __builtin_ia32_dpps256 (v8sf,v8sf,int)
  42012. v4df __builtin_ia32_haddpd256 (v4df,v4df)
  42013. v8sf __builtin_ia32_haddps256 (v8sf,v8sf)
  42014. v4df __builtin_ia32_hsubpd256 (v4df,v4df)
  42015. v8sf __builtin_ia32_hsubps256 (v8sf,v8sf)
  42016. v32qi __builtin_ia32_lddqu256 (pcchar)
  42017. v32qi __builtin_ia32_loaddqu256 (pcchar)
  42018. v4df __builtin_ia32_loadupd256 (pcdouble)
  42019. v8sf __builtin_ia32_loadups256 (pcfloat)
  42020. v2df __builtin_ia32_maskloadpd (pcv2df,v2df)
  42021. v4df __builtin_ia32_maskloadpd256 (pcv4df,v4df)
  42022. v4sf __builtin_ia32_maskloadps (pcv4sf,v4sf)
  42023. v8sf __builtin_ia32_maskloadps256 (pcv8sf,v8sf)
  42024. void __builtin_ia32_maskstorepd (pv2df,v2df,v2df)
  42025. void __builtin_ia32_maskstorepd256 (pv4df,v4df,v4df)
  42026. void __builtin_ia32_maskstoreps (pv4sf,v4sf,v4sf)
  42027. void __builtin_ia32_maskstoreps256 (pv8sf,v8sf,v8sf)
  42028. v4df __builtin_ia32_maxpd256 (v4df,v4df)
  42029. v8sf __builtin_ia32_maxps256 (v8sf,v8sf)
  42030. v4df __builtin_ia32_minpd256 (v4df,v4df)
  42031. v8sf __builtin_ia32_minps256 (v8sf,v8sf)
  42032. v4df __builtin_ia32_movddup256 (v4df)
  42033. int __builtin_ia32_movmskpd256 (v4df)
  42034. int __builtin_ia32_movmskps256 (v8sf)
  42035. v8sf __builtin_ia32_movshdup256 (v8sf)
  42036. v8sf __builtin_ia32_movsldup256 (v8sf)
  42037. v4df __builtin_ia32_mulpd256 (v4df,v4df)
  42038. v8sf __builtin_ia32_mulps256 (v8sf,v8sf)
  42039. v4df __builtin_ia32_orpd256 (v4df,v4df)
  42040. v8sf __builtin_ia32_orps256 (v8sf,v8sf)
  42041. v2df __builtin_ia32_pd_pd256 (v4df)
  42042. v4df __builtin_ia32_pd256_pd (v2df)
  42043. v4sf __builtin_ia32_ps_ps256 (v8sf)
  42044. v8sf __builtin_ia32_ps256_ps (v4sf)
  42045. int __builtin_ia32_ptestc256 (v4di,v4di,ptest)
  42046. int __builtin_ia32_ptestnzc256 (v4di,v4di,ptest)
  42047. int __builtin_ia32_ptestz256 (v4di,v4di,ptest)
  42048. v8sf __builtin_ia32_rcpps256 (v8sf)
  42049. v4df __builtin_ia32_roundpd256 (v4df,int)
  42050. v8sf __builtin_ia32_roundps256 (v8sf,int)
  42051. v8sf __builtin_ia32_rsqrtps_nr256 (v8sf)
  42052. v8sf __builtin_ia32_rsqrtps256 (v8sf)
  42053. v4df __builtin_ia32_shufpd256 (v4df,v4df,int)
  42054. v8sf __builtin_ia32_shufps256 (v8sf,v8sf,int)
  42055. v4si __builtin_ia32_si_si256 (v8si)
  42056. v8si __builtin_ia32_si256_si (v4si)
  42057. v4df __builtin_ia32_sqrtpd256 (v4df)
  42058. v8sf __builtin_ia32_sqrtps_nr256 (v8sf)
  42059. v8sf __builtin_ia32_sqrtps256 (v8sf)
  42060. void __builtin_ia32_storedqu256 (pchar,v32qi)
  42061. void __builtin_ia32_storeupd256 (pdouble,v4df)
  42062. void __builtin_ia32_storeups256 (pfloat,v8sf)
  42063. v4df __builtin_ia32_subpd256 (v4df,v4df)
  42064. v8sf __builtin_ia32_subps256 (v8sf,v8sf)
  42065. v4df __builtin_ia32_unpckhpd256 (v4df,v4df)
  42066. v8sf __builtin_ia32_unpckhps256 (v8sf,v8sf)
  42067. v4df __builtin_ia32_unpcklpd256 (v4df,v4df)
  42068. v8sf __builtin_ia32_unpcklps256 (v8sf,v8sf)
  42069. v4df __builtin_ia32_vbroadcastf128_pd256 (pcv2df)
  42070. v8sf __builtin_ia32_vbroadcastf128_ps256 (pcv4sf)
  42071. v4df __builtin_ia32_vbroadcastsd256 (pcdouble)
  42072. v4sf __builtin_ia32_vbroadcastss (pcfloat)
  42073. v8sf __builtin_ia32_vbroadcastss256 (pcfloat)
  42074. v2df __builtin_ia32_vextractf128_pd256 (v4df,int)
  42075. v4sf __builtin_ia32_vextractf128_ps256 (v8sf,int)
  42076. v4si __builtin_ia32_vextractf128_si256 (v8si,int)
  42077. v4df __builtin_ia32_vinsertf128_pd256 (v4df,v2df,int)
  42078. v8sf __builtin_ia32_vinsertf128_ps256 (v8sf,v4sf,int)
  42079. v8si __builtin_ia32_vinsertf128_si256 (v8si,v4si,int)
  42080. v4df __builtin_ia32_vperm2f128_pd256 (v4df,v4df,int)
  42081. v8sf __builtin_ia32_vperm2f128_ps256 (v8sf,v8sf,int)
  42082. v8si __builtin_ia32_vperm2f128_si256 (v8si,v8si,int)
  42083. v2df __builtin_ia32_vpermil2pd (v2df,v2df,v2di,int)
  42084. v4df __builtin_ia32_vpermil2pd256 (v4df,v4df,v4di,int)
  42085. v4sf __builtin_ia32_vpermil2ps (v4sf,v4sf,v4si,int)
  42086. v8sf __builtin_ia32_vpermil2ps256 (v8sf,v8sf,v8si,int)
  42087. v2df __builtin_ia32_vpermilpd (v2df,int)
  42088. v4df __builtin_ia32_vpermilpd256 (v4df,int)
  42089. v4sf __builtin_ia32_vpermilps (v4sf,int)
  42090. v8sf __builtin_ia32_vpermilps256 (v8sf,int)
  42091. v2df __builtin_ia32_vpermilvarpd (v2df,v2di)
  42092. v4df __builtin_ia32_vpermilvarpd256 (v4df,v4di)
  42093. v4sf __builtin_ia32_vpermilvarps (v4sf,v4si)
  42094. v8sf __builtin_ia32_vpermilvarps256 (v8sf,v8si)
  42095. int __builtin_ia32_vtestcpd (v2df,v2df,ptest)
  42096. int __builtin_ia32_vtestcpd256 (v4df,v4df,ptest)
  42097. int __builtin_ia32_vtestcps (v4sf,v4sf,ptest)
  42098. int __builtin_ia32_vtestcps256 (v8sf,v8sf,ptest)
  42099. int __builtin_ia32_vtestnzcpd (v2df,v2df,ptest)
  42100. int __builtin_ia32_vtestnzcpd256 (v4df,v4df,ptest)
  42101. int __builtin_ia32_vtestnzcps (v4sf,v4sf,ptest)
  42102. int __builtin_ia32_vtestnzcps256 (v8sf,v8sf,ptest)
  42103. int __builtin_ia32_vtestzpd (v2df,v2df,ptest)
  42104. int __builtin_ia32_vtestzpd256 (v4df,v4df,ptest)
  42105. int __builtin_ia32_vtestzps (v4sf,v4sf,ptest)
  42106. int __builtin_ia32_vtestzps256 (v8sf,v8sf,ptest)
  42107. void __builtin_ia32_vzeroall (void)
  42108. void __builtin_ia32_vzeroupper (void)
  42109. v4df __builtin_ia32_xorpd256 (v4df,v4df)
  42110. v8sf __builtin_ia32_xorps256 (v8sf,v8sf)
  42111. The following built-in functions are available when '-mavx2' is used.
  42112. All of them generate the machine instruction that is part of the name.
  42113. v32qi __builtin_ia32_mpsadbw256 (v32qi,v32qi,int)
  42114. v32qi __builtin_ia32_pabsb256 (v32qi)
  42115. v16hi __builtin_ia32_pabsw256 (v16hi)
  42116. v8si __builtin_ia32_pabsd256 (v8si)
  42117. v16hi __builtin_ia32_packssdw256 (v8si,v8si)
  42118. v32qi __builtin_ia32_packsswb256 (v16hi,v16hi)
  42119. v16hi __builtin_ia32_packusdw256 (v8si,v8si)
  42120. v32qi __builtin_ia32_packuswb256 (v16hi,v16hi)
  42121. v32qi __builtin_ia32_paddb256 (v32qi,v32qi)
  42122. v16hi __builtin_ia32_paddw256 (v16hi,v16hi)
  42123. v8si __builtin_ia32_paddd256 (v8si,v8si)
  42124. v4di __builtin_ia32_paddq256 (v4di,v4di)
  42125. v32qi __builtin_ia32_paddsb256 (v32qi,v32qi)
  42126. v16hi __builtin_ia32_paddsw256 (v16hi,v16hi)
  42127. v32qi __builtin_ia32_paddusb256 (v32qi,v32qi)
  42128. v16hi __builtin_ia32_paddusw256 (v16hi,v16hi)
  42129. v4di __builtin_ia32_palignr256 (v4di,v4di,int)
  42130. v4di __builtin_ia32_andsi256 (v4di,v4di)
  42131. v4di __builtin_ia32_andnotsi256 (v4di,v4di)
  42132. v32qi __builtin_ia32_pavgb256 (v32qi,v32qi)
  42133. v16hi __builtin_ia32_pavgw256 (v16hi,v16hi)
  42134. v32qi __builtin_ia32_pblendvb256 (v32qi,v32qi,v32qi)
  42135. v16hi __builtin_ia32_pblendw256 (v16hi,v16hi,int)
  42136. v32qi __builtin_ia32_pcmpeqb256 (v32qi,v32qi)
  42137. v16hi __builtin_ia32_pcmpeqw256 (v16hi,v16hi)
  42138. v8si __builtin_ia32_pcmpeqd256 (c8si,v8si)
  42139. v4di __builtin_ia32_pcmpeqq256 (v4di,v4di)
  42140. v32qi __builtin_ia32_pcmpgtb256 (v32qi,v32qi)
  42141. v16hi __builtin_ia32_pcmpgtw256 (16hi,v16hi)
  42142. v8si __builtin_ia32_pcmpgtd256 (v8si,v8si)
  42143. v4di __builtin_ia32_pcmpgtq256 (v4di,v4di)
  42144. v16hi __builtin_ia32_phaddw256 (v16hi,v16hi)
  42145. v8si __builtin_ia32_phaddd256 (v8si,v8si)
  42146. v16hi __builtin_ia32_phaddsw256 (v16hi,v16hi)
  42147. v16hi __builtin_ia32_phsubw256 (v16hi,v16hi)
  42148. v8si __builtin_ia32_phsubd256 (v8si,v8si)
  42149. v16hi __builtin_ia32_phsubsw256 (v16hi,v16hi)
  42150. v32qi __builtin_ia32_pmaddubsw256 (v32qi,v32qi)
  42151. v16hi __builtin_ia32_pmaddwd256 (v16hi,v16hi)
  42152. v32qi __builtin_ia32_pmaxsb256 (v32qi,v32qi)
  42153. v16hi __builtin_ia32_pmaxsw256 (v16hi,v16hi)
  42154. v8si __builtin_ia32_pmaxsd256 (v8si,v8si)
  42155. v32qi __builtin_ia32_pmaxub256 (v32qi,v32qi)
  42156. v16hi __builtin_ia32_pmaxuw256 (v16hi,v16hi)
  42157. v8si __builtin_ia32_pmaxud256 (v8si,v8si)
  42158. v32qi __builtin_ia32_pminsb256 (v32qi,v32qi)
  42159. v16hi __builtin_ia32_pminsw256 (v16hi,v16hi)
  42160. v8si __builtin_ia32_pminsd256 (v8si,v8si)
  42161. v32qi __builtin_ia32_pminub256 (v32qi,v32qi)
  42162. v16hi __builtin_ia32_pminuw256 (v16hi,v16hi)
  42163. v8si __builtin_ia32_pminud256 (v8si,v8si)
  42164. int __builtin_ia32_pmovmskb256 (v32qi)
  42165. v16hi __builtin_ia32_pmovsxbw256 (v16qi)
  42166. v8si __builtin_ia32_pmovsxbd256 (v16qi)
  42167. v4di __builtin_ia32_pmovsxbq256 (v16qi)
  42168. v8si __builtin_ia32_pmovsxwd256 (v8hi)
  42169. v4di __builtin_ia32_pmovsxwq256 (v8hi)
  42170. v4di __builtin_ia32_pmovsxdq256 (v4si)
  42171. v16hi __builtin_ia32_pmovzxbw256 (v16qi)
  42172. v8si __builtin_ia32_pmovzxbd256 (v16qi)
  42173. v4di __builtin_ia32_pmovzxbq256 (v16qi)
  42174. v8si __builtin_ia32_pmovzxwd256 (v8hi)
  42175. v4di __builtin_ia32_pmovzxwq256 (v8hi)
  42176. v4di __builtin_ia32_pmovzxdq256 (v4si)
  42177. v4di __builtin_ia32_pmuldq256 (v8si,v8si)
  42178. v16hi __builtin_ia32_pmulhrsw256 (v16hi, v16hi)
  42179. v16hi __builtin_ia32_pmulhuw256 (v16hi,v16hi)
  42180. v16hi __builtin_ia32_pmulhw256 (v16hi,v16hi)
  42181. v16hi __builtin_ia32_pmullw256 (v16hi,v16hi)
  42182. v8si __builtin_ia32_pmulld256 (v8si,v8si)
  42183. v4di __builtin_ia32_pmuludq256 (v8si,v8si)
  42184. v4di __builtin_ia32_por256 (v4di,v4di)
  42185. v16hi __builtin_ia32_psadbw256 (v32qi,v32qi)
  42186. v32qi __builtin_ia32_pshufb256 (v32qi,v32qi)
  42187. v8si __builtin_ia32_pshufd256 (v8si,int)
  42188. v16hi __builtin_ia32_pshufhw256 (v16hi,int)
  42189. v16hi __builtin_ia32_pshuflw256 (v16hi,int)
  42190. v32qi __builtin_ia32_psignb256 (v32qi,v32qi)
  42191. v16hi __builtin_ia32_psignw256 (v16hi,v16hi)
  42192. v8si __builtin_ia32_psignd256 (v8si,v8si)
  42193. v4di __builtin_ia32_pslldqi256 (v4di,int)
  42194. v16hi __builtin_ia32_psllwi256 (16hi,int)
  42195. v16hi __builtin_ia32_psllw256(v16hi,v8hi)
  42196. v8si __builtin_ia32_pslldi256 (v8si,int)
  42197. v8si __builtin_ia32_pslld256(v8si,v4si)
  42198. v4di __builtin_ia32_psllqi256 (v4di,int)
  42199. v4di __builtin_ia32_psllq256(v4di,v2di)
  42200. v16hi __builtin_ia32_psrawi256 (v16hi,int)
  42201. v16hi __builtin_ia32_psraw256 (v16hi,v8hi)
  42202. v8si __builtin_ia32_psradi256 (v8si,int)
  42203. v8si __builtin_ia32_psrad256 (v8si,v4si)
  42204. v4di __builtin_ia32_psrldqi256 (v4di, int)
  42205. v16hi __builtin_ia32_psrlwi256 (v16hi,int)
  42206. v16hi __builtin_ia32_psrlw256 (v16hi,v8hi)
  42207. v8si __builtin_ia32_psrldi256 (v8si,int)
  42208. v8si __builtin_ia32_psrld256 (v8si,v4si)
  42209. v4di __builtin_ia32_psrlqi256 (v4di,int)
  42210. v4di __builtin_ia32_psrlq256(v4di,v2di)
  42211. v32qi __builtin_ia32_psubb256 (v32qi,v32qi)
  42212. v32hi __builtin_ia32_psubw256 (v16hi,v16hi)
  42213. v8si __builtin_ia32_psubd256 (v8si,v8si)
  42214. v4di __builtin_ia32_psubq256 (v4di,v4di)
  42215. v32qi __builtin_ia32_psubsb256 (v32qi,v32qi)
  42216. v16hi __builtin_ia32_psubsw256 (v16hi,v16hi)
  42217. v32qi __builtin_ia32_psubusb256 (v32qi,v32qi)
  42218. v16hi __builtin_ia32_psubusw256 (v16hi,v16hi)
  42219. v32qi __builtin_ia32_punpckhbw256 (v32qi,v32qi)
  42220. v16hi __builtin_ia32_punpckhwd256 (v16hi,v16hi)
  42221. v8si __builtin_ia32_punpckhdq256 (v8si,v8si)
  42222. v4di __builtin_ia32_punpckhqdq256 (v4di,v4di)
  42223. v32qi __builtin_ia32_punpcklbw256 (v32qi,v32qi)
  42224. v16hi __builtin_ia32_punpcklwd256 (v16hi,v16hi)
  42225. v8si __builtin_ia32_punpckldq256 (v8si,v8si)
  42226. v4di __builtin_ia32_punpcklqdq256 (v4di,v4di)
  42227. v4di __builtin_ia32_pxor256 (v4di,v4di)
  42228. v4di __builtin_ia32_movntdqa256 (pv4di)
  42229. v4sf __builtin_ia32_vbroadcastss_ps (v4sf)
  42230. v8sf __builtin_ia32_vbroadcastss_ps256 (v4sf)
  42231. v4df __builtin_ia32_vbroadcastsd_pd256 (v2df)
  42232. v4di __builtin_ia32_vbroadcastsi256 (v2di)
  42233. v4si __builtin_ia32_pblendd128 (v4si,v4si)
  42234. v8si __builtin_ia32_pblendd256 (v8si,v8si)
  42235. v32qi __builtin_ia32_pbroadcastb256 (v16qi)
  42236. v16hi __builtin_ia32_pbroadcastw256 (v8hi)
  42237. v8si __builtin_ia32_pbroadcastd256 (v4si)
  42238. v4di __builtin_ia32_pbroadcastq256 (v2di)
  42239. v16qi __builtin_ia32_pbroadcastb128 (v16qi)
  42240. v8hi __builtin_ia32_pbroadcastw128 (v8hi)
  42241. v4si __builtin_ia32_pbroadcastd128 (v4si)
  42242. v2di __builtin_ia32_pbroadcastq128 (v2di)
  42243. v8si __builtin_ia32_permvarsi256 (v8si,v8si)
  42244. v4df __builtin_ia32_permdf256 (v4df,int)
  42245. v8sf __builtin_ia32_permvarsf256 (v8sf,v8sf)
  42246. v4di __builtin_ia32_permdi256 (v4di,int)
  42247. v4di __builtin_ia32_permti256 (v4di,v4di,int)
  42248. v4di __builtin_ia32_extract128i256 (v4di,int)
  42249. v4di __builtin_ia32_insert128i256 (v4di,v2di,int)
  42250. v8si __builtin_ia32_maskloadd256 (pcv8si,v8si)
  42251. v4di __builtin_ia32_maskloadq256 (pcv4di,v4di)
  42252. v4si __builtin_ia32_maskloadd (pcv4si,v4si)
  42253. v2di __builtin_ia32_maskloadq (pcv2di,v2di)
  42254. void __builtin_ia32_maskstored256 (pv8si,v8si,v8si)
  42255. void __builtin_ia32_maskstoreq256 (pv4di,v4di,v4di)
  42256. void __builtin_ia32_maskstored (pv4si,v4si,v4si)
  42257. void __builtin_ia32_maskstoreq (pv2di,v2di,v2di)
  42258. v8si __builtin_ia32_psllv8si (v8si,v8si)
  42259. v4si __builtin_ia32_psllv4si (v4si,v4si)
  42260. v4di __builtin_ia32_psllv4di (v4di,v4di)
  42261. v2di __builtin_ia32_psllv2di (v2di,v2di)
  42262. v8si __builtin_ia32_psrav8si (v8si,v8si)
  42263. v4si __builtin_ia32_psrav4si (v4si,v4si)
  42264. v8si __builtin_ia32_psrlv8si (v8si,v8si)
  42265. v4si __builtin_ia32_psrlv4si (v4si,v4si)
  42266. v4di __builtin_ia32_psrlv4di (v4di,v4di)
  42267. v2di __builtin_ia32_psrlv2di (v2di,v2di)
  42268. v2df __builtin_ia32_gathersiv2df (v2df, pcdouble,v4si,v2df,int)
  42269. v4df __builtin_ia32_gathersiv4df (v4df, pcdouble,v4si,v4df,int)
  42270. v2df __builtin_ia32_gatherdiv2df (v2df, pcdouble,v2di,v2df,int)
  42271. v4df __builtin_ia32_gatherdiv4df (v4df, pcdouble,v4di,v4df,int)
  42272. v4sf __builtin_ia32_gathersiv4sf (v4sf, pcfloat,v4si,v4sf,int)
  42273. v8sf __builtin_ia32_gathersiv8sf (v8sf, pcfloat,v8si,v8sf,int)
  42274. v4sf __builtin_ia32_gatherdiv4sf (v4sf, pcfloat,v2di,v4sf,int)
  42275. v4sf __builtin_ia32_gatherdiv4sf256 (v4sf, pcfloat,v4di,v4sf,int)
  42276. v2di __builtin_ia32_gathersiv2di (v2di, pcint64,v4si,v2di,int)
  42277. v4di __builtin_ia32_gathersiv4di (v4di, pcint64,v4si,v4di,int)
  42278. v2di __builtin_ia32_gatherdiv2di (v2di, pcint64,v2di,v2di,int)
  42279. v4di __builtin_ia32_gatherdiv4di (v4di, pcint64,v4di,v4di,int)
  42280. v4si __builtin_ia32_gathersiv4si (v4si, pcint,v4si,v4si,int)
  42281. v8si __builtin_ia32_gathersiv8si (v8si, pcint,v8si,v8si,int)
  42282. v4si __builtin_ia32_gatherdiv4si (v4si, pcint,v2di,v4si,int)
  42283. v4si __builtin_ia32_gatherdiv4si256 (v4si, pcint,v4di,v4si,int)
  42284. The following built-in functions are available when '-maes' is used.
  42285. All of them generate the machine instruction that is part of the name.
  42286. v2di __builtin_ia32_aesenc128 (v2di, v2di)
  42287. v2di __builtin_ia32_aesenclast128 (v2di, v2di)
  42288. v2di __builtin_ia32_aesdec128 (v2di, v2di)
  42289. v2di __builtin_ia32_aesdeclast128 (v2di, v2di)
  42290. v2di __builtin_ia32_aeskeygenassist128 (v2di, const int)
  42291. v2di __builtin_ia32_aesimc128 (v2di)
  42292. The following built-in function is available when '-mpclmul' is used.
  42293. 'v2di __builtin_ia32_pclmulqdq128 (v2di, v2di, const int)'
  42294. Generates the 'pclmulqdq' machine instruction.
  42295. The following built-in function is available when '-mfsgsbase' is used.
  42296. All of them generate the machine instruction that is part of the name.
  42297. unsigned int __builtin_ia32_rdfsbase32 (void)
  42298. unsigned long long __builtin_ia32_rdfsbase64 (void)
  42299. unsigned int __builtin_ia32_rdgsbase32 (void)
  42300. unsigned long long __builtin_ia32_rdgsbase64 (void)
  42301. void _writefsbase_u32 (unsigned int)
  42302. void _writefsbase_u64 (unsigned long long)
  42303. void _writegsbase_u32 (unsigned int)
  42304. void _writegsbase_u64 (unsigned long long)
  42305. The following built-in function is available when '-mrdrnd' is used.
  42306. All of them generate the machine instruction that is part of the name.
  42307. unsigned int __builtin_ia32_rdrand16_step (unsigned short *)
  42308. unsigned int __builtin_ia32_rdrand32_step (unsigned int *)
  42309. unsigned int __builtin_ia32_rdrand64_step (unsigned long long *)
  42310. The following built-in function is available when '-mptwrite' is used.
  42311. All of them generate the machine instruction that is part of the name.
  42312. void __builtin_ia32_ptwrite32 (unsigned)
  42313. void __builtin_ia32_ptwrite64 (unsigned long long)
  42314. The following built-in functions are available when '-msse4a' is used.
  42315. All of them generate the machine instruction that is part of the name.
  42316. void __builtin_ia32_movntsd (double *, v2df)
  42317. void __builtin_ia32_movntss (float *, v4sf)
  42318. v2di __builtin_ia32_extrq (v2di, v16qi)
  42319. v2di __builtin_ia32_extrqi (v2di, const unsigned int, const unsigned int)
  42320. v2di __builtin_ia32_insertq (v2di, v2di)
  42321. v2di __builtin_ia32_insertqi (v2di, v2di, const unsigned int, const unsigned int)
  42322. The following built-in functions are available when '-mxop' is used.
  42323. v2df __builtin_ia32_vfrczpd (v2df)
  42324. v4sf __builtin_ia32_vfrczps (v4sf)
  42325. v2df __builtin_ia32_vfrczsd (v2df)
  42326. v4sf __builtin_ia32_vfrczss (v4sf)
  42327. v4df __builtin_ia32_vfrczpd256 (v4df)
  42328. v8sf __builtin_ia32_vfrczps256 (v8sf)
  42329. v2di __builtin_ia32_vpcmov (v2di, v2di, v2di)
  42330. v2di __builtin_ia32_vpcmov_v2di (v2di, v2di, v2di)
  42331. v4si __builtin_ia32_vpcmov_v4si (v4si, v4si, v4si)
  42332. v8hi __builtin_ia32_vpcmov_v8hi (v8hi, v8hi, v8hi)
  42333. v16qi __builtin_ia32_vpcmov_v16qi (v16qi, v16qi, v16qi)
  42334. v2df __builtin_ia32_vpcmov_v2df (v2df, v2df, v2df)
  42335. v4sf __builtin_ia32_vpcmov_v4sf (v4sf, v4sf, v4sf)
  42336. v4di __builtin_ia32_vpcmov_v4di256 (v4di, v4di, v4di)
  42337. v8si __builtin_ia32_vpcmov_v8si256 (v8si, v8si, v8si)
  42338. v16hi __builtin_ia32_vpcmov_v16hi256 (v16hi, v16hi, v16hi)
  42339. v32qi __builtin_ia32_vpcmov_v32qi256 (v32qi, v32qi, v32qi)
  42340. v4df __builtin_ia32_vpcmov_v4df256 (v4df, v4df, v4df)
  42341. v8sf __builtin_ia32_vpcmov_v8sf256 (v8sf, v8sf, v8sf)
  42342. v16qi __builtin_ia32_vpcomeqb (v16qi, v16qi)
  42343. v8hi __builtin_ia32_vpcomeqw (v8hi, v8hi)
  42344. v4si __builtin_ia32_vpcomeqd (v4si, v4si)
  42345. v2di __builtin_ia32_vpcomeqq (v2di, v2di)
  42346. v16qi __builtin_ia32_vpcomequb (v16qi, v16qi)
  42347. v4si __builtin_ia32_vpcomequd (v4si, v4si)
  42348. v2di __builtin_ia32_vpcomequq (v2di, v2di)
  42349. v8hi __builtin_ia32_vpcomequw (v8hi, v8hi)
  42350. v8hi __builtin_ia32_vpcomeqw (v8hi, v8hi)
  42351. v16qi __builtin_ia32_vpcomfalseb (v16qi, v16qi)
  42352. v4si __builtin_ia32_vpcomfalsed (v4si, v4si)
  42353. v2di __builtin_ia32_vpcomfalseq (v2di, v2di)
  42354. v16qi __builtin_ia32_vpcomfalseub (v16qi, v16qi)
  42355. v4si __builtin_ia32_vpcomfalseud (v4si, v4si)
  42356. v2di __builtin_ia32_vpcomfalseuq (v2di, v2di)
  42357. v8hi __builtin_ia32_vpcomfalseuw (v8hi, v8hi)
  42358. v8hi __builtin_ia32_vpcomfalsew (v8hi, v8hi)
  42359. v16qi __builtin_ia32_vpcomgeb (v16qi, v16qi)
  42360. v4si __builtin_ia32_vpcomged (v4si, v4si)
  42361. v2di __builtin_ia32_vpcomgeq (v2di, v2di)
  42362. v16qi __builtin_ia32_vpcomgeub (v16qi, v16qi)
  42363. v4si __builtin_ia32_vpcomgeud (v4si, v4si)
  42364. v2di __builtin_ia32_vpcomgeuq (v2di, v2di)
  42365. v8hi __builtin_ia32_vpcomgeuw (v8hi, v8hi)
  42366. v8hi __builtin_ia32_vpcomgew (v8hi, v8hi)
  42367. v16qi __builtin_ia32_vpcomgtb (v16qi, v16qi)
  42368. v4si __builtin_ia32_vpcomgtd (v4si, v4si)
  42369. v2di __builtin_ia32_vpcomgtq (v2di, v2di)
  42370. v16qi __builtin_ia32_vpcomgtub (v16qi, v16qi)
  42371. v4si __builtin_ia32_vpcomgtud (v4si, v4si)
  42372. v2di __builtin_ia32_vpcomgtuq (v2di, v2di)
  42373. v8hi __builtin_ia32_vpcomgtuw (v8hi, v8hi)
  42374. v8hi __builtin_ia32_vpcomgtw (v8hi, v8hi)
  42375. v16qi __builtin_ia32_vpcomleb (v16qi, v16qi)
  42376. v4si __builtin_ia32_vpcomled (v4si, v4si)
  42377. v2di __builtin_ia32_vpcomleq (v2di, v2di)
  42378. v16qi __builtin_ia32_vpcomleub (v16qi, v16qi)
  42379. v4si __builtin_ia32_vpcomleud (v4si, v4si)
  42380. v2di __builtin_ia32_vpcomleuq (v2di, v2di)
  42381. v8hi __builtin_ia32_vpcomleuw (v8hi, v8hi)
  42382. v8hi __builtin_ia32_vpcomlew (v8hi, v8hi)
  42383. v16qi __builtin_ia32_vpcomltb (v16qi, v16qi)
  42384. v4si __builtin_ia32_vpcomltd (v4si, v4si)
  42385. v2di __builtin_ia32_vpcomltq (v2di, v2di)
  42386. v16qi __builtin_ia32_vpcomltub (v16qi, v16qi)
  42387. v4si __builtin_ia32_vpcomltud (v4si, v4si)
  42388. v2di __builtin_ia32_vpcomltuq (v2di, v2di)
  42389. v8hi __builtin_ia32_vpcomltuw (v8hi, v8hi)
  42390. v8hi __builtin_ia32_vpcomltw (v8hi, v8hi)
  42391. v16qi __builtin_ia32_vpcomneb (v16qi, v16qi)
  42392. v4si __builtin_ia32_vpcomned (v4si, v4si)
  42393. v2di __builtin_ia32_vpcomneq (v2di, v2di)
  42394. v16qi __builtin_ia32_vpcomneub (v16qi, v16qi)
  42395. v4si __builtin_ia32_vpcomneud (v4si, v4si)
  42396. v2di __builtin_ia32_vpcomneuq (v2di, v2di)
  42397. v8hi __builtin_ia32_vpcomneuw (v8hi, v8hi)
  42398. v8hi __builtin_ia32_vpcomnew (v8hi, v8hi)
  42399. v16qi __builtin_ia32_vpcomtrueb (v16qi, v16qi)
  42400. v4si __builtin_ia32_vpcomtrued (v4si, v4si)
  42401. v2di __builtin_ia32_vpcomtrueq (v2di, v2di)
  42402. v16qi __builtin_ia32_vpcomtrueub (v16qi, v16qi)
  42403. v4si __builtin_ia32_vpcomtrueud (v4si, v4si)
  42404. v2di __builtin_ia32_vpcomtrueuq (v2di, v2di)
  42405. v8hi __builtin_ia32_vpcomtrueuw (v8hi, v8hi)
  42406. v8hi __builtin_ia32_vpcomtruew (v8hi, v8hi)
  42407. v4si __builtin_ia32_vphaddbd (v16qi)
  42408. v2di __builtin_ia32_vphaddbq (v16qi)
  42409. v8hi __builtin_ia32_vphaddbw (v16qi)
  42410. v2di __builtin_ia32_vphadddq (v4si)
  42411. v4si __builtin_ia32_vphaddubd (v16qi)
  42412. v2di __builtin_ia32_vphaddubq (v16qi)
  42413. v8hi __builtin_ia32_vphaddubw (v16qi)
  42414. v2di __builtin_ia32_vphaddudq (v4si)
  42415. v4si __builtin_ia32_vphadduwd (v8hi)
  42416. v2di __builtin_ia32_vphadduwq (v8hi)
  42417. v4si __builtin_ia32_vphaddwd (v8hi)
  42418. v2di __builtin_ia32_vphaddwq (v8hi)
  42419. v8hi __builtin_ia32_vphsubbw (v16qi)
  42420. v2di __builtin_ia32_vphsubdq (v4si)
  42421. v4si __builtin_ia32_vphsubwd (v8hi)
  42422. v4si __builtin_ia32_vpmacsdd (v4si, v4si, v4si)
  42423. v2di __builtin_ia32_vpmacsdqh (v4si, v4si, v2di)
  42424. v2di __builtin_ia32_vpmacsdql (v4si, v4si, v2di)
  42425. v4si __builtin_ia32_vpmacssdd (v4si, v4si, v4si)
  42426. v2di __builtin_ia32_vpmacssdqh (v4si, v4si, v2di)
  42427. v2di __builtin_ia32_vpmacssdql (v4si, v4si, v2di)
  42428. v4si __builtin_ia32_vpmacsswd (v8hi, v8hi, v4si)
  42429. v8hi __builtin_ia32_vpmacssww (v8hi, v8hi, v8hi)
  42430. v4si __builtin_ia32_vpmacswd (v8hi, v8hi, v4si)
  42431. v8hi __builtin_ia32_vpmacsww (v8hi, v8hi, v8hi)
  42432. v4si __builtin_ia32_vpmadcsswd (v8hi, v8hi, v4si)
  42433. v4si __builtin_ia32_vpmadcswd (v8hi, v8hi, v4si)
  42434. v16qi __builtin_ia32_vpperm (v16qi, v16qi, v16qi)
  42435. v16qi __builtin_ia32_vprotb (v16qi, v16qi)
  42436. v4si __builtin_ia32_vprotd (v4si, v4si)
  42437. v2di __builtin_ia32_vprotq (v2di, v2di)
  42438. v8hi __builtin_ia32_vprotw (v8hi, v8hi)
  42439. v16qi __builtin_ia32_vpshab (v16qi, v16qi)
  42440. v4si __builtin_ia32_vpshad (v4si, v4si)
  42441. v2di __builtin_ia32_vpshaq (v2di, v2di)
  42442. v8hi __builtin_ia32_vpshaw (v8hi, v8hi)
  42443. v16qi __builtin_ia32_vpshlb (v16qi, v16qi)
  42444. v4si __builtin_ia32_vpshld (v4si, v4si)
  42445. v2di __builtin_ia32_vpshlq (v2di, v2di)
  42446. v8hi __builtin_ia32_vpshlw (v8hi, v8hi)
  42447. The following built-in functions are available when '-mfma4' is used.
  42448. All of them generate the machine instruction that is part of the name.
  42449. v2df __builtin_ia32_vfmaddpd (v2df, v2df, v2df)
  42450. v4sf __builtin_ia32_vfmaddps (v4sf, v4sf, v4sf)
  42451. v2df __builtin_ia32_vfmaddsd (v2df, v2df, v2df)
  42452. v4sf __builtin_ia32_vfmaddss (v4sf, v4sf, v4sf)
  42453. v2df __builtin_ia32_vfmsubpd (v2df, v2df, v2df)
  42454. v4sf __builtin_ia32_vfmsubps (v4sf, v4sf, v4sf)
  42455. v2df __builtin_ia32_vfmsubsd (v2df, v2df, v2df)
  42456. v4sf __builtin_ia32_vfmsubss (v4sf, v4sf, v4sf)
  42457. v2df __builtin_ia32_vfnmaddpd (v2df, v2df, v2df)
  42458. v4sf __builtin_ia32_vfnmaddps (v4sf, v4sf, v4sf)
  42459. v2df __builtin_ia32_vfnmaddsd (v2df, v2df, v2df)
  42460. v4sf __builtin_ia32_vfnmaddss (v4sf, v4sf, v4sf)
  42461. v2df __builtin_ia32_vfnmsubpd (v2df, v2df, v2df)
  42462. v4sf __builtin_ia32_vfnmsubps (v4sf, v4sf, v4sf)
  42463. v2df __builtin_ia32_vfnmsubsd (v2df, v2df, v2df)
  42464. v4sf __builtin_ia32_vfnmsubss (v4sf, v4sf, v4sf)
  42465. v2df __builtin_ia32_vfmaddsubpd (v2df, v2df, v2df)
  42466. v4sf __builtin_ia32_vfmaddsubps (v4sf, v4sf, v4sf)
  42467. v2df __builtin_ia32_vfmsubaddpd (v2df, v2df, v2df)
  42468. v4sf __builtin_ia32_vfmsubaddps (v4sf, v4sf, v4sf)
  42469. v4df __builtin_ia32_vfmaddpd256 (v4df, v4df, v4df)
  42470. v8sf __builtin_ia32_vfmaddps256 (v8sf, v8sf, v8sf)
  42471. v4df __builtin_ia32_vfmsubpd256 (v4df, v4df, v4df)
  42472. v8sf __builtin_ia32_vfmsubps256 (v8sf, v8sf, v8sf)
  42473. v4df __builtin_ia32_vfnmaddpd256 (v4df, v4df, v4df)
  42474. v8sf __builtin_ia32_vfnmaddps256 (v8sf, v8sf, v8sf)
  42475. v4df __builtin_ia32_vfnmsubpd256 (v4df, v4df, v4df)
  42476. v8sf __builtin_ia32_vfnmsubps256 (v8sf, v8sf, v8sf)
  42477. v4df __builtin_ia32_vfmaddsubpd256 (v4df, v4df, v4df)
  42478. v8sf __builtin_ia32_vfmaddsubps256 (v8sf, v8sf, v8sf)
  42479. v4df __builtin_ia32_vfmsubaddpd256 (v4df, v4df, v4df)
  42480. v8sf __builtin_ia32_vfmsubaddps256 (v8sf, v8sf, v8sf)
  42481. The following built-in functions are available when '-mlwp' is used.
  42482. void __builtin_ia32_llwpcb16 (void *);
  42483. void __builtin_ia32_llwpcb32 (void *);
  42484. void __builtin_ia32_llwpcb64 (void *);
  42485. void * __builtin_ia32_llwpcb16 (void);
  42486. void * __builtin_ia32_llwpcb32 (void);
  42487. void * __builtin_ia32_llwpcb64 (void);
  42488. void __builtin_ia32_lwpval16 (unsigned short, unsigned int, unsigned short)
  42489. void __builtin_ia32_lwpval32 (unsigned int, unsigned int, unsigned int)
  42490. void __builtin_ia32_lwpval64 (unsigned __int64, unsigned int, unsigned int)
  42491. unsigned char __builtin_ia32_lwpins16 (unsigned short, unsigned int, unsigned short)
  42492. unsigned char __builtin_ia32_lwpins32 (unsigned int, unsigned int, unsigned int)
  42493. unsigned char __builtin_ia32_lwpins64 (unsigned __int64, unsigned int, unsigned int)
  42494. The following built-in functions are available when '-mbmi' is used.
  42495. All of them generate the machine instruction that is part of the name.
  42496. unsigned int __builtin_ia32_bextr_u32(unsigned int, unsigned int);
  42497. unsigned long long __builtin_ia32_bextr_u64 (unsigned long long, unsigned long long);
  42498. The following built-in functions are available when '-mbmi2' is used.
  42499. All of them generate the machine instruction that is part of the name.
  42500. unsigned int _bzhi_u32 (unsigned int, unsigned int)
  42501. unsigned int _pdep_u32 (unsigned int, unsigned int)
  42502. unsigned int _pext_u32 (unsigned int, unsigned int)
  42503. unsigned long long _bzhi_u64 (unsigned long long, unsigned long long)
  42504. unsigned long long _pdep_u64 (unsigned long long, unsigned long long)
  42505. unsigned long long _pext_u64 (unsigned long long, unsigned long long)
  42506. The following built-in functions are available when '-mlzcnt' is used.
  42507. All of them generate the machine instruction that is part of the name.
  42508. unsigned short __builtin_ia32_lzcnt_u16(unsigned short);
  42509. unsigned int __builtin_ia32_lzcnt_u32(unsigned int);
  42510. unsigned long long __builtin_ia32_lzcnt_u64 (unsigned long long);
  42511. The following built-in functions are available when '-mfxsr' is used.
  42512. All of them generate the machine instruction that is part of the name.
  42513. void __builtin_ia32_fxsave (void *)
  42514. void __builtin_ia32_fxrstor (void *)
  42515. void __builtin_ia32_fxsave64 (void *)
  42516. void __builtin_ia32_fxrstor64 (void *)
  42517. The following built-in functions are available when '-mxsave' is used.
  42518. All of them generate the machine instruction that is part of the name.
  42519. void __builtin_ia32_xsave (void *, long long)
  42520. void __builtin_ia32_xrstor (void *, long long)
  42521. void __builtin_ia32_xsave64 (void *, long long)
  42522. void __builtin_ia32_xrstor64 (void *, long long)
  42523. The following built-in functions are available when '-mxsaveopt' is
  42524. used. All of them generate the machine instruction that is part of the
  42525. name.
  42526. void __builtin_ia32_xsaveopt (void *, long long)
  42527. void __builtin_ia32_xsaveopt64 (void *, long long)
  42528. The following built-in functions are available when '-mtbm' is used.
  42529. Both of them generate the immediate form of the bextr machine
  42530. instruction.
  42531. unsigned int __builtin_ia32_bextri_u32 (unsigned int,
  42532. const unsigned int);
  42533. unsigned long long __builtin_ia32_bextri_u64 (unsigned long long,
  42534. const unsigned long long);
  42535. The following built-in functions are available when '-m3dnow' is used.
  42536. All of them generate the machine instruction that is part of the name.
  42537. void __builtin_ia32_femms (void)
  42538. v8qi __builtin_ia32_pavgusb (v8qi, v8qi)
  42539. v2si __builtin_ia32_pf2id (v2sf)
  42540. v2sf __builtin_ia32_pfacc (v2sf, v2sf)
  42541. v2sf __builtin_ia32_pfadd (v2sf, v2sf)
  42542. v2si __builtin_ia32_pfcmpeq (v2sf, v2sf)
  42543. v2si __builtin_ia32_pfcmpge (v2sf, v2sf)
  42544. v2si __builtin_ia32_pfcmpgt (v2sf, v2sf)
  42545. v2sf __builtin_ia32_pfmax (v2sf, v2sf)
  42546. v2sf __builtin_ia32_pfmin (v2sf, v2sf)
  42547. v2sf __builtin_ia32_pfmul (v2sf, v2sf)
  42548. v2sf __builtin_ia32_pfrcp (v2sf)
  42549. v2sf __builtin_ia32_pfrcpit1 (v2sf, v2sf)
  42550. v2sf __builtin_ia32_pfrcpit2 (v2sf, v2sf)
  42551. v2sf __builtin_ia32_pfrsqrt (v2sf)
  42552. v2sf __builtin_ia32_pfsub (v2sf, v2sf)
  42553. v2sf __builtin_ia32_pfsubr (v2sf, v2sf)
  42554. v2sf __builtin_ia32_pi2fd (v2si)
  42555. v4hi __builtin_ia32_pmulhrw (v4hi, v4hi)
  42556. The following built-in functions are available when '-m3dnowa' is used.
  42557. All of them generate the machine instruction that is part of the name.
  42558. v2si __builtin_ia32_pf2iw (v2sf)
  42559. v2sf __builtin_ia32_pfnacc (v2sf, v2sf)
  42560. v2sf __builtin_ia32_pfpnacc (v2sf, v2sf)
  42561. v2sf __builtin_ia32_pi2fw (v2si)
  42562. v2sf __builtin_ia32_pswapdsf (v2sf)
  42563. v2si __builtin_ia32_pswapdsi (v2si)
  42564. The following built-in functions are available when '-mrtm' is used
  42565. They are used for restricted transactional memory. These are the
  42566. internal low level functions. Normally the functions in *note x86
  42567. transactional memory intrinsics:: should be used instead.
  42568. int __builtin_ia32_xbegin ()
  42569. void __builtin_ia32_xend ()
  42570. void __builtin_ia32_xabort (status)
  42571. int __builtin_ia32_xtest ()
  42572. The following built-in functions are available when '-mmwaitx' is used.
  42573. All of them generate the machine instruction that is part of the name.
  42574. void __builtin_ia32_monitorx (void *, unsigned int, unsigned int)
  42575. void __builtin_ia32_mwaitx (unsigned int, unsigned int, unsigned int)
  42576. The following built-in functions are available when '-mclzero' is used.
  42577. All of them generate the machine instruction that is part of the name.
  42578. void __builtin_i32_clzero (void *)
  42579. The following built-in functions are available when '-mpku' is used.
  42580. They generate reads and writes to PKRU.
  42581. void __builtin_ia32_wrpkru (unsigned int)
  42582. unsigned int __builtin_ia32_rdpkru ()
  42583. The following built-in functions are available when '-mcet' or
  42584. '-mshstk' option is used. They support shadow stack machine
  42585. instructions from Intel Control-flow Enforcement Technology (CET). Each
  42586. built-in function generates the machine instruction that is part of the
  42587. function's name. These are the internal low-level functions. Normally
  42588. the functions in *note x86 control-flow protection intrinsics:: should
  42589. be used instead.
  42590. unsigned int __builtin_ia32_rdsspd (void)
  42591. unsigned long long __builtin_ia32_rdsspq (void)
  42592. void __builtin_ia32_incsspd (unsigned int)
  42593. void __builtin_ia32_incsspq (unsigned long long)
  42594. void __builtin_ia32_saveprevssp(void);
  42595. void __builtin_ia32_rstorssp(void *);
  42596. void __builtin_ia32_wrssd(unsigned int, void *);
  42597. void __builtin_ia32_wrssq(unsigned long long, void *);
  42598. void __builtin_ia32_wrussd(unsigned int, void *);
  42599. void __builtin_ia32_wrussq(unsigned long long, void *);
  42600. void __builtin_ia32_setssbsy(void);
  42601. void __builtin_ia32_clrssbsy(void *);
  42602. 
  42603. File: gcc.info, Node: x86 transactional memory intrinsics, Next: x86 control-flow protection intrinsics, Prev: x86 Built-in Functions, Up: Target Builtins
  42604. 6.60.35 x86 Transactional Memory Intrinsics
  42605. -------------------------------------------
  42606. These hardware transactional memory intrinsics for x86 allow you to use
  42607. memory transactions with RTM (Restricted Transactional Memory). This
  42608. support is enabled with the '-mrtm' option. For using HLE (Hardware
  42609. Lock Elision) see *note x86 specific memory model extensions for
  42610. transactional memory:: instead.
  42611. A memory transaction commits all changes to memory in an atomic way, as
  42612. visible to other threads. If the transaction fails it is rolled back
  42613. and all side effects discarded.
  42614. Generally there is no guarantee that a memory transaction ever succeeds
  42615. and suitable fallback code always needs to be supplied.
  42616. -- RTM Function: unsigned _xbegin ()
  42617. Start a RTM (Restricted Transactional Memory) transaction. Returns
  42618. '_XBEGIN_STARTED' when the transaction started successfully (note
  42619. this is not 0, so the constant has to be explicitly tested).
  42620. If the transaction aborts, all side effects are undone and an abort
  42621. code encoded as a bit mask is returned. The following macros are
  42622. defined:
  42623. '_XABORT_EXPLICIT'
  42624. Transaction was explicitly aborted with '_xabort'. The
  42625. parameter passed to '_xabort' is available with
  42626. '_XABORT_CODE(status)'.
  42627. '_XABORT_RETRY'
  42628. Transaction retry is possible.
  42629. '_XABORT_CONFLICT'
  42630. Transaction abort due to a memory conflict with another
  42631. thread.
  42632. '_XABORT_CAPACITY'
  42633. Transaction abort due to the transaction using too much
  42634. memory.
  42635. '_XABORT_DEBUG'
  42636. Transaction abort due to a debug trap.
  42637. '_XABORT_NESTED'
  42638. Transaction abort in an inner nested transaction.
  42639. There is no guarantee any transaction ever succeeds, so there
  42640. always needs to be a valid fallback path.
  42641. -- RTM Function: void _xend ()
  42642. Commit the current transaction. When no transaction is active this
  42643. faults. All memory side effects of the transaction become visible
  42644. to other threads in an atomic manner.
  42645. -- RTM Function: int _xtest ()
  42646. Return a nonzero value if a transaction is currently active,
  42647. otherwise 0.
  42648. -- RTM Function: void _xabort (status)
  42649. Abort the current transaction. When no transaction is active this
  42650. is a no-op. The STATUS is an 8-bit constant; its value is encoded
  42651. in the return value from '_xbegin'.
  42652. Here is an example showing handling for '_XABORT_RETRY' and a fallback
  42653. path for other failures:
  42654. #include <immintrin.h>
  42655. int n_tries, max_tries;
  42656. unsigned status = _XABORT_EXPLICIT;
  42657. ...
  42658. for (n_tries = 0; n_tries < max_tries; n_tries++)
  42659. {
  42660. status = _xbegin ();
  42661. if (status == _XBEGIN_STARTED || !(status & _XABORT_RETRY))
  42662. break;
  42663. }
  42664. if (status == _XBEGIN_STARTED)
  42665. {
  42666. ... transaction code...
  42667. _xend ();
  42668. }
  42669. else
  42670. {
  42671. ... non-transactional fallback path...
  42672. }
  42673. Note that, in most cases, the transactional and non-transactional code
  42674. must synchronize together to ensure consistency.
  42675. 
  42676. File: gcc.info, Node: x86 control-flow protection intrinsics, Prev: x86 transactional memory intrinsics, Up: Target Builtins
  42677. 6.60.36 x86 Control-Flow Protection Intrinsics
  42678. ----------------------------------------------
  42679. -- CET Function: ret_type _get_ssp (void)
  42680. Get the current value of shadow stack pointer if shadow stack
  42681. support from Intel CET is enabled in the hardware or '0' otherwise.
  42682. The 'ret_type' is 'unsigned long long' for 64-bit targets and
  42683. 'unsigned int' for 32-bit targets.
  42684. -- CET Function: void _inc_ssp (unsigned int)
  42685. Increment the current shadow stack pointer by the size specified by
  42686. the function argument. The argument is masked to a byte value for
  42687. security reasons, so to increment by more than 255 bytes you must
  42688. call the function multiple times.
  42689. The shadow stack unwind code looks like:
  42690. #include <immintrin.h>
  42691. /* Unwind the shadow stack for EH. */
  42692. #define _Unwind_Frames_Extra(x) \
  42693. do \
  42694. { \
  42695. _Unwind_Word ssp = _get_ssp (); \
  42696. if (ssp != 0) \
  42697. { \
  42698. _Unwind_Word tmp = (x); \
  42699. while (tmp > 255) \
  42700. { \
  42701. _inc_ssp (tmp); \
  42702. tmp -= 255; \
  42703. } \
  42704. _inc_ssp (tmp); \
  42705. } \
  42706. } \
  42707. while (0)
  42708. This code runs unconditionally on all 64-bit processors. For 32-bit
  42709. processors the code runs on those that support multi-byte NOP
  42710. instructions.
  42711. 
  42712. File: gcc.info, Node: Target Format Checks, Next: Pragmas, Prev: Target Builtins, Up: C Extensions
  42713. 6.61 Format Checks Specific to Particular Target Machines
  42714. =========================================================
  42715. For some target machines, GCC supports additional options to the format
  42716. attribute (*note Declaring Attributes of Functions: Function
  42717. Attributes.).
  42718. * Menu:
  42719. * Solaris Format Checks::
  42720. * Darwin Format Checks::
  42721. 
  42722. File: gcc.info, Node: Solaris Format Checks, Next: Darwin Format Checks, Up: Target Format Checks
  42723. 6.61.1 Solaris Format Checks
  42724. ----------------------------
  42725. Solaris targets support the 'cmn_err' (or '__cmn_err__') format check.
  42726. 'cmn_err' accepts a subset of the standard 'printf' conversions, and the
  42727. two-argument '%b' conversion for displaying bit-fields. See the Solaris
  42728. man page for 'cmn_err' for more information.
  42729. 
  42730. File: gcc.info, Node: Darwin Format Checks, Prev: Solaris Format Checks, Up: Target Format Checks
  42731. 6.61.2 Darwin Format Checks
  42732. ---------------------------
  42733. In addition to the full set of format archetypes (attribute format style
  42734. arguments such as 'printf', 'scanf', 'strftime', and 'strfmon'), Darwin
  42735. targets also support the 'CFString' (or '__CFString__') archetype in the
  42736. 'format' attribute. Declarations with this archetype are parsed for
  42737. correct syntax and argument types. However, parsing of the format
  42738. string itself and validating arguments against it in calls to such
  42739. functions is currently not performed.
  42740. Additionally, 'CFStringRefs' (defined by the 'CoreFoundation' headers)
  42741. may also be used as format arguments. Note that the relevant headers
  42742. are only likely to be available on Darwin (OSX) installations. On such
  42743. installations, the XCode and system documentation provide descriptions
  42744. of 'CFString', 'CFStringRefs' and associated functions.
  42745. 
  42746. File: gcc.info, Node: Pragmas, Next: Unnamed Fields, Prev: Target Format Checks, Up: C Extensions
  42747. 6.62 Pragmas Accepted by GCC
  42748. ============================
  42749. GCC supports several types of pragmas, primarily in order to compile
  42750. code originally written for other compilers. Note that in general we do
  42751. not recommend the use of pragmas; *Note Function Attributes::, for
  42752. further explanation.
  42753. The GNU C preprocessor recognizes several pragmas in addition to the
  42754. compiler pragmas documented here. Refer to the CPP manual for more
  42755. information.
  42756. * Menu:
  42757. * AArch64 Pragmas::
  42758. * ARM Pragmas::
  42759. * M32C Pragmas::
  42760. * MeP Pragmas::
  42761. * PRU Pragmas::
  42762. * RS/6000 and PowerPC Pragmas::
  42763. * S/390 Pragmas::
  42764. * Darwin Pragmas::
  42765. * Solaris Pragmas::
  42766. * Symbol-Renaming Pragmas::
  42767. * Structure-Layout Pragmas::
  42768. * Weak Pragmas::
  42769. * Diagnostic Pragmas::
  42770. * Visibility Pragmas::
  42771. * Push/Pop Macro Pragmas::
  42772. * Function Specific Option Pragmas::
  42773. * Loop-Specific Pragmas::
  42774. 
  42775. File: gcc.info, Node: AArch64 Pragmas, Next: ARM Pragmas, Up: Pragmas
  42776. 6.62.1 AArch64 Pragmas
  42777. ----------------------
  42778. The pragmas defined by the AArch64 target correspond to the AArch64
  42779. target function attributes. They can be specified as below:
  42780. #pragma GCC target("string")
  42781. where 'STRING' can be any string accepted as an AArch64 target
  42782. attribute. *Note AArch64 Function Attributes::, for more details on the
  42783. permissible values of 'string'.
  42784. 
  42785. File: gcc.info, Node: ARM Pragmas, Next: M32C Pragmas, Prev: AArch64 Pragmas, Up: Pragmas
  42786. 6.62.2 ARM Pragmas
  42787. ------------------
  42788. The ARM target defines pragmas for controlling the default addition of
  42789. 'long_call' and 'short_call' attributes to functions. *Note Function
  42790. Attributes::, for information about the effects of these attributes.
  42791. 'long_calls'
  42792. Set all subsequent functions to have the 'long_call' attribute.
  42793. 'no_long_calls'
  42794. Set all subsequent functions to have the 'short_call' attribute.
  42795. 'long_calls_off'
  42796. Do not affect the 'long_call' or 'short_call' attributes of
  42797. subsequent functions.
  42798. 
  42799. File: gcc.info, Node: M32C Pragmas, Next: MeP Pragmas, Prev: ARM Pragmas, Up: Pragmas
  42800. 6.62.3 M32C Pragmas
  42801. -------------------
  42802. 'GCC memregs NUMBER'
  42803. Overrides the command-line option '-memregs=' for the current file.
  42804. Use with care! This pragma must be before any function in the
  42805. file, and mixing different memregs values in different objects may
  42806. make them incompatible. This pragma is useful when a
  42807. performance-critical function uses a memreg for temporary values,
  42808. as it may allow you to reduce the number of memregs used.
  42809. 'ADDRESS NAME ADDRESS'
  42810. For any declared symbols matching NAME, this does three things to
  42811. that symbol: it forces the symbol to be located at the given
  42812. address (a number), it forces the symbol to be volatile, and it
  42813. changes the symbol's scope to be static. This pragma exists for
  42814. compatibility with other compilers, but note that the common
  42815. '1234H' numeric syntax is not supported (use '0x1234' instead).
  42816. Example:
  42817. #pragma ADDRESS port3 0x103
  42818. char port3;
  42819. 
  42820. File: gcc.info, Node: MeP Pragmas, Next: PRU Pragmas, Prev: M32C Pragmas, Up: Pragmas
  42821. 6.62.4 MeP Pragmas
  42822. ------------------
  42823. 'custom io_volatile (on|off)'
  42824. Overrides the command-line option '-mio-volatile' for the current
  42825. file. Note that for compatibility with future GCC releases, this
  42826. option should only be used once before any 'io' variables in each
  42827. file.
  42828. 'GCC coprocessor available REGISTERS'
  42829. Specifies which coprocessor registers are available to the register
  42830. allocator. REGISTERS may be a single register, register range
  42831. separated by ellipses, or comma-separated list of those. Example:
  42832. #pragma GCC coprocessor available $c0...$c10, $c28
  42833. 'GCC coprocessor call_saved REGISTERS'
  42834. Specifies which coprocessor registers are to be saved and restored
  42835. by any function using them. REGISTERS may be a single register,
  42836. register range separated by ellipses, or comma-separated list of
  42837. those. Example:
  42838. #pragma GCC coprocessor call_saved $c4...$c6, $c31
  42839. 'GCC coprocessor subclass '(A|B|C|D)' = REGISTERS'
  42840. Creates and defines a register class. These register classes can
  42841. be used by inline 'asm' constructs. REGISTERS may be a single
  42842. register, register range separated by ellipses, or comma-separated
  42843. list of those. Example:
  42844. #pragma GCC coprocessor subclass 'B' = $c2, $c4, $c6
  42845. asm ("cpfoo %0" : "=B" (x));
  42846. 'GCC disinterrupt NAME , NAME ...'
  42847. For the named functions, the compiler adds code to disable
  42848. interrupts for the duration of those functions. If any functions
  42849. so named are not encountered in the source, a warning is emitted
  42850. that the pragma is not used. Examples:
  42851. #pragma disinterrupt foo
  42852. #pragma disinterrupt bar, grill
  42853. int foo () { ... }
  42854. 'GCC call NAME , NAME ...'
  42855. For the named functions, the compiler always uses a
  42856. register-indirect call model when calling the named functions.
  42857. Examples:
  42858. extern int foo ();
  42859. #pragma call foo
  42860. 
  42861. File: gcc.info, Node: PRU Pragmas, Next: RS/6000 and PowerPC Pragmas, Prev: MeP Pragmas, Up: Pragmas
  42862. 6.62.5 PRU Pragmas
  42863. ------------------
  42864. 'ctable_entry INDEX CONSTANT_ADDRESS'
  42865. Specifies that the PRU CTABLE entry given by INDEX has the value
  42866. CONSTANT_ADDRESS. This enables GCC to emit LBCO/SBCO instructions
  42867. when the load/store address is known and can be addressed with some
  42868. CTABLE entry. For example:
  42869. /* will compile to "sbco Rx, 2, 0x10, 4" */
  42870. #pragma ctable_entry 2 0x4802a000
  42871. *(unsigned int *)0x4802a010 = val;
  42872. 
  42873. File: gcc.info, Node: RS/6000 and PowerPC Pragmas, Next: S/390 Pragmas, Prev: PRU Pragmas, Up: Pragmas
  42874. 6.62.6 RS/6000 and PowerPC Pragmas
  42875. ----------------------------------
  42876. The RS/6000 and PowerPC targets define one pragma for controlling
  42877. whether or not the 'longcall' attribute is added to function
  42878. declarations by default. This pragma overrides the '-mlongcall' option,
  42879. but not the 'longcall' and 'shortcall' attributes. *Note RS/6000 and
  42880. PowerPC Options::, for more information about when long calls are and
  42881. are not necessary.
  42882. 'longcall (1)'
  42883. Apply the 'longcall' attribute to all subsequent function
  42884. declarations.
  42885. 'longcall (0)'
  42886. Do not apply the 'longcall' attribute to subsequent function
  42887. declarations.
  42888. 
  42889. File: gcc.info, Node: S/390 Pragmas, Next: Darwin Pragmas, Prev: RS/6000 and PowerPC Pragmas, Up: Pragmas
  42890. 6.62.7 S/390 Pragmas
  42891. --------------------
  42892. The pragmas defined by the S/390 target correspond to the S/390 target
  42893. function attributes and some the additional options:
  42894. 'zvector'
  42895. 'no-zvector'
  42896. Note that options of the pragma, unlike options of the target
  42897. attribute, do change the value of preprocessor macros like '__VEC__'.
  42898. They can be specified as below:
  42899. #pragma GCC target("string[,string]...")
  42900. #pragma GCC target("string"[,"string"]...)
  42901. 
  42902. File: gcc.info, Node: Darwin Pragmas, Next: Solaris Pragmas, Prev: S/390 Pragmas, Up: Pragmas
  42903. 6.62.8 Darwin Pragmas
  42904. ---------------------
  42905. The following pragmas are available for all architectures running the
  42906. Darwin operating system. These are useful for compatibility with other
  42907. Mac OS compilers.
  42908. 'mark TOKENS...'
  42909. This pragma is accepted, but has no effect.
  42910. 'options align=ALIGNMENT'
  42911. This pragma sets the alignment of fields in structures. The values
  42912. of ALIGNMENT may be 'mac68k', to emulate m68k alignment, or
  42913. 'power', to emulate PowerPC alignment. Uses of this pragma nest
  42914. properly; to restore the previous setting, use 'reset' for the
  42915. ALIGNMENT.
  42916. 'segment TOKENS...'
  42917. This pragma is accepted, but has no effect.
  42918. 'unused (VAR [, VAR]...)'
  42919. This pragma declares variables to be possibly unused. GCC does not
  42920. produce warnings for the listed variables. The effect is similar
  42921. to that of the 'unused' attribute, except that this pragma may
  42922. appear anywhere within the variables' scopes.
  42923. 
  42924. File: gcc.info, Node: Solaris Pragmas, Next: Symbol-Renaming Pragmas, Prev: Darwin Pragmas, Up: Pragmas
  42925. 6.62.9 Solaris Pragmas
  42926. ----------------------
  42927. The Solaris target supports '#pragma redefine_extname' (*note
  42928. Symbol-Renaming Pragmas::). It also supports additional '#pragma'
  42929. directives for compatibility with the system compiler.
  42930. 'align ALIGNMENT (VARIABLE [, VARIABLE]...)'
  42931. Increase the minimum alignment of each VARIABLE to ALIGNMENT. This
  42932. is the same as GCC's 'aligned' attribute *note Variable
  42933. Attributes::). Macro expansion occurs on the arguments to this
  42934. pragma when compiling C and Objective-C. It does not currently
  42935. occur when compiling C++, but this is a bug which may be fixed in a
  42936. future release.
  42937. 'fini (FUNCTION [, FUNCTION]...)'
  42938. This pragma causes each listed FUNCTION to be called after main, or
  42939. during shared module unloading, by adding a call to the '.fini'
  42940. section.
  42941. 'init (FUNCTION [, FUNCTION]...)'
  42942. This pragma causes each listed FUNCTION to be called during
  42943. initialization (before 'main') or during shared module loading, by
  42944. adding a call to the '.init' section.
  42945. 
  42946. File: gcc.info, Node: Symbol-Renaming Pragmas, Next: Structure-Layout Pragmas, Prev: Solaris Pragmas, Up: Pragmas
  42947. 6.62.10 Symbol-Renaming Pragmas
  42948. -------------------------------
  42949. GCC supports a '#pragma' directive that changes the name used in
  42950. assembly for a given declaration. While this pragma is supported on all
  42951. platforms, it is intended primarily to provide compatibility with the
  42952. Solaris system headers. This effect can also be achieved using the asm
  42953. labels extension (*note Asm Labels::).
  42954. 'redefine_extname OLDNAME NEWNAME'
  42955. This pragma gives the C function OLDNAME the assembly symbol
  42956. NEWNAME. The preprocessor macro '__PRAGMA_REDEFINE_EXTNAME' is
  42957. defined if this pragma is available (currently on all platforms).
  42958. This pragma and the 'asm' labels extension interact in a complicated
  42959. manner. Here are some corner cases you may want to be aware of:
  42960. 1. This pragma silently applies only to declarations with external
  42961. linkage. The 'asm' label feature does not have this restriction.
  42962. 2. In C++, this pragma silently applies only to declarations with "C"
  42963. linkage. Again, 'asm' labels do not have this restriction.
  42964. 3. If either of the ways of changing the assembly name of a
  42965. declaration are applied to a declaration whose assembly name has
  42966. already been determined (either by a previous use of one of these
  42967. features, or because the compiler needed the assembly name in order
  42968. to generate code), and the new name is different, a warning issues
  42969. and the name does not change.
  42970. 4. The OLDNAME used by '#pragma redefine_extname' is always the
  42971. C-language name.
  42972. 
  42973. File: gcc.info, Node: Structure-Layout Pragmas, Next: Weak Pragmas, Prev: Symbol-Renaming Pragmas, Up: Pragmas
  42974. 6.62.11 Structure-Layout Pragmas
  42975. --------------------------------
  42976. For compatibility with Microsoft Windows compilers, GCC supports a set
  42977. of '#pragma' directives that change the maximum alignment of members of
  42978. structures (other than zero-width bit-fields), unions, and classes
  42979. subsequently defined. The N value below always is required to be a
  42980. small power of two and specifies the new alignment in bytes.
  42981. 1. '#pragma pack(N)' simply sets the new alignment.
  42982. 2. '#pragma pack()' sets the alignment to the one that was in effect
  42983. when compilation started (see also command-line option
  42984. '-fpack-struct[=N]' *note Code Gen Options::).
  42985. 3. '#pragma pack(push[,N])' pushes the current alignment setting on an
  42986. internal stack and then optionally sets the new alignment.
  42987. 4. '#pragma pack(pop)' restores the alignment setting to the one saved
  42988. at the top of the internal stack (and removes that stack entry).
  42989. Note that '#pragma pack([N])' does not influence this internal
  42990. stack; thus it is possible to have '#pragma pack(push)' followed by
  42991. multiple '#pragma pack(N)' instances and finalized by a single
  42992. '#pragma pack(pop)'.
  42993. Some targets, e.g. x86 and PowerPC, support the '#pragma ms_struct'
  42994. directive which lays out structures and unions subsequently defined as
  42995. the documented '__attribute__ ((ms_struct))'.
  42996. 1. '#pragma ms_struct on' turns on the Microsoft layout.
  42997. 2. '#pragma ms_struct off' turns off the Microsoft layout.
  42998. 3. '#pragma ms_struct reset' goes back to the default layout.
  42999. Most targets also support the '#pragma scalar_storage_order' directive
  43000. which lays out structures and unions subsequently defined as the
  43001. documented '__attribute__ ((scalar_storage_order))'.
  43002. 1. '#pragma scalar_storage_order big-endian' sets the storage order of
  43003. the scalar fields to big-endian.
  43004. 2. '#pragma scalar_storage_order little-endian' sets the storage order
  43005. of the scalar fields to little-endian.
  43006. 3. '#pragma scalar_storage_order default' goes back to the endianness
  43007. that was in effect when compilation started (see also command-line
  43008. option '-fsso-struct=ENDIANNESS' *note C Dialect Options::).
  43009. 
  43010. File: gcc.info, Node: Weak Pragmas, Next: Diagnostic Pragmas, Prev: Structure-Layout Pragmas, Up: Pragmas
  43011. 6.62.12 Weak Pragmas
  43012. --------------------
  43013. For compatibility with SVR4, GCC supports a set of '#pragma' directives
  43014. for declaring symbols to be weak, and defining weak aliases.
  43015. '#pragma weak SYMBOL'
  43016. This pragma declares SYMBOL to be weak, as if the declaration had
  43017. the attribute of the same name. The pragma may appear before or
  43018. after the declaration of SYMBOL. It is not an error for SYMBOL to
  43019. never be defined at all.
  43020. '#pragma weak SYMBOL1 = SYMBOL2'
  43021. This pragma declares SYMBOL1 to be a weak alias of SYMBOL2. It is
  43022. an error if SYMBOL2 is not defined in the current translation unit.
  43023. 
  43024. File: gcc.info, Node: Diagnostic Pragmas, Next: Visibility Pragmas, Prev: Weak Pragmas, Up: Pragmas
  43025. 6.62.13 Diagnostic Pragmas
  43026. --------------------------
  43027. GCC allows the user to selectively enable or disable certain types of
  43028. diagnostics, and change the kind of the diagnostic. For example, a
  43029. project's policy might require that all sources compile with '-Werror'
  43030. but certain files might have exceptions allowing specific types of
  43031. warnings. Or, a project might selectively enable diagnostics and treat
  43032. them as errors depending on which preprocessor macros are defined.
  43033. '#pragma GCC diagnostic KIND OPTION'
  43034. Modifies the disposition of a diagnostic. Note that not all
  43035. diagnostics are modifiable; at the moment only warnings (normally
  43036. controlled by '-W...') can be controlled, and not all of them. Use
  43037. '-fdiagnostics-show-option' to determine which diagnostics are
  43038. controllable and which option controls them.
  43039. KIND is 'error' to treat this diagnostic as an error, 'warning' to
  43040. treat it like a warning (even if '-Werror' is in effect), or
  43041. 'ignored' if the diagnostic is to be ignored. OPTION is a double
  43042. quoted string that matches the command-line option.
  43043. #pragma GCC diagnostic warning "-Wformat"
  43044. #pragma GCC diagnostic error "-Wformat"
  43045. #pragma GCC diagnostic ignored "-Wformat"
  43046. Note that these pragmas override any command-line options. GCC
  43047. keeps track of the location of each pragma, and issues diagnostics
  43048. according to the state as of that point in the source file. Thus,
  43049. pragmas occurring after a line do not affect diagnostics caused by
  43050. that line.
  43051. '#pragma GCC diagnostic push'
  43052. '#pragma GCC diagnostic pop'
  43053. Causes GCC to remember the state of the diagnostics as of each
  43054. 'push', and restore to that point at each 'pop'. If a 'pop' has no
  43055. matching 'push', the command-line options are restored.
  43056. #pragma GCC diagnostic error "-Wuninitialized"
  43057. foo(a); /* error is given for this one */
  43058. #pragma GCC diagnostic push
  43059. #pragma GCC diagnostic ignored "-Wuninitialized"
  43060. foo(b); /* no diagnostic for this one */
  43061. #pragma GCC diagnostic pop
  43062. foo(c); /* error is given for this one */
  43063. #pragma GCC diagnostic pop
  43064. foo(d); /* depends on command-line options */
  43065. GCC also offers a simple mechanism for printing messages during
  43066. compilation.
  43067. '#pragma message STRING'
  43068. Prints STRING as a compiler message on compilation. The message is
  43069. informational only, and is neither a compilation warning nor an
  43070. error. Newlines can be included in the string by using the '\n'
  43071. escape sequence.
  43072. #pragma message "Compiling " __FILE__ "..."
  43073. STRING may be parenthesized, and is printed with location
  43074. information. For example,
  43075. #define DO_PRAGMA(x) _Pragma (#x)
  43076. #define TODO(x) DO_PRAGMA(message ("TODO - " #x))
  43077. TODO(Remember to fix this)
  43078. prints '/tmp/file.c:4: note: #pragma message: TODO - Remember to
  43079. fix this'.
  43080. '#pragma GCC error MESSAGE'
  43081. Generates an error message. This pragma _is_ considered to
  43082. indicate an error in the compilation, and it will be treated as
  43083. such.
  43084. Newlines can be included in the string by using the '\n' escape
  43085. sequence. They will be displayed as newlines even if the
  43086. '-fmessage-length' option is set to zero.
  43087. The error is only generated if the pragma is present in the code
  43088. after pre-processing has been completed. It does not matter
  43089. however if the code containing the pragma is unreachable:
  43090. #if 0
  43091. #pragma GCC error "this error is not seen"
  43092. #endif
  43093. void foo (void)
  43094. {
  43095. return;
  43096. #pragma GCC error "this error is seen"
  43097. }
  43098. '#pragma GCC warning MESSAGE'
  43099. This is just like 'pragma GCC error' except that a warning message
  43100. is issued instead of an error message. Unless '-Werror' is in
  43101. effect, in which case this pragma will generate an error as well.
  43102. 
  43103. File: gcc.info, Node: Visibility Pragmas, Next: Push/Pop Macro Pragmas, Prev: Diagnostic Pragmas, Up: Pragmas
  43104. 6.62.14 Visibility Pragmas
  43105. --------------------------
  43106. '#pragma GCC visibility push(VISIBILITY)'
  43107. '#pragma GCC visibility pop'
  43108. This pragma allows the user to set the visibility for multiple
  43109. declarations without having to give each a visibility attribute
  43110. (*note Function Attributes::).
  43111. In C++, '#pragma GCC visibility' affects only namespace-scope
  43112. declarations. Class members and template specializations are not
  43113. affected; if you want to override the visibility for a particular
  43114. member or instantiation, you must use an attribute.
  43115. 
  43116. File: gcc.info, Node: Push/Pop Macro Pragmas, Next: Function Specific Option Pragmas, Prev: Visibility Pragmas, Up: Pragmas
  43117. 6.62.15 Push/Pop Macro Pragmas
  43118. ------------------------------
  43119. For compatibility with Microsoft Windows compilers, GCC supports
  43120. '#pragma push_macro("MACRO_NAME")' and '#pragma
  43121. pop_macro("MACRO_NAME")'.
  43122. '#pragma push_macro("MACRO_NAME")'
  43123. This pragma saves the value of the macro named as MACRO_NAME to the
  43124. top of the stack for this macro.
  43125. '#pragma pop_macro("MACRO_NAME")'
  43126. This pragma sets the value of the macro named as MACRO_NAME to the
  43127. value on top of the stack for this macro. If the stack for
  43128. MACRO_NAME is empty, the value of the macro remains unchanged.
  43129. For example:
  43130. #define X 1
  43131. #pragma push_macro("X")
  43132. #undef X
  43133. #define X -1
  43134. #pragma pop_macro("X")
  43135. int x [X];
  43136. In this example, the definition of X as 1 is saved by '#pragma
  43137. push_macro' and restored by '#pragma pop_macro'.
  43138. 
  43139. File: gcc.info, Node: Function Specific Option Pragmas, Next: Loop-Specific Pragmas, Prev: Push/Pop Macro Pragmas, Up: Pragmas
  43140. 6.62.16 Function Specific Option Pragmas
  43141. ----------------------------------------
  43142. '#pragma GCC target (STRING, ...)'
  43143. This pragma allows you to set target-specific options for functions
  43144. defined later in the source file. One or more strings can be
  43145. specified. Each function that is defined after this point is
  43146. treated as if it had been declared with one 'target('STRING')'
  43147. attribute for each STRING argument. The parentheses around the
  43148. strings in the pragma are optional. *Note Function Attributes::,
  43149. for more information about the 'target' attribute and the attribute
  43150. syntax.
  43151. The '#pragma GCC target' pragma is presently implemented for x86,
  43152. ARM, AArch64, PowerPC, S/390, and Nios II targets only.
  43153. '#pragma GCC optimize (STRING, ...)'
  43154. This pragma allows you to set global optimization options for
  43155. functions defined later in the source file. One or more strings
  43156. can be specified. Each function that is defined after this point
  43157. is treated as if it had been declared with one 'optimize('STRING')'
  43158. attribute for each STRING argument. The parentheses around the
  43159. strings in the pragma are optional. *Note Function Attributes::,
  43160. for more information about the 'optimize' attribute and the
  43161. attribute syntax.
  43162. '#pragma GCC push_options'
  43163. '#pragma GCC pop_options'
  43164. These pragmas maintain a stack of the current target and
  43165. optimization options. It is intended for include files where you
  43166. temporarily want to switch to using a different '#pragma GCC
  43167. target' or '#pragma GCC optimize' and then to pop back to the
  43168. previous options.
  43169. '#pragma GCC reset_options'
  43170. This pragma clears the current '#pragma GCC target' and '#pragma
  43171. GCC optimize' to use the default switches as specified on the
  43172. command line.
  43173. 
  43174. File: gcc.info, Node: Loop-Specific Pragmas, Prev: Function Specific Option Pragmas, Up: Pragmas
  43175. 6.62.17 Loop-Specific Pragmas
  43176. -----------------------------
  43177. '#pragma GCC ivdep'
  43178. With this pragma, the programmer asserts that there are no
  43179. loop-carried dependencies which would prevent consecutive
  43180. iterations of the following loop from executing concurrently with
  43181. SIMD (single instruction multiple data) instructions.
  43182. For example, the compiler can only unconditionally vectorize the
  43183. following loop with the pragma:
  43184. void foo (int n, int *a, int *b, int *c)
  43185. {
  43186. int i, j;
  43187. #pragma GCC ivdep
  43188. for (i = 0; i < n; ++i)
  43189. a[i] = b[i] + c[i];
  43190. }
  43191. In this example, using the 'restrict' qualifier had the same
  43192. effect. In the following example, that would not be possible.
  43193. Assume k < -m or k >= m. Only with the pragma, the compiler knows
  43194. that it can unconditionally vectorize the following loop:
  43195. void ignore_vec_dep (int *a, int k, int c, int m)
  43196. {
  43197. #pragma GCC ivdep
  43198. for (int i = 0; i < m; i++)
  43199. a[i] = a[i + k] * c;
  43200. }
  43201. '#pragma GCC unroll N'
  43202. You can use this pragma to control how many times a loop should be
  43203. unrolled. It must be placed immediately before a 'for', 'while' or
  43204. 'do' loop or a '#pragma GCC ivdep', and applies only to the loop
  43205. that follows. N is an integer constant expression specifying the
  43206. unrolling factor. The values of 0 and 1 block any unrolling of the
  43207. loop.
  43208. 
  43209. File: gcc.info, Node: Unnamed Fields, Next: Thread-Local, Prev: Pragmas, Up: C Extensions
  43210. 6.63 Unnamed Structure and Union Fields
  43211. =======================================
  43212. As permitted by ISO C11 and for compatibility with other compilers, GCC
  43213. allows you to define a structure or union that contains, as fields,
  43214. structures and unions without names. For example:
  43215. struct {
  43216. int a;
  43217. union {
  43218. int b;
  43219. float c;
  43220. };
  43221. int d;
  43222. } foo;
  43223. In this example, you are able to access members of the unnamed union
  43224. with code like 'foo.b'. Note that only unnamed structs and unions are
  43225. allowed, you may not have, for example, an unnamed 'int'.
  43226. You must never create such structures that cause ambiguous field
  43227. definitions. For example, in this structure:
  43228. struct {
  43229. int a;
  43230. struct {
  43231. int a;
  43232. };
  43233. } foo;
  43234. it is ambiguous which 'a' is being referred to with 'foo.a'. The
  43235. compiler gives errors for such constructs.
  43236. Unless '-fms-extensions' is used, the unnamed field must be a structure
  43237. or union definition without a tag (for example, 'struct { int a; };').
  43238. If '-fms-extensions' is used, the field may also be a definition with a
  43239. tag such as 'struct foo { int a; };', a reference to a previously
  43240. defined structure or union such as 'struct foo;', or a reference to a
  43241. 'typedef' name for a previously defined structure or union type.
  43242. The option '-fplan9-extensions' enables '-fms-extensions' as well as
  43243. two other extensions. First, a pointer to a structure is automatically
  43244. converted to a pointer to an anonymous field for assignments and
  43245. function calls. For example:
  43246. struct s1 { int a; };
  43247. struct s2 { struct s1; };
  43248. extern void f1 (struct s1 *);
  43249. void f2 (struct s2 *p) { f1 (p); }
  43250. In the call to 'f1' inside 'f2', the pointer 'p' is converted into a
  43251. pointer to the anonymous field.
  43252. Second, when the type of an anonymous field is a 'typedef' for a
  43253. 'struct' or 'union', code may refer to the field using the name of the
  43254. 'typedef'.
  43255. typedef struct { int a; } s1;
  43256. struct s2 { s1; };
  43257. s1 f1 (struct s2 *p) { return p->s1; }
  43258. These usages are only permitted when they are not ambiguous.
  43259. 
  43260. File: gcc.info, Node: Thread-Local, Next: Binary constants, Prev: Unnamed Fields, Up: C Extensions
  43261. 6.64 Thread-Local Storage
  43262. =========================
  43263. Thread-local storage (TLS) is a mechanism by which variables are
  43264. allocated such that there is one instance of the variable per extant
  43265. thread. The runtime model GCC uses to implement this originates in the
  43266. IA-64 processor-specific ABI, but has since been migrated to other
  43267. processors as well. It requires significant support from the linker
  43268. ('ld'), dynamic linker ('ld.so'), and system libraries ('libc.so' and
  43269. 'libpthread.so'), so it is not available everywhere.
  43270. At the user level, the extension is visible with a new storage class
  43271. keyword: '__thread'. For example:
  43272. __thread int i;
  43273. extern __thread struct state s;
  43274. static __thread char *p;
  43275. The '__thread' specifier may be used alone, with the 'extern' or
  43276. 'static' specifiers, but with no other storage class specifier. When
  43277. used with 'extern' or 'static', '__thread' must appear immediately after
  43278. the other storage class specifier.
  43279. The '__thread' specifier may be applied to any global, file-scoped
  43280. static, function-scoped static, or static data member of a class. It
  43281. may not be applied to block-scoped automatic or non-static data member.
  43282. When the address-of operator is applied to a thread-local variable, it
  43283. is evaluated at run time and returns the address of the current thread's
  43284. instance of that variable. An address so obtained may be used by any
  43285. thread. When a thread terminates, any pointers to thread-local
  43286. variables in that thread become invalid.
  43287. No static initialization may refer to the address of a thread-local
  43288. variable.
  43289. In C++, if an initializer is present for a thread-local variable, it
  43290. must be a CONSTANT-EXPRESSION, as defined in 5.19.2 of the ANSI/ISO C++
  43291. standard.
  43292. See ELF Handling For Thread-Local Storage
  43293. (https://www.akkadia.org/drepper/tls.pdf) for a detailed explanation of
  43294. the four thread-local storage addressing models, and how the runtime is
  43295. expected to function.
  43296. * Menu:
  43297. * C99 Thread-Local Edits::
  43298. * C++98 Thread-Local Edits::
  43299. 
  43300. File: gcc.info, Node: C99 Thread-Local Edits, Next: C++98 Thread-Local Edits, Up: Thread-Local
  43301. 6.64.1 ISO/IEC 9899:1999 Edits for Thread-Local Storage
  43302. -------------------------------------------------------
  43303. The following are a set of changes to ISO/IEC 9899:1999 (aka C99) that
  43304. document the exact semantics of the language extension.
  43305. * '5.1.2 Execution environments'
  43306. Add new text after paragraph 1
  43307. Within either execution environment, a "thread" is a flow of
  43308. control within a program. It is implementation defined
  43309. whether or not there may be more than one thread associated
  43310. with a program. It is implementation defined how threads
  43311. beyond the first are created, the name and type of the
  43312. function called at thread startup, and how threads may be
  43313. terminated. However, objects with thread storage duration
  43314. shall be initialized before thread startup.
  43315. * '6.2.4 Storage durations of objects'
  43316. Add new text before paragraph 3
  43317. An object whose identifier is declared with the storage-class
  43318. specifier '__thread' has "thread storage duration". Its
  43319. lifetime is the entire execution of the thread, and its stored
  43320. value is initialized only once, prior to thread startup.
  43321. * '6.4.1 Keywords'
  43322. Add '__thread'.
  43323. * '6.7.1 Storage-class specifiers'
  43324. Add '__thread' to the list of storage class specifiers in paragraph
  43325. 1.
  43326. Change paragraph 2 to
  43327. With the exception of '__thread', at most one storage-class
  43328. specifier may be given [...]. The '__thread' specifier may be
  43329. used alone, or immediately following 'extern' or 'static'.
  43330. Add new text after paragraph 6
  43331. The declaration of an identifier for a variable that has block
  43332. scope that specifies '__thread' shall also specify either
  43333. 'extern' or 'static'.
  43334. The '__thread' specifier shall be used only with variables.
  43335. 
  43336. File: gcc.info, Node: C++98 Thread-Local Edits, Prev: C99 Thread-Local Edits, Up: Thread-Local
  43337. 6.64.2 ISO/IEC 14882:1998 Edits for Thread-Local Storage
  43338. --------------------------------------------------------
  43339. The following are a set of changes to ISO/IEC 14882:1998 (aka C++98)
  43340. that document the exact semantics of the language extension.
  43341. * [intro.execution]
  43342. New text after paragraph 4
  43343. A "thread" is a flow of control within the abstract machine.
  43344. It is implementation defined whether or not there may be more
  43345. than one thread.
  43346. New text after paragraph 7
  43347. It is unspecified whether additional action must be taken to
  43348. ensure when and whether side effects are visible to other
  43349. threads.
  43350. * [lex.key]
  43351. Add '__thread'.
  43352. * [basic.start.main]
  43353. Add after paragraph 5
  43354. The thread that begins execution at the 'main' function is
  43355. called the "main thread". It is implementation defined how
  43356. functions beginning threads other than the main thread are
  43357. designated or typed. A function so designated, as well as the
  43358. 'main' function, is called a "thread startup function". It is
  43359. implementation defined what happens if a thread startup
  43360. function returns. It is implementation defined what happens
  43361. to other threads when any thread calls 'exit'.
  43362. * [basic.start.init]
  43363. Add after paragraph 4
  43364. The storage for an object of thread storage duration shall be
  43365. statically initialized before the first statement of the
  43366. thread startup function. An object of thread storage duration
  43367. shall not require dynamic initialization.
  43368. * [basic.start.term]
  43369. Add after paragraph 3
  43370. The type of an object with thread storage duration shall not
  43371. have a non-trivial destructor, nor shall it be an array type
  43372. whose elements (directly or indirectly) have non-trivial
  43373. destructors.
  43374. * [basic.stc]
  43375. Add "thread storage duration" to the list in paragraph 1.
  43376. Change paragraph 2
  43377. Thread, static, and automatic storage durations are associated
  43378. with objects introduced by declarations [...].
  43379. Add '__thread' to the list of specifiers in paragraph 3.
  43380. * [basic.stc.thread]
  43381. New section before [basic.stc.static]
  43382. The keyword '__thread' applied to a non-local object gives the
  43383. object thread storage duration.
  43384. A local variable or class data member declared both 'static'
  43385. and '__thread' gives the variable or member thread storage
  43386. duration.
  43387. * [basic.stc.static]
  43388. Change paragraph 1
  43389. All objects that have neither thread storage duration, dynamic
  43390. storage duration nor are local [...].
  43391. * [dcl.stc]
  43392. Add '__thread' to the list in paragraph 1.
  43393. Change paragraph 1
  43394. With the exception of '__thread', at most one
  43395. STORAGE-CLASS-SPECIFIER shall appear in a given
  43396. DECL-SPECIFIER-SEQ. The '__thread' specifier may be used
  43397. alone, or immediately following the 'extern' or 'static'
  43398. specifiers. [...]
  43399. Add after paragraph 5
  43400. The '__thread' specifier can be applied only to the names of
  43401. objects and to anonymous unions.
  43402. * [class.mem]
  43403. Add after paragraph 6
  43404. Non-'static' members shall not be '__thread'.
  43405. 
  43406. File: gcc.info, Node: Binary constants, Prev: Thread-Local, Up: C Extensions
  43407. 6.65 Binary Constants using the '0b' Prefix
  43408. ===========================================
  43409. Integer constants can be written as binary constants, consisting of a
  43410. sequence of '0' and '1' digits, prefixed by '0b' or '0B'. This is
  43411. particularly useful in environments that operate a lot on the bit level
  43412. (like microcontrollers).
  43413. The following statements are identical:
  43414. i = 42;
  43415. i = 0x2a;
  43416. i = 052;
  43417. i = 0b101010;
  43418. The type of these constants follows the same rules as for octal or
  43419. hexadecimal integer constants, so suffixes like 'L' or 'UL' can be
  43420. applied.
  43421. 
  43422. File: gcc.info, Node: C++ Extensions, Next: Objective-C, Prev: C Extensions, Up: Top
  43423. 7 Extensions to the C++ Language
  43424. ********************************
  43425. The GNU compiler provides these extensions to the C++ language (and you
  43426. can also use most of the C language extensions in your C++ programs).
  43427. If you want to write code that checks whether these features are
  43428. available, you can test for the GNU compiler the same way as for C
  43429. programs: check for a predefined macro '__GNUC__'. You can also use
  43430. '__GNUG__' to test specifically for GNU C++ (*note Predefined Macros:
  43431. (cpp)Common Predefined Macros.).
  43432. * Menu:
  43433. * C++ Volatiles:: What constitutes an access to a volatile object.
  43434. * Restricted Pointers:: C99 restricted pointers and references.
  43435. * Vague Linkage:: Where G++ puts inlines, vtables and such.
  43436. * C++ Interface:: You can use a single C++ header file for both
  43437. declarations and definitions.
  43438. * Template Instantiation:: Methods for ensuring that exactly one copy of
  43439. each needed template instantiation is emitted.
  43440. * Bound member functions:: You can extract a function pointer to the
  43441. method denoted by a '->*' or '.*' expression.
  43442. * C++ Attributes:: Variable, function, and type attributes for C++ only.
  43443. * Function Multiversioning:: Declaring multiple function versions.
  43444. * Type Traits:: Compiler support for type traits.
  43445. * C++ Concepts:: Improved support for generic programming.
  43446. * Deprecated Features:: Things will disappear from G++.
  43447. * Backwards Compatibility:: Compatibilities with earlier definitions of C++.
  43448. 
  43449. File: gcc.info, Node: C++ Volatiles, Next: Restricted Pointers, Up: C++ Extensions
  43450. 7.1 When is a Volatile C++ Object Accessed?
  43451. ===========================================
  43452. The C++ standard differs from the C standard in its treatment of
  43453. volatile objects. It fails to specify what constitutes a volatile
  43454. access, except to say that C++ should behave in a similar manner to C
  43455. with respect to volatiles, where possible. However, the different
  43456. lvalueness of expressions between C and C++ complicate the behavior.
  43457. G++ behaves the same as GCC for volatile access, *Note Volatiles: C
  43458. Extensions, for a description of GCC's behavior.
  43459. The C and C++ language specifications differ when an object is accessed
  43460. in a void context:
  43461. volatile int *src = SOMEVALUE;
  43462. *src;
  43463. The C++ standard specifies that such expressions do not undergo lvalue
  43464. to rvalue conversion, and that the type of the dereferenced object may
  43465. be incomplete. The C++ standard does not specify explicitly that it is
  43466. lvalue to rvalue conversion that is responsible for causing an access.
  43467. There is reason to believe that it is, because otherwise certain simple
  43468. expressions become undefined. However, because it would surprise most
  43469. programmers, G++ treats dereferencing a pointer to volatile object of
  43470. complete type as GCC would do for an equivalent type in C. When the
  43471. object has incomplete type, G++ issues a warning; if you wish to force
  43472. an error, you must force a conversion to rvalue with, for instance, a
  43473. static cast.
  43474. When using a reference to volatile, G++ does not treat equivalent
  43475. expressions as accesses to volatiles, but instead issues a warning that
  43476. no volatile is accessed. The rationale for this is that otherwise it
  43477. becomes difficult to determine where volatile access occur, and not
  43478. possible to ignore the return value from functions returning volatile
  43479. references. Again, if you wish to force a read, cast the reference to
  43480. an rvalue.
  43481. G++ implements the same behavior as GCC does when assigning to a
  43482. volatile object--there is no reread of the assigned-to object, the
  43483. assigned rvalue is reused. Note that in C++ assignment expressions are
  43484. lvalues, and if used as an lvalue, the volatile object is referred to.
  43485. For instance, VREF refers to VOBJ, as expected, in the following
  43486. example:
  43487. volatile int vobj;
  43488. volatile int &vref = vobj = SOMETHING;
  43489. 
  43490. File: gcc.info, Node: Restricted Pointers, Next: Vague Linkage, Prev: C++ Volatiles, Up: C++ Extensions
  43491. 7.2 Restricting Pointer Aliasing
  43492. ================================
  43493. As with the C front end, G++ understands the C99 feature of restricted
  43494. pointers, specified with the '__restrict__', or '__restrict' type
  43495. qualifier. Because you cannot compile C++ by specifying the '-std=c99'
  43496. language flag, 'restrict' is not a keyword in C++.
  43497. In addition to allowing restricted pointers, you can specify restricted
  43498. references, which indicate that the reference is not aliased in the
  43499. local context.
  43500. void fn (int *__restrict__ rptr, int &__restrict__ rref)
  43501. {
  43502. /* ... */
  43503. }
  43504. In the body of 'fn', RPTR points to an unaliased integer and RREF refers
  43505. to a (different) unaliased integer.
  43506. You may also specify whether a member function's THIS pointer is
  43507. unaliased by using '__restrict__' as a member function qualifier.
  43508. void T::fn () __restrict__
  43509. {
  43510. /* ... */
  43511. }
  43512. Within the body of 'T::fn', THIS has the effective definition 'T
  43513. *__restrict__ const this'. Notice that the interpretation of a
  43514. '__restrict__' member function qualifier is different to that of 'const'
  43515. or 'volatile' qualifier, in that it is applied to the pointer rather
  43516. than the object. This is consistent with other compilers that implement
  43517. restricted pointers.
  43518. As with all outermost parameter qualifiers, '__restrict__' is ignored
  43519. in function definition matching. This means you only need to specify
  43520. '__restrict__' in a function definition, rather than in a function
  43521. prototype as well.
  43522. 
  43523. File: gcc.info, Node: Vague Linkage, Next: C++ Interface, Prev: Restricted Pointers, Up: C++ Extensions
  43524. 7.3 Vague Linkage
  43525. =================
  43526. There are several constructs in C++ that require space in the object
  43527. file but are not clearly tied to a single translation unit. We say that
  43528. these constructs have "vague linkage". Typically such constructs are
  43529. emitted wherever they are needed, though sometimes we can be more
  43530. clever.
  43531. Inline Functions
  43532. Inline functions are typically defined in a header file which can
  43533. be included in many different compilations. Hopefully they can
  43534. usually be inlined, but sometimes an out-of-line copy is necessary,
  43535. if the address of the function is taken or if inlining fails. In
  43536. general, we emit an out-of-line copy in all translation units where
  43537. one is needed. As an exception, we only emit inline virtual
  43538. functions with the vtable, since it always requires a copy.
  43539. Local static variables and string constants used in an inline
  43540. function are also considered to have vague linkage, since they must
  43541. be shared between all inlined and out-of-line instances of the
  43542. function.
  43543. VTables
  43544. C++ virtual functions are implemented in most compilers using a
  43545. lookup table, known as a vtable. The vtable contains pointers to
  43546. the virtual functions provided by a class, and each object of the
  43547. class contains a pointer to its vtable (or vtables, in some
  43548. multiple-inheritance situations). If the class declares any
  43549. non-inline, non-pure virtual functions, the first one is chosen as
  43550. the "key method" for the class, and the vtable is only emitted in
  43551. the translation unit where the key method is defined.
  43552. _Note:_ If the chosen key method is later defined as inline, the
  43553. vtable is still emitted in every translation unit that defines it.
  43554. Make sure that any inline virtuals are declared inline in the class
  43555. body, even if they are not defined there.
  43556. 'type_info' objects
  43557. C++ requires information about types to be written out in order to
  43558. implement 'dynamic_cast', 'typeid' and exception handling. For
  43559. polymorphic classes (classes with virtual functions), the
  43560. 'type_info' object is written out along with the vtable so that
  43561. 'dynamic_cast' can determine the dynamic type of a class object at
  43562. run time. For all other types, we write out the 'type_info' object
  43563. when it is used: when applying 'typeid' to an expression, throwing
  43564. an object, or referring to a type in a catch clause or exception
  43565. specification.
  43566. Template Instantiations
  43567. Most everything in this section also applies to template
  43568. instantiations, but there are other options as well. *Note Where's
  43569. the Template?: Template Instantiation.
  43570. When used with GNU ld version 2.8 or later on an ELF system such as
  43571. GNU/Linux or Solaris 2, or on Microsoft Windows, duplicate copies of
  43572. these constructs will be discarded at link time. This is known as
  43573. COMDAT support.
  43574. On targets that don't support COMDAT, but do support weak symbols, GCC
  43575. uses them. This way one copy overrides all the others, but the unused
  43576. copies still take up space in the executable.
  43577. For targets that do not support either COMDAT or weak symbols, most
  43578. entities with vague linkage are emitted as local symbols to avoid
  43579. duplicate definition errors from the linker. This does not happen for
  43580. local statics in inlines, however, as having multiple copies almost
  43581. certainly breaks things.
  43582. *Note Declarations and Definitions in One Header: C++ Interface, for
  43583. another way to control placement of these constructs.
  43584. 
  43585. File: gcc.info, Node: C++ Interface, Next: Template Instantiation, Prev: Vague Linkage, Up: C++ Extensions
  43586. 7.4 C++ Interface and Implementation Pragmas
  43587. ============================================
  43588. '#pragma interface' and '#pragma implementation' provide the user with a
  43589. way of explicitly directing the compiler to emit entities with vague
  43590. linkage (and debugging information) in a particular translation unit.
  43591. _Note:_ These '#pragma's have been superceded as of GCC 2.7.2 by COMDAT
  43592. support and the "key method" heuristic mentioned in *note Vague
  43593. Linkage::. Using them can actually cause your program to grow due to
  43594. unnecessary out-of-line copies of inline functions.
  43595. '#pragma interface'
  43596. '#pragma interface "SUBDIR/OBJECTS.h"'
  43597. Use this directive in _header files_ that define object classes, to
  43598. save space in most of the object files that use those classes.
  43599. Normally, local copies of certain information (backup copies of
  43600. inline member functions, debugging information, and the internal
  43601. tables that implement virtual functions) must be kept in each
  43602. object file that includes class definitions. You can use this
  43603. pragma to avoid such duplication. When a header file containing
  43604. '#pragma interface' is included in a compilation, this auxiliary
  43605. information is not generated (unless the main input source file
  43606. itself uses '#pragma implementation'). Instead, the object files
  43607. contain references to be resolved at link time.
  43608. The second form of this directive is useful for the case where you
  43609. have multiple headers with the same name in different directories.
  43610. If you use this form, you must specify the same string to '#pragma
  43611. implementation'.
  43612. '#pragma implementation'
  43613. '#pragma implementation "OBJECTS.h"'
  43614. Use this pragma in a _main input file_, when you want full output
  43615. from included header files to be generated (and made globally
  43616. visible). The included header file, in turn, should use '#pragma
  43617. interface'. Backup copies of inline member functions, debugging
  43618. information, and the internal tables used to implement virtual
  43619. functions are all generated in implementation files.
  43620. If you use '#pragma implementation' with no argument, it applies to
  43621. an include file with the same basename(1) as your source file. For
  43622. example, in 'allclass.cc', giving just '#pragma implementation' by
  43623. itself is equivalent to '#pragma implementation "allclass.h"'.
  43624. Use the string argument if you want a single implementation file to
  43625. include code from multiple header files. (You must also use
  43626. '#include' to include the header file; '#pragma implementation'
  43627. only specifies how to use the file--it doesn't actually include
  43628. it.)
  43629. There is no way to split up the contents of a single header file
  43630. into multiple implementation files.
  43631. '#pragma implementation' and '#pragma interface' also have an effect on
  43632. function inlining.
  43633. If you define a class in a header file marked with '#pragma interface',
  43634. the effect on an inline function defined in that class is similar to an
  43635. explicit 'extern' declaration--the compiler emits no code at all to
  43636. define an independent version of the function. Its definition is used
  43637. only for inlining with its callers.
  43638. Conversely, when you include the same header file in a main source file
  43639. that declares it as '#pragma implementation', the compiler emits code
  43640. for the function itself; this defines a version of the function that can
  43641. be found via pointers (or by callers compiled without inlining). If all
  43642. calls to the function can be inlined, you can avoid emitting the
  43643. function by compiling with '-fno-implement-inlines'. If any calls are
  43644. not inlined, you will get linker errors.
  43645. ---------- Footnotes ----------
  43646. (1) A file's "basename" is the name stripped of all leading path
  43647. information and of trailing suffixes, such as '.h' or '.C' or '.cc'.
  43648. 
  43649. File: gcc.info, Node: Template Instantiation, Next: Bound member functions, Prev: C++ Interface, Up: C++ Extensions
  43650. 7.5 Where's the Template?
  43651. =========================
  43652. C++ templates were the first language feature to require more
  43653. intelligence from the environment than was traditionally found on a UNIX
  43654. system. Somehow the compiler and linker have to make sure that each
  43655. template instance occurs exactly once in the executable if it is needed,
  43656. and not at all otherwise. There are two basic approaches to this
  43657. problem, which are referred to as the Borland model and the Cfront
  43658. model.
  43659. Borland model
  43660. Borland C++ solved the template instantiation problem by adding the
  43661. code equivalent of common blocks to their linker; the compiler
  43662. emits template instances in each translation unit that uses them,
  43663. and the linker collapses them together. The advantage of this
  43664. model is that the linker only has to consider the object files
  43665. themselves; there is no external complexity to worry about. The
  43666. disadvantage is that compilation time is increased because the
  43667. template code is being compiled repeatedly. Code written for this
  43668. model tends to include definitions of all templates in the header
  43669. file, since they must be seen to be instantiated.
  43670. Cfront model
  43671. The AT&T C++ translator, Cfront, solved the template instantiation
  43672. problem by creating the notion of a template repository, an
  43673. automatically maintained place where template instances are stored.
  43674. A more modern version of the repository works as follows: As
  43675. individual object files are built, the compiler places any template
  43676. definitions and instantiations encountered in the repository. At
  43677. link time, the link wrapper adds in the objects in the repository
  43678. and compiles any needed instances that were not previously emitted.
  43679. The advantages of this model are more optimal compilation speed and
  43680. the ability to use the system linker; to implement the Borland
  43681. model a compiler vendor also needs to replace the linker. The
  43682. disadvantages are vastly increased complexity, and thus potential
  43683. for error; for some code this can be just as transparent, but in
  43684. practice it can been very difficult to build multiple programs in
  43685. one directory and one program in multiple directories. Code
  43686. written for this model tends to separate definitions of non-inline
  43687. member templates into a separate file, which should be compiled
  43688. separately.
  43689. G++ implements the Borland model on targets where the linker supports
  43690. it, including ELF targets (such as GNU/Linux), Mac OS X and Microsoft
  43691. Windows. Otherwise G++ implements neither automatic model.
  43692. You have the following options for dealing with template
  43693. instantiations:
  43694. 1. Do nothing. Code written for the Borland model works fine, but
  43695. each translation unit contains instances of each of the templates
  43696. it uses. The duplicate instances will be discarded by the linker,
  43697. but in a large program, this can lead to an unacceptable amount of
  43698. code duplication in object files or shared libraries.
  43699. Duplicate instances of a template can be avoided by defining an
  43700. explicit instantiation in one object file, and preventing the
  43701. compiler from doing implicit instantiations in any other object
  43702. files by using an explicit instantiation declaration, using the
  43703. 'extern template' syntax:
  43704. extern template int max (int, int);
  43705. This syntax is defined in the C++ 2011 standard, but has been
  43706. supported by G++ and other compilers since well before 2011.
  43707. Explicit instantiations can be used for the largest or most
  43708. frequently duplicated instances, without having to know exactly
  43709. which other instances are used in the rest of the program. You can
  43710. scatter the explicit instantiations throughout your program,
  43711. perhaps putting them in the translation units where the instances
  43712. are used or the translation units that define the templates
  43713. themselves; you can put all of the explicit instantiations you need
  43714. into one big file; or you can create small files like
  43715. #include "Foo.h"
  43716. #include "Foo.cc"
  43717. template class Foo<int>;
  43718. template ostream& operator <<
  43719. (ostream&, const Foo<int>&);
  43720. for each of the instances you need, and create a template
  43721. instantiation library from those.
  43722. This is the simplest option, but also offers flexibility and
  43723. fine-grained control when necessary. It is also the most portable
  43724. alternative and programs using this approach will work with most
  43725. modern compilers.
  43726. 2. Compile your code with '-fno-implicit-templates' to disable the
  43727. implicit generation of template instances, and explicitly
  43728. instantiate all the ones you use. This approach requires more
  43729. knowledge of exactly which instances you need than do the others,
  43730. but it's less mysterious and allows greater control if you want to
  43731. ensure that only the intended instances are used.
  43732. If you are using Cfront-model code, you can probably get away with
  43733. not using '-fno-implicit-templates' when compiling files that don't
  43734. '#include' the member template definitions.
  43735. If you use one big file to do the instantiations, you may want to
  43736. compile it without '-fno-implicit-templates' so you get all of the
  43737. instances required by your explicit instantiations (but not by any
  43738. other files) without having to specify them as well.
  43739. In addition to forward declaration of explicit instantiations (with
  43740. 'extern'), G++ has extended the template instantiation syntax to
  43741. support instantiation of the compiler support data for a template
  43742. class (i.e. the vtable) without instantiating any of its members
  43743. (with 'inline'), and instantiation of only the static data members
  43744. of a template class, without the support data or member functions
  43745. (with 'static'):
  43746. inline template class Foo<int>;
  43747. static template class Foo<int>;
  43748. 
  43749. File: gcc.info, Node: Bound member functions, Next: C++ Attributes, Prev: Template Instantiation, Up: C++ Extensions
  43750. 7.6 Extracting the Function Pointer from a Bound Pointer to Member Function
  43751. ===========================================================================
  43752. In C++, pointer to member functions (PMFs) are implemented using a wide
  43753. pointer of sorts to handle all the possible call mechanisms; the PMF
  43754. needs to store information about how to adjust the 'this' pointer, and
  43755. if the function pointed to is virtual, where to find the vtable, and
  43756. where in the vtable to look for the member function. If you are using
  43757. PMFs in an inner loop, you should really reconsider that decision. If
  43758. that is not an option, you can extract the pointer to the function that
  43759. would be called for a given object/PMF pair and call it directly inside
  43760. the inner loop, to save a bit of time.
  43761. Note that you still pay the penalty for the call through a function
  43762. pointer; on most modern architectures, such a call defeats the branch
  43763. prediction features of the CPU. This is also true of normal virtual
  43764. function calls.
  43765. The syntax for this extension is
  43766. extern A a;
  43767. extern int (A::*fp)();
  43768. typedef int (*fptr)(A *);
  43769. fptr p = (fptr)(a.*fp);
  43770. For PMF constants (i.e. expressions of the form '&Klasse::Member'), no
  43771. object is needed to obtain the address of the function. They can be
  43772. converted to function pointers directly:
  43773. fptr p1 = (fptr)(&A::foo);
  43774. You must specify '-Wno-pmf-conversions' to use this extension.
  43775. 
  43776. File: gcc.info, Node: C++ Attributes, Next: Function Multiversioning, Prev: Bound member functions, Up: C++ Extensions
  43777. 7.7 C++-Specific Variable, Function, and Type Attributes
  43778. ========================================================
  43779. Some attributes only make sense for C++ programs.
  43780. 'abi_tag ("TAG", ...)'
  43781. The 'abi_tag' attribute can be applied to a function, variable, or
  43782. class declaration. It modifies the mangled name of the entity to
  43783. incorporate the tag name, in order to distinguish the function or
  43784. class from an earlier version with a different ABI; perhaps the
  43785. class has changed size, or the function has a different return type
  43786. that is not encoded in the mangled name.
  43787. The attribute can also be applied to an inline namespace, but does
  43788. not affect the mangled name of the namespace; in this case it is
  43789. only used for '-Wabi-tag' warnings and automatic tagging of
  43790. functions and variables. Tagging inline namespaces is generally
  43791. preferable to tagging individual declarations, but the latter is
  43792. sometimes necessary, such as when only certain members of a class
  43793. need to be tagged.
  43794. The argument can be a list of strings of arbitrary length. The
  43795. strings are sorted on output, so the order of the list is
  43796. unimportant.
  43797. A redeclaration of an entity must not add new ABI tags, since doing
  43798. so would change the mangled name.
  43799. The ABI tags apply to a name, so all instantiations and
  43800. specializations of a template have the same tags. The attribute
  43801. will be ignored if applied to an explicit specialization or
  43802. instantiation.
  43803. The '-Wabi-tag' flag enables a warning about a class which does not
  43804. have all the ABI tags used by its subobjects and virtual functions;
  43805. for users with code that needs to coexist with an earlier ABI,
  43806. using this option can help to find all affected types that need to
  43807. be tagged.
  43808. When a type involving an ABI tag is used as the type of a variable
  43809. or return type of a function where that tag is not already present
  43810. in the signature of the function, the tag is automatically applied
  43811. to the variable or function. '-Wabi-tag' also warns about this
  43812. situation; this warning can be avoided by explicitly tagging the
  43813. variable or function or moving it into a tagged inline namespace.
  43814. 'init_priority (PRIORITY)'
  43815. In Standard C++, objects defined at namespace scope are guaranteed
  43816. to be initialized in an order in strict accordance with that of
  43817. their definitions _in a given translation unit_. No guarantee is
  43818. made for initializations across translation units. However, GNU
  43819. C++ allows users to control the order of initialization of objects
  43820. defined at namespace scope with the 'init_priority' attribute by
  43821. specifying a relative PRIORITY, a constant integral expression
  43822. currently bounded between 101 and 65535 inclusive. Lower numbers
  43823. indicate a higher priority.
  43824. In the following example, 'A' would normally be created before 'B',
  43825. but the 'init_priority' attribute reverses that order:
  43826. Some_Class A __attribute__ ((init_priority (2000)));
  43827. Some_Class B __attribute__ ((init_priority (543)));
  43828. Note that the particular values of PRIORITY do not matter; only
  43829. their relative ordering.
  43830. 'warn_unused'
  43831. For C++ types with non-trivial constructors and/or destructors it
  43832. is impossible for the compiler to determine whether a variable of
  43833. this type is truly unused if it is not referenced. This type
  43834. attribute informs the compiler that variables of this type should
  43835. be warned about if they appear to be unused, just like variables of
  43836. fundamental types.
  43837. This attribute is appropriate for types which just represent a
  43838. value, such as 'std::string'; it is not appropriate for types which
  43839. control a resource, such as 'std::lock_guard'.
  43840. This attribute is also accepted in C, but it is unnecessary because
  43841. C does not have constructors or destructors.
  43842. 
  43843. File: gcc.info, Node: Function Multiversioning, Next: Type Traits, Prev: C++ Attributes, Up: C++ Extensions
  43844. 7.8 Function Multiversioning
  43845. ============================
  43846. With the GNU C++ front end, for x86 targets, you may specify multiple
  43847. versions of a function, where each function is specialized for a
  43848. specific target feature. At runtime, the appropriate version of the
  43849. function is automatically executed depending on the characteristics of
  43850. the execution platform. Here is an example.
  43851. __attribute__ ((target ("default")))
  43852. int foo ()
  43853. {
  43854. // The default version of foo.
  43855. return 0;
  43856. }
  43857. __attribute__ ((target ("sse4.2")))
  43858. int foo ()
  43859. {
  43860. // foo version for SSE4.2
  43861. return 1;
  43862. }
  43863. __attribute__ ((target ("arch=atom")))
  43864. int foo ()
  43865. {
  43866. // foo version for the Intel ATOM processor
  43867. return 2;
  43868. }
  43869. __attribute__ ((target ("arch=amdfam10")))
  43870. int foo ()
  43871. {
  43872. // foo version for the AMD Family 0x10 processors.
  43873. return 3;
  43874. }
  43875. int main ()
  43876. {
  43877. int (*p)() = &foo;
  43878. assert ((*p) () == foo ());
  43879. return 0;
  43880. }
  43881. In the above example, four versions of function foo are created. The
  43882. first version of foo with the target attribute "default" is the default
  43883. version. This version gets executed when no other target specific
  43884. version qualifies for execution on a particular platform. A new version
  43885. of foo is created by using the same function signature but with a
  43886. different target string. Function foo is called or a pointer to it is
  43887. taken just like a regular function. GCC takes care of doing the
  43888. dispatching to call the right version at runtime. Refer to the GCC wiki
  43889. on Function Multiversioning
  43890. (http://gcc.gnu.org/wiki/FunctionMultiVersioning) for more details.
  43891. 
  43892. File: gcc.info, Node: Type Traits, Next: C++ Concepts, Prev: Function Multiversioning, Up: C++ Extensions
  43893. 7.9 Type Traits
  43894. ===============
  43895. The C++ front end implements syntactic extensions that allow
  43896. compile-time determination of various characteristics of a type (or of a
  43897. pair of types).
  43898. '__has_nothrow_assign (type)'
  43899. If 'type' is 'const'-qualified or is a reference type then the
  43900. trait is 'false'. Otherwise if '__has_trivial_assign (type)' is
  43901. 'true' then the trait is 'true', else if 'type' is a cv-qualified
  43902. class or union type with copy assignment operators that are known
  43903. not to throw an exception then the trait is 'true', else it is
  43904. 'false'. Requires: 'type' shall be a complete type, (possibly
  43905. cv-qualified) 'void', or an array of unknown bound.
  43906. '__has_nothrow_copy (type)'
  43907. If '__has_trivial_copy (type)' is 'true' then the trait is 'true',
  43908. else if 'type' is a cv-qualified class or union type with copy
  43909. constructors that are known not to throw an exception then the
  43910. trait is 'true', else it is 'false'. Requires: 'type' shall be a
  43911. complete type, (possibly cv-qualified) 'void', or an array of
  43912. unknown bound.
  43913. '__has_nothrow_constructor (type)'
  43914. If '__has_trivial_constructor (type)' is 'true' then the trait is
  43915. 'true', else if 'type' is a cv class or union type (or array
  43916. thereof) with a default constructor that is known not to throw an
  43917. exception then the trait is 'true', else it is 'false'. Requires:
  43918. 'type' shall be a complete type, (possibly cv-qualified) 'void', or
  43919. an array of unknown bound.
  43920. '__has_trivial_assign (type)'
  43921. If 'type' is 'const'- qualified or is a reference type then the
  43922. trait is 'false'. Otherwise if '__is_pod (type)' is 'true' then
  43923. the trait is 'true', else if 'type' is a cv-qualified class or
  43924. union type with a trivial copy assignment ([class.copy]) then the
  43925. trait is 'true', else it is 'false'. Requires: 'type' shall be a
  43926. complete type, (possibly cv-qualified) 'void', or an array of
  43927. unknown bound.
  43928. '__has_trivial_copy (type)'
  43929. If '__is_pod (type)' is 'true' or 'type' is a reference type then
  43930. the trait is 'true', else if 'type' is a cv class or union type
  43931. with a trivial copy constructor ([class.copy]) then the trait is
  43932. 'true', else it is 'false'. Requires: 'type' shall be a complete
  43933. type, (possibly cv-qualified) 'void', or an array of unknown bound.
  43934. '__has_trivial_constructor (type)'
  43935. If '__is_pod (type)' is 'true' then the trait is 'true', else if
  43936. 'type' is a cv-qualified class or union type (or array thereof)
  43937. with a trivial default constructor ([class.ctor]) then the trait is
  43938. 'true', else it is 'false'. Requires: 'type' shall be a complete
  43939. type, (possibly cv-qualified) 'void', or an array of unknown bound.
  43940. '__has_trivial_destructor (type)'
  43941. If '__is_pod (type)' is 'true' or 'type' is a reference type then
  43942. the trait is 'true', else if 'type' is a cv class or union type (or
  43943. array thereof) with a trivial destructor ([class.dtor]) then the
  43944. trait is 'true', else it is 'false'. Requires: 'type' shall be a
  43945. complete type, (possibly cv-qualified) 'void', or an array of
  43946. unknown bound.
  43947. '__has_virtual_destructor (type)'
  43948. If 'type' is a class type with a virtual destructor ([class.dtor])
  43949. then the trait is 'true', else it is 'false'. Requires: 'type'
  43950. shall be a complete type, (possibly cv-qualified) 'void', or an
  43951. array of unknown bound.
  43952. '__is_abstract (type)'
  43953. If 'type' is an abstract class ([class.abstract]) then the trait is
  43954. 'true', else it is 'false'. Requires: 'type' shall be a complete
  43955. type, (possibly cv-qualified) 'void', or an array of unknown bound.
  43956. '__is_base_of (base_type, derived_type)'
  43957. If 'base_type' is a base class of 'derived_type' ([class.derived])
  43958. then the trait is 'true', otherwise it is 'false'. Top-level
  43959. cv-qualifications of 'base_type' and 'derived_type' are ignored.
  43960. For the purposes of this trait, a class type is considered is own
  43961. base. Requires: if '__is_class (base_type)' and '__is_class
  43962. (derived_type)' are 'true' and 'base_type' and 'derived_type' are
  43963. not the same type (disregarding cv-qualifiers), 'derived_type'
  43964. shall be a complete type. A diagnostic is produced if this
  43965. requirement is not met.
  43966. '__is_class (type)'
  43967. If 'type' is a cv-qualified class type, and not a union type
  43968. ([basic.compound]) the trait is 'true', else it is 'false'.
  43969. '__is_empty (type)'
  43970. If '__is_class (type)' is 'false' then the trait is 'false'.
  43971. Otherwise 'type' is considered empty if and only if: 'type' has no
  43972. non-static data members, or all non-static data members, if any,
  43973. are bit-fields of length 0, and 'type' has no virtual members, and
  43974. 'type' has no virtual base classes, and 'type' has no base classes
  43975. 'base_type' for which '__is_empty (base_type)' is 'false'.
  43976. Requires: 'type' shall be a complete type, (possibly cv-qualified)
  43977. 'void', or an array of unknown bound.
  43978. '__is_enum (type)'
  43979. If 'type' is a cv enumeration type ([basic.compound]) the trait is
  43980. 'true', else it is 'false'.
  43981. '__is_literal_type (type)'
  43982. If 'type' is a literal type ([basic.types]) the trait is 'true',
  43983. else it is 'false'. Requires: 'type' shall be a complete type,
  43984. (possibly cv-qualified) 'void', or an array of unknown bound.
  43985. '__is_pod (type)'
  43986. If 'type' is a cv POD type ([basic.types]) then the trait is
  43987. 'true', else it is 'false'. Requires: 'type' shall be a complete
  43988. type, (possibly cv-qualified) 'void', or an array of unknown bound.
  43989. '__is_polymorphic (type)'
  43990. If 'type' is a polymorphic class ([class.virtual]) then the trait
  43991. is 'true', else it is 'false'. Requires: 'type' shall be a
  43992. complete type, (possibly cv-qualified) 'void', or an array of
  43993. unknown bound.
  43994. '__is_standard_layout (type)'
  43995. If 'type' is a standard-layout type ([basic.types]) the trait is
  43996. 'true', else it is 'false'. Requires: 'type' shall be a complete
  43997. type, (possibly cv-qualified) 'void', or an array of unknown bound.
  43998. '__is_trivial (type)'
  43999. If 'type' is a trivial type ([basic.types]) the trait is 'true',
  44000. else it is 'false'. Requires: 'type' shall be a complete type,
  44001. (possibly cv-qualified) 'void', or an array of unknown bound.
  44002. '__is_union (type)'
  44003. If 'type' is a cv union type ([basic.compound]) the trait is
  44004. 'true', else it is 'false'.
  44005. '__underlying_type (type)'
  44006. The underlying type of 'type'. Requires: 'type' shall be an
  44007. enumeration type ([dcl.enum]).
  44008. '__integer_pack (length)'
  44009. When used as the pattern of a pack expansion within a template
  44010. definition, expands to a template argument pack containing integers
  44011. from '0' to 'length-1'. This is provided for efficient
  44012. implementation of 'std::make_integer_sequence'.
  44013. 
  44014. File: gcc.info, Node: C++ Concepts, Next: Deprecated Features, Prev: Type Traits, Up: C++ Extensions
  44015. 7.10 C++ Concepts
  44016. =================
  44017. C++ concepts provide much-improved support for generic programming. In
  44018. particular, they allow the specification of constraints on template
  44019. arguments. The constraints are used to extend the usual overloading and
  44020. partial specialization capabilities of the language, allowing generic
  44021. data structures and algorithms to be "refined" based on their properties
  44022. rather than their type names.
  44023. The following keywords are reserved for concepts.
  44024. 'assumes'
  44025. States an expression as an assumption, and if possible, verifies
  44026. that the assumption is valid. For example, 'assume(n > 0)'.
  44027. 'axiom'
  44028. Introduces an axiom definition. Axioms introduce requirements on
  44029. values.
  44030. 'forall'
  44031. Introduces a universally quantified object in an axiom. For
  44032. example, 'forall (int n) n + 0 == n').
  44033. 'concept'
  44034. Introduces a concept definition. Concepts are sets of syntactic
  44035. and semantic requirements on types and their values.
  44036. 'requires'
  44037. Introduces constraints on template arguments or requirements for a
  44038. member function of a class template.
  44039. The front end also exposes a number of internal mechanism that can be
  44040. used to simplify the writing of type traits. Note that some of these
  44041. traits are likely to be removed in the future.
  44042. '__is_same (type1, type2)'
  44043. A binary type trait: 'true' whenever the type arguments are the
  44044. same.
  44045. 
  44046. File: gcc.info, Node: Deprecated Features, Next: Backwards Compatibility, Prev: C++ Concepts, Up: C++ Extensions
  44047. 7.11 Deprecated Features
  44048. ========================
  44049. In the past, the GNU C++ compiler was extended to experiment with new
  44050. features, at a time when the C++ language was still evolving. Now that
  44051. the C++ standard is complete, some of those features are superseded by
  44052. superior alternatives. Using the old features might cause a warning in
  44053. some cases that the feature will be dropped in the future. In other
  44054. cases, the feature might be gone already.
  44055. G++ allows a virtual function returning 'void *' to be overridden by
  44056. one returning a different pointer type. This extension to the covariant
  44057. return type rules is now deprecated and will be removed from a future
  44058. version.
  44059. The use of default arguments in function pointers, function typedefs
  44060. and other places where they are not permitted by the standard is
  44061. deprecated and will be removed from a future version of G++.
  44062. G++ allows floating-point literals to appear in integral constant
  44063. expressions, e.g. ' enum E { e = int(2.2 * 3.7) } ' This extension is
  44064. deprecated and will be removed from a future version.
  44065. G++ allows static data members of const floating-point type to be
  44066. declared with an initializer in a class definition. The standard only
  44067. allows initializers for static members of const integral types and const
  44068. enumeration types so this extension has been deprecated and will be
  44069. removed from a future version.
  44070. G++ allows attributes to follow a parenthesized direct initializer,
  44071. e.g. ' int f (0) __attribute__ ((something)); ' This extension has been
  44072. ignored since G++ 3.3 and is deprecated.
  44073. G++ allows anonymous structs and unions to have members that are not
  44074. public non-static data members (i.e. fields). These extensions are
  44075. deprecated.
  44076. 
  44077. File: gcc.info, Node: Backwards Compatibility, Prev: Deprecated Features, Up: C++ Extensions
  44078. 7.12 Backwards Compatibility
  44079. ============================
  44080. Now that there is a definitive ISO standard C++, G++ has a specification
  44081. to adhere to. The C++ language evolved over time, and features that
  44082. used to be acceptable in previous drafts of the standard, such as the
  44083. ARM [Annotated C++ Reference Manual], are no longer accepted. In order
  44084. to allow compilation of C++ written to such drafts, G++ contains some
  44085. backwards compatibilities. _All such backwards compatibility features
  44086. are liable to disappear in future versions of G++._ They should be
  44087. considered deprecated. *Note Deprecated Features::.
  44088. 'Implicit C language'
  44089. Old C system header files did not contain an 'extern "C" {...}'
  44090. scope to set the language. On such systems, all system header
  44091. files are implicitly scoped inside a C language scope. Such
  44092. headers must correctly prototype function argument types, there is
  44093. no leeway for '()' to indicate an unspecified set of arguments.
  44094. 
  44095. File: gcc.info, Node: Objective-C, Next: Compatibility, Prev: C++ Extensions, Up: Top
  44096. 8 GNU Objective-C Features
  44097. **************************
  44098. This document is meant to describe some of the GNU Objective-C features.
  44099. It is not intended to teach you Objective-C. There are several resources
  44100. on the Internet that present the language.
  44101. * Menu:
  44102. * GNU Objective-C runtime API::
  44103. * Executing code before main::
  44104. * Type encoding::
  44105. * Garbage Collection::
  44106. * Constant string objects::
  44107. * compatibility_alias::
  44108. * Exceptions::
  44109. * Synchronization::
  44110. * Fast enumeration::
  44111. * Messaging with the GNU Objective-C runtime::
  44112. 
  44113. File: gcc.info, Node: GNU Objective-C runtime API, Next: Executing code before main, Up: Objective-C
  44114. 8.1 GNU Objective-C Runtime API
  44115. ===============================
  44116. This section is specific for the GNU Objective-C runtime. If you are
  44117. using a different runtime, you can skip it.
  44118. The GNU Objective-C runtime provides an API that allows you to interact
  44119. with the Objective-C runtime system, querying the live runtime
  44120. structures and even manipulating them. This allows you for example to
  44121. inspect and navigate classes, methods and protocols; to define new
  44122. classes or new methods, and even to modify existing classes or
  44123. protocols.
  44124. If you are using a "Foundation" library such as GNUstep-Base, this
  44125. library will provide you with a rich set of functionality to do most of
  44126. the inspection tasks, and you probably will only need direct access to
  44127. the GNU Objective-C runtime API to define new classes or methods.
  44128. * Menu:
  44129. * Modern GNU Objective-C runtime API::
  44130. * Traditional GNU Objective-C runtime API::
  44131. 
  44132. File: gcc.info, Node: Modern GNU Objective-C runtime API, Next: Traditional GNU Objective-C runtime API, Up: GNU Objective-C runtime API
  44133. 8.1.1 Modern GNU Objective-C Runtime API
  44134. ----------------------------------------
  44135. The GNU Objective-C runtime provides an API which is similar to the one
  44136. provided by the "Objective-C 2.0" Apple/NeXT Objective-C runtime. The
  44137. API is documented in the public header files of the GNU Objective-C
  44138. runtime:
  44139. * 'objc/objc.h': this is the basic Objective-C header file, defining
  44140. the basic Objective-C types such as 'id', 'Class' and 'BOOL'. You
  44141. have to include this header to do almost anything with Objective-C.
  44142. * 'objc/runtime.h': this header declares most of the public runtime
  44143. API functions allowing you to inspect and manipulate the
  44144. Objective-C runtime data structures. These functions are fairly
  44145. standardized across Objective-C runtimes and are almost identical
  44146. to the Apple/NeXT Objective-C runtime ones. It does not declare
  44147. functions in some specialized areas (constructing and forwarding
  44148. message invocations, threading) which are in the other headers
  44149. below. You have to include 'objc/objc.h' and 'objc/runtime.h' to
  44150. use any of the functions, such as 'class_getName()', declared in
  44151. 'objc/runtime.h'.
  44152. * 'objc/message.h': this header declares public functions used to
  44153. construct, deconstruct and forward message invocations. Because
  44154. messaging is done in quite a different way on different runtimes,
  44155. functions in this header are specific to the GNU Objective-C
  44156. runtime implementation.
  44157. * 'objc/objc-exception.h': this header declares some public functions
  44158. related to Objective-C exceptions. For example functions in this
  44159. header allow you to throw an Objective-C exception from plain C/C++
  44160. code.
  44161. * 'objc/objc-sync.h': this header declares some public functions
  44162. related to the Objective-C '@synchronized()' syntax, allowing you
  44163. to emulate an Objective-C '@synchronized()' block in plain C/C++
  44164. code.
  44165. * 'objc/thr.h': this header declares a public runtime API threading
  44166. layer that is only provided by the GNU Objective-C runtime. It
  44167. declares functions such as 'objc_mutex_lock()', which provide a
  44168. platform-independent set of threading functions.
  44169. The header files contain detailed documentation for each function in
  44170. the GNU Objective-C runtime API.
  44171. 
  44172. File: gcc.info, Node: Traditional GNU Objective-C runtime API, Prev: Modern GNU Objective-C runtime API, Up: GNU Objective-C runtime API
  44173. 8.1.2 Traditional GNU Objective-C Runtime API
  44174. ---------------------------------------------
  44175. The GNU Objective-C runtime used to provide a different API, which we
  44176. call the "traditional" GNU Objective-C runtime API. Functions belonging
  44177. to this API are easy to recognize because they use a different naming
  44178. convention, such as 'class_get_super_class()' (traditional API) instead
  44179. of 'class_getSuperclass()' (modern API). Software using this API
  44180. includes the file 'objc/objc-api.h' where it is declared.
  44181. Starting with GCC 4.7.0, the traditional GNU runtime API is no longer
  44182. available.
  44183. 
  44184. File: gcc.info, Node: Executing code before main, Next: Type encoding, Prev: GNU Objective-C runtime API, Up: Objective-C
  44185. 8.2 '+load': Executing Code before 'main'
  44186. =========================================
  44187. This section is specific for the GNU Objective-C runtime. If you are
  44188. using a different runtime, you can skip it.
  44189. The GNU Objective-C runtime provides a way that allows you to execute
  44190. code before the execution of the program enters the 'main' function.
  44191. The code is executed on a per-class and a per-category basis, through a
  44192. special class method '+load'.
  44193. This facility is very useful if you want to initialize global variables
  44194. which can be accessed by the program directly, without sending a message
  44195. to the class first. The usual way to initialize global variables, in
  44196. the '+initialize' method, might not be useful because '+initialize' is
  44197. only called when the first message is sent to a class object, which in
  44198. some cases could be too late.
  44199. Suppose for example you have a 'FileStream' class that declares
  44200. 'Stdin', 'Stdout' and 'Stderr' as global variables, like below:
  44201. FileStream *Stdin = nil;
  44202. FileStream *Stdout = nil;
  44203. FileStream *Stderr = nil;
  44204. @implementation FileStream
  44205. + (void)initialize
  44206. {
  44207. Stdin = [[FileStream new] initWithFd:0];
  44208. Stdout = [[FileStream new] initWithFd:1];
  44209. Stderr = [[FileStream new] initWithFd:2];
  44210. }
  44211. /* Other methods here */
  44212. @end
  44213. In this example, the initialization of 'Stdin', 'Stdout' and 'Stderr'
  44214. in '+initialize' occurs too late. The programmer can send a message to
  44215. one of these objects before the variables are actually initialized, thus
  44216. sending messages to the 'nil' object. The '+initialize' method which
  44217. actually initializes the global variables is not invoked until the first
  44218. message is sent to the class object. The solution would require these
  44219. variables to be initialized just before entering 'main'.
  44220. The correct solution of the above problem is to use the '+load' method
  44221. instead of '+initialize':
  44222. @implementation FileStream
  44223. + (void)load
  44224. {
  44225. Stdin = [[FileStream new] initWithFd:0];
  44226. Stdout = [[FileStream new] initWithFd:1];
  44227. Stderr = [[FileStream new] initWithFd:2];
  44228. }
  44229. /* Other methods here */
  44230. @end
  44231. The '+load' is a method that is not overridden by categories. If a
  44232. class and a category of it both implement '+load', both methods are
  44233. invoked. This allows some additional initializations to be performed in
  44234. a category.
  44235. This mechanism is not intended to be a replacement for '+initialize'.
  44236. You should be aware of its limitations when you decide to use it instead
  44237. of '+initialize'.
  44238. * Menu:
  44239. * What you can and what you cannot do in +load::
  44240. 
  44241. File: gcc.info, Node: What you can and what you cannot do in +load, Up: Executing code before main
  44242. 8.2.1 What You Can and Cannot Do in '+load'
  44243. -------------------------------------------
  44244. '+load' is to be used only as a last resort. Because it is executed
  44245. very early, most of the Objective-C runtime machinery will not be ready
  44246. when '+load' is executed; hence '+load' works best for executing C code
  44247. that is independent on the Objective-C runtime.
  44248. The '+load' implementation in the GNU runtime guarantees you the
  44249. following things:
  44250. * you can write whatever C code you like;
  44251. * you can allocate and send messages to objects whose class is
  44252. implemented in the same file;
  44253. * the '+load' implementation of all super classes of a class are
  44254. executed before the '+load' of that class is executed;
  44255. * the '+load' implementation of a class is executed before the
  44256. '+load' implementation of any category.
  44257. In particular, the following things, even if they can work in a
  44258. particular case, are not guaranteed:
  44259. * allocation of or sending messages to arbitrary objects;
  44260. * allocation of or sending messages to objects whose classes have a
  44261. category implemented in the same file;
  44262. * sending messages to Objective-C constant strings ('@"this is a
  44263. constant string"');
  44264. You should make no assumptions about receiving '+load' in sibling
  44265. classes when you write '+load' of a class. The order in which sibling
  44266. classes receive '+load' is not guaranteed.
  44267. The order in which '+load' and '+initialize' are called could be
  44268. problematic if this matters. If you don't allocate objects inside
  44269. '+load', it is guaranteed that '+load' is called before '+initialize'.
  44270. If you create an object inside '+load' the '+initialize' method of
  44271. object's class is invoked even if '+load' was not invoked. Note if you
  44272. explicitly call '+load' on a class, '+initialize' will be called first.
  44273. To avoid possible problems try to implement only one of these methods.
  44274. The '+load' method is also invoked when a bundle is dynamically loaded
  44275. into your running program. This happens automatically without any
  44276. intervening operation from you. When you write bundles and you need to
  44277. write '+load' you can safely create and send messages to objects whose
  44278. classes already exist in the running program. The same restrictions as
  44279. above apply to classes defined in bundle.
  44280. 
  44281. File: gcc.info, Node: Type encoding, Next: Garbage Collection, Prev: Executing code before main, Up: Objective-C
  44282. 8.3 Type Encoding
  44283. =================
  44284. This is an advanced section. Type encodings are used extensively by the
  44285. compiler and by the runtime, but you generally do not need to know about
  44286. them to use Objective-C.
  44287. The Objective-C compiler generates type encodings for all the types.
  44288. These type encodings are used at runtime to find out information about
  44289. selectors and methods and about objects and classes.
  44290. The types are encoded in the following way:
  44291. '_Bool' 'B'
  44292. 'char' 'c'
  44293. 'unsigned char' 'C'
  44294. 'short' 's'
  44295. 'unsigned short' 'S'
  44296. 'int' 'i'
  44297. 'unsigned int' 'I'
  44298. 'long' 'l'
  44299. 'unsigned long' 'L'
  44300. 'long long' 'q'
  44301. 'unsigned long 'Q'
  44302. long'
  44303. 'float' 'f'
  44304. 'double' 'd'
  44305. 'long double' 'D'
  44306. 'void' 'v'
  44307. 'id' '@'
  44308. 'Class' '#'
  44309. 'SEL' ':'
  44310. 'char*' '*'
  44311. 'enum' an 'enum' is encoded exactly as the integer type
  44312. that the compiler uses for it, which depends on the
  44313. enumeration values. Often the compiler users
  44314. 'unsigned int', which is then encoded as 'I'.
  44315. unknown type '?'
  44316. Complex types 'j' followed by the inner type. For example
  44317. '_Complex double' is encoded as "jd".
  44318. bit-fields 'b' followed by the starting position of the
  44319. bit-field, the type of the bit-field and the size of
  44320. the bit-field (the bit-fields encoding was changed
  44321. from the NeXT's compiler encoding, see below)
  44322. The encoding of bit-fields has changed to allow bit-fields to be
  44323. properly handled by the runtime functions that compute sizes and
  44324. alignments of types that contain bit-fields. The previous encoding
  44325. contained only the size of the bit-field. Using only this information
  44326. it is not possible to reliably compute the size occupied by the
  44327. bit-field. This is very important in the presence of the Boehm's
  44328. garbage collector because the objects are allocated using the typed
  44329. memory facility available in this collector. The typed memory
  44330. allocation requires information about where the pointers are located
  44331. inside the object.
  44332. The position in the bit-field is the position, counting in bits, of the
  44333. bit closest to the beginning of the structure.
  44334. The non-atomic types are encoded as follows:
  44335. pointers '^' followed by the pointed type.
  44336. arrays '[' followed by the number of elements in the array
  44337. followed by the type of the elements followed by ']'
  44338. structures '{' followed by the name of the structure (or '?' if the
  44339. structure is unnamed), the '=' sign, the type of the
  44340. members and by '}'
  44341. unions '(' followed by the name of the structure (or '?' if the
  44342. union is unnamed), the '=' sign, the type of the members
  44343. followed by ')'
  44344. vectors '![' followed by the vector_size (the number of bytes
  44345. composing the vector) followed by a comma, followed by
  44346. the alignment (in bytes) of the vector, followed by the
  44347. type of the elements followed by ']'
  44348. Here are some types and their encodings, as they are generated by the
  44349. compiler on an i386 machine:
  44350. Objective-C type Compiler encoding
  44351. int a[10]; '[10i]'
  44352. struct { '{?=i[3f]b128i3b131i2c}'
  44353. int i;
  44354. float f[3];
  44355. int a:3;
  44356. int b:2;
  44357. char c;
  44358. }
  44359. int a __attribute__ ((vector_size (16)));'![16,16i]' (alignment
  44360. depends on the machine)
  44361. In addition to the types the compiler also encodes the type specifiers.
  44362. The table below describes the encoding of the current Objective-C type
  44363. specifiers:
  44364. Specifier Encoding
  44365. 'const' 'r'
  44366. 'in' 'n'
  44367. 'inout' 'N'
  44368. 'out' 'o'
  44369. 'bycopy' 'O'
  44370. 'byref' 'R'
  44371. 'oneway' 'V'
  44372. The type specifiers are encoded just before the type. Unlike types
  44373. however, the type specifiers are only encoded when they appear in method
  44374. argument types.
  44375. Note how 'const' interacts with pointers:
  44376. Objective-C type Compiler encoding
  44377. const int 'ri'
  44378. const int* '^ri'
  44379. int *const 'r^i'
  44380. 'const int*' is a pointer to a 'const int', and so is encoded as '^ri'.
  44381. 'int* const', instead, is a 'const' pointer to an 'int', and so is
  44382. encoded as 'r^i'.
  44383. Finally, there is a complication when encoding 'const char *' versus
  44384. 'char * const'. Because 'char *' is encoded as '*' and not as '^c',
  44385. there is no way to express the fact that 'r' applies to the pointer or
  44386. to the pointee.
  44387. Hence, it is assumed as a convention that 'r*' means 'const char *'
  44388. (since it is what is most often meant), and there is no way to encode
  44389. 'char *const'. 'char *const' would simply be encoded as '*', and the
  44390. 'const' is lost.
  44391. * Menu:
  44392. * Legacy type encoding::
  44393. * @encode::
  44394. * Method signatures::
  44395. 
  44396. File: gcc.info, Node: Legacy type encoding, Next: @encode, Up: Type encoding
  44397. 8.3.1 Legacy Type Encoding
  44398. --------------------------
  44399. Unfortunately, historically GCC used to have a number of bugs in its
  44400. encoding code. The NeXT runtime expects GCC to emit type encodings in
  44401. this historical format (compatible with GCC-3.3), so when using the NeXT
  44402. runtime, GCC will introduce on purpose a number of incorrect encodings:
  44403. * the read-only qualifier of the pointee gets emitted before the '^'.
  44404. The read-only qualifier of the pointer itself gets ignored, unless
  44405. it is a typedef. Also, the 'r' is only emitted for the outermost
  44406. type.
  44407. * 32-bit longs are encoded as 'l' or 'L', but not always. For
  44408. typedefs, the compiler uses 'i' or 'I' instead if encoding a struct
  44409. field or a pointer.
  44410. * 'enum's are always encoded as 'i' (int) even if they are actually
  44411. unsigned or long.
  44412. In addition to that, the NeXT runtime uses a different encoding for
  44413. bitfields. It encodes them as 'b' followed by the size, without a bit
  44414. offset or the underlying field type.
  44415. 
  44416. File: gcc.info, Node: @encode, Next: Method signatures, Prev: Legacy type encoding, Up: Type encoding
  44417. 8.3.2 '@encode'
  44418. ---------------
  44419. GNU Objective-C supports the '@encode' syntax that allows you to create
  44420. a type encoding from a C/Objective-C type. For example, '@encode(int)'
  44421. is compiled by the compiler into '"i"'.
  44422. '@encode' does not support type qualifiers other than 'const'. For
  44423. example, '@encode(const char*)' is valid and is compiled into '"r*"',
  44424. while '@encode(bycopy char *)' is invalid and will cause a compilation
  44425. error.
  44426. 
  44427. File: gcc.info, Node: Method signatures, Prev: @encode, Up: Type encoding
  44428. 8.3.3 Method Signatures
  44429. -----------------------
  44430. This section documents the encoding of method types, which is rarely
  44431. needed to use Objective-C. You should skip it at a first reading; the
  44432. runtime provides functions that will work on methods and can walk
  44433. through the list of parameters and interpret them for you. These
  44434. functions are part of the public "API" and are the preferred way to
  44435. interact with method signatures from user code.
  44436. But if you need to debug a problem with method signatures and need to
  44437. know how they are implemented (i.e., the "ABI"), read on.
  44438. Methods have their "signature" encoded and made available to the
  44439. runtime. The "signature" encodes all the information required to
  44440. dynamically build invocations of the method at runtime: return type and
  44441. arguments.
  44442. The "signature" is a null-terminated string, composed of the following:
  44443. * The return type, including type qualifiers. For example, a method
  44444. returning 'int' would have 'i' here.
  44445. * The total size (in bytes) required to pass all the parameters.
  44446. This includes the two hidden parameters (the object 'self' and the
  44447. method selector '_cmd').
  44448. * Each argument, with the type encoding, followed by the offset (in
  44449. bytes) of the argument in the list of parameters.
  44450. For example, a method with no arguments and returning 'int' would have
  44451. the signature 'i8@0:4' if the size of a pointer is 4. The signature is
  44452. interpreted as follows: the 'i' is the return type (an 'int'), the '8'
  44453. is the total size of the parameters in bytes (two pointers each of size
  44454. 4), the '@0' is the first parameter (an object at byte offset '0') and
  44455. ':4' is the second parameter (a 'SEL' at byte offset '4').
  44456. You can easily find more examples by running the "strings" program on
  44457. an Objective-C object file compiled by GCC. You'll see a lot of strings
  44458. that look very much like 'i8@0:4'. They are signatures of Objective-C
  44459. methods.
  44460. 
  44461. File: gcc.info, Node: Garbage Collection, Next: Constant string objects, Prev: Type encoding, Up: Objective-C
  44462. 8.4 Garbage Collection
  44463. ======================
  44464. This section is specific for the GNU Objective-C runtime. If you are
  44465. using a different runtime, you can skip it.
  44466. Support for garbage collection with the GNU runtime has been added by
  44467. using a powerful conservative garbage collector, known as the
  44468. Boehm-Demers-Weiser conservative garbage collector.
  44469. To enable the support for it you have to configure the compiler using
  44470. an additional argument, '--enable-objc-gc'. This will build the
  44471. boehm-gc library, and build an additional runtime library which has
  44472. several enhancements to support the garbage collector. The new library
  44473. has a new name, 'libobjc_gc.a' to not conflict with the
  44474. non-garbage-collected library.
  44475. When the garbage collector is used, the objects are allocated using the
  44476. so-called typed memory allocation mechanism available in the
  44477. Boehm-Demers-Weiser collector. This mode requires precise information
  44478. on where pointers are located inside objects. This information is
  44479. computed once per class, immediately after the class has been
  44480. initialized.
  44481. There is a new runtime function 'class_ivar_set_gcinvisible()' which
  44482. can be used to declare a so-called "weak pointer" reference. Such a
  44483. pointer is basically hidden for the garbage collector; this can be
  44484. useful in certain situations, especially when you want to keep track of
  44485. the allocated objects, yet allow them to be collected. This kind of
  44486. pointers can only be members of objects, you cannot declare a global
  44487. pointer as a weak reference. Every type which is a pointer type can be
  44488. declared a weak pointer, including 'id', 'Class' and 'SEL'.
  44489. Here is an example of how to use this feature. Suppose you want to
  44490. implement a class whose instances hold a weak pointer reference; the
  44491. following class does this:
  44492. @interface WeakPointer : Object
  44493. {
  44494. const void* weakPointer;
  44495. }
  44496. - initWithPointer:(const void*)p;
  44497. - (const void*)weakPointer;
  44498. @end
  44499. @implementation WeakPointer
  44500. + (void)initialize
  44501. {
  44502. if (self == objc_lookUpClass ("WeakPointer"))
  44503. class_ivar_set_gcinvisible (self, "weakPointer", YES);
  44504. }
  44505. - initWithPointer:(const void*)p
  44506. {
  44507. weakPointer = p;
  44508. return self;
  44509. }
  44510. - (const void*)weakPointer
  44511. {
  44512. return weakPointer;
  44513. }
  44514. @end
  44515. Weak pointers are supported through a new type character specifier
  44516. represented by the '!' character. The 'class_ivar_set_gcinvisible()'
  44517. function adds or removes this specifier to the string type description
  44518. of the instance variable named as argument.
  44519. 
  44520. File: gcc.info, Node: Constant string objects, Next: compatibility_alias, Prev: Garbage Collection, Up: Objective-C
  44521. 8.5 Constant String Objects
  44522. ===========================
  44523. GNU Objective-C provides constant string objects that are generated
  44524. directly by the compiler. You declare a constant string object by
  44525. prefixing a C constant string with the character '@':
  44526. id myString = @"this is a constant string object";
  44527. The constant string objects are by default instances of the
  44528. 'NXConstantString' class which is provided by the GNU Objective-C
  44529. runtime. To get the definition of this class you must include the
  44530. 'objc/NXConstStr.h' header file.
  44531. User defined libraries may want to implement their own constant string
  44532. class. To be able to support them, the GNU Objective-C compiler
  44533. provides a new command line options
  44534. '-fconstant-string-class=CLASS-NAME'. The provided class should adhere
  44535. to a strict structure, the same as 'NXConstantString''s structure:
  44536. @interface MyConstantStringClass
  44537. {
  44538. Class isa;
  44539. char *c_string;
  44540. unsigned int len;
  44541. }
  44542. @end
  44543. 'NXConstantString' inherits from 'Object'; user class libraries may
  44544. choose to inherit the customized constant string class from a different
  44545. class than 'Object'. There is no requirement in the methods the
  44546. constant string class has to implement, but the final ivar layout of the
  44547. class must be the compatible with the given structure.
  44548. When the compiler creates the statically allocated constant string
  44549. object, the 'c_string' field will be filled by the compiler with the
  44550. string; the 'length' field will be filled by the compiler with the
  44551. string length; the 'isa' pointer will be filled with 'NULL' by the
  44552. compiler, and it will later be fixed up automatically at runtime by the
  44553. GNU Objective-C runtime library to point to the class which was set by
  44554. the '-fconstant-string-class' option when the object file is loaded (if
  44555. you wonder how it works behind the scenes, the name of the class to use,
  44556. and the list of static objects to fixup, are stored by the compiler in
  44557. the object file in a place where the GNU runtime library will find them
  44558. at runtime).
  44559. As a result, when a file is compiled with the '-fconstant-string-class'
  44560. option, all the constant string objects will be instances of the class
  44561. specified as argument to this option. It is possible to have multiple
  44562. compilation units referring to different constant string classes,
  44563. neither the compiler nor the linker impose any restrictions in doing
  44564. this.
  44565. 
  44566. File: gcc.info, Node: compatibility_alias, Next: Exceptions, Prev: Constant string objects, Up: Objective-C
  44567. 8.6 'compatibility_alias'
  44568. =========================
  44569. The keyword '@compatibility_alias' allows you to define a class name as
  44570. equivalent to another class name. For example:
  44571. @compatibility_alias WOApplication GSWApplication;
  44572. tells the compiler that each time it encounters 'WOApplication' as a
  44573. class name, it should replace it with 'GSWApplication' (that is,
  44574. 'WOApplication' is just an alias for 'GSWApplication').
  44575. There are some constraints on how this can be used--
  44576. * 'WOApplication' (the alias) must not be an existing class;
  44577. * 'GSWApplication' (the real class) must be an existing class.
  44578. 
  44579. File: gcc.info, Node: Exceptions, Next: Synchronization, Prev: compatibility_alias, Up: Objective-C
  44580. 8.7 Exceptions
  44581. ==============
  44582. GNU Objective-C provides exception support built into the language, as
  44583. in the following example:
  44584. @try {
  44585. ...
  44586. @throw expr;
  44587. ...
  44588. }
  44589. @catch (AnObjCClass *exc) {
  44590. ...
  44591. @throw expr;
  44592. ...
  44593. @throw;
  44594. ...
  44595. }
  44596. @catch (AnotherClass *exc) {
  44597. ...
  44598. }
  44599. @catch (id allOthers) {
  44600. ...
  44601. }
  44602. @finally {
  44603. ...
  44604. @throw expr;
  44605. ...
  44606. }
  44607. The '@throw' statement may appear anywhere in an Objective-C or
  44608. Objective-C++ program; when used inside of a '@catch' block, the
  44609. '@throw' may appear without an argument (as shown above), in which case
  44610. the object caught by the '@catch' will be rethrown.
  44611. Note that only (pointers to) Objective-C objects may be thrown and
  44612. caught using this scheme. When an object is thrown, it will be caught
  44613. by the nearest '@catch' clause capable of handling objects of that type,
  44614. analogously to how 'catch' blocks work in C++ and Java. A '@catch(id
  44615. ...)' clause (as shown above) may also be provided to catch any and all
  44616. Objective-C exceptions not caught by previous '@catch' clauses (if any).
  44617. The '@finally' clause, if present, will be executed upon exit from the
  44618. immediately preceding '@try ... @catch' section. This will happen
  44619. regardless of whether any exceptions are thrown, caught or rethrown
  44620. inside the '@try ... @catch' section, analogously to the behavior of the
  44621. 'finally' clause in Java.
  44622. There are several caveats to using the new exception mechanism:
  44623. * The '-fobjc-exceptions' command line option must be used when
  44624. compiling Objective-C files that use exceptions.
  44625. * With the GNU runtime, exceptions are always implemented as "native"
  44626. exceptions and it is recommended that the '-fexceptions' and
  44627. '-shared-libgcc' options are used when linking.
  44628. * With the NeXT runtime, although currently designed to be binary
  44629. compatible with 'NS_HANDLER'-style idioms provided by the
  44630. 'NSException' class, the new exceptions can only be used on Mac OS
  44631. X 10.3 (Panther) and later systems, due to additional functionality
  44632. needed in the NeXT Objective-C runtime.
  44633. * As mentioned above, the new exceptions do not support handling
  44634. types other than Objective-C objects. Furthermore, when used from
  44635. Objective-C++, the Objective-C exception model does not
  44636. interoperate with C++ exceptions at this time. This means you
  44637. cannot '@throw' an exception from Objective-C and 'catch' it in
  44638. C++, or vice versa (i.e., 'throw ... @catch').
  44639. 
  44640. File: gcc.info, Node: Synchronization, Next: Fast enumeration, Prev: Exceptions, Up: Objective-C
  44641. 8.8 Synchronization
  44642. ===================
  44643. GNU Objective-C provides support for synchronized blocks:
  44644. @synchronized (ObjCClass *guard) {
  44645. ...
  44646. }
  44647. Upon entering the '@synchronized' block, a thread of execution shall
  44648. first check whether a lock has been placed on the corresponding 'guard'
  44649. object by another thread. If it has, the current thread shall wait
  44650. until the other thread relinquishes its lock. Once 'guard' becomes
  44651. available, the current thread will place its own lock on it, execute the
  44652. code contained in the '@synchronized' block, and finally relinquish the
  44653. lock (thereby making 'guard' available to other threads).
  44654. Unlike Java, Objective-C does not allow for entire methods to be marked
  44655. '@synchronized'. Note that throwing exceptions out of '@synchronized'
  44656. blocks is allowed, and will cause the guarding object to be unlocked
  44657. properly.
  44658. Because of the interactions between synchronization and exception
  44659. handling, you can only use '@synchronized' when compiling with
  44660. exceptions enabled, that is with the command line option
  44661. '-fobjc-exceptions'.
  44662. 
  44663. File: gcc.info, Node: Fast enumeration, Next: Messaging with the GNU Objective-C runtime, Prev: Synchronization, Up: Objective-C
  44664. 8.9 Fast Enumeration
  44665. ====================
  44666. * Menu:
  44667. * Using fast enumeration::
  44668. * c99-like fast enumeration syntax::
  44669. * Fast enumeration details::
  44670. * Fast enumeration protocol::
  44671. 
  44672. File: gcc.info, Node: Using fast enumeration, Next: c99-like fast enumeration syntax, Up: Fast enumeration
  44673. 8.9.1 Using Fast Enumeration
  44674. ----------------------------
  44675. GNU Objective-C provides support for the fast enumeration syntax:
  44676. id array = ...;
  44677. id object;
  44678. for (object in array)
  44679. {
  44680. /* Do something with 'object' */
  44681. }
  44682. 'array' needs to be an Objective-C object (usually a collection object,
  44683. for example an array, a dictionary or a set) which implements the "Fast
  44684. Enumeration Protocol" (see below). If you are using a Foundation
  44685. library such as GNUstep Base or Apple Cocoa Foundation, all collection
  44686. objects in the library implement this protocol and can be used in this
  44687. way.
  44688. The code above would iterate over all objects in 'array'. For each of
  44689. them, it assigns it to 'object', then executes the 'Do something with
  44690. 'object'' statements.
  44691. Here is a fully worked-out example using a Foundation library (which
  44692. provides the implementation of 'NSArray', 'NSString' and 'NSLog'):
  44693. NSArray *array = [NSArray arrayWithObjects: @"1", @"2", @"3", nil];
  44694. NSString *object;
  44695. for (object in array)
  44696. NSLog (@"Iterating over %@", object);
  44697. 
  44698. File: gcc.info, Node: c99-like fast enumeration syntax, Next: Fast enumeration details, Prev: Using fast enumeration, Up: Fast enumeration
  44699. 8.9.2 C99-Like Fast Enumeration Syntax
  44700. --------------------------------------
  44701. A c99-like declaration syntax is also allowed:
  44702. id array = ...;
  44703. for (id object in array)
  44704. {
  44705. /* Do something with 'object' */
  44706. }
  44707. this is completely equivalent to:
  44708. id array = ...;
  44709. {
  44710. id object;
  44711. for (object in array)
  44712. {
  44713. /* Do something with 'object' */
  44714. }
  44715. }
  44716. but can save some typing.
  44717. Note that the option '-std=c99' is not required to allow this syntax in
  44718. Objective-C.
  44719. 
  44720. File: gcc.info, Node: Fast enumeration details, Next: Fast enumeration protocol, Prev: c99-like fast enumeration syntax, Up: Fast enumeration
  44721. 8.9.3 Fast Enumeration Details
  44722. ------------------------------
  44723. Here is a more technical description with the gory details. Consider
  44724. the code
  44725. for (OBJECT EXPRESSION in COLLECTION EXPRESSION)
  44726. {
  44727. STATEMENTS
  44728. }
  44729. here is what happens when you run it:
  44730. * 'COLLECTION EXPRESSION' is evaluated exactly once and the result is
  44731. used as the collection object to iterate over. This means it is
  44732. safe to write code such as 'for (object in [NSDictionary
  44733. keyEnumerator]) ...'.
  44734. * the iteration is implemented by the compiler by repeatedly getting
  44735. batches of objects from the collection object using the fast
  44736. enumeration protocol (see below), then iterating over all objects
  44737. in the batch. This is faster than a normal enumeration where
  44738. objects are retrieved one by one (hence the name "fast
  44739. enumeration").
  44740. * if there are no objects in the collection, then 'OBJECT EXPRESSION'
  44741. is set to 'nil' and the loop immediately terminates.
  44742. * if there are objects in the collection, then for each object in the
  44743. collection (in the order they are returned) 'OBJECT EXPRESSION' is
  44744. set to the object, then 'STATEMENTS' are executed.
  44745. * 'STATEMENTS' can contain 'break' and 'continue' commands, which
  44746. will abort the iteration or skip to the next loop iteration as
  44747. expected.
  44748. * when the iteration ends because there are no more objects to
  44749. iterate over, 'OBJECT EXPRESSION' is set to 'nil'. This allows you
  44750. to determine whether the iteration finished because a 'break'
  44751. command was used (in which case 'OBJECT EXPRESSION' will remain set
  44752. to the last object that was iterated over) or because it iterated
  44753. over all the objects (in which case 'OBJECT EXPRESSION' will be set
  44754. to 'nil').
  44755. * 'STATEMENTS' must not make any changes to the collection object; if
  44756. they do, it is a hard error and the fast enumeration terminates by
  44757. invoking 'objc_enumerationMutation', a runtime function that
  44758. normally aborts the program but which can be customized by
  44759. Foundation libraries via 'objc_set_mutation_handler' to do
  44760. something different, such as raising an exception.
  44761. 
  44762. File: gcc.info, Node: Fast enumeration protocol, Prev: Fast enumeration details, Up: Fast enumeration
  44763. 8.9.4 Fast Enumeration Protocol
  44764. -------------------------------
  44765. If you want your own collection object to be usable with fast
  44766. enumeration, you need to have it implement the method
  44767. - (unsigned long) countByEnumeratingWithState: (NSFastEnumerationState *)state
  44768. objects: (id *)objects
  44769. count: (unsigned long)len;
  44770. where 'NSFastEnumerationState' must be defined in your code as follows:
  44771. typedef struct
  44772. {
  44773. unsigned long state;
  44774. id *itemsPtr;
  44775. unsigned long *mutationsPtr;
  44776. unsigned long extra[5];
  44777. } NSFastEnumerationState;
  44778. If no 'NSFastEnumerationState' is defined in your code, the compiler
  44779. will automatically replace 'NSFastEnumerationState *' with 'struct
  44780. __objcFastEnumerationState *', where that type is silently defined by
  44781. the compiler in an identical way. This can be confusing and we
  44782. recommend that you define 'NSFastEnumerationState' (as shown above)
  44783. instead.
  44784. The method is called repeatedly during a fast enumeration to retrieve
  44785. batches of objects. Each invocation of the method should retrieve the
  44786. next batch of objects.
  44787. The return value of the method is the number of objects in the current
  44788. batch; this should not exceed 'len', which is the maximum size of a
  44789. batch as requested by the caller. The batch itself is returned in the
  44790. 'itemsPtr' field of the 'NSFastEnumerationState' struct.
  44791. To help with returning the objects, the 'objects' array is a C array
  44792. preallocated by the caller (on the stack) of size 'len'. In many cases
  44793. you can put the objects you want to return in that 'objects' array, then
  44794. do 'itemsPtr = objects'. But you don't have to; if your collection
  44795. already has the objects to return in some form of C array, it could
  44796. return them from there instead.
  44797. The 'state' and 'extra' fields of the 'NSFastEnumerationState'
  44798. structure allows your collection object to keep track of the state of
  44799. the enumeration. In a simple array implementation, 'state' may keep
  44800. track of the index of the last object that was returned, and 'extra' may
  44801. be unused.
  44802. The 'mutationsPtr' field of the 'NSFastEnumerationState' is used to
  44803. keep track of mutations. It should point to a number; before working on
  44804. each object, the fast enumeration loop will check that this number has
  44805. not changed. If it has, a mutation has happened and the fast
  44806. enumeration will abort. So, 'mutationsPtr' could be set to point to
  44807. some sort of version number of your collection, which is increased by
  44808. one every time there is a change (for example when an object is added or
  44809. removed). Or, if you are content with less strict mutation checks, it
  44810. could point to the number of objects in your collection or some other
  44811. value that can be checked to perform an approximate check that the
  44812. collection has not been mutated.
  44813. Finally, note how we declared the 'len' argument and the return value
  44814. to be of type 'unsigned long'. They could also be declared to be of
  44815. type 'unsigned int' and everything would still work.
  44816. 
  44817. File: gcc.info, Node: Messaging with the GNU Objective-C runtime, Prev: Fast enumeration, Up: Objective-C
  44818. 8.10 Messaging with the GNU Objective-C Runtime
  44819. ===============================================
  44820. This section is specific for the GNU Objective-C runtime. If you are
  44821. using a different runtime, you can skip it.
  44822. The implementation of messaging in the GNU Objective-C runtime is
  44823. designed to be portable, and so is based on standard C.
  44824. Sending a message in the GNU Objective-C runtime is composed of two
  44825. separate steps. First, there is a call to the lookup function,
  44826. 'objc_msg_lookup ()' (or, in the case of messages to super,
  44827. 'objc_msg_lookup_super ()'). This runtime function takes as argument
  44828. the receiver and the selector of the method to be called; it returns the
  44829. 'IMP', that is a pointer to the function implementing the method. The
  44830. second step of method invocation consists of casting this pointer
  44831. function to the appropriate function pointer type, and calling the
  44832. function pointed to it with the right arguments.
  44833. For example, when the compiler encounters a method invocation such as
  44834. '[object init]', it compiles it into a call to 'objc_msg_lookup (object,
  44835. @selector(init))' followed by a cast of the returned value to the
  44836. appropriate function pointer type, and then it calls it.
  44837. * Menu:
  44838. * Dynamically registering methods::
  44839. * Forwarding hook::
  44840. 
  44841. File: gcc.info, Node: Dynamically registering methods, Next: Forwarding hook, Up: Messaging with the GNU Objective-C runtime
  44842. 8.10.1 Dynamically Registering Methods
  44843. --------------------------------------
  44844. If 'objc_msg_lookup()' does not find a suitable method implementation,
  44845. because the receiver does not implement the required method, it tries to
  44846. see if the class can dynamically register the method.
  44847. To do so, the runtime checks if the class of the receiver implements
  44848. the method
  44849. + (BOOL) resolveInstanceMethod: (SEL)selector;
  44850. in the case of an instance method, or
  44851. + (BOOL) resolveClassMethod: (SEL)selector;
  44852. in the case of a class method. If the class implements it, the runtime
  44853. invokes it, passing as argument the selector of the original method, and
  44854. if it returns 'YES', the runtime tries the lookup again, which could now
  44855. succeed if a matching method was added dynamically by
  44856. '+resolveInstanceMethod:' or '+resolveClassMethod:'.
  44857. This allows classes to dynamically register methods (by adding them to
  44858. the class using 'class_addMethod') when they are first called. To do
  44859. so, a class should implement '+resolveInstanceMethod:' (or, depending on
  44860. the case, '+resolveClassMethod:') and have it recognize the selectors of
  44861. methods that can be registered dynamically at runtime, register them,
  44862. and return 'YES'. It should return 'NO' for methods that it does not
  44863. dynamically registered at runtime.
  44864. If '+resolveInstanceMethod:' (or '+resolveClassMethod:') is not
  44865. implemented or returns 'NO', the runtime then tries the forwarding hook.
  44866. Support for '+resolveInstanceMethod:' and 'resolveClassMethod:' was
  44867. added to the GNU Objective-C runtime in GCC version 4.6.
  44868. 
  44869. File: gcc.info, Node: Forwarding hook, Prev: Dynamically registering methods, Up: Messaging with the GNU Objective-C runtime
  44870. 8.10.2 Forwarding Hook
  44871. ----------------------
  44872. The GNU Objective-C runtime provides a hook, called
  44873. '__objc_msg_forward2', which is called by 'objc_msg_lookup()' when it
  44874. cannot find a method implementation in the runtime tables and after
  44875. calling '+resolveInstanceMethod:' and '+resolveClassMethod:' has been
  44876. attempted and did not succeed in dynamically registering the method.
  44877. To configure the hook, you set the global variable
  44878. '__objc_msg_forward2' to a function with the same argument and return
  44879. types of 'objc_msg_lookup()'. When 'objc_msg_lookup()' cannot find a
  44880. method implementation, it invokes the hook function you provided to get
  44881. a method implementation to return. So, in practice
  44882. '__objc_msg_forward2' allows you to extend 'objc_msg_lookup()' by adding
  44883. some custom code that is called to do a further lookup when no standard
  44884. method implementation can be found using the normal lookup.
  44885. This hook is generally reserved for "Foundation" libraries such as
  44886. GNUstep Base, which use it to implement their high-level method
  44887. forwarding API, typically based around the 'forwardInvocation:' method.
  44888. So, unless you are implementing your own "Foundation" library, you
  44889. should not set this hook.
  44890. In a typical forwarding implementation, the '__objc_msg_forward2' hook
  44891. function determines the argument and return type of the method that is
  44892. being looked up, and then creates a function that takes these arguments
  44893. and has that return type, and returns it to the caller. Creating this
  44894. function is non-trivial and is typically performed using a dedicated
  44895. library such as 'libffi'.
  44896. The forwarding method implementation thus created is returned by
  44897. 'objc_msg_lookup()' and is executed as if it was a normal method
  44898. implementation. When the forwarding method implementation is called, it
  44899. is usually expected to pack all arguments into some sort of object
  44900. (typically, an 'NSInvocation' in a "Foundation" library), and hand it
  44901. over to the programmer ('forwardInvocation:') who is then allowed to
  44902. manipulate the method invocation using a high-level API provided by the
  44903. "Foundation" library. For example, the programmer may want to examine
  44904. the method invocation arguments and name and potentially change them
  44905. before forwarding the method invocation to one or more local objects
  44906. ('performInvocation:') or even to remote objects (by using Distributed
  44907. Objects or some other mechanism). When all this completes, the return
  44908. value is passed back and must be returned correctly to the original
  44909. caller.
  44910. Note that the GNU Objective-C runtime currently provides no support for
  44911. method forwarding or method invocations other than the
  44912. '__objc_msg_forward2' hook.
  44913. If the forwarding hook does not exist or returns 'NULL', the runtime
  44914. currently attempts forwarding using an older, deprecated API, and if
  44915. that fails, it aborts the program. In future versions of the GNU
  44916. Objective-C runtime, the runtime will immediately abort.
  44917. 
  44918. File: gcc.info, Node: Compatibility, Next: Gcov, Prev: Objective-C, Up: Top
  44919. 9 Binary Compatibility
  44920. **********************
  44921. Binary compatibility encompasses several related concepts:
  44922. "application binary interface (ABI)"
  44923. The set of runtime conventions followed by all of the tools that
  44924. deal with binary representations of a program, including compilers,
  44925. assemblers, linkers, and language runtime support. Some ABIs are
  44926. formal with a written specification, possibly designed by multiple
  44927. interested parties. Others are simply the way things are actually
  44928. done by a particular set of tools.
  44929. "ABI conformance"
  44930. A compiler conforms to an ABI if it generates code that follows all
  44931. of the specifications enumerated by that ABI. A library conforms
  44932. to an ABI if it is implemented according to that ABI. An
  44933. application conforms to an ABI if it is built using tools that
  44934. conform to that ABI and does not contain source code that
  44935. specifically changes behavior specified by the ABI.
  44936. "calling conventions"
  44937. Calling conventions are a subset of an ABI that specify of how
  44938. arguments are passed and function results are returned.
  44939. "interoperability"
  44940. Different sets of tools are interoperable if they generate files
  44941. that can be used in the same program. The set of tools includes
  44942. compilers, assemblers, linkers, libraries, header files, startup
  44943. files, and debuggers. Binaries produced by different sets of tools
  44944. are not interoperable unless they implement the same ABI. This
  44945. applies to different versions of the same tools as well as tools
  44946. from different vendors.
  44947. "intercallability"
  44948. Whether a function in a binary built by one set of tools can call a
  44949. function in a binary built by a different set of tools is a subset
  44950. of interoperability.
  44951. "implementation-defined features"
  44952. Language standards include lists of implementation-defined features
  44953. whose behavior can vary from one implementation to another. Some
  44954. of these features are normally covered by a platform's ABI and
  44955. others are not. The features that are not covered by an ABI
  44956. generally affect how a program behaves, but not intercallability.
  44957. "compatibility"
  44958. Conformance to the same ABI and the same behavior of
  44959. implementation-defined features are both relevant for
  44960. compatibility.
  44961. The application binary interface implemented by a C or C++ compiler
  44962. affects code generation and runtime support for:
  44963. * size and alignment of data types
  44964. * layout of structured types
  44965. * calling conventions
  44966. * register usage conventions
  44967. * interfaces for runtime arithmetic support
  44968. * object file formats
  44969. In addition, the application binary interface implemented by a C++
  44970. compiler affects code generation and runtime support for:
  44971. * name mangling
  44972. * exception handling
  44973. * invoking constructors and destructors
  44974. * layout, alignment, and padding of classes
  44975. * layout and alignment of virtual tables
  44976. Some GCC compilation options cause the compiler to generate code that
  44977. does not conform to the platform's default ABI. Other options cause
  44978. different program behavior for implementation-defined features that are
  44979. not covered by an ABI. These options are provided for consistency with
  44980. other compilers that do not follow the platform's default ABI or the
  44981. usual behavior of implementation-defined features for the platform. Be
  44982. very careful about using such options.
  44983. Most platforms have a well-defined ABI that covers C code, but ABIs
  44984. that cover C++ functionality are not yet common.
  44985. Starting with GCC 3.2, GCC binary conventions for C++ are based on a
  44986. written, vendor-neutral C++ ABI that was designed to be specific to
  44987. 64-bit Itanium but also includes generic specifications that apply to
  44988. any platform. This C++ ABI is also implemented by other compiler
  44989. vendors on some platforms, notably GNU/Linux and BSD systems. We have
  44990. tried hard to provide a stable ABI that will be compatible with future
  44991. GCC releases, but it is possible that we will encounter problems that
  44992. make this difficult. Such problems could include different
  44993. interpretations of the C++ ABI by different vendors, bugs in the ABI, or
  44994. bugs in the implementation of the ABI in different compilers. GCC's
  44995. '-Wabi' switch warns when G++ generates code that is probably not
  44996. compatible with the C++ ABI.
  44997. The C++ library used with a C++ compiler includes the Standard C++
  44998. Library, with functionality defined in the C++ Standard, plus language
  44999. runtime support. The runtime support is included in a C++ ABI, but
  45000. there is no formal ABI for the Standard C++ Library. Two
  45001. implementations of that library are interoperable if one follows the
  45002. de-facto ABI of the other and if they are both built with the same
  45003. compiler, or with compilers that conform to the same ABI for C++
  45004. compiler and runtime support.
  45005. When G++ and another C++ compiler conform to the same C++ ABI, but the
  45006. implementations of the Standard C++ Library that they normally use do
  45007. not follow the same ABI for the Standard C++ Library, object files built
  45008. with those compilers can be used in the same program only if they use
  45009. the same C++ library. This requires specifying the location of the C++
  45010. library header files when invoking the compiler whose usual library is
  45011. not being used. The location of GCC's C++ header files depends on how
  45012. the GCC build was configured, but can be seen by using the G++ '-v'
  45013. option. With default configuration options for G++ 3.3 the compile line
  45014. for a different C++ compiler needs to include
  45015. -IGCC_INSTALL_DIRECTORY/include/c++/3.3
  45016. Similarly, compiling code with G++ that must use a C++ library other
  45017. than the GNU C++ library requires specifying the location of the header
  45018. files for that other library.
  45019. The most straightforward way to link a program to use a particular C++
  45020. library is to use a C++ driver that specifies that C++ library by
  45021. default. The 'g++' driver, for example, tells the linker where to find
  45022. GCC's C++ library ('libstdc++') plus the other libraries and startup
  45023. files it needs, in the proper order.
  45024. If a program must use a different C++ library and it's not possible to
  45025. do the final link using a C++ driver that uses that library by default,
  45026. it is necessary to tell 'g++' the location and name of that library. It
  45027. might also be necessary to specify different startup files and other
  45028. runtime support libraries, and to suppress the use of GCC's support
  45029. libraries with one or more of the options '-nostdlib', '-nostartfiles',
  45030. and '-nodefaultlibs'.
  45031. 
  45032. File: gcc.info, Node: Gcov, Next: Gcov-tool, Prev: Compatibility, Up: Top
  45033. 10 'gcov'--a Test Coverage Program
  45034. **********************************
  45035. 'gcov' is a tool you can use in conjunction with GCC to test code
  45036. coverage in your programs.
  45037. * Menu:
  45038. * Gcov Intro:: Introduction to gcov.
  45039. * Invoking Gcov:: How to use gcov.
  45040. * Gcov and Optimization:: Using gcov with GCC optimization.
  45041. * Gcov Data Files:: The files used by gcov.
  45042. * Cross-profiling:: Data file relocation.
  45043. 
  45044. File: gcc.info, Node: Gcov Intro, Next: Invoking Gcov, Up: Gcov
  45045. 10.1 Introduction to 'gcov'
  45046. ===========================
  45047. 'gcov' is a test coverage program. Use it in concert with GCC to
  45048. analyze your programs to help create more efficient, faster running code
  45049. and to discover untested parts of your program. You can use 'gcov' as a
  45050. profiling tool to help discover where your optimization efforts will
  45051. best affect your code. You can also use 'gcov' along with the other
  45052. profiling tool, 'gprof', to assess which parts of your code use the
  45053. greatest amount of computing time.
  45054. Profiling tools help you analyze your code's performance. Using a
  45055. profiler such as 'gcov' or 'gprof', you can find out some basic
  45056. performance statistics, such as:
  45057. * how often each line of code executes
  45058. * what lines of code are actually executed
  45059. * how much computing time each section of code uses
  45060. Once you know these things about how your code works when compiled, you
  45061. can look at each module to see which modules should be optimized.
  45062. 'gcov' helps you determine where to work on optimization.
  45063. Software developers also use coverage testing in concert with
  45064. testsuites, to make sure software is actually good enough for a release.
  45065. Testsuites can verify that a program works as expected; a coverage
  45066. program tests to see how much of the program is exercised by the
  45067. testsuite. Developers can then determine what kinds of test cases need
  45068. to be added to the testsuites to create both better testing and a better
  45069. final product.
  45070. You should compile your code without optimization if you plan to use
  45071. 'gcov' because the optimization, by combining some lines of code into
  45072. one function, may not give you as much information as you need to look
  45073. for 'hot spots' where the code is using a great deal of computer time.
  45074. Likewise, because 'gcov' accumulates statistics by line (at the lowest
  45075. resolution), it works best with a programming style that places only one
  45076. statement on each line. If you use complicated macros that expand to
  45077. loops or to other control structures, the statistics are less
  45078. helpful--they only report on the line where the macro call appears. If
  45079. your complex macros behave like functions, you can replace them with
  45080. inline functions to solve this problem.
  45081. 'gcov' creates a logfile called 'SOURCEFILE.gcov' which indicates how
  45082. many times each line of a source file 'SOURCEFILE.c' has executed. You
  45083. can use these logfiles along with 'gprof' to aid in fine-tuning the
  45084. performance of your programs. 'gprof' gives timing information you can
  45085. use along with the information you get from 'gcov'.
  45086. 'gcov' works only on code compiled with GCC. It is not compatible with
  45087. any other profiling or test coverage mechanism.
  45088. 
  45089. File: gcc.info, Node: Invoking Gcov, Next: Gcov and Optimization, Prev: Gcov Intro, Up: Gcov
  45090. 10.2 Invoking 'gcov'
  45091. ====================
  45092. gcov [OPTIONS] FILES
  45093. 'gcov' accepts the following options:
  45094. '-a'
  45095. '--all-blocks'
  45096. Write individual execution counts for every basic block. Normally
  45097. gcov outputs execution counts only for the main blocks of a line.
  45098. With this option you can determine if blocks within a single line
  45099. are not being executed.
  45100. '-b'
  45101. '--branch-probabilities'
  45102. Write branch frequencies to the output file, and write branch
  45103. summary info to the standard output. This option allows you to see
  45104. how often each branch in your program was taken. Unconditional
  45105. branches will not be shown, unless the '-u' option is given.
  45106. '-c'
  45107. '--branch-counts'
  45108. Write branch frequencies as the number of branches taken, rather
  45109. than the percentage of branches taken.
  45110. '-d'
  45111. '--display-progress'
  45112. Display the progress on the standard output.
  45113. '-f'
  45114. '--function-summaries'
  45115. Output summaries for each function in addition to the file level
  45116. summary.
  45117. '-h'
  45118. '--help'
  45119. Display help about using 'gcov' (on the standard output), and exit
  45120. without doing any further processing.
  45121. '-i'
  45122. '--json-format'
  45123. Output gcov file in an easy-to-parse JSON intermediate format which
  45124. does not require source code for generation. The JSON file is
  45125. compressed with gzip compression algorithm and the files have
  45126. '.gcov.json.gz' extension.
  45127. Structure of the JSON is following:
  45128. {
  45129. "current_working_directory": CURRENT_WORKING_DIRECTORY,
  45130. "data_file": DATA_FILE,
  45131. "format_version": FORMAT_VERSION,
  45132. "gcc_version": GCC_VERSION
  45133. "files": [FILE]
  45134. }
  45135. Fields of the root element have following semantics:
  45136. * CURRENT_WORKING_DIRECTORY: working directory where a
  45137. compilation unit was compiled
  45138. * DATA_FILE: name of the data file (GCDA)
  45139. * FORMAT_VERSION: semantic version of the format
  45140. * GCC_VERSION: version of the GCC compiler
  45141. Each FILE has the following form:
  45142. {
  45143. "file": FILE_NAME,
  45144. "functions": [FUNCTION],
  45145. "lines": [LINE]
  45146. }
  45147. Fields of the FILE element have following semantics:
  45148. * FILE_NAME: name of the source file
  45149. Each FUNCTION has the following form:
  45150. {
  45151. "blocks": BLOCKS,
  45152. "blocks_executed": BLOCKS_EXECUTED,
  45153. "demangled_name": "DEMANGLED_NAME,
  45154. "end_column": END_COLUMN,
  45155. "end_line": END_LINE,
  45156. "execution_count": EXECUTION_COUNT,
  45157. "name": NAME,
  45158. "start_column": START_COLUMN
  45159. "start_line": START_LINE
  45160. }
  45161. Fields of the FUNCTION element have following semantics:
  45162. * BLOCKS: number of blocks that are in the function
  45163. * BLOCKS_EXECUTED: number of executed blocks of the function
  45164. * DEMANGLED_NAME: demangled name of the function
  45165. * END_COLUMN: column in the source file where the function ends
  45166. * END_LINE: line in the source file where the function ends
  45167. * EXECUTION_COUNT: number of executions of the function
  45168. * NAME: name of the function
  45169. * START_COLUMN: column in the source file where the function
  45170. begins
  45171. * START_LINE: line in the source file where the function begins
  45172. Note that line numbers and column numbers number from 1. In the
  45173. current implementation, START_LINE and START_COLUMN do not include
  45174. any template parameters and the leading return type but that this
  45175. is likely to be fixed in the future.
  45176. Each LINE has the following form:
  45177. {
  45178. "branches": [BRANCH],
  45179. "count": COUNT,
  45180. "line_number": LINE_NUMBER,
  45181. "unexecuted_block": UNEXECUTED_BLOCK
  45182. "function_name": FUNCTION_NAME,
  45183. }
  45184. Branches are present only with -B option. Fields of the LINE
  45185. element have following semantics:
  45186. * COUNT: number of executions of the line
  45187. * LINE_NUMBER: line number
  45188. * UNEXECUTED_BLOCK: flag whether the line contains an unexecuted
  45189. block (not all statements on the line are executed)
  45190. * FUNCTION_NAME: a name of a function this LINE belongs to (for
  45191. a line with an inlined statements can be not set)
  45192. Each BRANCH has the following form:
  45193. {
  45194. "count": COUNT,
  45195. "fallthrough": FALLTHROUGH,
  45196. "throw": THROW
  45197. }
  45198. Fields of the BRANCH element have following semantics:
  45199. * COUNT: number of executions of the branch
  45200. * FALLTHROUGH: true when the branch is a fall through branch
  45201. * THROW: true when the branch is an exceptional branch
  45202. '-j'
  45203. '--human-readable'
  45204. Write counts in human readable format (like 24.6k).
  45205. '-k'
  45206. '--use-colors'
  45207. Use colors for lines of code that have zero coverage. We use red
  45208. color for non-exceptional lines and cyan for exceptional. Same
  45209. colors are used for basic blocks with '-a' option.
  45210. '-l'
  45211. '--long-file-names'
  45212. Create long file names for included source files. For example, if
  45213. the header file 'x.h' contains code, and was included in the file
  45214. 'a.c', then running 'gcov' on the file 'a.c' will produce an output
  45215. file called 'a.c##x.h.gcov' instead of 'x.h.gcov'. This can be
  45216. useful if 'x.h' is included in multiple source files and you want
  45217. to see the individual contributions. If you use the '-p' option,
  45218. both the including and included file names will be complete path
  45219. names.
  45220. '-m'
  45221. '--demangled-names'
  45222. Display demangled function names in output. The default is to show
  45223. mangled function names.
  45224. '-n'
  45225. '--no-output'
  45226. Do not create the 'gcov' output file.
  45227. '-o DIRECTORY|FILE'
  45228. '--object-directory DIRECTORY'
  45229. '--object-file FILE'
  45230. Specify either the directory containing the gcov data files, or the
  45231. object path name. The '.gcno', and '.gcda' data files are searched
  45232. for using this option. If a directory is specified, the data files
  45233. are in that directory and named after the input file name, without
  45234. its extension. If a file is specified here, the data files are
  45235. named after that file, without its extension.
  45236. '-p'
  45237. '--preserve-paths'
  45238. Preserve complete path information in the names of generated
  45239. '.gcov' files. Without this option, just the filename component is
  45240. used. With this option, all directories are used, with '/'
  45241. characters translated to '#' characters, '.' directory components
  45242. removed and unremoveable '..' components renamed to '^'. This is
  45243. useful if sourcefiles are in several different directories.
  45244. '-q'
  45245. '--use-hotness-colors'
  45246. Emit perf-like colored output for hot lines. Legend of the color
  45247. scale is printed at the very beginning of the output file.
  45248. '-r'
  45249. '--relative-only'
  45250. Only output information about source files with a relative pathname
  45251. (after source prefix elision). Absolute paths are usually system
  45252. header files and coverage of any inline functions therein is
  45253. normally uninteresting.
  45254. '-s DIRECTORY'
  45255. '--source-prefix DIRECTORY'
  45256. A prefix for source file names to remove when generating the output
  45257. coverage files. This option is useful when building in a separate
  45258. directory, and the pathname to the source directory is not wanted
  45259. when determining the output file names. Note that this prefix
  45260. detection is applied before determining whether the source file is
  45261. absolute.
  45262. '-t'
  45263. '--stdout'
  45264. Output to standard output instead of output files.
  45265. '-u'
  45266. '--unconditional-branches'
  45267. When branch probabilities are given, include those of unconditional
  45268. branches. Unconditional branches are normally not interesting.
  45269. '-v'
  45270. '--version'
  45271. Display the 'gcov' version number (on the standard output), and
  45272. exit without doing any further processing.
  45273. '-w'
  45274. '--verbose'
  45275. Print verbose informations related to basic blocks and arcs.
  45276. '-x'
  45277. '--hash-filenames'
  45278. When using -PRESERVE-PATHS, gcov uses the full pathname of the
  45279. source files to create an output filename. This can lead to long
  45280. filenames that can overflow filesystem limits. This option creates
  45281. names of the form 'SOURCE-FILE##MD5.gcov', where the SOURCE-FILE
  45282. component is the final filename part and the MD5 component is
  45283. calculated from the full mangled name that would have been used
  45284. otherwise. The option is an alternative to the -PRESERVE-PATHS on
  45285. systems which have a filesystem limit.
  45286. 'gcov' should be run with the current directory the same as that when
  45287. you invoked the compiler. Otherwise it will not be able to locate the
  45288. source files. 'gcov' produces files called 'MANGLEDNAME.gcov' in the
  45289. current directory. These contain the coverage information of the source
  45290. file they correspond to. One '.gcov' file is produced for each source
  45291. (or header) file containing code, which was compiled to produce the data
  45292. files. The MANGLEDNAME part of the output file name is usually simply
  45293. the source file name, but can be something more complicated if the '-l'
  45294. or '-p' options are given. Refer to those options for details.
  45295. If you invoke 'gcov' with multiple input files, the contributions from
  45296. each input file are summed. Typically you would invoke it with the same
  45297. list of files as the final link of your executable.
  45298. The '.gcov' files contain the ':' separated fields along with program
  45299. source code. The format is
  45300. EXECUTION_COUNT:LINE_NUMBER:SOURCE LINE TEXT
  45301. Additional block information may succeed each line, when requested by
  45302. command line option. The EXECUTION_COUNT is '-' for lines containing no
  45303. code. Unexecuted lines are marked '#####' or '=====', depending on
  45304. whether they are reachable by non-exceptional paths or only exceptional
  45305. paths such as C++ exception handlers, respectively. Given the '-a'
  45306. option, unexecuted blocks are marked '$$$$$' or '%%%%%', depending on
  45307. whether a basic block is reachable via non-exceptional or exceptional
  45308. paths. Executed basic blocks having a statement with zero
  45309. EXECUTION_COUNT end with '*' character and are colored with magenta
  45310. color with the '-k' option. This functionality is not supported in Ada.
  45311. Note that GCC can completely remove the bodies of functions that are
  45312. not needed - for instance if they are inlined everywhere. Such
  45313. functions are marked with '-', which can be confusing. Use the
  45314. '-fkeep-inline-functions' and '-fkeep-static-functions' options to
  45315. retain these functions and allow gcov to properly show their
  45316. EXECUTION_COUNT.
  45317. Some lines of information at the start have LINE_NUMBER of zero. These
  45318. preamble lines are of the form
  45319. -:0:TAG:VALUE
  45320. The ordering and number of these preamble lines will be augmented as
  45321. 'gcov' development progresses -- do not rely on them remaining
  45322. unchanged. Use TAG to locate a particular preamble line.
  45323. The additional block information is of the form
  45324. TAG INFORMATION
  45325. The INFORMATION is human readable, but designed to be simple enough for
  45326. machine parsing too.
  45327. When printing percentages, 0% and 100% are only printed when the values
  45328. are _exactly_ 0% and 100% respectively. Other values which would
  45329. conventionally be rounded to 0% or 100% are instead printed as the
  45330. nearest non-boundary value.
  45331. When using 'gcov', you must first compile your program with a special
  45332. GCC option '--coverage'. This tells the compiler to generate additional
  45333. information needed by gcov (basically a flow graph of the program) and
  45334. also includes additional code in the object files for generating the
  45335. extra profiling information needed by gcov. These additional files are
  45336. placed in the directory where the object file is located.
  45337. Running the program will cause profile output to be generated. For
  45338. each source file compiled with '-fprofile-arcs', an accompanying '.gcda'
  45339. file will be placed in the object file directory.
  45340. Running 'gcov' with your program's source file names as arguments will
  45341. now produce a listing of the code along with frequency of execution for
  45342. each line. For example, if your program is called 'tmp.cpp', this is
  45343. what you see when you use the basic 'gcov' facility:
  45344. $ g++ --coverage tmp.cpp
  45345. $ a.out
  45346. $ gcov tmp.cpp -m
  45347. File 'tmp.cpp'
  45348. Lines executed:92.86% of 14
  45349. Creating 'tmp.cpp.gcov'
  45350. The file 'tmp.cpp.gcov' contains output from 'gcov'. Here is a sample:
  45351. -: 0:Source:tmp.cpp
  45352. -: 0:Working directory:/home/gcc/testcase
  45353. -: 0:Graph:tmp.gcno
  45354. -: 0:Data:tmp.gcda
  45355. -: 0:Runs:1
  45356. -: 0:Programs:1
  45357. -: 1:#include <stdio.h>
  45358. -: 2:
  45359. -: 3:template<class T>
  45360. -: 4:class Foo
  45361. -: 5:{
  45362. -: 6: public:
  45363. 1*: 7: Foo(): b (1000) {}
  45364. ------------------
  45365. Foo<char>::Foo():
  45366. #####: 7: Foo(): b (1000) {}
  45367. ------------------
  45368. Foo<int>::Foo():
  45369. 1: 7: Foo(): b (1000) {}
  45370. ------------------
  45371. 2*: 8: void inc () { b++; }
  45372. ------------------
  45373. Foo<char>::inc():
  45374. #####: 8: void inc () { b++; }
  45375. ------------------
  45376. Foo<int>::inc():
  45377. 2: 8: void inc () { b++; }
  45378. ------------------
  45379. -: 9:
  45380. -: 10: private:
  45381. -: 11: int b;
  45382. -: 12:};
  45383. -: 13:
  45384. -: 14:template class Foo<int>;
  45385. -: 15:template class Foo<char>;
  45386. -: 16:
  45387. -: 17:int
  45388. 1: 18:main (void)
  45389. -: 19:{
  45390. -: 20: int i, total;
  45391. 1: 21: Foo<int> counter;
  45392. -: 22:
  45393. 1: 23: counter.inc();
  45394. 1: 24: counter.inc();
  45395. 1: 25: total = 0;
  45396. -: 26:
  45397. 11: 27: for (i = 0; i < 10; i++)
  45398. 10: 28: total += i;
  45399. -: 29:
  45400. 1*: 30: int v = total > 100 ? 1 : 2;
  45401. -: 31:
  45402. 1: 32: if (total != 45)
  45403. #####: 33: printf ("Failure\n");
  45404. -: 34: else
  45405. 1: 35: printf ("Success\n");
  45406. 1: 36: return 0;
  45407. -: 37:}
  45408. Note that line 7 is shown in the report multiple times. First
  45409. occurrence presents total number of execution of the line and the next
  45410. two belong to instances of class Foo constructors. As you can also see,
  45411. line 30 contains some unexecuted basic blocks and thus execution count
  45412. has asterisk symbol.
  45413. When you use the '-a' option, you will get individual block counts, and
  45414. the output looks like this:
  45415. -: 0:Source:tmp.cpp
  45416. -: 0:Working directory:/home/gcc/testcase
  45417. -: 0:Graph:tmp.gcno
  45418. -: 0:Data:tmp.gcda
  45419. -: 0:Runs:1
  45420. -: 0:Programs:1
  45421. -: 1:#include <stdio.h>
  45422. -: 2:
  45423. -: 3:template<class T>
  45424. -: 4:class Foo
  45425. -: 5:{
  45426. -: 6: public:
  45427. 1*: 7: Foo(): b (1000) {}
  45428. ------------------
  45429. Foo<char>::Foo():
  45430. #####: 7: Foo(): b (1000) {}
  45431. ------------------
  45432. Foo<int>::Foo():
  45433. 1: 7: Foo(): b (1000) {}
  45434. ------------------
  45435. 2*: 8: void inc () { b++; }
  45436. ------------------
  45437. Foo<char>::inc():
  45438. #####: 8: void inc () { b++; }
  45439. ------------------
  45440. Foo<int>::inc():
  45441. 2: 8: void inc () { b++; }
  45442. ------------------
  45443. -: 9:
  45444. -: 10: private:
  45445. -: 11: int b;
  45446. -: 12:};
  45447. -: 13:
  45448. -: 14:template class Foo<int>;
  45449. -: 15:template class Foo<char>;
  45450. -: 16:
  45451. -: 17:int
  45452. 1: 18:main (void)
  45453. -: 19:{
  45454. -: 20: int i, total;
  45455. 1: 21: Foo<int> counter;
  45456. 1: 21-block 0
  45457. -: 22:
  45458. 1: 23: counter.inc();
  45459. 1: 23-block 0
  45460. 1: 24: counter.inc();
  45461. 1: 24-block 0
  45462. 1: 25: total = 0;
  45463. -: 26:
  45464. 11: 27: for (i = 0; i < 10; i++)
  45465. 1: 27-block 0
  45466. 11: 27-block 1
  45467. 10: 28: total += i;
  45468. 10: 28-block 0
  45469. -: 29:
  45470. 1*: 30: int v = total > 100 ? 1 : 2;
  45471. 1: 30-block 0
  45472. %%%%%: 30-block 1
  45473. 1: 30-block 2
  45474. -: 31:
  45475. 1: 32: if (total != 45)
  45476. 1: 32-block 0
  45477. #####: 33: printf ("Failure\n");
  45478. %%%%%: 33-block 0
  45479. -: 34: else
  45480. 1: 35: printf ("Success\n");
  45481. 1: 35-block 0
  45482. 1: 36: return 0;
  45483. 1: 36-block 0
  45484. -: 37:}
  45485. In this mode, each basic block is only shown on one line - the last
  45486. line of the block. A multi-line block will only contribute to the
  45487. execution count of that last line, and other lines will not be shown to
  45488. contain code, unless previous blocks end on those lines. The total
  45489. execution count of a line is shown and subsequent lines show the
  45490. execution counts for individual blocks that end on that line. After
  45491. each block, the branch and call counts of the block will be shown, if
  45492. the '-b' option is given.
  45493. Because of the way GCC instruments calls, a call count can be shown
  45494. after a line with no individual blocks. As you can see, line 33
  45495. contains a basic block that was not executed.
  45496. When you use the '-b' option, your output looks like this:
  45497. -: 0:Source:tmp.cpp
  45498. -: 0:Working directory:/home/gcc/testcase
  45499. -: 0:Graph:tmp.gcno
  45500. -: 0:Data:tmp.gcda
  45501. -: 0:Runs:1
  45502. -: 0:Programs:1
  45503. -: 1:#include <stdio.h>
  45504. -: 2:
  45505. -: 3:template<class T>
  45506. -: 4:class Foo
  45507. -: 5:{
  45508. -: 6: public:
  45509. 1*: 7: Foo(): b (1000) {}
  45510. ------------------
  45511. Foo<char>::Foo():
  45512. function Foo<char>::Foo() called 0 returned 0% blocks executed 0%
  45513. #####: 7: Foo(): b (1000) {}
  45514. ------------------
  45515. Foo<int>::Foo():
  45516. function Foo<int>::Foo() called 1 returned 100% blocks executed 100%
  45517. 1: 7: Foo(): b (1000) {}
  45518. ------------------
  45519. 2*: 8: void inc () { b++; }
  45520. ------------------
  45521. Foo<char>::inc():
  45522. function Foo<char>::inc() called 0 returned 0% blocks executed 0%
  45523. #####: 8: void inc () { b++; }
  45524. ------------------
  45525. Foo<int>::inc():
  45526. function Foo<int>::inc() called 2 returned 100% blocks executed 100%
  45527. 2: 8: void inc () { b++; }
  45528. ------------------
  45529. -: 9:
  45530. -: 10: private:
  45531. -: 11: int b;
  45532. -: 12:};
  45533. -: 13:
  45534. -: 14:template class Foo<int>;
  45535. -: 15:template class Foo<char>;
  45536. -: 16:
  45537. -: 17:int
  45538. function main called 1 returned 100% blocks executed 81%
  45539. 1: 18:main (void)
  45540. -: 19:{
  45541. -: 20: int i, total;
  45542. 1: 21: Foo<int> counter;
  45543. call 0 returned 100%
  45544. branch 1 taken 100% (fallthrough)
  45545. branch 2 taken 0% (throw)
  45546. -: 22:
  45547. 1: 23: counter.inc();
  45548. call 0 returned 100%
  45549. branch 1 taken 100% (fallthrough)
  45550. branch 2 taken 0% (throw)
  45551. 1: 24: counter.inc();
  45552. call 0 returned 100%
  45553. branch 1 taken 100% (fallthrough)
  45554. branch 2 taken 0% (throw)
  45555. 1: 25: total = 0;
  45556. -: 26:
  45557. 11: 27: for (i = 0; i < 10; i++)
  45558. branch 0 taken 91% (fallthrough)
  45559. branch 1 taken 9%
  45560. 10: 28: total += i;
  45561. -: 29:
  45562. 1*: 30: int v = total > 100 ? 1 : 2;
  45563. branch 0 taken 0% (fallthrough)
  45564. branch 1 taken 100%
  45565. -: 31:
  45566. 1: 32: if (total != 45)
  45567. branch 0 taken 0% (fallthrough)
  45568. branch 1 taken 100%
  45569. #####: 33: printf ("Failure\n");
  45570. call 0 never executed
  45571. branch 1 never executed
  45572. branch 2 never executed
  45573. -: 34: else
  45574. 1: 35: printf ("Success\n");
  45575. call 0 returned 100%
  45576. branch 1 taken 100% (fallthrough)
  45577. branch 2 taken 0% (throw)
  45578. 1: 36: return 0;
  45579. -: 37:}
  45580. For each function, a line is printed showing how many times the
  45581. function is called, how many times it returns and what percentage of the
  45582. function's blocks were executed.
  45583. For each basic block, a line is printed after the last line of the
  45584. basic block describing the branch or call that ends the basic block.
  45585. There can be multiple branches and calls listed for a single source line
  45586. if there are multiple basic blocks that end on that line. In this case,
  45587. the branches and calls are each given a number. There is no simple way
  45588. to map these branches and calls back to source constructs. In general,
  45589. though, the lowest numbered branch or call will correspond to the
  45590. leftmost construct on the source line.
  45591. For a branch, if it was executed at least once, then a percentage
  45592. indicating the number of times the branch was taken divided by the
  45593. number of times the branch was executed will be printed. Otherwise, the
  45594. message "never executed" is printed.
  45595. For a call, if it was executed at least once, then a percentage
  45596. indicating the number of times the call returned divided by the number
  45597. of times the call was executed will be printed. This will usually be
  45598. 100%, but may be less for functions that call 'exit' or 'longjmp', and
  45599. thus may not return every time they are called.
  45600. The execution counts are cumulative. If the example program were
  45601. executed again without removing the '.gcda' file, the count for the
  45602. number of times each line in the source was executed would be added to
  45603. the results of the previous run(s). This is potentially useful in
  45604. several ways. For example, it could be used to accumulate data over a
  45605. number of program runs as part of a test verification suite, or to
  45606. provide more accurate long-term information over a large number of
  45607. program runs.
  45608. The data in the '.gcda' files is saved immediately before the program
  45609. exits. For each source file compiled with '-fprofile-arcs', the
  45610. profiling code first attempts to read in an existing '.gcda' file; if
  45611. the file doesn't match the executable (differing number of basic block
  45612. counts) it will ignore the contents of the file. It then adds in the
  45613. new execution counts and finally writes the data to the file.
  45614. 
  45615. File: gcc.info, Node: Gcov and Optimization, Next: Gcov Data Files, Prev: Invoking Gcov, Up: Gcov
  45616. 10.3 Using 'gcov' with GCC Optimization
  45617. =======================================
  45618. If you plan to use 'gcov' to help optimize your code, you must first
  45619. compile your program with a special GCC option '--coverage'. Aside from
  45620. that, you can use any other GCC options; but if you want to prove that
  45621. every single line in your program was executed, you should not compile
  45622. with optimization at the same time. On some machines the optimizer can
  45623. eliminate some simple code lines by combining them with other lines.
  45624. For example, code like this:
  45625. if (a != b)
  45626. c = 1;
  45627. else
  45628. c = 0;
  45629. can be compiled into one instruction on some machines. In this case,
  45630. there is no way for 'gcov' to calculate separate execution counts for
  45631. each line because there isn't separate code for each line. Hence the
  45632. 'gcov' output looks like this if you compiled the program with
  45633. optimization:
  45634. 100: 12:if (a != b)
  45635. 100: 13: c = 1;
  45636. 100: 14:else
  45637. 100: 15: c = 0;
  45638. The output shows that this block of code, combined by optimization,
  45639. executed 100 times. In one sense this result is correct, because there
  45640. was only one instruction representing all four of these lines. However,
  45641. the output does not indicate how many times the result was 0 and how
  45642. many times the result was 1.
  45643. Inlineable functions can create unexpected line counts. Line counts
  45644. are shown for the source code of the inlineable function, but what is
  45645. shown depends on where the function is inlined, or if it is not inlined
  45646. at all.
  45647. If the function is not inlined, the compiler must emit an out of line
  45648. copy of the function, in any object file that needs it. If 'fileA.o'
  45649. and 'fileB.o' both contain out of line bodies of a particular inlineable
  45650. function, they will also both contain coverage counts for that function.
  45651. When 'fileA.o' and 'fileB.o' are linked together, the linker will, on
  45652. many systems, select one of those out of line bodies for all calls to
  45653. that function, and remove or ignore the other. Unfortunately, it will
  45654. not remove the coverage counters for the unused function body. Hence
  45655. when instrumented, all but one use of that function will show zero
  45656. counts.
  45657. If the function is inlined in several places, the block structure in
  45658. each location might not be the same. For instance, a condition might
  45659. now be calculable at compile time in some instances. Because the
  45660. coverage of all the uses of the inline function will be shown for the
  45661. same source lines, the line counts themselves might seem inconsistent.
  45662. Long-running applications can use the '__gcov_reset' and '__gcov_dump'
  45663. facilities to restrict profile collection to the program region of
  45664. interest. Calling '__gcov_reset(void)' will clear all profile counters
  45665. to zero, and calling '__gcov_dump(void)' will cause the profile
  45666. information collected at that point to be dumped to '.gcda' output
  45667. files. Instrumented applications use a static destructor with priority
  45668. 99 to invoke the '__gcov_dump' function. Thus '__gcov_dump' is executed
  45669. after all user defined static destructors, as well as handlers
  45670. registered with 'atexit'. If an executable loads a dynamic shared
  45671. object via dlopen functionality, '-Wl,--dynamic-list-data' is needed to
  45672. dump all profile data.
  45673. Profiling run-time library reports various errors related to profile
  45674. manipulation and profile saving. Errors are printed into standard error
  45675. output or 'GCOV_ERROR_FILE' file, if environment variable is used. In
  45676. order to terminate immediately after an errors occurs set
  45677. 'GCOV_EXIT_AT_ERROR' environment variable. That can help users to find
  45678. profile clashing which leads to a misleading profile.
  45679. 
  45680. File: gcc.info, Node: Gcov Data Files, Next: Cross-profiling, Prev: Gcov and Optimization, Up: Gcov
  45681. 10.4 Brief Description of 'gcov' Data Files
  45682. ===========================================
  45683. 'gcov' uses two files for profiling. The names of these files are
  45684. derived from the original _object_ file by substituting the file suffix
  45685. with either '.gcno', or '.gcda'. The files contain coverage and profile
  45686. data stored in a platform-independent format. The '.gcno' files are
  45687. placed in the same directory as the object file. By default, the
  45688. '.gcda' files are also stored in the same directory as the object file,
  45689. but the GCC '-fprofile-dir' option may be used to store the '.gcda'
  45690. files in a separate directory.
  45691. The '.gcno' notes file is generated when the source file is compiled
  45692. with the GCC '-ftest-coverage' option. It contains information to
  45693. reconstruct the basic block graphs and assign source line numbers to
  45694. blocks.
  45695. The '.gcda' count data file is generated when a program containing
  45696. object files built with the GCC '-fprofile-arcs' option is executed. A
  45697. separate '.gcda' file is created for each object file compiled with this
  45698. option. It contains arc transition counts, value profile counts, and
  45699. some summary information.
  45700. It is not recommended to access the coverage files directly. Consumers
  45701. should use the intermediate format that is provided by 'gcov' tool via
  45702. '--json-format' option.
  45703. 
  45704. File: gcc.info, Node: Cross-profiling, Prev: Gcov Data Files, Up: Gcov
  45705. 10.5 Data File Relocation to Support Cross-Profiling
  45706. ====================================================
  45707. Running the program will cause profile output to be generated. For each
  45708. source file compiled with '-fprofile-arcs', an accompanying '.gcda' file
  45709. will be placed in the object file directory. That implicitly requires
  45710. running the program on the same system as it was built or having the
  45711. same absolute directory structure on the target system. The program
  45712. will try to create the needed directory structure, if it is not already
  45713. present.
  45714. To support cross-profiling, a program compiled with '-fprofile-arcs'
  45715. can relocate the data files based on two environment variables:
  45716. * GCOV_PREFIX contains the prefix to add to the absolute paths in the
  45717. object file. Prefix can be absolute, or relative. The default is
  45718. no prefix.
  45719. * GCOV_PREFIX_STRIP indicates the how many initial directory names to
  45720. strip off the hardwired absolute paths. Default value is 0.
  45721. _Note:_ If GCOV_PREFIX_STRIP is set without GCOV_PREFIX is
  45722. undefined, then a relative path is made out of the hardwired
  45723. absolute paths.
  45724. For example, if the object file '/user/build/foo.o' was built with
  45725. '-fprofile-arcs', the final executable will try to create the data file
  45726. '/user/build/foo.gcda' when running on the target system. This will
  45727. fail if the corresponding directory does not exist and it is unable to
  45728. create it. This can be overcome by, for example, setting the
  45729. environment as 'GCOV_PREFIX=/target/run' and 'GCOV_PREFIX_STRIP=1'.
  45730. Such a setting will name the data file '/target/run/build/foo.gcda'.
  45731. You must move the data files to the expected directory tree in order to
  45732. use them for profile directed optimizations ('-fprofile-use'), or to use
  45733. the 'gcov' tool.
  45734. 
  45735. File: gcc.info, Node: Gcov-tool, Next: Gcov-dump, Prev: Gcov, Up: Top
  45736. 11 'gcov-tool'--an Offline Gcda Profile Processing Tool
  45737. *******************************************************
  45738. 'gcov-tool' is a tool you can use in conjunction with GCC to manipulate
  45739. or process gcda profile files offline.
  45740. * Menu:
  45741. * Gcov-tool Intro:: Introduction to gcov-tool.
  45742. * Invoking Gcov-tool:: How to use gcov-tool.
  45743. 
  45744. File: gcc.info, Node: Gcov-tool Intro, Next: Invoking Gcov-tool, Up: Gcov-tool
  45745. 11.1 Introduction to 'gcov-tool'
  45746. ================================
  45747. 'gcov-tool' is an offline tool to process gcc's gcda profile files.
  45748. Current gcov-tool supports the following functionalities:
  45749. * merge two sets of profiles with weights.
  45750. * read one set of profile and rewrite profile contents. One can
  45751. scale or normalize the count values.
  45752. Examples of the use cases for this tool are:
  45753. * Collect the profiles for different set of inputs, and use this tool
  45754. to merge them. One can specify the weight to factor in the
  45755. relative importance of each input.
  45756. * Rewrite the profile after removing a subset of the gcda files,
  45757. while maintaining the consistency of the summary and the histogram.
  45758. * It can also be used to debug or libgcov code as the tools shares
  45759. the majority code as the runtime library.
  45760. Note that for the merging operation, this profile generated offline may
  45761. contain slight different values from the online merged profile. Here
  45762. are a list of typical differences:
  45763. * histogram difference: This offline tool recomputes the histogram
  45764. after merging the counters. The resulting histogram, therefore, is
  45765. precise. The online merging does not have this capability - the
  45766. histogram is merged from two histograms and the result is an
  45767. approximation.
  45768. * summary checksum difference: Summary checksum uses a CRC32
  45769. operation. The value depends on the link list order of gcov-info
  45770. objects. This order is different in gcov-tool from that in the
  45771. online merge. It's expected to have different summary checksums.
  45772. It does not really matter as the compiler does not use this
  45773. checksum anywhere.
  45774. * value profile counter values difference: Some counter values for
  45775. value profile are runtime dependent, like heap addresses. It's
  45776. normal to see some difference in these kind of counters.
  45777. 
  45778. File: gcc.info, Node: Invoking Gcov-tool, Prev: Gcov-tool Intro, Up: Gcov-tool
  45779. 11.2 Invoking 'gcov-tool'
  45780. =========================
  45781. gcov-tool [GLOBAL-OPTIONS] SUB_COMMAND [SUB_COMMAND-OPTIONS] PROFILE_DIR
  45782. 'gcov-tool' accepts the following options:
  45783. '-h'
  45784. '--help'
  45785. Display help about using 'gcov-tool' (on the standard output), and
  45786. exit without doing any further processing.
  45787. '-v'
  45788. '--version'
  45789. Display the 'gcov-tool' version number (on the standard output),
  45790. and exit without doing any further processing.
  45791. 'merge'
  45792. Merge two profile directories.
  45793. '-o DIRECTORY'
  45794. '--output DIRECTORY'
  45795. Set the output profile directory. Default output directory
  45796. name is MERGED_PROFILE.
  45797. '-v'
  45798. '--verbose'
  45799. Set the verbose mode.
  45800. '-w W1,W2'
  45801. '--weight W1,W2'
  45802. Set the merge weights of the DIRECTORY1 and DIRECTORY2,
  45803. respectively. The default weights are 1 for both.
  45804. 'rewrite'
  45805. Read the specified profile directory and rewrite to a new
  45806. directory.
  45807. '-n LONG_LONG_VALUE'
  45808. '--normalize <long_long_value>'
  45809. Normalize the profile. The specified value is the max counter
  45810. value in the new profile.
  45811. '-o DIRECTORY'
  45812. '--output DIRECTORY'
  45813. Set the output profile directory. Default output name is
  45814. REWRITE_PROFILE.
  45815. '-s FLOAT_OR_SIMPLE-FRAC_VALUE'
  45816. '--scale FLOAT_OR_SIMPLE-FRAC_VALUE'
  45817. Scale the profile counters. The specified value can be in
  45818. floating point value, or simple fraction value form, such 1,
  45819. 2, 2/3, and 5/3.
  45820. '-v'
  45821. '--verbose'
  45822. Set the verbose mode.
  45823. 'overlap'
  45824. Compute the overlap score between the two specified profile
  45825. directories. The overlap score is computed based on the arc
  45826. profiles. It is defined as the sum of min (p1_counter[i] /
  45827. p1_sum_all, p2_counter[i] / p2_sum_all), for all arc counter i,
  45828. where p1_counter[i] and p2_counter[i] are two matched counters and
  45829. p1_sum_all and p2_sum_all are the sum of counter values in profile
  45830. 1 and profile 2, respectively.
  45831. '-f'
  45832. '--function'
  45833. Print function level overlap score.
  45834. '-F'
  45835. '--fullname'
  45836. Print full gcda filename.
  45837. '-h'
  45838. '--hotonly'
  45839. Only print info for hot objects/functions.
  45840. '-o'
  45841. '--object'
  45842. Print object level overlap score.
  45843. '-t FLOAT'
  45844. '--hot_threshold <float>'
  45845. Set the threshold for hot counter value.
  45846. '-v'
  45847. '--verbose'
  45848. Set the verbose mode.
  45849. 
  45850. File: gcc.info, Node: Gcov-dump, Next: lto-dump, Prev: Gcov-tool, Up: Top
  45851. 12 'gcov-dump'--an Offline Gcda and Gcno Profile Dump Tool
  45852. **********************************************************
  45853. * Menu:
  45854. * Gcov-dump Intro:: Introduction to gcov-dump.
  45855. * Invoking Gcov-dump:: How to use gcov-dump.
  45856. 
  45857. File: gcc.info, Node: Gcov-dump Intro, Next: Invoking Gcov-dump, Up: Gcov-dump
  45858. 12.1 Introduction to 'gcov-dump'
  45859. ================================
  45860. 'gcov-dump' is a tool you can use in conjunction with GCC to dump
  45861. content of gcda and gcno profile files offline.
  45862. 
  45863. File: gcc.info, Node: Invoking Gcov-dump, Prev: Gcov-dump Intro, Up: Gcov-dump
  45864. 12.2 Invoking 'gcov-dump'
  45865. =========================
  45866. Usage: gcov-dump [OPTION] ... GCOVFILES
  45867. 'gcov-dump' accepts the following options:
  45868. '-h'
  45869. '--help'
  45870. Display help about using 'gcov-dump' (on the standard output), and
  45871. exit without doing any further processing.
  45872. '-l'
  45873. '--long'
  45874. Dump content of records.
  45875. '-p'
  45876. '--positions'
  45877. Dump positions of records.
  45878. '-v'
  45879. '--version'
  45880. Display the 'gcov-dump' version number (on the standard output),
  45881. and exit without doing any further processing.
  45882. 
  45883. File: gcc.info, Node: lto-dump, Next: Trouble, Prev: Gcov-dump, Up: Top
  45884. 13 'lto-dump'--Tool for dumping LTO object files.
  45885. *************************************************
  45886. * Menu:
  45887. * lto-dump Intro:: Introduction to lto-dump.
  45888. * Invoking lto-dump:: How to use lto-dump.
  45889. 
  45890. File: gcc.info, Node: lto-dump Intro, Next: Invoking lto-dump, Up: lto-dump
  45891. 13.1 Introduction to 'lto-dump'
  45892. ===============================
  45893. 'lto-dump' is a tool you can use in conjunction with GCC to dump link
  45894. time optimization object files.
  45895. 
  45896. File: gcc.info, Node: Invoking lto-dump, Prev: lto-dump Intro, Up: lto-dump
  45897. 13.2 Invoking 'lto-dump'
  45898. ========================
  45899. Usage: lto-dump [OPTION] ... OBJFILES
  45900. 'lto-dump' accepts the following options:
  45901. '-list'
  45902. Dumps list of details of functions and variables.
  45903. '-demangle'
  45904. Dump the demangled output.
  45905. '-defined-only'
  45906. Dump only the defined symbols.
  45907. '-print-value'
  45908. Dump initial values of the variables.
  45909. '-name-sort'
  45910. Sort the symbols alphabetically.
  45911. '-size-sort'
  45912. Sort the symbols according to size.
  45913. '-reverse-sort'
  45914. Dump the symbols in reverse order.
  45915. '-no-sort'
  45916. Dump the symbols in order of occurrence.
  45917. '-symbol='
  45918. Dump the details of specific symbol.
  45919. '-objects'
  45920. Dump the details of LTO objects.
  45921. '-type-stats'
  45922. Dump the statistics of tree types.
  45923. '-tree-stats'
  45924. Dump the statistics of trees.
  45925. '-gimple-stats'
  45926. Dump the statistics of gimple statements.
  45927. '-dump-level='
  45928. For deciding the optimization level of body.
  45929. '-dump-body='
  45930. Dump the specific gimple body.
  45931. '-help'
  45932. Display the dump tool help.
  45933. 
  45934. File: gcc.info, Node: Trouble, Next: Bugs, Prev: lto-dump, Up: Top
  45935. 14 Known Causes of Trouble with GCC
  45936. ***********************************
  45937. This section describes known problems that affect users of GCC. Most of
  45938. these are not GCC bugs per se--if they were, we would fix them. But the
  45939. result for a user may be like the result of a bug.
  45940. Some of these problems are due to bugs in other software, some are
  45941. missing features that are too much work to add, and some are places
  45942. where people's opinions differ as to what is best.
  45943. * Menu:
  45944. * Actual Bugs:: Bugs we will fix later.
  45945. * Interoperation:: Problems using GCC with other compilers,
  45946. and with certain linkers, assemblers and debuggers.
  45947. * Incompatibilities:: GCC is incompatible with traditional C.
  45948. * Fixed Headers:: GCC uses corrected versions of system header files.
  45949. This is necessary, but doesn't always work smoothly.
  45950. * Standard Libraries:: GCC uses the system C library, which might not be
  45951. compliant with the ISO C standard.
  45952. * Disappointments:: Regrettable things we cannot change, but not quite bugs.
  45953. * C++ Misunderstandings:: Common misunderstandings with GNU C++.
  45954. * Non-bugs:: Things we think are right, but some others disagree.
  45955. * Warnings and Errors:: Which problems in your code get warnings,
  45956. and which get errors.
  45957. 
  45958. File: gcc.info, Node: Actual Bugs, Next: Interoperation, Up: Trouble
  45959. 14.1 Actual Bugs We Haven't Fixed Yet
  45960. =====================================
  45961. * The 'fixincludes' script interacts badly with automounters; if the
  45962. directory of system header files is automounted, it tends to be
  45963. unmounted while 'fixincludes' is running. This would seem to be a
  45964. bug in the automounter. We don't know any good way to work around
  45965. it.
  45966. 
  45967. File: gcc.info, Node: Interoperation, Next: Incompatibilities, Prev: Actual Bugs, Up: Trouble
  45968. 14.2 Interoperation
  45969. ===================
  45970. This section lists various difficulties encountered in using GCC
  45971. together with other compilers or with the assemblers, linkers, libraries
  45972. and debuggers on certain systems.
  45973. * On many platforms, GCC supports a different ABI for C++ than do
  45974. other compilers, so the object files compiled by GCC cannot be used
  45975. with object files generated by another C++ compiler.
  45976. An area where the difference is most apparent is name mangling.
  45977. The use of different name mangling is intentional, to protect you
  45978. from more subtle problems. Compilers differ as to many internal
  45979. details of C++ implementation, including: how class instances are
  45980. laid out, how multiple inheritance is implemented, and how virtual
  45981. function calls are handled. If the name encoding were made the
  45982. same, your programs would link against libraries provided from
  45983. other compilers--but the programs would then crash when run.
  45984. Incompatible libraries are then detected at link time, rather than
  45985. at run time.
  45986. * On some BSD systems, including some versions of Ultrix, use of
  45987. profiling causes static variable destructors (currently used only
  45988. in C++) not to be run.
  45989. * On a SPARC, GCC aligns all values of type 'double' on an 8-byte
  45990. boundary, and it expects every 'double' to be so aligned. The Sun
  45991. compiler usually gives 'double' values 8-byte alignment, with one
  45992. exception: function arguments of type 'double' may not be aligned.
  45993. As a result, if a function compiled with Sun CC takes the address
  45994. of an argument of type 'double' and passes this pointer of type
  45995. 'double *' to a function compiled with GCC, dereferencing the
  45996. pointer may cause a fatal signal.
  45997. One way to solve this problem is to compile your entire program
  45998. with GCC. Another solution is to modify the function that is
  45999. compiled with Sun CC to copy the argument into a local variable;
  46000. local variables are always properly aligned. A third solution is
  46001. to modify the function that uses the pointer to dereference it via
  46002. the following function 'access_double' instead of directly with
  46003. '*':
  46004. inline double
  46005. access_double (double *unaligned_ptr)
  46006. {
  46007. union d2i { double d; int i[2]; };
  46008. union d2i *p = (union d2i *) unaligned_ptr;
  46009. union d2i u;
  46010. u.i[0] = p->i[0];
  46011. u.i[1] = p->i[1];
  46012. return u.d;
  46013. }
  46014. Storing into the pointer can be done likewise with the same union.
  46015. * On Solaris, the 'malloc' function in the 'libmalloc.a' library may
  46016. allocate memory that is only 4 byte aligned. Since GCC on the
  46017. SPARC assumes that doubles are 8 byte aligned, this may result in a
  46018. fatal signal if doubles are stored in memory allocated by the
  46019. 'libmalloc.a' library.
  46020. The solution is to not use the 'libmalloc.a' library. Use instead
  46021. 'malloc' and related functions from 'libc.a'; they do not have this
  46022. problem.
  46023. * On the HP PA machine, ADB sometimes fails to work on functions
  46024. compiled with GCC. Specifically, it fails to work on functions
  46025. that use 'alloca' or variable-size arrays. This is because GCC
  46026. doesn't generate HP-UX unwind descriptors for such functions. It
  46027. may even be impossible to generate them.
  46028. * Debugging ('-g') is not supported on the HP PA machine, unless you
  46029. use the preliminary GNU tools.
  46030. * Taking the address of a label may generate errors from the HP-UX PA
  46031. assembler. GAS for the PA does not have this problem.
  46032. * Using floating point parameters for indirect calls to static
  46033. functions will not work when using the HP assembler. There simply
  46034. is no way for GCC to specify what registers hold arguments for
  46035. static functions when using the HP assembler. GAS for the PA does
  46036. not have this problem.
  46037. * In extremely rare cases involving some very large functions you may
  46038. receive errors from the HP linker complaining about an out of
  46039. bounds unconditional branch offset. This used to occur more often
  46040. in previous versions of GCC, but is now exceptionally rare. If you
  46041. should run into it, you can work around by making your function
  46042. smaller.
  46043. * GCC compiled code sometimes emits warnings from the HP-UX assembler
  46044. of the form:
  46045. (warning) Use of GR3 when
  46046. frame >= 8192 may cause conflict.
  46047. These warnings are harmless and can be safely ignored.
  46048. * In extremely rare cases involving some very large functions you may
  46049. receive errors from the AIX Assembler complaining about a
  46050. displacement that is too large. If you should run into it, you can
  46051. work around by making your function smaller.
  46052. * The 'libstdc++.a' library in GCC relies on the SVR4 dynamic linker
  46053. semantics which merges global symbols between libraries and
  46054. applications, especially necessary for C++ streams functionality.
  46055. This is not the default behavior of AIX shared libraries and
  46056. dynamic linking. 'libstdc++.a' is built on AIX with
  46057. "runtime-linking" enabled so that symbol merging can occur. To
  46058. utilize this feature, the application linked with 'libstdc++.a'
  46059. must include the '-Wl,-brtl' flag on the link line. G++ cannot
  46060. impose this because this option may interfere with the semantics of
  46061. the user program and users may not always use 'g++' to link his or
  46062. her application. Applications are not required to use the
  46063. '-Wl,-brtl' flag on the link line--the rest of the 'libstdc++.a'
  46064. library which is not dependent on the symbol merging semantics will
  46065. continue to function correctly.
  46066. * An application can interpose its own definition of functions for
  46067. functions invoked by 'libstdc++.a' with "runtime-linking" enabled
  46068. on AIX. To accomplish this the application must be linked with
  46069. "runtime-linking" option and the functions explicitly must be
  46070. exported by the application ('-Wl,-brtl,-bE:exportfile').
  46071. * AIX on the RS/6000 provides support (NLS) for environments outside
  46072. of the United States. Compilers and assemblers use NLS to support
  46073. locale-specific representations of various objects including
  46074. floating-point numbers ('.' vs ',' for separating decimal
  46075. fractions). There have been problems reported where the library
  46076. linked with GCC does not produce the same floating-point formats
  46077. that the assembler accepts. If you have this problem, set the
  46078. 'LANG' environment variable to 'C' or 'En_US'.
  46079. * Even if you specify '-fdollars-in-identifiers', you cannot
  46080. successfully use '$' in identifiers on the RS/6000 due to a
  46081. restriction in the IBM assembler. GAS supports these identifiers.
  46082. 
  46083. File: gcc.info, Node: Incompatibilities, Next: Fixed Headers, Prev: Interoperation, Up: Trouble
  46084. 14.3 Incompatibilities of GCC
  46085. =============================
  46086. There are several noteworthy incompatibilities between GNU C and K&R
  46087. (non-ISO) versions of C.
  46088. * GCC normally makes string constants read-only. If several
  46089. identical-looking string constants are used, GCC stores only one
  46090. copy of the string.
  46091. One consequence is that you cannot call 'mktemp' with a string
  46092. constant argument. The function 'mktemp' always alters the string
  46093. its argument points to.
  46094. Another consequence is that 'sscanf' does not work on some very old
  46095. systems when passed a string constant as its format control string
  46096. or input. This is because 'sscanf' incorrectly tries to write into
  46097. the string constant. Likewise 'fscanf' and 'scanf'.
  46098. The solution to these problems is to change the program to use
  46099. 'char'-array variables with initialization strings for these
  46100. purposes instead of string constants.
  46101. * '-2147483648' is positive.
  46102. This is because 2147483648 cannot fit in the type 'int', so
  46103. (following the ISO C rules) its data type is 'unsigned long int'.
  46104. Negating this value yields 2147483648 again.
  46105. * GCC does not substitute macro arguments when they appear inside of
  46106. string constants. For example, the following macro in GCC
  46107. #define foo(a) "a"
  46108. will produce output '"a"' regardless of what the argument A is.
  46109. * When you use 'setjmp' and 'longjmp', the only automatic variables
  46110. guaranteed to remain valid are those declared 'volatile'. This is
  46111. a consequence of automatic register allocation. Consider this
  46112. function:
  46113. jmp_buf j;
  46114. foo ()
  46115. {
  46116. int a, b;
  46117. a = fun1 ();
  46118. if (setjmp (j))
  46119. return a;
  46120. a = fun2 ();
  46121. /* 'longjmp (j)' may occur in 'fun3'. */
  46122. return a + fun3 ();
  46123. }
  46124. Here 'a' may or may not be restored to its first value when the
  46125. 'longjmp' occurs. If 'a' is allocated in a register, then its
  46126. first value is restored; otherwise, it keeps the last value stored
  46127. in it.
  46128. If you use the '-W' option with the '-O' option, you will get a
  46129. warning when GCC thinks such a problem might be possible.
  46130. * Programs that use preprocessing directives in the middle of macro
  46131. arguments do not work with GCC. For example, a program like this
  46132. will not work:
  46133. foobar (
  46134. #define luser
  46135. hack)
  46136. ISO C does not permit such a construct.
  46137. * K&R compilers allow comments to cross over an inclusion boundary
  46138. (i.e. started in an include file and ended in the including file).
  46139. * Declarations of external variables and functions within a block
  46140. apply only to the block containing the declaration. In other
  46141. words, they have the same scope as any other declaration in the
  46142. same place.
  46143. In some other C compilers, an 'extern' declaration affects all the
  46144. rest of the file even if it happens within a block.
  46145. * In traditional C, you can combine 'long', etc., with a typedef
  46146. name, as shown here:
  46147. typedef int foo;
  46148. typedef long foo bar;
  46149. In ISO C, this is not allowed: 'long' and other type modifiers
  46150. require an explicit 'int'.
  46151. * PCC allows typedef names to be used as function parameters.
  46152. * Traditional C allows the following erroneous pair of declarations
  46153. to appear together in a given scope:
  46154. typedef int foo;
  46155. typedef foo foo;
  46156. * GCC treats all characters of identifiers as significant. According
  46157. to K&R-1 (2.2), "No more than the first eight characters are
  46158. significant, although more may be used.". Also according to K&R-1
  46159. (2.2), "An identifier is a sequence of letters and digits; the
  46160. first character must be a letter. The underscore _ counts as a
  46161. letter.", but GCC also allows dollar signs in identifiers.
  46162. * PCC allows whitespace in the middle of compound assignment
  46163. operators such as '+='. GCC, following the ISO standard, does not
  46164. allow this.
  46165. * GCC complains about unterminated character constants inside of
  46166. preprocessing conditionals that fail. Some programs have English
  46167. comments enclosed in conditionals that are guaranteed to fail; if
  46168. these comments contain apostrophes, GCC will probably report an
  46169. error. For example, this code would produce an error:
  46170. #if 0
  46171. You can't expect this to work.
  46172. #endif
  46173. The best solution to such a problem is to put the text into an
  46174. actual C comment delimited by '/*...*/'.
  46175. * Many user programs contain the declaration 'long time ();'. In the
  46176. past, the system header files on many systems did not actually
  46177. declare 'time', so it did not matter what type your program
  46178. declared it to return. But in systems with ISO C headers, 'time'
  46179. is declared to return 'time_t', and if that is not the same as
  46180. 'long', then 'long time ();' is erroneous.
  46181. The solution is to change your program to use appropriate system
  46182. headers ('<time.h>' on systems with ISO C headers) and not to
  46183. declare 'time' if the system header files declare it, or failing
  46184. that to use 'time_t' as the return type of 'time'.
  46185. * When compiling functions that return 'float', PCC converts it to a
  46186. double. GCC actually returns a 'float'. If you are concerned with
  46187. PCC compatibility, you should declare your functions to return
  46188. 'double'; you might as well say what you mean.
  46189. * When compiling functions that return structures or unions, GCC
  46190. output code normally uses a method different from that used on most
  46191. versions of Unix. As a result, code compiled with GCC cannot call
  46192. a structure-returning function compiled with PCC, and vice versa.
  46193. The method used by GCC is as follows: a structure or union which is
  46194. 1, 2, 4 or 8 bytes long is returned like a scalar. A structure or
  46195. union with any other size is stored into an address supplied by the
  46196. caller (usually in a special, fixed register, but on some machines
  46197. it is passed on the stack). The target hook
  46198. 'TARGET_STRUCT_VALUE_RTX' tells GCC where to pass this address.
  46199. By contrast, PCC on most target machines returns structures and
  46200. unions of any size by copying the data into an area of static
  46201. storage, and then returning the address of that storage as if it
  46202. were a pointer value. The caller must copy the data from that
  46203. memory area to the place where the value is wanted. GCC does not
  46204. use this method because it is slower and nonreentrant.
  46205. On some newer machines, PCC uses a reentrant convention for all
  46206. structure and union returning. GCC on most of these machines uses
  46207. a compatible convention when returning structures and unions in
  46208. memory, but still returns small structures and unions in registers.
  46209. You can tell GCC to use a compatible convention for all structure
  46210. and union returning with the option '-fpcc-struct-return'.
  46211. * GCC complains about program fragments such as '0x74ae-0x4000' which
  46212. appear to be two hexadecimal constants separated by the minus
  46213. operator. Actually, this string is a single "preprocessing token".
  46214. Each such token must correspond to one token in C. Since this does
  46215. not, GCC prints an error message. Although it may appear obvious
  46216. that what is meant is an operator and two values, the ISO C
  46217. standard specifically requires that this be treated as erroneous.
  46218. A "preprocessing token" is a "preprocessing number" if it begins
  46219. with a digit and is followed by letters, underscores, digits,
  46220. periods and 'e+', 'e-', 'E+', 'E-', 'p+', 'p-', 'P+', or 'P-'
  46221. character sequences. (In strict C90 mode, the sequences 'p+',
  46222. 'p-', 'P+' and 'P-' cannot appear in preprocessing numbers.)
  46223. To make the above program fragment valid, place whitespace in front
  46224. of the minus sign. This whitespace will end the preprocessing
  46225. number.
  46226. 
  46227. File: gcc.info, Node: Fixed Headers, Next: Standard Libraries, Prev: Incompatibilities, Up: Trouble
  46228. 14.4 Fixed Header Files
  46229. =======================
  46230. GCC needs to install corrected versions of some system header files.
  46231. This is because most target systems have some header files that won't
  46232. work with GCC unless they are changed. Some have bugs, some are
  46233. incompatible with ISO C, and some depend on special features of other
  46234. compilers.
  46235. Installing GCC automatically creates and installs the fixed header
  46236. files, by running a program called 'fixincludes'. Normally, you don't
  46237. need to pay attention to this. But there are cases where it doesn't do
  46238. the right thing automatically.
  46239. * If you update the system's header files, such as by installing a
  46240. new system version, the fixed header files of GCC are not
  46241. automatically updated. They can be updated using the 'mkheaders'
  46242. script installed in 'LIBEXECDIR/gcc/TARGET/VERSION/install-tools/'.
  46243. * On some systems, header file directories contain machine-specific
  46244. symbolic links in certain places. This makes it possible to share
  46245. most of the header files among hosts running the same version of
  46246. the system on different machine models.
  46247. The programs that fix the header files do not understand this
  46248. special way of using symbolic links; therefore, the directory of
  46249. fixed header files is good only for the machine model used to build
  46250. it.
  46251. It is possible to make separate sets of fixed header files for the
  46252. different machine models, and arrange a structure of symbolic links
  46253. so as to use the proper set, but you'll have to do this by hand.
  46254. 
  46255. File: gcc.info, Node: Standard Libraries, Next: Disappointments, Prev: Fixed Headers, Up: Trouble
  46256. 14.5 Standard Libraries
  46257. =======================
  46258. GCC by itself attempts to be a conforming freestanding implementation.
  46259. *Note Language Standards Supported by GCC: Standards, for details of
  46260. what this means. Beyond the library facilities required of such an
  46261. implementation, the rest of the C library is supplied by the vendor of
  46262. the operating system. If that C library doesn't conform to the C
  46263. standards, then your programs might get warnings (especially when using
  46264. '-Wall') that you don't expect.
  46265. For example, the 'sprintf' function on SunOS 4.1.3 returns 'char *'
  46266. while the C standard says that 'sprintf' returns an 'int'. The
  46267. 'fixincludes' program could make the prototype for this function match
  46268. the Standard, but that would be wrong, since the function will still
  46269. return 'char *'.
  46270. If you need a Standard compliant library, then you need to find one, as
  46271. GCC does not provide one. The GNU C library (called 'glibc') provides
  46272. ISO C, POSIX, BSD, SystemV and X/Open compatibility for GNU/Linux and
  46273. HURD-based GNU systems; no recent version of it supports other systems,
  46274. though some very old versions did. Version 2.2 of the GNU C library
  46275. includes nearly complete C99 support. You could also ask your operating
  46276. system vendor if newer libraries are available.
  46277. 
  46278. File: gcc.info, Node: Disappointments, Next: C++ Misunderstandings, Prev: Standard Libraries, Up: Trouble
  46279. 14.6 Disappointments and Misunderstandings
  46280. ==========================================
  46281. These problems are perhaps regrettable, but we don't know any practical
  46282. way around them.
  46283. * Certain local variables aren't recognized by debuggers when you
  46284. compile with optimization.
  46285. This occurs because sometimes GCC optimizes the variable out of
  46286. existence. There is no way to tell the debugger how to compute the
  46287. value such a variable "would have had", and it is not clear that
  46288. would be desirable anyway. So GCC simply does not mention the
  46289. eliminated variable when it writes debugging information.
  46290. You have to expect a certain amount of disagreement between the
  46291. executable and your source code, when you use optimization.
  46292. * Users often think it is a bug when GCC reports an error for code
  46293. like this:
  46294. int foo (struct mumble *);
  46295. struct mumble { ... };
  46296. int foo (struct mumble *x)
  46297. { ... }
  46298. This code really is erroneous, because the scope of 'struct mumble'
  46299. in the prototype is limited to the argument list containing it. It
  46300. does not refer to the 'struct mumble' defined with file scope
  46301. immediately below--they are two unrelated types with similar names
  46302. in different scopes.
  46303. But in the definition of 'foo', the file-scope type is used because
  46304. that is available to be inherited. Thus, the definition and the
  46305. prototype do not match, and you get an error.
  46306. This behavior may seem silly, but it's what the ISO standard
  46307. specifies. It is easy enough for you to make your code work by
  46308. moving the definition of 'struct mumble' above the prototype. It's
  46309. not worth being incompatible with ISO C just to avoid an error for
  46310. the example shown above.
  46311. * Accesses to bit-fields even in volatile objects works by accessing
  46312. larger objects, such as a byte or a word. You cannot rely on what
  46313. size of object is accessed in order to read or write the bit-field;
  46314. it may even vary for a given bit-field according to the precise
  46315. usage.
  46316. If you care about controlling the amount of memory that is
  46317. accessed, use volatile but do not use bit-fields.
  46318. * GCC comes with shell scripts to fix certain known problems in
  46319. system header files. They install corrected copies of various
  46320. header files in a special directory where only GCC will normally
  46321. look for them. The scripts adapt to various systems by searching
  46322. all the system header files for the problem cases that we know
  46323. about.
  46324. If new system header files are installed, nothing automatically
  46325. arranges to update the corrected header files. They can be updated
  46326. using the 'mkheaders' script installed in
  46327. 'LIBEXECDIR/gcc/TARGET/VERSION/install-tools/'.
  46328. * On 68000 and x86 systems, for instance, you can get paradoxical
  46329. results if you test the precise values of floating point numbers.
  46330. For example, you can find that a floating point value which is not
  46331. a NaN is not equal to itself. This results from the fact that the
  46332. floating point registers hold a few more bits of precision than fit
  46333. in a 'double' in memory. Compiled code moves values between memory
  46334. and floating point registers at its convenience, and moving them
  46335. into memory truncates them.
  46336. You can partially avoid this problem by using the '-ffloat-store'
  46337. option (*note Optimize Options::).
  46338. * On AIX and other platforms without weak symbol support, templates
  46339. need to be instantiated explicitly and symbols for static members
  46340. of templates will not be generated.
  46341. * On AIX, GCC scans object files and library archives for static
  46342. constructors and destructors when linking an application before the
  46343. linker prunes unreferenced symbols. This is necessary to prevent
  46344. the AIX linker from mistakenly assuming that static constructor or
  46345. destructor are unused and removing them before the scanning can
  46346. occur. All static constructors and destructors found will be
  46347. referenced even though the modules in which they occur may not be
  46348. used by the program. This may lead to both increased executable
  46349. size and unexpected symbol references.
  46350. 
  46351. File: gcc.info, Node: C++ Misunderstandings, Next: Non-bugs, Prev: Disappointments, Up: Trouble
  46352. 14.7 Common Misunderstandings with GNU C++
  46353. ==========================================
  46354. C++ is a complex language and an evolving one, and its standard
  46355. definition (the ISO C++ standard) was only recently completed. As a
  46356. result, your C++ compiler may occasionally surprise you, even when its
  46357. behavior is correct. This section discusses some areas that frequently
  46358. give rise to questions of this sort.
  46359. * Menu:
  46360. * Static Definitions:: Static member declarations are not definitions
  46361. * Name lookup:: Name lookup, templates, and accessing members of base classes
  46362. * Temporaries:: Temporaries may vanish before you expect
  46363. * Copy Assignment:: Copy Assignment operators copy virtual bases twice
  46364. 
  46365. File: gcc.info, Node: Static Definitions, Next: Name lookup, Up: C++ Misunderstandings
  46366. 14.7.1 Declare _and_ Define Static Members
  46367. ------------------------------------------
  46368. When a class has static data members, it is not enough to _declare_ the
  46369. static member; you must also _define_ it. For example:
  46370. class Foo
  46371. {
  46372. ...
  46373. void method();
  46374. static int bar;
  46375. };
  46376. This declaration only establishes that the class 'Foo' has an 'int'
  46377. named 'Foo::bar', and a member function named 'Foo::method'. But you
  46378. still need to define _both_ 'method' and 'bar' elsewhere. According to
  46379. the ISO standard, you must supply an initializer in one (and only one)
  46380. source file, such as:
  46381. int Foo::bar = 0;
  46382. Other C++ compilers may not correctly implement the standard behavior.
  46383. As a result, when you switch to 'g++' from one of these compilers, you
  46384. may discover that a program that appeared to work correctly in fact does
  46385. not conform to the standard: 'g++' reports as undefined symbols any
  46386. static data members that lack definitions.
  46387. 
  46388. File: gcc.info, Node: Name lookup, Next: Temporaries, Prev: Static Definitions, Up: C++ Misunderstandings
  46389. 14.7.2 Name Lookup, Templates, and Accessing Members of Base Classes
  46390. --------------------------------------------------------------------
  46391. The C++ standard prescribes that all names that are not dependent on
  46392. template parameters are bound to their present definitions when parsing
  46393. a template function or class.(1) Only names that are dependent are
  46394. looked up at the point of instantiation. For example, consider
  46395. void foo(double);
  46396. struct A {
  46397. template <typename T>
  46398. void f () {
  46399. foo (1); // 1
  46400. int i = N; // 2
  46401. T t;
  46402. t.bar(); // 3
  46403. foo (t); // 4
  46404. }
  46405. static const int N;
  46406. };
  46407. Here, the names 'foo' and 'N' appear in a context that does not depend
  46408. on the type of 'T'. The compiler will thus require that they are
  46409. defined in the context of use in the template, not only before the point
  46410. of instantiation, and will here use '::foo(double)' and 'A::N',
  46411. respectively. In particular, it will convert the integer value to a
  46412. 'double' when passing it to '::foo(double)'.
  46413. Conversely, 'bar' and the call to 'foo' in the fourth marked line are
  46414. used in contexts that do depend on the type of 'T', so they are only
  46415. looked up at the point of instantiation, and you can provide
  46416. declarations for them after declaring the template, but before
  46417. instantiating it. In particular, if you instantiate 'A::f<int>', the
  46418. last line will call an overloaded '::foo(int)' if one was provided, even
  46419. if after the declaration of 'struct A'.
  46420. This distinction between lookup of dependent and non-dependent names is
  46421. called two-stage (or dependent) name lookup. G++ implements it since
  46422. version 3.4.
  46423. Two-stage name lookup sometimes leads to situations with behavior
  46424. different from non-template codes. The most common is probably this:
  46425. template <typename T> struct Base {
  46426. int i;
  46427. };
  46428. template <typename T> struct Derived : public Base<T> {
  46429. int get_i() { return i; }
  46430. };
  46431. In 'get_i()', 'i' is not used in a dependent context, so the compiler
  46432. will look for a name declared at the enclosing namespace scope (which is
  46433. the global scope here). It will not look into the base class, since
  46434. that is dependent and you may declare specializations of 'Base' even
  46435. after declaring 'Derived', so the compiler cannot really know what 'i'
  46436. would refer to. If there is no global variable 'i', then you will get
  46437. an error message.
  46438. In order to make it clear that you want the member of the base class,
  46439. you need to defer lookup until instantiation time, at which the base
  46440. class is known. For this, you need to access 'i' in a dependent
  46441. context, by either using 'this->i' (remember that 'this' is of type
  46442. 'Derived<T>*', so is obviously dependent), or using 'Base<T>::i'.
  46443. Alternatively, 'Base<T>::i' might be brought into scope by a
  46444. 'using'-declaration.
  46445. Another, similar example involves calling member functions of a base
  46446. class:
  46447. template <typename T> struct Base {
  46448. int f();
  46449. };
  46450. template <typename T> struct Derived : Base<T> {
  46451. int g() { return f(); };
  46452. };
  46453. Again, the call to 'f()' is not dependent on template arguments (there
  46454. are no arguments that depend on the type 'T', and it is also not
  46455. otherwise specified that the call should be in a dependent context).
  46456. Thus a global declaration of such a function must be available, since
  46457. the one in the base class is not visible until instantiation time. The
  46458. compiler will consequently produce the following error message:
  46459. x.cc: In member function `int Derived<T>::g()':
  46460. x.cc:6: error: there are no arguments to `f' that depend on a template
  46461. parameter, so a declaration of `f' must be available
  46462. x.cc:6: error: (if you use `-fpermissive', G++ will accept your code, but
  46463. allowing the use of an undeclared name is deprecated)
  46464. To make the code valid either use 'this->f()', or 'Base<T>::f()'.
  46465. Using the '-fpermissive' flag will also let the compiler accept the
  46466. code, by marking all function calls for which no declaration is visible
  46467. at the time of definition of the template for later lookup at
  46468. instantiation time, as if it were a dependent call. We do not recommend
  46469. using '-fpermissive' to work around invalid code, and it will also only
  46470. catch cases where functions in base classes are called, not where
  46471. variables in base classes are used (as in the example above).
  46472. Note that some compilers (including G++ versions prior to 3.4) get
  46473. these examples wrong and accept above code without an error. Those
  46474. compilers do not implement two-stage name lookup correctly.
  46475. ---------- Footnotes ----------
  46476. (1) The C++ standard just uses the term "dependent" for names that
  46477. depend on the type or value of template parameters. This shorter term
  46478. will also be used in the rest of this section.
  46479. 
  46480. File: gcc.info, Node: Temporaries, Next: Copy Assignment, Prev: Name lookup, Up: C++ Misunderstandings
  46481. 14.7.3 Temporaries May Vanish Before You Expect
  46482. -----------------------------------------------
  46483. It is dangerous to use pointers or references to _portions_ of a
  46484. temporary object. The compiler may very well delete the object before
  46485. you expect it to, leaving a pointer to garbage. The most common place
  46486. where this problem crops up is in classes like string classes,
  46487. especially ones that define a conversion function to type 'char *' or
  46488. 'const char *'--which is one reason why the standard 'string' class
  46489. requires you to call the 'c_str' member function. However, any class
  46490. that returns a pointer to some internal structure is potentially subject
  46491. to this problem.
  46492. For example, a program may use a function 'strfunc' that returns
  46493. 'string' objects, and another function 'charfunc' that operates on
  46494. pointers to 'char':
  46495. string strfunc ();
  46496. void charfunc (const char *);
  46497. void
  46498. f ()
  46499. {
  46500. const char *p = strfunc().c_str();
  46501. ...
  46502. charfunc (p);
  46503. ...
  46504. charfunc (p);
  46505. }
  46506. In this situation, it may seem reasonable to save a pointer to the C
  46507. string returned by the 'c_str' member function and use that rather than
  46508. call 'c_str' repeatedly. However, the temporary string created by the
  46509. call to 'strfunc' is destroyed after 'p' is initialized, at which point
  46510. 'p' is left pointing to freed memory.
  46511. Code like this may run successfully under some other compilers,
  46512. particularly obsolete cfront-based compilers that delete temporaries
  46513. along with normal local variables. However, the GNU C++ behavior is
  46514. standard-conforming, so if your program depends on late destruction of
  46515. temporaries it is not portable.
  46516. The safe way to write such code is to give the temporary a name, which
  46517. forces it to remain until the end of the scope of the name. For
  46518. example:
  46519. const string& tmp = strfunc ();
  46520. charfunc (tmp.c_str ());
  46521. 
  46522. File: gcc.info, Node: Copy Assignment, Prev: Temporaries, Up: C++ Misunderstandings
  46523. 14.7.4 Implicit Copy-Assignment for Virtual Bases
  46524. -------------------------------------------------
  46525. When a base class is virtual, only one subobject of the base class
  46526. belongs to each full object. Also, the constructors and destructors are
  46527. invoked only once, and called from the most-derived class. However,
  46528. such objects behave unspecified when being assigned. For example:
  46529. struct Base{
  46530. char *name;
  46531. Base(char *n) : name(strdup(n)){}
  46532. Base& operator= (const Base& other){
  46533. free (name);
  46534. name = strdup (other.name);
  46535. }
  46536. };
  46537. struct A:virtual Base{
  46538. int val;
  46539. A():Base("A"){}
  46540. };
  46541. struct B:virtual Base{
  46542. int bval;
  46543. B():Base("B"){}
  46544. };
  46545. struct Derived:public A, public B{
  46546. Derived():Base("Derived"){}
  46547. };
  46548. void func(Derived &d1, Derived &d2)
  46549. {
  46550. d1 = d2;
  46551. }
  46552. The C++ standard specifies that 'Base::Base' is only called once when
  46553. constructing or copy-constructing a Derived object. It is unspecified
  46554. whether 'Base::operator=' is called more than once when the implicit
  46555. copy-assignment for Derived objects is invoked (as it is inside 'func'
  46556. in the example).
  46557. G++ implements the "intuitive" algorithm for copy-assignment: assign
  46558. all direct bases, then assign all members. In that algorithm, the
  46559. virtual base subobject can be encountered more than once. In the
  46560. example, copying proceeds in the following order: 'val', 'name' (via
  46561. 'strdup'), 'bval', and 'name' again.
  46562. If application code relies on copy-assignment, a user-defined
  46563. copy-assignment operator removes any uncertainties. With such an
  46564. operator, the application can define whether and how the virtual base
  46565. subobject is assigned.
  46566. 
  46567. File: gcc.info, Node: Non-bugs, Next: Warnings and Errors, Prev: C++ Misunderstandings, Up: Trouble
  46568. 14.8 Certain Changes We Don't Want to Make
  46569. ==========================================
  46570. This section lists changes that people frequently request, but which we
  46571. do not make because we think GCC is better without them.
  46572. * Checking the number and type of arguments to a function which has
  46573. an old-fashioned definition and no prototype.
  46574. Such a feature would work only occasionally--only for calls that
  46575. appear in the same file as the called function, following the
  46576. definition. The only way to check all calls reliably is to add a
  46577. prototype for the function. But adding a prototype eliminates the
  46578. motivation for this feature. So the feature is not worthwhile.
  46579. * Warning about using an expression whose type is signed as a shift
  46580. count.
  46581. Shift count operands are probably signed more often than unsigned.
  46582. Warning about this would cause far more annoyance than good.
  46583. * Warning about assigning a signed value to an unsigned variable.
  46584. Such assignments must be very common; warning about them would
  46585. cause more annoyance than good.
  46586. * Warning when a non-void function value is ignored.
  46587. C contains many standard functions that return a value that most
  46588. programs choose to ignore. One obvious example is 'printf'.
  46589. Warning about this practice only leads the defensive programmer to
  46590. clutter programs with dozens of casts to 'void'. Such casts are
  46591. required so frequently that they become visual noise. Writing
  46592. those casts becomes so automatic that they no longer convey useful
  46593. information about the intentions of the programmer. For functions
  46594. where the return value should never be ignored, use the
  46595. 'warn_unused_result' function attribute (*note Function
  46596. Attributes::).
  46597. * Making '-fshort-enums' the default.
  46598. This would cause storage layout to be incompatible with most other
  46599. C compilers. And it doesn't seem very important, given that you
  46600. can get the same result in other ways. The case where it matters
  46601. most is when the enumeration-valued object is inside a structure,
  46602. and in that case you can specify a field width explicitly.
  46603. * Making bit-fields unsigned by default on particular machines where
  46604. "the ABI standard" says to do so.
  46605. The ISO C standard leaves it up to the implementation whether a
  46606. bit-field declared plain 'int' is signed or not. This in effect
  46607. creates two alternative dialects of C.
  46608. The GNU C compiler supports both dialects; you can specify the
  46609. signed dialect with '-fsigned-bitfields' and the unsigned dialect
  46610. with '-funsigned-bitfields'. However, this leaves open the
  46611. question of which dialect to use by default.
  46612. Currently, the preferred dialect makes plain bit-fields signed,
  46613. because this is simplest. Since 'int' is the same as 'signed int'
  46614. in every other context, it is cleanest for them to be the same in
  46615. bit-fields as well.
  46616. Some computer manufacturers have published Application Binary
  46617. Interface standards which specify that plain bit-fields should be
  46618. unsigned. It is a mistake, however, to say anything about this
  46619. issue in an ABI. This is because the handling of plain bit-fields
  46620. distinguishes two dialects of C. Both dialects are meaningful on
  46621. every type of machine. Whether a particular object file was
  46622. compiled using signed bit-fields or unsigned is of no concern to
  46623. other object files, even if they access the same bit-fields in the
  46624. same data structures.
  46625. A given program is written in one or the other of these two
  46626. dialects. The program stands a chance to work on most any machine
  46627. if it is compiled with the proper dialect. It is unlikely to work
  46628. at all if compiled with the wrong dialect.
  46629. Many users appreciate the GNU C compiler because it provides an
  46630. environment that is uniform across machines. These users would be
  46631. inconvenienced if the compiler treated plain bit-fields differently
  46632. on certain machines.
  46633. Occasionally users write programs intended only for a particular
  46634. machine type. On these occasions, the users would benefit if the
  46635. GNU C compiler were to support by default the same dialect as the
  46636. other compilers on that machine. But such applications are rare.
  46637. And users writing a program to run on more than one type of machine
  46638. cannot possibly benefit from this kind of compatibility.
  46639. This is why GCC does and will treat plain bit-fields in the same
  46640. fashion on all types of machines (by default).
  46641. There are some arguments for making bit-fields unsigned by default
  46642. on all machines. If, for example, this becomes a universal de
  46643. facto standard, it would make sense for GCC to go along with it.
  46644. This is something to be considered in the future.
  46645. (Of course, users strongly concerned about portability should
  46646. indicate explicitly in each bit-field whether it is signed or not.
  46647. In this way, they write programs which have the same meaning in
  46648. both C dialects.)
  46649. * Undefining '__STDC__' when '-ansi' is not used.
  46650. Currently, GCC defines '__STDC__' unconditionally. This provides
  46651. good results in practice.
  46652. Programmers normally use conditionals on '__STDC__' to ask whether
  46653. it is safe to use certain features of ISO C, such as function
  46654. prototypes or ISO token concatenation. Since plain 'gcc' supports
  46655. all the features of ISO C, the correct answer to these questions is
  46656. "yes".
  46657. Some users try to use '__STDC__' to check for the availability of
  46658. certain library facilities. This is actually incorrect usage in an
  46659. ISO C program, because the ISO C standard says that a conforming
  46660. freestanding implementation should define '__STDC__' even though it
  46661. does not have the library facilities. 'gcc -ansi -pedantic' is a
  46662. conforming freestanding implementation, and it is therefore
  46663. required to define '__STDC__', even though it does not come with an
  46664. ISO C library.
  46665. Sometimes people say that defining '__STDC__' in a compiler that
  46666. does not completely conform to the ISO C standard somehow violates
  46667. the standard. This is illogical. The standard is a standard for
  46668. compilers that claim to support ISO C, such as 'gcc -ansi'--not for
  46669. other compilers such as plain 'gcc'. Whatever the ISO C standard
  46670. says is relevant to the design of plain 'gcc' without '-ansi' only
  46671. for pragmatic reasons, not as a requirement.
  46672. GCC normally defines '__STDC__' to be 1, and in addition defines
  46673. '__STRICT_ANSI__' if you specify the '-ansi' option, or a '-std'
  46674. option for strict conformance to some version of ISO C. On some
  46675. hosts, system include files use a different convention, where
  46676. '__STDC__' is normally 0, but is 1 if the user specifies strict
  46677. conformance to the C Standard. GCC follows the host convention
  46678. when processing system include files, but when processing user
  46679. files it follows the usual GNU C convention.
  46680. * Undefining '__STDC__' in C++.
  46681. Programs written to compile with C++-to-C translators get the value
  46682. of '__STDC__' that goes with the C compiler that is subsequently
  46683. used. These programs must test '__STDC__' to determine what kind
  46684. of C preprocessor that compiler uses: whether they should
  46685. concatenate tokens in the ISO C fashion or in the traditional
  46686. fashion.
  46687. These programs work properly with GNU C++ if '__STDC__' is defined.
  46688. They would not work otherwise.
  46689. In addition, many header files are written to provide prototypes in
  46690. ISO C but not in traditional C. Many of these header files can
  46691. work without change in C++ provided '__STDC__' is defined. If
  46692. '__STDC__' is not defined, they will all fail, and will all need to
  46693. be changed to test explicitly for C++ as well.
  46694. * Deleting "empty" loops.
  46695. Historically, GCC has not deleted "empty" loops under the
  46696. assumption that the most likely reason you would put one in a
  46697. program is to have a delay, so deleting them will not make real
  46698. programs run any faster.
  46699. However, the rationale here is that optimization of a nonempty loop
  46700. cannot produce an empty one. This held for carefully written C
  46701. compiled with less powerful optimizers but is not always the case
  46702. for carefully written C++ or with more powerful optimizers. Thus
  46703. GCC will remove operations from loops whenever it can determine
  46704. those operations are not externally visible (apart from the time
  46705. taken to execute them, of course). In case the loop can be proved
  46706. to be finite, GCC will also remove the loop itself.
  46707. Be aware of this when performing timing tests, for instance the
  46708. following loop can be completely removed, provided
  46709. 'some_expression' can provably not change any global state.
  46710. {
  46711. int sum = 0;
  46712. int ix;
  46713. for (ix = 0; ix != 10000; ix++)
  46714. sum += some_expression;
  46715. }
  46716. Even though 'sum' is accumulated in the loop, no use is made of
  46717. that summation, so the accumulation can be removed.
  46718. * Making side effects happen in the same order as in some other
  46719. compiler.
  46720. It is never safe to depend on the order of evaluation of side
  46721. effects. For example, a function call like this may very well
  46722. behave differently from one compiler to another:
  46723. void func (int, int);
  46724. int i = 2;
  46725. func (i++, i++);
  46726. There is no guarantee (in either the C or the C++ standard language
  46727. definitions) that the increments will be evaluated in any
  46728. particular order. Either increment might happen first. 'func'
  46729. might get the arguments '2, 3', or it might get '3, 2', or even '2,
  46730. 2'.
  46731. * Making certain warnings into errors by default.
  46732. Some ISO C testsuites report failure when the compiler does not
  46733. produce an error message for a certain program.
  46734. ISO C requires a "diagnostic" message for certain kinds of invalid
  46735. programs, but a warning is defined by GCC to count as a diagnostic.
  46736. If GCC produces a warning but not an error, that is correct ISO C
  46737. support. If testsuites call this "failure", they should be run
  46738. with the GCC option '-pedantic-errors', which will turn these
  46739. warnings into errors.
  46740. 
  46741. File: gcc.info, Node: Warnings and Errors, Prev: Non-bugs, Up: Trouble
  46742. 14.9 Warning Messages and Error Messages
  46743. ========================================
  46744. The GNU compiler can produce two kinds of diagnostics: errors and
  46745. warnings. Each kind has a different purpose:
  46746. "Errors" report problems that make it impossible to compile your
  46747. program. GCC reports errors with the source file name and line
  46748. number where the problem is apparent.
  46749. "Warnings" report other unusual conditions in your code that _may_
  46750. indicate a problem, although compilation can (and does) proceed.
  46751. Warning messages also report the source file name and line number,
  46752. but include the text 'warning:' to distinguish them from error
  46753. messages.
  46754. Warnings may indicate danger points where you should check to make sure
  46755. that your program really does what you intend; or the use of obsolete
  46756. features; or the use of nonstandard features of GNU C or C++. Many
  46757. warnings are issued only if you ask for them, with one of the '-W'
  46758. options (for instance, '-Wall' requests a variety of useful warnings).
  46759. GCC always tries to compile your program if possible; it never
  46760. gratuitously rejects a program whose meaning is clear merely because
  46761. (for instance) it fails to conform to a standard. In some cases,
  46762. however, the C and C++ standards specify that certain extensions are
  46763. forbidden, and a diagnostic _must_ be issued by a conforming compiler.
  46764. The '-pedantic' option tells GCC to issue warnings in such cases;
  46765. '-pedantic-errors' says to make them errors instead. This does not mean
  46766. that _all_ non-ISO constructs get warnings or errors.
  46767. *Note Options to Request or Suppress Warnings: Warning Options, for
  46768. more detail on these and related command-line options.
  46769. 
  46770. File: gcc.info, Node: Bugs, Next: Service, Prev: Trouble, Up: Top
  46771. 15 Reporting Bugs
  46772. *****************
  46773. Your bug reports play an essential role in making GCC reliable.
  46774. When you encounter a problem, the first thing to do is to see if it is
  46775. already known. *Note Trouble::. If it isn't known, then you should
  46776. report the problem.
  46777. * Menu:
  46778. * Criteria: Bug Criteria. Have you really found a bug?
  46779. * Reporting: Bug Reporting. How to report a bug effectively.
  46780. 
  46781. File: gcc.info, Node: Bug Criteria, Next: Bug Reporting, Up: Bugs
  46782. 15.1 Have You Found a Bug?
  46783. ==========================
  46784. If you are not sure whether you have found a bug, here are some
  46785. guidelines:
  46786. * If the compiler gets a fatal signal, for any input whatever, that
  46787. is a compiler bug. Reliable compilers never crash.
  46788. * If the compiler produces invalid assembly code, for any input
  46789. whatever (except an 'asm' statement), that is a compiler bug,
  46790. unless the compiler reports errors (not just warnings) which would
  46791. ordinarily prevent the assembler from being run.
  46792. * If the compiler produces valid assembly code that does not
  46793. correctly execute the input source code, that is a compiler bug.
  46794. However, you must double-check to make sure, because you may have a
  46795. program whose behavior is undefined, which happened by chance to
  46796. give the desired results with another C or C++ compiler.
  46797. For example, in many nonoptimizing compilers, you can write 'x;' at
  46798. the end of a function instead of 'return x;', with the same
  46799. results. But the value of the function is undefined if 'return' is
  46800. omitted; it is not a bug when GCC produces different results.
  46801. Problems often result from expressions with two increment
  46802. operators, as in 'f (*p++, *p++)'. Your previous compiler might
  46803. have interpreted that expression the way you intended; GCC might
  46804. interpret it another way. Neither compiler is wrong. The bug is
  46805. in your code.
  46806. After you have localized the error to a single source line, it
  46807. should be easy to check for these things. If your program is
  46808. correct and well defined, you have found a compiler bug.
  46809. * If the compiler produces an error message for valid input, that is
  46810. a compiler bug.
  46811. * If the compiler does not produce an error message for invalid
  46812. input, that is a compiler bug. However, you should note that your
  46813. idea of "invalid input" might be someone else's idea of "an
  46814. extension" or "support for traditional practice".
  46815. * If you are an experienced user of one of the languages GCC
  46816. supports, your suggestions for improvement of GCC are welcome in
  46817. any case.
  46818. 
  46819. File: gcc.info, Node: Bug Reporting, Prev: Bug Criteria, Up: Bugs
  46820. 15.2 How and Where to Report Bugs
  46821. =================================
  46822. Bugs should be reported to the bug database at
  46823. <https://gcc.gnu.org/bugs/>.
  46824. 
  46825. File: gcc.info, Node: Service, Next: Contributing, Prev: Bugs, Up: Top
  46826. 16 How To Get Help with GCC
  46827. ***************************
  46828. If you need help installing, using or changing GCC, there are two ways
  46829. to find it:
  46830. * Send a message to a suitable network mailing list. First try
  46831. <gcc-help@gcc.gnu.org> (for help installing or using GCC), and if
  46832. that brings no response, try <gcc@gcc.gnu.org>. For help changing
  46833. GCC, ask <gcc@gcc.gnu.org>. If you think you have found a bug in
  46834. GCC, please report it following the instructions at *note Bug
  46835. Reporting::.
  46836. * Look in the service directory for someone who might help you for a
  46837. fee. The service directory is found at
  46838. <https://www.fsf.org/resources/service>.
  46839. For further information, see <http://gcc.gnu.org/faq.html#support>.
  46840. 
  46841. File: gcc.info, Node: Contributing, Next: Funding, Prev: Service, Up: Top
  46842. 17 Contributing to GCC Development
  46843. **********************************
  46844. If you would like to help pretest GCC releases to assure they work well,
  46845. current development sources are available via Git (see
  46846. <http://gcc.gnu.org/git.html>). Source and binary snapshots are also
  46847. available for FTP; see <http://gcc.gnu.org/snapshots.html>.
  46848. If you would like to work on improvements to GCC, please read the
  46849. advice at these URLs:
  46850. <http://gcc.gnu.org/contribute.html>
  46851. <http://gcc.gnu.org/contributewhy.html>
  46852. for information on how to make useful contributions and avoid
  46853. duplication of effort. Suggested projects are listed at
  46854. <http://gcc.gnu.org/projects/>.
  46855. 
  46856. File: gcc.info, Node: Funding, Next: GNU Project, Prev: Contributing, Up: Top
  46857. Funding Free Software
  46858. *********************
  46859. If you want to have more free software a few years from now, it makes
  46860. sense for you to help encourage people to contribute funds for its
  46861. development. The most effective approach known is to encourage
  46862. commercial redistributors to donate.
  46863. Users of free software systems can boost the pace of development by
  46864. encouraging for-a-fee distributors to donate part of their selling price
  46865. to free software developers--the Free Software Foundation, and others.
  46866. The way to convince distributors to do this is to demand it and expect
  46867. it from them. So when you compare distributors, judge them partly by
  46868. how much they give to free software development. Show distributors they
  46869. must compete to be the one who gives the most.
  46870. To make this approach work, you must insist on numbers that you can
  46871. compare, such as, "We will donate ten dollars to the Frobnitz project
  46872. for each disk sold." Don't be satisfied with a vague promise, such as
  46873. "A portion of the profits are donated," since it doesn't give a basis
  46874. for comparison.
  46875. Even a precise fraction "of the profits from this disk" is not very
  46876. meaningful, since creative accounting and unrelated business decisions
  46877. can greatly alter what fraction of the sales price counts as profit. If
  46878. the price you pay is $50, ten percent of the profit is probably less
  46879. than a dollar; it might be a few cents, or nothing at all.
  46880. Some redistributors do development work themselves. This is useful
  46881. too; but to keep everyone honest, you need to inquire how much they do,
  46882. and what kind. Some kinds of development make much more long-term
  46883. difference than others. For example, maintaining a separate version of
  46884. a program contributes very little; maintaining the standard version of a
  46885. program for the whole community contributes much. Easy new ports
  46886. contribute little, since someone else would surely do them; difficult
  46887. ports such as adding a new CPU to the GNU Compiler Collection contribute
  46888. more; major new features or packages contribute the most.
  46889. By establishing the idea that supporting further development is "the
  46890. proper thing to do" when distributing free software for a fee, we can
  46891. assure a steady flow of resources into making more free software.
  46892. Copyright (C) 1994 Free Software Foundation, Inc.
  46893. Verbatim copying and redistribution of this section is permitted
  46894. without royalty; alteration is not permitted.
  46895. 
  46896. File: gcc.info, Node: GNU Project, Next: Copying, Prev: Funding, Up: Top
  46897. The GNU Project and GNU/Linux
  46898. *****************************
  46899. The GNU Project was launched in 1984 to develop a complete Unix-like
  46900. operating system which is free software: the GNU system. (GNU is a
  46901. recursive acronym for "GNU's Not Unix"; it is pronounced "guh-NEW".)
  46902. Variants of the GNU operating system, which use the kernel Linux, are
  46903. now widely used; though these systems are often referred to as "Linux",
  46904. they are more accurately called GNU/Linux systems.
  46905. For more information, see:
  46906. <http://www.gnu.org/>
  46907. <http://www.gnu.org/gnu/linux-and-gnu.html>
  46908. 
  46909. File: gcc.info, Node: Copying, Next: GNU Free Documentation License, Prev: GNU Project, Up: Top
  46910. GNU General Public License
  46911. **************************
  46912. Version 3, 29 June 2007
  46913. Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
  46914. Everyone is permitted to copy and distribute verbatim copies of this
  46915. license document, but changing it is not allowed.
  46916. Preamble
  46917. ========
  46918. The GNU General Public License is a free, copyleft license for software
  46919. and other kinds of works.
  46920. The licenses for most software and other practical works are designed
  46921. to take away your freedom to share and change the works. By contrast,
  46922. the GNU General Public License is intended to guarantee your freedom to
  46923. share and change all versions of a program-to make sure it remains free
  46924. software for all its users. We, the Free Software Foundation, use the
  46925. GNU General Public License for most of our software; it applies also to
  46926. any other work released this way by its authors. You can apply it to
  46927. your programs, too.
  46928. When we speak of free software, we are referring to freedom, not price.
  46929. Our General Public Licenses are designed to make sure that you have the
  46930. freedom to distribute copies of free software (and charge for them if
  46931. you wish), that you receive source code or can get it if you want it,
  46932. that you can change the software or use pieces of it in new free
  46933. programs, and that you know you can do these things.
  46934. To protect your rights, we need to prevent others from denying you
  46935. these rights or asking you to surrender the rights. Therefore, you have
  46936. certain responsibilities if you distribute copies of the software, or if
  46937. you modify it: responsibilities to respect the freedom of others.
  46938. For example, if you distribute copies of such a program, whether gratis
  46939. or for a fee, you must pass on to the recipients the same freedoms that
  46940. you received. You must make sure that they, too, receive or can get the
  46941. source code. And you must show them these terms so they know their
  46942. rights.
  46943. Developers that use the GNU GPL protect your rights with two steps: (1)
  46944. assert copyright on the software, and (2) offer you this License giving
  46945. you legal permission to copy, distribute and/or modify it.
  46946. For the developers' and authors' protection, the GPL clearly explains
  46947. that there is no warranty for this free software. For both users' and
  46948. authors' sake, the GPL requires that modified versions be marked as
  46949. changed, so that their problems will not be attributed erroneously to
  46950. authors of previous versions.
  46951. Some devices are designed to deny users access to install or run
  46952. modified versions of the software inside them, although the manufacturer
  46953. can do so. This is fundamentally incompatible with the aim of
  46954. protecting users' freedom to change the software. The systematic
  46955. pattern of such abuse occurs in the area of products for individuals to
  46956. use, which is precisely where it is most unacceptable. Therefore, we
  46957. have designed this version of the GPL to prohibit the practice for those
  46958. products. If such problems arise substantially in other domains, we
  46959. stand ready to extend this provision to those domains in future versions
  46960. of the GPL, as needed to protect the freedom of users.
  46961. Finally, every program is threatened constantly by software patents.
  46962. States should not allow patents to restrict development and use of
  46963. software on general-purpose computers, but in those that do, we wish to
  46964. avoid the special danger that patents applied to a free program could
  46965. make it effectively proprietary. To prevent this, the GPL assures that
  46966. patents cannot be used to render the program non-free.
  46967. The precise terms and conditions for copying, distribution and
  46968. modification follow.
  46969. TERMS AND CONDITIONS
  46970. ====================
  46971. 0. Definitions.
  46972. "This License" refers to version 3 of the GNU General Public
  46973. License.
  46974. "Copyright" also means copyright-like laws that apply to other
  46975. kinds of works, such as semiconductor masks.
  46976. "The Program" refers to any copyrightable work licensed under this
  46977. License. Each licensee is addressed as "you". "Licensees" and
  46978. "recipients" may be individuals or organizations.
  46979. To "modify" a work means to copy from or adapt all or part of the
  46980. work in a fashion requiring copyright permission, other than the
  46981. making of an exact copy. The resulting work is called a "modified
  46982. version" of the earlier work or a work "based on" the earlier work.
  46983. A "covered work" means either the unmodified Program or a work
  46984. based on the Program.
  46985. To "propagate" a work means to do anything with it that, without
  46986. permission, would make you directly or secondarily liable for
  46987. infringement under applicable copyright law, except executing it on
  46988. a computer or modifying a private copy. Propagation includes
  46989. copying, distribution (with or without modification), making
  46990. available to the public, and in some countries other activities as
  46991. well.
  46992. To "convey" a work means any kind of propagation that enables other
  46993. parties to make or receive copies. Mere interaction with a user
  46994. through a computer network, with no transfer of a copy, is not
  46995. conveying.
  46996. An interactive user interface displays "Appropriate Legal Notices"
  46997. to the extent that it includes a convenient and prominently visible
  46998. feature that (1) displays an appropriate copyright notice, and (2)
  46999. tells the user that there is no warranty for the work (except to
  47000. the extent that warranties are provided), that licensees may convey
  47001. the work under this License, and how to view a copy of this
  47002. License. If the interface presents a list of user commands or
  47003. options, such as a menu, a prominent item in the list meets this
  47004. criterion.
  47005. 1. Source Code.
  47006. The "source code" for a work means the preferred form of the work
  47007. for making modifications to it. "Object code" means any non-source
  47008. form of a work.
  47009. A "Standard Interface" means an interface that either is an
  47010. official standard defined by a recognized standards body, or, in
  47011. the case of interfaces specified for a particular programming
  47012. language, one that is widely used among developers working in that
  47013. language.
  47014. The "System Libraries" of an executable work include anything,
  47015. other than the work as a whole, that (a) is included in the normal
  47016. form of packaging a Major Component, but which is not part of that
  47017. Major Component, and (b) serves only to enable use of the work with
  47018. that Major Component, or to implement a Standard Interface for
  47019. which an implementation is available to the public in source code
  47020. form. A "Major Component", in this context, means a major
  47021. essential component (kernel, window system, and so on) of the
  47022. specific operating system (if any) on which the executable work
  47023. runs, or a compiler used to produce the work, or an object code
  47024. interpreter used to run it.
  47025. The "Corresponding Source" for a work in object code form means all
  47026. the source code needed to generate, install, and (for an executable
  47027. work) run the object code and to modify the work, including scripts
  47028. to control those activities. However, it does not include the
  47029. work's System Libraries, or general-purpose tools or generally
  47030. available free programs which are used unmodified in performing
  47031. those activities but which are not part of the work. For example,
  47032. Corresponding Source includes interface definition files associated
  47033. with source files for the work, and the source code for shared
  47034. libraries and dynamically linked subprograms that the work is
  47035. specifically designed to require, such as by intimate data
  47036. communication or control flow between those subprograms and other
  47037. parts of the work.
  47038. The Corresponding Source need not include anything that users can
  47039. regenerate automatically from other parts of the Corresponding
  47040. Source.
  47041. The Corresponding Source for a work in source code form is that
  47042. same work.
  47043. 2. Basic Permissions.
  47044. All rights granted under this License are granted for the term of
  47045. copyright on the Program, and are irrevocable provided the stated
  47046. conditions are met. This License explicitly affirms your unlimited
  47047. permission to run the unmodified Program. The output from running
  47048. a covered work is covered by this License only if the output, given
  47049. its content, constitutes a covered work. This License acknowledges
  47050. your rights of fair use or other equivalent, as provided by
  47051. copyright law.
  47052. You may make, run and propagate covered works that you do not
  47053. convey, without conditions so long as your license otherwise
  47054. remains in force. You may convey covered works to others for the
  47055. sole purpose of having them make modifications exclusively for you,
  47056. or provide you with facilities for running those works, provided
  47057. that you comply with the terms of this License in conveying all
  47058. material for which you do not control copyright. Those thus making
  47059. or running the covered works for you must do so exclusively on your
  47060. behalf, under your direction and control, on terms that prohibit
  47061. them from making any copies of your copyrighted material outside
  47062. their relationship with you.
  47063. Conveying under any other circumstances is permitted solely under
  47064. the conditions stated below. Sublicensing is not allowed; section
  47065. 10 makes it unnecessary.
  47066. 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
  47067. No covered work shall be deemed part of an effective technological
  47068. measure under any applicable law fulfilling obligations under
  47069. article 11 of the WIPO copyright treaty adopted on 20 December
  47070. 1996, or similar laws prohibiting or restricting circumvention of
  47071. such measures.
  47072. When you convey a covered work, you waive any legal power to forbid
  47073. circumvention of technological measures to the extent such
  47074. circumvention is effected by exercising rights under this License
  47075. with respect to the covered work, and you disclaim any intention to
  47076. limit operation or modification of the work as a means of
  47077. enforcing, against the work's users, your or third parties' legal
  47078. rights to forbid circumvention of technological measures.
  47079. 4. Conveying Verbatim Copies.
  47080. You may convey verbatim copies of the Program's source code as you
  47081. receive it, in any medium, provided that you conspicuously and
  47082. appropriately publish on each copy an appropriate copyright notice;
  47083. keep intact all notices stating that this License and any
  47084. non-permissive terms added in accord with section 7 apply to the
  47085. code; keep intact all notices of the absence of any warranty; and
  47086. give all recipients a copy of this License along with the Program.
  47087. You may charge any price or no price for each copy that you convey,
  47088. and you may offer support or warranty protection for a fee.
  47089. 5. Conveying Modified Source Versions.
  47090. You may convey a work based on the Program, or the modifications to
  47091. produce it from the Program, in the form of source code under the
  47092. terms of section 4, provided that you also meet all of these
  47093. conditions:
  47094. a. The work must carry prominent notices stating that you
  47095. modified it, and giving a relevant date.
  47096. b. The work must carry prominent notices stating that it is
  47097. released under this License and any conditions added under
  47098. section 7. This requirement modifies the requirement in
  47099. section 4 to "keep intact all notices".
  47100. c. You must license the entire work, as a whole, under this
  47101. License to anyone who comes into possession of a copy. This
  47102. License will therefore apply, along with any applicable
  47103. section 7 additional terms, to the whole of the work, and all
  47104. its parts, regardless of how they are packaged. This License
  47105. gives no permission to license the work in any other way, but
  47106. it does not invalidate such permission if you have separately
  47107. received it.
  47108. d. If the work has interactive user interfaces, each must display
  47109. Appropriate Legal Notices; however, if the Program has
  47110. interactive interfaces that do not display Appropriate Legal
  47111. Notices, your work need not make them do so.
  47112. A compilation of a covered work with other separate and independent
  47113. works, which are not by their nature extensions of the covered
  47114. work, and which are not combined with it such as to form a larger
  47115. program, in or on a volume of a storage or distribution medium, is
  47116. called an "aggregate" if the compilation and its resulting
  47117. copyright are not used to limit the access or legal rights of the
  47118. compilation's users beyond what the individual works permit.
  47119. Inclusion of a covered work in an aggregate does not cause this
  47120. License to apply to the other parts of the aggregate.
  47121. 6. Conveying Non-Source Forms.
  47122. You may convey a covered work in object code form under the terms
  47123. of sections 4 and 5, provided that you also convey the
  47124. machine-readable Corresponding Source under the terms of this
  47125. License, in one of these ways:
  47126. a. Convey the object code in, or embodied in, a physical product
  47127. (including a physical distribution medium), accompanied by the
  47128. Corresponding Source fixed on a durable physical medium
  47129. customarily used for software interchange.
  47130. b. Convey the object code in, or embodied in, a physical product
  47131. (including a physical distribution medium), accompanied by a
  47132. written offer, valid for at least three years and valid for as
  47133. long as you offer spare parts or customer support for that
  47134. product model, to give anyone who possesses the object code
  47135. either (1) a copy of the Corresponding Source for all the
  47136. software in the product that is covered by this License, on a
  47137. durable physical medium customarily used for software
  47138. interchange, for a price no more than your reasonable cost of
  47139. physically performing this conveying of source, or (2) access
  47140. to copy the Corresponding Source from a network server at no
  47141. charge.
  47142. c. Convey individual copies of the object code with a copy of the
  47143. written offer to provide the Corresponding Source. This
  47144. alternative is allowed only occasionally and noncommercially,
  47145. and only if you received the object code with such an offer,
  47146. in accord with subsection 6b.
  47147. d. Convey the object code by offering access from a designated
  47148. place (gratis or for a charge), and offer equivalent access to
  47149. the Corresponding Source in the same way through the same
  47150. place at no further charge. You need not require recipients
  47151. to copy the Corresponding Source along with the object code.
  47152. If the place to copy the object code is a network server, the
  47153. Corresponding Source may be on a different server (operated by
  47154. you or a third party) that supports equivalent copying
  47155. facilities, provided you maintain clear directions next to the
  47156. object code saying where to find the Corresponding Source.
  47157. Regardless of what server hosts the Corresponding Source, you
  47158. remain obligated to ensure that it is available for as long as
  47159. needed to satisfy these requirements.
  47160. e. Convey the object code using peer-to-peer transmission,
  47161. provided you inform other peers where the object code and
  47162. Corresponding Source of the work are being offered to the
  47163. general public at no charge under subsection 6d.
  47164. A separable portion of the object code, whose source code is
  47165. excluded from the Corresponding Source as a System Library, need
  47166. not be included in conveying the object code work.
  47167. A "User Product" is either (1) a "consumer product", which means
  47168. any tangible personal property which is normally used for personal,
  47169. family, or household purposes, or (2) anything designed or sold for
  47170. incorporation into a dwelling. In determining whether a product is
  47171. a consumer product, doubtful cases shall be resolved in favor of
  47172. coverage. For a particular product received by a particular user,
  47173. "normally used" refers to a typical or common use of that class of
  47174. product, regardless of the status of the particular user or of the
  47175. way in which the particular user actually uses, or expects or is
  47176. expected to use, the product. A product is a consumer product
  47177. regardless of whether the product has substantial commercial,
  47178. industrial or non-consumer uses, unless such uses represent the
  47179. only significant mode of use of the product.
  47180. "Installation Information" for a User Product means any methods,
  47181. procedures, authorization keys, or other information required to
  47182. install and execute modified versions of a covered work in that
  47183. User Product from a modified version of its Corresponding Source.
  47184. The information must suffice to ensure that the continued
  47185. functioning of the modified object code is in no case prevented or
  47186. interfered with solely because modification has been made.
  47187. If you convey an object code work under this section in, or with,
  47188. or specifically for use in, a User Product, and the conveying
  47189. occurs as part of a transaction in which the right of possession
  47190. and use of the User Product is transferred to the recipient in
  47191. perpetuity or for a fixed term (regardless of how the transaction
  47192. is characterized), the Corresponding Source conveyed under this
  47193. section must be accompanied by the Installation Information. But
  47194. this requirement does not apply if neither you nor any third party
  47195. retains the ability to install modified object code on the User
  47196. Product (for example, the work has been installed in ROM).
  47197. The requirement to provide Installation Information does not
  47198. include a requirement to continue to provide support service,
  47199. warranty, or updates for a work that has been modified or installed
  47200. by the recipient, or for the User Product in which it has been
  47201. modified or installed. Access to a network may be denied when the
  47202. modification itself materially and adversely affects the operation
  47203. of the network or violates the rules and protocols for
  47204. communication across the network.
  47205. Corresponding Source conveyed, and Installation Information
  47206. provided, in accord with this section must be in a format that is
  47207. publicly documented (and with an implementation available to the
  47208. public in source code form), and must require no special password
  47209. or key for unpacking, reading or copying.
  47210. 7. Additional Terms.
  47211. "Additional permissions" are terms that supplement the terms of
  47212. this License by making exceptions from one or more of its
  47213. conditions. Additional permissions that are applicable to the
  47214. entire Program shall be treated as though they were included in
  47215. this License, to the extent that they are valid under applicable
  47216. law. If additional permissions apply only to part of the Program,
  47217. that part may be used separately under those permissions, but the
  47218. entire Program remains governed by this License without regard to
  47219. the additional permissions.
  47220. When you convey a copy of a covered work, you may at your option
  47221. remove any additional permissions from that copy, or from any part
  47222. of it. (Additional permissions may be written to require their own
  47223. removal in certain cases when you modify the work.) You may place
  47224. additional permissions on material, added by you to a covered work,
  47225. for which you have or can give appropriate copyright permission.
  47226. Notwithstanding any other provision of this License, for material
  47227. you add to a covered work, you may (if authorized by the copyright
  47228. holders of that material) supplement the terms of this License with
  47229. terms:
  47230. a. Disclaiming warranty or limiting liability differently from
  47231. the terms of sections 15 and 16 of this License; or
  47232. b. Requiring preservation of specified reasonable legal notices
  47233. or author attributions in that material or in the Appropriate
  47234. Legal Notices displayed by works containing it; or
  47235. c. Prohibiting misrepresentation of the origin of that material,
  47236. or requiring that modified versions of such material be marked
  47237. in reasonable ways as different from the original version; or
  47238. d. Limiting the use for publicity purposes of names of licensors
  47239. or authors of the material; or
  47240. e. Declining to grant rights under trademark law for use of some
  47241. trade names, trademarks, or service marks; or
  47242. f. Requiring indemnification of licensors and authors of that
  47243. material by anyone who conveys the material (or modified
  47244. versions of it) with contractual assumptions of liability to
  47245. the recipient, for any liability that these contractual
  47246. assumptions directly impose on those licensors and authors.
  47247. All other non-permissive additional terms are considered "further
  47248. restrictions" within the meaning of section 10. If the Program as
  47249. you received it, or any part of it, contains a notice stating that
  47250. it is governed by this License along with a term that is a further
  47251. restriction, you may remove that term. If a license document
  47252. contains a further restriction but permits relicensing or conveying
  47253. under this License, you may add to a covered work material governed
  47254. by the terms of that license document, provided that the further
  47255. restriction does not survive such relicensing or conveying.
  47256. If you add terms to a covered work in accord with this section, you
  47257. must place, in the relevant source files, a statement of the
  47258. additional terms that apply to those files, or a notice indicating
  47259. where to find the applicable terms.
  47260. Additional terms, permissive or non-permissive, may be stated in
  47261. the form of a separately written license, or stated as exceptions;
  47262. the above requirements apply either way.
  47263. 8. Termination.
  47264. You may not propagate or modify a covered work except as expressly
  47265. provided under this License. Any attempt otherwise to propagate or
  47266. modify it is void, and will automatically terminate your rights
  47267. under this License (including any patent licenses granted under the
  47268. third paragraph of section 11).
  47269. However, if you cease all violation of this License, then your
  47270. license from a particular copyright holder is reinstated (a)
  47271. provisionally, unless and until the copyright holder explicitly and
  47272. finally terminates your license, and (b) permanently, if the
  47273. copyright holder fails to notify you of the violation by some
  47274. reasonable means prior to 60 days after the cessation.
  47275. Moreover, your license from a particular copyright holder is
  47276. reinstated permanently if the copyright holder notifies you of the
  47277. violation by some reasonable means, this is the first time you have
  47278. received notice of violation of this License (for any work) from
  47279. that copyright holder, and you cure the violation prior to 30 days
  47280. after your receipt of the notice.
  47281. Termination of your rights under this section does not terminate
  47282. the licenses of parties who have received copies or rights from you
  47283. under this License. If your rights have been terminated and not
  47284. permanently reinstated, you do not qualify to receive new licenses
  47285. for the same material under section 10.
  47286. 9. Acceptance Not Required for Having Copies.
  47287. You are not required to accept this License in order to receive or
  47288. run a copy of the Program. Ancillary propagation of a covered work
  47289. occurring solely as a consequence of using peer-to-peer
  47290. transmission to receive a copy likewise does not require
  47291. acceptance. However, nothing other than this License grants you
  47292. permission to propagate or modify any covered work. These actions
  47293. infringe copyright if you do not accept this License. Therefore,
  47294. by modifying or propagating a covered work, you indicate your
  47295. acceptance of this License to do so.
  47296. 10. Automatic Licensing of Downstream Recipients.
  47297. Each time you convey a covered work, the recipient automatically
  47298. receives a license from the original licensors, to run, modify and
  47299. propagate that work, subject to this License. You are not
  47300. responsible for enforcing compliance by third parties with this
  47301. License.
  47302. An "entity transaction" is a transaction transferring control of an
  47303. organization, or substantially all assets of one, or subdividing an
  47304. organization, or merging organizations. If propagation of a
  47305. covered work results from an entity transaction, each party to that
  47306. transaction who receives a copy of the work also receives whatever
  47307. licenses to the work the party's predecessor in interest had or
  47308. could give under the previous paragraph, plus a right to possession
  47309. of the Corresponding Source of the work from the predecessor in
  47310. interest, if the predecessor has it or can get it with reasonable
  47311. efforts.
  47312. You may not impose any further restrictions on the exercise of the
  47313. rights granted or affirmed under this License. For example, you
  47314. may not impose a license fee, royalty, or other charge for exercise
  47315. of rights granted under this License, and you may not initiate
  47316. litigation (including a cross-claim or counterclaim in a lawsuit)
  47317. alleging that any patent claim is infringed by making, using,
  47318. selling, offering for sale, or importing the Program or any portion
  47319. of it.
  47320. 11. Patents.
  47321. A "contributor" is a copyright holder who authorizes use under this
  47322. License of the Program or a work on which the Program is based.
  47323. The work thus licensed is called the contributor's "contributor
  47324. version".
  47325. A contributor's "essential patent claims" are all patent claims
  47326. owned or controlled by the contributor, whether already acquired or
  47327. hereafter acquired, that would be infringed by some manner,
  47328. permitted by this License, of making, using, or selling its
  47329. contributor version, but do not include claims that would be
  47330. infringed only as a consequence of further modification of the
  47331. contributor version. For purposes of this definition, "control"
  47332. includes the right to grant patent sublicenses in a manner
  47333. consistent with the requirements of this License.
  47334. Each contributor grants you a non-exclusive, worldwide,
  47335. royalty-free patent license under the contributor's essential
  47336. patent claims, to make, use, sell, offer for sale, import and
  47337. otherwise run, modify and propagate the contents of its contributor
  47338. version.
  47339. In the following three paragraphs, a "patent license" is any
  47340. express agreement or commitment, however denominated, not to
  47341. enforce a patent (such as an express permission to practice a
  47342. patent or covenant not to sue for patent infringement). To "grant"
  47343. such a patent license to a party means to make such an agreement or
  47344. commitment not to enforce a patent against the party.
  47345. If you convey a covered work, knowingly relying on a patent
  47346. license, and the Corresponding Source of the work is not available
  47347. for anyone to copy, free of charge and under the terms of this
  47348. License, through a publicly available network server or other
  47349. readily accessible means, then you must either (1) cause the
  47350. Corresponding Source to be so available, or (2) arrange to deprive
  47351. yourself of the benefit of the patent license for this particular
  47352. work, or (3) arrange, in a manner consistent with the requirements
  47353. of this License, to extend the patent license to downstream
  47354. recipients. "Knowingly relying" means you have actual knowledge
  47355. that, but for the patent license, your conveying the covered work
  47356. in a country, or your recipient's use of the covered work in a
  47357. country, would infringe one or more identifiable patents in that
  47358. country that you have reason to believe are valid.
  47359. If, pursuant to or in connection with a single transaction or
  47360. arrangement, you convey, or propagate by procuring conveyance of, a
  47361. covered work, and grant a patent license to some of the parties
  47362. receiving the covered work authorizing them to use, propagate,
  47363. modify or convey a specific copy of the covered work, then the
  47364. patent license you grant is automatically extended to all
  47365. recipients of the covered work and works based on it.
  47366. A patent license is "discriminatory" if it does not include within
  47367. the scope of its coverage, prohibits the exercise of, or is
  47368. conditioned on the non-exercise of one or more of the rights that
  47369. are specifically granted under this License. You may not convey a
  47370. covered work if you are a party to an arrangement with a third
  47371. party that is in the business of distributing software, under which
  47372. you make payment to the third party based on the extent of your
  47373. activity of conveying the work, and under which the third party
  47374. grants, to any of the parties who would receive the covered work
  47375. from you, a discriminatory patent license (a) in connection with
  47376. copies of the covered work conveyed by you (or copies made from
  47377. those copies), or (b) primarily for and in connection with specific
  47378. products or compilations that contain the covered work, unless you
  47379. entered into that arrangement, or that patent license was granted,
  47380. prior to 28 March 2007.
  47381. Nothing in this License shall be construed as excluding or limiting
  47382. any implied license or other defenses to infringement that may
  47383. otherwise be available to you under applicable patent law.
  47384. 12. No Surrender of Others' Freedom.
  47385. If conditions are imposed on you (whether by court order, agreement
  47386. or otherwise) that contradict the conditions of this License, they
  47387. do not excuse you from the conditions of this License. If you
  47388. cannot convey a covered work so as to satisfy simultaneously your
  47389. obligations under this License and any other pertinent obligations,
  47390. then as a consequence you may not convey it at all. For example,
  47391. if you agree to terms that obligate you to collect a royalty for
  47392. further conveying from those to whom you convey the Program, the
  47393. only way you could satisfy both those terms and this License would
  47394. be to refrain entirely from conveying the Program.
  47395. 13. Use with the GNU Affero General Public License.
  47396. Notwithstanding any other provision of this License, you have
  47397. permission to link or combine any covered work with a work licensed
  47398. under version 3 of the GNU Affero General Public License into a
  47399. single combined work, and to convey the resulting work. The terms
  47400. of this License will continue to apply to the part which is the
  47401. covered work, but the special requirements of the GNU Affero
  47402. General Public License, section 13, concerning interaction through
  47403. a network will apply to the combination as such.
  47404. 14. Revised Versions of this License.
  47405. The Free Software Foundation may publish revised and/or new
  47406. versions of the GNU General Public License from time to time. Such
  47407. new versions will be similar in spirit to the present version, but
  47408. may differ in detail to address new problems or concerns.
  47409. Each version is given a distinguishing version number. If the
  47410. Program specifies that a certain numbered version of the GNU
  47411. General Public License "or any later version" applies to it, you
  47412. have the option of following the terms and conditions either of
  47413. that numbered version or of any later version published by the Free
  47414. Software Foundation. If the Program does not specify a version
  47415. number of the GNU General Public License, you may choose any
  47416. version ever published by the Free Software Foundation.
  47417. If the Program specifies that a proxy can decide which future
  47418. versions of the GNU General Public License can be used, that
  47419. proxy's public statement of acceptance of a version permanently
  47420. authorizes you to choose that version for the Program.
  47421. Later license versions may give you additional or different
  47422. permissions. However, no additional obligations are imposed on any
  47423. author or copyright holder as a result of your choosing to follow a
  47424. later version.
  47425. 15. Disclaimer of Warranty.
  47426. THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
  47427. APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE
  47428. COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS"
  47429. WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED,
  47430. INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  47431. MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE
  47432. RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU.
  47433. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL
  47434. NECESSARY SERVICING, REPAIR OR CORRECTION.
  47435. 16. Limitation of Liability.
  47436. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
  47437. WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES
  47438. AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR
  47439. DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
  47440. CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE
  47441. THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA
  47442. BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
  47443. PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
  47444. PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF
  47445. THE POSSIBILITY OF SUCH DAMAGES.
  47446. 17. Interpretation of Sections 15 and 16.
  47447. If the disclaimer of warranty and limitation of liability provided
  47448. above cannot be given local legal effect according to their terms,
  47449. reviewing courts shall apply local law that most closely
  47450. approximates an absolute waiver of all civil liability in
  47451. connection with the Program, unless a warranty or assumption of
  47452. liability accompanies a copy of the Program in return for a fee.
  47453. END OF TERMS AND CONDITIONS
  47454. ===========================
  47455. How to Apply These Terms to Your New Programs
  47456. =============================================
  47457. If you develop a new program, and you want it to be of the greatest
  47458. possible use to the public, the best way to achieve this is to make it
  47459. free software which everyone can redistribute and change under these
  47460. terms.
  47461. To do so, attach the following notices to the program. It is safest to
  47462. attach them to the start of each source file to most effectively state
  47463. the exclusion of warranty; and each file should have at least the
  47464. "copyright" line and a pointer to where the full notice is found.
  47465. ONE LINE TO GIVE THE PROGRAM'S NAME AND A BRIEF IDEA OF WHAT IT DOES.
  47466. Copyright (C) YEAR NAME OF AUTHOR
  47467. This program is free software: you can redistribute it and/or modify
  47468. it under the terms of the GNU General Public License as published by
  47469. the Free Software Foundation, either version 3 of the License, or (at
  47470. your option) any later version.
  47471. This program is distributed in the hope that it will be useful, but
  47472. WITHOUT ANY WARRANTY; without even the implied warranty of
  47473. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  47474. General Public License for more details.
  47475. You should have received a copy of the GNU General Public License
  47476. along with this program. If not, see <http://www.gnu.org/licenses/>.
  47477. Also add information on how to contact you by electronic and paper
  47478. mail.
  47479. If the program does terminal interaction, make it output a short notice
  47480. like this when it starts in an interactive mode:
  47481. PROGRAM Copyright (C) YEAR NAME OF AUTHOR
  47482. This program comes with ABSOLUTELY NO WARRANTY; for details type 'show w'.
  47483. This is free software, and you are welcome to redistribute it
  47484. under certain conditions; type 'show c' for details.
  47485. The hypothetical commands 'show w' and 'show c' should show the
  47486. appropriate parts of the General Public License. Of course, your
  47487. program's commands might be different; for a GUI interface, you would
  47488. use an "about box".
  47489. You should also get your employer (if you work as a programmer) or
  47490. school, if any, to sign a "copyright disclaimer" for the program, if
  47491. necessary. For more information on this, and how to apply and follow
  47492. the GNU GPL, see <http://www.gnu.org/licenses/>.
  47493. The GNU General Public License does not permit incorporating your
  47494. program into proprietary programs. If your program is a subroutine
  47495. library, you may consider it more useful to permit linking proprietary
  47496. applications with the library. If this is what you want to do, use the
  47497. GNU Lesser General Public License instead of this License. But first,
  47498. please read <https://www.gnu.org/licenses/why-not-lgpl.html>.
  47499. 
  47500. File: gcc.info, Node: GNU Free Documentation License, Next: Contributors, Prev: Copying, Up: Top
  47501. GNU Free Documentation License
  47502. ******************************
  47503. Version 1.3, 3 November 2008
  47504. Copyright (C) 2000, 2001, 2002, 2007, 2008 Free Software Foundation, Inc.
  47505. <http://fsf.org/>
  47506. Everyone is permitted to copy and distribute verbatim copies
  47507. of this license document, but changing it is not allowed.
  47508. 0. PREAMBLE
  47509. The purpose of this License is to make a manual, textbook, or other
  47510. functional and useful document "free" in the sense of freedom: to
  47511. assure everyone the effective freedom to copy and redistribute it,
  47512. with or without modifying it, either commercially or
  47513. noncommercially. Secondarily, this License preserves for the
  47514. author and publisher a way to get credit for their work, while not
  47515. being considered responsible for modifications made by others.
  47516. This License is a kind of "copyleft", which means that derivative
  47517. works of the document must themselves be free in the same sense.
  47518. It complements the GNU General Public License, which is a copyleft
  47519. license designed for free software.
  47520. We have designed this License in order to use it for manuals for
  47521. free software, because free software needs free documentation: a
  47522. free program should come with manuals providing the same freedoms
  47523. that the software does. But this License is not limited to
  47524. software manuals; it can be used for any textual work, regardless
  47525. of subject matter or whether it is published as a printed book. We
  47526. recommend this License principally for works whose purpose is
  47527. instruction or reference.
  47528. 1. APPLICABILITY AND DEFINITIONS
  47529. This License applies to any manual or other work, in any medium,
  47530. that contains a notice placed by the copyright holder saying it can
  47531. be distributed under the terms of this License. Such a notice
  47532. grants a world-wide, royalty-free license, unlimited in duration,
  47533. to use that work under the conditions stated herein. The
  47534. "Document", below, refers to any such manual or work. Any member
  47535. of the public is a licensee, and is addressed as "you". You accept
  47536. the license if you copy, modify or distribute the work in a way
  47537. requiring permission under copyright law.
  47538. A "Modified Version" of the Document means any work containing the
  47539. Document or a portion of it, either copied verbatim, or with
  47540. modifications and/or translated into another language.
  47541. A "Secondary Section" is a named appendix or a front-matter section
  47542. of the Document that deals exclusively with the relationship of the
  47543. publishers or authors of the Document to the Document's overall
  47544. subject (or to related matters) and contains nothing that could
  47545. fall directly within that overall subject. (Thus, if the Document
  47546. is in part a textbook of mathematics, a Secondary Section may not
  47547. explain any mathematics.) The relationship could be a matter of
  47548. historical connection with the subject or with related matters, or
  47549. of legal, commercial, philosophical, ethical or political position
  47550. regarding them.
  47551. The "Invariant Sections" are certain Secondary Sections whose
  47552. titles are designated, as being those of Invariant Sections, in the
  47553. notice that says that the Document is released under this License.
  47554. If a section does not fit the above definition of Secondary then it
  47555. is not allowed to be designated as Invariant. The Document may
  47556. contain zero Invariant Sections. If the Document does not identify
  47557. any Invariant Sections then there are none.
  47558. The "Cover Texts" are certain short passages of text that are
  47559. listed, as Front-Cover Texts or Back-Cover Texts, in the notice
  47560. that says that the Document is released under this License. A
  47561. Front-Cover Text may be at most 5 words, and a Back-Cover Text may
  47562. be at most 25 words.
  47563. A "Transparent" copy of the Document means a machine-readable copy,
  47564. represented in a format whose specification is available to the
  47565. general public, that is suitable for revising the document
  47566. straightforwardly with generic text editors or (for images composed
  47567. of pixels) generic paint programs or (for drawings) some widely
  47568. available drawing editor, and that is suitable for input to text
  47569. formatters or for automatic translation to a variety of formats
  47570. suitable for input to text formatters. A copy made in an otherwise
  47571. Transparent file format whose markup, or absence of markup, has
  47572. been arranged to thwart or discourage subsequent modification by
  47573. readers is not Transparent. An image format is not Transparent if
  47574. used for any substantial amount of text. A copy that is not
  47575. "Transparent" is called "Opaque".
  47576. Examples of suitable formats for Transparent copies include plain
  47577. ASCII without markup, Texinfo input format, LaTeX input format,
  47578. SGML or XML using a publicly available DTD, and standard-conforming
  47579. simple HTML, PostScript or PDF designed for human modification.
  47580. Examples of transparent image formats include PNG, XCF and JPG.
  47581. Opaque formats include proprietary formats that can be read and
  47582. edited only by proprietary word processors, SGML or XML for which
  47583. the DTD and/or processing tools are not generally available, and
  47584. the machine-generated HTML, PostScript or PDF produced by some word
  47585. processors for output purposes only.
  47586. The "Title Page" means, for a printed book, the title page itself,
  47587. plus such following pages as are needed to hold, legibly, the
  47588. material this License requires to appear in the title page. For
  47589. works in formats which do not have any title page as such, "Title
  47590. Page" means the text near the most prominent appearance of the
  47591. work's title, preceding the beginning of the body of the text.
  47592. The "publisher" means any person or entity that distributes copies
  47593. of the Document to the public.
  47594. A section "Entitled XYZ" means a named subunit of the Document
  47595. whose title either is precisely XYZ or contains XYZ in parentheses
  47596. following text that translates XYZ in another language. (Here XYZ
  47597. stands for a specific section name mentioned below, such as
  47598. "Acknowledgements", "Dedications", "Endorsements", or "History".)
  47599. To "Preserve the Title" of such a section when you modify the
  47600. Document means that it remains a section "Entitled XYZ" according
  47601. to this definition.
  47602. The Document may include Warranty Disclaimers next to the notice
  47603. which states that this License applies to the Document. These
  47604. Warranty Disclaimers are considered to be included by reference in
  47605. this License, but only as regards disclaiming warranties: any other
  47606. implication that these Warranty Disclaimers may have is void and
  47607. has no effect on the meaning of this License.
  47608. 2. VERBATIM COPYING
  47609. You may copy and distribute the Document in any medium, either
  47610. commercially or noncommercially, provided that this License, the
  47611. copyright notices, and the license notice saying this License
  47612. applies to the Document are reproduced in all copies, and that you
  47613. add no other conditions whatsoever to those of this License. You
  47614. may not use technical measures to obstruct or control the reading
  47615. or further copying of the copies you make or distribute. However,
  47616. you may accept compensation in exchange for copies. If you
  47617. distribute a large enough number of copies you must also follow the
  47618. conditions in section 3.
  47619. You may also lend copies, under the same conditions stated above,
  47620. and you may publicly display copies.
  47621. 3. COPYING IN QUANTITY
  47622. If you publish printed copies (or copies in media that commonly
  47623. have printed covers) of the Document, numbering more than 100, and
  47624. the Document's license notice requires Cover Texts, you must
  47625. enclose the copies in covers that carry, clearly and legibly, all
  47626. these Cover Texts: Front-Cover Texts on the front cover, and
  47627. Back-Cover Texts on the back cover. Both covers must also clearly
  47628. and legibly identify you as the publisher of these copies. The
  47629. front cover must present the full title with all words of the title
  47630. equally prominent and visible. You may add other material on the
  47631. covers in addition. Copying with changes limited to the covers, as
  47632. long as they preserve the title of the Document and satisfy these
  47633. conditions, can be treated as verbatim copying in other respects.
  47634. If the required texts for either cover are too voluminous to fit
  47635. legibly, you should put the first ones listed (as many as fit
  47636. reasonably) on the actual cover, and continue the rest onto
  47637. adjacent pages.
  47638. If you publish or distribute Opaque copies of the Document
  47639. numbering more than 100, you must either include a machine-readable
  47640. Transparent copy along with each Opaque copy, or state in or with
  47641. each Opaque copy a computer-network location from which the general
  47642. network-using public has access to download using public-standard
  47643. network protocols a complete Transparent copy of the Document, free
  47644. of added material. If you use the latter option, you must take
  47645. reasonably prudent steps, when you begin distribution of Opaque
  47646. copies in quantity, to ensure that this Transparent copy will
  47647. remain thus accessible at the stated location until at least one
  47648. year after the last time you distribute an Opaque copy (directly or
  47649. through your agents or retailers) of that edition to the public.
  47650. It is requested, but not required, that you contact the authors of
  47651. the Document well before redistributing any large number of copies,
  47652. to give them a chance to provide you with an updated version of the
  47653. Document.
  47654. 4. MODIFICATIONS
  47655. You may copy and distribute a Modified Version of the Document
  47656. under the conditions of sections 2 and 3 above, provided that you
  47657. release the Modified Version under precisely this License, with the
  47658. Modified Version filling the role of the Document, thus licensing
  47659. distribution and modification of the Modified Version to whoever
  47660. possesses a copy of it. In addition, you must do these things in
  47661. the Modified Version:
  47662. A. Use in the Title Page (and on the covers, if any) a title
  47663. distinct from that of the Document, and from those of previous
  47664. versions (which should, if there were any, be listed in the
  47665. History section of the Document). You may use the same title
  47666. as a previous version if the original publisher of that
  47667. version gives permission.
  47668. B. List on the Title Page, as authors, one or more persons or
  47669. entities responsible for authorship of the modifications in
  47670. the Modified Version, together with at least five of the
  47671. principal authors of the Document (all of its principal
  47672. authors, if it has fewer than five), unless they release you
  47673. from this requirement.
  47674. C. State on the Title page the name of the publisher of the
  47675. Modified Version, as the publisher.
  47676. D. Preserve all the copyright notices of the Document.
  47677. E. Add an appropriate copyright notice for your modifications
  47678. adjacent to the other copyright notices.
  47679. F. Include, immediately after the copyright notices, a license
  47680. notice giving the public permission to use the Modified
  47681. Version under the terms of this License, in the form shown in
  47682. the Addendum below.
  47683. G. Preserve in that license notice the full lists of Invariant
  47684. Sections and required Cover Texts given in the Document's
  47685. license notice.
  47686. H. Include an unaltered copy of this License.
  47687. I. Preserve the section Entitled "History", Preserve its Title,
  47688. and add to it an item stating at least the title, year, new
  47689. authors, and publisher of the Modified Version as given on the
  47690. Title Page. If there is no section Entitled "History" in the
  47691. Document, create one stating the title, year, authors, and
  47692. publisher of the Document as given on its Title Page, then add
  47693. an item describing the Modified Version as stated in the
  47694. previous sentence.
  47695. J. Preserve the network location, if any, given in the Document
  47696. for public access to a Transparent copy of the Document, and
  47697. likewise the network locations given in the Document for
  47698. previous versions it was based on. These may be placed in the
  47699. "History" section. You may omit a network location for a work
  47700. that was published at least four years before the Document
  47701. itself, or if the original publisher of the version it refers
  47702. to gives permission.
  47703. K. For any section Entitled "Acknowledgements" or "Dedications",
  47704. Preserve the Title of the section, and preserve in the section
  47705. all the substance and tone of each of the contributor
  47706. acknowledgements and/or dedications given therein.
  47707. L. Preserve all the Invariant Sections of the Document, unaltered
  47708. in their text and in their titles. Section numbers or the
  47709. equivalent are not considered part of the section titles.
  47710. M. Delete any section Entitled "Endorsements". Such a section
  47711. may not be included in the Modified Version.
  47712. N. Do not retitle any existing section to be Entitled
  47713. "Endorsements" or to conflict in title with any Invariant
  47714. Section.
  47715. O. Preserve any Warranty Disclaimers.
  47716. If the Modified Version includes new front-matter sections or
  47717. appendices that qualify as Secondary Sections and contain no
  47718. material copied from the Document, you may at your option designate
  47719. some or all of these sections as invariant. To do this, add their
  47720. titles to the list of Invariant Sections in the Modified Version's
  47721. license notice. These titles must be distinct from any other
  47722. section titles.
  47723. You may add a section Entitled "Endorsements", provided it contains
  47724. nothing but endorsements of your Modified Version by various
  47725. parties--for example, statements of peer review or that the text
  47726. has been approved by an organization as the authoritative
  47727. definition of a standard.
  47728. You may add a passage of up to five words as a Front-Cover Text,
  47729. and a passage of up to 25 words as a Back-Cover Text, to the end of
  47730. the list of Cover Texts in the Modified Version. Only one passage
  47731. of Front-Cover Text and one of Back-Cover Text may be added by (or
  47732. through arrangements made by) any one entity. If the Document
  47733. already includes a cover text for the same cover, previously added
  47734. by you or by arrangement made by the same entity you are acting on
  47735. behalf of, you may not add another; but you may replace the old
  47736. one, on explicit permission from the previous publisher that added
  47737. the old one.
  47738. The author(s) and publisher(s) of the Document do not by this
  47739. License give permission to use their names for publicity for or to
  47740. assert or imply endorsement of any Modified Version.
  47741. 5. COMBINING DOCUMENTS
  47742. You may combine the Document with other documents released under
  47743. this License, under the terms defined in section 4 above for
  47744. modified versions, provided that you include in the combination all
  47745. of the Invariant Sections of all of the original documents,
  47746. unmodified, and list them all as Invariant Sections of your
  47747. combined work in its license notice, and that you preserve all
  47748. their Warranty Disclaimers.
  47749. The combined work need only contain one copy of this License, and
  47750. multiple identical Invariant Sections may be replaced with a single
  47751. copy. If there are multiple Invariant Sections with the same name
  47752. but different contents, make the title of each such section unique
  47753. by adding at the end of it, in parentheses, the name of the
  47754. original author or publisher of that section if known, or else a
  47755. unique number. Make the same adjustment to the section titles in
  47756. the list of Invariant Sections in the license notice of the
  47757. combined work.
  47758. In the combination, you must combine any sections Entitled
  47759. "History" in the various original documents, forming one section
  47760. Entitled "History"; likewise combine any sections Entitled
  47761. "Acknowledgements", and any sections Entitled "Dedications". You
  47762. must delete all sections Entitled "Endorsements."
  47763. 6. COLLECTIONS OF DOCUMENTS
  47764. You may make a collection consisting of the Document and other
  47765. documents released under this License, and replace the individual
  47766. copies of this License in the various documents with a single copy
  47767. that is included in the collection, provided that you follow the
  47768. rules of this License for verbatim copying of each of the documents
  47769. in all other respects.
  47770. You may extract a single document from such a collection, and
  47771. distribute it individually under this License, provided you insert
  47772. a copy of this License into the extracted document, and follow this
  47773. License in all other respects regarding verbatim copying of that
  47774. document.
  47775. 7. AGGREGATION WITH INDEPENDENT WORKS
  47776. A compilation of the Document or its derivatives with other
  47777. separate and independent documents or works, in or on a volume of a
  47778. storage or distribution medium, is called an "aggregate" if the
  47779. copyright resulting from the compilation is not used to limit the
  47780. legal rights of the compilation's users beyond what the individual
  47781. works permit. When the Document is included in an aggregate, this
  47782. License does not apply to the other works in the aggregate which
  47783. are not themselves derivative works of the Document.
  47784. If the Cover Text requirement of section 3 is applicable to these
  47785. copies of the Document, then if the Document is less than one half
  47786. of the entire aggregate, the Document's Cover Texts may be placed
  47787. on covers that bracket the Document within the aggregate, or the
  47788. electronic equivalent of covers if the Document is in electronic
  47789. form. Otherwise they must appear on printed covers that bracket
  47790. the whole aggregate.
  47791. 8. TRANSLATION
  47792. Translation is considered a kind of modification, so you may
  47793. distribute translations of the Document under the terms of section
  47794. 4. Replacing Invariant Sections with translations requires special
  47795. permission from their copyright holders, but you may include
  47796. translations of some or all Invariant Sections in addition to the
  47797. original versions of these Invariant Sections. You may include a
  47798. translation of this License, and all the license notices in the
  47799. Document, and any Warranty Disclaimers, provided that you also
  47800. include the original English version of this License and the
  47801. original versions of those notices and disclaimers. In case of a
  47802. disagreement between the translation and the original version of
  47803. this License or a notice or disclaimer, the original version will
  47804. prevail.
  47805. If a section in the Document is Entitled "Acknowledgements",
  47806. "Dedications", or "History", the requirement (section 4) to
  47807. Preserve its Title (section 1) will typically require changing the
  47808. actual title.
  47809. 9. TERMINATION
  47810. You may not copy, modify, sublicense, or distribute the Document
  47811. except as expressly provided under this License. Any attempt
  47812. otherwise to copy, modify, sublicense, or distribute it is void,
  47813. and will automatically terminate your rights under this License.
  47814. However, if you cease all violation of this License, then your
  47815. license from a particular copyright holder is reinstated (a)
  47816. provisionally, unless and until the copyright holder explicitly and
  47817. finally terminates your license, and (b) permanently, if the
  47818. copyright holder fails to notify you of the violation by some
  47819. reasonable means prior to 60 days after the cessation.
  47820. Moreover, your license from a particular copyright holder is
  47821. reinstated permanently if the copyright holder notifies you of the
  47822. violation by some reasonable means, this is the first time you have
  47823. received notice of violation of this License (for any work) from
  47824. that copyright holder, and you cure the violation prior to 30 days
  47825. after your receipt of the notice.
  47826. Termination of your rights under this section does not terminate
  47827. the licenses of parties who have received copies or rights from you
  47828. under this License. If your rights have been terminated and not
  47829. permanently reinstated, receipt of a copy of some or all of the
  47830. same material does not give you any rights to use it.
  47831. 10. FUTURE REVISIONS OF THIS LICENSE
  47832. The Free Software Foundation may publish new, revised versions of
  47833. the GNU Free Documentation License from time to time. Such new
  47834. versions will be similar in spirit to the present version, but may
  47835. differ in detail to address new problems or concerns. See
  47836. <http://www.gnu.org/copyleft/>.
  47837. Each version of the License is given a distinguishing version
  47838. number. If the Document specifies that a particular numbered
  47839. version of this License "or any later version" applies to it, you
  47840. have the option of following the terms and conditions either of
  47841. that specified version or of any later version that has been
  47842. published (not as a draft) by the Free Software Foundation. If the
  47843. Document does not specify a version number of this License, you may
  47844. choose any version ever published (not as a draft) by the Free
  47845. Software Foundation. If the Document specifies that a proxy can
  47846. decide which future versions of this License can be used, that
  47847. proxy's public statement of acceptance of a version permanently
  47848. authorizes you to choose that version for the Document.
  47849. 11. RELICENSING
  47850. "Massive Multiauthor Collaboration Site" (or "MMC Site") means any
  47851. World Wide Web server that publishes copyrightable works and also
  47852. provides prominent facilities for anybody to edit those works. A
  47853. public wiki that anybody can edit is an example of such a server.
  47854. A "Massive Multiauthor Collaboration" (or "MMC") contained in the
  47855. site means any set of copyrightable works thus published on the MMC
  47856. site.
  47857. "CC-BY-SA" means the Creative Commons Attribution-Share Alike 3.0
  47858. license published by Creative Commons Corporation, a not-for-profit
  47859. corporation with a principal place of business in San Francisco,
  47860. California, as well as future copyleft versions of that license
  47861. published by that same organization.
  47862. "Incorporate" means to publish or republish a Document, in whole or
  47863. in part, as part of another Document.
  47864. An MMC is "eligible for relicensing" if it is licensed under this
  47865. License, and if all works that were first published under this
  47866. License somewhere other than this MMC, and subsequently
  47867. incorporated in whole or in part into the MMC, (1) had no cover
  47868. texts or invariant sections, and (2) were thus incorporated prior
  47869. to November 1, 2008.
  47870. The operator of an MMC Site may republish an MMC contained in the
  47871. site under CC-BY-SA on the same site at any time before August 1,
  47872. 2009, provided the MMC is eligible for relicensing.
  47873. ADDENDUM: How to use this License for your documents
  47874. ====================================================
  47875. To use this License in a document you have written, include a copy of
  47876. the License in the document and put the following copyright and license
  47877. notices just after the title page:
  47878. Copyright (C) YEAR YOUR NAME.
  47879. Permission is granted to copy, distribute and/or modify this document
  47880. under the terms of the GNU Free Documentation License, Version 1.3
  47881. or any later version published by the Free Software Foundation;
  47882. with no Invariant Sections, no Front-Cover Texts, and no Back-Cover
  47883. Texts. A copy of the license is included in the section entitled ``GNU
  47884. Free Documentation License''.
  47885. If you have Invariant Sections, Front-Cover Texts and Back-Cover Texts,
  47886. replace the "with...Texts." line with this:
  47887. with the Invariant Sections being LIST THEIR TITLES, with
  47888. the Front-Cover Texts being LIST, and with the Back-Cover Texts
  47889. being LIST.
  47890. If you have Invariant Sections without Cover Texts, or some other
  47891. combination of the three, merge those two alternatives to suit the
  47892. situation.
  47893. If your document contains nontrivial examples of program code, we
  47894. recommend releasing these examples in parallel under your choice of free
  47895. software license, such as the GNU General Public License, to permit
  47896. their use in free software.
  47897. 
  47898. File: gcc.info, Node: Contributors, Next: Option Index, Prev: GNU Free Documentation License, Up: Top
  47899. Contributors to GCC
  47900. *******************
  47901. The GCC project would like to thank its many contributors. Without them
  47902. the project would not have been nearly as successful as it has been.
  47903. Any omissions in this list are accidental. Feel free to contact
  47904. <law@redhat.com> or <gerald@pfeifer.com> if you have been left out or
  47905. some of your contributions are not listed. Please keep this list in
  47906. alphabetical order.
  47907. * Analog Devices helped implement the support for complex data types
  47908. and iterators.
  47909. * John David Anglin for threading-related fixes and improvements to
  47910. libstdc++-v3, and the HP-UX port.
  47911. * James van Artsdalen wrote the code that makes efficient use of the
  47912. Intel 80387 register stack.
  47913. * Abramo and Roberto Bagnara for the SysV68 Motorola 3300 Delta
  47914. Series port.
  47915. * Alasdair Baird for various bug fixes.
  47916. * Giovanni Bajo for analyzing lots of complicated C++ problem
  47917. reports.
  47918. * Peter Barada for his work to improve code generation for new
  47919. ColdFire cores.
  47920. * Gerald Baumgartner added the signature extension to the C++ front
  47921. end.
  47922. * Godmar Back for his Java improvements and encouragement.
  47923. * Scott Bambrough for help porting the Java compiler.
  47924. * Wolfgang Bangerth for processing tons of bug reports.
  47925. * Jon Beniston for his Microsoft Windows port of Java and port to
  47926. Lattice Mico32.
  47927. * Daniel Berlin for better DWARF 2 support, faster/better
  47928. optimizations, improved alias analysis, plus migrating GCC to
  47929. Bugzilla.
  47930. * Geoff Berry for his Java object serialization work and various
  47931. patches.
  47932. * David Binderman tests weekly snapshots of GCC trunk against Fedora
  47933. Rawhide for several architectures.
  47934. * Laurynas Biveinis for memory management work and DJGPP port fixes.
  47935. * Uros Bizjak for the implementation of x87 math built-in functions
  47936. and for various middle end and i386 back end improvements and bug
  47937. fixes.
  47938. * Eric Blake for helping to make GCJ and libgcj conform to the
  47939. specifications.
  47940. * Janne Blomqvist for contributions to GNU Fortran.
  47941. * Hans-J. Boehm for his garbage collector, IA-64 libffi port, and
  47942. other Java work.
  47943. * Segher Boessenkool for helping maintain the PowerPC port and the
  47944. instruction combiner plus various contributions to the middle end.
  47945. * Neil Booth for work on cpplib, lang hooks, debug hooks and other
  47946. miscellaneous clean-ups.
  47947. * Steven Bosscher for integrating the GNU Fortran front end into GCC
  47948. and for contributing to the tree-ssa branch.
  47949. * Eric Botcazou for fixing middle- and backend bugs left and right.
  47950. * Per Bothner for his direction via the steering committee and
  47951. various improvements to the infrastructure for supporting new
  47952. languages. Chill front end implementation. Initial
  47953. implementations of cpplib, fix-header, config.guess, libio, and
  47954. past C++ library (libg++) maintainer. Dreaming up, designing and
  47955. implementing much of GCJ.
  47956. * Devon Bowen helped port GCC to the Tahoe.
  47957. * Don Bowman for mips-vxworks contributions.
  47958. * James Bowman for the FT32 port.
  47959. * Dave Brolley for work on cpplib and Chill.
  47960. * Paul Brook for work on the ARM architecture and maintaining GNU
  47961. Fortran.
  47962. * Robert Brown implemented the support for Encore 32000 systems.
  47963. * Christian Bruel for improvements to local store elimination.
  47964. * Herman A.J. ten Brugge for various fixes.
  47965. * Joerg Brunsmann for Java compiler hacking and help with the GCJ
  47966. FAQ.
  47967. * Joe Buck for his direction via the steering committee from its
  47968. creation to 2013.
  47969. * Iain Buclaw for the D frontend.
  47970. * Craig Burley for leadership of the G77 Fortran effort.
  47971. * Tobias Burnus for contributions to GNU Fortran.
  47972. * Stephan Buys for contributing Doxygen notes for libstdc++.
  47973. * Paolo Carlini for libstdc++ work: lots of efficiency improvements
  47974. to the C++ strings, streambufs and formatted I/O, hard detective
  47975. work on the frustrating localization issues, and keeping up with
  47976. the problem reports.
  47977. * John Carr for his alias work, SPARC hacking, infrastructure
  47978. improvements, previous contributions to the steering committee,
  47979. loop optimizations, etc.
  47980. * Stephane Carrez for 68HC11 and 68HC12 ports.
  47981. * Steve Chamberlain for support for the Renesas SH and H8 processors
  47982. and the PicoJava processor, and for GCJ config fixes.
  47983. * Glenn Chambers for help with the GCJ FAQ.
  47984. * John-Marc Chandonia for various libgcj patches.
  47985. * Denis Chertykov for contributing and maintaining the AVR port, the
  47986. first GCC port for an 8-bit architecture.
  47987. * Kito Cheng for his work on the RISC-V port, including bringing up
  47988. the test suite and maintenance.
  47989. * Scott Christley for his Objective-C contributions.
  47990. * Eric Christopher for his Java porting help and clean-ups.
  47991. * Branko Cibej for more warning contributions.
  47992. * The GNU Classpath project for all of their merged runtime code.
  47993. * Nick Clifton for arm, mcore, fr30, v850, m32r, msp430 rx work,
  47994. '--help', and other random hacking.
  47995. * Michael Cook for libstdc++ cleanup patches to reduce warnings.
  47996. * R. Kelley Cook for making GCC buildable from a read-only directory
  47997. as well as other miscellaneous build process and documentation
  47998. clean-ups.
  47999. * Ralf Corsepius for SH testing and minor bug fixing.
  48000. * Franc,ois-Xavier Coudert for contributions to GNU Fortran.
  48001. * Stan Cox for care and feeding of the x86 port and lots of behind
  48002. the scenes hacking.
  48003. * Alex Crain provided changes for the 3b1.
  48004. * Ian Dall for major improvements to the NS32k port.
  48005. * Paul Dale for his work to add uClinux platform support to the m68k
  48006. backend.
  48007. * Palmer Dabbelt for his work maintaining the RISC-V port.
  48008. * Dario Dariol contributed the four varieties of sample programs that
  48009. print a copy of their source.
  48010. * Russell Davidson for fstream and stringstream fixes in libstdc++.
  48011. * Bud Davis for work on the G77 and GNU Fortran compilers.
  48012. * Mo DeJong for GCJ and libgcj bug fixes.
  48013. * Jerry DeLisle for contributions to GNU Fortran.
  48014. * DJ Delorie for the DJGPP port, build and libiberty maintenance,
  48015. various bug fixes, and the M32C, MeP, MSP430, and RL78 ports.
  48016. * Arnaud Desitter for helping to debug GNU Fortran.
  48017. * Gabriel Dos Reis for contributions to G++, contributions and
  48018. maintenance of GCC diagnostics infrastructure, libstdc++-v3,
  48019. including 'valarray<>', 'complex<>', maintaining the numerics
  48020. library (including that pesky '<limits>' :-) and keeping up-to-date
  48021. anything to do with numbers.
  48022. * Ulrich Drepper for his work on glibc, testing of GCC using glibc,
  48023. ISO C99 support, CFG dumping support, etc., plus support of the C++
  48024. runtime libraries including for all kinds of C interface issues,
  48025. contributing and maintaining 'complex<>', sanity checking and
  48026. disbursement, configuration architecture, libio maintenance, and
  48027. early math work.
  48028. * Franc,ois Dumont for his work on libstdc++-v3, especially
  48029. maintaining and improving 'debug-mode' and associative and
  48030. unordered containers.
  48031. * Zdenek Dvorak for a new loop unroller and various fixes.
  48032. * Michael Eager for his work on the Xilinx MicroBlaze port.
  48033. * Richard Earnshaw for his ongoing work with the ARM.
  48034. * David Edelsohn for his direction via the steering committee,
  48035. ongoing work with the RS6000/PowerPC port, help cleaning up Haifa
  48036. loop changes, doing the entire AIX port of libstdc++ with his bare
  48037. hands, and for ensuring GCC properly keeps working on AIX.
  48038. * Kevin Ediger for the floating point formatting of num_put::do_put
  48039. in libstdc++.
  48040. * Phil Edwards for libstdc++ work including configuration hackery,
  48041. documentation maintainer, chief breaker of the web pages, the
  48042. occasional iostream bug fix, and work on shared library symbol
  48043. versioning.
  48044. * Paul Eggert for random hacking all over GCC.
  48045. * Mark Elbrecht for various DJGPP improvements, and for libstdc++
  48046. configuration support for locales and fstream-related fixes.
  48047. * Vadim Egorov for libstdc++ fixes in strings, streambufs, and
  48048. iostreams.
  48049. * Christian Ehrhardt for dealing with bug reports.
  48050. * Ben Elliston for his work to move the Objective-C runtime into its
  48051. own subdirectory and for his work on autoconf.
  48052. * Revital Eres for work on the PowerPC 750CL port.
  48053. * Marc Espie for OpenBSD support.
  48054. * Doug Evans for much of the global optimization framework, arc,
  48055. m32r, and SPARC work.
  48056. * Christopher Faylor for his work on the Cygwin port and for caring
  48057. and feeding the gcc.gnu.org box and saving its users tons of spam.
  48058. * Fred Fish for BeOS support and Ada fixes.
  48059. * Ivan Fontes Garcia for the Portuguese translation of the GCJ FAQ.
  48060. * Peter Gerwinski for various bug fixes and the Pascal front end.
  48061. * Kaveh R. Ghazi for his direction via the steering committee,
  48062. amazing work to make '-W -Wall -W* -Werror' useful, and testing GCC
  48063. on a plethora of platforms. Kaveh extends his gratitude to the
  48064. CAIP Center at Rutgers University for providing him with computing
  48065. resources to work on Free Software from the late 1980s to 2010.
  48066. * John Gilmore for a donation to the FSF earmarked improving GNU
  48067. Java.
  48068. * Judy Goldberg for c++ contributions.
  48069. * Torbjorn Granlund for various fixes and the c-torture testsuite,
  48070. multiply- and divide-by-constant optimization, improved long long
  48071. support, improved leaf function register allocation, and his
  48072. direction via the steering committee.
  48073. * Jonny Grant for improvements to 'collect2's' '--help'
  48074. documentation.
  48075. * Anthony Green for his '-Os' contributions, the moxie port, and Java
  48076. front end work.
  48077. * Stu Grossman for gdb hacking, allowing GCJ developers to debug Java
  48078. code.
  48079. * Michael K. Gschwind contributed the port to the PDP-11.
  48080. * Richard Biener for his ongoing middle-end contributions and bug
  48081. fixes and for release management.
  48082. * Ron Guilmette implemented the 'protoize' and 'unprotoize' tools,
  48083. the support for DWARF 1 symbolic debugging information, and much of
  48084. the support for System V Release 4. He has also worked heavily on
  48085. the Intel 386 and 860 support.
  48086. * Sumanth Gundapaneni for contributing the CR16 port.
  48087. * Mostafa Hagog for Swing Modulo Scheduling (SMS) and post reload
  48088. GCSE.
  48089. * Bruno Haible for improvements in the runtime overhead for EH, new
  48090. warnings and assorted bug fixes.
  48091. * Andrew Haley for his amazing Java compiler and library efforts.
  48092. * Chris Hanson assisted in making GCC work on HP-UX for the 9000
  48093. series 300.
  48094. * Michael Hayes for various thankless work he's done trying to get
  48095. the c30/c40 ports functional. Lots of loop and unroll improvements
  48096. and fixes.
  48097. * Dara Hazeghi for wading through myriads of target-specific bug
  48098. reports.
  48099. * Kate Hedstrom for staking the G77 folks with an initial testsuite.
  48100. * Richard Henderson for his ongoing SPARC, alpha, ia32, and ia64
  48101. work, loop opts, and generally fixing lots of old problems we've
  48102. ignored for years, flow rewrite and lots of further stuff,
  48103. including reviewing tons of patches.
  48104. * Aldy Hernandez for working on the PowerPC port, SIMD support, and
  48105. various fixes.
  48106. * Nobuyuki Hikichi of Software Research Associates, Tokyo,
  48107. contributed the support for the Sony NEWS machine.
  48108. * Kazu Hirata for caring and feeding the Renesas H8/300 port and
  48109. various fixes.
  48110. * Katherine Holcomb for work on GNU Fortran.
  48111. * Manfred Hollstein for his ongoing work to keep the m88k alive, lots
  48112. of testing and bug fixing, particularly of GCC configury code.
  48113. * Steve Holmgren for MachTen patches.
  48114. * Mat Hostetter for work on the TILE-Gx and TILEPro ports.
  48115. * Jan Hubicka for his x86 port improvements.
  48116. * Falk Hueffner for working on C and optimization bug reports.
  48117. * Bernardo Innocenti for his m68k work, including merging of ColdFire
  48118. improvements and uClinux support.
  48119. * Christian Iseli for various bug fixes.
  48120. * Kamil Iskra for general m68k hacking.
  48121. * Lee Iverson for random fixes and MIPS testing.
  48122. * Balaji V. Iyer for Cilk+ development and merging.
  48123. * Andreas Jaeger for testing and benchmarking of GCC and various bug
  48124. fixes.
  48125. * Martin Jambor for his work on inter-procedural optimizations, the
  48126. switch conversion pass, and scalar replacement of aggregates.
  48127. * Jakub Jelinek for his SPARC work and sibling call optimizations as
  48128. well as lots of bug fixes and test cases, and for improving the
  48129. Java build system.
  48130. * Janis Johnson for ia64 testing and fixes, her quality improvement
  48131. sidetracks, and web page maintenance.
  48132. * Kean Johnston for SCO OpenServer support and various fixes.
  48133. * Tim Josling for the sample language treelang based originally on
  48134. Richard Kenner's "toy" language.
  48135. * Nicolai Josuttis for additional libstdc++ documentation.
  48136. * Klaus Kaempf for his ongoing work to make alpha-vms a viable
  48137. target.
  48138. * Steven G. Kargl for work on GNU Fortran.
  48139. * David Kashtan of SRI adapted GCC to VMS.
  48140. * Ryszard Kabatek for many, many libstdc++ bug fixes and
  48141. optimizations of strings, especially member functions, and for
  48142. auto_ptr fixes.
  48143. * Geoffrey Keating for his ongoing work to make the PPC work for
  48144. GNU/Linux and his automatic regression tester.
  48145. * Brendan Kehoe for his ongoing work with G++ and for a lot of early
  48146. work in just about every part of libstdc++.
  48147. * Oliver M. Kellogg of Deutsche Aerospace contributed the port to the
  48148. MIL-STD-1750A.
  48149. * Richard Kenner of the New York University Ultracomputer Research
  48150. Laboratory wrote the machine descriptions for the AMD 29000, the
  48151. DEC Alpha, the IBM RT PC, and the IBM RS/6000 as well as the
  48152. support for instruction attributes. He also made changes to better
  48153. support RISC processors including changes to common subexpression
  48154. elimination, strength reduction, function calling sequence
  48155. handling, and condition code support, in addition to generalizing
  48156. the code for frame pointer elimination and delay slot scheduling.
  48157. Richard Kenner was also the head maintainer of GCC for several
  48158. years.
  48159. * Mumit Khan for various contributions to the Cygwin and Mingw32
  48160. ports and maintaining binary releases for Microsoft Windows hosts,
  48161. and for massive libstdc++ porting work to Cygwin/Mingw32.
  48162. * Robin Kirkham for cpu32 support.
  48163. * Mark Klein for PA improvements.
  48164. * Thomas Koenig for various bug fixes.
  48165. * Bruce Korb for the new and improved fixincludes code.
  48166. * Benjamin Kosnik for his G++ work and for leading the libstdc++-v3
  48167. effort.
  48168. * Maxim Kuvyrkov for contributions to the instruction scheduler, the
  48169. Android and m68k/Coldfire ports, and optimizations.
  48170. * Charles LaBrec contributed the support for the Integrated Solutions
  48171. 68020 system.
  48172. * Asher Langton and Mike Kumbera for contributing Cray pointer
  48173. support to GNU Fortran, and for other GNU Fortran improvements.
  48174. * Jeff Law for his direction via the steering committee, coordinating
  48175. the entire egcs project and GCC 2.95, rolling out snapshots and
  48176. releases, handling merges from GCC2, reviewing tons of patches that
  48177. might have fallen through the cracks else, and random but extensive
  48178. hacking.
  48179. * Walter Lee for work on the TILE-Gx and TILEPro ports.
  48180. * Marc Lehmann for his direction via the steering committee and
  48181. helping with analysis and improvements of x86 performance.
  48182. * Victor Leikehman for work on GNU Fortran.
  48183. * Ted Lemon wrote parts of the RTL reader and printer.
  48184. * Kriang Lerdsuwanakij for C++ improvements including template as
  48185. template parameter support, and many C++ fixes.
  48186. * Warren Levy for tremendous work on libgcj (Java Runtime Library)
  48187. and random work on the Java front end.
  48188. * Alain Lichnewsky ported GCC to the MIPS CPU.
  48189. * Oskar Liljeblad for hacking on AWT and his many Java bug reports
  48190. and patches.
  48191. * Robert Lipe for OpenServer support, new testsuites, testing, etc.
  48192. * Chen Liqin for various S+core related fixes/improvement, and for
  48193. maintaining the S+core port.
  48194. * Martin Liska for his work on identical code folding, the
  48195. sanitizers, HSA, general bug fixing and for running automated
  48196. regression testing of GCC and reporting numerous bugs.
  48197. * Weiwen Liu for testing and various bug fixes.
  48198. * Manuel Lo'pez-Iba'n~ez for improving '-Wconversion' and many other
  48199. diagnostics fixes and improvements.
  48200. * Dave Love for his ongoing work with the Fortran front end and
  48201. runtime libraries.
  48202. * Martin von Lo"wis for internal consistency checking infrastructure,
  48203. various C++ improvements including namespace support, and tons of
  48204. assistance with libstdc++/compiler merges.
  48205. * H.J. Lu for his previous contributions to the steering committee,
  48206. many x86 bug reports, prototype patches, and keeping the GNU/Linux
  48207. ports working.
  48208. * Greg McGary for random fixes and (someday) bounded pointers.
  48209. * Andrew MacLeod for his ongoing work in building a real EH system,
  48210. various code generation improvements, work on the global optimizer,
  48211. etc.
  48212. * Vladimir Makarov for hacking some ugly i960 problems, PowerPC
  48213. hacking improvements to compile-time performance, overall knowledge
  48214. and direction in the area of instruction scheduling, design and
  48215. implementation of the automaton based instruction scheduler and
  48216. design and implementation of the integrated and local register
  48217. allocators.
  48218. * David Malcolm for his work on improving GCC diagnostics, JIT,
  48219. self-tests and unit testing.
  48220. * Bob Manson for his behind the scenes work on dejagnu.
  48221. * John Marino for contributing the DragonFly BSD port.
  48222. * Philip Martin for lots of libstdc++ string and vector iterator
  48223. fixes and improvements, and string clean up and testsuites.
  48224. * Michael Matz for his work on dominance tree discovery, the x86-64
  48225. port, link-time optimization framework and general optimization
  48226. improvements.
  48227. * All of the Mauve project contributors for Java test code.
  48228. * Bryce McKinlay for numerous GCJ and libgcj fixes and improvements.
  48229. * Adam Megacz for his work on the Microsoft Windows port of GCJ.
  48230. * Michael Meissner for LRS framework, ia32, m32r, v850, m88k, MIPS,
  48231. powerpc, haifa, ECOFF debug support, and other assorted hacking.
  48232. * Jason Merrill for his direction via the steering committee and
  48233. leading the G++ effort.
  48234. * Martin Michlmayr for testing GCC on several architectures using the
  48235. entire Debian archive.
  48236. * David Miller for his direction via the steering committee, lots of
  48237. SPARC work, improvements in jump.c and interfacing with the Linux
  48238. kernel developers.
  48239. * Gary Miller ported GCC to Charles River Data Systems machines.
  48240. * Alfred Minarik for libstdc++ string and ios bug fixes, and turning
  48241. the entire libstdc++ testsuite namespace-compatible.
  48242. * Mark Mitchell for his direction via the steering committee,
  48243. mountains of C++ work, load/store hoisting out of loops, alias
  48244. analysis improvements, ISO C 'restrict' support, and serving as
  48245. release manager from 2000 to 2011.
  48246. * Alan Modra for various GNU/Linux bits and testing.
  48247. * Toon Moene for his direction via the steering committee, Fortran
  48248. maintenance, and his ongoing work to make us make Fortran run fast.
  48249. * Jason Molenda for major help in the care and feeding of all the
  48250. services on the gcc.gnu.org (formerly egcs.cygnus.com)
  48251. machine--mail, web services, ftp services, etc etc. Doing all this
  48252. work on scrap paper and the backs of envelopes would have been...
  48253. difficult.
  48254. * Catherine Moore for fixing various ugly problems we have sent her
  48255. way, including the haifa bug which was killing the Alpha & PowerPC
  48256. Linux kernels.
  48257. * Mike Moreton for his various Java patches.
  48258. * David Mosberger-Tang for various Alpha improvements, and for the
  48259. initial IA-64 port.
  48260. * Stephen Moshier contributed the floating point emulator that
  48261. assists in cross-compilation and permits support for floating point
  48262. numbers wider than 64 bits and for ISO C99 support.
  48263. * Bill Moyer for his behind the scenes work on various issues.
  48264. * Philippe De Muyter for his work on the m68k port.
  48265. * Joseph S. Myers for his work on the PDP-11 port, format checking
  48266. and ISO C99 support, and continuous emphasis on (and contributions
  48267. to) documentation.
  48268. * Nathan Myers for his work on libstdc++-v3: architecture and
  48269. authorship through the first three snapshots, including
  48270. implementation of locale infrastructure, string, shadow C headers,
  48271. and the initial project documentation (DESIGN, CHECKLIST, and so
  48272. forth). Later, more work on MT-safe string and shadow headers.
  48273. * Felix Natter for documentation on porting libstdc++.
  48274. * Nathanael Nerode for cleaning up the configuration/build process.
  48275. * NeXT, Inc. donated the front end that supports the Objective-C
  48276. language.
  48277. * Hans-Peter Nilsson for the CRIS and MMIX ports, improvements to the
  48278. search engine setup, various documentation fixes and other small
  48279. fixes.
  48280. * Geoff Noer for his work on getting cygwin native builds working.
  48281. * Vegard Nossum for running automated regression testing of GCC and
  48282. reporting numerous bugs.
  48283. * Diego Novillo for his work on Tree SSA, OpenMP, SPEC performance
  48284. tracking web pages, GIMPLE tuples, and assorted fixes.
  48285. * David O'Brien for the FreeBSD/alpha, FreeBSD/AMD x86-64,
  48286. FreeBSD/ARM, FreeBSD/PowerPC, and FreeBSD/SPARC64 ports and related
  48287. infrastructure improvements.
  48288. * Alexandre Oliva for various build infrastructure improvements,
  48289. scripts and amazing testing work, including keeping libtool issues
  48290. sane and happy.
  48291. * Stefan Olsson for work on mt_alloc.
  48292. * Melissa O'Neill for various NeXT fixes.
  48293. * Rainer Orth for random MIPS work, including improvements to GCC's
  48294. o32 ABI support, improvements to dejagnu's MIPS support, Java
  48295. configuration clean-ups and porting work, and maintaining the IRIX,
  48296. Solaris 2, and Tru64 UNIX ports.
  48297. * Steven Pemberton for his contribution of 'enquire' which allowed
  48298. GCC to determine various properties of the floating point unit and
  48299. generate 'float.h' in older versions of GCC.
  48300. * Hartmut Penner for work on the s390 port.
  48301. * Paul Petersen wrote the machine description for the Alliant FX/8.
  48302. * Alexandre Petit-Bianco for implementing much of the Java compiler
  48303. and continued Java maintainership.
  48304. * Matthias Pfaller for major improvements to the NS32k port.
  48305. * Gerald Pfeifer for his direction via the steering committee,
  48306. pointing out lots of problems we need to solve, maintenance of the
  48307. web pages, and taking care of documentation maintenance in general.
  48308. * Marek Polacek for his work on the C front end, the sanitizers and
  48309. general bug fixing.
  48310. * Andrew Pinski for processing bug reports by the dozen.
  48311. * Ovidiu Predescu for his work on the Objective-C front end and
  48312. runtime libraries.
  48313. * Jerry Quinn for major performance improvements in C++ formatted
  48314. I/O.
  48315. * Ken Raeburn for various improvements to checker, MIPS ports and
  48316. various cleanups in the compiler.
  48317. * Rolf W. Rasmussen for hacking on AWT.
  48318. * David Reese of Sun Microsystems contributed to the Solaris on
  48319. PowerPC port.
  48320. * John Regehr for running automated regression testing of GCC and
  48321. reporting numerous bugs.
  48322. * Volker Reichelt for running automated regression testing of GCC and
  48323. reporting numerous bugs and for keeping up with the problem
  48324. reports.
  48325. * Joern Rennecke for maintaining the sh port, loop, regmove & reload
  48326. hacking and developing and maintaining the Epiphany port.
  48327. * Loren J. Rittle for improvements to libstdc++-v3 including the
  48328. FreeBSD port, threading fixes, thread-related configury changes,
  48329. critical threading documentation, and solutions to really tricky
  48330. I/O problems, as well as keeping GCC properly working on FreeBSD
  48331. and continuous testing.
  48332. * Craig Rodrigues for processing tons of bug reports.
  48333. * Ola Ro"nnerup for work on mt_alloc.
  48334. * Gavin Romig-Koch for lots of behind the scenes MIPS work.
  48335. * David Ronis inspired and encouraged Craig to rewrite the G77
  48336. documentation in texinfo format by contributing a first pass at a
  48337. translation of the old 'g77-0.5.16/f/DOC' file.
  48338. * Ken Rose for fixes to GCC's delay slot filling code.
  48339. * Ira Rosen for her contributions to the auto-vectorizer.
  48340. * Paul Rubin wrote most of the preprocessor.
  48341. * Pe'tur Runo'lfsson for major performance improvements in C++
  48342. formatted I/O and large file support in C++ filebuf.
  48343. * Chip Salzenberg for libstdc++ patches and improvements to locales,
  48344. traits, Makefiles, libio, libtool hackery, and "long long" support.
  48345. * Juha Sarlin for improvements to the H8 code generator.
  48346. * Greg Satz assisted in making GCC work on HP-UX for the 9000 series
  48347. 300.
  48348. * Roger Sayle for improvements to constant folding and GCC's RTL
  48349. optimizers as well as for fixing numerous bugs.
  48350. * Bradley Schatz for his work on the GCJ FAQ.
  48351. * Peter Schauer wrote the code to allow debugging to work on the
  48352. Alpha.
  48353. * William Schelter did most of the work on the Intel 80386 support.
  48354. * Tobias Schlu"ter for work on GNU Fortran.
  48355. * Bernd Schmidt for various code generation improvements and major
  48356. work in the reload pass, serving as release manager for GCC 2.95.3,
  48357. and work on the Blackfin and C6X ports.
  48358. * Peter Schmid for constant testing of libstdc++--especially
  48359. application testing, going above and beyond what was requested for
  48360. the release criteria--and libstdc++ header file tweaks.
  48361. * Jason Schroeder for jcf-dump patches.
  48362. * Andreas Schwab for his work on the m68k port.
  48363. * Lars Segerlund for work on GNU Fortran.
  48364. * Dodji Seketeli for numerous C++ bug fixes and debug info
  48365. improvements.
  48366. * Tim Shen for major work on '<regex>'.
  48367. * Joel Sherrill for his direction via the steering committee, RTEMS
  48368. contributions and RTEMS testing.
  48369. * Nathan Sidwell for many C++ fixes/improvements.
  48370. * Jeffrey Siegal for helping RMS with the original design of GCC,
  48371. some code which handles the parse tree and RTL data structures,
  48372. constant folding and help with the original VAX & m68k ports.
  48373. * Kenny Simpson for prompting libstdc++ fixes due to defect reports
  48374. from the LWG (thereby keeping GCC in line with updates from the
  48375. ISO).
  48376. * Franz Sirl for his ongoing work with making the PPC port stable for
  48377. GNU/Linux.
  48378. * Andrey Slepuhin for assorted AIX hacking.
  48379. * Trevor Smigiel for contributing the SPU port.
  48380. * Christopher Smith did the port for Convex machines.
  48381. * Danny Smith for his major efforts on the Mingw (and Cygwin) ports.
  48382. Retired from GCC maintainership August 2010, having mentored two
  48383. new maintainers into the role.
  48384. * Randy Smith finished the Sun FPA support.
  48385. * Ed Smith-Rowland for his continuous work on libstdc++-v3, special
  48386. functions, '<random>', and various improvements to C++11 features.
  48387. * Scott Snyder for queue, iterator, istream, and string fixes and
  48388. libstdc++ testsuite entries. Also for providing the patch to G77
  48389. to add rudimentary support for 'INTEGER*1', 'INTEGER*2', and
  48390. 'LOGICAL*1'.
  48391. * Zdenek Sojka for running automated regression testing of GCC and
  48392. reporting numerous bugs.
  48393. * Arseny Solokha for running automated regression testing of GCC and
  48394. reporting numerous bugs.
  48395. * Jayant Sonar for contributing the CR16 port.
  48396. * Brad Spencer for contributions to the GLIBCPP_FORCE_NEW technique.
  48397. * Richard Stallman, for writing the original GCC and launching the
  48398. GNU project.
  48399. * Jan Stein of the Chalmers Computer Society provided support for
  48400. Genix, as well as part of the 32000 machine description.
  48401. * Gerhard Steinmetz for running automated regression testing of GCC
  48402. and reporting numerous bugs.
  48403. * Nigel Stephens for various mips16 related fixes/improvements.
  48404. * Jonathan Stone wrote the machine description for the Pyramid
  48405. computer.
  48406. * Graham Stott for various infrastructure improvements.
  48407. * John Stracke for his Java HTTP protocol fixes.
  48408. * Mike Stump for his Elxsi port, G++ contributions over the years and
  48409. more recently his vxworks contributions
  48410. * Jeff Sturm for Java porting help, bug fixes, and encouragement.
  48411. * Zhendong Su for running automated regression testing of GCC and
  48412. reporting numerous bugs.
  48413. * Chengnian Sun for running automated regression testing of GCC and
  48414. reporting numerous bugs.
  48415. * Shigeya Suzuki for this fixes for the bsdi platforms.
  48416. * Ian Lance Taylor for the Go frontend, the initial mips16 and mips64
  48417. support, general configury hacking, fixincludes, etc.
  48418. * Holger Teutsch provided the support for the Clipper CPU.
  48419. * Gary Thomas for his ongoing work to make the PPC work for
  48420. GNU/Linux.
  48421. * Paul Thomas for contributions to GNU Fortran.
  48422. * Philipp Thomas for random bug fixes throughout the compiler
  48423. * Jason Thorpe for thread support in libstdc++ on NetBSD.
  48424. * Kresten Krab Thorup wrote the run time support for the Objective-C
  48425. language and the fantastic Java bytecode interpreter.
  48426. * Michael Tiemann for random bug fixes, the first instruction
  48427. scheduler, initial C++ support, function integration, NS32k, SPARC
  48428. and M88k machine description work, delay slot scheduling.
  48429. * Andreas Tobler for his work porting libgcj to Darwin.
  48430. * Teemu Torma for thread safe exception handling support.
  48431. * Leonard Tower wrote parts of the parser, RTL generator, and RTL
  48432. definitions, and of the VAX machine description.
  48433. * Daniel Towner and Hariharan Sandanagobalane contributed and
  48434. maintain the picoChip port.
  48435. * Tom Tromey for internationalization support and for his many Java
  48436. contributions and libgcj maintainership.
  48437. * Lassi Tuura for improvements to config.guess to determine HP
  48438. processor types.
  48439. * Petter Urkedal for libstdc++ CXXFLAGS, math, and algorithms fixes.
  48440. * Andy Vaught for the design and initial implementation of the GNU
  48441. Fortran front end.
  48442. * Brent Verner for work with the libstdc++ cshadow files and their
  48443. associated configure steps.
  48444. * Todd Vierling for contributions for NetBSD ports.
  48445. * Andrew Waterman for contributing the RISC-V port, as well as
  48446. maintaining it.
  48447. * Jonathan Wakely for contributing libstdc++ Doxygen notes and XHTML
  48448. guidance and maintaining libstdc++.
  48449. * Dean Wakerley for converting the install documentation from HTML to
  48450. texinfo in time for GCC 3.0.
  48451. * Krister Walfridsson for random bug fixes.
  48452. * Feng Wang for contributions to GNU Fortran.
  48453. * Stephen M. Webb for time and effort on making libstdc++ shadow
  48454. files work with the tricky Solaris 8+ headers, and for pushing the
  48455. build-time header tree. Also, for starting and driving the
  48456. '<regex>' effort.
  48457. * John Wehle for various improvements for the x86 code generator,
  48458. related infrastructure improvements to help x86 code generation,
  48459. value range propagation and other work, WE32k port.
  48460. * Ulrich Weigand for work on the s390 port.
  48461. * Janus Weil for contributions to GNU Fortran.
  48462. * Zack Weinberg for major work on cpplib and various other bug fixes.
  48463. * Matt Welsh for help with Linux Threads support in GCJ.
  48464. * Urban Widmark for help fixing java.io.
  48465. * Mark Wielaard for new Java library code and his work integrating
  48466. with Classpath.
  48467. * Dale Wiles helped port GCC to the Tahoe.
  48468. * Bob Wilson from Tensilica, Inc. for the Xtensa port.
  48469. * Jim Wilson for his direction via the steering committee, tackling
  48470. hard problems in various places that nobody else wanted to work on,
  48471. strength reduction and other loop optimizations.
  48472. * Paul Woegerer and Tal Agmon for the CRX port.
  48473. * Carlo Wood for various fixes.
  48474. * Tom Wood for work on the m88k port.
  48475. * Chung-Ju Wu for his work on the Andes NDS32 port.
  48476. * Canqun Yang for work on GNU Fortran.
  48477. * Masanobu Yuhara of Fujitsu Laboratories implemented the machine
  48478. description for the Tron architecture (specifically, the Gmicro).
  48479. * Kevin Zachmann helped port GCC to the Tahoe.
  48480. * Ayal Zaks for Swing Modulo Scheduling (SMS).
  48481. * Qirun Zhang for running automated regression testing of GCC and
  48482. reporting numerous bugs.
  48483. * Xiaoqiang Zhang for work on GNU Fortran.
  48484. * Gilles Zunino for help porting Java to Irix.
  48485. The following people are recognized for their contributions to GNAT,
  48486. the Ada front end of GCC:
  48487. * Bernard Banner
  48488. * Romain Berrendonner
  48489. * Geert Bosch
  48490. * Emmanuel Briot
  48491. * Joel Brobecker
  48492. * Ben Brosgol
  48493. * Vincent Celier
  48494. * Arnaud Charlet
  48495. * Chien Chieng
  48496. * Cyrille Comar
  48497. * Cyrille Crozes
  48498. * Robert Dewar
  48499. * Gary Dismukes
  48500. * Robert Duff
  48501. * Ed Falis
  48502. * Ramon Fernandez
  48503. * Sam Figueroa
  48504. * Vasiliy Fofanov
  48505. * Michael Friess
  48506. * Franco Gasperoni
  48507. * Ted Giering
  48508. * Matthew Gingell
  48509. * Laurent Guerby
  48510. * Jerome Guitton
  48511. * Olivier Hainque
  48512. * Jerome Hugues
  48513. * Hristian Kirtchev
  48514. * Jerome Lambourg
  48515. * Bruno Leclerc
  48516. * Albert Lee
  48517. * Sean McNeil
  48518. * Javier Miranda
  48519. * Laurent Nana
  48520. * Pascal Obry
  48521. * Dong-Ik Oh
  48522. * Laurent Pautet
  48523. * Brett Porter
  48524. * Thomas Quinot
  48525. * Nicolas Roche
  48526. * Pat Rogers
  48527. * Jose Ruiz
  48528. * Douglas Rupp
  48529. * Sergey Rybin
  48530. * Gail Schenker
  48531. * Ed Schonberg
  48532. * Nicolas Setton
  48533. * Samuel Tardieu
  48534. The following people are recognized for their contributions of new
  48535. features, bug reports, testing and integration of classpath/libgcj for
  48536. GCC version 4.1:
  48537. * Lillian Angel for 'JTree' implementation and lots Free Swing
  48538. additions and bug fixes.
  48539. * Wolfgang Baer for 'GapContent' bug fixes.
  48540. * Anthony Balkissoon for 'JList', Free Swing 1.5 updates and mouse
  48541. event fixes, lots of Free Swing work including 'JTable' editing.
  48542. * Stuart Ballard for RMI constant fixes.
  48543. * Goffredo Baroncelli for 'HTTPURLConnection' fixes.
  48544. * Gary Benson for 'MessageFormat' fixes.
  48545. * Daniel Bonniot for 'Serialization' fixes.
  48546. * Chris Burdess for lots of gnu.xml and http protocol fixes, 'StAX'
  48547. and 'DOM xml:id' support.
  48548. * Ka-Hing Cheung for 'TreePath' and 'TreeSelection' fixes.
  48549. * Archie Cobbs for build fixes, VM interface updates,
  48550. 'URLClassLoader' updates.
  48551. * Kelley Cook for build fixes.
  48552. * Martin Cordova for Suggestions for better 'SocketTimeoutException'.
  48553. * David Daney for 'BitSet' bug fixes, 'HttpURLConnection' rewrite and
  48554. improvements.
  48555. * Thomas Fitzsimmons for lots of upgrades to the gtk+ AWT and Cairo
  48556. 2D support. Lots of imageio framework additions, lots of AWT and
  48557. Free Swing bug fixes.
  48558. * Jeroen Frijters for 'ClassLoader' and nio cleanups, serialization
  48559. fixes, better 'Proxy' support, bug fixes and IKVM integration.
  48560. * Santiago Gala for 'AccessControlContext' fixes.
  48561. * Nicolas Geoffray for 'VMClassLoader' and 'AccessController'
  48562. improvements.
  48563. * David Gilbert for 'basic' and 'metal' icon and plaf support and
  48564. lots of documenting, Lots of Free Swing and metal theme additions.
  48565. 'MetalIconFactory' implementation.
  48566. * Anthony Green for 'MIDI' framework, 'ALSA' and 'DSSI' providers.
  48567. * Andrew Haley for 'Serialization' and 'URLClassLoader' fixes, gcj
  48568. build speedups.
  48569. * Kim Ho for 'JFileChooser' implementation.
  48570. * Andrew John Hughes for 'Locale' and net fixes, URI RFC2986 updates,
  48571. 'Serialization' fixes, 'Properties' XML support and generic branch
  48572. work, VMIntegration guide update.
  48573. * Bastiaan Huisman for 'TimeZone' bug fixing.
  48574. * Andreas Jaeger for mprec updates.
  48575. * Paul Jenner for better '-Werror' support.
  48576. * Ito Kazumitsu for 'NetworkInterface' implementation and updates.
  48577. * Roman Kennke for 'BoxLayout', 'GrayFilter' and 'SplitPane', plus
  48578. bug fixes all over. Lots of Free Swing work including styled text.
  48579. * Simon Kitching for 'String' cleanups and optimization suggestions.
  48580. * Michael Koch for configuration fixes, 'Locale' updates, bug and
  48581. build fixes.
  48582. * Guilhem Lavaux for configuration, thread and channel fixes and
  48583. Kaffe integration. JCL native 'Pointer' updates. Logger bug
  48584. fixes.
  48585. * David Lichteblau for JCL support library global/local reference
  48586. cleanups.
  48587. * Aaron Luchko for JDWP updates and documentation fixes.
  48588. * Ziga Mahkovec for 'Graphics2D' upgraded to Cairo 0.5 and new regex
  48589. features.
  48590. * Sven de Marothy for BMP imageio support, CSS and 'TextLayout'
  48591. fixes. 'GtkImage' rewrite, 2D, awt, free swing and date/time fixes
  48592. and implementing the Qt4 peers.
  48593. * Casey Marshall for crypto algorithm fixes, 'FileChannel' lock,
  48594. 'SystemLogger' and 'FileHandler' rotate implementations, NIO
  48595. 'FileChannel.map' support, security and policy updates.
  48596. * Bryce McKinlay for RMI work.
  48597. * Audrius Meskauskas for lots of Free Corba, RMI and HTML work plus
  48598. testing and documenting.
  48599. * Kalle Olavi Niemitalo for build fixes.
  48600. * Rainer Orth for build fixes.
  48601. * Andrew Overholt for 'File' locking fixes.
  48602. * Ingo Proetel for 'Image', 'Logger' and 'URLClassLoader' updates.
  48603. * Olga Rodimina for 'MenuSelectionManager' implementation.
  48604. * Jan Roehrich for 'BasicTreeUI' and 'JTree' fixes.
  48605. * Julian Scheid for documentation updates and gjdoc support.
  48606. * Christian Schlichtherle for zip fixes and cleanups.
  48607. * Robert Schuster for documentation updates and beans fixes,
  48608. 'TreeNode' enumerations and 'ActionCommand' and various fixes, XML
  48609. and URL, AWT and Free Swing bug fixes.
  48610. * Keith Seitz for lots of JDWP work.
  48611. * Christian Thalinger for 64-bit cleanups, Configuration and VM
  48612. interface fixes and 'CACAO' integration, 'fdlibm' updates.
  48613. * Gael Thomas for 'VMClassLoader' boot packages support suggestions.
  48614. * Andreas Tobler for Darwin and Solaris testing and fixing, 'Qt4'
  48615. support for Darwin/OS X, 'Graphics2D' support, 'gtk+' updates.
  48616. * Dalibor Topic for better 'DEBUG' support, build cleanups and Kaffe
  48617. integration. 'Qt4' build infrastructure, 'SHA1PRNG' and
  48618. 'GdkPixbugDecoder' updates.
  48619. * Tom Tromey for Eclipse integration, generics work, lots of bug
  48620. fixes and gcj integration including coordinating The Big Merge.
  48621. * Mark Wielaard for bug fixes, packaging and release management,
  48622. 'Clipboard' implementation, system call interrupts and network
  48623. timeouts and 'GdkPixpufDecoder' fixes.
  48624. In addition to the above, all of which also contributed time and energy
  48625. in testing GCC, we would like to thank the following for their
  48626. contributions to testing:
  48627. * Michael Abd-El-Malek
  48628. * Thomas Arend
  48629. * Bonzo Armstrong
  48630. * Steven Ashe
  48631. * Chris Baldwin
  48632. * David Billinghurst
  48633. * Jim Blandy
  48634. * Stephane Bortzmeyer
  48635. * Horst von Brand
  48636. * Frank Braun
  48637. * Rodney Brown
  48638. * Sidney Cadot
  48639. * Bradford Castalia
  48640. * Robert Clark
  48641. * Jonathan Corbet
  48642. * Ralph Doncaster
  48643. * Richard Emberson
  48644. * Levente Farkas
  48645. * Graham Fawcett
  48646. * Mark Fernyhough
  48647. * Robert A. French
  48648. * Jo"rgen Freyh
  48649. * Mark K. Gardner
  48650. * Charles-Antoine Gauthier
  48651. * Yung Shing Gene
  48652. * David Gilbert
  48653. * Simon Gornall
  48654. * Fred Gray
  48655. * John Griffin
  48656. * Patrik Hagglund
  48657. * Phil Hargett
  48658. * Amancio Hasty
  48659. * Takafumi Hayashi
  48660. * Bryan W. Headley
  48661. * Kevin B. Hendricks
  48662. * Joep Jansen
  48663. * Christian Joensson
  48664. * Michel Kern
  48665. * David Kidd
  48666. * Tobias Kuipers
  48667. * Anand Krishnaswamy
  48668. * A. O. V. Le Blanc
  48669. * llewelly
  48670. * Damon Love
  48671. * Brad Lucier
  48672. * Matthias Klose
  48673. * Martin Knoblauch
  48674. * Rick Lutowski
  48675. * Jesse Macnish
  48676. * Stefan Morrell
  48677. * Anon A. Mous
  48678. * Matthias Mueller
  48679. * Pekka Nikander
  48680. * Rick Niles
  48681. * Jon Olson
  48682. * Magnus Persson
  48683. * Chris Pollard
  48684. * Richard Polton
  48685. * Derk Reefman
  48686. * David Rees
  48687. * Paul Reilly
  48688. * Tom Reilly
  48689. * Torsten Rueger
  48690. * Danny Sadinoff
  48691. * Marc Schifer
  48692. * Erik Schnetter
  48693. * Wayne K. Schroll
  48694. * David Schuler
  48695. * Vin Shelton
  48696. * Tim Souder
  48697. * Adam Sulmicki
  48698. * Bill Thorson
  48699. * George Talbot
  48700. * Pedro A. M. Vazquez
  48701. * Gregory Warnes
  48702. * Ian Watson
  48703. * David E. Young
  48704. * And many others
  48705. And finally we'd like to thank everyone who uses the compiler, provides
  48706. feedback and generally reminds us why we're doing this work in the first
  48707. place.
  48708. 
  48709. File: gcc.info, Node: Option Index, Next: Keyword Index, Prev: Contributors, Up: Top
  48710. Option Index
  48711. ************
  48712. GCC's command line options are indexed here without any initial '-' or
  48713. '--'. Where an option has both positive and negative forms (such as
  48714. '-fOPTION' and '-fno-OPTION'), relevant entries in the manual are
  48715. indexed under the most appropriate form; it may sometimes be useful to
  48716. look up both forms.
  48717. �[index�]
  48718. * Menu:
  48719. * ###: Overall Options. (line 214)
  48720. * 80387: x86 Options. (line 520)
  48721. * A: Preprocessor Options.
  48722. (line 332)
  48723. * allowable_client: Darwin Options. (line 196)
  48724. * all_load: Darwin Options. (line 110)
  48725. * analyzer: Static Analyzer Options.
  48726. (line 7)
  48727. * ansi: Standards. (line 13)
  48728. * ansi <1>: C Dialect Options. (line 11)
  48729. * ansi <2>: Other Builtins. (line 31)
  48730. * ansi <3>: Non-bugs. (line 107)
  48731. * arch_errors_fatal: Darwin Options. (line 114)
  48732. * aux-info: C Dialect Options. (line 229)
  48733. * B: Directory Options. (line 122)
  48734. * Bdynamic: VxWorks Options. (line 22)
  48735. * bind_at_load: Darwin Options. (line 118)
  48736. * Bstatic: VxWorks Options. (line 22)
  48737. * bundle: Darwin Options. (line 123)
  48738. * bundle_loader: Darwin Options. (line 127)
  48739. * c: Overall Options. (line 169)
  48740. * C: Preprocessor Options.
  48741. (line 341)
  48742. * c <1>: Link Options. (line 20)
  48743. * CC: Preprocessor Options.
  48744. (line 353)
  48745. * client_name: Darwin Options. (line 196)
  48746. * compatibility_version: Darwin Options. (line 196)
  48747. * coverage: Instrumentation Options.
  48748. (line 50)
  48749. * current_version: Darwin Options. (line 196)
  48750. * D: Preprocessor Options.
  48751. (line 19)
  48752. * d: Preprocessor Options.
  48753. (line 407)
  48754. * d <1>: Developer Options. (line 52)
  48755. * da: Developer Options. (line 246)
  48756. * dA: Developer Options. (line 249)
  48757. * dD: Preprocessor Options.
  48758. (line 431)
  48759. * dD <1>: Developer Options. (line 253)
  48760. * dead_strip: Darwin Options. (line 196)
  48761. * dependency-file: Darwin Options. (line 196)
  48762. * dH: Developer Options. (line 257)
  48763. * dI: Preprocessor Options.
  48764. (line 441)
  48765. * dM: Preprocessor Options.
  48766. (line 416)
  48767. * dN: Preprocessor Options.
  48768. (line 437)
  48769. * dp: Developer Options. (line 260)
  48770. * dP: Developer Options. (line 265)
  48771. * dU: Preprocessor Options.
  48772. (line 445)
  48773. * dump-analyzer-exploded-nodes: Static Analyzer Options.
  48774. (line 290)
  48775. * dump-analyzer-exploded-nodes-2: Static Analyzer Options.
  48776. (line 294)
  48777. * dump-analyzer-exploded-nodes-3: Static Analyzer Options.
  48778. (line 298)
  48779. * dumpfullversion: Developer Options. (line 1025)
  48780. * dumpmachine: Developer Options. (line 1013)
  48781. * dumpspecs: Developer Options. (line 1030)
  48782. * dumpversion: Developer Options. (line 1017)
  48783. * dx: Developer Options. (line 269)
  48784. * dylib_file: Darwin Options. (line 196)
  48785. * dylinker_install_name: Darwin Options. (line 196)
  48786. * dynamic: Darwin Options. (line 196)
  48787. * dynamiclib: Darwin Options. (line 131)
  48788. * E: Overall Options. (line 190)
  48789. * E <1>: Link Options. (line 20)
  48790. * e: Link Options. (line 169)
  48791. * EB: ARC Options. (line 597)
  48792. * EB <1>: C-SKY Options. (line 29)
  48793. * EB <2>: MIPS Options. (line 7)
  48794. * EL: ARC Options. (line 606)
  48795. * EL <1>: C-SKY Options. (line 31)
  48796. * EL <2>: MIPS Options. (line 10)
  48797. * entry: Link Options. (line 169)
  48798. * exported_symbols_list: Darwin Options. (line 196)
  48799. * F: Darwin Options. (line 31)
  48800. * fabi-compat-version: C++ Dialect Options.
  48801. (line 88)
  48802. * fabi-version: C++ Dialect Options.
  48803. (line 24)
  48804. * faccess-control: C++ Dialect Options.
  48805. (line 104)
  48806. * fada-spec-parent: Overall Options. (line 397)
  48807. * faggressive-loop-optimizations: Optimize Options. (line 546)
  48808. * falign-functions: Optimize Options. (line 1668)
  48809. * falign-jumps: Optimize Options. (line 1750)
  48810. * falign-labels: Optimize Options. (line 1709)
  48811. * falign-loops: Optimize Options. (line 1729)
  48812. * faligned-new: C++ Dialect Options.
  48813. (line 108)
  48814. * fallow-parameterless-variadic-functions: C Dialect Options.
  48815. (line 245)
  48816. * fallow-store-data-races: Optimize Options. (line 1770)
  48817. * fanalyzer: Static Analyzer Options.
  48818. (line 7)
  48819. * fanalyzer-call-summaries: Static Analyzer Options.
  48820. (line 174)
  48821. * fanalyzer-checker: Static Analyzer Options.
  48822. (line 183)
  48823. * fanalyzer-fine-grained: Static Analyzer Options.
  48824. (line 191)
  48825. * fanalyzer-show-duplicate-count: Static Analyzer Options.
  48826. (line 201)
  48827. * fanalyzer-state-merge: Static Analyzer Options.
  48828. (line 208)
  48829. * fanalyzer-state-purge: Static Analyzer Options.
  48830. (line 216)
  48831. * fanalyzer-transitivity: Static Analyzer Options.
  48832. (line 227)
  48833. * fasan-shadow-offset: Instrumentation Options.
  48834. (line 453)
  48835. * fasm: C Dialect Options. (line 252)
  48836. * fassociative-math: Optimize Options. (line 2275)
  48837. * fasynchronous-unwind-tables: Code Gen Options. (line 156)
  48838. * fauto-inc-dec: Optimize Options. (line 568)
  48839. * fauto-profile: Optimize Options. (line 2150)
  48840. * fbranch-count-reg: Optimize Options. (line 420)
  48841. * fbranch-probabilities: Optimize Options. (line 2421)
  48842. * fbuiltin: C Dialect Options. (line 266)
  48843. * fcall-saved: Code Gen Options. (line 448)
  48844. * fcall-used: Code Gen Options. (line 434)
  48845. * fcaller-saves: Optimize Options. (line 926)
  48846. * fcallgraph-info: Developer Options. (line 34)
  48847. * fcf-protection: Instrumentation Options.
  48848. (line 526)
  48849. * fchar8_t: C++ Dialect Options.
  48850. (line 118)
  48851. * fcheck-new: C++ Dialect Options.
  48852. (line 161)
  48853. * fchecking: Developer Options. (line 705)
  48854. * fcode-hoisting: Optimize Options. (line 967)
  48855. * fcombine-stack-adjustments: Optimize Options. (line 938)
  48856. * fcommon: Code Gen Options. (line 231)
  48857. * fcommon <1>: Common Variable Attributes.
  48858. (line 176)
  48859. * fcompare-debug: Developer Options. (line 799)
  48860. * fcompare-debug-second: Developer Options. (line 825)
  48861. * fcompare-elim: Optimize Options. (line 2080)
  48862. * fconcepts: C++ Dialect Options.
  48863. (line 172)
  48864. * fconcepts-ts: C++ Dialect Options.
  48865. (line 172)
  48866. * fcond-mismatch: C Dialect Options. (line 396)
  48867. * fconserve-stack: Optimize Options. (line 957)
  48868. * fconstant-string-class: Objective-C and Objective-C++ Dialect Options.
  48869. (line 30)
  48870. * fconstexpr-cache-depth: C++ Dialect Options.
  48871. (line 188)
  48872. * fconstexpr-depth: C++ Dialect Options.
  48873. (line 182)
  48874. * fconstexpr-loop-limit: C++ Dialect Options.
  48875. (line 198)
  48876. * fconstexpr-ops-limit: C++ Dialect Options.
  48877. (line 203)
  48878. * fcoroutines: C++ Dialect Options.
  48879. (line 212)
  48880. * fcprop-registers: Optimize Options. (line 2092)
  48881. * fcrossjumping: Optimize Options. (line 561)
  48882. * fcse-follow-jumps: Optimize Options. (line 480)
  48883. * fcse-skip-blocks: Optimize Options. (line 489)
  48884. * fcx-fortran-rules: Optimize Options. (line 2408)
  48885. * fcx-limited-range: Optimize Options. (line 2396)
  48886. * fdata-sections: Optimize Options. (line 2559)
  48887. * fdbg-cnt: Developer Options. (line 935)
  48888. * fdbg-cnt-list: Developer Options. (line 932)
  48889. * fdce: Optimize Options. (line 574)
  48890. * fdebug-cpp: Preprocessor Options.
  48891. (line 452)
  48892. * fdebug-prefix-map: Debugging Options. (line 141)
  48893. * fdebug-types-section: Debugging Options. (line 192)
  48894. * fdeclone-ctor-dtor: Optimize Options. (line 597)
  48895. * fdefer-pop: Optimize Options. (line 221)
  48896. * fdelayed-branch: Optimize Options. (line 750)
  48897. * fdelete-dead-exceptions: Code Gen Options. (line 141)
  48898. * fdelete-null-pointer-checks: Optimize Options. (line 608)
  48899. * fdevirtualize: Optimize Options. (line 629)
  48900. * fdevirtualize-at-ltrans: Optimize Options. (line 646)
  48901. * fdevirtualize-speculatively: Optimize Options. (line 636)
  48902. * fdiagnostics-color: Diagnostic Message Formatting Options.
  48903. (line 40)
  48904. * fdiagnostics-format: Diagnostic Message Formatting Options.
  48905. (line 398)
  48906. * fdiagnostics-generate-patch: Diagnostic Message Formatting Options.
  48907. (line 240)
  48908. * fdiagnostics-minimum-margin-width: Diagnostic Message Formatting Options.
  48909. (line 209)
  48910. * fdiagnostics-parseable-fixits: Diagnostic Message Formatting Options.
  48911. (line 213)
  48912. * fdiagnostics-path-format: Diagnostic Message Formatting Options.
  48913. (line 290)
  48914. * fdiagnostics-show-caret: Diagnostic Message Formatting Options.
  48915. (line 173)
  48916. * fdiagnostics-show-cwe: Diagnostic Message Formatting Options.
  48917. (line 195)
  48918. * fdiagnostics-show-labels: Diagnostic Message Formatting Options.
  48919. (line 182)
  48920. * fdiagnostics-show-line-numbers: Diagnostic Message Formatting Options.
  48921. (line 204)
  48922. * fdiagnostics-show-location: Diagnostic Message Formatting Options.
  48923. (line 25)
  48924. * fdiagnostics-show-option: Diagnostic Message Formatting Options.
  48925. (line 167)
  48926. * fdiagnostics-show-path-depths: Diagnostic Message Formatting Options.
  48927. (line 381)
  48928. * fdiagnostics-show-template-tree: Diagnostic Message Formatting Options.
  48929. (line 258)
  48930. * fdiagnostics-urls: Diagnostic Message Formatting Options.
  48931. (line 129)
  48932. * fdirectives-only: Preprocessor Options.
  48933. (line 202)
  48934. * fdisable-: Developer Options. (line 636)
  48935. * fdollars-in-identifiers: Preprocessor Options.
  48936. (line 223)
  48937. * fdollars-in-identifiers <1>: Interoperation. (line 141)
  48938. * fdpic: SH Options. (line 388)
  48939. * fdse: Optimize Options. (line 578)
  48940. * fdump-ada-spec: Overall Options. (line 392)
  48941. * fdump-analyzer: Static Analyzer Options.
  48942. (line 272)
  48943. * fdump-analyzer-callgraph: Static Analyzer Options.
  48944. (line 281)
  48945. * fdump-analyzer-exploded-graph: Static Analyzer Options.
  48946. (line 285)
  48947. * fdump-analyzer-state-purge: Static Analyzer Options.
  48948. (line 303)
  48949. * fdump-analyzer-stderr: Static Analyzer Options.
  48950. (line 277)
  48951. * fdump-analyzer-supergraph: Static Analyzer Options.
  48952. (line 309)
  48953. * fdump-debug: Developer Options. (line 273)
  48954. * fdump-earlydebug: Developer Options. (line 277)
  48955. * fdump-final-insns: Developer Options. (line 793)
  48956. * fdump-go-spec: Overall Options. (line 401)
  48957. * fdump-ipa: Developer Options. (line 303)
  48958. * fdump-lang: Developer Options. (line 335)
  48959. * fdump-lang-all: Developer Options. (line 335)
  48960. * fdump-noaddr: Developer Options. (line 281)
  48961. * fdump-passes: Developer Options. (line 353)
  48962. * fdump-rtl-alignments: Developer Options. (line 65)
  48963. * fdump-rtl-all: Developer Options. (line 246)
  48964. * fdump-rtl-asmcons: Developer Options. (line 68)
  48965. * fdump-rtl-auto_inc_dec: Developer Options. (line 72)
  48966. * fdump-rtl-barriers: Developer Options. (line 76)
  48967. * fdump-rtl-bbpart: Developer Options. (line 79)
  48968. * fdump-rtl-bbro: Developer Options. (line 82)
  48969. * fdump-rtl-btl2: Developer Options. (line 86)
  48970. * fdump-rtl-btl2 <1>: Developer Options. (line 86)
  48971. * fdump-rtl-bypass: Developer Options. (line 90)
  48972. * fdump-rtl-ce1: Developer Options. (line 101)
  48973. * fdump-rtl-ce2: Developer Options. (line 101)
  48974. * fdump-rtl-ce3: Developer Options. (line 101)
  48975. * fdump-rtl-combine: Developer Options. (line 93)
  48976. * fdump-rtl-compgotos: Developer Options. (line 96)
  48977. * fdump-rtl-cprop_hardreg: Developer Options. (line 105)
  48978. * fdump-rtl-csa: Developer Options. (line 108)
  48979. * fdump-rtl-cse1: Developer Options. (line 112)
  48980. * fdump-rtl-cse2: Developer Options. (line 112)
  48981. * fdump-rtl-dbr: Developer Options. (line 119)
  48982. * fdump-rtl-dce: Developer Options. (line 116)
  48983. * fdump-rtl-dce1: Developer Options. (line 123)
  48984. * fdump-rtl-dce2: Developer Options. (line 123)
  48985. * fdump-rtl-dfinish: Developer Options. (line 242)
  48986. * fdump-rtl-dfinit: Developer Options. (line 242)
  48987. * fdump-rtl-eh: Developer Options. (line 127)
  48988. * fdump-rtl-eh_ranges: Developer Options. (line 130)
  48989. * fdump-rtl-expand: Developer Options. (line 133)
  48990. * fdump-rtl-fwprop1: Developer Options. (line 137)
  48991. * fdump-rtl-fwprop2: Developer Options. (line 137)
  48992. * fdump-rtl-gcse1: Developer Options. (line 142)
  48993. * fdump-rtl-gcse2: Developer Options. (line 142)
  48994. * fdump-rtl-init-regs: Developer Options. (line 146)
  48995. * fdump-rtl-initvals: Developer Options. (line 149)
  48996. * fdump-rtl-into_cfglayout: Developer Options. (line 152)
  48997. * fdump-rtl-ira: Developer Options. (line 155)
  48998. * fdump-rtl-jump: Developer Options. (line 158)
  48999. * fdump-rtl-loop2: Developer Options. (line 161)
  49000. * fdump-rtl-mach: Developer Options. (line 165)
  49001. * fdump-rtl-mode_sw: Developer Options. (line 169)
  49002. * fdump-rtl-outof_cfglayout: Developer Options. (line 175)
  49003. * fdump-rtl-PASS: Developer Options. (line 52)
  49004. * fdump-rtl-peephole2: Developer Options. (line 178)
  49005. * fdump-rtl-postreload: Developer Options. (line 181)
  49006. * fdump-rtl-pro_and_epilogue: Developer Options. (line 184)
  49007. * fdump-rtl-ree: Developer Options. (line 192)
  49008. * fdump-rtl-regclass: Developer Options. (line 242)
  49009. * fdump-rtl-rnreg: Developer Options. (line 172)
  49010. * fdump-rtl-sched1: Developer Options. (line 188)
  49011. * fdump-rtl-sched2: Developer Options. (line 188)
  49012. * fdump-rtl-seqabstr: Developer Options. (line 195)
  49013. * fdump-rtl-shorten: Developer Options. (line 198)
  49014. * fdump-rtl-sibling: Developer Options. (line 201)
  49015. * fdump-rtl-sms: Developer Options. (line 212)
  49016. * fdump-rtl-split1: Developer Options. (line 208)
  49017. * fdump-rtl-split2: Developer Options. (line 208)
  49018. * fdump-rtl-split3: Developer Options. (line 208)
  49019. * fdump-rtl-split4: Developer Options. (line 208)
  49020. * fdump-rtl-split5: Developer Options. (line 208)
  49021. * fdump-rtl-stack: Developer Options. (line 216)
  49022. * fdump-rtl-subreg1: Developer Options. (line 222)
  49023. * fdump-rtl-subreg2: Developer Options. (line 222)
  49024. * fdump-rtl-subregs_of_mode_finish: Developer Options. (line 242)
  49025. * fdump-rtl-subregs_of_mode_init: Developer Options. (line 242)
  49026. * fdump-rtl-unshare: Developer Options. (line 226)
  49027. * fdump-rtl-vartrack: Developer Options. (line 229)
  49028. * fdump-rtl-vregs: Developer Options. (line 232)
  49029. * fdump-rtl-web: Developer Options. (line 235)
  49030. * fdump-statistics: Developer Options. (line 357)
  49031. * fdump-tree: Developer Options. (line 370)
  49032. * fdump-tree-all: Developer Options. (line 370)
  49033. * fdump-unnumbered: Developer Options. (line 291)
  49034. * fdump-unnumbered-links: Developer Options. (line 297)
  49035. * fdwarf2-cfi-asm: Debugging Options. (line 397)
  49036. * fearly-inlining: Optimize Options. (line 320)
  49037. * felide-constructors: C++ Dialect Options.
  49038. (line 215)
  49039. * felide-type: Diagnostic Message Formatting Options.
  49040. (line 278)
  49041. * feliminate-unused-debug-symbols: Debugging Options. (line 121)
  49042. * feliminate-unused-debug-types: Debugging Options. (line 401)
  49043. * femit-class-debug-always: Debugging Options. (line 126)
  49044. * femit-struct-debug-baseonly: Debugging Options. (line 328)
  49045. * femit-struct-debug-detailed: Debugging Options. (line 355)
  49046. * femit-struct-debug-reduced: Debugging Options. (line 341)
  49047. * fenable-: Developer Options. (line 636)
  49048. * fenforce-eh-specs: C++ Dialect Options.
  49049. (line 226)
  49050. * fexceptions: Code Gen Options. (line 119)
  49051. * fexcess-precision: Optimize Options. (line 2201)
  49052. * fexec-charset: Preprocessor Options.
  49053. (line 270)
  49054. * fexpensive-optimizations: Optimize Options. (line 653)
  49055. * fext-numeric-literals: C++ Dialect Options.
  49056. (line 478)
  49057. * fextended-identifiers: Preprocessor Options.
  49058. (line 226)
  49059. * fextern-tls-init: C++ Dialect Options.
  49060. (line 236)
  49061. * ffast-math: Optimize Options. (line 2225)
  49062. * ffat-lto-objects: Optimize Options. (line 2057)
  49063. * ffile-prefix-map: Overall Options. (line 372)
  49064. * ffinite-loops: Optimize Options. (line 1207)
  49065. * ffinite-math-only: Optimize Options. (line 2302)
  49066. * ffix-and-continue: Darwin Options. (line 104)
  49067. * ffixed: Code Gen Options. (line 422)
  49068. * ffloat-store: Optimize Options. (line 2187)
  49069. * ffloat-store <1>: Disappointments. (line 77)
  49070. * fforward-propagate: Optimize Options. (line 228)
  49071. * ffp-contract: Optimize Options. (line 237)
  49072. * ffp-int-builtin-inexact: Optimize Options. (line 2374)
  49073. * ffreestanding: Standards. (line 99)
  49074. * ffreestanding <1>: C Dialect Options. (line 314)
  49075. * ffreestanding <2>: Warning Options. (line 412)
  49076. * ffreestanding <3>: Common Function Attributes.
  49077. (line 421)
  49078. * ffunction-cse: Optimize Options. (line 434)
  49079. * ffunction-sections: Optimize Options. (line 2559)
  49080. * fgcse: Optimize Options. (line 503)
  49081. * fgcse-after-reload: Optimize Options. (line 539)
  49082. * fgcse-las: Optimize Options. (line 532)
  49083. * fgcse-lm: Optimize Options. (line 514)
  49084. * fgcse-sm: Optimize Options. (line 523)
  49085. * fgimple: C Dialect Options. (line 300)
  49086. * fgnu-keywords: C++ Dialect Options.
  49087. (line 256)
  49088. * fgnu-runtime: Objective-C and Objective-C++ Dialect Options.
  49089. (line 39)
  49090. * fgnu-tm: C Dialect Options. (line 353)
  49091. * fgnu-unique: Code Gen Options. (line 162)
  49092. * fgnu89-inline: C Dialect Options. (line 190)
  49093. * fgraphite-identity: Optimize Options. (line 1249)
  49094. * fguess-branch-probability: Optimize Options. (line 1548)
  49095. * fhoist-adjacent-loads: Optimize Options. (line 997)
  49096. * fhosted: C Dialect Options. (line 306)
  49097. * fident: Code Gen Options. (line 252)
  49098. * fif-conversion: Optimize Options. (line 582)
  49099. * fif-conversion2: Optimize Options. (line 591)
  49100. * fiji: AMD GCN Options. (line 13)
  49101. * filelist: Darwin Options. (line 196)
  49102. * fimplement-inlines: C++ Dialect Options.
  49103. (line 276)
  49104. * fimplicit-inline-templates: C++ Dialect Options.
  49105. (line 270)
  49106. * fimplicit-templates: C++ Dialect Options.
  49107. (line 262)
  49108. * findirect-data: Darwin Options. (line 104)
  49109. * findirect-inlining: Optimize Options. (line 292)
  49110. * finhibit-size-directive: Code Gen Options. (line 255)
  49111. * finline: Optimize Options. (line 275)
  49112. * finline-functions: Optimize Options. (line 300)
  49113. * finline-functions-called-once: Optimize Options. (line 312)
  49114. * finline-limit: Optimize Options. (line 336)
  49115. * finline-small-functions: Optimize Options. (line 283)
  49116. * finput-charset: Preprocessor Options.
  49117. (line 283)
  49118. * finstrument-functions: Instrumentation Options.
  49119. (line 723)
  49120. * finstrument-functions <1>: Common Function Attributes.
  49121. (line 691)
  49122. * finstrument-functions-exclude-file-list: Instrumentation Options.
  49123. (line 759)
  49124. * finstrument-functions-exclude-function-list: Instrumentation Options.
  49125. (line 780)
  49126. * fipa-bit-cp: Optimize Options. (line 1057)
  49127. * fipa-cp: Optimize Options. (line 1038)
  49128. * fipa-cp-clone: Optimize Options. (line 1047)
  49129. * fipa-icf: Optimize Options. (line 1067)
  49130. * fipa-profile: Optimize Options. (line 1030)
  49131. * fipa-pta: Optimize Options. (line 1024)
  49132. * fipa-pure-const: Optimize Options. (line 1008)
  49133. * fipa-ra: Optimize Options. (line 944)
  49134. * fipa-reference: Optimize Options. (line 1012)
  49135. * fipa-reference-addressable: Optimize Options. (line 1016)
  49136. * fipa-sra: Optimize Options. (line 329)
  49137. * fipa-stack-alignment: Optimize Options. (line 1020)
  49138. * fipa-vrp: Optimize Options. (line 1062)
  49139. * fira-algorithm: Optimize Options. (line 687)
  49140. * fira-hoist-pressure: Optimize Options. (line 716)
  49141. * fira-loop-pressure: Optimize Options. (line 723)
  49142. * fira-region: Optimize Options. (line 695)
  49143. * fira-share-save-slots: Optimize Options. (line 731)
  49144. * fira-share-spill-slots: Optimize Options. (line 737)
  49145. * fira-verbose: Developer Options. (line 862)
  49146. * fisolate-erroneous-paths-attribute: Optimize Options. (line 1149)
  49147. * fisolate-erroneous-paths-dereference: Optimize Options. (line 1141)
  49148. * fivar-visibility: Objective-C and Objective-C++ Dialect Options.
  49149. (line 161)
  49150. * fivopts: Optimize Options. (line 1374)
  49151. * fjump-tables: Code Gen Options. (line 414)
  49152. * fkeep-inline-dllexport: Optimize Options. (line 361)
  49153. * fkeep-inline-functions: Optimize Options. (line 367)
  49154. * fkeep-inline-functions <1>: Inline. (line 51)
  49155. * fkeep-static-consts: Optimize Options. (line 378)
  49156. * fkeep-static-functions: Optimize Options. (line 374)
  49157. * flat_namespace: Darwin Options. (line 196)
  49158. * flax-vector-conversions: C Dialect Options. (line 401)
  49159. * fleading-underscore: Code Gen Options. (line 478)
  49160. * flifetime-dse: Optimize Options. (line 667)
  49161. * flinker-output: Link Options. (line 25)
  49162. * flive-patching: Optimize Options. (line 1081)
  49163. * flive-range-shrinkage: Optimize Options. (line 682)
  49164. * flocal-ivars: Objective-C and Objective-C++ Dialect Options.
  49165. (line 152)
  49166. * floop-block: Optimize Options. (line 1243)
  49167. * floop-interchange: Optimize Options. (line 1327)
  49168. * floop-nest-optimize: Optimize Options. (line 1257)
  49169. * floop-parallelize-all: Optimize Options. (line 1263)
  49170. * floop-strip-mine: Optimize Options. (line 1243)
  49171. * floop-unroll-and-jam: Optimize Options. (line 1344)
  49172. * flra-remat: Optimize Options. (line 743)
  49173. * flto: Optimize Options. (line 1817)
  49174. * flto-compression-level: Optimize Options. (line 2031)
  49175. * flto-partition: Optimize Options. (line 2017)
  49176. * flto-report: Developer Options. (line 868)
  49177. * flto-report-wpa: Developer Options. (line 876)
  49178. * fmacro-prefix-map: Preprocessor Options.
  49179. (line 261)
  49180. * fmath-errno: Optimize Options. (line 2239)
  49181. * fmax-errors: Warning Options. (line 18)
  49182. * fmax-include-depth: Preprocessor Options.
  49183. (line 235)
  49184. * fmem-report: Developer Options. (line 880)
  49185. * fmem-report-wpa: Developer Options. (line 884)
  49186. * fmerge-all-constants: Optimize Options. (line 397)
  49187. * fmerge-constants: Optimize Options. (line 387)
  49188. * fmerge-debug-strings: Debugging Options. (line 134)
  49189. * fmessage-length: Diagnostic Message Formatting Options.
  49190. (line 14)
  49191. * fmodulo-sched: Optimize Options. (line 408)
  49192. * fmodulo-sched-allow-regmoves: Optimize Options. (line 413)
  49193. * fmove-loop-invariants: Optimize Options. (line 2519)
  49194. * fms-extensions: C Dialect Options. (line 368)
  49195. * fms-extensions <1>: C++ Dialect Options.
  49196. (line 281)
  49197. * fms-extensions <2>: Unnamed Fields. (line 36)
  49198. * fnew-inheriting-ctors: C++ Dialect Options.
  49199. (line 286)
  49200. * fnew-ttp-matching: C++ Dialect Options.
  49201. (line 292)
  49202. * fnext-runtime: Objective-C and Objective-C++ Dialect Options.
  49203. (line 43)
  49204. * fnil-receivers: Objective-C and Objective-C++ Dialect Options.
  49205. (line 49)
  49206. * fno-access-control: C++ Dialect Options.
  49207. (line 104)
  49208. * fno-allocation-dce: Optimize Options. (line 1767)
  49209. * fno-analyzer: Static Analyzer Options.
  49210. (line 7)
  49211. * fno-analyzer-call-summaries: Static Analyzer Options.
  49212. (line 174)
  49213. * fno-analyzer-fine-grained: Static Analyzer Options.
  49214. (line 191)
  49215. * fno-analyzer-show-duplicate-count: Static Analyzer Options.
  49216. (line 201)
  49217. * fno-analyzer-state-merge: Static Analyzer Options.
  49218. (line 208)
  49219. * fno-analyzer-state-purge: Static Analyzer Options.
  49220. (line 216)
  49221. * fno-analyzer-transitivity: Static Analyzer Options.
  49222. (line 227)
  49223. * fno-asm: C Dialect Options. (line 252)
  49224. * fno-branch-count-reg: Optimize Options. (line 420)
  49225. * fno-builtin: C Dialect Options. (line 266)
  49226. * fno-builtin <1>: Warning Options. (line 412)
  49227. * fno-builtin <2>: Common Function Attributes.
  49228. (line 421)
  49229. * fno-builtin <3>: Other Builtins. (line 21)
  49230. * fno-canonical-system-headers: Preprocessor Options.
  49231. (line 231)
  49232. * fno-char8_t: C++ Dialect Options.
  49233. (line 118)
  49234. * fno-checking: Developer Options. (line 705)
  49235. * fno-common: Code Gen Options. (line 231)
  49236. * fno-common <1>: Common Variable Attributes.
  49237. (line 176)
  49238. * fno-compare-debug: Developer Options. (line 799)
  49239. * fno-debug-types-section: Debugging Options. (line 192)
  49240. * fno-default-inline: Inline. (line 68)
  49241. * fno-defer-pop: Optimize Options. (line 221)
  49242. * fno-diagnostics-show-caret: Diagnostic Message Formatting Options.
  49243. (line 173)
  49244. * fno-diagnostics-show-cwe: Diagnostic Message Formatting Options.
  49245. (line 195)
  49246. * fno-diagnostics-show-labels: Diagnostic Message Formatting Options.
  49247. (line 182)
  49248. * fno-diagnostics-show-line-numbers: Diagnostic Message Formatting Options.
  49249. (line 204)
  49250. * fno-diagnostics-show-option: Diagnostic Message Formatting Options.
  49251. (line 167)
  49252. * fno-dwarf2-cfi-asm: Debugging Options. (line 397)
  49253. * fno-elide-constructors: C++ Dialect Options.
  49254. (line 215)
  49255. * fno-elide-type: Diagnostic Message Formatting Options.
  49256. (line 278)
  49257. * fno-eliminate-unused-debug-symbols: Debugging Options. (line 121)
  49258. * fno-eliminate-unused-debug-types: Debugging Options. (line 401)
  49259. * fno-enforce-eh-specs: C++ Dialect Options.
  49260. (line 226)
  49261. * fno-ext-numeric-literals: C++ Dialect Options.
  49262. (line 478)
  49263. * fno-extern-tls-init: C++ Dialect Options.
  49264. (line 236)
  49265. * fno-finite-loops: Optimize Options. (line 1207)
  49266. * fno-fp-int-builtin-inexact: Optimize Options. (line 2374)
  49267. * fno-function-cse: Optimize Options. (line 434)
  49268. * fno-gnu-keywords: C++ Dialect Options.
  49269. (line 256)
  49270. * fno-gnu-unique: Code Gen Options. (line 162)
  49271. * fno-guess-branch-probability: Optimize Options. (line 1548)
  49272. * fno-ident: Code Gen Options. (line 252)
  49273. * fno-implement-inlines: C++ Dialect Options.
  49274. (line 276)
  49275. * fno-implement-inlines <1>: C++ Interface. (line 66)
  49276. * fno-implicit-inline-templates: C++ Dialect Options.
  49277. (line 270)
  49278. * fno-implicit-templates: C++ Dialect Options.
  49279. (line 262)
  49280. * fno-implicit-templates <1>: Template Instantiation.
  49281. (line 94)
  49282. * fno-inline: Optimize Options. (line 275)
  49283. * fno-ira-share-save-slots: Optimize Options. (line 731)
  49284. * fno-ira-share-spill-slots: Optimize Options. (line 737)
  49285. * fno-jump-tables: Code Gen Options. (line 414)
  49286. * fno-keep-inline-dllexport: Optimize Options. (line 361)
  49287. * fno-lifetime-dse: Optimize Options. (line 667)
  49288. * fno-local-ivars: Objective-C and Objective-C++ Dialect Options.
  49289. (line 152)
  49290. * fno-math-errno: Optimize Options. (line 2239)
  49291. * fno-merge-debug-strings: Debugging Options. (line 134)
  49292. * fno-nil-receivers: Objective-C and Objective-C++ Dialect Options.
  49293. (line 49)
  49294. * fno-nonansi-builtins: C++ Dialect Options.
  49295. (line 299)
  49296. * fno-operator-names: C++ Dialect Options.
  49297. (line 315)
  49298. * fno-optional-diags: C++ Dialect Options.
  49299. (line 319)
  49300. * fno-peephole: Optimize Options. (line 1539)
  49301. * fno-peephole2: Optimize Options. (line 1539)
  49302. * fno-plt: Code Gen Options. (line 396)
  49303. * fno-pretty-templates: C++ Dialect Options.
  49304. (line 329)
  49305. * fno-printf-return-value: Optimize Options. (line 1516)
  49306. * fno-rtti: C++ Dialect Options.
  49307. (line 341)
  49308. * fno-sanitize-recover: Instrumentation Options.
  49309. (line 462)
  49310. * fno-sanitize=all: Instrumentation Options.
  49311. (line 447)
  49312. * fno-sched-interblock: Optimize Options. (line 776)
  49313. * fno-sched-spec: Optimize Options. (line 781)
  49314. * fno-set-stack-executable: x86 Windows Options.
  49315. (line 46)
  49316. * fno-show-column: Diagnostic Message Formatting Options.
  49317. (line 393)
  49318. * fno-signed-bitfields: C Dialect Options. (line 434)
  49319. * fno-signed-zeros: Optimize Options. (line 2314)
  49320. * fno-stack-limit: Instrumentation Options.
  49321. (line 635)
  49322. * fno-threadsafe-statics: C++ Dialect Options.
  49323. (line 396)
  49324. * fno-toplevel-reorder: Optimize Options. (line 1782)
  49325. * fno-trapping-math: Optimize Options. (line 2324)
  49326. * fno-unsigned-bitfields: C Dialect Options. (line 434)
  49327. * fno-use-cxa-get-exception-ptr: C++ Dialect Options.
  49328. (line 409)
  49329. * fno-var-tracking-assignments: Debugging Options. (line 161)
  49330. * fno-var-tracking-assignments-toggle: Developer Options. (line 846)
  49331. * fno-weak: C++ Dialect Options.
  49332. (line 471)
  49333. * fno-working-directory: Preprocessor Options.
  49334. (line 318)
  49335. * fno-writable-relocated-rdata: x86 Windows Options.
  49336. (line 53)
  49337. * fno-zero-initialized-in-bss: Optimize Options. (line 445)
  49338. * fnon-call-exceptions: Code Gen Options. (line 133)
  49339. * fnonansi-builtins: C++ Dialect Options.
  49340. (line 299)
  49341. * fnothrow-opt: C++ Dialect Options.
  49342. (line 304)
  49343. * fobjc-abi-version: Objective-C and Objective-C++ Dialect Options.
  49344. (line 56)
  49345. * fobjc-call-cxx-cdtors: Objective-C and Objective-C++ Dialect Options.
  49346. (line 67)
  49347. * fobjc-direct-dispatch: Objective-C and Objective-C++ Dialect Options.
  49348. (line 92)
  49349. * fobjc-exceptions: Objective-C and Objective-C++ Dialect Options.
  49350. (line 96)
  49351. * fobjc-gc: Objective-C and Objective-C++ Dialect Options.
  49352. (line 104)
  49353. * fobjc-nilcheck: Objective-C and Objective-C++ Dialect Options.
  49354. (line 110)
  49355. * fobjc-std: Objective-C and Objective-C++ Dialect Options.
  49356. (line 119)
  49357. * fomit-frame-pointer: Optimize Options. (line 248)
  49358. * fopenacc: C Dialect Options. (line 325)
  49359. * fopenacc-dim: C Dialect Options. (line 334)
  49360. * fopenmp: C Dialect Options. (line 340)
  49361. * fopenmp-simd: C Dialect Options. (line 349)
  49362. * foperator-names: C++ Dialect Options.
  49363. (line 315)
  49364. * fopt-info: Developer Options. (line 476)
  49365. * foptimize-sibling-calls: Optimize Options. (line 263)
  49366. * foptimize-strlen: Optimize Options. (line 268)
  49367. * foptional-diags: C++ Dialect Options.
  49368. (line 319)
  49369. * force_cpusubtype_ALL: Darwin Options. (line 135)
  49370. * force_flat_namespace: Darwin Options. (line 196)
  49371. * fpack-struct: Code Gen Options. (line 465)
  49372. * fpartial-inlining: Optimize Options. (line 1491)
  49373. * fpatchable-function-entry: Instrumentation Options.
  49374. (line 792)
  49375. * fpcc-struct-return: Code Gen Options. (line 175)
  49376. * fpcc-struct-return <1>: Incompatibilities. (line 170)
  49377. * fpch-deps: Preprocessor Options.
  49378. (line 293)
  49379. * fpch-preprocess: Preprocessor Options.
  49380. (line 301)
  49381. * fpeel-loops: Optimize Options. (line 2511)
  49382. * fpeephole: Optimize Options. (line 1539)
  49383. * fpeephole2: Optimize Options. (line 1539)
  49384. * fpermissive: C++ Dialect Options.
  49385. (line 324)
  49386. * fpermitted-flt-eval-methods: C Dialect Options. (line 207)
  49387. * fpermitted-flt-eval-methods=c11: C Dialect Options. (line 207)
  49388. * fpermitted-flt-eval-methods=ts-18661-3: C Dialect Options. (line 207)
  49389. * fpic: Code Gen Options. (line 353)
  49390. * fPIC: Code Gen Options. (line 374)
  49391. * fpie: Code Gen Options. (line 387)
  49392. * fPIE: Code Gen Options. (line 387)
  49393. * fplan9-extensions: C Dialect Options. (line 386)
  49394. * fplan9-extensions <1>: Unnamed Fields. (line 43)
  49395. * fplt: Code Gen Options. (line 396)
  49396. * fplugin: Overall Options. (line 381)
  49397. * fplugin-arg: Overall Options. (line 388)
  49398. * fpost-ipa-mem-report: Developer Options. (line 889)
  49399. * fpre-ipa-mem-report: Developer Options. (line 888)
  49400. * fpredictive-commoning: Optimize Options. (line 1498)
  49401. * fprefetch-loop-arrays: Optimize Options. (line 1506)
  49402. * fpreprocessed: Preprocessor Options.
  49403. (line 189)
  49404. * fpretty-templates: C++ Dialect Options.
  49405. (line 329)
  49406. * fprintf-return-value: Optimize Options. (line 1516)
  49407. * fprofile-abs-path: Instrumentation Options.
  49408. (line 106)
  49409. * fprofile-arcs: Instrumentation Options.
  49410. (line 30)
  49411. * fprofile-arcs <1>: Other Builtins. (line 563)
  49412. * fprofile-correction: Optimize Options. (line 2099)
  49413. * fprofile-dir: Instrumentation Options.
  49414. (line 112)
  49415. * fprofile-exclude-files: Instrumentation Options.
  49416. (line 200)
  49417. * fprofile-filter-files: Instrumentation Options.
  49418. (line 192)
  49419. * fprofile-generate: Instrumentation Options.
  49420. (line 137)
  49421. * fprofile-note: Instrumentation Options.
  49422. (line 154)
  49423. * fprofile-reorder-functions: Optimize Options. (line 2451)
  49424. * fprofile-report: Developer Options. (line 893)
  49425. * fprofile-reproducible: Instrumentation Options.
  49426. (line 208)
  49427. * fprofile-update: Instrumentation Options.
  49428. (line 175)
  49429. * fprofile-use: Optimize Options. (line 2108)
  49430. * fprofile-use <1>: Optimize Options. (line 2122)
  49431. * fprofile-values: Optimize Options. (line 2441)
  49432. * fpu: RX Options. (line 17)
  49433. * frandom-seed: Developer Options. (line 710)
  49434. * freciprocal-math: Optimize Options. (line 2292)
  49435. * frecord-gcc-switches: Code Gen Options. (line 341)
  49436. * free: Optimize Options. (line 659)
  49437. * freg-struct-return: Code Gen Options. (line 193)
  49438. * frename-registers: Optimize Options. (line 2470)
  49439. * freorder-blocks: Optimize Options. (line 1569)
  49440. * freorder-blocks-algorithm: Optimize Options. (line 1575)
  49441. * freorder-blocks-and-partition: Optimize Options. (line 1586)
  49442. * freorder-functions: Optimize Options. (line 1603)
  49443. * freplace-objc-classes: Objective-C and Objective-C++ Dialect Options.
  49444. (line 130)
  49445. * freport-bug: Developer Options. (line 287)
  49446. * frerun-cse-after-loop: Optimize Options. (line 497)
  49447. * freschedule-modulo-scheduled-loops: Optimize Options. (line 875)
  49448. * frounding-math: Optimize Options. (line 2339)
  49449. * frtti: C++ Dialect Options.
  49450. (line 341)
  49451. * fsanitize-address-use-after-scope: Instrumentation Options.
  49452. (line 498)
  49453. * fsanitize-coverage=trace-cmp: Instrumentation Options.
  49454. (line 513)
  49455. * fsanitize-coverage=trace-pc: Instrumentation Options.
  49456. (line 509)
  49457. * fsanitize-recover: Instrumentation Options.
  49458. (line 462)
  49459. * fsanitize-sections: Instrumentation Options.
  49460. (line 458)
  49461. * fsanitize-undefined-trap-on-error: Instrumentation Options.
  49462. (line 502)
  49463. * fsanitize=address: Instrumentation Options.
  49464. (line 236)
  49465. * fsanitize=alignment: Instrumentation Options.
  49466. (line 373)
  49467. * fsanitize=bool: Instrumentation Options.
  49468. (line 411)
  49469. * fsanitize=bounds: Instrumentation Options.
  49470. (line 360)
  49471. * fsanitize=bounds-strict: Instrumentation Options.
  49472. (line 366)
  49473. * fsanitize=builtin: Instrumentation Options.
  49474. (line 435)
  49475. * fsanitize=enum: Instrumentation Options.
  49476. (line 416)
  49477. * fsanitize=float-cast-overflow: Instrumentation Options.
  49478. (line 391)
  49479. * fsanitize=float-divide-by-zero: Instrumentation Options.
  49480. (line 385)
  49481. * fsanitize=integer-divide-by-zero: Instrumentation Options.
  49482. (line 323)
  49483. * fsanitize=kernel-address: Instrumentation Options.
  49484. (line 250)
  49485. * fsanitize=leak: Instrumentation Options.
  49486. (line 288)
  49487. * fsanitize=nonnull-attribute: Instrumentation Options.
  49488. (line 399)
  49489. * fsanitize=null: Instrumentation Options.
  49490. (line 337)
  49491. * fsanitize=object-size: Instrumentation Options.
  49492. (line 380)
  49493. * fsanitize=pointer-compare: Instrumentation Options.
  49494. (line 254)
  49495. * fsanitize=pointer-overflow: Instrumentation Options.
  49496. (line 429)
  49497. * fsanitize=pointer-subtract: Instrumentation Options.
  49498. (line 264)
  49499. * fsanitize=return: Instrumentation Options.
  49500. (line 345)
  49501. * fsanitize=returns-nonnull-attribute: Instrumentation Options.
  49502. (line 405)
  49503. * fsanitize=shift: Instrumentation Options.
  49504. (line 303)
  49505. * fsanitize=shift-base: Instrumentation Options.
  49506. (line 316)
  49507. * fsanitize=shift-exponent: Instrumentation Options.
  49508. (line 311)
  49509. * fsanitize=signed-integer-overflow: Instrumentation Options.
  49510. (line 351)
  49511. * fsanitize=thread: Instrumentation Options.
  49512. (line 274)
  49513. * fsanitize=undefined: Instrumentation Options.
  49514. (line 298)
  49515. * fsanitize=unreachable: Instrumentation Options.
  49516. (line 327)
  49517. * fsanitize=vla-bound: Instrumentation Options.
  49518. (line 333)
  49519. * fsanitize=vptr: Instrumentation Options.
  49520. (line 422)
  49521. * fsave-optimization-record: Developer Options. (line 582)
  49522. * fsched-critical-path-heuristic: Optimize Options. (line 841)
  49523. * fsched-dep-count-heuristic: Optimize Options. (line 868)
  49524. * fsched-group-heuristic: Optimize Options. (line 835)
  49525. * fsched-interblock: Optimize Options. (line 776)
  49526. * fsched-last-insn-heuristic: Optimize Options. (line 861)
  49527. * fsched-pressure: Optimize Options. (line 786)
  49528. * fsched-rank-heuristic: Optimize Options. (line 854)
  49529. * fsched-spec: Optimize Options. (line 781)
  49530. * fsched-spec-insn-heuristic: Optimize Options. (line 847)
  49531. * fsched-spec-load: Optimize Options. (line 795)
  49532. * fsched-spec-load-dangerous: Optimize Options. (line 800)
  49533. * fsched-stalled-insns: Optimize Options. (line 806)
  49534. * fsched-stalled-insns-dep: Optimize Options. (line 816)
  49535. * fsched-verbose: Developer Options. (line 622)
  49536. * fsched2-use-superblocks: Optimize Options. (line 825)
  49537. * fschedule-fusion: Optimize Options. (line 2480)
  49538. * fschedule-insns: Optimize Options. (line 757)
  49539. * fschedule-insns2: Optimize Options. (line 767)
  49540. * fsection-anchors: Optimize Options. (line 2592)
  49541. * fsel-sched-pipelining: Optimize Options. (line 888)
  49542. * fsel-sched-pipelining-outer-loops: Optimize Options. (line 893)
  49543. * fselective-scheduling: Optimize Options. (line 880)
  49544. * fselective-scheduling2: Optimize Options. (line 884)
  49545. * fsemantic-interposition: Optimize Options. (line 898)
  49546. * fset-stack-executable: x86 Windows Options.
  49547. (line 46)
  49548. * fshort-enums: Code Gen Options. (line 211)
  49549. * fshort-enums <1>: Structures unions enumerations and bit-fields implementation.
  49550. (line 48)
  49551. * fshort-enums <2>: Common Type Attributes.
  49552. (line 288)
  49553. * fshort-enums <3>: Non-bugs. (line 42)
  49554. * fshort-wchar: Code Gen Options. (line 221)
  49555. * fshow-column: Diagnostic Message Formatting Options.
  49556. (line 393)
  49557. * fshrink-wrap: Optimize Options. (line 915)
  49558. * fshrink-wrap-separate: Optimize Options. (line 920)
  49559. * fsignaling-nans: Optimize Options. (line 2359)
  49560. * fsigned-bitfields: C Dialect Options. (line 434)
  49561. * fsigned-bitfields <1>: Non-bugs. (line 57)
  49562. * fsigned-char: C Dialect Options. (line 424)
  49563. * fsigned-char <1>: Characters implementation.
  49564. (line 31)
  49565. * fsigned-zeros: Optimize Options. (line 2314)
  49566. * fsimd-cost-model: Optimize Options. (line 1448)
  49567. * fsingle-precision-constant: Optimize Options. (line 2392)
  49568. * fsized-deallocation: C++ Dialect Options.
  49569. (line 356)
  49570. * fsplit-ivs-in-unroller: Optimize Options. (line 1469)
  49571. * fsplit-loops: Optimize Options. (line 2523)
  49572. * fsplit-paths: Optimize Options. (line 1464)
  49573. * fsplit-stack: Instrumentation Options.
  49574. (line 652)
  49575. * fsplit-stack <1>: Common Function Attributes.
  49576. (line 741)
  49577. * fsplit-wide-types: Optimize Options. (line 466)
  49578. * fsplit-wide-types-early: Optimize Options. (line 474)
  49579. * fssa-backprop: Optimize Options. (line 1173)
  49580. * fssa-phiopt: Optimize Options. (line 1179)
  49581. * fsso-struct: C Dialect Options. (line 440)
  49582. * fstack-check: Instrumentation Options.
  49583. (line 578)
  49584. * fstack-clash-protection: Instrumentation Options.
  49585. (line 620)
  49586. * fstack-limit-register: Instrumentation Options.
  49587. (line 635)
  49588. * fstack-limit-symbol: Instrumentation Options.
  49589. (line 635)
  49590. * fstack-protector: Instrumentation Options.
  49591. (line 553)
  49592. * fstack-protector-all: Instrumentation Options.
  49593. (line 564)
  49594. * fstack-protector-explicit: Instrumentation Options.
  49595. (line 574)
  49596. * fstack-protector-strong: Instrumentation Options.
  49597. (line 567)
  49598. * fstack-usage: Developer Options. (line 897)
  49599. * fstack_reuse: Code Gen Options. (line 15)
  49600. * fstats: Developer Options. (line 926)
  49601. * fstdarg-opt: Optimize Options. (line 2588)
  49602. * fstore-merging: Optimize Options. (line 1398)
  49603. * fstrict-aliasing: Optimize Options. (line 1618)
  49604. * fstrict-enums: C++ Dialect Options.
  49605. (line 366)
  49606. * fstrict-overflow: Code Gen Options. (line 115)
  49607. * fstrict-volatile-bitfields: Code Gen Options. (line 589)
  49608. * fstrong-eval-order: C++ Dialect Options.
  49609. (line 375)
  49610. * fsync-libcalls: Code Gen Options. (line 621)
  49611. * fsyntax-only: Warning Options. (line 14)
  49612. * ftabstop: Preprocessor Options.
  49613. (line 238)
  49614. * ftemplate-backtrace-limit: C++ Dialect Options.
  49615. (line 383)
  49616. * ftemplate-depth: C++ Dialect Options.
  49617. (line 387)
  49618. * ftest-coverage: Instrumentation Options.
  49619. (line 97)
  49620. * fthread-jumps: Optimize Options. (line 457)
  49621. * fthreadsafe-statics: C++ Dialect Options.
  49622. (line 396)
  49623. * ftime-report: Developer Options. (line 854)
  49624. * ftime-report-details: Developer Options. (line 858)
  49625. * ftls-model: Code Gen Options. (line 489)
  49626. * ftoplevel-reorder: Optimize Options. (line 1782)
  49627. * ftracer: Optimize Options. (line 2488)
  49628. * ftrack-macro-expansion: Preprocessor Options.
  49629. (line 244)
  49630. * ftrampolines: Code Gen Options. (line 500)
  49631. * ftrapping-math: Optimize Options. (line 2324)
  49632. * ftrapv: Code Gen Options. (line 91)
  49633. * ftree-bit-ccp: Optimize Options. (line 1161)
  49634. * ftree-builtin-call-dce: Optimize Options. (line 1201)
  49635. * ftree-ccp: Optimize Options. (line 1168)
  49636. * ftree-ch: Optimize Options. (line 1230)
  49637. * ftree-coalesce-vars: Optimize Options. (line 1269)
  49638. * ftree-copy-prop: Optimize Options. (line 1003)
  49639. * ftree-dce: Optimize Options. (line 1197)
  49640. * ftree-dominator-opts: Optimize Options. (line 1216)
  49641. * ftree-dse: Optimize Options. (line 1223)
  49642. * ftree-forwprop: Optimize Options. (line 982)
  49643. * ftree-fre: Optimize Options. (line 986)
  49644. * ftree-loop-distribute-patterns: Optimize Options. (line 1305)
  49645. * ftree-loop-distribution: Optimize Options. (line 1286)
  49646. * ftree-loop-if-convert: Optimize Options. (line 1279)
  49647. * ftree-loop-im: Optimize Options. (line 1350)
  49648. * ftree-loop-ivcanon: Optimize Options. (line 1359)
  49649. * ftree-loop-linear: Optimize Options. (line 1243)
  49650. * ftree-loop-optimize: Optimize Options. (line 1237)
  49651. * ftree-loop-vectorize: Optimize Options. (line 1424)
  49652. * ftree-parallelize-loops: Optimize Options. (line 1379)
  49653. * ftree-partial-pre: Optimize Options. (line 978)
  49654. * ftree-phiprop: Optimize Options. (line 993)
  49655. * ftree-pre: Optimize Options. (line 974)
  49656. * ftree-pta: Optimize Options. (line 1388)
  49657. * ftree-reassoc: Optimize Options. (line 963)
  49658. * ftree-scev-cprop: Optimize Options. (line 1365)
  49659. * ftree-sink: Optimize Options. (line 1157)
  49660. * ftree-slp-vectorize: Optimize Options. (line 1429)
  49661. * ftree-slsr: Optimize Options. (line 1413)
  49662. * ftree-sra: Optimize Options. (line 1392)
  49663. * ftree-switch-conversion: Optimize Options. (line 1184)
  49664. * ftree-tail-merge: Optimize Options. (line 1189)
  49665. * ftree-ter: Optimize Options. (line 1405)
  49666. * ftree-vectorize: Optimize Options. (line 1419)
  49667. * ftree-vrp: Optimize Options. (line 1455)
  49668. * funconstrained-commons: Optimize Options. (line 555)
  49669. * funit-at-a-time: Optimize Options. (line 1775)
  49670. * funroll-all-loops: Optimize Options. (line 2505)
  49671. * funroll-loops: Optimize Options. (line 2495)
  49672. * funsafe-math-optimizations: Optimize Options. (line 2257)
  49673. * funsigned-bitfields: C Dialect Options. (line 434)
  49674. * funsigned-bitfields <1>: Structures unions enumerations and bit-fields implementation.
  49675. (line 17)
  49676. * funsigned-bitfields <2>: Non-bugs. (line 57)
  49677. * funsigned-char: C Dialect Options. (line 406)
  49678. * funsigned-char <1>: Characters implementation.
  49679. (line 31)
  49680. * funswitch-loops: Optimize Options. (line 2529)
  49681. * funwind-tables: Code Gen Options. (line 149)
  49682. * fuse-cxa-atexit: C++ Dialect Options.
  49683. (line 402)
  49684. * fuse-cxa-get-exception-ptr: C++ Dialect Options.
  49685. (line 409)
  49686. * fuse-ld=bfd: Link Options. (line 74)
  49687. * fuse-ld=gold: Link Options. (line 77)
  49688. * fuse-ld=lld: Link Options. (line 80)
  49689. * fuse-linker-plugin: Optimize Options. (line 2039)
  49690. * fvar-tracking: Debugging Options. (line 151)
  49691. * fvar-tracking-assignments: Debugging Options. (line 161)
  49692. * fvar-tracking-assignments-toggle: Developer Options. (line 846)
  49693. * fvariable-expansion-in-unroller: Optimize Options. (line 1483)
  49694. * fvect-cost-model: Optimize Options. (line 1434)
  49695. * fverbose-asm: Code Gen Options. (line 262)
  49696. * fversion-loops-for-strides: Optimize Options. (line 2536)
  49697. * fvisibility: Code Gen Options. (line 524)
  49698. * fvisibility-inlines-hidden: C++ Dialect Options.
  49699. (line 414)
  49700. * fvisibility-ms-compat: C++ Dialect Options.
  49701. (line 442)
  49702. * fvpt: Optimize Options. (line 2458)
  49703. * fvtable-verify: Instrumentation Options.
  49704. (line 670)
  49705. * fvtv-counts: Instrumentation Options.
  49706. (line 706)
  49707. * fvtv-debug: Instrumentation Options.
  49708. (line 693)
  49709. * fweak: C++ Dialect Options.
  49710. (line 471)
  49711. * fweb: Optimize Options. (line 1795)
  49712. * fwhole-program: Optimize Options. (line 1806)
  49713. * fwide-exec-charset: Preprocessor Options.
  49714. (line 275)
  49715. * fworking-directory: Preprocessor Options.
  49716. (line 318)
  49717. * fwrapv: Code Gen Options. (line 99)
  49718. * fwrapv-pointer: Code Gen Options. (line 109)
  49719. * fwritable-relocated-rdata: x86 Windows Options.
  49720. (line 53)
  49721. * fzero-initialized-in-bss: Optimize Options. (line 445)
  49722. * fzero-link: Objective-C and Objective-C++ Dialect Options.
  49723. (line 140)
  49724. * g: Debugging Options. (line 25)
  49725. * G: ARC Options. (line 416)
  49726. * G <1>: M32R/D Options. (line 57)
  49727. * G <2>: MIPS Options. (line 460)
  49728. * G <3>: Nios II Options. (line 9)
  49729. * G <4>: RS/6000 and PowerPC Options.
  49730. (line 712)
  49731. * G <5>: System V Options. (line 10)
  49732. * gas-loc-support: Debugging Options. (line 221)
  49733. * gas-locview-support: Debugging Options. (line 237)
  49734. * gcolumn-info: Debugging Options. (line 249)
  49735. * gdescribe-dies: Debugging Options. (line 179)
  49736. * gdwarf: Debugging Options. (line 45)
  49737. * gen-decls: Objective-C and Objective-C++ Dialect Options.
  49738. (line 166)
  49739. * gfull: Darwin Options. (line 69)
  49740. * ggdb: Debugging Options. (line 38)
  49741. * ggnu-pubnames: Debugging Options. (line 187)
  49742. * ginline-points: Debugging Options. (line 308)
  49743. * ginternal-reset-location-views: Debugging Options. (line 297)
  49744. * gno-as-loc-support: Debugging Options. (line 233)
  49745. * gno-column-info: Debugging Options. (line 249)
  49746. * gno-inline-points: Debugging Options. (line 308)
  49747. * gno-internal-reset-location-views: Debugging Options. (line 297)
  49748. * gno-record-gcc-switches: Debugging Options. (line 202)
  49749. * gno-statement-frontiers: Debugging Options. (line 254)
  49750. * gno-strict-dwarf: Debugging Options. (line 217)
  49751. * gno-variable-location-views: Debugging Options. (line 265)
  49752. * gpubnames: Debugging Options. (line 184)
  49753. * grecord-gcc-switches: Debugging Options. (line 202)
  49754. * gsplit-dwarf: Debugging Options. (line 172)
  49755. * gstabs: Debugging Options. (line 63)
  49756. * gstabs+: Debugging Options. (line 71)
  49757. * gstatement-frontiers: Debugging Options. (line 254)
  49758. * gstrict-dwarf: Debugging Options. (line 211)
  49759. * gtoggle: Developer Options. (line 838)
  49760. * gused: Darwin Options. (line 64)
  49761. * gvariable-location-views: Debugging Options. (line 265)
  49762. * gvariable-location-views=incompat5: Debugging Options. (line 265)
  49763. * gvms: Debugging Options. (line 90)
  49764. * gxcoff: Debugging Options. (line 77)
  49765. * gxcoff+: Debugging Options. (line 82)
  49766. * gz: Debugging Options. (line 317)
  49767. * H: Preprocessor Options.
  49768. (line 400)
  49769. * headerpad_max_install_names: Darwin Options. (line 196)
  49770. * help: Overall Options. (line 220)
  49771. * I: Directory Options. (line 13)
  49772. * I-: Directory Options. (line 65)
  49773. * idirafter: Directory Options. (line 13)
  49774. * iframework: Darwin Options. (line 57)
  49775. * imacros: Preprocessor Options.
  49776. (line 57)
  49777. * image_base: Darwin Options. (line 196)
  49778. * imultilib: Directory Options. (line 98)
  49779. * include: Preprocessor Options.
  49780. (line 46)
  49781. * init: Darwin Options. (line 196)
  49782. * install_name: Darwin Options. (line 196)
  49783. * iplugindir=: Directory Options. (line 113)
  49784. * iprefix: Directory Options. (line 80)
  49785. * iquote: Directory Options. (line 13)
  49786. * isysroot: Directory Options. (line 92)
  49787. * isystem: Directory Options. (line 13)
  49788. * iwithprefix: Directory Options. (line 86)
  49789. * iwithprefixbefore: Directory Options. (line 86)
  49790. * keep_private_externs: Darwin Options. (line 196)
  49791. * l: Link Options. (line 84)
  49792. * L: Directory Options. (line 118)
  49793. * lobjc: Link Options. (line 110)
  49794. * M: Preprocessor Options.
  49795. (line 77)
  49796. * m: RS/6000 and PowerPC Options.
  49797. (line 520)
  49798. * m1: SH Options. (line 9)
  49799. * m10: PDP-11 Options. (line 29)
  49800. * m128bit-long-double: x86 Options. (line 572)
  49801. * m16: x86 Options. (line 1413)
  49802. * m16-bit: CRIS Options. (line 64)
  49803. * m16-bit <1>: NDS32 Options. (line 51)
  49804. * m1reg-: Adapteva Epiphany Options.
  49805. (line 131)
  49806. * m2: SH Options. (line 12)
  49807. * m210: MCore Options. (line 43)
  49808. * m2a: SH Options. (line 30)
  49809. * m2a-nofpu: SH Options. (line 18)
  49810. * m2a-single: SH Options. (line 26)
  49811. * m2a-single-only: SH Options. (line 22)
  49812. * m3: SH Options. (line 34)
  49813. * m31: S/390 and zSeries Options.
  49814. (line 86)
  49815. * m32: Nvidia PTX Options. (line 10)
  49816. * m32 <1>: RS/6000 and PowerPC Options.
  49817. (line 244)
  49818. * m32 <2>: SPARC Options. (line 315)
  49819. * m32 <3>: TILE-Gx Options. (line 23)
  49820. * m32 <4>: TILEPro Options. (line 13)
  49821. * m32 <5>: x86 Options. (line 1413)
  49822. * m32-bit: CRIS Options. (line 64)
  49823. * m32bit-doubles: RL78 Options. (line 73)
  49824. * m32bit-doubles <1>: RX Options. (line 10)
  49825. * m32r: M32R/D Options. (line 15)
  49826. * m32r2: M32R/D Options. (line 9)
  49827. * m32rx: M32R/D Options. (line 12)
  49828. * m340: MCore Options. (line 43)
  49829. * m3dnow: x86 Options. (line 795)
  49830. * m3dnowa: x86 Options. (line 796)
  49831. * m3e: SH Options. (line 37)
  49832. * m4: SH Options. (line 51)
  49833. * m4-100: SH Options. (line 54)
  49834. * m4-100-nofpu: SH Options. (line 57)
  49835. * m4-100-single: SH Options. (line 61)
  49836. * m4-100-single-only: SH Options. (line 65)
  49837. * m4-200: SH Options. (line 69)
  49838. * m4-200-nofpu: SH Options. (line 72)
  49839. * m4-200-single: SH Options. (line 76)
  49840. * m4-200-single-only: SH Options. (line 80)
  49841. * m4-300: SH Options. (line 84)
  49842. * m4-300-nofpu: SH Options. (line 87)
  49843. * m4-300-single: SH Options. (line 91)
  49844. * m4-300-single-only: SH Options. (line 95)
  49845. * m4-340: SH Options. (line 99)
  49846. * m4-500: SH Options. (line 102)
  49847. * m4-nofpu: SH Options. (line 40)
  49848. * m4-single: SH Options. (line 47)
  49849. * m4-single-only: SH Options. (line 43)
  49850. * m40: PDP-11 Options. (line 23)
  49851. * m45: PDP-11 Options. (line 26)
  49852. * m4a: SH Options. (line 118)
  49853. * m4a-nofpu: SH Options. (line 106)
  49854. * m4a-single: SH Options. (line 114)
  49855. * m4a-single-only: SH Options. (line 110)
  49856. * m4al: SH Options. (line 121)
  49857. * m4byte-functions: MCore Options. (line 27)
  49858. * m5200: M680x0 Options. (line 144)
  49859. * m5206e: M680x0 Options. (line 153)
  49860. * m528x: M680x0 Options. (line 157)
  49861. * m5307: M680x0 Options. (line 161)
  49862. * m5407: M680x0 Options. (line 165)
  49863. * m64: Nvidia PTX Options. (line 10)
  49864. * m64 <1>: RS/6000 and PowerPC Options.
  49865. (line 244)
  49866. * m64 <2>: S/390 and zSeries Options.
  49867. (line 86)
  49868. * m64 <3>: SPARC Options. (line 315)
  49869. * m64 <4>: TILE-Gx Options. (line 23)
  49870. * m64 <5>: x86 Options. (line 1413)
  49871. * m64bit-doubles: RL78 Options. (line 73)
  49872. * m64bit-doubles <1>: RX Options. (line 10)
  49873. * m68000: M680x0 Options. (line 93)
  49874. * m68010: M680x0 Options. (line 101)
  49875. * m68020: M680x0 Options. (line 107)
  49876. * m68020-40: M680x0 Options. (line 175)
  49877. * m68020-60: M680x0 Options. (line 184)
  49878. * m68030: M680x0 Options. (line 112)
  49879. * m68040: M680x0 Options. (line 117)
  49880. * m68060: M680x0 Options. (line 126)
  49881. * m68881: M680x0 Options. (line 194)
  49882. * m8-bit: CRIS Options. (line 64)
  49883. * m8bit-idiv: x86 Options. (line 1334)
  49884. * m8byte-align: V850 Options. (line 170)
  49885. * m96bit-long-double: x86 Options. (line 572)
  49886. * mA6: ARC Options. (line 23)
  49887. * mA7: ARC Options. (line 30)
  49888. * mabi: AArch64 Options. (line 9)
  49889. * mabi <1>: ARM Options. (line 9)
  49890. * mabi <2>: PRU Options. (line 28)
  49891. * mabi <3>: RISC-V Options. (line 17)
  49892. * mabi <4>: RS/6000 and PowerPC Options.
  49893. (line 551)
  49894. * mabi <5>: x86 Options. (line 1027)
  49895. * mabi=32: MIPS Options. (line 156)
  49896. * mabi=64: MIPS Options. (line 156)
  49897. * mabi=eabi: MIPS Options. (line 156)
  49898. * mabi=elfv1: RS/6000 and PowerPC Options.
  49899. (line 572)
  49900. * mabi=elfv2: RS/6000 and PowerPC Options.
  49901. (line 578)
  49902. * mabi=gnu: MMIX Options. (line 20)
  49903. * mabi=ibmlongdouble: RS/6000 and PowerPC Options.
  49904. (line 556)
  49905. * mabi=ieeelongdouble: RS/6000 and PowerPC Options.
  49906. (line 564)
  49907. * mabi=mmixware: MMIX Options. (line 20)
  49908. * mabi=n32: MIPS Options. (line 156)
  49909. * mabi=o64: MIPS Options. (line 156)
  49910. * mabicalls: MIPS Options. (line 192)
  49911. * mabm: x86 Options. (line 798)
  49912. * mabort-on-noreturn: ARM Options. (line 750)
  49913. * mabs=2008: MIPS Options. (line 300)
  49914. * mabs=legacy: MIPS Options. (line 300)
  49915. * mabsdata: AVR Options. (line 163)
  49916. * mabsdiff: MeP Options. (line 7)
  49917. * mac0: PDP-11 Options. (line 16)
  49918. * macc-4: FRV Options. (line 139)
  49919. * macc-8: FRV Options. (line 143)
  49920. * maccumulate-args: AVR Options. (line 170)
  49921. * maccumulate-outgoing-args: SH Options. (line 314)
  49922. * maccumulate-outgoing-args <1>: x86 Options. (line 1071)
  49923. * maddress-mode=long: x86 Options. (line 1463)
  49924. * maddress-mode=short: x86 Options. (line 1468)
  49925. * mads: RS/6000 and PowerPC Options.
  49926. (line 612)
  49927. * madx: x86 Options. (line 799)
  49928. * maes: x86 Options. (line 776)
  49929. * maix-struct-return: RS/6000 and PowerPC Options.
  49930. (line 544)
  49931. * maix32: RS/6000 and PowerPC Options.
  49932. (line 282)
  49933. * maix64: RS/6000 and PowerPC Options.
  49934. (line 282)
  49935. * malign-300: H8/300 Options. (line 41)
  49936. * malign-call: ARC Options. (line 435)
  49937. * malign-data: RISC-V Options. (line 136)
  49938. * malign-data <1>: x86 Options. (line 612)
  49939. * malign-double: x86 Options. (line 557)
  49940. * malign-int: M680x0 Options. (line 261)
  49941. * malign-labels: FRV Options. (line 128)
  49942. * malign-loops: M32R/D Options. (line 73)
  49943. * malign-natural: RS/6000 and PowerPC Options.
  49944. (line 320)
  49945. * malign-power: RS/6000 and PowerPC Options.
  49946. (line 320)
  49947. * malign-stringops: x86 Options. (line 1207)
  49948. * mall-opts: MeP Options. (line 11)
  49949. * malloc-cc: FRV Options. (line 31)
  49950. * mallow-string-insns: RX Options. (line 150)
  49951. * mallregs: RL78 Options. (line 66)
  49952. * maltivec: RS/6000 and PowerPC Options.
  49953. (line 135)
  49954. * mam33: MN10300 Options. (line 17)
  49955. * mam33-2: MN10300 Options. (line 24)
  49956. * mam34: MN10300 Options. (line 27)
  49957. * manchor: C-SKY Options. (line 110)
  49958. * mandroid: GNU/Linux Options. (line 26)
  49959. * mannotate-align: ARC Options. (line 382)
  49960. * mapcs: ARM Options. (line 21)
  49961. * mapcs-frame: ARM Options. (line 13)
  49962. * mapp-regs: SPARC Options. (line 10)
  49963. * mapp-regs <1>: V850 Options. (line 181)
  49964. * mARC600: ARC Options. (line 23)
  49965. * mARC601: ARC Options. (line 27)
  49966. * mARC700: ARC Options. (line 30)
  49967. * march: AArch64 Options. (line 165)
  49968. * march <1>: AMD GCN Options. (line 9)
  49969. * march <2>: ARM Options. (line 80)
  49970. * march <3>: C6X Options. (line 7)
  49971. * march <4>: CRIS Options. (line 10)
  49972. * march <5>: HPPA Options. (line 9)
  49973. * march <6>: HPPA Options. (line 162)
  49974. * march <7>: M680x0 Options. (line 12)
  49975. * march <8>: MIPS Options. (line 14)
  49976. * march <9>: NDS32 Options. (line 64)
  49977. * march <10>: Nios II Options. (line 94)
  49978. * march <11>: Nvidia PTX Options. (line 13)
  49979. * march <12>: RISC-V Options. (line 54)
  49980. * march <13>: S/390 and zSeries Options.
  49981. (line 148)
  49982. * march <14>: x86 Options. (line 9)
  49983. * march=: C-SKY Options. (line 9)
  49984. * marclinux: ARC Options. (line 388)
  49985. * marclinux_prof: ARC Options. (line 395)
  49986. * margonaut: ARC Options. (line 593)
  49987. * marm: ARM Options. (line 822)
  49988. * mas100-syntax: RX Options. (line 76)
  49989. * masm-hex: MSP430 Options. (line 9)
  49990. * masm-syntax-unified: ARM Options. (line 921)
  49991. * masm=DIALECT: x86 Options. (line 506)
  49992. * matomic: ARC Options. (line 155)
  49993. * matomic-model=MODEL: SH Options. (line 193)
  49994. * mauto-litpools: Xtensa Options. (line 60)
  49995. * mauto-modify-reg: ARC Options. (line 438)
  49996. * mauto-pic: IA-64 Options. (line 50)
  49997. * maverage: MeP Options. (line 16)
  49998. * mavoid-indexed-addresses: RS/6000 and PowerPC Options.
  49999. (line 359)
  50000. * mavx: x86 Options. (line 764)
  50001. * mavx2: x86 Options. (line 765)
  50002. * mavx256-split-unaligned-load: x86 Options. (line 1342)
  50003. * mavx256-split-unaligned-store: x86 Options. (line 1342)
  50004. * mavx5124fmaps: x86 Options. (line 826)
  50005. * mavx5124vnniw: x86 Options. (line 828)
  50006. * mavx512bf16: x86 Options. (line 815)
  50007. * mavx512bitalg: x86 Options. (line 820)
  50008. * mavx512bw: x86 Options. (line 771)
  50009. * mavx512cd: x86 Options. (line 769)
  50010. * mavx512dq: x86 Options. (line 772)
  50011. * mavx512er: x86 Options. (line 768)
  50012. * mavx512f: x86 Options. (line 766)
  50013. * mavx512ifma: x86 Options. (line 773)
  50014. * mavx512pf: x86 Options. (line 767)
  50015. * mavx512vbmi: x86 Options. (line 774)
  50016. * mavx512vbmi2: x86 Options. (line 814)
  50017. * mavx512vl: x86 Options. (line 770)
  50018. * mavx512vnni: x86 Options. (line 827)
  50019. * mavx512vp2intersect: x86 Options. (line 825)
  50020. * mavx512vpopcntdq: x86 Options. (line 824)
  50021. * max-vect-align: Adapteva Epiphany Options.
  50022. (line 119)
  50023. * mb: SH Options. (line 126)
  50024. * mbackchain: S/390 and zSeries Options.
  50025. (line 35)
  50026. * mbarrel-shift-enabled: LM32 Options. (line 9)
  50027. * mbarrel-shifter: ARC Options. (line 10)
  50028. * mbarrel_shifter: ARC Options. (line 613)
  50029. * mbase-addresses: MMIX Options. (line 53)
  50030. * mbased=: MeP Options. (line 20)
  50031. * mbbit-peephole: ARC Options. (line 441)
  50032. * mbe8: ARM Options. (line 72)
  50033. * mbig: RS/6000 and PowerPC Options.
  50034. (line 439)
  50035. * mbig-endian: AArch64 Options. (line 20)
  50036. * mbig-endian <1>: ARC Options. (line 596)
  50037. * mbig-endian <2>: ARM Options. (line 67)
  50038. * mbig-endian <3>: C6X Options. (line 13)
  50039. * mbig-endian <4>: C-SKY Options. (line 28)
  50040. * mbig-endian <5>: eBPF Options. (line 22)
  50041. * mbig-endian <6>: IA-64 Options. (line 9)
  50042. * mbig-endian <7>: MCore Options. (line 39)
  50043. * mbig-endian <8>: MicroBlaze Options. (line 56)
  50044. * mbig-endian <9>: NDS32 Options. (line 9)
  50045. * mbig-endian <10>: RS/6000 and PowerPC Options.
  50046. (line 439)
  50047. * mbig-endian <11>: TILE-Gx Options. (line 29)
  50048. * mbig-endian-data: RX Options. (line 42)
  50049. * mbig-switch: V850 Options. (line 176)
  50050. * mbigtable: SH Options. (line 141)
  50051. * mbionic: GNU/Linux Options. (line 22)
  50052. * mbit-align: RS/6000 and PowerPC Options.
  50053. (line 391)
  50054. * mbit-ops: CR16 Options. (line 25)
  50055. * mbitfield: M680x0 Options. (line 231)
  50056. * mbitops: MeP Options. (line 26)
  50057. * mbitops <1>: SH Options. (line 145)
  50058. * mblock-compare-inline-limit: RS/6000 and PowerPC Options.
  50059. (line 692)
  50060. * mblock-compare-inline-loop-limit: RS/6000 and PowerPC Options.
  50061. (line 698)
  50062. * mblock-move-inline-limit: RS/6000 and PowerPC Options.
  50063. (line 686)
  50064. * mbmi: x86 Options. (line 800)
  50065. * mbmi2: x86 Options. (line 801)
  50066. * mboard: OpenRISC Options. (line 9)
  50067. * mbranch-cost: Adapteva Epiphany Options.
  50068. (line 18)
  50069. * mbranch-cost <1>: AVR Options. (line 185)
  50070. * mbranch-cost <2>: MIPS Options. (line 785)
  50071. * mbranch-cost <3>: RISC-V Options. (line 9)
  50072. * mbranch-cost=: C-SKY Options. (line 143)
  50073. * mbranch-cost=NUM: SH Options. (line 334)
  50074. * mbranch-cost=NUMBER: M32R/D Options. (line 82)
  50075. * mbranch-index: ARC Options. (line 329)
  50076. * mbranch-likely: MIPS Options. (line 792)
  50077. * mbranch-predict: MMIX Options. (line 48)
  50078. * mbranch-protection: AArch64 Options. (line 275)
  50079. * mbss-plt: RS/6000 and PowerPC Options.
  50080. (line 159)
  50081. * mbuild-constants: DEC Alpha Options. (line 141)
  50082. * mbwx: DEC Alpha Options. (line 163)
  50083. * mbypass-cache: Nios II Options. (line 103)
  50084. * mc68000: M680x0 Options. (line 93)
  50085. * mc68020: M680x0 Options. (line 107)
  50086. * mc=: MeP Options. (line 31)
  50087. * mcache: C-SKY Options. (line 77)
  50088. * mcache-block-size: NDS32 Options. (line 60)
  50089. * mcache-volatile: Nios II Options. (line 109)
  50090. * mcall-eabi: RS/6000 and PowerPC Options.
  50091. (line 514)
  50092. * mcall-freebsd: RS/6000 and PowerPC Options.
  50093. (line 528)
  50094. * mcall-linux: RS/6000 and PowerPC Options.
  50095. (line 524)
  50096. * mcall-ms2sysv-xlogues: x86 Options. (line 1047)
  50097. * mcall-netbsd: RS/6000 and PowerPC Options.
  50098. (line 532)
  50099. * mcall-netbsd <1>: RS/6000 and PowerPC Options.
  50100. (line 536)
  50101. * mcall-prologues: AVR Options. (line 190)
  50102. * mcall-sysv: RS/6000 and PowerPC Options.
  50103. (line 506)
  50104. * mcall-sysv-eabi: RS/6000 and PowerPC Options.
  50105. (line 514)
  50106. * mcall-sysv-noeabi: RS/6000 and PowerPC Options.
  50107. (line 517)
  50108. * mcallee-super-interworking: ARM Options. (line 851)
  50109. * mcaller-copies: HPPA Options. (line 23)
  50110. * mcaller-super-interworking: ARM Options. (line 858)
  50111. * mcallgraph-data: MCore Options. (line 31)
  50112. * mcase-vector-pcrel: ARC Options. (line 450)
  50113. * mcbcond: SPARC Options. (line 260)
  50114. * mcbranch-force-delay-slot: SH Options. (line 349)
  50115. * mcc-init: CRIS Options. (line 42)
  50116. * mccrt: C-SKY Options. (line 139)
  50117. * mcfv4e: M680x0 Options. (line 169)
  50118. * mcheck-zero-division: MIPS Options. (line 570)
  50119. * mcix: DEC Alpha Options. (line 163)
  50120. * mcld: x86 Options. (line 880)
  50121. * mcldemote: x86 Options. (line 829)
  50122. * mclear-hwcap: Solaris 2 Options. (line 9)
  50123. * mclflushopt: x86 Options. (line 778)
  50124. * mclip: MeP Options. (line 35)
  50125. * mclwb: x86 Options. (line 779)
  50126. * mclzero: x86 Options. (line 812)
  50127. * mcmodel: NDS32 Options. (line 67)
  50128. * mcmodel <1>: SPARC Options. (line 320)
  50129. * mcmodel=kernel: x86 Options. (line 1447)
  50130. * mcmodel=large: AArch64 Options. (line 45)
  50131. * mcmodel=large <1>: RS/6000 and PowerPC Options.
  50132. (line 129)
  50133. * mcmodel=large <2>: TILE-Gx Options. (line 14)
  50134. * mcmodel=large <3>: x86 Options. (line 1459)
  50135. * mcmodel=medany: RISC-V Options. (line 114)
  50136. * mcmodel=medium: RS/6000 and PowerPC Options.
  50137. (line 124)
  50138. * mcmodel=medium <1>: x86 Options. (line 1452)
  50139. * mcmodel=medlow: RISC-V Options. (line 107)
  50140. * mcmodel=small: AArch64 Options. (line 39)
  50141. * mcmodel=small <1>: RS/6000 and PowerPC Options.
  50142. (line 120)
  50143. * mcmodel=small <2>: TILE-Gx Options. (line 9)
  50144. * mcmodel=small <3>: x86 Options. (line 1441)
  50145. * mcmodel=tiny: AArch64 Options. (line 34)
  50146. * mcmov: NDS32 Options. (line 21)
  50147. * mcmov <1>: OpenRISC Options. (line 45)
  50148. * mcmove: Adapteva Epiphany Options.
  50149. (line 23)
  50150. * mcmpb: RS/6000 and PowerPC Options.
  50151. (line 25)
  50152. * mcmse: ARM Options. (line 950)
  50153. * mcode-density: ARC Options. (line 163)
  50154. * mcode-density-frame: ARC Options. (line 511)
  50155. * mcode-readable: MIPS Options. (line 530)
  50156. * mcode-region: MSP430 Options. (line 135)
  50157. * mcompact-branches=always: MIPS Options. (line 804)
  50158. * mcompact-branches=never: MIPS Options. (line 804)
  50159. * mcompact-branches=optimal: MIPS Options. (line 804)
  50160. * mcompact-casesi: ARC Options. (line 454)
  50161. * mcompat-align-parm: RS/6000 and PowerPC Options.
  50162. (line 897)
  50163. * mcompress: FT32 Options. (line 26)
  50164. * mcond-exec: FRV Options. (line 187)
  50165. * mcond-move: FRV Options. (line 159)
  50166. * mconfig=: MeP Options. (line 39)
  50167. * mconsole: x86 Windows Options.
  50168. (line 9)
  50169. * mconst-align: CRIS Options. (line 55)
  50170. * mconst16: Xtensa Options. (line 10)
  50171. * mconstant-gp: IA-64 Options. (line 46)
  50172. * mconstpool: C-SKY Options. (line 127)
  50173. * mcop: MeP Options. (line 48)
  50174. * mcop32: MeP Options. (line 53)
  50175. * mcop64: MeP Options. (line 56)
  50176. * mcorea: Blackfin Options. (line 154)
  50177. * mcoreb: Blackfin Options. (line 161)
  50178. * mcp: C-SKY Options. (line 74)
  50179. * mcpu: AArch64 Options. (line 231)
  50180. * mcpu <1>: ARC Options. (line 18)
  50181. * mcpu <2>: ARM Options. (line 620)
  50182. * mcpu <3>: CRIS Options. (line 10)
  50183. * mcpu <4>: DEC Alpha Options. (line 215)
  50184. * mcpu <5>: FRV Options. (line 258)
  50185. * mcpu <6>: M680x0 Options. (line 28)
  50186. * mcpu <7>: picoChip Options. (line 9)
  50187. * mcpu <8>: RL78 Options. (line 32)
  50188. * mcpu <9>: RS/6000 and PowerPC Options.
  50189. (line 62)
  50190. * mcpu <10>: RX Options. (line 30)
  50191. * mcpu <11>: SPARC Options. (line 115)
  50192. * mcpu <12>: TILE-Gx Options. (line 18)
  50193. * mcpu <13>: TILEPro Options. (line 9)
  50194. * mcpu <14>: Visium Options. (line 33)
  50195. * mcpu <15>: x86 Options. (line 452)
  50196. * mcpu32: M680x0 Options. (line 135)
  50197. * mcpu=: Blackfin Options. (line 7)
  50198. * mcpu= <1>: C-SKY Options. (line 14)
  50199. * mcpu= <2>: M32C Options. (line 7)
  50200. * mcpu= <3>: MicroBlaze Options. (line 20)
  50201. * mcpu= <4>: MSP430 Options. (line 72)
  50202. * mcr16c: CR16 Options. (line 14)
  50203. * mcr16cplus: CR16 Options. (line 14)
  50204. * mcrc: MIPS Options. (line 416)
  50205. * mcrc32: x86 Options. (line 948)
  50206. * mcrypto: RS/6000 and PowerPC Options.
  50207. (line 176)
  50208. * mcsync-anomaly: Blackfin Options. (line 57)
  50209. * mcsync-anomaly <1>: Blackfin Options. (line 63)
  50210. * mctor-dtor: NDS32 Options. (line 81)
  50211. * mcustom-fpu-cfg: Nios II Options. (line 259)
  50212. * mcustom-INSN: Nios II Options. (line 139)
  50213. * mcx16: x86 Options. (line 921)
  50214. * MD: Preprocessor Options.
  50215. (line 169)
  50216. * mdalign: SH Options. (line 132)
  50217. * mdata-align: CRIS Options. (line 55)
  50218. * mdata-model: CR16 Options. (line 28)
  50219. * mdata-region: MSP430 Options. (line 135)
  50220. * mdc: MeP Options. (line 62)
  50221. * mdebug: M32R/D Options. (line 69)
  50222. * mdebug <1>: S/390 and zSeries Options.
  50223. (line 144)
  50224. * mdebug <2>: Visium Options. (line 7)
  50225. * mdebug-main=PREFIX: VMS Options. (line 13)
  50226. * mdec-asm: PDP-11 Options. (line 46)
  50227. * mdisable-callt: V850 Options. (line 92)
  50228. * mdisable-fpregs: HPPA Options. (line 34)
  50229. * mdisable-indexing: HPPA Options. (line 40)
  50230. * mdiv: C-SKY Options. (line 93)
  50231. * mdiv <1>: M680x0 Options. (line 206)
  50232. * mdiv <2>: MCore Options. (line 15)
  50233. * mdiv <3>: MeP Options. (line 65)
  50234. * mdiv <4>: RISC-V Options. (line 49)
  50235. * mdiv-rem: ARC Options. (line 160)
  50236. * mdiv=STRATEGY: SH Options. (line 284)
  50237. * mdivide-breaks: MIPS Options. (line 576)
  50238. * mdivide-enabled: LM32 Options. (line 12)
  50239. * mdivide-traps: MIPS Options. (line 576)
  50240. * mdivsi3_libfunc=NAME: SH Options. (line 320)
  50241. * mdll: x86 Windows Options.
  50242. (line 16)
  50243. * mdlmzb: RS/6000 and PowerPC Options.
  50244. (line 384)
  50245. * mdmx: MIPS Options. (line 376)
  50246. * mdouble: AVR Options. (line 195)
  50247. * mdouble <1>: FRV Options. (line 48)
  50248. * mdouble-float: C-SKY Options. (line 42)
  50249. * mdouble-float <1>: MIPS Options. (line 288)
  50250. * mdouble-float <2>: OpenRISC Options. (line 33)
  50251. * mdpfp: ARC Options. (line 99)
  50252. * mdpfp-compact: ARC Options. (line 100)
  50253. * mdpfp-fast: ARC Options. (line 104)
  50254. * mdpfp_compact: ARC Options. (line 616)
  50255. * mdpfp_fast: ARC Options. (line 619)
  50256. * mdsp: C-SKY Options. (line 86)
  50257. * mdsp <1>: MIPS Options. (line 353)
  50258. * mdsp-packa: ARC Options. (line 335)
  50259. * mdspr2: MIPS Options. (line 359)
  50260. * mdsp_packa: ARC Options. (line 622)
  50261. * mdump-tune-features: x86 Options. (line 862)
  50262. * mdvbf: ARC Options. (line 340)
  50263. * mdwarf2-asm: IA-64 Options. (line 94)
  50264. * mdword: FRV Options. (line 40)
  50265. * mdword <1>: FRV Options. (line 44)
  50266. * mdynamic-no-pic: RS/6000 and PowerPC Options.
  50267. (line 444)
  50268. * mea: ARC Options. (line 112)
  50269. * mEA: ARC Options. (line 625)
  50270. * meabi: RS/6000 and PowerPC Options.
  50271. (line 631)
  50272. * mearly-cbranchsi: ARC Options. (line 476)
  50273. * mearly-stop-bits: IA-64 Options. (line 100)
  50274. * meb: MeP Options. (line 68)
  50275. * meb <1>: Moxie Options. (line 7)
  50276. * meb <2>: Nios II Options. (line 90)
  50277. * meb <3>: Score Options. (line 9)
  50278. * medsp: C-SKY Options. (line 87)
  50279. * mel: MeP Options. (line 71)
  50280. * mel <1>: Moxie Options. (line 11)
  50281. * mel <2>: Nios II Options. (line 90)
  50282. * mel <3>: Score Options. (line 12)
  50283. * melf: CRIS Options. (line 87)
  50284. * melf <1>: MMIX Options. (line 43)
  50285. * melrw: C-SKY Options. (line 60)
  50286. * memb: RS/6000 and PowerPC Options.
  50287. (line 626)
  50288. * membedded-data: MIPS Options. (line 517)
  50289. * memregs=: M32C Options. (line 21)
  50290. * menqcmd: x86 Options. (line 823)
  50291. * mep: V850 Options. (line 16)
  50292. * mepsilon: MMIX Options. (line 15)
  50293. * mesa: S/390 and zSeries Options.
  50294. (line 94)
  50295. * metrax100: CRIS Options. (line 27)
  50296. * metrax4: CRIS Options. (line 27)
  50297. * meva: MIPS Options. (line 403)
  50298. * mexpand-adddi: ARC Options. (line 479)
  50299. * mexplicit-relocs: DEC Alpha Options. (line 176)
  50300. * mexplicit-relocs <1>: MIPS Options. (line 561)
  50301. * mexr: H8/300 Options. (line 28)
  50302. * mexr <1>: H8/300 Options. (line 33)
  50303. * mext-perf: NDS32 Options. (line 27)
  50304. * mext-perf2: NDS32 Options. (line 33)
  50305. * mext-string: NDS32 Options. (line 39)
  50306. * mextern-sdata: MIPS Options. (line 480)
  50307. * MF: Preprocessor Options.
  50308. (line 111)
  50309. * mf16c: x86 Options. (line 783)
  50310. * mfancy-math-387: x86 Options. (line 547)
  50311. * mfast-fp: Blackfin Options. (line 130)
  50312. * mfast-indirect-calls: HPPA Options. (line 52)
  50313. * mfast-sw-div: Nios II Options. (line 115)
  50314. * mfaster-structs: SPARC Options. (line 91)
  50315. * mfdiv: RISC-V Options. (line 42)
  50316. * mfdivdu: C-SKY Options. (line 48)
  50317. * mfdpic: ARM Options. (line 957)
  50318. * mfdpic <1>: FRV Options. (line 72)
  50319. * mfentry: x86 Options. (line 1281)
  50320. * mfentry-name: x86 Options. (line 1312)
  50321. * mfentry-section: x86 Options. (line 1316)
  50322. * mfix: DEC Alpha Options. (line 163)
  50323. * mfix-24k: MIPS Options. (line 641)
  50324. * mfix-and-continue: Darwin Options. (line 104)
  50325. * mfix-at697f: SPARC Options. (line 294)
  50326. * mfix-cortex-a53-835769: AArch64 Options. (line 105)
  50327. * mfix-cortex-a53-843419: AArch64 Options. (line 112)
  50328. * mfix-cortex-m3-ldrd: ARM Options. (line 892)
  50329. * mfix-gr712rc: SPARC Options. (line 307)
  50330. * mfix-r10000: MIPS Options. (line 663)
  50331. * mfix-r4000: MIPS Options. (line 647)
  50332. * mfix-r4400: MIPS Options. (line 657)
  50333. * mfix-r5900: MIPS Options. (line 674)
  50334. * mfix-rm7000: MIPS Options. (line 684)
  50335. * mfix-sb1: MIPS Options. (line 709)
  50336. * mfix-ut699: SPARC Options. (line 299)
  50337. * mfix-ut700: SPARC Options. (line 303)
  50338. * mfix-vr4120: MIPS Options. (line 689)
  50339. * mfix-vr4130: MIPS Options. (line 702)
  50340. * mfixed-cc: FRV Options. (line 35)
  50341. * mfixed-range: HPPA Options. (line 59)
  50342. * mfixed-range <1>: IA-64 Options. (line 105)
  50343. * mfixed-range <2>: SH Options. (line 327)
  50344. * mflat: SPARC Options. (line 22)
  50345. * mflip-mips16: MIPS Options. (line 128)
  50346. * mflip-thumb: ARM Options. (line 834)
  50347. * mfloat-abi: ARM Options. (line 41)
  50348. * mfloat-ieee: DEC Alpha Options. (line 171)
  50349. * mfloat-vax: DEC Alpha Options. (line 171)
  50350. * mfloat128: RS/6000 and PowerPC Options.
  50351. (line 213)
  50352. * mfloat128-hardware: RS/6000 and PowerPC Options.
  50353. (line 235)
  50354. * mflush-func: MIPS Options. (line 776)
  50355. * mflush-func=NAME: M32R/D Options. (line 93)
  50356. * mflush-trap=NUMBER: M32R/D Options. (line 86)
  50357. * mfma: x86 Options. (line 784)
  50358. * mfma4: x86 Options. (line 787)
  50359. * mfmaf: SPARC Options. (line 267)
  50360. * mfmovd: SH Options. (line 148)
  50361. * mforce-indirect-call: x86 Options. (line 1036)
  50362. * mforce-no-pic: Xtensa Options. (line 41)
  50363. * mfp-exceptions: MIPS Options. (line 824)
  50364. * mfp-mode: Adapteva Epiphany Options.
  50365. (line 71)
  50366. * mfp-reg: DEC Alpha Options. (line 25)
  50367. * mfp-ret-in-387: x86 Options. (line 537)
  50368. * mfp-rounding-mode: DEC Alpha Options. (line 85)
  50369. * mfp-trap-mode: DEC Alpha Options. (line 63)
  50370. * mfp16-format: ARM Options. (line 728)
  50371. * mfp32: MIPS Options. (line 258)
  50372. * mfp64: MIPS Options. (line 261)
  50373. * mfpmath: Optimize Options. (line 2218)
  50374. * mfpmath <1>: x86 Options. (line 455)
  50375. * mfpr-32: FRV Options. (line 15)
  50376. * mfpr-64: FRV Options. (line 19)
  50377. * mfprnd: RS/6000 and PowerPC Options.
  50378. (line 25)
  50379. * mfpu: ARC Options. (line 231)
  50380. * mfpu <1>: ARM Options. (line 700)
  50381. * mfpu <2>: PDP-11 Options. (line 9)
  50382. * mfpu <3>: SPARC Options. (line 34)
  50383. * mfpu <4>: Visium Options. (line 19)
  50384. * mfpu=: C-SKY Options. (line 53)
  50385. * mfpxx: MIPS Options. (line 264)
  50386. * mfract-convert-truncate: AVR Options. (line 286)
  50387. * mframe-header-opt: MIPS Options. (line 885)
  50388. * mfriz: RS/6000 and PowerPC Options.
  50389. (line 868)
  50390. * mfsca: SH Options. (line 365)
  50391. * mfsgsbase: x86 Options. (line 780)
  50392. * mfsmuld: SPARC Options. (line 274)
  50393. * mfsrra: SH Options. (line 374)
  50394. * mft32b: FT32 Options. (line 23)
  50395. * mfull-regs: NDS32 Options. (line 18)
  50396. * mfull-toc: RS/6000 and PowerPC Options.
  50397. (line 255)
  50398. * mfunction-return: x86 Options. (line 1384)
  50399. * mfused-madd: IA-64 Options. (line 88)
  50400. * mfused-madd <1>: MIPS Options. (line 624)
  50401. * mfused-madd <2>: RS/6000 and PowerPC Options.
  50402. (line 368)
  50403. * mfused-madd <3>: S/390 and zSeries Options.
  50404. (line 182)
  50405. * mfused-madd <4>: SH Options. (line 356)
  50406. * mfused-madd <5>: Xtensa Options. (line 19)
  50407. * mfxsr: x86 Options. (line 803)
  50408. * MG: Preprocessor Options.
  50409. (line 122)
  50410. * mg: VAX Options. (line 17)
  50411. * mg10: RL78 Options. (line 62)
  50412. * mg13: RL78 Options. (line 62)
  50413. * mg14: RL78 Options. (line 62)
  50414. * mgas: HPPA Options. (line 75)
  50415. * mgas-isr-prologues: AVR Options. (line 203)
  50416. * mgcc-abi: V850 Options. (line 148)
  50417. * mgeneral-regs-only: AArch64 Options. (line 24)
  50418. * mgeneral-regs-only <1>: ARM Options. (line 57)
  50419. * mgeneral-regs-only <2>: x86 Options. (line 1360)
  50420. * mgfni: x86 Options. (line 816)
  50421. * mghs: V850 Options. (line 127)
  50422. * mginv: MIPS Options. (line 421)
  50423. * mglibc: GNU/Linux Options. (line 9)
  50424. * mgnu: VAX Options. (line 13)
  50425. * mgnu-as: IA-64 Options. (line 18)
  50426. * mgnu-asm: PDP-11 Options. (line 49)
  50427. * mgnu-attribute: RS/6000 and PowerPC Options.
  50428. (line 585)
  50429. * mgnu-ld: HPPA Options. (line 111)
  50430. * mgnu-ld <1>: IA-64 Options. (line 23)
  50431. * mgomp: Nvidia PTX Options. (line 53)
  50432. * mgotplt: CRIS Options. (line 81)
  50433. * mgp32: MIPS Options. (line 252)
  50434. * mgp64: MIPS Options. (line 255)
  50435. * mgpopt: MIPS Options. (line 502)
  50436. * mgpopt <1>: Nios II Options. (line 16)
  50437. * mgpr-32: FRV Options. (line 7)
  50438. * mgpr-64: FRV Options. (line 11)
  50439. * mgprel-ro: FRV Options. (line 99)
  50440. * mgprel-sec: Nios II Options. (line 65)
  50441. * mh: H8/300 Options. (line 14)
  50442. * mhal: Nios II Options. (line 304)
  50443. * mhalf-reg-file: Adapteva Epiphany Options.
  50444. (line 9)
  50445. * mhard-dfp: RS/6000 and PowerPC Options.
  50446. (line 25)
  50447. * mhard-dfp <1>: S/390 and zSeries Options.
  50448. (line 20)
  50449. * mhard-div: OpenRISC Options. (line 19)
  50450. * mhard-float: C-SKY Options. (line 35)
  50451. * mhard-float <1>: FRV Options. (line 23)
  50452. * mhard-float <2>: M680x0 Options. (line 194)
  50453. * mhard-float <3>: MicroBlaze Options. (line 10)
  50454. * mhard-float <4>: MIPS Options. (line 267)
  50455. * mhard-float <5>: OpenRISC Options. (line 29)
  50456. * mhard-float <6>: RS/6000 and PowerPC Options.
  50457. (line 332)
  50458. * mhard-float <7>: S/390 and zSeries Options.
  50459. (line 11)
  50460. * mhard-float <8>: SPARC Options. (line 34)
  50461. * mhard-float <9>: V850 Options. (line 113)
  50462. * mhard-float <10>: Visium Options. (line 19)
  50463. * mhard-float <11>: x86 Options. (line 520)
  50464. * mhard-mul: OpenRISC Options. (line 24)
  50465. * mhard-quad-float: SPARC Options. (line 55)
  50466. * mhardlit: MCore Options. (line 10)
  50467. * mhigh-registers: C-SKY Options. (line 104)
  50468. * mhle: x86 Options. (line 809)
  50469. * mhotpatch: S/390 and zSeries Options.
  50470. (line 217)
  50471. * mhp-ld: HPPA Options. (line 123)
  50472. * mhtm: RS/6000 and PowerPC Options.
  50473. (line 182)
  50474. * mhtm <1>: S/390 and zSeries Options.
  50475. (line 104)
  50476. * mhw-div: Nios II Options. (line 124)
  50477. * mhw-mul: Nios II Options. (line 124)
  50478. * mhw-mulx: Nios II Options. (line 124)
  50479. * mhwmult=: MSP430 Options. (line 93)
  50480. * miamcu: x86 Options. (line 1413)
  50481. * micplb: Blackfin Options. (line 175)
  50482. * mid-shared-library: Blackfin Options. (line 78)
  50483. * mid-shared-library <1>: Blackfin Options. (line 85)
  50484. * mieee: DEC Alpha Options. (line 39)
  50485. * mieee <1>: SH Options. (line 165)
  50486. * mieee-conformant: DEC Alpha Options. (line 134)
  50487. * mieee-fp: x86 Options. (line 514)
  50488. * mieee-with-inexact: DEC Alpha Options. (line 52)
  50489. * milp32: IA-64 Options. (line 121)
  50490. * mimadd: MIPS Options. (line 617)
  50491. * mimpure-text: Solaris 2 Options. (line 15)
  50492. * mincoming-stack-boundary: x86 Options. (line 730)
  50493. * mindexed-loads: ARC Options. (line 483)
  50494. * mindirect-branch: x86 Options. (line 1365)
  50495. * mindirect-branch-register: x86 Options. (line 1403)
  50496. * minline-all-stringops: x86 Options. (line 1212)
  50497. * minline-float-divide-max-throughput: IA-64 Options. (line 58)
  50498. * minline-float-divide-min-latency: IA-64 Options. (line 54)
  50499. * minline-ic_invalidate: SH Options. (line 174)
  50500. * minline-int-divide: IA-64 Options. (line 73)
  50501. * minline-int-divide-max-throughput: IA-64 Options. (line 69)
  50502. * minline-int-divide-min-latency: IA-64 Options. (line 65)
  50503. * minline-plt: Blackfin Options. (line 135)
  50504. * minline-plt <1>: FRV Options. (line 81)
  50505. * minline-sqrt-max-throughput: IA-64 Options. (line 80)
  50506. * minline-sqrt-min-latency: IA-64 Options. (line 76)
  50507. * minline-stringops-dynamically: x86 Options. (line 1220)
  50508. * minrt: MSP430 Options. (line 115)
  50509. * minrt <1>: PRU Options. (line 9)
  50510. * minsert-sched-nops: RS/6000 and PowerPC Options.
  50511. (line 484)
  50512. * minstrument-return: x86 Options. (line 1300)
  50513. * mint-register: RX Options. (line 100)
  50514. * mint16: PDP-11 Options. (line 33)
  50515. * mint32: CR16 Options. (line 22)
  50516. * mint32 <1>: H8/300 Options. (line 38)
  50517. * mint32 <2>: PDP-11 Options. (line 37)
  50518. * mint8: AVR Options. (line 213)
  50519. * minterlink-compressed: MIPS Options. (line 135)
  50520. * minterlink-mips16: MIPS Options. (line 147)
  50521. * mio-volatile: MeP Options. (line 74)
  50522. * mips1: MIPS Options. (line 80)
  50523. * mips16: MIPS Options. (line 120)
  50524. * mips2: MIPS Options. (line 83)
  50525. * mips3: MIPS Options. (line 86)
  50526. * mips32: MIPS Options. (line 92)
  50527. * mips32r3: MIPS Options. (line 95)
  50528. * mips32r5: MIPS Options. (line 98)
  50529. * mips32r6: MIPS Options. (line 101)
  50530. * mips3d: MIPS Options. (line 382)
  50531. * mips4: MIPS Options. (line 89)
  50532. * mips64: MIPS Options. (line 104)
  50533. * mips64r2: MIPS Options. (line 107)
  50534. * mips64r3: MIPS Options. (line 110)
  50535. * mips64r5: MIPS Options. (line 113)
  50536. * mips64r6: MIPS Options. (line 116)
  50537. * mirq-ctrl-saved: ARC Options. (line 296)
  50538. * misel: RS/6000 and PowerPC Options.
  50539. (line 165)
  50540. * misize: ARC Options. (line 379)
  50541. * misize <1>: SH Options. (line 186)
  50542. * misr-vector-size: NDS32 Options. (line 57)
  50543. * missue-rate=NUMBER: M32R/D Options. (line 79)
  50544. * mistack: C-SKY Options. (line 65)
  50545. * mivc2: MeP Options. (line 59)
  50546. * mjli-alawys: ARC Options. (line 14)
  50547. * mjsr: RX Options. (line 169)
  50548. * mjump-in-delay: HPPA Options. (line 30)
  50549. * mkernel: Darwin Options. (line 82)
  50550. * mkernel <1>: eBPF Options. (line 13)
  50551. * mknuthdiv: MMIX Options. (line 32)
  50552. * ml: MeP Options. (line 78)
  50553. * ml <1>: SH Options. (line 129)
  50554. * mlarge: MSP430 Options. (line 82)
  50555. * mlarge-data: DEC Alpha Options. (line 187)
  50556. * mlarge-data-threshold: x86 Options. (line 619)
  50557. * mlarge-text: DEC Alpha Options. (line 205)
  50558. * mleadz: MeP Options. (line 81)
  50559. * mleaf-id-shared-library: Blackfin Options. (line 89)
  50560. * mleaf-id-shared-library <1>: Blackfin Options. (line 95)
  50561. * mlibfuncs: MMIX Options. (line 10)
  50562. * mlibrary-pic: FRV Options. (line 135)
  50563. * mlinked-fp: FRV Options. (line 116)
  50564. * mlinker-opt: HPPA Options. (line 85)
  50565. * mlinux: CRIS Options. (line 91)
  50566. * mlittle: RS/6000 and PowerPC Options.
  50567. (line 433)
  50568. * mlittle-endian: AArch64 Options. (line 30)
  50569. * mlittle-endian <1>: ARC Options. (line 605)
  50570. * mlittle-endian <2>: ARM Options. (line 63)
  50571. * mlittle-endian <3>: C6X Options. (line 16)
  50572. * mlittle-endian <4>: C-SKY Options. (line 30)
  50573. * mlittle-endian <5>: eBPF Options. (line 25)
  50574. * mlittle-endian <6>: IA-64 Options. (line 13)
  50575. * mlittle-endian <7>: MCore Options. (line 39)
  50576. * mlittle-endian <8>: MicroBlaze Options. (line 59)
  50577. * mlittle-endian <9>: NDS32 Options. (line 12)
  50578. * mlittle-endian <10>: RS/6000 and PowerPC Options.
  50579. (line 433)
  50580. * mlittle-endian <11>: TILE-Gx Options. (line 29)
  50581. * mlittle-endian-data: RX Options. (line 42)
  50582. * mliw: MN10300 Options. (line 54)
  50583. * mll64: ARC Options. (line 167)
  50584. * mllsc: MIPS Options. (line 339)
  50585. * mload-store-pairs: MIPS Options. (line 590)
  50586. * mlocal-sdata: MIPS Options. (line 468)
  50587. * mlock: ARC Options. (line 345)
  50588. * mlong-calls: Adapteva Epiphany Options.
  50589. (line 55)
  50590. * mlong-calls <1>: ARC Options. (line 404)
  50591. * mlong-calls <2>: ARM Options. (line 755)
  50592. * mlong-calls <3>: Blackfin Options. (line 118)
  50593. * mlong-calls <4>: FRV Options. (line 122)
  50594. * mlong-calls <5>: HPPA Options. (line 136)
  50595. * mlong-calls <6>: MIPS Options. (line 603)
  50596. * mlong-calls <7>: V850 Options. (line 10)
  50597. * mlong-double: AVR Options. (line 195)
  50598. * mlong-double-128: S/390 and zSeries Options.
  50599. (line 29)
  50600. * mlong-double-128 <1>: x86 Options. (line 598)
  50601. * mlong-double-64: S/390 and zSeries Options.
  50602. (line 29)
  50603. * mlong-double-64 <1>: x86 Options. (line 598)
  50604. * mlong-double-80: x86 Options. (line 598)
  50605. * mlong-jump-table-offsets: M680x0 Options. (line 339)
  50606. * mlong-jumps: V850 Options. (line 108)
  50607. * mlong-load-store: HPPA Options. (line 66)
  50608. * mlong32: MIPS Options. (line 443)
  50609. * mlong64: MIPS Options. (line 438)
  50610. * mlongcall: RS/6000 and PowerPC Options.
  50611. (line 726)
  50612. * mlongcalls: Xtensa Options. (line 87)
  50613. * mloongson-ext: MIPS Options. (line 430)
  50614. * mloongson-ext2: MIPS Options. (line 434)
  50615. * mloongson-mmi: MIPS Options. (line 425)
  50616. * mloop: PRU Options. (line 25)
  50617. * mloop <1>: V850 Options. (line 121)
  50618. * mlow-precision-div: AArch64 Options. (line 135)
  50619. * mlow-precision-recip-sqrt: AArch64 Options. (line 118)
  50620. * mlow-precision-sqrt: AArch64 Options. (line 126)
  50621. * mlow64k: Blackfin Options. (line 67)
  50622. * mlp64: IA-64 Options. (line 121)
  50623. * mlpc-width: ARC Options. (line 313)
  50624. * mlra: ARC Options. (line 488)
  50625. * mlra <1>: FT32 Options. (line 16)
  50626. * mlra <2>: PDP-11 Options. (line 52)
  50627. * mlra <3>: SPARC Options. (line 111)
  50628. * mlra-priority-compact: ARC Options. (line 496)
  50629. * mlra-priority-noncompact: ARC Options. (line 499)
  50630. * mlra-priority-none: ARC Options. (line 493)
  50631. * mlwp: x86 Options. (line 794)
  50632. * mlxc1-sxc1: MIPS Options. (line 895)
  50633. * mlzcnt: x86 Options. (line 802)
  50634. * MM: Preprocessor Options.
  50635. (line 102)
  50636. * mm: MeP Options. (line 84)
  50637. * mmac: CR16 Options. (line 9)
  50638. * mmac <1>: Score Options. (line 21)
  50639. * mmac-24: ARC Options. (line 354)
  50640. * mmac-d16: ARC Options. (line 350)
  50641. * mmac_24: ARC Options. (line 628)
  50642. * mmac_d16: ARC Options. (line 631)
  50643. * mmad: MIPS Options. (line 612)
  50644. * mmadd4: MIPS Options. (line 900)
  50645. * mmain-is-OS_task: AVR Options. (line 219)
  50646. * mmainkernel: Nvidia PTX Options. (line 18)
  50647. * mmalloc64: VMS Options. (line 17)
  50648. * mmanual-endbr: x86 Options. (line 1041)
  50649. * mmax: DEC Alpha Options. (line 163)
  50650. * mmax-constant-size: RX Options. (line 82)
  50651. * mmax-stack-frame: CRIS Options. (line 23)
  50652. * mmcount-ra-address: MIPS Options. (line 872)
  50653. * mmcu: AVR Options. (line 9)
  50654. * mmcu <1>: MIPS Options. (line 399)
  50655. * mmcu <2>: PRU Options. (line 17)
  50656. * mmcu=: MSP430 Options. (line 14)
  50657. * MMD: Preprocessor Options.
  50658. (line 185)
  50659. * mmedia: FRV Options. (line 56)
  50660. * mmedium-calls: ARC Options. (line 408)
  50661. * mmemcpy: MicroBlaze Options. (line 13)
  50662. * mmemcpy <1>: MIPS Options. (line 597)
  50663. * mmemcpy-strategy=STRATEGY: x86 Options. (line 1242)
  50664. * mmemory-latency: DEC Alpha Options. (line 268)
  50665. * mmemory-model: SPARC Options. (line 348)
  50666. * mmemset-strategy=STRATEGY: x86 Options. (line 1254)
  50667. * mmfcrf: RS/6000 and PowerPC Options.
  50668. (line 25)
  50669. * mmicromips: MIPS Options. (line 387)
  50670. * mmillicode: ARC Options. (line 502)
  50671. * mminimal-toc: RS/6000 and PowerPC Options.
  50672. (line 255)
  50673. * mminmax: MeP Options. (line 87)
  50674. * mmixed-code: ARC Options. (line 516)
  50675. * mmmx: x86 Options. (line 755)
  50676. * mmodel=large: M32R/D Options. (line 33)
  50677. * mmodel=medium: M32R/D Options. (line 27)
  50678. * mmodel=small: M32R/D Options. (line 18)
  50679. * mmovbe: x86 Options. (line 940)
  50680. * mmovdir64b: x86 Options. (line 822)
  50681. * mmovdiri: x86 Options. (line 821)
  50682. * mmp: C-SKY Options. (line 71)
  50683. * mmpy: ARC Options. (line 117)
  50684. * mmpy-option: ARC Options. (line 173)
  50685. * mms-bitfields: x86 Options. (line 1087)
  50686. * mmt: MIPS Options. (line 395)
  50687. * mmul: RL78 Options. (line 15)
  50688. * mmul-bug-workaround: CRIS Options. (line 32)
  50689. * mmul.x: Moxie Options. (line 14)
  50690. * mmul32x16: ARC Options. (line 121)
  50691. * mmul64: ARC Options. (line 124)
  50692. * mmuladd: FRV Options. (line 64)
  50693. * mmulhw: RS/6000 and PowerPC Options.
  50694. (line 377)
  50695. * mmult: MeP Options. (line 90)
  50696. * mmult-bug: MN10300 Options. (line 9)
  50697. * mmultcost: ARC Options. (line 578)
  50698. * mmulti-cond-exec: FRV Options. (line 215)
  50699. * mmulticore: Blackfin Options. (line 139)
  50700. * mmultiple: RS/6000 and PowerPC Options.
  50701. (line 338)
  50702. * mmultiple-stld: C-SKY Options. (line 121)
  50703. * mmusl: GNU/Linux Options. (line 18)
  50704. * mmvcle: S/390 and zSeries Options.
  50705. (line 138)
  50706. * mmvme: RS/6000 and PowerPC Options.
  50707. (line 607)
  50708. * mmwaitx: x86 Options. (line 811)
  50709. * mn: H8/300 Options. (line 20)
  50710. * mn-flash: AVR Options. (line 224)
  50711. * mnan=2008: MIPS Options. (line 320)
  50712. * mnan=legacy: MIPS Options. (line 320)
  50713. * mneon-for-64bits: ARM Options. (line 912)
  50714. * mnested-cond-exec: FRV Options. (line 230)
  50715. * mnewlib: OpenRISC Options. (line 13)
  50716. * mnhwloop: Score Options. (line 15)
  50717. * mno-16-bit: NDS32 Options. (line 54)
  50718. * mno-4byte-functions: MCore Options. (line 27)
  50719. * mno-8byte-align: V850 Options. (line 170)
  50720. * mno-abicalls: MIPS Options. (line 192)
  50721. * mno-ac0: PDP-11 Options. (line 20)
  50722. * mno-align-double: x86 Options. (line 557)
  50723. * mno-align-int: M680x0 Options. (line 261)
  50724. * mno-align-loops: M32R/D Options. (line 76)
  50725. * mno-align-stringops: x86 Options. (line 1207)
  50726. * mno-allow-string-insns: RX Options. (line 150)
  50727. * mno-altivec: RS/6000 and PowerPC Options.
  50728. (line 135)
  50729. * mno-am33: MN10300 Options. (line 20)
  50730. * mno-app-regs: SPARC Options. (line 10)
  50731. * mno-app-regs <1>: V850 Options. (line 185)
  50732. * mno-as100-syntax: RX Options. (line 76)
  50733. * mno-auto-litpools: Xtensa Options. (line 60)
  50734. * mno-avoid-indexed-addresses: RS/6000 and PowerPC Options.
  50735. (line 359)
  50736. * mno-backchain: S/390 and zSeries Options.
  50737. (line 35)
  50738. * mno-base-addresses: MMIX Options. (line 53)
  50739. * mno-bit-align: RS/6000 and PowerPC Options.
  50740. (line 391)
  50741. * mno-bitfield: M680x0 Options. (line 227)
  50742. * mno-branch-likely: MIPS Options. (line 792)
  50743. * mno-branch-predict: MMIX Options. (line 48)
  50744. * mno-brcc: ARC Options. (line 444)
  50745. * mno-bwx: DEC Alpha Options. (line 163)
  50746. * mno-bypass-cache: Nios II Options. (line 103)
  50747. * mno-cache-volatile: Nios II Options. (line 109)
  50748. * mno-call-ms2sysv-xlogues: x86 Options. (line 1047)
  50749. * mno-callgraph-data: MCore Options. (line 31)
  50750. * mno-cbcond: SPARC Options. (line 260)
  50751. * mno-check-zero-division: MIPS Options. (line 570)
  50752. * mno-cix: DEC Alpha Options. (line 163)
  50753. * mno-clearbss: MicroBlaze Options. (line 16)
  50754. * mno-cmov: NDS32 Options. (line 24)
  50755. * mno-cmpb: RS/6000 and PowerPC Options.
  50756. (line 25)
  50757. * mno-cond-exec: ARC Options. (line 458)
  50758. * mno-cond-exec <1>: FRV Options. (line 194)
  50759. * mno-cond-move: FRV Options. (line 166)
  50760. * mno-const-align: CRIS Options. (line 55)
  50761. * mno-const16: Xtensa Options. (line 10)
  50762. * mno-crc: MIPS Options. (line 416)
  50763. * mno-crt0: MN10300 Options. (line 43)
  50764. * mno-crt0 <1>: Moxie Options. (line 18)
  50765. * mno-crypto: RS/6000 and PowerPC Options.
  50766. (line 176)
  50767. * mno-csync-anomaly: Blackfin Options. (line 63)
  50768. * mno-custom-INSN: Nios II Options. (line 139)
  50769. * mno-data-align: CRIS Options. (line 55)
  50770. * mno-debug: S/390 and zSeries Options.
  50771. (line 144)
  50772. * mno-default: x86 Options. (line 876)
  50773. * mno-disable-callt: V850 Options. (line 92)
  50774. * mno-div: M680x0 Options. (line 206)
  50775. * mno-div <1>: MCore Options. (line 15)
  50776. * mno-dlmzb: RS/6000 and PowerPC Options.
  50777. (line 384)
  50778. * mno-double: FRV Options. (line 52)
  50779. * mno-dpfp-lrsr: ARC Options. (line 108)
  50780. * mno-dsp: MIPS Options. (line 353)
  50781. * mno-dspr2: MIPS Options. (line 359)
  50782. * mno-dwarf2-asm: IA-64 Options. (line 94)
  50783. * mno-dword: FRV Options. (line 44)
  50784. * mno-eabi: RS/6000 and PowerPC Options.
  50785. (line 631)
  50786. * mno-early-stop-bits: IA-64 Options. (line 100)
  50787. * mno-eflags: FRV Options. (line 155)
  50788. * mno-embedded-data: MIPS Options. (line 517)
  50789. * mno-ep: V850 Options. (line 16)
  50790. * mno-epsilon: MMIX Options. (line 15)
  50791. * mno-eva: MIPS Options. (line 403)
  50792. * mno-explicit-relocs: DEC Alpha Options. (line 176)
  50793. * mno-explicit-relocs <1>: MIPS Options. (line 561)
  50794. * mno-exr: H8/300 Options. (line 33)
  50795. * mno-ext-perf: NDS32 Options. (line 30)
  50796. * mno-ext-perf2: NDS32 Options. (line 36)
  50797. * mno-ext-string: NDS32 Options. (line 42)
  50798. * mno-extern-sdata: MIPS Options. (line 480)
  50799. * mno-fancy-math-387: x86 Options. (line 547)
  50800. * mno-fast-sw-div: Nios II Options. (line 115)
  50801. * mno-faster-structs: SPARC Options. (line 91)
  50802. * mno-fdpic: ARM Options. (line 957)
  50803. * mno-fix: DEC Alpha Options. (line 163)
  50804. * mno-fix-24k: MIPS Options. (line 641)
  50805. * mno-fix-cortex-a53-835769: AArch64 Options. (line 105)
  50806. * mno-fix-cortex-a53-843419: AArch64 Options. (line 112)
  50807. * mno-fix-r10000: MIPS Options. (line 663)
  50808. * mno-fix-r4000: MIPS Options. (line 647)
  50809. * mno-fix-r4400: MIPS Options. (line 657)
  50810. * mno-flat: SPARC Options. (line 22)
  50811. * mno-float: MIPS Options. (line 274)
  50812. * mno-float128: RS/6000 and PowerPC Options.
  50813. (line 213)
  50814. * mno-float128-hardware: RS/6000 and PowerPC Options.
  50815. (line 235)
  50816. * mno-flush-func: M32R/D Options. (line 98)
  50817. * mno-flush-trap: M32R/D Options. (line 90)
  50818. * mno-fmaf: SPARC Options. (line 267)
  50819. * mno-fp-in-toc: RS/6000 and PowerPC Options.
  50820. (line 255)
  50821. * mno-fp-regs: DEC Alpha Options. (line 25)
  50822. * mno-fp-ret-in-387: x86 Options. (line 537)
  50823. * mno-fprnd: RS/6000 and PowerPC Options.
  50824. (line 25)
  50825. * mno-fpu: SPARC Options. (line 39)
  50826. * mno-fpu <1>: Visium Options. (line 24)
  50827. * mno-fsca: SH Options. (line 365)
  50828. * mno-fsmuld: SPARC Options. (line 274)
  50829. * mno-fsrra: SH Options. (line 374)
  50830. * mno-fused-madd: IA-64 Options. (line 88)
  50831. * mno-fused-madd <1>: MIPS Options. (line 624)
  50832. * mno-fused-madd <2>: RS/6000 and PowerPC Options.
  50833. (line 368)
  50834. * mno-fused-madd <3>: S/390 and zSeries Options.
  50835. (line 182)
  50836. * mno-fused-madd <4>: SH Options. (line 356)
  50837. * mno-fused-madd <5>: Xtensa Options. (line 19)
  50838. * mno-ginv: MIPS Options. (line 421)
  50839. * mno-gnu-as: IA-64 Options. (line 18)
  50840. * mno-gnu-attribute: RS/6000 and PowerPC Options.
  50841. (line 585)
  50842. * mno-gnu-ld: IA-64 Options. (line 23)
  50843. * mno-gotplt: CRIS Options. (line 81)
  50844. * mno-gpopt: MIPS Options. (line 502)
  50845. * mno-gpopt <1>: Nios II Options. (line 16)
  50846. * mno-hard-dfp: RS/6000 and PowerPC Options.
  50847. (line 25)
  50848. * mno-hard-dfp <1>: S/390 and zSeries Options.
  50849. (line 20)
  50850. * mno-hardlit: MCore Options. (line 10)
  50851. * mno-htm: RS/6000 and PowerPC Options.
  50852. (line 182)
  50853. * mno-htm <1>: S/390 and zSeries Options.
  50854. (line 104)
  50855. * mno-hw-div: Nios II Options. (line 124)
  50856. * mno-hw-mul: Nios II Options. (line 124)
  50857. * mno-hw-mulx: Nios II Options. (line 124)
  50858. * mno-id-shared-library: Blackfin Options. (line 85)
  50859. * mno-ieee: SH Options. (line 165)
  50860. * mno-ieee-fp: x86 Options. (line 514)
  50861. * mno-imadd: MIPS Options. (line 617)
  50862. * mno-inline-float-divide: IA-64 Options. (line 62)
  50863. * mno-inline-int-divide: IA-64 Options. (line 73)
  50864. * mno-inline-sqrt: IA-64 Options. (line 84)
  50865. * mno-int16: PDP-11 Options. (line 37)
  50866. * mno-int32: PDP-11 Options. (line 33)
  50867. * mno-interlink-compressed: MIPS Options. (line 135)
  50868. * mno-interlink-mips16: MIPS Options. (line 147)
  50869. * mno-interrupts: AVR Options. (line 227)
  50870. * mno-isel: RS/6000 and PowerPC Options.
  50871. (line 165)
  50872. * mno-jsr: RX Options. (line 169)
  50873. * mno-knuthdiv: MMIX Options. (line 32)
  50874. * mno-leaf-id-shared-library: Blackfin Options. (line 95)
  50875. * mno-libfuncs: MMIX Options. (line 10)
  50876. * mno-liw: MN10300 Options. (line 59)
  50877. * mno-llsc: MIPS Options. (line 339)
  50878. * mno-load-store-pairs: MIPS Options. (line 590)
  50879. * mno-local-sdata: MIPS Options. (line 468)
  50880. * mno-long-calls: ARM Options. (line 755)
  50881. * mno-long-calls <1>: Blackfin Options. (line 118)
  50882. * mno-long-calls <2>: HPPA Options. (line 136)
  50883. * mno-long-calls <3>: MIPS Options. (line 603)
  50884. * mno-long-calls <4>: V850 Options. (line 10)
  50885. * mno-long-jumps: V850 Options. (line 108)
  50886. * mno-longcall: RS/6000 and PowerPC Options.
  50887. (line 726)
  50888. * mno-longcalls: Xtensa Options. (line 87)
  50889. * mno-loongson-ext: MIPS Options. (line 430)
  50890. * mno-loongson-ext2: MIPS Options. (line 434)
  50891. * mno-loongson-mmi: MIPS Options. (line 425)
  50892. * mno-low-precision-div: AArch64 Options. (line 135)
  50893. * mno-low-precision-recip-sqrt: AArch64 Options. (line 118)
  50894. * mno-low-precision-sqrt: AArch64 Options. (line 126)
  50895. * mno-low64k: Blackfin Options. (line 71)
  50896. * mno-lra: SPARC Options. (line 111)
  50897. * mno-lsim: FR30 Options. (line 14)
  50898. * mno-lsim <1>: MCore Options. (line 46)
  50899. * mno-mad: MIPS Options. (line 612)
  50900. * mno-max: DEC Alpha Options. (line 163)
  50901. * mno-mcount-ra-address: MIPS Options. (line 872)
  50902. * mno-mcu: MIPS Options. (line 399)
  50903. * mno-mdmx: MIPS Options. (line 376)
  50904. * mno-media: FRV Options. (line 60)
  50905. * mno-memcpy: MIPS Options. (line 597)
  50906. * mno-mfcrf: RS/6000 and PowerPC Options.
  50907. (line 25)
  50908. * mno-mips16: MIPS Options. (line 120)
  50909. * mno-mips3d: MIPS Options. (line 382)
  50910. * mno-mmicromips: MIPS Options. (line 387)
  50911. * mno-mpy: ARC Options. (line 117)
  50912. * mno-ms-bitfields: x86 Options. (line 1087)
  50913. * mno-mt: MIPS Options. (line 395)
  50914. * mno-mul-bug-workaround: CRIS Options. (line 32)
  50915. * mno-muladd: FRV Options. (line 68)
  50916. * mno-mulhw: RS/6000 and PowerPC Options.
  50917. (line 377)
  50918. * mno-mult-bug: MN10300 Options. (line 13)
  50919. * mno-multi-cond-exec: FRV Options. (line 223)
  50920. * mno-multiple: RS/6000 and PowerPC Options.
  50921. (line 338)
  50922. * mno-mvcle: S/390 and zSeries Options.
  50923. (line 138)
  50924. * mno-nested-cond-exec: FRV Options. (line 237)
  50925. * mno-odd-spreg: MIPS Options. (line 293)
  50926. * mno-omit-leaf-frame-pointer: AArch64 Options. (line 58)
  50927. * mno-optimize-membar: FRV Options. (line 249)
  50928. * mno-opts: MeP Options. (line 93)
  50929. * mno-pack: FRV Options. (line 151)
  50930. * mno-packed-stack: S/390 and zSeries Options.
  50931. (line 54)
  50932. * mno-paired-single: MIPS Options. (line 370)
  50933. * mno-pc-relative-literal-loads: AArch64 Options. (line 261)
  50934. * mno-pcrel: RS/6000 and PowerPC Options.
  50935. (line 930)
  50936. * mno-pic: IA-64 Options. (line 26)
  50937. * mno-pid: RX Options. (line 117)
  50938. * mno-plt: MIPS Options. (line 219)
  50939. * mno-pltseq: RS/6000 and PowerPC Options.
  50940. (line 763)
  50941. * mno-popc: SPARC Options. (line 281)
  50942. * mno-popcntb: RS/6000 and PowerPC Options.
  50943. (line 25)
  50944. * mno-popcntd: RS/6000 and PowerPC Options.
  50945. (line 25)
  50946. * mno-postinc: Adapteva Epiphany Options.
  50947. (line 109)
  50948. * mno-postmodify: Adapteva Epiphany Options.
  50949. (line 109)
  50950. * mno-power8-fusion: RS/6000 and PowerPC Options.
  50951. (line 188)
  50952. * mno-power8-vector: RS/6000 and PowerPC Options.
  50953. (line 194)
  50954. * mno-powerpc-gfxopt: RS/6000 and PowerPC Options.
  50955. (line 25)
  50956. * mno-powerpc-gpopt: RS/6000 and PowerPC Options.
  50957. (line 25)
  50958. * mno-powerpc64: RS/6000 and PowerPC Options.
  50959. (line 25)
  50960. * mno-prefixed: RS/6000 and PowerPC Options.
  50961. (line 937)
  50962. * mno-prolog-function: V850 Options. (line 23)
  50963. * mno-prologue-epilogue: CRIS Options. (line 71)
  50964. * mno-prototype: RS/6000 and PowerPC Options.
  50965. (line 591)
  50966. * mno-push-args: x86 Options. (line 1064)
  50967. * mno-quad-memory: RS/6000 and PowerPC Options.
  50968. (line 201)
  50969. * mno-quad-memory-atomic: RS/6000 and PowerPC Options.
  50970. (line 207)
  50971. * mno-readonly-in-sdata: RS/6000 and PowerPC Options.
  50972. (line 682)
  50973. * mno-red-zone: x86 Options. (line 1433)
  50974. * mno-register-names: IA-64 Options. (line 37)
  50975. * mno-regnames: RS/6000 and PowerPC Options.
  50976. (line 720)
  50977. * mno-relax: PRU Options. (line 21)
  50978. * mno-relax <1>: V850 Options. (line 103)
  50979. * mno-relax-immediate: MCore Options. (line 19)
  50980. * mno-relocatable: RS/6000 and PowerPC Options.
  50981. (line 407)
  50982. * mno-relocatable-lib: RS/6000 and PowerPC Options.
  50983. (line 418)
  50984. * mno-renesas: SH Options. (line 155)
  50985. * mno-round-nearest: Adapteva Epiphany Options.
  50986. (line 51)
  50987. * mno-save-mduc-in-interrupts: RL78 Options. (line 79)
  50988. * mno-scc: FRV Options. (line 180)
  50989. * mno-sched-ar-data-spec: IA-64 Options. (line 135)
  50990. * mno-sched-ar-in-data-spec: IA-64 Options. (line 157)
  50991. * mno-sched-br-data-spec: IA-64 Options. (line 128)
  50992. * mno-sched-br-in-data-spec: IA-64 Options. (line 150)
  50993. * mno-sched-control-spec: IA-64 Options. (line 142)
  50994. * mno-sched-count-spec-in-critical-path: IA-64 Options. (line 185)
  50995. * mno-sched-in-control-spec: IA-64 Options. (line 164)
  50996. * mno-sched-prefer-non-control-spec-insns: IA-64 Options. (line 178)
  50997. * mno-sched-prefer-non-data-spec-insns: IA-64 Options. (line 171)
  50998. * mno-sched-prolog: ARM Options. (line 32)
  50999. * mno-sdata: ARC Options. (line 422)
  51000. * mno-sdata <1>: IA-64 Options. (line 42)
  51001. * mno-sdata <2>: RS/6000 and PowerPC Options.
  51002. (line 677)
  51003. * mno-sep-data: Blackfin Options. (line 113)
  51004. * mno-serialize-volatile: Xtensa Options. (line 35)
  51005. * mno-setlb: MN10300 Options. (line 69)
  51006. * mno-short: M680x0 Options. (line 222)
  51007. * mno-side-effects: CRIS Options. (line 46)
  51008. * mno-sim: RX Options. (line 71)
  51009. * mno-single-exit: MMIX Options. (line 65)
  51010. * mno-slow-bytes: MCore Options. (line 35)
  51011. * mno-small-exec: S/390 and zSeries Options.
  51012. (line 79)
  51013. * mno-smartmips: MIPS Options. (line 366)
  51014. * mno-soft-cmpsf: Adapteva Epiphany Options.
  51015. (line 29)
  51016. * mno-soft-float: DEC Alpha Options. (line 10)
  51017. * mno-space-regs: HPPA Options. (line 45)
  51018. * mno-specld-anomaly: Blackfin Options. (line 53)
  51019. * mno-split-addresses: MIPS Options. (line 555)
  51020. * mno-split-lohi: Adapteva Epiphany Options.
  51021. (line 109)
  51022. * mno-stack-align: CRIS Options. (line 55)
  51023. * mno-stack-bias: SPARC Options. (line 372)
  51024. * mno-std-struct-return: SPARC Options. (line 102)
  51025. * mno-strict-align: AArch64 Options. (line 52)
  51026. * mno-strict-align <1>: M680x0 Options. (line 280)
  51027. * mno-strict-align <2>: RS/6000 and PowerPC Options.
  51028. (line 402)
  51029. * mno-subxc: SPARC Options. (line 288)
  51030. * mno-sum-in-toc: RS/6000 and PowerPC Options.
  51031. (line 255)
  51032. * mno-sym32: MIPS Options. (line 453)
  51033. * mno-target-align: Xtensa Options. (line 74)
  51034. * mno-text-section-literals: Xtensa Options. (line 47)
  51035. * mno-tls-markers: RS/6000 and PowerPC Options.
  51036. (line 775)
  51037. * mno-toc: RS/6000 and PowerPC Options.
  51038. (line 427)
  51039. * mno-toplevel-symbols: MMIX Options. (line 39)
  51040. * mno-tpf-trace: S/390 and zSeries Options.
  51041. (line 168)
  51042. * mno-tpf-trace-skip: S/390 and zSeries Options.
  51043. (line 174)
  51044. * mno-unaligned-access: ARM Options. (line 899)
  51045. * mno-unaligned-doubles: SPARC Options. (line 73)
  51046. * mno-uninit-const-in-rodata: MIPS Options. (line 525)
  51047. * mno-update: RS/6000 and PowerPC Options.
  51048. (line 349)
  51049. * mno-user-mode: SPARC Options. (line 85)
  51050. * mno-usermode: SH Options. (line 274)
  51051. * mno-v3push: NDS32 Options. (line 48)
  51052. * mno-v8plus: SPARC Options. (line 214)
  51053. * mno-vect-double: Adapteva Epiphany Options.
  51054. (line 115)
  51055. * mno-virt: MIPS Options. (line 407)
  51056. * mno-vis: SPARC Options. (line 221)
  51057. * mno-vis2: SPARC Options. (line 227)
  51058. * mno-vis3: SPARC Options. (line 235)
  51059. * mno-vis4: SPARC Options. (line 243)
  51060. * mno-vis4b: SPARC Options. (line 251)
  51061. * mno-vliw-branch: FRV Options. (line 208)
  51062. * mno-volatile-asm-stop: IA-64 Options. (line 32)
  51063. * mno-volatile-cache: ARC Options. (line 431)
  51064. * mno-vrsave: RS/6000 and PowerPC Options.
  51065. (line 151)
  51066. * mno-vsx: RS/6000 and PowerPC Options.
  51067. (line 170)
  51068. * mno-vx: S/390 and zSeries Options.
  51069. (line 112)
  51070. * mno-warn-devices-csv: MSP430 Options. (line 153)
  51071. * mno-warn-mcu: MSP430 Options. (line 65)
  51072. * mno-warn-multiple-fast-interrupts: RX Options. (line 143)
  51073. * mno-wide-bitfields: MCore Options. (line 23)
  51074. * mno-xgot: M680x0 Options. (line 312)
  51075. * mno-xgot <1>: MIPS Options. (line 229)
  51076. * mno-xl-compat: RS/6000 and PowerPC Options.
  51077. (line 290)
  51078. * mno-xpa: MIPS Options. (line 411)
  51079. * mno-zdcbranch: SH Options. (line 341)
  51080. * mno-zero-extend: MMIX Options. (line 26)
  51081. * mno-zvector: S/390 and zSeries Options.
  51082. (line 123)
  51083. * mnobitfield: M680x0 Options. (line 227)
  51084. * mnodiv: FT32 Options. (line 20)
  51085. * mnomacsave: SH Options. (line 160)
  51086. * mnop-fun-dllimport: x86 Windows Options.
  51087. (line 22)
  51088. * mnop-mcount: x86 Options. (line 1294)
  51089. * mnopm: FT32 Options. (line 29)
  51090. * mnops: Adapteva Epiphany Options.
  51091. (line 26)
  51092. * mnorm: ARC Options. (line 128)
  51093. * modd-spreg: MIPS Options. (line 293)
  51094. * momit-leaf-frame-pointer: AArch64 Options. (line 58)
  51095. * momit-leaf-frame-pointer <1>: Blackfin Options. (line 43)
  51096. * momit-leaf-frame-pointer <2>: x86 Options. (line 1258)
  51097. * mone-byte-bool: Darwin Options. (line 90)
  51098. * moptimize: Nvidia PTX Options. (line 22)
  51099. * moptimize-membar: FRV Options. (line 244)
  51100. * moptimize-membar <1>: FRV Options. (line 249)
  51101. * moverride: AArch64 Options. (line 248)
  51102. * MP: Preprocessor Options.
  51103. (line 132)
  51104. * mpa-risc-1-0: HPPA Options. (line 19)
  51105. * mpa-risc-1-1: HPPA Options. (line 19)
  51106. * mpa-risc-2-0: HPPA Options. (line 19)
  51107. * mpack: FRV Options. (line 147)
  51108. * mpacked-stack: S/390 and zSeries Options.
  51109. (line 54)
  51110. * mpadstruct: SH Options. (line 189)
  51111. * mpaired-single: MIPS Options. (line 370)
  51112. * mpc-relative-literal-loads: AArch64 Options. (line 261)
  51113. * mpc32: x86 Options. (line 679)
  51114. * mpc64: x86 Options. (line 679)
  51115. * mpc80: x86 Options. (line 679)
  51116. * mpclmul: x86 Options. (line 777)
  51117. * mpconfig: x86 Options. (line 785)
  51118. * mpcrel: M680x0 Options. (line 272)
  51119. * mpcrel <1>: RS/6000 and PowerPC Options.
  51120. (line 930)
  51121. * mpdebug: CRIS Options. (line 36)
  51122. * mpe: RS/6000 and PowerPC Options.
  51123. (line 309)
  51124. * mpe-aligned-commons: x86 Windows Options.
  51125. (line 59)
  51126. * mpic-data-is-text-relative: ARM Options. (line 792)
  51127. * mpic-data-is-text-relative <1>: MicroBlaze Options. (line 70)
  51128. * mpic-register: ARM Options. (line 785)
  51129. * mpid: RX Options. (line 117)
  51130. * mpku: x86 Options. (line 813)
  51131. * mplt: MIPS Options. (line 219)
  51132. * mpltseq: RS/6000 and PowerPC Options.
  51133. (line 763)
  51134. * mpointer-size=SIZE: VMS Options. (line 20)
  51135. * mpointers-to-nested-functions: RS/6000 and PowerPC Options.
  51136. (line 876)
  51137. * mpoke-function-name: ARM Options. (line 800)
  51138. * mpopc: SPARC Options. (line 281)
  51139. * mpopcnt: x86 Options. (line 797)
  51140. * mpopcntb: RS/6000 and PowerPC Options.
  51141. (line 25)
  51142. * mpopcntd: RS/6000 and PowerPC Options.
  51143. (line 25)
  51144. * mportable-runtime: HPPA Options. (line 71)
  51145. * mpostinc: Adapteva Epiphany Options.
  51146. (line 109)
  51147. * mpostmodify: Adapteva Epiphany Options.
  51148. (line 109)
  51149. * mpower8-fusion: RS/6000 and PowerPC Options.
  51150. (line 188)
  51151. * mpower8-vector: RS/6000 and PowerPC Options.
  51152. (line 194)
  51153. * mpowerpc-gfxopt: RS/6000 and PowerPC Options.
  51154. (line 25)
  51155. * mpowerpc-gpopt: RS/6000 and PowerPC Options.
  51156. (line 25)
  51157. * mpowerpc64: RS/6000 and PowerPC Options.
  51158. (line 25)
  51159. * mprefer-avx128: x86 Options. (line 900)
  51160. * mprefer-short-insn-regs: Adapteva Epiphany Options.
  51161. (line 13)
  51162. * mprefer-vector-width: x86 Options. (line 904)
  51163. * mprefergot: SH Options. (line 268)
  51164. * mpreferred-stack-boundary: RISC-V Options. (line 73)
  51165. * mpreferred-stack-boundary <1>: x86 Options. (line 709)
  51166. * mprefetchwt1: x86 Options. (line 790)
  51167. * mprefixed: RS/6000 and PowerPC Options.
  51168. (line 937)
  51169. * mpretend-cmove: SH Options. (line 383)
  51170. * mprfchw: x86 Options. (line 788)
  51171. * mprint-tune-info: ARM Options. (line 933)
  51172. * mprioritize-restricted-insns: RS/6000 and PowerPC Options.
  51173. (line 456)
  51174. * mprolog-function: V850 Options. (line 23)
  51175. * mprologue-epilogue: CRIS Options. (line 71)
  51176. * mprototype: RS/6000 and PowerPC Options.
  51177. (line 591)
  51178. * mptwrite: x86 Options. (line 781)
  51179. * mpure-code: ARM Options. (line 943)
  51180. * mpush-args: x86 Options. (line 1064)
  51181. * mpushpop: C-SKY Options. (line 114)
  51182. * MQ: Preprocessor Options.
  51183. (line 159)
  51184. * mq-class: ARC Options. (line 521)
  51185. * mquad-memory: RS/6000 and PowerPC Options.
  51186. (line 201)
  51187. * mquad-memory-atomic: RS/6000 and PowerPC Options.
  51188. (line 207)
  51189. * mr0rel-sec: Nios II Options. (line 76)
  51190. * mr10k-cache-barrier: MIPS Options. (line 714)
  51191. * mRcq: ARC Options. (line 525)
  51192. * mRcw: ARC Options. (line 529)
  51193. * mrdpid: x86 Options. (line 789)
  51194. * mrdrnd: x86 Options. (line 782)
  51195. * mrdseed: x86 Options. (line 791)
  51196. * mreadonly-in-sdata: RS/6000 and PowerPC Options.
  51197. (line 682)
  51198. * mrecip: RS/6000 and PowerPC Options.
  51199. (line 783)
  51200. * mrecip <1>: x86 Options. (line 954)
  51201. * mrecip-precision: RS/6000 and PowerPC Options.
  51202. (line 840)
  51203. * mrecip=opt: RS/6000 and PowerPC Options.
  51204. (line 796)
  51205. * mrecip=opt <1>: x86 Options. (line 976)
  51206. * mrecord-mcount: x86 Options. (line 1288)
  51207. * mrecord-return: x86 Options. (line 1308)
  51208. * mred-zone: x86 Options. (line 1433)
  51209. * mreduced-regs: NDS32 Options. (line 15)
  51210. * mregister-names: IA-64 Options. (line 37)
  51211. * mregnames: RS/6000 and PowerPC Options.
  51212. (line 720)
  51213. * mregparm: x86 Options. (line 649)
  51214. * mrelax: AVR Options. (line 231)
  51215. * mrelax <1>: H8/300 Options. (line 9)
  51216. * mrelax <2>: MN10300 Options. (line 46)
  51217. * mrelax <3>: MSP430 Options. (line 88)
  51218. * mrelax <4>: NDS32 Options. (line 84)
  51219. * mrelax <5>: RX Options. (line 95)
  51220. * mrelax <6>: SH Options. (line 137)
  51221. * mrelax <7>: V850 Options. (line 103)
  51222. * mrelax-immediate: MCore Options. (line 19)
  51223. * mrelax-pic-calls: MIPS Options. (line 859)
  51224. * mrelocatable: RS/6000 and PowerPC Options.
  51225. (line 407)
  51226. * mrelocatable-lib: RS/6000 and PowerPC Options.
  51227. (line 418)
  51228. * mrenesas: SH Options. (line 152)
  51229. * mrepeat: MeP Options. (line 96)
  51230. * mrestrict-it: ARM Options. (line 927)
  51231. * mreturn-pointer-on-d0: MN10300 Options. (line 36)
  51232. * mrf16: ARC Options. (line 324)
  51233. * mrgf-banked-regs: ARC Options. (line 304)
  51234. * mrh850-abi: V850 Options. (line 127)
  51235. * mrl78: RL78 Options. (line 62)
  51236. * mrmw: AVR Options. (line 245)
  51237. * mror: OpenRISC Options. (line 49)
  51238. * mrori: OpenRISC Options. (line 54)
  51239. * mround-nearest: Adapteva Epiphany Options.
  51240. (line 51)
  51241. * mrtd: M680x0 Options. (line 236)
  51242. * mrtd <1>: x86 Options. (line 625)
  51243. * mrtd <2>: x86 Function Attributes.
  51244. (line 9)
  51245. * mrtm: x86 Options. (line 808)
  51246. * mrtp: VxWorks Options. (line 11)
  51247. * mrtsc: ARC Options. (line 358)
  51248. * ms: H8/300 Options. (line 17)
  51249. * ms <1>: MeP Options. (line 100)
  51250. * ms2600: H8/300 Options. (line 24)
  51251. * msahf: x86 Options. (line 930)
  51252. * msatur: MeP Options. (line 105)
  51253. * msave-acc-in-interrupts: RX Options. (line 109)
  51254. * msave-mduc-in-interrupts: RL78 Options. (line 79)
  51255. * msave-restore: RISC-V Options. (line 87)
  51256. * msave-toc-indirect: RS/6000 and PowerPC Options.
  51257. (line 888)
  51258. * mscc: FRV Options. (line 173)
  51259. * msched-ar-data-spec: IA-64 Options. (line 135)
  51260. * msched-ar-in-data-spec: IA-64 Options. (line 157)
  51261. * msched-br-data-spec: IA-64 Options. (line 128)
  51262. * msched-br-in-data-spec: IA-64 Options. (line 150)
  51263. * msched-control-spec: IA-64 Options. (line 142)
  51264. * msched-costly-dep: RS/6000 and PowerPC Options.
  51265. (line 463)
  51266. * msched-count-spec-in-critical-path: IA-64 Options. (line 185)
  51267. * msched-fp-mem-deps-zero-cost: IA-64 Options. (line 202)
  51268. * msched-in-control-spec: IA-64 Options. (line 164)
  51269. * msched-max-memory-insns: IA-64 Options. (line 211)
  51270. * msched-max-memory-insns-hard-limit: IA-64 Options. (line 217)
  51271. * msched-prefer-non-control-spec-insns: IA-64 Options. (line 178)
  51272. * msched-prefer-non-data-spec-insns: IA-64 Options. (line 171)
  51273. * msched-prolog: ARM Options. (line 32)
  51274. * msched-prolog <1>: C-SKY Options. (line 148)
  51275. * msched-spec-ldc: IA-64 Options. (line 191)
  51276. * msched-spec-ldc <1>: IA-64 Options. (line 194)
  51277. * msched-stop-bits-after-every-cycle: IA-64 Options. (line 198)
  51278. * mschedule: HPPA Options. (line 78)
  51279. * mscore5: Score Options. (line 25)
  51280. * mscore5u: Score Options. (line 28)
  51281. * mscore7: Score Options. (line 31)
  51282. * mscore7d: Score Options. (line 35)
  51283. * msda: V850 Options. (line 40)
  51284. * msdata: ARC Options. (line 422)
  51285. * msdata <1>: IA-64 Options. (line 42)
  51286. * msdata <2>: RS/6000 and PowerPC Options.
  51287. (line 664)
  51288. * msdata=all: C6X Options. (line 30)
  51289. * msdata=data: RS/6000 and PowerPC Options.
  51290. (line 669)
  51291. * msdata=default: C6X Options. (line 22)
  51292. * msdata=default <1>: RS/6000 and PowerPC Options.
  51293. (line 664)
  51294. * msdata=eabi: RS/6000 and PowerPC Options.
  51295. (line 645)
  51296. * msdata=none: C6X Options. (line 35)
  51297. * msdata=none <1>: M32R/D Options. (line 40)
  51298. * msdata=none <2>: RS/6000 and PowerPC Options.
  51299. (line 677)
  51300. * msdata=sdata: M32R/D Options. (line 49)
  51301. * msdata=sysv: RS/6000 and PowerPC Options.
  51302. (line 655)
  51303. * msdata=use: M32R/D Options. (line 53)
  51304. * msdram: Blackfin Options. (line 169)
  51305. * msdram <1>: MeP Options. (line 110)
  51306. * msecure-plt: RS/6000 and PowerPC Options.
  51307. (line 154)
  51308. * msecurity: C-SKY Options. (line 80)
  51309. * msel-sched-dont-check-control-spec: IA-64 Options. (line 207)
  51310. * msep-data: Blackfin Options. (line 107)
  51311. * msep-data <1>: Blackfin Options. (line 113)
  51312. * mserialize-volatile: Xtensa Options. (line 35)
  51313. * msetlb: MN10300 Options. (line 64)
  51314. * msext: OpenRISC Options. (line 59)
  51315. * msfimm: OpenRISC Options. (line 63)
  51316. * msgx: x86 Options. (line 792)
  51317. * msha: x86 Options. (line 775)
  51318. * mshared-library-id: Blackfin Options. (line 100)
  51319. * mshftimm: OpenRISC Options. (line 68)
  51320. * mshort: M680x0 Options. (line 216)
  51321. * mshort-calls: AVR Options. (line 249)
  51322. * mshorten-memrefs: RISC-V Options. (line 93)
  51323. * mshstk: x86 Options. (line 944)
  51324. * mside-effects: CRIS Options. (line 46)
  51325. * msign-extend-enabled: LM32 Options. (line 18)
  51326. * msign-return-address: AArch64 Options. (line 267)
  51327. * msilicon-errata: MSP430 Options. (line 144)
  51328. * msilicon-errata-warn: MSP430 Options. (line 148)
  51329. * msim: Blackfin Options. (line 36)
  51330. * msim <1>: C6X Options. (line 19)
  51331. * msim <2>: CR16 Options. (line 18)
  51332. * msim <3>: FT32 Options. (line 9)
  51333. * msim <4>: M32C Options. (line 13)
  51334. * msim <5>: MeP Options. (line 114)
  51335. * msim <6>: MSP430 Options. (line 77)
  51336. * msim <7>: RL78 Options. (line 7)
  51337. * msim <8>: RS/6000 and PowerPC Options.
  51338. (line 601)
  51339. * msim <9>: RX Options. (line 71)
  51340. * msim <10>: Visium Options. (line 13)
  51341. * msim <11>: Xstormy16 Options. (line 9)
  51342. * msimd: ARC Options. (line 141)
  51343. * msimnovec: MeP Options. (line 117)
  51344. * msingle-exit: MMIX Options. (line 65)
  51345. * msingle-float: MIPS Options. (line 284)
  51346. * msingle-pic-base: ARM Options. (line 779)
  51347. * msingle-pic-base <1>: RS/6000 and PowerPC Options.
  51348. (line 450)
  51349. * msio: HPPA Options. (line 105)
  51350. * msize-level: ARC Options. (line 533)
  51351. * mskip-rax-setup: x86 Options. (line 1321)
  51352. * mslow-bytes: MCore Options. (line 35)
  51353. * mslow-flash-data: ARM Options. (line 915)
  51354. * msmall: MSP430 Options. (line 85)
  51355. * msmall-data: DEC Alpha Options. (line 187)
  51356. * msmall-data-limit: RISC-V Options. (line 82)
  51357. * msmall-data-limit <1>: RX Options. (line 47)
  51358. * msmall-divides: MicroBlaze Options. (line 38)
  51359. * msmall-exec: S/390 and zSeries Options.
  51360. (line 79)
  51361. * msmall-model: FR30 Options. (line 9)
  51362. * msmall-text: DEC Alpha Options. (line 205)
  51363. * msmall16: Adapteva Epiphany Options.
  51364. (line 66)
  51365. * msmallc: Nios II Options. (line 310)
  51366. * msmart: C-SKY Options. (line 97)
  51367. * msmartmips: MIPS Options. (line 366)
  51368. * msoft-cmpsf: Adapteva Epiphany Options.
  51369. (line 29)
  51370. * msoft-div: OpenRISC Options. (line 19)
  51371. * msoft-float: ARC Options. (line 145)
  51372. * msoft-float <1>: C-SKY Options. (line 36)
  51373. * msoft-float <2>: DEC Alpha Options. (line 10)
  51374. * msoft-float <3>: FRV Options. (line 27)
  51375. * msoft-float <4>: HPPA Options. (line 91)
  51376. * msoft-float <5>: M680x0 Options. (line 200)
  51377. * msoft-float <6>: MicroBlaze Options. (line 7)
  51378. * msoft-float <7>: MIPS Options. (line 270)
  51379. * msoft-float <8>: OpenRISC Options. (line 29)
  51380. * msoft-float <9>: PDP-11 Options. (line 13)
  51381. * msoft-float <10>: RS/6000 and PowerPC Options.
  51382. (line 332)
  51383. * msoft-float <11>: S/390 and zSeries Options.
  51384. (line 11)
  51385. * msoft-float <12>: SPARC Options. (line 39)
  51386. * msoft-float <13>: V850 Options. (line 113)
  51387. * msoft-float <14>: Visium Options. (line 24)
  51388. * msoft-float <15>: x86 Options. (line 524)
  51389. * msoft-mul: OpenRISC Options. (line 24)
  51390. * msoft-quad-float: SPARC Options. (line 59)
  51391. * msoft-stack: Nvidia PTX Options. (line 26)
  51392. * msp8: AVR Options. (line 256)
  51393. * mspace: V850 Options. (line 30)
  51394. * mspace-regs: HPPA Options. (line 45)
  51395. * mspecld-anomaly: Blackfin Options. (line 48)
  51396. * mspecld-anomaly <1>: Blackfin Options. (line 53)
  51397. * mspfp: ARC Options. (line 132)
  51398. * mspfp-compact: ARC Options. (line 133)
  51399. * mspfp-fast: ARC Options. (line 137)
  51400. * mspfp_compact: ARC Options. (line 634)
  51401. * mspfp_fast: ARC Options. (line 637)
  51402. * msplit: PDP-11 Options. (line 40)
  51403. * msplit-addresses: MIPS Options. (line 555)
  51404. * msplit-lohi: Adapteva Epiphany Options.
  51405. (line 109)
  51406. * msplit-vecmove-early: Adapteva Epiphany Options.
  51407. (line 126)
  51408. * msse: x86 Options. (line 756)
  51409. * msse2: x86 Options. (line 757)
  51410. * msse2avx: x86 Options. (line 1276)
  51411. * msse3: x86 Options. (line 758)
  51412. * msse4: x86 Options. (line 760)
  51413. * msse4.1: x86 Options. (line 762)
  51414. * msse4.2: x86 Options. (line 763)
  51415. * msse4a: x86 Options. (line 761)
  51416. * msseregparm: x86 Options. (line 660)
  51417. * mssse3: x86 Options. (line 759)
  51418. * mstack-align: CRIS Options. (line 55)
  51419. * mstack-bias: SPARC Options. (line 372)
  51420. * mstack-check-l1: Blackfin Options. (line 74)
  51421. * mstack-guard: S/390 and zSeries Options.
  51422. (line 201)
  51423. * mstack-increment: MCore Options. (line 50)
  51424. * mstack-offset: Adapteva Epiphany Options.
  51425. (line 37)
  51426. * mstack-protector-guard: AArch64 Options. (line 64)
  51427. * mstack-protector-guard <1>: AArch64 Options. (line 79)
  51428. * mstack-protector-guard <2>: RS/6000 and PowerPC Options.
  51429. (line 914)
  51430. * mstack-protector-guard <3>: x86 Options. (line 1347)
  51431. * mstack-protector-guard-offset: AArch64 Options. (line 64)
  51432. * mstack-protector-guard-offset <1>: AArch64 Options. (line 79)
  51433. * mstack-protector-guard-offset <2>: RS/6000 and PowerPC Options.
  51434. (line 914)
  51435. * mstack-protector-guard-offset <3>: x86 Options. (line 1347)
  51436. * mstack-protector-guard-reg: AArch64 Options. (line 64)
  51437. * mstack-protector-guard-reg <1>: AArch64 Options. (line 79)
  51438. * mstack-protector-guard-reg <2>: RS/6000 and PowerPC Options.
  51439. (line 914)
  51440. * mstack-protector-guard-reg <3>: x86 Options. (line 1347)
  51441. * mstack-protector-guard-symbol: RS/6000 and PowerPC Options.
  51442. (line 914)
  51443. * mstack-size: AMD GCN Options. (line 23)
  51444. * mstack-size <1>: C-SKY Options. (line 134)
  51445. * mstack-size <2>: S/390 and zSeries Options.
  51446. (line 201)
  51447. * mstackrealign: x86 Options. (line 700)
  51448. * mstd-struct-return: SPARC Options. (line 102)
  51449. * mstrict-align: AArch64 Options. (line 52)
  51450. * mstrict-align <1>: M680x0 Options. (line 280)
  51451. * mstrict-align <2>: RISC-V Options. (line 102)
  51452. * mstrict-align <3>: RS/6000 and PowerPC Options.
  51453. (line 402)
  51454. * mstrict-X: AVR Options. (line 269)
  51455. * mstring-compare-inline-limit: RS/6000 and PowerPC Options.
  51456. (line 706)
  51457. * mstringop-strategy=ALG: x86 Options. (line 1224)
  51458. * mstructure-size-boundary: ARM Options. (line 734)
  51459. * msubxc: SPARC Options. (line 288)
  51460. * msv-mode: Visium Options. (line 52)
  51461. * msve-vector-bits: AArch64 Options. (line 288)
  51462. * msvr4-struct-return: RS/6000 and PowerPC Options.
  51463. (line 547)
  51464. * mswap: ARC Options. (line 152)
  51465. * mswape: ARC Options. (line 363)
  51466. * msym32: MIPS Options. (line 453)
  51467. * msynci: MIPS Options. (line 845)
  51468. * msys-crt0: Nios II Options. (line 314)
  51469. * msys-lib: Nios II Options. (line 318)
  51470. * MT: Preprocessor Options.
  51471. (line 144)
  51472. * mtarget-align: Xtensa Options. (line 74)
  51473. * mtas: SH Options. (line 259)
  51474. * mtbm: x86 Options. (line 810)
  51475. * mtda: V850 Options. (line 34)
  51476. * mtelephony: ARC Options. (line 368)
  51477. * mtext-section-literals: Xtensa Options. (line 47)
  51478. * mtf: MeP Options. (line 121)
  51479. * mthread: x86 Windows Options.
  51480. (line 26)
  51481. * mthreads: x86 Options. (line 1079)
  51482. * mthumb: ARM Options. (line 822)
  51483. * mthumb-interwork: ARM Options. (line 24)
  51484. * mtiny-printf: MSP430 Options. (line 122)
  51485. * mtiny-stack: AVR Options. (line 283)
  51486. * mtiny=: MeP Options. (line 125)
  51487. * mTLS: FRV Options. (line 90)
  51488. * mtls: FRV Options. (line 94)
  51489. * mtls-dialect: ARM Options. (line 874)
  51490. * mtls-dialect <1>: x86 Options. (line 1057)
  51491. * mtls-dialect=desc: AArch64 Options. (line 92)
  51492. * mtls-dialect=traditional: AArch64 Options. (line 96)
  51493. * mtls-direct-seg-refs: x86 Options. (line 1266)
  51494. * mtls-markers: RS/6000 and PowerPC Options.
  51495. (line 775)
  51496. * mtls-size: AArch64 Options. (line 100)
  51497. * mtls-size <1>: IA-64 Options. (line 112)
  51498. * mtoc: RS/6000 and PowerPC Options.
  51499. (line 427)
  51500. * mtomcat-stats: FRV Options. (line 254)
  51501. * mtoplevel-symbols: MMIX Options. (line 39)
  51502. * mtp: ARM Options. (line 866)
  51503. * mtp-regno: ARC Options. (line 170)
  51504. * mtpcs-frame: ARM Options. (line 839)
  51505. * mtpcs-leaf-frame: ARM Options. (line 845)
  51506. * mtpf-trace: S/390 and zSeries Options.
  51507. (line 168)
  51508. * mtpf-trace-skip: S/390 and zSeries Options.
  51509. (line 174)
  51510. * mtraceback: RS/6000 and PowerPC Options.
  51511. (line 540)
  51512. * mtrap-precision: DEC Alpha Options. (line 109)
  51513. * mtrust: C-SKY Options. (line 83)
  51514. * mtune: AArch64 Options. (line 199)
  51515. * mtune <1>: AMD GCN Options. (line 10)
  51516. * mtune <2>: ARC Options. (line 554)
  51517. * mtune <3>: ARC Options. (line 640)
  51518. * mtune <4>: ARM Options. (line 571)
  51519. * mtune <5>: CRIS Options. (line 17)
  51520. * mtune <6>: DEC Alpha Options. (line 259)
  51521. * mtune <7>: IA-64 Options. (line 116)
  51522. * mtune <8>: M680x0 Options. (line 68)
  51523. * mtune <9>: MIPS Options. (line 66)
  51524. * mtune <10>: MN10300 Options. (line 30)
  51525. * mtune <11>: RISC-V Options. (line 59)
  51526. * mtune <12>: RS/6000 and PowerPC Options.
  51527. (line 112)
  51528. * mtune <13>: S/390 and zSeries Options.
  51529. (line 161)
  51530. * mtune <14>: SPARC Options. (line 199)
  51531. * mtune <15>: Visium Options. (line 47)
  51532. * mtune <16>: x86 Options. (line 398)
  51533. * mtune-ctrl=FEATURE-LIST: x86 Options. (line 867)
  51534. * muclibc: GNU/Linux Options. (line 14)
  51535. * muls: Score Options. (line 18)
  51536. * multcost: ARC Options. (line 645)
  51537. * multcost=NUMBER: SH Options. (line 281)
  51538. * multilib-library-pic: FRV Options. (line 110)
  51539. * multiply-enabled: LM32 Options. (line 15)
  51540. * multiply_defined: Darwin Options. (line 196)
  51541. * multiply_defined_unused: Darwin Options. (line 196)
  51542. * multi_module: Darwin Options. (line 196)
  51543. * munalign-prob-threshold: ARC Options. (line 582)
  51544. * munaligned-access: ARM Options. (line 899)
  51545. * munaligned-doubles: SPARC Options. (line 73)
  51546. * municode: x86 Windows Options.
  51547. (line 30)
  51548. * muniform-simt: Nvidia PTX Options. (line 38)
  51549. * muninit-const-in-rodata: MIPS Options. (line 525)
  51550. * munix: VAX Options. (line 9)
  51551. * munix-asm: PDP-11 Options. (line 43)
  51552. * munordered-float: OpenRISC Options. (line 39)
  51553. * mupdate: RS/6000 and PowerPC Options.
  51554. (line 349)
  51555. * muser-enabled: LM32 Options. (line 21)
  51556. * muser-mode: SPARC Options. (line 85)
  51557. * muser-mode <1>: Visium Options. (line 57)
  51558. * musermode: SH Options. (line 274)
  51559. * mv3push: NDS32 Options. (line 45)
  51560. * mv850: V850 Options. (line 49)
  51561. * mv850e: V850 Options. (line 79)
  51562. * mv850e1: V850 Options. (line 70)
  51563. * mv850e2: V850 Options. (line 66)
  51564. * mv850e2v3: V850 Options. (line 61)
  51565. * mv850e2v4: V850 Options. (line 57)
  51566. * mv850e3v5: V850 Options. (line 52)
  51567. * mv850es: V850 Options. (line 75)
  51568. * mv8plus: SPARC Options. (line 214)
  51569. * mvaes: x86 Options. (line 817)
  51570. * mvdsp: C-SKY Options. (line 88)
  51571. * mveclibabi: RS/6000 and PowerPC Options.
  51572. (line 849)
  51573. * mveclibabi <1>: x86 Options. (line 1005)
  51574. * mvect-double: Adapteva Epiphany Options.
  51575. (line 115)
  51576. * mvect8-ret-in-mem: x86 Options. (line 670)
  51577. * mverbose-cost-dump: AArch64 Options. (line 256)
  51578. * mverbose-cost-dump <1>: ARM Options. (line 939)
  51579. * mvirt: MIPS Options. (line 407)
  51580. * mvis: SPARC Options. (line 221)
  51581. * mvis2: SPARC Options. (line 227)
  51582. * mvis3: SPARC Options. (line 235)
  51583. * mvis4: SPARC Options. (line 243)
  51584. * mvis4b: SPARC Options. (line 251)
  51585. * mvliw-branch: FRV Options. (line 201)
  51586. * mvms-return-codes: VMS Options. (line 9)
  51587. * mvolatile-asm-stop: IA-64 Options. (line 32)
  51588. * mvolatile-cache: ARC Options. (line 427)
  51589. * mvolatile-cache <1>: ARC Options. (line 431)
  51590. * mvpclmulqdq: x86 Options. (line 819)
  51591. * mvr4130-align: MIPS Options. (line 834)
  51592. * mvrsave: RS/6000 and PowerPC Options.
  51593. (line 151)
  51594. * mvsx: RS/6000 and PowerPC Options.
  51595. (line 170)
  51596. * mvx: S/390 and zSeries Options.
  51597. (line 112)
  51598. * mvxworks: RS/6000 and PowerPC Options.
  51599. (line 622)
  51600. * mvzeroupper: x86 Options. (line 894)
  51601. * mwaitpkg: x86 Options. (line 818)
  51602. * mwarn-devices-csv: MSP430 Options. (line 153)
  51603. * mwarn-dynamicstack: S/390 and zSeries Options.
  51604. (line 195)
  51605. * mwarn-framesize: S/390 and zSeries Options.
  51606. (line 187)
  51607. * mwarn-mcu: MSP430 Options. (line 65)
  51608. * mwarn-multiple-fast-interrupts: RX Options. (line 143)
  51609. * mwbnoinvd: x86 Options. (line 786)
  51610. * mwide-bitfields: MCore Options. (line 23)
  51611. * mwin32: x86 Windows Options.
  51612. (line 35)
  51613. * mwindows: x86 Windows Options.
  51614. (line 41)
  51615. * mword-relocations: ARM Options. (line 885)
  51616. * mx32: x86 Options. (line 1413)
  51617. * mxgot: M680x0 Options. (line 312)
  51618. * mxgot <1>: MIPS Options. (line 229)
  51619. * mxl-barrel-shift: MicroBlaze Options. (line 32)
  51620. * mxl-compat: RS/6000 and PowerPC Options.
  51621. (line 290)
  51622. * mxl-float-convert: MicroBlaze Options. (line 50)
  51623. * mxl-float-sqrt: MicroBlaze Options. (line 53)
  51624. * mxl-gp-opt: MicroBlaze Options. (line 44)
  51625. * mxl-multiply-high: MicroBlaze Options. (line 47)
  51626. * mxl-pattern-compare: MicroBlaze Options. (line 35)
  51627. * mxl-reorder: MicroBlaze Options. (line 62)
  51628. * mxl-soft-div: MicroBlaze Options. (line 29)
  51629. * mxl-soft-mul: MicroBlaze Options. (line 26)
  51630. * mxl-stack-check: MicroBlaze Options. (line 41)
  51631. * mxop: x86 Options. (line 793)
  51632. * mxpa: MIPS Options. (line 411)
  51633. * mxsave: x86 Options. (line 804)
  51634. * mxsavec: x86 Options. (line 806)
  51635. * mxsaveopt: x86 Options. (line 805)
  51636. * mxsaves: x86 Options. (line 807)
  51637. * mxy: ARC Options. (line 373)
  51638. * myellowknife: RS/6000 and PowerPC Options.
  51639. (line 617)
  51640. * mzarch: S/390 and zSeries Options.
  51641. (line 94)
  51642. * mzda: V850 Options. (line 45)
  51643. * mzdcbranch: SH Options. (line 341)
  51644. * mzero-extend: MMIX Options. (line 26)
  51645. * mzvector: S/390 and zSeries Options.
  51646. (line 123)
  51647. * no-80387: x86 Options. (line 524)
  51648. * no-canonical-prefixes: Directory Options. (line 164)
  51649. * no-integrated-cpp: Preprocessor Options.
  51650. (line 480)
  51651. * no-pie: Link Options. (line 181)
  51652. * no-sysroot-suffix: Directory Options. (line 183)
  51653. * noall_load: Darwin Options. (line 196)
  51654. * nocpp: MIPS Options. (line 636)
  51655. * nodefaultlibs: Link Options. (line 119)
  51656. * nodevicelib: AVR Options. (line 290)
  51657. * nodevicespecs: AVR Options. (line 293)
  51658. * nofixprebinding: Darwin Options. (line 196)
  51659. * nofpu: RX Options. (line 17)
  51660. * nolibc: Link Options. (line 131)
  51661. * nolibdld: HPPA Options. (line 188)
  51662. * nomultidefs: Darwin Options. (line 196)
  51663. * non-static: VxWorks Options. (line 16)
  51664. * noprebind: Darwin Options. (line 196)
  51665. * noseglinkedit: Darwin Options. (line 196)
  51666. * nostartfiles: Link Options. (line 114)
  51667. * nostdinc: Directory Options. (line 102)
  51668. * nostdinc++: C++ Dialect Options.
  51669. (line 487)
  51670. * nostdinc++ <1>: Directory Options. (line 108)
  51671. * nostdlib: Link Options. (line 143)
  51672. * no_dead_strip_inits_and_terms: Darwin Options. (line 196)
  51673. * o: Overall Options. (line 197)
  51674. * O: Optimize Options. (line 39)
  51675. * O0: Optimize Options. (line 164)
  51676. * O1: Optimize Options. (line 39)
  51677. * O2: Optimize Options. (line 95)
  51678. * O3: Optimize Options. (line 143)
  51679. * Ofast: Optimize Options. (line 180)
  51680. * Og: Optimize Options. (line 188)
  51681. * Os: Optimize Options. (line 168)
  51682. * p: Instrumentation Options.
  51683. (line 20)
  51684. * P: Preprocessor Options.
  51685. (line 365)
  51686. * p <1>: Common Function Attributes.
  51687. (line 691)
  51688. * pagezero_size: Darwin Options. (line 196)
  51689. * param: Optimize Options. (line 2616)
  51690. * pass-exit-codes: Overall Options. (line 339)
  51691. * pedantic: Standards. (line 13)
  51692. * pedantic <1>: Warning Options. (line 86)
  51693. * pedantic <2>: C Extensions. (line 6)
  51694. * pedantic <3>: Alternate Keywords. (line 30)
  51695. * pedantic <4>: Warnings and Errors.
  51696. (line 25)
  51697. * pedantic-errors: Standards. (line 13)
  51698. * pedantic-errors <1>: Warning Options. (line 129)
  51699. * pedantic-errors <2>: Non-bugs. (line 216)
  51700. * pedantic-errors <3>: Warnings and Errors.
  51701. (line 25)
  51702. * pg: Instrumentation Options.
  51703. (line 20)
  51704. * pg <1>: Common Function Attributes.
  51705. (line 691)
  51706. * pie: Link Options. (line 175)
  51707. * pipe: Overall Options. (line 347)
  51708. * plt: RISC-V Options. (line 13)
  51709. * prebind: Darwin Options. (line 196)
  51710. * prebind_all_twolevel_modules: Darwin Options. (line 196)
  51711. * print-file-name: Developer Options. (line 946)
  51712. * print-libgcc-file-name: Developer Options. (line 980)
  51713. * print-multi-directory: Developer Options. (line 952)
  51714. * print-multi-lib: Developer Options. (line 957)
  51715. * print-multi-os-directory: Developer Options. (line 964)
  51716. * print-multiarch: Developer Options. (line 973)
  51717. * print-objc-runtime-info: Objective-C and Objective-C++ Dialect Options.
  51718. (line 220)
  51719. * print-prog-name: Developer Options. (line 977)
  51720. * print-search-dirs: Developer Options. (line 988)
  51721. * print-sysroot: Developer Options. (line 1001)
  51722. * print-sysroot-headers-suffix: Developer Options. (line 1008)
  51723. * private_bundle: Darwin Options. (line 196)
  51724. * pthread: Preprocessor Options.
  51725. (line 70)
  51726. * pthread <1>: Link Options. (line 192)
  51727. * pthreads: Solaris 2 Options. (line 30)
  51728. * Q: Developer Options. (line 850)
  51729. * Qn: System V Options. (line 18)
  51730. * Qy: System V Options. (line 14)
  51731. * r: Link Options. (line 199)
  51732. * rdynamic: Link Options. (line 203)
  51733. * read_only_relocs: Darwin Options. (line 196)
  51734. * remap: Preprocessor Options.
  51735. (line 396)
  51736. * S: Overall Options. (line 180)
  51737. * S <1>: Link Options. (line 20)
  51738. * s: Link Options. (line 210)
  51739. * save-temps: Developer Options. (line 725)
  51740. * save-temps=obj: Developer Options. (line 751)
  51741. * sectalign: Darwin Options. (line 196)
  51742. * sectcreate: Darwin Options. (line 196)
  51743. * sectobjectsymbols: Darwin Options. (line 196)
  51744. * sectobjectsymbols <1>: Darwin Options. (line 196)
  51745. * sectorder: Darwin Options. (line 196)
  51746. * seg1addr: Darwin Options. (line 196)
  51747. * segaddr: Darwin Options. (line 196)
  51748. * seglinkedit: Darwin Options. (line 196)
  51749. * segprot: Darwin Options. (line 196)
  51750. * segs_read_only_addr: Darwin Options. (line 196)
  51751. * segs_read_only_addr <1>: Darwin Options. (line 196)
  51752. * segs_read_write_addr: Darwin Options. (line 196)
  51753. * segs_read_write_addr <1>: Darwin Options. (line 196)
  51754. * seg_addr_table: Darwin Options. (line 196)
  51755. * seg_addr_table_filename: Darwin Options. (line 196)
  51756. * shared: Link Options. (line 219)
  51757. * shared-libgcc: Link Options. (line 227)
  51758. * short-calls: Adapteva Epiphany Options.
  51759. (line 61)
  51760. * sim: CRIS Options. (line 95)
  51761. * sim2: CRIS Options. (line 101)
  51762. * single_module: Darwin Options. (line 196)
  51763. * specs: Overall Options. (line 353)
  51764. * static: Link Options. (line 214)
  51765. * static <1>: Darwin Options. (line 196)
  51766. * static <2>: HPPA Options. (line 192)
  51767. * static-libasan: Link Options. (line 261)
  51768. * static-libgcc: Link Options. (line 227)
  51769. * static-liblsan: Link Options. (line 277)
  51770. * static-libstdc++: Link Options. (line 294)
  51771. * static-libtsan: Link Options. (line 269)
  51772. * static-libubsan: Link Options. (line 285)
  51773. * static-pie: Link Options. (line 184)
  51774. * std: Standards. (line 13)
  51775. * std <1>: C Dialect Options. (line 46)
  51776. * std <2>: Other Builtins. (line 31)
  51777. * std <3>: Non-bugs. (line 107)
  51778. * sub_library: Darwin Options. (line 196)
  51779. * sub_umbrella: Darwin Options. (line 196)
  51780. * symbolic: Link Options. (line 305)
  51781. * sysroot: Directory Options. (line 168)
  51782. * T: Link Options. (line 311)
  51783. * target-help: Overall Options. (line 229)
  51784. * threads: HPPA Options. (line 205)
  51785. * time: Developer Options. (line 766)
  51786. * tno-android-cc: GNU/Linux Options. (line 36)
  51787. * tno-android-ld: GNU/Linux Options. (line 40)
  51788. * traditional: Preprocessor Options.
  51789. (line 372)
  51790. * traditional <1>: Incompatibilities. (line 6)
  51791. * traditional-cpp: Preprocessor Options.
  51792. (line 372)
  51793. * trigraphs: Preprocessor Options.
  51794. (line 382)
  51795. * twolevel_namespace: Darwin Options. (line 196)
  51796. * U: Preprocessor Options.
  51797. (line 42)
  51798. * u: Link Options. (line 343)
  51799. * umbrella: Darwin Options. (line 196)
  51800. * undef: Preprocessor Options.
  51801. (line 66)
  51802. * undefined: Darwin Options. (line 196)
  51803. * unexported_symbols_list: Darwin Options. (line 196)
  51804. * v: Overall Options. (line 208)
  51805. * version: Overall Options. (line 336)
  51806. * w: Warning Options. (line 25)
  51807. * W: Warning Options. (line 212)
  51808. * W <1>: Warning Options. (line 2618)
  51809. * W <2>: Warning Options. (line 2726)
  51810. * W <3>: Incompatibilities. (line 64)
  51811. * Wa: Assembler Options. (line 9)
  51812. * Wabi: Warning Options. (line 256)
  51813. * Wabi-tag: C++ Dialect Options.
  51814. (line 494)
  51815. * Wabi-tag <1>: C++ Dialect Options.
  51816. (line 494)
  51817. * Wabsolute-value: Warning Options. (line 2147)
  51818. * Waddr-space-convert: AVR Options. (line 308)
  51819. * Waddress: Warning Options. (line 2488)
  51820. * Waddress-of-packed-member: Warning Options. (line 2501)
  51821. * Waggregate-return: Warning Options. (line 2529)
  51822. * Waggressive-loop-optimizations: Warning Options. (line 2534)
  51823. * Waligned-new: C++ Dialect Options.
  51824. (line 934)
  51825. * Wall: Warning Options. (line 138)
  51826. * Wall <1>: Standard Libraries. (line 6)
  51827. * Walloc-size-larger-than=: Warning Options. (line 1616)
  51828. * Walloc-zero: Warning Options. (line 1606)
  51829. * Walloca: Warning Options. (line 1631)
  51830. * Walloca-larger-than=: Warning Options. (line 1634)
  51831. * Wanalyzer-double-fclose: Static Analyzer Options.
  51832. (line 47)
  51833. * Wanalyzer-double-free: Static Analyzer Options.
  51834. (line 54)
  51835. * Wanalyzer-exposure-through-output-file: Static Analyzer Options.
  51836. (line 61)
  51837. * Wanalyzer-file-leak: Static Analyzer Options.
  51838. (line 69)
  51839. * Wanalyzer-free-of-non-heap: Static Analyzer Options.
  51840. (line 76)
  51841. * Wanalyzer-malloc-leak: Static Analyzer Options.
  51842. (line 84)
  51843. * Wanalyzer-null-argument: Static Analyzer Options.
  51844. (line 106)
  51845. * Wanalyzer-null-dereference: Static Analyzer Options.
  51846. (line 114)
  51847. * Wanalyzer-possible-null-argument: Static Analyzer Options.
  51848. (line 91)
  51849. * Wanalyzer-possible-null-dereference: Static Analyzer Options.
  51850. (line 99)
  51851. * Wanalyzer-stale-setjmp-buffer: Static Analyzer Options.
  51852. (line 121)
  51853. * Wanalyzer-tainted-array-index: Static Analyzer Options.
  51854. (line 135)
  51855. * Wanalyzer-too-complex: Static Analyzer Options.
  51856. (line 37)
  51857. * Wanalyzer-unsafe-call-within-signal-handler: Static Analyzer Options.
  51858. (line 144)
  51859. * Wanalyzer-use-after-free: Static Analyzer Options.
  51860. (line 152)
  51861. * Wanalyzer-use-of-pointer-in-stale-stack-frame: Static Analyzer Options.
  51862. (line 159)
  51863. * Warith-conversion: Warning Options. (line 1699)
  51864. * Warray-bounds: Warning Options. (line 1712)
  51865. * Wassign-intercept: Objective-C and Objective-C++ Dialect Options.
  51866. (line 170)
  51867. * Wattribute-alias: Warning Options. (line 1729)
  51868. * Wattribute-warning: Warning Options. (line 2697)
  51869. * Wattributes: Warning Options. (line 2539)
  51870. * Wbad-function-cast: Warning Options. (line 2216)
  51871. * Wbool-compare: Warning Options. (line 1761)
  51872. * Wbool-operation: Warning Options. (line 1770)
  51873. * Wbuiltin-declaration-mismatch: Warning Options. (line 2545)
  51874. * Wbuiltin-macro-redefined: Warning Options. (line 2566)
  51875. * Wc++-compat: Warning Options. (line 2244)
  51876. * Wc++11-compat: Warning Options. (line 2249)
  51877. * Wc++14-compat: Warning Options. (line 2255)
  51878. * Wc++17-compat: Warning Options. (line 2259)
  51879. * Wc++20-compat: Warning Options. (line 2263)
  51880. * Wc11-c2x-compat: Warning Options. (line 2236)
  51881. * Wc90-c99-compat: Warning Options. (line 2221)
  51882. * Wc99-c11-compat: Warning Options. (line 2228)
  51883. * Wcast-align: Warning Options. (line 2283)
  51884. * Wcast-align=strict: Warning Options. (line 2289)
  51885. * Wcast-function-type: Warning Options. (line 2294)
  51886. * Wcast-qual: Warning Options. (line 2267)
  51887. * Wcatch-value: C++ Dialect Options.
  51888. (line 981)
  51889. * Wchar-subscripts: Warning Options. (line 366)
  51890. * Wclass-conversion: C++ Dialect Options.
  51891. (line 912)
  51892. * Wclass-memaccess: C++ Dialect Options.
  51893. (line 630)
  51894. * Wclobbered: Warning Options. (line 2320)
  51895. * Wcomma-subscript: C++ Dialect Options.
  51896. (line 499)
  51897. * Wcomment: Warning Options. (line 2158)
  51898. * Wcomments: Warning Options. (line 2158)
  51899. * Wconditionally-supported: C++ Dialect Options.
  51900. (line 989)
  51901. * Wconversion: Warning Options. (line 2324)
  51902. * Wconversion-null: C++ Dialect Options.
  51903. (line 1066)
  51904. * Wcoverage-mismatch: Warning Options. (line 371)
  51905. * Wcpp: Warning Options. (line 385)
  51906. * Wctor-dtor-privacy: C++ Dialect Options.
  51907. (line 511)
  51908. * Wdangling-else: Warning Options. (line 2345)
  51909. * Wdate-time: Warning Options. (line 2379)
  51910. * Wdeclaration-after-statement: Warning Options. (line 1990)
  51911. * Wdelete-incomplete: C++ Dialect Options.
  51912. (line 992)
  51913. * Wdelete-non-virtual-dtor: C++ Dialect Options.
  51914. (line 518)
  51915. * Wdeprecated: Warning Options. (line 2704)
  51916. * Wdeprecated-copy: C++ Dialect Options.
  51917. (line 525)
  51918. * Wdeprecated-declarations: Warning Options. (line 2708)
  51919. * Wdesignated-init: Warning Options. (line 2959)
  51920. * Wdisabled-optimization: Warning Options. (line 2910)
  51921. * Wdiscarded-array-qualifiers: Warning Options. (line 1809)
  51922. * Wdiscarded-qualifiers: Warning Options. (line 1803)
  51923. * Wdiv-by-zero: Warning Options. (line 1850)
  51924. * Wdouble-promotion: Warning Options. (line 389)
  51925. * Wduplicate-decl-specifier: Warning Options. (line 407)
  51926. * Wduplicated-branches: Warning Options. (line 1780)
  51927. * Wduplicated-cond: Warning Options. (line 1791)
  51928. * weak_reference_mismatches: Darwin Options. (line 196)
  51929. * Weffc++: C++ Dialect Options.
  51930. (line 767)
  51931. * Wempty-body: Warning Options. (line 2384)
  51932. * Wendif-labels: Warning Options. (line 2202)
  51933. * Wendif-labels <1>: Warning Options. (line 2388)
  51934. * Wenum-compare: Warning Options. (line 2391)
  51935. * Wenum-conversion: Warning Options. (line 2397)
  51936. * Werror: Warning Options. (line 28)
  51937. * Werror=: Warning Options. (line 31)
  51938. * Wexpansion-to-defined: Warning Options. (line 2177)
  51939. * Wextra: Warning Options. (line 212)
  51940. * Wextra <1>: Warning Options. (line 2618)
  51941. * Wextra <2>: Warning Options. (line 2726)
  51942. * Wextra-semi: C++ Dialect Options.
  51943. (line 997)
  51944. * Wfatal-errors: Warning Options. (line 48)
  51945. * Wfloat-conversion: Warning Options. (line 2424)
  51946. * Wfloat-equal: Warning Options. (line 1890)
  51947. * Wformat: Warning Options. (line 412)
  51948. * Wformat <1>: Warning Options. (line 437)
  51949. * Wformat <2>: Warning Options. (line 1577)
  51950. * Wformat <3>: Common Function Attributes.
  51951. (line 381)
  51952. * Wformat-contains-nul: Warning Options. (line 451)
  51953. * Wformat-extra-args: Warning Options. (line 455)
  51954. * Wformat-nonliteral: Warning Options. (line 548)
  51955. * Wformat-nonliteral <1>: Common Function Attributes.
  51956. (line 446)
  51957. * Wformat-overflow: Warning Options. (line 469)
  51958. * Wformat-overflow <1>: Warning Options. (line 480)
  51959. * Wformat-security: Warning Options. (line 553)
  51960. * Wformat-signedness: Warning Options. (line 564)
  51961. * Wformat-truncation: Warning Options. (line 569)
  51962. * Wformat-truncation <1>: Warning Options. (line 581)
  51963. * Wformat-y2k: Warning Options. (line 592)
  51964. * Wformat-zero-length: Warning Options. (line 544)
  51965. * Wformat=: Warning Options. (line 412)
  51966. * Wformat=1: Warning Options. (line 437)
  51967. * Wformat=2: Warning Options. (line 446)
  51968. * Wframe-address: Warning Options. (line 1797)
  51969. * Wframe-larger-than=: Warning Options. (line 2059)
  51970. * Wfree-nonheap-object: Warning Options. (line 2076)
  51971. * whatsloaded: Darwin Options. (line 196)
  51972. * Whsa: Warning Options. (line 2964)
  51973. * whyload: Darwin Options. (line 196)
  51974. * Wif-not-aligned: Warning Options. (line 765)
  51975. * Wignored-attributes: Warning Options. (line 780)
  51976. * Wignored-qualifiers: Warning Options. (line 769)
  51977. * Wimplicit: Warning Options. (line 643)
  51978. * Wimplicit-fallthrough: Warning Options. (line 647)
  51979. * Wimplicit-fallthrough=: Warning Options. (line 652)
  51980. * Wimplicit-function-declaration: Warning Options. (line 637)
  51981. * Wimplicit-int: Warning Options. (line 632)
  51982. * Winaccessible-base: C++ Dialect Options.
  51983. (line 1001)
  51984. * Wincompatible-pointer-types: Warning Options. (line 1815)
  51985. * Winherited-variadic-ctor: C++ Dialect Options.
  51986. (line 1012)
  51987. * Winit-list-lifetime: C++ Dialect Options.
  51988. (line 533)
  51989. * Winit-self: Warning Options. (line 617)
  51990. * Winline: Warning Options. (line 2819)
  51991. * Winline <1>: Inline. (line 60)
  51992. * Wint-conversion: Warning Options. (line 1821)
  51993. * Wint-in-bool-context: Warning Options. (line 2832)
  51994. * Wint-to-pointer-cast: Warning Options. (line 2840)
  51995. * Winvalid-memory-model: Warning Options. (line 1237)
  51996. * Winvalid-offsetof: C++ Dialect Options.
  51997. (line 1017)
  51998. * Winvalid-pch: Warning Options. (line 2849)
  51999. * Wjump-misses-init: Warning Options. (line 2401)
  52000. * Wl: Link Options. (line 335)
  52001. * Wlarger-than-BYTE-SIZE: Warning Options. (line 2049)
  52002. * Wlarger-than=: Warning Options. (line 2049)
  52003. * Wliteral-suffix: C++ Dialect Options.
  52004. (line 568)
  52005. * Wlogical-not-parentheses: Warning Options. (line 2514)
  52006. * Wlogical-op: Warning Options. (line 2506)
  52007. * Wlong-long: Warning Options. (line 2853)
  52008. * Wlto-type-mismatch: Warning Options. (line 2953)
  52009. * Wmain: Warning Options. (line 787)
  52010. * Wmaybe-uninitialized: Warning Options. (line 1254)
  52011. * Wmemset-elt-size: Warning Options. (line 2469)
  52012. * Wmemset-transposed-args: Warning Options. (line 2477)
  52013. * Wmisleading-indentation: Warning Options. (line 794)
  52014. * Wmismatched-tags: C++ Dialect Options.
  52015. (line 853)
  52016. * Wmissing-attributes: Warning Options. (line 828)
  52017. * Wmissing-braces: Warning Options. (line 872)
  52018. * Wmissing-declarations: Warning Options. (line 2608)
  52019. * Wmissing-field-initializers: Warning Options. (line 2618)
  52020. * Wmissing-format-attribute: Warning Options. (line 1577)
  52021. * Wmissing-include-dirs: Warning Options. (line 882)
  52022. * Wmissing-noreturn: Warning Options. (line 1563)
  52023. * Wmissing-parameter-type: Warning Options. (line 2590)
  52024. * Wmissing-profile: Warning Options. (line 885)
  52025. * Wmissing-prototypes: Warning Options. (line 2598)
  52026. * Wmisspelled-isr: AVR Options. (line 313)
  52027. * Wmultichar: Warning Options. (line 2648)
  52028. * Wmultiple-inheritance: C++ Dialect Options.
  52029. (line 878)
  52030. * Wmultistatement-macros: Warning Options. (line 901)
  52031. * Wnamespaces: C++ Dialect Options.
  52032. (line 901)
  52033. * Wnarrowing: C++ Dialect Options.
  52034. (line 594)
  52035. * Wnested-externs: Warning Options. (line 2816)
  52036. * Wno-abi: Warning Options. (line 256)
  52037. * Wno-absolute-value: Warning Options. (line 2147)
  52038. * Wno-addr-space-convert: AVR Options. (line 308)
  52039. * Wno-address: Warning Options. (line 2488)
  52040. * Wno-address-of-packed-member: Warning Options. (line 2501)
  52041. * Wno-aggregate-return: Warning Options. (line 2529)
  52042. * Wno-aggressive-loop-optimizations: Warning Options. (line 2534)
  52043. * Wno-aligned-new: C++ Dialect Options.
  52044. (line 934)
  52045. * Wno-all: Warning Options. (line 138)
  52046. * Wno-alloc-size-larger-than: Warning Options. (line 1616)
  52047. * Wno-alloc-size-larger-than <1>: Warning Options. (line 1627)
  52048. * Wno-alloc-zero: Warning Options. (line 1606)
  52049. * Wno-alloca: Warning Options. (line 1631)
  52050. * Wno-alloca-larger-than: Warning Options. (line 1634)
  52051. * Wno-alloca-larger-than <1>: Warning Options. (line 1695)
  52052. * Wno-analyzer-double-fclose: Static Analyzer Options.
  52053. (line 47)
  52054. * Wno-analyzer-double-free: Static Analyzer Options.
  52055. (line 54)
  52056. * Wno-analyzer-exposure-through-output-file: Static Analyzer Options.
  52057. (line 61)
  52058. * Wno-analyzer-file-leak: Static Analyzer Options.
  52059. (line 69)
  52060. * Wno-analyzer-free-of-non-heap: Static Analyzer Options.
  52061. (line 76)
  52062. * Wno-analyzer-malloc-leak: Static Analyzer Options.
  52063. (line 84)
  52064. * Wno-analyzer-null-argument: Static Analyzer Options.
  52065. (line 106)
  52066. * Wno-analyzer-null-dereference: Static Analyzer Options.
  52067. (line 114)
  52068. * Wno-analyzer-possible-null-argument: Static Analyzer Options.
  52069. (line 91)
  52070. * Wno-analyzer-possible-null-dereference: Static Analyzer Options.
  52071. (line 99)
  52072. * Wno-analyzer-stale-setjmp-buffer: Static Analyzer Options.
  52073. (line 121)
  52074. * Wno-analyzer-tainted-array-index: Static Analyzer Options.
  52075. (line 135)
  52076. * Wno-analyzer-too-complex: Static Analyzer Options.
  52077. (line 37)
  52078. * Wno-analyzer-unsafe-call-within-signal-handler: Static Analyzer Options.
  52079. (line 144)
  52080. * Wno-analyzer-use-after-free: Static Analyzer Options.
  52081. (line 152)
  52082. * Wno-analyzer-use-of-pointer-in-stale-stack-frame: Static Analyzer Options.
  52083. (line 159)
  52084. * Wno-arith-conversion: Warning Options. (line 1699)
  52085. * Wno-array-bounds: Warning Options. (line 1712)
  52086. * Wno-assign-intercept: Objective-C and Objective-C++ Dialect Options.
  52087. (line 170)
  52088. * Wno-attribute-alias: Warning Options. (line 1729)
  52089. * Wno-attribute-warning: Warning Options. (line 2697)
  52090. * Wno-attributes: Warning Options. (line 2539)
  52091. * Wno-bad-function-cast: Warning Options. (line 2216)
  52092. * Wno-bool-compare: Warning Options. (line 1761)
  52093. * Wno-bool-operation: Warning Options. (line 1770)
  52094. * Wno-builtin-declaration-mismatch: Warning Options. (line 2545)
  52095. * Wno-builtin-macro-redefined: Warning Options. (line 2566)
  52096. * Wno-c++-compat: Warning Options. (line 2244)
  52097. * Wno-c++11-compat: Warning Options. (line 2249)
  52098. * Wno-c++14-compat: Warning Options. (line 2255)
  52099. * Wno-c++17-compat: Warning Options. (line 2259)
  52100. * Wno-c++20-compat: Warning Options. (line 2263)
  52101. * Wno-c11-c2x-compat: Warning Options. (line 2236)
  52102. * Wno-c90-c99-compat: Warning Options. (line 2221)
  52103. * Wno-c99-c11-compat: Warning Options. (line 2228)
  52104. * Wno-cast-align: Warning Options. (line 2283)
  52105. * Wno-cast-function-type: Warning Options. (line 2294)
  52106. * Wno-cast-qual: Warning Options. (line 2267)
  52107. * Wno-catch-value: C++ Dialect Options.
  52108. (line 981)
  52109. * Wno-char-subscripts: Warning Options. (line 366)
  52110. * Wno-class-conversion: C++ Dialect Options.
  52111. (line 912)
  52112. * Wno-class-memaccess: C++ Dialect Options.
  52113. (line 630)
  52114. * Wno-clobbered: Warning Options. (line 2320)
  52115. * Wno-comma-subscript: C++ Dialect Options.
  52116. (line 499)
  52117. * Wno-conditionally-supported: C++ Dialect Options.
  52118. (line 989)
  52119. * Wno-conversion: Warning Options. (line 2324)
  52120. * Wno-conversion-null: C++ Dialect Options.
  52121. (line 1066)
  52122. * Wno-coverage-mismatch: Warning Options. (line 371)
  52123. * Wno-cpp: Warning Options. (line 385)
  52124. * Wno-ctor-dtor-privacy: C++ Dialect Options.
  52125. (line 511)
  52126. * Wno-dangling-else: Warning Options. (line 2345)
  52127. * Wno-date-time: Warning Options. (line 2379)
  52128. * Wno-declaration-after-statement: Warning Options. (line 1990)
  52129. * Wno-delete-incomplete: C++ Dialect Options.
  52130. (line 992)
  52131. * Wno-delete-non-virtual-dtor: C++ Dialect Options.
  52132. (line 518)
  52133. * Wno-deprecated: Warning Options. (line 2704)
  52134. * Wno-deprecated-copy: C++ Dialect Options.
  52135. (line 525)
  52136. * Wno-deprecated-declarations: Warning Options. (line 2708)
  52137. * Wno-designated-init: Warning Options. (line 2959)
  52138. * Wno-disabled-optimization: Warning Options. (line 2910)
  52139. * Wno-discarded-array-qualifiers: Warning Options. (line 1809)
  52140. * Wno-discarded-qualifiers: Warning Options. (line 1803)
  52141. * Wno-div-by-zero: Warning Options. (line 1850)
  52142. * Wno-double-promotion: Warning Options. (line 389)
  52143. * Wno-duplicate-decl-specifier: Warning Options. (line 407)
  52144. * Wno-duplicated-branches: Warning Options. (line 1780)
  52145. * Wno-duplicated-cond: Warning Options. (line 1791)
  52146. * Wno-effc++: C++ Dialect Options.
  52147. (line 767)
  52148. * Wno-empty-body: Warning Options. (line 2384)
  52149. * Wno-endif-labels: Warning Options. (line 2202)
  52150. * Wno-endif-labels <1>: Warning Options. (line 2388)
  52151. * Wno-enum-compare: Warning Options. (line 2391)
  52152. * Wno-enum-conversion: Warning Options. (line 2397)
  52153. * Wno-error: Warning Options. (line 28)
  52154. * Wno-error=: Warning Options. (line 31)
  52155. * Wno-extra: Warning Options. (line 212)
  52156. * Wno-extra <1>: Warning Options. (line 2618)
  52157. * Wno-extra <2>: Warning Options. (line 2726)
  52158. * Wno-extra-semi: C++ Dialect Options.
  52159. (line 997)
  52160. * Wno-fatal-errors: Warning Options. (line 48)
  52161. * Wno-float-conversion: Warning Options. (line 2424)
  52162. * Wno-float-equal: Warning Options. (line 1890)
  52163. * Wno-format: Warning Options. (line 412)
  52164. * Wno-format <1>: Warning Options. (line 1577)
  52165. * Wno-format-contains-nul: Warning Options. (line 451)
  52166. * Wno-format-extra-args: Warning Options. (line 455)
  52167. * Wno-format-nonliteral: Warning Options. (line 548)
  52168. * Wno-format-overflow: Warning Options. (line 469)
  52169. * Wno-format-overflow <1>: Warning Options. (line 480)
  52170. * Wno-format-security: Warning Options. (line 553)
  52171. * Wno-format-signedness: Warning Options. (line 564)
  52172. * Wno-format-truncation: Warning Options. (line 569)
  52173. * Wno-format-truncation <1>: Warning Options. (line 581)
  52174. * Wno-format-y2k: Warning Options. (line 592)
  52175. * Wno-format-zero-length: Warning Options. (line 544)
  52176. * Wno-frame-address: Warning Options. (line 1797)
  52177. * Wno-frame-larger-than: Warning Options. (line 2059)
  52178. * Wno-frame-larger-than <1>: Warning Options. (line 2072)
  52179. * Wno-free-nonheap-object: Warning Options. (line 2076)
  52180. * Wno-hsa: Warning Options. (line 2964)
  52181. * Wno-if-not-aligned: Warning Options. (line 765)
  52182. * Wno-ignored-attributes: Warning Options. (line 780)
  52183. * Wno-ignored-qualifiers: Warning Options. (line 769)
  52184. * Wno-implicit: Warning Options. (line 643)
  52185. * Wno-implicit-fallthrough: Warning Options. (line 647)
  52186. * Wno-implicit-function-declaration: Warning Options. (line 637)
  52187. * Wno-implicit-int: Warning Options. (line 632)
  52188. * Wno-inaccessible-base: C++ Dialect Options.
  52189. (line 1001)
  52190. * Wno-incompatible-pointer-types: Warning Options. (line 1815)
  52191. * Wno-inherited-variadic-ctor: C++ Dialect Options.
  52192. (line 1012)
  52193. * Wno-init-list-lifetime: C++ Dialect Options.
  52194. (line 533)
  52195. * Wno-init-self: Warning Options. (line 617)
  52196. * Wno-inline: Warning Options. (line 2819)
  52197. * Wno-int-conversion: Warning Options. (line 1821)
  52198. * Wno-int-in-bool-context: Warning Options. (line 2832)
  52199. * Wno-int-to-pointer-cast: Warning Options. (line 2840)
  52200. * Wno-invalid-memory-model: Warning Options. (line 1237)
  52201. * Wno-invalid-offsetof: C++ Dialect Options.
  52202. (line 1017)
  52203. * Wno-invalid-pch: Warning Options. (line 2849)
  52204. * Wno-jump-misses-init: Warning Options. (line 2401)
  52205. * Wno-larger-than: Warning Options. (line 2055)
  52206. * Wno-literal-suffix: C++ Dialect Options.
  52207. (line 568)
  52208. * Wno-logical-not-parentheses: Warning Options. (line 2514)
  52209. * Wno-logical-op: Warning Options. (line 2506)
  52210. * Wno-long-long: Warning Options. (line 2853)
  52211. * Wno-lto-type-mismatch: Warning Options. (line 2953)
  52212. * Wno-main: Warning Options. (line 787)
  52213. * Wno-maybe-uninitialized: Warning Options. (line 1254)
  52214. * Wno-memset-elt-size: Warning Options. (line 2469)
  52215. * Wno-memset-transposed-args: Warning Options. (line 2477)
  52216. * Wno-misleading-indentation: Warning Options. (line 794)
  52217. * Wno-mismatched-tags: C++ Dialect Options.
  52218. (line 853)
  52219. * Wno-missing-attributes: Warning Options. (line 828)
  52220. * Wno-missing-braces: Warning Options. (line 872)
  52221. * Wno-missing-declarations: Warning Options. (line 2608)
  52222. * Wno-missing-field-initializers: Warning Options. (line 2618)
  52223. * Wno-missing-format-attribute: Warning Options. (line 1577)
  52224. * Wno-missing-include-dirs: Warning Options. (line 882)
  52225. * Wno-missing-noreturn: Warning Options. (line 1563)
  52226. * Wno-missing-parameter-type: Warning Options. (line 2590)
  52227. * Wno-missing-profile: Warning Options. (line 885)
  52228. * Wno-missing-prototypes: Warning Options. (line 2598)
  52229. * Wno-misspelled-isr: AVR Options. (line 313)
  52230. * Wno-multichar: Warning Options. (line 2648)
  52231. * Wno-multiple-inheritance: C++ Dialect Options.
  52232. (line 878)
  52233. * Wno-multistatement-macros: Warning Options. (line 901)
  52234. * Wno-namespaces: C++ Dialect Options.
  52235. (line 901)
  52236. * Wno-narrowing: C++ Dialect Options.
  52237. (line 594)
  52238. * Wno-nested-externs: Warning Options. (line 2816)
  52239. * Wno-noexcept: C++ Dialect Options.
  52240. (line 610)
  52241. * Wno-noexcept-type: C++ Dialect Options.
  52242. (line 616)
  52243. * Wno-non-template-friend: C++ Dialect Options.
  52244. (line 802)
  52245. * Wno-non-virtual-dtor: C++ Dialect Options.
  52246. (line 650)
  52247. * Wno-nonnull: Warning Options. (line 596)
  52248. * Wno-nonnull-compare: Warning Options. (line 603)
  52249. * Wno-normalized: Warning Options. (line 2654)
  52250. * Wno-null-dereference: Warning Options. (line 610)
  52251. * Wno-odr: Warning Options. (line 2717)
  52252. * Wno-old-style-cast: C++ Dialect Options.
  52253. (line 811)
  52254. * Wno-old-style-declaration: Warning Options. (line 2577)
  52255. * Wno-old-style-definition: Warning Options. (line 2583)
  52256. * Wno-openmp-simd: Warning Options. (line 2721)
  52257. * Wno-overflow: Warning Options. (line 2714)
  52258. * Wno-overlength-strings: Warning Options. (line 2930)
  52259. * Wno-overloaded-virtual: C++ Dialect Options.
  52260. (line 817)
  52261. * Wno-override-init: Warning Options. (line 2726)
  52262. * Wno-override-init-side-effects: Warning Options. (line 2734)
  52263. * Wno-packed: Warning Options. (line 2739)
  52264. * Wno-packed-bitfield-compat: Warning Options. (line 2756)
  52265. * Wno-packed-not-aligned: Warning Options. (line 2773)
  52266. * Wno-padded: Warning Options. (line 2786)
  52267. * Wno-parentheses: Warning Options. (line 921)
  52268. * Wno-pedantic: Warning Options. (line 86)
  52269. * Wno-pedantic-ms-format: Warning Options. (line 2114)
  52270. * Wno-pessimizing-move: C++ Dialect Options.
  52271. (line 679)
  52272. * Wno-placement-new: C++ Dialect Options.
  52273. (line 945)
  52274. * Wno-pmf-conversions: C++ Dialect Options.
  52275. (line 836)
  52276. * Wno-pmf-conversions <1>: Bound member functions.
  52277. (line 35)
  52278. * Wno-pointer-arith: Warning Options. (line 2120)
  52279. * Wno-pointer-compare: Warning Options. (line 2127)
  52280. * Wno-pointer-sign: Warning Options. (line 2919)
  52281. * Wno-pointer-to-int-cast: Warning Options. (line 2845)
  52282. * Wno-pragmas: Warning Options. (line 1306)
  52283. * Wno-prio-ctor-dtor: Warning Options. (line 1311)
  52284. * Wno-property-assign-default: Objective-C and Objective-C++ Dialect Options.
  52285. (line 174)
  52286. * Wno-protocol: Objective-C and Objective-C++ Dialect Options.
  52287. (line 178)
  52288. * Wno-redundant-decls: Warning Options. (line 2793)
  52289. * Wno-redundant-move: C++ Dialect Options.
  52290. (line 701)
  52291. * Wno-redundant-tags: C++ Dialect Options.
  52292. (line 740)
  52293. * Wno-register: C++ Dialect Options.
  52294. (line 658)
  52295. * Wno-reorder: C++ Dialect Options.
  52296. (line 665)
  52297. * Wno-restrict: Warning Options. (line 2797)
  52298. * Wno-return-local-addr: Warning Options. (line 1001)
  52299. * Wno-return-type: Warning Options. (line 1005)
  52300. * Wno-scalar-storage-order: Warning Options. (line 2430)
  52301. * Wno-selector: Objective-C and Objective-C++ Dialect Options.
  52302. (line 188)
  52303. * Wno-sequence-point: Warning Options. (line 948)
  52304. * Wno-shadow: Warning Options. (line 1996)
  52305. * Wno-shadow-ivar: Warning Options. (line 2007)
  52306. * Wno-shift-count-negative: Warning Options. (line 1026)
  52307. * Wno-shift-count-overflow: Warning Options. (line 1030)
  52308. * Wno-shift-negative-value: Warning Options. (line 1034)
  52309. * Wno-shift-overflow: Warning Options. (line 1039)
  52310. * Wno-sign-compare: Warning Options. (line 2412)
  52311. * Wno-sign-conversion: Warning Options. (line 2418)
  52312. * Wno-sign-promo: C++ Dialect Options.
  52313. (line 840)
  52314. * Wno-sized-deallocation: C++ Dialect Options.
  52315. (line 1029)
  52316. * Wno-sizeof-array-argument: Warning Options. (line 2464)
  52317. * Wno-sizeof-pointer-div: Warning Options. (line 2434)
  52318. * Wno-sizeof-pointer-memaccess: Warning Options. (line 2442)
  52319. * Wno-stack-protector: Warning Options. (line 2925)
  52320. * Wno-stack-usage: Warning Options. (line 2080)
  52321. * Wno-stack-usage <1>: Warning Options. (line 2104)
  52322. * Wno-strict-aliasing: Warning Options. (line 1319)
  52323. * Wno-strict-null-sentinel: C++ Dialect Options.
  52324. (line 795)
  52325. * Wno-strict-overflow: Warning Options. (line 1358)
  52326. * Wno-strict-prototypes: Warning Options. (line 2571)
  52327. * Wno-strict-selector-match: Objective-C and Objective-C++ Dialect Options.
  52328. (line 200)
  52329. * Wno-string-compare: Warning Options. (line 1406)
  52330. * Wno-stringop-overflow: Warning Options. (line 1427)
  52331. * Wno-stringop-overflow <1>: Warning Options. (line 1466)
  52332. * Wno-stringop-truncation: Warning Options. (line 1504)
  52333. * Wno-subobject-linkage: C++ Dialect Options.
  52334. (line 754)
  52335. * Wno-suggest-attribute=: Warning Options. (line 1555)
  52336. * Wno-suggest-attribute=cold: Warning Options. (line 1598)
  52337. * Wno-suggest-attribute=const: Warning Options. (line 1563)
  52338. * Wno-suggest-attribute=format: Warning Options. (line 1577)
  52339. * Wno-suggest-attribute=malloc: Warning Options. (line 1563)
  52340. * Wno-suggest-attribute=noreturn: Warning Options. (line 1563)
  52341. * Wno-suggest-attribute=pure: Warning Options. (line 1563)
  52342. * Wno-suggest-final-methods: C++ Dialect Options.
  52343. (line 1049)
  52344. * Wno-suggest-final-types: C++ Dialect Options.
  52345. (line 1040)
  52346. * Wno-suggest-override: C++ Dialect Options.
  52347. (line 1059)
  52348. * Wno-switch: Warning Options. (line 1055)
  52349. * Wno-switch-bool: Warning Options. (line 1075)
  52350. * Wno-switch-default: Warning Options. (line 1063)
  52351. * Wno-switch-enum: Warning Options. (line 1066)
  52352. * Wno-switch-outside-range: Warning Options. (line 1086)
  52353. * Wno-switch-unreachable: Warning Options. (line 1091)
  52354. * Wno-sync-nand: Warning Options. (line 1115)
  52355. * Wno-system-headers: Warning Options. (line 1855)
  52356. * Wno-tautological-compare: Warning Options. (line 1866)
  52357. * Wno-templates: C++ Dialect Options.
  52358. (line 846)
  52359. * Wno-terminate: C++ Dialect Options.
  52360. (line 908)
  52361. * Wno-traditional: Warning Options. (line 1905)
  52362. * Wno-traditional-conversion: Warning Options. (line 1982)
  52363. * Wno-trampolines: Warning Options. (line 1880)
  52364. * Wno-type-limits: Warning Options. (line 2140)
  52365. * Wno-undeclared-selector: Objective-C and Objective-C++ Dialect Options.
  52366. (line 208)
  52367. * Wno-undef: Warning Options. (line 2173)
  52368. * Wno-uninitialized: Warning Options. (line 1216)
  52369. * Wno-unknown-pragmas: Warning Options. (line 1299)
  52370. * Wno-unsafe-loop-optimizations: Warning Options. (line 2108)
  52371. * Wno-unsuffixed-float-constants: Warning Options. (line 2945)
  52372. * Wno-unused: Warning Options. (line 1209)
  52373. * Wno-unused-but-set-parameter: Warning Options. (line 1120)
  52374. * Wno-unused-but-set-variable: Warning Options. (line 1129)
  52375. * Wno-unused-const-variable: Warning Options. (line 1176)
  52376. * Wno-unused-function: Warning Options. (line 1139)
  52377. * Wno-unused-label: Warning Options. (line 1144)
  52378. * Wno-unused-local-typedefs: Warning Options. (line 1151)
  52379. * Wno-unused-parameter: Warning Options. (line 1155)
  52380. * Wno-unused-result: Warning Options. (line 1162)
  52381. * Wno-unused-value: Warning Options. (line 1199)
  52382. * Wno-unused-variable: Warning Options. (line 1167)
  52383. * Wno-useless-cast: C++ Dialect Options.
  52384. (line 1063)
  52385. * Wno-varargs: Warning Options. (line 2864)
  52386. * Wno-variadic-macros: Warning Options. (line 2858)
  52387. * Wno-vector-operation-performance: Warning Options. (line 2869)
  52388. * Wno-virtual-inheritance: C++ Dialect Options.
  52389. (line 885)
  52390. * Wno-virtual-move-assign: C++ Dialect Options.
  52391. (line 892)
  52392. * Wno-vla: Warning Options. (line 2879)
  52393. * Wno-vla-larger-than: Warning Options. (line 2883)
  52394. * Wno-vla-larger-than <1>: Warning Options. (line 2900)
  52395. * Wno-volatile: C++ Dialect Options.
  52396. (line 917)
  52397. * Wno-volatile-register-var: Warning Options. (line 2904)
  52398. * Wno-write-strings: Warning Options. (line 2307)
  52399. * Wno-zero-as-null-pointer-constant: C++ Dialect Options.
  52400. (line 930)
  52401. * Wnoexcept: C++ Dialect Options.
  52402. (line 610)
  52403. * Wnoexcept-type: C++ Dialect Options.
  52404. (line 616)
  52405. * Wnon-template-friend: C++ Dialect Options.
  52406. (line 802)
  52407. * Wnon-virtual-dtor: C++ Dialect Options.
  52408. (line 650)
  52409. * Wnonnull: Warning Options. (line 596)
  52410. * Wnonnull-compare: Warning Options. (line 603)
  52411. * Wnormalized: Warning Options. (line 2654)
  52412. * Wnormalized=: Warning Options. (line 2654)
  52413. * Wnull-dereference: Warning Options. (line 610)
  52414. * Wodr: Warning Options. (line 2717)
  52415. * Wold-style-cast: C++ Dialect Options.
  52416. (line 811)
  52417. * Wold-style-declaration: Warning Options. (line 2577)
  52418. * Wold-style-definition: Warning Options. (line 2583)
  52419. * Wopenmp-simd: Warning Options. (line 2721)
  52420. * Woverflow: Warning Options. (line 2714)
  52421. * Woverlength-strings: Warning Options. (line 2930)
  52422. * Woverloaded-virtual: C++ Dialect Options.
  52423. (line 817)
  52424. * Woverride-init: Warning Options. (line 2726)
  52425. * Woverride-init-side-effects: Warning Options. (line 2734)
  52426. * Wp: Preprocessor Options.
  52427. (line 460)
  52428. * Wpacked: Warning Options. (line 2739)
  52429. * Wpacked-bitfield-compat: Warning Options. (line 2756)
  52430. * Wpacked-not-aligned: Warning Options. (line 2773)
  52431. * Wpadded: Warning Options. (line 2786)
  52432. * Wparentheses: Warning Options. (line 921)
  52433. * Wpedantic: Warning Options. (line 86)
  52434. * Wpedantic-ms-format: Warning Options. (line 2114)
  52435. * Wpessimizing-move: C++ Dialect Options.
  52436. (line 679)
  52437. * Wplacement-new: C++ Dialect Options.
  52438. (line 945)
  52439. * Wpmf-conversions: C++ Dialect Options.
  52440. (line 836)
  52441. * Wpointer-arith: Warning Options. (line 2120)
  52442. * Wpointer-arith <1>: Pointer Arith. (line 13)
  52443. * Wpointer-compare: Warning Options. (line 2127)
  52444. * Wpointer-sign: Warning Options. (line 2919)
  52445. * Wpointer-to-int-cast: Warning Options. (line 2845)
  52446. * Wpragmas: Warning Options. (line 1306)
  52447. * Wprio-ctor-dtor: Warning Options. (line 1311)
  52448. * Wproperty-assign-default: Objective-C and Objective-C++ Dialect Options.
  52449. (line 174)
  52450. * Wprotocol: Objective-C and Objective-C++ Dialect Options.
  52451. (line 178)
  52452. * wrapper: Overall Options. (line 362)
  52453. * Wredundant-decls: Warning Options. (line 2793)
  52454. * Wredundant-move: C++ Dialect Options.
  52455. (line 701)
  52456. * Wredundant-tags: C++ Dialect Options.
  52457. (line 740)
  52458. * Wregister: C++ Dialect Options.
  52459. (line 658)
  52460. * Wreorder: C++ Dialect Options.
  52461. (line 665)
  52462. * Wrestrict: Warning Options. (line 2797)
  52463. * Wreturn-local-addr: Warning Options. (line 1001)
  52464. * Wreturn-type: Warning Options. (line 1005)
  52465. * Wscalar-storage-order: Warning Options. (line 2430)
  52466. * Wselector: Objective-C and Objective-C++ Dialect Options.
  52467. (line 188)
  52468. * Wsequence-point: Warning Options. (line 948)
  52469. * Wshadow: Warning Options. (line 1996)
  52470. * Wshadow-ivar: Warning Options. (line 2007)
  52471. * Wshadow=compatible-local: Warning Options. (line 2018)
  52472. * Wshadow=global: Warning Options. (line 2011)
  52473. * Wshadow=local: Warning Options. (line 2014)
  52474. * Wshift-count-negative: Warning Options. (line 1026)
  52475. * Wshift-count-overflow: Warning Options. (line 1030)
  52476. * Wshift-negative-value: Warning Options. (line 1034)
  52477. * Wshift-overflow: Warning Options. (line 1039)
  52478. * Wsign-compare: Warning Options. (line 2412)
  52479. * Wsign-conversion: Warning Options. (line 2418)
  52480. * Wsign-promo: C++ Dialect Options.
  52481. (line 840)
  52482. * Wsized-deallocation: C++ Dialect Options.
  52483. (line 1029)
  52484. * Wsizeof-array-argument: Warning Options. (line 2464)
  52485. * Wsizeof-pointer-div: Warning Options. (line 2434)
  52486. * Wsizeof-pointer-memaccess: Warning Options. (line 2442)
  52487. * Wstack-protector: Warning Options. (line 2925)
  52488. * Wstack-usage: Warning Options. (line 2080)
  52489. * Wstrict-aliasing: Warning Options. (line 1319)
  52490. * Wstrict-aliasing=n: Warning Options. (line 1326)
  52491. * Wstrict-null-sentinel: C++ Dialect Options.
  52492. (line 795)
  52493. * Wstrict-overflow: Warning Options. (line 1358)
  52494. * Wstrict-prototypes: Warning Options. (line 2571)
  52495. * Wstrict-selector-match: Objective-C and Objective-C++ Dialect Options.
  52496. (line 200)
  52497. * Wstring-compare: Warning Options. (line 1406)
  52498. * Wstringop-overflow: Warning Options. (line 1427)
  52499. * Wstringop-overflow <1>: Warning Options. (line 1466)
  52500. * Wstringop-truncation: Warning Options. (line 1504)
  52501. * Wsubobject-linkage: C++ Dialect Options.
  52502. (line 754)
  52503. * Wsuggest-attribute=: Warning Options. (line 1555)
  52504. * Wsuggest-attribute=cold: Warning Options. (line 1598)
  52505. * Wsuggest-attribute=const: Warning Options. (line 1563)
  52506. * Wsuggest-attribute=format: Warning Options. (line 1577)
  52507. * Wsuggest-attribute=malloc: Warning Options. (line 1563)
  52508. * Wsuggest-attribute=noreturn: Warning Options. (line 1563)
  52509. * Wsuggest-attribute=pure: Warning Options. (line 1563)
  52510. * Wsuggest-final-methods: C++ Dialect Options.
  52511. (line 1049)
  52512. * Wsuggest-final-types: C++ Dialect Options.
  52513. (line 1040)
  52514. * Wsuggest-override: C++ Dialect Options.
  52515. (line 1059)
  52516. * Wswitch: Warning Options. (line 1055)
  52517. * Wswitch-bool: Warning Options. (line 1075)
  52518. * Wswitch-default: Warning Options. (line 1063)
  52519. * Wswitch-enum: Warning Options. (line 1066)
  52520. * Wswitch-outside-range: Warning Options. (line 1086)
  52521. * Wswitch-unreachable: Warning Options. (line 1091)
  52522. * Wsync-nand: Warning Options. (line 1115)
  52523. * Wsystem-headers: Warning Options. (line 1855)
  52524. * Wtautological-compare: Warning Options. (line 1866)
  52525. * Wtemplates: C++ Dialect Options.
  52526. (line 846)
  52527. * Wterminate: C++ Dialect Options.
  52528. (line 908)
  52529. * Wtraditional: Warning Options. (line 1905)
  52530. * Wtraditional-conversion: Warning Options. (line 1982)
  52531. * Wtrampolines: Warning Options. (line 1880)
  52532. * Wtrigraphs: Warning Options. (line 2163)
  52533. * Wtype-limits: Warning Options. (line 2140)
  52534. * Wundeclared-selector: Objective-C and Objective-C++ Dialect Options.
  52535. (line 208)
  52536. * Wundef: Warning Options. (line 2173)
  52537. * Wuninitialized: Warning Options. (line 1216)
  52538. * Wunknown-pragmas: Warning Options. (line 1299)
  52539. * Wunsafe-loop-optimizations: Warning Options. (line 2108)
  52540. * Wunsuffixed-float-constants: Warning Options. (line 2945)
  52541. * Wunused: Warning Options. (line 1209)
  52542. * Wunused-but-set-parameter: Warning Options. (line 1120)
  52543. * Wunused-but-set-variable: Warning Options. (line 1129)
  52544. * Wunused-const-variable: Warning Options. (line 1176)
  52545. * Wunused-function: Warning Options. (line 1139)
  52546. * Wunused-label: Warning Options. (line 1144)
  52547. * Wunused-local-typedefs: Warning Options. (line 1151)
  52548. * Wunused-macros: Warning Options. (line 2183)
  52549. * Wunused-parameter: Warning Options. (line 1155)
  52550. * Wunused-result: Warning Options. (line 1162)
  52551. * Wunused-value: Warning Options. (line 1199)
  52552. * Wunused-variable: Warning Options. (line 1167)
  52553. * Wuseless-cast: C++ Dialect Options.
  52554. (line 1063)
  52555. * Wvarargs: Warning Options. (line 2864)
  52556. * Wvariadic-macros: Warning Options. (line 2858)
  52557. * Wvector-operation-performance: Warning Options. (line 2869)
  52558. * Wvirtual-inheritance: C++ Dialect Options.
  52559. (line 885)
  52560. * Wvirtual-move-assign: C++ Dialect Options.
  52561. (line 892)
  52562. * Wvla: Warning Options. (line 2879)
  52563. * Wvla-larger-than=: Warning Options. (line 2883)
  52564. * Wvolatile: C++ Dialect Options.
  52565. (line 917)
  52566. * Wvolatile-register-var: Warning Options. (line 2904)
  52567. * Wwrite-strings: Warning Options. (line 2307)
  52568. * Wzero-as-null-pointer-constant: C++ Dialect Options.
  52569. (line 930)
  52570. * Wzero-length-bounds: Warning Options. (line 1827)
  52571. * Wzero-length-bounds <1>: Warning Options. (line 1827)
  52572. * x: Overall Options. (line 138)
  52573. * Xassembler: Assembler Options. (line 13)
  52574. * Xbind-lazy: VxWorks Options. (line 26)
  52575. * Xbind-now: VxWorks Options. (line 30)
  52576. * Xlinker: Link Options. (line 317)
  52577. * Xpreprocessor: Preprocessor Options.
  52578. (line 471)
  52579. * Ym: System V Options. (line 26)
  52580. * YP: System V Options. (line 22)
  52581. * z: Link Options. (line 348)
  52582. 
  52583. File: gcc.info, Node: Keyword Index, Prev: Option Index, Up: Top
  52584. Keyword Index
  52585. *************
  52586. �[index�]
  52587. * Menu:
  52588. * #pragma: Pragmas. (line 6)
  52589. * #pragma implementation: C++ Interface. (line 36)
  52590. * #pragma implementation, implied: C++ Interface. (line 43)
  52591. * #pragma interface: C++ Interface. (line 17)
  52592. * $: Dollar Signs. (line 6)
  52593. * % in constraint: Modifiers. (line 52)
  52594. * %include: Spec Files. (line 26)
  52595. * %include_noerr: Spec Files. (line 30)
  52596. * %rename: Spec Files. (line 34)
  52597. * & in constraint: Modifiers. (line 25)
  52598. * ': Incompatibilities. (line 116)
  52599. * *__builtin_alloca: Other Builtins. (line 129)
  52600. * *__builtin_alloca_with_align: Other Builtins. (line 166)
  52601. * *__builtin_alloca_with_align_and_max: Other Builtins. (line 211)
  52602. * + in constraint: Modifiers. (line 12)
  52603. * -lgcc, use with -nodefaultlibs: Link Options. (line 154)
  52604. * -lgcc, use with -nostdlib: Link Options. (line 154)
  52605. * -march feature modifiers: AArch64 Options. (line 310)
  52606. * -mcpu feature modifiers: AArch64 Options. (line 310)
  52607. * -nodefaultlibs and unresolved references: Link Options. (line 154)
  52608. * -nostdlib and unresolved references: Link Options. (line 154)
  52609. * .sdata/.sdata2 references (PowerPC): RS/6000 and PowerPC Options.
  52610. (line 712)
  52611. * //: C++ Comments. (line 6)
  52612. * 0 in constraint: Simple Constraints. (line 125)
  52613. * < in constraint: Simple Constraints. (line 47)
  52614. * = in constraint: Modifiers. (line 8)
  52615. * > in constraint: Simple Constraints. (line 59)
  52616. * ?: extensions: Conditionals. (line 6)
  52617. * ?: side effect: Conditionals. (line 20)
  52618. * _ in variables in macros: Typeof. (line 46)
  52619. * _Accum data type: Fixed-Point. (line 6)
  52620. * _Complex keyword: Complex. (line 6)
  52621. * _Decimal128 data type: Decimal Float. (line 6)
  52622. * _Decimal32 data type: Decimal Float. (line 6)
  52623. * _Decimal64 data type: Decimal Float. (line 6)
  52624. * _Exit: Other Builtins. (line 6)
  52625. * _exit: Other Builtins. (line 6)
  52626. * _FloatN data types: Floating Types. (line 6)
  52627. * _FloatNx data types: Floating Types. (line 6)
  52628. * _Fract data type: Fixed-Point. (line 6)
  52629. * _get_ssp: x86 control-flow protection intrinsics.
  52630. (line 6)
  52631. * _HTM_FIRST_USER_ABORT_CODE: S/390 System z Built-in Functions.
  52632. (line 44)
  52633. * _inc_ssp: x86 control-flow protection intrinsics.
  52634. (line 12)
  52635. * _Sat data type: Fixed-Point. (line 6)
  52636. * _xabort: x86 transactional memory intrinsics.
  52637. (line 57)
  52638. * _xbegin: x86 transactional memory intrinsics.
  52639. (line 19)
  52640. * _xend: x86 transactional memory intrinsics.
  52641. (line 48)
  52642. * _xtest: x86 transactional memory intrinsics.
  52643. (line 53)
  52644. * __atomic_add_fetch: __atomic Builtins. (line 179)
  52645. * __atomic_always_lock_free: __atomic Builtins. (line 267)
  52646. * __atomic_and_fetch: __atomic Builtins. (line 183)
  52647. * __atomic_clear: __atomic Builtins. (line 241)
  52648. * __atomic_compare_exchange: __atomic Builtins. (line 171)
  52649. * __atomic_compare_exchange_n: __atomic Builtins. (line 147)
  52650. * __atomic_exchange: __atomic Builtins. (line 141)
  52651. * __atomic_exchange_n: __atomic Builtins. (line 131)
  52652. * __atomic_fetch_add: __atomic Builtins. (line 204)
  52653. * __atomic_fetch_and: __atomic Builtins. (line 208)
  52654. * __atomic_fetch_nand: __atomic Builtins. (line 214)
  52655. * __atomic_fetch_or: __atomic Builtins. (line 212)
  52656. * __atomic_fetch_sub: __atomic Builtins. (line 206)
  52657. * __atomic_fetch_xor: __atomic Builtins. (line 210)
  52658. * __atomic_is_lock_free: __atomic Builtins. (line 281)
  52659. * __atomic_load: __atomic Builtins. (line 113)
  52660. * __atomic_load_n: __atomic Builtins. (line 106)
  52661. * __atomic_nand_fetch: __atomic Builtins. (line 189)
  52662. * __atomic_or_fetch: __atomic Builtins. (line 187)
  52663. * __atomic_signal_fence: __atomic Builtins. (line 260)
  52664. * __atomic_store: __atomic Builtins. (line 126)
  52665. * __atomic_store_n: __atomic Builtins. (line 118)
  52666. * __atomic_sub_fetch: __atomic Builtins. (line 181)
  52667. * __atomic_test_and_set: __atomic Builtins. (line 229)
  52668. * __atomic_thread_fence: __atomic Builtins. (line 253)
  52669. * __atomic_xor_fetch: __atomic Builtins. (line 185)
  52670. * __builtin_addf128_round_to_odd: Basic PowerPC Built-in Functions Available on ISA 3.0.
  52671. (line 17)
  52672. * __builtin_add_overflow: Integer Overflow Builtins.
  52673. (line 9)
  52674. * __builtin_add_overflow_p: Integer Overflow Builtins.
  52675. (line 86)
  52676. * __builtin_alloca: Other Builtins. (line 6)
  52677. * __builtin_alloca_with_align: Other Builtins. (line 6)
  52678. * __builtin_alloca_with_align_and_max: Other Builtins. (line 6)
  52679. * __builtin_apply: Constructing Calls. (line 29)
  52680. * __builtin_apply_args: Constructing Calls. (line 19)
  52681. * __builtin_arc_aligned: ARC Built-in Functions.
  52682. (line 18)
  52683. * __builtin_arc_brk: ARC Built-in Functions.
  52684. (line 28)
  52685. * __builtin_arc_core_read: ARC Built-in Functions.
  52686. (line 32)
  52687. * __builtin_arc_core_write: ARC Built-in Functions.
  52688. (line 39)
  52689. * __builtin_arc_divaw: ARC Built-in Functions.
  52690. (line 46)
  52691. * __builtin_arc_flag: ARC Built-in Functions.
  52692. (line 53)
  52693. * __builtin_arc_lr: ARC Built-in Functions.
  52694. (line 57)
  52695. * __builtin_arc_mul64: ARC Built-in Functions.
  52696. (line 64)
  52697. * __builtin_arc_mulu64: ARC Built-in Functions.
  52698. (line 68)
  52699. * __builtin_arc_nop: ARC Built-in Functions.
  52700. (line 73)
  52701. * __builtin_arc_norm: ARC Built-in Functions.
  52702. (line 77)
  52703. * __builtin_arc_normw: ARC Built-in Functions.
  52704. (line 84)
  52705. * __builtin_arc_rtie: ARC Built-in Functions.
  52706. (line 91)
  52707. * __builtin_arc_sleep: ARC Built-in Functions.
  52708. (line 95)
  52709. * __builtin_arc_sr: ARC Built-in Functions.
  52710. (line 99)
  52711. * __builtin_arc_swap: ARC Built-in Functions.
  52712. (line 106)
  52713. * __builtin_arc_swi: ARC Built-in Functions.
  52714. (line 112)
  52715. * __builtin_arc_sync: ARC Built-in Functions.
  52716. (line 116)
  52717. * __builtin_arc_trap_s: ARC Built-in Functions.
  52718. (line 120)
  52719. * __builtin_arc_unimp_s: ARC Built-in Functions.
  52720. (line 124)
  52721. * __builtin_assume_aligned: Other Builtins. (line 662)
  52722. * __builtin_bswap16: Other Builtins. (line 983)
  52723. * __builtin_bswap32: Other Builtins. (line 987)
  52724. * __builtin_bswap64: Other Builtins. (line 991)
  52725. * __builtin_call_with_static_chain: Other Builtins. (line 6)
  52726. * __builtin_call_with_static_chain <1>: Other Builtins. (line 385)
  52727. * __builtin_choose_expr: Other Builtins. (line 396)
  52728. * __builtin_clrsb: Other Builtins. (line 913)
  52729. * __builtin_clrsbl: Other Builtins. (line 935)
  52730. * __builtin_clrsbll: Other Builtins. (line 958)
  52731. * __builtin_clz: Other Builtins. (line 905)
  52732. * __builtin_clzl: Other Builtins. (line 927)
  52733. * __builtin_clzll: Other Builtins. (line 950)
  52734. * __builtin_complex: Other Builtins. (line 490)
  52735. * __builtin_constant_p: Other Builtins. (line 499)
  52736. * __builtin_convertvector: Vector Extensions. (line 165)
  52737. * __builtin_cpu_init: Basic PowerPC Built-in Functions Available on all Configurations.
  52738. (line 6)
  52739. * __builtin_cpu_init <1>: x86 Built-in Functions.
  52740. (line 68)
  52741. * __builtin_cpu_is: Basic PowerPC Built-in Functions Available on all Configurations.
  52742. (line 10)
  52743. * __builtin_cpu_is <1>: x86 Built-in Functions.
  52744. (line 96)
  52745. * __builtin_cpu_supports: Basic PowerPC Built-in Functions Available on all Configurations.
  52746. (line 68)
  52747. * __builtin_cpu_supports <1>: x86 Built-in Functions.
  52748. (line 234)
  52749. * __builtin_ctz: Other Builtins. (line 909)
  52750. * __builtin_ctzl: Other Builtins. (line 931)
  52751. * __builtin_ctzll: Other Builtins. (line 954)
  52752. * __builtin_divf128_round_to_odd: Basic PowerPC Built-in Functions Available on ISA 3.0.
  52753. (line 29)
  52754. * __builtin_expect: Other Builtins. (line 562)
  52755. * __builtin_expect_with_probability: Other Builtins. (line 597)
  52756. * __builtin_extend_pointer: Other Builtins. (line 6)
  52757. * __builtin_extend_pointer <1>: Other Builtins. (line 995)
  52758. * __builtin_extract_return_addr: Return Address. (line 38)
  52759. * __builtin_ffs: Other Builtins. (line 901)
  52760. * __builtin_ffsl: Other Builtins. (line 924)
  52761. * __builtin_ffsll: Other Builtins. (line 946)
  52762. * __builtin_FILE: Other Builtins. (line 695)
  52763. * __builtin_fmaf128_round_to_odd: Basic PowerPC Built-in Functions Available on ISA 3.0.
  52764. (line 37)
  52765. * __builtin_fpclassify: Other Builtins. (line 6)
  52766. * __builtin_fpclassify <1>: Other Builtins. (line 797)
  52767. * __builtin_frame_address: Return Address. (line 50)
  52768. * __builtin_frob_return_addr: Return Address. (line 47)
  52769. * __builtin_FUNCTION: Other Builtins. (line 687)
  52770. * __builtin_goacc_parlevel_id: Other Builtins. (line 1002)
  52771. * __builtin_goacc_parlevel_size: Other Builtins. (line 1006)
  52772. * __builtin_has_attribute: Other Builtins. (line 6)
  52773. * __builtin_has_attribute <1>: Other Builtins. (line 220)
  52774. * __builtin_huge_val: Other Builtins. (line 777)
  52775. * __builtin_huge_valf: Other Builtins. (line 782)
  52776. * __builtin_huge_valfN: Other Builtins. (line 789)
  52777. * __builtin_huge_valfNx: Other Builtins. (line 793)
  52778. * __builtin_huge_vall: Other Builtins. (line 785)
  52779. * __builtin_huge_valq: x86 Built-in Functions.
  52780. (line 50)
  52781. * __builtin_inf: Other Builtins. (line 808)
  52782. * __builtin_infd128: Other Builtins. (line 818)
  52783. * __builtin_infd32: Other Builtins. (line 812)
  52784. * __builtin_infd64: Other Builtins. (line 815)
  52785. * __builtin_inff: Other Builtins. (line 822)
  52786. * __builtin_inffN: Other Builtins. (line 831)
  52787. * __builtin_inffNx: Other Builtins. (line 834)
  52788. * __builtin_infl: Other Builtins. (line 827)
  52789. * __builtin_infq: x86 Built-in Functions.
  52790. (line 47)
  52791. * __builtin_isfinite: Other Builtins. (line 6)
  52792. * __builtin_isgreater: Other Builtins. (line 6)
  52793. * __builtin_isgreaterequal: Other Builtins. (line 6)
  52794. * __builtin_isinf_sign: Other Builtins. (line 6)
  52795. * __builtin_isinf_sign <1>: Other Builtins. (line 837)
  52796. * __builtin_isless: Other Builtins. (line 6)
  52797. * __builtin_islessequal: Other Builtins. (line 6)
  52798. * __builtin_islessgreater: Other Builtins. (line 6)
  52799. * __builtin_isnormal: Other Builtins. (line 6)
  52800. * __builtin_isunordered: Other Builtins. (line 6)
  52801. * __builtin_is_constant_evaluated: Other Builtins. (line 544)
  52802. * __builtin_LINE: Other Builtins. (line 680)
  52803. * __builtin_longjmp: Nonlocal Gotos. (line 37)
  52804. * __builtin_mulf128_round_to_odd: Basic PowerPC Built-in Functions Available on ISA 3.0.
  52805. (line 25)
  52806. * __builtin_mul_overflow: Integer Overflow Builtins.
  52807. (line 63)
  52808. * __builtin_mul_overflow_p: Integer Overflow Builtins.
  52809. (line 90)
  52810. * __builtin_nan: Other Builtins. (line 845)
  52811. * __builtin_nand128: Other Builtins. (line 867)
  52812. * __builtin_nand32: Other Builtins. (line 861)
  52813. * __builtin_nand64: Other Builtins. (line 864)
  52814. * __builtin_nanf: Other Builtins. (line 871)
  52815. * __builtin_nanfN: Other Builtins. (line 878)
  52816. * __builtin_nanfNx: Other Builtins. (line 881)
  52817. * __builtin_nanl: Other Builtins. (line 874)
  52818. * __builtin_nanq: x86 Built-in Functions.
  52819. (line 54)
  52820. * __builtin_nans: Other Builtins. (line 884)
  52821. * __builtin_nansf: Other Builtins. (line 888)
  52822. * __builtin_nansfN: Other Builtins. (line 895)
  52823. * __builtin_nansfNx: Other Builtins. (line 898)
  52824. * __builtin_nansl: Other Builtins. (line 891)
  52825. * __builtin_nansq: x86 Built-in Functions.
  52826. (line 57)
  52827. * __builtin_nds32_isb: NDS32 Built-in Functions.
  52828. (line 12)
  52829. * __builtin_nds32_isync: NDS32 Built-in Functions.
  52830. (line 8)
  52831. * __builtin_nds32_mfsr: NDS32 Built-in Functions.
  52832. (line 15)
  52833. * __builtin_nds32_mfusr: NDS32 Built-in Functions.
  52834. (line 18)
  52835. * __builtin_nds32_mtsr: NDS32 Built-in Functions.
  52836. (line 21)
  52837. * __builtin_nds32_mtusr: NDS32 Built-in Functions.
  52838. (line 24)
  52839. * __builtin_nds32_setgie_dis: NDS32 Built-in Functions.
  52840. (line 30)
  52841. * __builtin_nds32_setgie_en: NDS32 Built-in Functions.
  52842. (line 27)
  52843. * __builtin_non_tx_store: S/390 System z Built-in Functions.
  52844. (line 98)
  52845. * __builtin_object_size: Object Size Checking.
  52846. (line 6)
  52847. * __builtin_object_size <1>: Object Size Checking.
  52848. (line 16)
  52849. * __builtin_object_size <2>: Other Builtins. (line 6)
  52850. * __builtin_object_size <3>: Other Builtins. (line 772)
  52851. * __builtin_offsetof: Offsetof. (line 6)
  52852. * __builtin_parity: Other Builtins. (line 921)
  52853. * __builtin_parityl: Other Builtins. (line 942)
  52854. * __builtin_parityll: Other Builtins. (line 966)
  52855. * __builtin_popcount: Other Builtins. (line 918)
  52856. * __builtin_popcountl: Other Builtins. (line 938)
  52857. * __builtin_popcountll: Other Builtins. (line 962)
  52858. * __builtin_powi: Other Builtins. (line 6)
  52859. * __builtin_powi <1>: Other Builtins. (line 970)
  52860. * __builtin_powif: Other Builtins. (line 6)
  52861. * __builtin_powif <1>: Other Builtins. (line 975)
  52862. * __builtin_powil: Other Builtins. (line 6)
  52863. * __builtin_powil <1>: Other Builtins. (line 979)
  52864. * __builtin_prefetch: Other Builtins. (line 733)
  52865. * __builtin_return: Constructing Calls. (line 47)
  52866. * __builtin_return_address: Return Address. (line 9)
  52867. * __builtin_rx_brk: RX Built-in Functions.
  52868. (line 10)
  52869. * __builtin_rx_clrpsw: RX Built-in Functions.
  52870. (line 13)
  52871. * __builtin_rx_int: RX Built-in Functions.
  52872. (line 17)
  52873. * __builtin_rx_machi: RX Built-in Functions.
  52874. (line 21)
  52875. * __builtin_rx_maclo: RX Built-in Functions.
  52876. (line 26)
  52877. * __builtin_rx_mulhi: RX Built-in Functions.
  52878. (line 31)
  52879. * __builtin_rx_mullo: RX Built-in Functions.
  52880. (line 36)
  52881. * __builtin_rx_mvfachi: RX Built-in Functions.
  52882. (line 41)
  52883. * __builtin_rx_mvfacmi: RX Built-in Functions.
  52884. (line 45)
  52885. * __builtin_rx_mvfc: RX Built-in Functions.
  52886. (line 49)
  52887. * __builtin_rx_mvtachi: RX Built-in Functions.
  52888. (line 53)
  52889. * __builtin_rx_mvtaclo: RX Built-in Functions.
  52890. (line 57)
  52891. * __builtin_rx_mvtc: RX Built-in Functions.
  52892. (line 61)
  52893. * __builtin_rx_mvtipl: RX Built-in Functions.
  52894. (line 65)
  52895. * __builtin_rx_racw: RX Built-in Functions.
  52896. (line 69)
  52897. * __builtin_rx_revw: RX Built-in Functions.
  52898. (line 73)
  52899. * __builtin_rx_rmpa: RX Built-in Functions.
  52900. (line 78)
  52901. * __builtin_rx_round: RX Built-in Functions.
  52902. (line 82)
  52903. * __builtin_rx_sat: RX Built-in Functions.
  52904. (line 87)
  52905. * __builtin_rx_setpsw: RX Built-in Functions.
  52906. (line 91)
  52907. * __builtin_rx_wait: RX Built-in Functions.
  52908. (line 95)
  52909. * __builtin_saddll_overflow: Integer Overflow Builtins.
  52910. (line 15)
  52911. * __builtin_saddl_overflow: Integer Overflow Builtins.
  52912. (line 13)
  52913. * __builtin_sadd_overflow: Integer Overflow Builtins.
  52914. (line 11)
  52915. * __builtin_setjmp: Nonlocal Gotos. (line 32)
  52916. * __builtin_set_thread_pointer: SH Built-in Functions.
  52917. (line 9)
  52918. * __builtin_shuffle: Vector Extensions. (line 127)
  52919. * __builtin_sh_get_fpscr: SH Built-in Functions.
  52920. (line 35)
  52921. * __builtin_sh_set_fpscr: SH Built-in Functions.
  52922. (line 38)
  52923. * __builtin_smulll_overflow: Integer Overflow Builtins.
  52924. (line 69)
  52925. * __builtin_smull_overflow: Integer Overflow Builtins.
  52926. (line 67)
  52927. * __builtin_smul_overflow: Integer Overflow Builtins.
  52928. (line 65)
  52929. * __builtin_speculation_safe_value: Other Builtins. (line 6)
  52930. * __builtin_speculation_safe_value <1>: Other Builtins. (line 261)
  52931. * __builtin_sqrtf128_round_to_odd: Basic PowerPC Built-in Functions Available on ISA 3.0.
  52932. (line 33)
  52933. * __builtin_ssubll_overflow: Integer Overflow Builtins.
  52934. (line 49)
  52935. * __builtin_ssubl_overflow: Integer Overflow Builtins.
  52936. (line 47)
  52937. * __builtin_ssub_overflow: Integer Overflow Builtins.
  52938. (line 45)
  52939. * __builtin_subf128_round_to_odd: Basic PowerPC Built-in Functions Available on ISA 3.0.
  52940. (line 21)
  52941. * __builtin_sub_overflow: Integer Overflow Builtins.
  52942. (line 43)
  52943. * __builtin_sub_overflow_p: Integer Overflow Builtins.
  52944. (line 88)
  52945. * __builtin_tabort: S/390 System z Built-in Functions.
  52946. (line 82)
  52947. * __builtin_tbegin: S/390 System z Built-in Functions.
  52948. (line 6)
  52949. * __builtin_tbeginc: S/390 System z Built-in Functions.
  52950. (line 73)
  52951. * __builtin_tbegin_nofloat: S/390 System z Built-in Functions.
  52952. (line 54)
  52953. * __builtin_tbegin_retry: S/390 System z Built-in Functions.
  52954. (line 60)
  52955. * __builtin_tbegin_retry_nofloat: S/390 System z Built-in Functions.
  52956. (line 67)
  52957. * __builtin_tend: S/390 System z Built-in Functions.
  52958. (line 77)
  52959. * __builtin_tgmath: Other Builtins. (line 436)
  52960. * __builtin_thread_pointer: SH Built-in Functions.
  52961. (line 18)
  52962. * __builtin_trap: Other Builtins. (line 606)
  52963. * __builtin_truncf128_round_to_odd: Basic PowerPC Built-in Functions Available on ISA 3.0.
  52964. (line 41)
  52965. * __builtin_tx_assist: S/390 System z Built-in Functions.
  52966. (line 87)
  52967. * __builtin_tx_nesting_depth: S/390 System z Built-in Functions.
  52968. (line 93)
  52969. * __builtin_types_compatible_p: Other Builtins. (line 340)
  52970. * __builtin_uaddll_overflow: Integer Overflow Builtins.
  52971. (line 21)
  52972. * __builtin_uaddl_overflow: Integer Overflow Builtins.
  52973. (line 19)
  52974. * __builtin_uadd_overflow: Integer Overflow Builtins.
  52975. (line 17)
  52976. * __builtin_umulll_overflow: Integer Overflow Builtins.
  52977. (line 75)
  52978. * __builtin_umull_overflow: Integer Overflow Builtins.
  52979. (line 73)
  52980. * __builtin_umul_overflow: Integer Overflow Builtins.
  52981. (line 71)
  52982. * __builtin_unreachable: Other Builtins. (line 613)
  52983. * __builtin_usubll_overflow: Integer Overflow Builtins.
  52984. (line 55)
  52985. * __builtin_usubl_overflow: Integer Overflow Builtins.
  52986. (line 53)
  52987. * __builtin_usub_overflow: Integer Overflow Builtins.
  52988. (line 51)
  52989. * __builtin_va_arg_pack: Constructing Calls. (line 52)
  52990. * __builtin_va_arg_pack_len: Constructing Calls. (line 75)
  52991. * __builtin___clear_cache: Other Builtins. (line 720)
  52992. * __builtin___fprintf_chk: Object Size Checking.
  52993. (line 6)
  52994. * __builtin___memcpy_chk: Object Size Checking.
  52995. (line 6)
  52996. * __builtin___memmove_chk: Object Size Checking.
  52997. (line 6)
  52998. * __builtin___mempcpy_chk: Object Size Checking.
  52999. (line 6)
  53000. * __builtin___memset_chk: Object Size Checking.
  53001. (line 6)
  53002. * __builtin___printf_chk: Object Size Checking.
  53003. (line 6)
  53004. * __builtin___snprintf_chk: Object Size Checking.
  53005. (line 6)
  53006. * __builtin___sprintf_chk: Object Size Checking.
  53007. (line 6)
  53008. * __builtin___stpcpy_chk: Object Size Checking.
  53009. (line 6)
  53010. * __builtin___strcat_chk: Object Size Checking.
  53011. (line 6)
  53012. * __builtin___strcpy_chk: Object Size Checking.
  53013. (line 6)
  53014. * __builtin___strncat_chk: Object Size Checking.
  53015. (line 6)
  53016. * __builtin___strncpy_chk: Object Size Checking.
  53017. (line 6)
  53018. * __builtin___vfprintf_chk: Object Size Checking.
  53019. (line 6)
  53020. * __builtin___vprintf_chk: Object Size Checking.
  53021. (line 6)
  53022. * __builtin___vsnprintf_chk: Object Size Checking.
  53023. (line 6)
  53024. * __builtin___vsprintf_chk: Object Size Checking.
  53025. (line 6)
  53026. * __complex__ keyword: Complex. (line 6)
  53027. * __declspec(dllexport): Microsoft Windows Function Attributes.
  53028. (line 10)
  53029. * __declspec(dllimport): Microsoft Windows Function Attributes.
  53030. (line 42)
  53031. * __extension__: Alternate Keywords. (line 30)
  53032. * __far M32C Named Address Spaces: Named Address Spaces.
  53033. (line 153)
  53034. * __far RL78 Named Address Spaces: Named Address Spaces.
  53035. (line 162)
  53036. * __flash AVR Named Address Spaces: Named Address Spaces.
  53037. (line 44)
  53038. * __flash1 AVR Named Address Spaces: Named Address Spaces.
  53039. (line 53)
  53040. * __flash2 AVR Named Address Spaces: Named Address Spaces.
  53041. (line 53)
  53042. * __flash3 AVR Named Address Spaces: Named Address Spaces.
  53043. (line 53)
  53044. * __flash4 AVR Named Address Spaces: Named Address Spaces.
  53045. (line 53)
  53046. * __flash5 AVR Named Address Spaces: Named Address Spaces.
  53047. (line 53)
  53048. * __float128 data type: Floating Types. (line 6)
  53049. * __float80 data type: Floating Types. (line 6)
  53050. * __fp16 data type: Half-Precision. (line 6)
  53051. * __FUNCTION__ identifier: Function Names. (line 6)
  53052. * __func__ identifier: Function Names. (line 6)
  53053. * __ibm128 data type: Floating Types. (line 6)
  53054. * __imag__ keyword: Complex. (line 31)
  53055. * __int128 data types: __int128. (line 6)
  53056. * __memx AVR Named Address Spaces: Named Address Spaces.
  53057. (line 59)
  53058. * __PRETTY_FUNCTION__ identifier: Function Names. (line 6)
  53059. * __real__ keyword: Complex. (line 31)
  53060. * __seg_fs x86 named address space: Named Address Spaces.
  53061. (line 175)
  53062. * __seg_gs x86 named address space: Named Address Spaces.
  53063. (line 175)
  53064. * __STDC_HOSTED__: Standards. (line 13)
  53065. * __sync_add_and_fetch: __sync Builtins. (line 72)
  53066. * __sync_and_and_fetch: __sync Builtins. (line 72)
  53067. * __sync_bool_compare_and_swap: __sync Builtins. (line 88)
  53068. * __sync_fetch_and_add: __sync Builtins. (line 50)
  53069. * __sync_fetch_and_and: __sync Builtins. (line 50)
  53070. * __sync_fetch_and_nand: __sync Builtins. (line 50)
  53071. * __sync_fetch_and_or: __sync Builtins. (line 50)
  53072. * __sync_fetch_and_sub: __sync Builtins. (line 50)
  53073. * __sync_fetch_and_xor: __sync Builtins. (line 50)
  53074. * __sync_lock_release: __sync Builtins. (line 118)
  53075. * __sync_lock_test_and_set: __sync Builtins. (line 100)
  53076. * __sync_nand_and_fetch: __sync Builtins. (line 72)
  53077. * __sync_or_and_fetch: __sync Builtins. (line 72)
  53078. * __sync_sub_and_fetch: __sync Builtins. (line 72)
  53079. * __sync_synchronize: __sync Builtins. (line 97)
  53080. * __sync_val_compare_and_swap: __sync Builtins. (line 88)
  53081. * __sync_xor_and_fetch: __sync Builtins. (line 72)
  53082. * __thread: Thread-Local. (line 6)
  53083. * AArch64 Options: AArch64 Options. (line 6)
  53084. * ABI: Compatibility. (line 6)
  53085. * abi_tag function attribute: C++ Attributes. (line 9)
  53086. * abi_tag type attribute: C++ Attributes. (line 9)
  53087. * abi_tag variable attribute: C++ Attributes. (line 9)
  53088. * abort: Other Builtins. (line 6)
  53089. * abs: Other Builtins. (line 6)
  53090. * absdata variable attribute, AVR: AVR Variable Attributes.
  53091. (line 104)
  53092. * accessing volatiles: Volatiles. (line 6)
  53093. * accessing volatiles <1>: C++ Volatiles. (line 6)
  53094. * acos: Other Builtins. (line 6)
  53095. * acosf: Other Builtins. (line 6)
  53096. * acosh: Other Builtins. (line 6)
  53097. * acoshf: Other Builtins. (line 6)
  53098. * acoshl: Other Builtins. (line 6)
  53099. * acosl: Other Builtins. (line 6)
  53100. * Ada: G++ and GCC. (line 6)
  53101. * Ada <1>: G++ and GCC. (line 29)
  53102. * additional floating types: Floating Types. (line 6)
  53103. * address constraints: Simple Constraints. (line 152)
  53104. * address of a label: Labels as Values. (line 6)
  53105. * address variable attribute, AVR: AVR Variable Attributes.
  53106. (line 97)
  53107. * address_operand: Simple Constraints. (line 156)
  53108. * alias function attribute: Common Function Attributes.
  53109. (line 75)
  53110. * alias variable attribute: Common Variable Attributes.
  53111. (line 9)
  53112. * aligned function attribute: Common Function Attributes.
  53113. (line 94)
  53114. * aligned type attribute: Common Type Attributes.
  53115. (line 8)
  53116. * aligned variable attribute: Common Variable Attributes.
  53117. (line 31)
  53118. * alignment: Alignment. (line 6)
  53119. * alloca: Other Builtins. (line 6)
  53120. * alloca vs variable-length arrays: Variable Length. (line 35)
  53121. * alloc_align function attribute: Common Function Attributes.
  53122. (line 122)
  53123. * alloc_size function attribute: Common Function Attributes.
  53124. (line 142)
  53125. * alloc_size type attribute: Common Type Attributes.
  53126. (line 136)
  53127. * alloc_size variable attribute: Common Variable Attributes.
  53128. (line 137)
  53129. * Allow nesting in an interrupt handler on the Blackfin processor: Blackfin Function Attributes.
  53130. (line 45)
  53131. * Altera Nios II options: Nios II Options. (line 6)
  53132. * alternate keywords: Alternate Keywords. (line 6)
  53133. * altivec type attribute, PowerPC: PowerPC Type Attributes.
  53134. (line 12)
  53135. * altivec variable attribute, PowerPC: PowerPC Variable Attributes.
  53136. (line 12)
  53137. * always_inline function attribute: Common Function Attributes.
  53138. (line 168)
  53139. * AMD GCN Options: AMD GCN Options. (line 6)
  53140. * AMD1: Standards. (line 13)
  53141. * amdgpu_hsa_kernel function attribute, AMD GCN: AMD GCN Function Attributes.
  53142. (line 9)
  53143. * ANSI C: Standards. (line 13)
  53144. * ANSI C standard: Standards. (line 13)
  53145. * ANSI C89: Standards. (line 13)
  53146. * ANSI support: C Dialect Options. (line 10)
  53147. * ANSI X3.159-1989: Standards. (line 13)
  53148. * apostrophes: Incompatibilities. (line 116)
  53149. * application binary interface: Compatibility. (line 6)
  53150. * ARC options: ARC Options. (line 6)
  53151. * arch= function attribute, AArch64: AArch64 Function Attributes.
  53152. (line 53)
  53153. * arch= function attribute, ARM: ARM Function Attributes.
  53154. (line 98)
  53155. * ARM options: ARM Options. (line 6)
  53156. * ARM [Annotated C++ Reference Manual]: Backwards Compatibility.
  53157. (line 6)
  53158. * arrays of length zero: Zero Length. (line 6)
  53159. * arrays of variable length: Variable Length. (line 6)
  53160. * arrays, non-lvalue: Subscripting. (line 6)
  53161. * artificial function attribute: Common Function Attributes.
  53162. (line 178)
  53163. * asin: Other Builtins. (line 6)
  53164. * asinf: Other Builtins. (line 6)
  53165. * asinh: Other Builtins. (line 6)
  53166. * asinhf: Other Builtins. (line 6)
  53167. * asinhl: Other Builtins. (line 6)
  53168. * asinl: Other Builtins. (line 6)
  53169. * asm assembler template: Extended Asm. (line 226)
  53170. * asm clobbers: Extended Asm. (line 693)
  53171. * asm constraints: Constraints. (line 6)
  53172. * asm expressions: Extended Asm. (line 598)
  53173. * asm flag output operands: Extended Asm. (line 488)
  53174. * asm goto labels: Extended Asm. (line 880)
  53175. * asm inline: Size of an asm. (line 25)
  53176. * asm input operands: Extended Asm. (line 598)
  53177. * asm keyword: Using Assembly Language with C.
  53178. (line 6)
  53179. * asm output operands: Extended Asm. (line 329)
  53180. * asm scratch registers: Extended Asm. (line 693)
  53181. * asm volatile: Extended Asm. (line 116)
  53182. * assembler names for identifiers: Asm Labels. (line 6)
  53183. * assembly code, invalid: Bug Criteria. (line 12)
  53184. * assembly language in C: Using Assembly Language with C.
  53185. (line 6)
  53186. * assembly language in C, basic: Basic Asm. (line 6)
  53187. * assembly language in C, extended: Extended Asm. (line 6)
  53188. * assume_aligned function attribute: Common Function Attributes.
  53189. (line 186)
  53190. * atan: Other Builtins. (line 6)
  53191. * atan2: Other Builtins. (line 6)
  53192. * atan2f: Other Builtins. (line 6)
  53193. * atan2l: Other Builtins. (line 6)
  53194. * atanf: Other Builtins. (line 6)
  53195. * atanh: Other Builtins. (line 6)
  53196. * atanhf: Other Builtins. (line 6)
  53197. * atanhl: Other Builtins. (line 6)
  53198. * atanl: Other Builtins. (line 6)
  53199. * attribute of types: Type Attributes. (line 6)
  53200. * attribute of variables: Variable Attributes.
  53201. (line 6)
  53202. * attribute syntax: Attribute Syntax. (line 6)
  53203. * autoincrement/decrement addressing: Simple Constraints. (line 30)
  53204. * automatic inline for C++ member fns: Inline. (line 68)
  53205. * aux variable attribute, ARC: ARC Variable Attributes.
  53206. (line 7)
  53207. * AVR Options: AVR Options. (line 6)
  53208. * Backwards Compatibility: Backwards Compatibility.
  53209. (line 6)
  53210. * bank_switch function attribute, M32C: M32C Function Attributes.
  53211. (line 9)
  53212. * base class members: Name lookup. (line 6)
  53213. * based type attribute, MeP: MeP Type Attributes.
  53214. (line 6)
  53215. * based variable attribute, MeP: MeP Variable Attributes.
  53216. (line 16)
  53217. * basic asm: Basic Asm. (line 6)
  53218. * bcmp: Other Builtins. (line 6)
  53219. * below100 variable attribute, Xstormy16: Xstormy16 Variable Attributes.
  53220. (line 10)
  53221. * binary compatibility: Compatibility. (line 6)
  53222. * Binary constants using the 0b prefix: Binary constants. (line 6)
  53223. * Blackfin Options: Blackfin Options. (line 6)
  53224. * bound pointer to member function: Bound member functions.
  53225. (line 6)
  53226. * branch-protection function attribute, AArch64: AArch64 Function Attributes.
  53227. (line 76)
  53228. * break handler functions: MicroBlaze Function Attributes.
  53229. (line 17)
  53230. * break_handler function attribute, MicroBlaze: MicroBlaze Function Attributes.
  53231. (line 17)
  53232. * brk_interrupt function attribute, RL78: RL78 Function Attributes.
  53233. (line 10)
  53234. * bug criteria: Bug Criteria. (line 6)
  53235. * bugs: Bugs. (line 6)
  53236. * bugs, known: Trouble. (line 6)
  53237. * built-in functions: C Dialect Options. (line 266)
  53238. * built-in functions <1>: Other Builtins. (line 6)
  53239. * bzero: Other Builtins. (line 6)
  53240. * C compilation options: Invoking GCC. (line 18)
  53241. * C intermediate output, nonexistent: G++ and GCC. (line 34)
  53242. * C language extensions: C Extensions. (line 6)
  53243. * C language, traditional: Preprocessor Options.
  53244. (line 370)
  53245. * C standard: Standards. (line 13)
  53246. * C standards: Standards. (line 13)
  53247. * c++: Invoking G++. (line 14)
  53248. * C++: G++ and GCC. (line 29)
  53249. * C++ comments: C++ Comments. (line 6)
  53250. * C++ interface and implementation headers: C++ Interface. (line 6)
  53251. * C++ language extensions: C++ Extensions. (line 6)
  53252. * C++ member fns, automatically inline: Inline. (line 68)
  53253. * C++ misunderstandings: C++ Misunderstandings.
  53254. (line 6)
  53255. * C++ options, command-line: C++ Dialect Options.
  53256. (line 6)
  53257. * C++ pragmas, effect on inlining: C++ Interface. (line 57)
  53258. * C++ source file suffixes: Invoking G++. (line 6)
  53259. * C++ static data, declaring and defining: Static Definitions.
  53260. (line 6)
  53261. * C-SKY Options: C-SKY Options. (line 6)
  53262. * C11: Standards. (line 13)
  53263. * C17: Standards. (line 13)
  53264. * C1X: Standards. (line 13)
  53265. * C2X: Standards. (line 13)
  53266. * C6X Options: C6X Options. (line 6)
  53267. * C89: Standards. (line 13)
  53268. * C90: Standards. (line 13)
  53269. * C94: Standards. (line 13)
  53270. * C95: Standards. (line 13)
  53271. * C99: Standards. (line 13)
  53272. * C9X: Standards. (line 13)
  53273. * cabs: Other Builtins. (line 6)
  53274. * cabsf: Other Builtins. (line 6)
  53275. * cabsl: Other Builtins. (line 6)
  53276. * cacos: Other Builtins. (line 6)
  53277. * cacosf: Other Builtins. (line 6)
  53278. * cacosh: Other Builtins. (line 6)
  53279. * cacoshf: Other Builtins. (line 6)
  53280. * cacoshl: Other Builtins. (line 6)
  53281. * cacosl: Other Builtins. (line 6)
  53282. * callee_pop_aggregate_return function attribute, x86: x86 Function Attributes.
  53283. (line 47)
  53284. * calling functions through the function vector on SH2A: SH Function Attributes.
  53285. (line 9)
  53286. * calloc: Other Builtins. (line 6)
  53287. * carg: Other Builtins. (line 6)
  53288. * cargf: Other Builtins. (line 6)
  53289. * cargl: Other Builtins. (line 6)
  53290. * case labels in initializers: Designated Inits. (line 6)
  53291. * case ranges: Case Ranges. (line 6)
  53292. * casin: Other Builtins. (line 6)
  53293. * casinf: Other Builtins. (line 6)
  53294. * casinh: Other Builtins. (line 6)
  53295. * casinhf: Other Builtins. (line 6)
  53296. * casinhl: Other Builtins. (line 6)
  53297. * casinl: Other Builtins. (line 6)
  53298. * cast to a union: Cast to Union. (line 6)
  53299. * catan: Other Builtins. (line 6)
  53300. * catanf: Other Builtins. (line 6)
  53301. * catanh: Other Builtins. (line 6)
  53302. * catanhf: Other Builtins. (line 6)
  53303. * catanhl: Other Builtins. (line 6)
  53304. * catanl: Other Builtins. (line 6)
  53305. * cb variable attribute, MeP: MeP Variable Attributes.
  53306. (line 46)
  53307. * cbrt: Other Builtins. (line 6)
  53308. * cbrtf: Other Builtins. (line 6)
  53309. * cbrtl: Other Builtins. (line 6)
  53310. * ccos: Other Builtins. (line 6)
  53311. * ccosf: Other Builtins. (line 6)
  53312. * ccosh: Other Builtins. (line 6)
  53313. * ccoshf: Other Builtins. (line 6)
  53314. * ccoshl: Other Builtins. (line 6)
  53315. * ccosl: Other Builtins. (line 6)
  53316. * cdecl function attribute, x86-32: x86 Function Attributes.
  53317. (line 9)
  53318. * ceil: Other Builtins. (line 6)
  53319. * ceilf: Other Builtins. (line 6)
  53320. * ceill: Other Builtins. (line 6)
  53321. * cexp: Other Builtins. (line 6)
  53322. * cexpf: Other Builtins. (line 6)
  53323. * cexpl: Other Builtins. (line 6)
  53324. * cf_check function attribute, x86: x86 Function Attributes.
  53325. (line 625)
  53326. * character set, execution: Preprocessor Options.
  53327. (line 270)
  53328. * character set, input: Preprocessor Options.
  53329. (line 283)
  53330. * character set, input normalization: Warning Options. (line 2654)
  53331. * character set, wide execution: Preprocessor Options.
  53332. (line 275)
  53333. * cimag: Other Builtins. (line 6)
  53334. * cimagf: Other Builtins. (line 6)
  53335. * cimagl: Other Builtins. (line 6)
  53336. * cleanup variable attribute: Common Variable Attributes.
  53337. (line 161)
  53338. * clog: Other Builtins. (line 6)
  53339. * clog10: Other Builtins. (line 6)
  53340. * clog10f: Other Builtins. (line 6)
  53341. * clog10l: Other Builtins. (line 6)
  53342. * clogf: Other Builtins. (line 6)
  53343. * clogl: Other Builtins. (line 6)
  53344. * cmodel= function attribute, AArch64: AArch64 Function Attributes.
  53345. (line 27)
  53346. * COBOL: G++ and GCC. (line 23)
  53347. * code generation conventions: Code Gen Options. (line 6)
  53348. * code, mixed with declarations: Mixed Declarations. (line 6)
  53349. * cold function attribute: Common Function Attributes.
  53350. (line 202)
  53351. * cold label attribute: Label Attributes. (line 45)
  53352. * command options: Invoking GCC. (line 6)
  53353. * comments, C++ style: C++ Comments. (line 6)
  53354. * common variable attribute: Common Variable Attributes.
  53355. (line 176)
  53356. * comparison of signed and unsigned values, warning: Warning Options.
  53357. (line 2412)
  53358. * compilation statistics: Developer Options. (line 6)
  53359. * compiler bugs, reporting: Bug Reporting. (line 6)
  53360. * compiler compared to C++ preprocessor: G++ and GCC. (line 34)
  53361. * compiler options, C++: C++ Dialect Options.
  53362. (line 6)
  53363. * compiler options, Objective-C and Objective-C++: Objective-C and Objective-C++ Dialect Options.
  53364. (line 6)
  53365. * compiler version, specifying: Invoking GCC. (line 24)
  53366. * COMPILER_PATH: Environment Variables.
  53367. (line 91)
  53368. * complex conjugation: Complex. (line 38)
  53369. * complex numbers: Complex. (line 6)
  53370. * compound literals: Compound Literals. (line 6)
  53371. * computed gotos: Labels as Values. (line 6)
  53372. * conditional expressions, extensions: Conditionals. (line 6)
  53373. * conflicting types: Disappointments. (line 21)
  53374. * conj: Other Builtins. (line 6)
  53375. * conjf: Other Builtins. (line 6)
  53376. * conjl: Other Builtins. (line 6)
  53377. * const applied to function: Function Attributes.
  53378. (line 6)
  53379. * const function attribute: Common Function Attributes.
  53380. (line 218)
  53381. * const qualifier: Pointers to Arrays. (line 6)
  53382. * constants in constraints: Simple Constraints. (line 68)
  53383. * constraint modifier characters: Modifiers. (line 6)
  53384. * constraint, matching: Simple Constraints. (line 137)
  53385. * constraints, asm: Constraints. (line 6)
  53386. * constraints, machine specific: Machine Constraints.
  53387. (line 6)
  53388. * constructing calls: Constructing Calls. (line 6)
  53389. * constructor expressions: Compound Literals. (line 6)
  53390. * constructor function attribute: Common Function Attributes.
  53391. (line 259)
  53392. * contributors: Contributors. (line 6)
  53393. * copy function attribute: Common Function Attributes.
  53394. (line 287)
  53395. * copy type attribute: Common Type Attributes.
  53396. (line 161)
  53397. * copy variable attribute: Common Variable Attributes.
  53398. (line 185)
  53399. * copysign: Other Builtins. (line 6)
  53400. * copysignf: Other Builtins. (line 6)
  53401. * copysignl: Other Builtins. (line 6)
  53402. * core dump: Bug Criteria. (line 9)
  53403. * cos: Other Builtins. (line 6)
  53404. * cosf: Other Builtins. (line 6)
  53405. * cosh: Other Builtins. (line 6)
  53406. * coshf: Other Builtins. (line 6)
  53407. * coshl: Other Builtins. (line 6)
  53408. * cosl: Other Builtins. (line 6)
  53409. * CPATH: Environment Variables.
  53410. (line 127)
  53411. * CPLUS_INCLUDE_PATH: Environment Variables.
  53412. (line 129)
  53413. * cpow: Other Builtins. (line 6)
  53414. * cpowf: Other Builtins. (line 6)
  53415. * cpowl: Other Builtins. (line 6)
  53416. * cproj: Other Builtins. (line 6)
  53417. * cprojf: Other Builtins. (line 6)
  53418. * cprojl: Other Builtins. (line 6)
  53419. * cpu= function attribute, AArch64: AArch64 Function Attributes.
  53420. (line 63)
  53421. * CR16 Options: CR16 Options. (line 6)
  53422. * creal: Other Builtins. (line 6)
  53423. * crealf: Other Builtins. (line 6)
  53424. * creall: Other Builtins. (line 6)
  53425. * CRIS Options: CRIS Options. (line 6)
  53426. * critical function attribute, MSP430: MSP430 Function Attributes.
  53427. (line 9)
  53428. * cross compiling: Invoking GCC. (line 24)
  53429. * csin: Other Builtins. (line 6)
  53430. * csinf: Other Builtins. (line 6)
  53431. * csinh: Other Builtins. (line 6)
  53432. * csinhf: Other Builtins. (line 6)
  53433. * csinhl: Other Builtins. (line 6)
  53434. * csinl: Other Builtins. (line 6)
  53435. * csqrt: Other Builtins. (line 6)
  53436. * csqrtf: Other Builtins. (line 6)
  53437. * csqrtl: Other Builtins. (line 6)
  53438. * ctan: Other Builtins. (line 6)
  53439. * ctanf: Other Builtins. (line 6)
  53440. * ctanh: Other Builtins. (line 6)
  53441. * ctanhf: Other Builtins. (line 6)
  53442. * ctanhl: Other Builtins. (line 6)
  53443. * ctanl: Other Builtins. (line 6)
  53444. * C_INCLUDE_PATH: Environment Variables.
  53445. (line 128)
  53446. * D: G++ and GCC. (line 6)
  53447. * Darwin options: Darwin Options. (line 6)
  53448. * dcgettext: Other Builtins. (line 6)
  53449. * dd integer suffix: Decimal Float. (line 6)
  53450. * DD integer suffix: Decimal Float. (line 6)
  53451. * deallocating variable length arrays: Variable Length. (line 22)
  53452. * debug dump options: Developer Options. (line 6)
  53453. * debugging GCC: Developer Options. (line 6)
  53454. * debugging information options: Debugging Options. (line 6)
  53455. * decimal floating types: Decimal Float. (line 6)
  53456. * declaration scope: Incompatibilities. (line 80)
  53457. * declarations inside expressions: Statement Exprs. (line 6)
  53458. * declarations, mixed with code: Mixed Declarations. (line 6)
  53459. * declaring attributes of functions: Function Attributes.
  53460. (line 6)
  53461. * declaring static data in C++: Static Definitions. (line 6)
  53462. * defining static data in C++: Static Definitions. (line 6)
  53463. * dependencies for make as output: Environment Variables.
  53464. (line 156)
  53465. * dependencies for make as output <1>: Environment Variables.
  53466. (line 172)
  53467. * dependencies, make: Preprocessor Options.
  53468. (line 77)
  53469. * DEPENDENCIES_OUTPUT: Environment Variables.
  53470. (line 155)
  53471. * dependent name lookup: Name lookup. (line 6)
  53472. * deprecated enumerator attribute: Enumerator Attributes.
  53473. (line 28)
  53474. * deprecated function attribute: Common Function Attributes.
  53475. (line 319)
  53476. * deprecated type attribute: Common Type Attributes.
  53477. (line 189)
  53478. * deprecated variable attribute: Common Variable Attributes.
  53479. (line 201)
  53480. * designated initializers: Designated Inits. (line 6)
  53481. * designated_init type attribute: Common Type Attributes.
  53482. (line 223)
  53483. * designator lists: Designated Inits. (line 96)
  53484. * designators: Designated Inits. (line 64)
  53485. * destructor function attribute: Common Function Attributes.
  53486. (line 259)
  53487. * developer options: Developer Options. (line 6)
  53488. * df integer suffix: Decimal Float. (line 6)
  53489. * DF integer suffix: Decimal Float. (line 6)
  53490. * dgettext: Other Builtins. (line 6)
  53491. * diagnostic messages: Diagnostic Message Formatting Options.
  53492. (line 6)
  53493. * dialect options: C Dialect Options. (line 6)
  53494. * diff-delete GCC_COLORS capability: Diagnostic Message Formatting Options.
  53495. (line 119)
  53496. * diff-filename GCC_COLORS capability: Diagnostic Message Formatting Options.
  53497. (line 112)
  53498. * diff-hunk GCC_COLORS capability: Diagnostic Message Formatting Options.
  53499. (line 115)
  53500. * diff-insert GCC_COLORS capability: Diagnostic Message Formatting Options.
  53501. (line 122)
  53502. * digits in constraint: Simple Constraints. (line 125)
  53503. * directory options: Directory Options. (line 6)
  53504. * disinterrupt function attribute, Epiphany: Epiphany Function Attributes.
  53505. (line 9)
  53506. * disinterrupt function attribute, MeP: MeP Function Attributes.
  53507. (line 9)
  53508. * dl integer suffix: Decimal Float. (line 6)
  53509. * DL integer suffix: Decimal Float. (line 6)
  53510. * dllexport function attribute: Microsoft Windows Function Attributes.
  53511. (line 10)
  53512. * dllexport variable attribute: Microsoft Windows Variable Attributes.
  53513. (line 12)
  53514. * dllimport function attribute: Microsoft Windows Function Attributes.
  53515. (line 42)
  53516. * dllimport variable attribute: Microsoft Windows Variable Attributes.
  53517. (line 12)
  53518. * dollar signs in identifier names: Dollar Signs. (line 6)
  53519. * double-word arithmetic: Long Long. (line 6)
  53520. * downward funargs: Nested Functions. (line 6)
  53521. * drem: Other Builtins. (line 6)
  53522. * dremf: Other Builtins. (line 6)
  53523. * dreml: Other Builtins. (line 6)
  53524. * dump options: Developer Options. (line 6)
  53525. * E in constraint: Simple Constraints. (line 87)
  53526. * earlyclobber operand: Modifiers. (line 25)
  53527. * eBPF Options: eBPF Options. (line 6)
  53528. * eight-bit data on the H8/300, H8/300H, and H8S: H8/300 Variable Attributes.
  53529. (line 9)
  53530. * eightbit_data variable attribute, H8/300: H8/300 Variable Attributes.
  53531. (line 9)
  53532. * EIND: AVR Options. (line 319)
  53533. * either function attribute, MSP430: MSP430 Function Attributes.
  53534. (line 57)
  53535. * either variable attribute, MSP430: MSP430 Variable Attributes.
  53536. (line 23)
  53537. * empty structures: Empty Structures. (line 6)
  53538. * Enumerator Attributes: Enumerator Attributes.
  53539. (line 6)
  53540. * environment variables: Environment Variables.
  53541. (line 6)
  53542. * erf: Other Builtins. (line 6)
  53543. * erfc: Other Builtins. (line 6)
  53544. * erfcf: Other Builtins. (line 6)
  53545. * erfcl: Other Builtins. (line 6)
  53546. * erff: Other Builtins. (line 6)
  53547. * erfl: Other Builtins. (line 6)
  53548. * error function attribute: Common Function Attributes.
  53549. (line 343)
  53550. * error GCC_COLORS capability: Diagnostic Message Formatting Options.
  53551. (line 77)
  53552. * error messages: Warnings and Errors.
  53553. (line 6)
  53554. * escaped newlines: Escaped Newlines. (line 6)
  53555. * exception function attribute: NDS32 Function Attributes.
  53556. (line 9)
  53557. * exception handler functions, Blackfin: Blackfin Function Attributes.
  53558. (line 9)
  53559. * exception handler functions, NDS32: NDS32 Function Attributes.
  53560. (line 9)
  53561. * exception_handler function attribute: Blackfin Function Attributes.
  53562. (line 9)
  53563. * exit: Other Builtins. (line 6)
  53564. * exp: Other Builtins. (line 6)
  53565. * exp10: Other Builtins. (line 6)
  53566. * exp10f: Other Builtins. (line 6)
  53567. * exp10l: Other Builtins. (line 6)
  53568. * exp2: Other Builtins. (line 6)
  53569. * exp2f: Other Builtins. (line 6)
  53570. * exp2l: Other Builtins. (line 6)
  53571. * expf: Other Builtins. (line 6)
  53572. * expl: Other Builtins. (line 6)
  53573. * explicit register variables: Explicit Register Variables.
  53574. (line 6)
  53575. * expm1: Other Builtins. (line 6)
  53576. * expm1f: Other Builtins. (line 6)
  53577. * expm1l: Other Builtins. (line 6)
  53578. * expressions containing statements: Statement Exprs. (line 6)
  53579. * expressions, constructor: Compound Literals. (line 6)
  53580. * extended asm: Extended Asm. (line 6)
  53581. * extensible constraints: Simple Constraints. (line 161)
  53582. * extensions, ?:: Conditionals. (line 6)
  53583. * extensions, C language: C Extensions. (line 6)
  53584. * extensions, C++ language: C++ Extensions. (line 6)
  53585. * external declaration scope: Incompatibilities. (line 80)
  53586. * externally_visible function attribute: Common Function Attributes.
  53587. (line 360)
  53588. * extra NOP instructions at the function entry point: Common Function Attributes.
  53589. (line 905)
  53590. * F in constraint: Simple Constraints. (line 92)
  53591. * fabs: Other Builtins. (line 6)
  53592. * fabsf: Other Builtins. (line 6)
  53593. * fabsl: Other Builtins. (line 6)
  53594. * fallthrough statement attribute: Statement Attributes.
  53595. (line 26)
  53596. * far function attribute, MeP: MeP Function Attributes.
  53597. (line 25)
  53598. * far function attribute, MIPS: MIPS Function Attributes.
  53599. (line 63)
  53600. * far type attribute, MeP: MeP Type Attributes.
  53601. (line 6)
  53602. * far variable attribute, MeP: MeP Variable Attributes.
  53603. (line 30)
  53604. * fastcall function attribute, x86-32: x86 Function Attributes.
  53605. (line 15)
  53606. * fast_interrupt function attribute, M32C: M32C Function Attributes.
  53607. (line 14)
  53608. * fast_interrupt function attribute, MicroBlaze: MicroBlaze Function Attributes.
  53609. (line 27)
  53610. * fast_interrupt function attribute, RX: RX Function Attributes.
  53611. (line 9)
  53612. * fatal signal: Bug Criteria. (line 9)
  53613. * fdim: Other Builtins. (line 6)
  53614. * fdimf: Other Builtins. (line 6)
  53615. * fdiml: Other Builtins. (line 6)
  53616. * FDL, GNU Free Documentation License: GNU Free Documentation License.
  53617. (line 6)
  53618. * fentry_name function attribute, x86: x86 Function Attributes.
  53619. (line 637)
  53620. * fentry_section function attribute, x86: x86 Function Attributes.
  53621. (line 643)
  53622. * ffs: Other Builtins. (line 6)
  53623. * file name suffix: Overall Options. (line 14)
  53624. * file names: Link Options. (line 10)
  53625. * fix-cortex-a53-835769 function attribute, AArch64: AArch64 Function Attributes.
  53626. (line 19)
  53627. * fixed-point types: Fixed-Point. (line 6)
  53628. * fixit-delete GCC_COLORS capability: Diagnostic Message Formatting Options.
  53629. (line 109)
  53630. * fixit-insert GCC_COLORS capability: Diagnostic Message Formatting Options.
  53631. (line 105)
  53632. * flatten function attribute: Common Function Attributes.
  53633. (line 373)
  53634. * flexible array members: Zero Length. (line 6)
  53635. * float as function value type: Incompatibilities. (line 141)
  53636. * floating point precision: Disappointments. (line 68)
  53637. * floating-point precision: Optimize Options. (line 2191)
  53638. * floor: Other Builtins. (line 6)
  53639. * floorf: Other Builtins. (line 6)
  53640. * floorl: Other Builtins. (line 6)
  53641. * fma: Other Builtins. (line 6)
  53642. * fmaf: Other Builtins. (line 6)
  53643. * fmal: Other Builtins. (line 6)
  53644. * fmax: Other Builtins. (line 6)
  53645. * fmaxf: Other Builtins. (line 6)
  53646. * fmaxl: Other Builtins. (line 6)
  53647. * fmin: Other Builtins. (line 6)
  53648. * fminf: Other Builtins. (line 6)
  53649. * fminl: Other Builtins. (line 6)
  53650. * fmod: Other Builtins. (line 6)
  53651. * fmodf: Other Builtins. (line 6)
  53652. * fmodl: Other Builtins. (line 6)
  53653. * force_align_arg_pointer function attribute, x86: x86 Function Attributes.
  53654. (line 100)
  53655. * format function attribute: Common Function Attributes.
  53656. (line 381)
  53657. * format_arg function attribute: Common Function Attributes.
  53658. (line 446)
  53659. * Fortran: G++ and GCC. (line 6)
  53660. * forwarder_section function attribute, Epiphany: Epiphany Function Attributes.
  53661. (line 13)
  53662. * forwarding calls: Constructing Calls. (line 6)
  53663. * fprintf: Other Builtins. (line 6)
  53664. * fprintf_unlocked: Other Builtins. (line 6)
  53665. * fputs: Other Builtins. (line 6)
  53666. * fputs_unlocked: Other Builtins. (line 6)
  53667. * FR30 Options: FR30 Options. (line 6)
  53668. * free: Other Builtins. (line 6)
  53669. * freestanding environment: Standards. (line 13)
  53670. * freestanding implementation: Standards. (line 13)
  53671. * frexp: Other Builtins. (line 6)
  53672. * frexpf: Other Builtins. (line 6)
  53673. * frexpl: Other Builtins. (line 6)
  53674. * FRV Options: FRV Options. (line 6)
  53675. * fscanf: Other Builtins. (line 6)
  53676. * fscanf, and constant strings: Incompatibilities. (line 17)
  53677. * FT32 Options: FT32 Options. (line 6)
  53678. * function addressability on the M32R/D: M32R/D Function Attributes.
  53679. (line 15)
  53680. * function attributes: Function Attributes.
  53681. (line 6)
  53682. * function pointers, arithmetic: Pointer Arith. (line 6)
  53683. * function prototype declarations: Function Prototypes.
  53684. (line 6)
  53685. * function versions: Function Multiversioning.
  53686. (line 6)
  53687. * function, size of pointer to: Pointer Arith. (line 6)
  53688. * functions in arbitrary sections: Common Function Attributes.
  53689. (line 989)
  53690. * functions that are dynamically resolved: Common Function Attributes.
  53691. (line 547)
  53692. * functions that are passed arguments in registers on x86-32: x86 Function Attributes.
  53693. (line 76)
  53694. * functions that behave like malloc: Common Function Attributes.
  53695. (line 674)
  53696. * functions that have no side effects: Common Function Attributes.
  53697. (line 218)
  53698. * functions that have no side effects <1>: Common Function Attributes.
  53699. (line 923)
  53700. * functions that never return: Common Function Attributes.
  53701. (line 837)
  53702. * functions that pop the argument stack on x86-32: x86 Function Attributes.
  53703. (line 9)
  53704. * functions that pop the argument stack on x86-32 <1>: x86 Function Attributes.
  53705. (line 15)
  53706. * functions that pop the argument stack on x86-32 <2>: x86 Function Attributes.
  53707. (line 23)
  53708. * functions that pop the argument stack on x86-32 <3>: x86 Function Attributes.
  53709. (line 108)
  53710. * functions that return more than once: Common Function Attributes.
  53711. (line 980)
  53712. * functions with non-null pointer arguments: Common Function Attributes.
  53713. (line 783)
  53714. * functions with printf, scanf, strftime or strfmon style arguments: Common Function Attributes.
  53715. (line 381)
  53716. * function_return function attribute, x86: x86 Function Attributes.
  53717. (line 562)
  53718. * function_vector function attribute, H8/300: H8/300 Function Attributes.
  53719. (line 9)
  53720. * function_vector function attribute, M16C/M32C: M32C Function Attributes.
  53721. (line 20)
  53722. * function_vector function attribute, SH: SH Function Attributes.
  53723. (line 9)
  53724. * G in constraint: Simple Constraints. (line 96)
  53725. * g in constraint: Simple Constraints. (line 118)
  53726. * g++: Invoking G++. (line 14)
  53727. * G++: G++ and GCC. (line 29)
  53728. * gamma: Other Builtins. (line 6)
  53729. * gammaf: Other Builtins. (line 6)
  53730. * gammaf_r: Other Builtins. (line 6)
  53731. * gammal: Other Builtins. (line 6)
  53732. * gammal_r: Other Builtins. (line 6)
  53733. * gamma_r: Other Builtins. (line 6)
  53734. * GCC: G++ and GCC. (line 6)
  53735. * GCC command options: Invoking GCC. (line 6)
  53736. * GCC_COLORS environment variable: Diagnostic Message Formatting Options.
  53737. (line 40)
  53738. * GCC_COMPARE_DEBUG: Environment Variables.
  53739. (line 52)
  53740. * GCC_EXEC_PREFIX: Environment Variables.
  53741. (line 57)
  53742. * gcc_struct type attribute, PowerPC: PowerPC Type Attributes.
  53743. (line 9)
  53744. * gcc_struct type attribute, x86: x86 Type Attributes.
  53745. (line 11)
  53746. * gcc_struct variable attribute, PowerPC: PowerPC Variable Attributes.
  53747. (line 9)
  53748. * gcc_struct variable attribute, x86: x86 Variable Attributes.
  53749. (line 11)
  53750. * GCC_URLS environment variable: Diagnostic Message Formatting Options.
  53751. (line 129)
  53752. * gcov: Instrumentation Options.
  53753. (line 49)
  53754. * general-regs-only function attribute, AArch64: AArch64 Function Attributes.
  53755. (line 12)
  53756. * general-regs-only function attribute, ARM: ARM Function Attributes.
  53757. (line 9)
  53758. * gettext: Other Builtins. (line 6)
  53759. * global offset table: Code Gen Options. (line 353)
  53760. * global register after longjmp: Global Register Variables.
  53761. (line 92)
  53762. * global register variables: Global Register Variables.
  53763. (line 6)
  53764. * GNAT: G++ and GCC. (line 29)
  53765. * GNU C Compiler: G++ and GCC. (line 6)
  53766. * GNU Compiler Collection: G++ and GCC. (line 6)
  53767. * gnu_inline function attribute: Common Function Attributes.
  53768. (line 501)
  53769. * Go: G++ and GCC. (line 6)
  53770. * goto with computed label: Labels as Values. (line 6)
  53771. * gprof: Instrumentation Options.
  53772. (line 18)
  53773. * grouping options: Invoking GCC. (line 31)
  53774. * H in constraint: Simple Constraints. (line 96)
  53775. * half-precision floating point: Half-Precision. (line 6)
  53776. * hardware models and configurations, specifying: Submodel Options.
  53777. (line 6)
  53778. * hex floats: Hex Floats. (line 6)
  53779. * highlight, color: Diagnostic Message Formatting Options.
  53780. (line 40)
  53781. * hk fixed-suffix: Fixed-Point. (line 6)
  53782. * HK fixed-suffix: Fixed-Point. (line 6)
  53783. * hosted environment: Standards. (line 13)
  53784. * hosted environment <1>: C Dialect Options. (line 306)
  53785. * hosted environment <2>: C Dialect Options. (line 314)
  53786. * hosted implementation: Standards. (line 13)
  53787. * hot function attribute: Common Function Attributes.
  53788. (line 537)
  53789. * hot label attribute: Label Attributes. (line 38)
  53790. * hotpatch function attribute, S/390: S/390 Function Attributes.
  53791. (line 9)
  53792. * HPPA Options: HPPA Options. (line 6)
  53793. * hr fixed-suffix: Fixed-Point. (line 6)
  53794. * HR fixed-suffix: Fixed-Point. (line 6)
  53795. * hypot: Other Builtins. (line 6)
  53796. * hypotf: Other Builtins. (line 6)
  53797. * hypotl: Other Builtins. (line 6)
  53798. * i in constraint: Simple Constraints. (line 68)
  53799. * I in constraint: Simple Constraints. (line 79)
  53800. * IA-64 Options: IA-64 Options. (line 6)
  53801. * IBM RS/6000 and PowerPC Options: RS/6000 and PowerPC Options.
  53802. (line 6)
  53803. * identifier names, dollar signs in: Dollar Signs. (line 6)
  53804. * identifiers, names in assembler code: Asm Labels. (line 6)
  53805. * ifunc function attribute: Common Function Attributes.
  53806. (line 547)
  53807. * ilogb: Other Builtins. (line 6)
  53808. * ilogbf: Other Builtins. (line 6)
  53809. * ilogbl: Other Builtins. (line 6)
  53810. * imaxabs: Other Builtins. (line 6)
  53811. * implementation-defined behavior, C language: C Implementation.
  53812. (line 6)
  53813. * implementation-defined behavior, C++ language: C++ Implementation.
  53814. (line 6)
  53815. * implied #pragma implementation: C++ Interface. (line 43)
  53816. * incompatibilities of GCC: Incompatibilities. (line 6)
  53817. * increment operators: Bug Criteria. (line 17)
  53818. * index: Other Builtins. (line 6)
  53819. * indirect calls, ARC: ARC Function Attributes.
  53820. (line 27)
  53821. * indirect calls, ARM: ARM Function Attributes.
  53822. (line 38)
  53823. * indirect calls, Blackfin: Blackfin Function Attributes.
  53824. (line 38)
  53825. * indirect calls, Epiphany: Epiphany Function Attributes.
  53826. (line 57)
  53827. * indirect calls, MIPS: MIPS Function Attributes.
  53828. (line 63)
  53829. * indirect calls, PowerPC: PowerPC Function Attributes.
  53830. (line 10)
  53831. * indirect functions: Common Function Attributes.
  53832. (line 547)
  53833. * indirect_branch function attribute, x86: x86 Function Attributes.
  53834. (line 552)
  53835. * indirect_return function attribute, x86: x86 Function Attributes.
  53836. (line 631)
  53837. * initializations in expressions: Compound Literals. (line 6)
  53838. * initializers with labeled elements: Designated Inits. (line 6)
  53839. * initializers, non-constant: Initializers. (line 6)
  53840. * init_priority variable attribute: C++ Attributes. (line 50)
  53841. * inline assembly language: Using Assembly Language with C.
  53842. (line 6)
  53843. * inline automatic for C++ member fns: Inline. (line 68)
  53844. * inline functions: Inline. (line 6)
  53845. * inline functions, omission of: Inline. (line 51)
  53846. * inlining and C++ pragmas: C++ Interface. (line 57)
  53847. * installation trouble: Trouble. (line 6)
  53848. * instrumentation options: Instrumentation Options.
  53849. (line 6)
  53850. * integrating function code: Inline. (line 6)
  53851. * interface and implementation headers, C++: C++ Interface. (line 6)
  53852. * intermediate C version, nonexistent: G++ and GCC. (line 34)
  53853. * interrupt function attribute, ARC: ARC Function Attributes.
  53854. (line 9)
  53855. * interrupt function attribute, ARM: ARM Function Attributes.
  53856. (line 16)
  53857. * interrupt function attribute, AVR: AVR Function Attributes.
  53858. (line 9)
  53859. * interrupt function attribute, C-SKY: C-SKY Function Attributes.
  53860. (line 10)
  53861. * interrupt function attribute, CR16: CR16 Function Attributes.
  53862. (line 9)
  53863. * interrupt function attribute, Epiphany: Epiphany Function Attributes.
  53864. (line 20)
  53865. * interrupt function attribute, M32C: M32C Function Attributes.
  53866. (line 53)
  53867. * interrupt function attribute, M32R/D: M32R/D Function Attributes.
  53868. (line 9)
  53869. * interrupt function attribute, m68k: m68k Function Attributes.
  53870. (line 10)
  53871. * interrupt function attribute, MeP: MeP Function Attributes.
  53872. (line 14)
  53873. * interrupt function attribute, MIPS: MIPS Function Attributes.
  53874. (line 9)
  53875. * interrupt function attribute, MSP430: MSP430 Function Attributes.
  53876. (line 19)
  53877. * interrupt function attribute, NDS32: NDS32 Function Attributes.
  53878. (line 14)
  53879. * interrupt function attribute, RISC-V: RISC-V Function Attributes.
  53880. (line 19)
  53881. * interrupt function attribute, RL78: RL78 Function Attributes.
  53882. (line 10)
  53883. * interrupt function attribute, RX: RX Function Attributes.
  53884. (line 15)
  53885. * interrupt function attribute, V850: V850 Function Attributes.
  53886. (line 10)
  53887. * interrupt function attribute, Visium: Visium Function Attributes.
  53888. (line 9)
  53889. * interrupt function attribute, x86: x86 Function Attributes.
  53890. (line 124)
  53891. * interrupt function attribute, Xstormy16: Xstormy16 Function Attributes.
  53892. (line 9)
  53893. * interrupt_handler function attribute, Blackfin: Blackfin Function Attributes.
  53894. (line 15)
  53895. * interrupt_handler function attribute, H8/300: H8/300 Function Attributes.
  53896. (line 17)
  53897. * interrupt_handler function attribute, m68k: m68k Function Attributes.
  53898. (line 10)
  53899. * interrupt_handler function attribute, MicroBlaze: MicroBlaze Function Attributes.
  53900. (line 27)
  53901. * interrupt_handler function attribute, SH: SH Function Attributes.
  53902. (line 28)
  53903. * interrupt_handler function attribute, V850: V850 Function Attributes.
  53904. (line 10)
  53905. * interrupt_thread function attribute, fido: m68k Function Attributes.
  53906. (line 16)
  53907. * introduction: Top. (line 6)
  53908. * invalid assembly code: Bug Criteria. (line 12)
  53909. * invalid input: Bug Criteria. (line 42)
  53910. * invoking g++: Invoking G++. (line 22)
  53911. * io variable attribute, AVR: AVR Variable Attributes.
  53912. (line 73)
  53913. * io variable attribute, MeP: MeP Variable Attributes.
  53914. (line 36)
  53915. * io_low variable attribute, AVR: AVR Variable Attributes.
  53916. (line 91)
  53917. * isalnum: Other Builtins. (line 6)
  53918. * isalpha: Other Builtins. (line 6)
  53919. * isascii: Other Builtins. (line 6)
  53920. * isblank: Other Builtins. (line 6)
  53921. * iscntrl: Other Builtins. (line 6)
  53922. * isdigit: Other Builtins. (line 6)
  53923. * isgraph: Other Builtins. (line 6)
  53924. * islower: Other Builtins. (line 6)
  53925. * ISO 9899: Standards. (line 13)
  53926. * ISO C: Standards. (line 13)
  53927. * ISO C standard: Standards. (line 13)
  53928. * ISO C11: Standards. (line 13)
  53929. * ISO C17: Standards. (line 13)
  53930. * ISO C1X: Standards. (line 13)
  53931. * ISO C2X: Standards. (line 13)
  53932. * ISO C90: Standards. (line 13)
  53933. * ISO C94: Standards. (line 13)
  53934. * ISO C95: Standards. (line 13)
  53935. * ISO C99: Standards. (line 13)
  53936. * ISO C9X: Standards. (line 13)
  53937. * ISO support: C Dialect Options. (line 10)
  53938. * ISO/IEC 9899: Standards. (line 13)
  53939. * isprint: Other Builtins. (line 6)
  53940. * ispunct: Other Builtins. (line 6)
  53941. * isr function attribute, ARM: ARM Function Attributes.
  53942. (line 33)
  53943. * isr function attribute, C-SKY: C-SKY Function Attributes.
  53944. (line 10)
  53945. * isspace: Other Builtins. (line 6)
  53946. * isupper: Other Builtins. (line 6)
  53947. * iswalnum: Other Builtins. (line 6)
  53948. * iswalpha: Other Builtins. (line 6)
  53949. * iswblank: Other Builtins. (line 6)
  53950. * iswcntrl: Other Builtins. (line 6)
  53951. * iswdigit: Other Builtins. (line 6)
  53952. * iswgraph: Other Builtins. (line 6)
  53953. * iswlower: Other Builtins. (line 6)
  53954. * iswprint: Other Builtins. (line 6)
  53955. * iswpunct: Other Builtins. (line 6)
  53956. * iswspace: Other Builtins. (line 6)
  53957. * iswupper: Other Builtins. (line 6)
  53958. * iswxdigit: Other Builtins. (line 6)
  53959. * isxdigit: Other Builtins. (line 6)
  53960. * j0: Other Builtins. (line 6)
  53961. * j0f: Other Builtins. (line 6)
  53962. * j0l: Other Builtins. (line 6)
  53963. * j1: Other Builtins. (line 6)
  53964. * j1f: Other Builtins. (line 6)
  53965. * j1l: Other Builtins. (line 6)
  53966. * jli_always function attribute, ARC: ARC Function Attributes.
  53967. (line 44)
  53968. * jli_fixed function attribute, ARC: ARC Function Attributes.
  53969. (line 50)
  53970. * jn: Other Builtins. (line 6)
  53971. * jnf: Other Builtins. (line 6)
  53972. * jnl: Other Builtins. (line 6)
  53973. * k fixed-suffix: Fixed-Point. (line 6)
  53974. * K fixed-suffix: Fixed-Point. (line 6)
  53975. * keep_interrupts_masked function attribute, MIPS: MIPS Function Attributes.
  53976. (line 34)
  53977. * kernel attribute, Nvidia PTX: Nvidia PTX Function Attributes.
  53978. (line 9)
  53979. * keywords, alternate: Alternate Keywords. (line 6)
  53980. * known causes of trouble: Trouble. (line 6)
  53981. * kspisusp function attribute, Blackfin: Blackfin Function Attributes.
  53982. (line 21)
  53983. * l1_data variable attribute, Blackfin: Blackfin Variable Attributes.
  53984. (line 11)
  53985. * l1_data_A variable attribute, Blackfin: Blackfin Variable Attributes.
  53986. (line 11)
  53987. * l1_data_B variable attribute, Blackfin: Blackfin Variable Attributes.
  53988. (line 11)
  53989. * l1_text function attribute, Blackfin: Blackfin Function Attributes.
  53990. (line 26)
  53991. * l2 function attribute, Blackfin: Blackfin Function Attributes.
  53992. (line 32)
  53993. * l2 variable attribute, Blackfin: Blackfin Variable Attributes.
  53994. (line 19)
  53995. * Label Attributes: Label Attributes. (line 6)
  53996. * labeled elements in initializers: Designated Inits. (line 6)
  53997. * labels as values: Labels as Values. (line 6)
  53998. * labs: Other Builtins. (line 6)
  53999. * LANG: Environment Variables.
  54000. (line 21)
  54001. * LANG <1>: Environment Variables.
  54002. (line 106)
  54003. * language dialect options: C Dialect Options. (line 6)
  54004. * LC_ALL: Environment Variables.
  54005. (line 21)
  54006. * LC_CTYPE: Environment Variables.
  54007. (line 21)
  54008. * LC_MESSAGES: Environment Variables.
  54009. (line 21)
  54010. * ldexp: Other Builtins. (line 6)
  54011. * ldexpf: Other Builtins. (line 6)
  54012. * ldexpl: Other Builtins. (line 6)
  54013. * leaf function attribute: Common Function Attributes.
  54014. (line 637)
  54015. * length-zero arrays: Zero Length. (line 6)
  54016. * lgamma: Other Builtins. (line 6)
  54017. * lgammaf: Other Builtins. (line 6)
  54018. * lgammaf_r: Other Builtins. (line 6)
  54019. * lgammal: Other Builtins. (line 6)
  54020. * lgammal_r: Other Builtins. (line 6)
  54021. * lgamma_r: Other Builtins. (line 6)
  54022. * Libraries: Link Options. (line 82)
  54023. * LIBRARY_PATH: Environment Variables.
  54024. (line 97)
  54025. * link options: Link Options. (line 6)
  54026. * linker script: Link Options. (line 311)
  54027. * lk fixed-suffix: Fixed-Point. (line 6)
  54028. * LK fixed-suffix: Fixed-Point. (line 6)
  54029. * LL integer suffix: Long Long. (line 6)
  54030. * llabs: Other Builtins. (line 6)
  54031. * llk fixed-suffix: Fixed-Point. (line 6)
  54032. * LLK fixed-suffix: Fixed-Point. (line 6)
  54033. * llr fixed-suffix: Fixed-Point. (line 6)
  54034. * LLR fixed-suffix: Fixed-Point. (line 6)
  54035. * llrint: Other Builtins. (line 6)
  54036. * llrintf: Other Builtins. (line 6)
  54037. * llrintl: Other Builtins. (line 6)
  54038. * llround: Other Builtins. (line 6)
  54039. * llroundf: Other Builtins. (line 6)
  54040. * llroundl: Other Builtins. (line 6)
  54041. * LM32 options: LM32 Options. (line 6)
  54042. * load address instruction: Simple Constraints. (line 152)
  54043. * local labels: Local Labels. (line 6)
  54044. * local variables in macros: Typeof. (line 46)
  54045. * local variables, specifying registers: Local Register Variables.
  54046. (line 6)
  54047. * locale: Environment Variables.
  54048. (line 21)
  54049. * locale definition: Environment Variables.
  54050. (line 106)
  54051. * locus GCC_COLORS capability: Diagnostic Message Formatting Options.
  54052. (line 98)
  54053. * log: Other Builtins. (line 6)
  54054. * log10: Other Builtins. (line 6)
  54055. * log10f: Other Builtins. (line 6)
  54056. * log10l: Other Builtins. (line 6)
  54057. * log1p: Other Builtins. (line 6)
  54058. * log1pf: Other Builtins. (line 6)
  54059. * log1pl: Other Builtins. (line 6)
  54060. * log2: Other Builtins. (line 6)
  54061. * log2f: Other Builtins. (line 6)
  54062. * log2l: Other Builtins. (line 6)
  54063. * logb: Other Builtins. (line 6)
  54064. * logbf: Other Builtins. (line 6)
  54065. * logbl: Other Builtins. (line 6)
  54066. * logf: Other Builtins. (line 6)
  54067. * logl: Other Builtins. (line 6)
  54068. * long: BPF Built-in Functions.
  54069. (line 8)
  54070. * long <1>: BPF Built-in Functions.
  54071. (line 13)
  54072. * long <2>: BPF Built-in Functions.
  54073. (line 18)
  54074. * long long data types: Long Long. (line 6)
  54075. * longcall function attribute, Blackfin: Blackfin Function Attributes.
  54076. (line 38)
  54077. * longcall function attribute, PowerPC: PowerPC Function Attributes.
  54078. (line 10)
  54079. * longjmp: Global Register Variables.
  54080. (line 92)
  54081. * longjmp incompatibilities: Incompatibilities. (line 39)
  54082. * longjmp warnings: Warning Options. (line 1284)
  54083. * long_call function attribute, ARC: ARC Function Attributes.
  54084. (line 27)
  54085. * long_call function attribute, ARM: ARM Function Attributes.
  54086. (line 38)
  54087. * long_call function attribute, Epiphany: Epiphany Function Attributes.
  54088. (line 57)
  54089. * long_call function attribute, MIPS: MIPS Function Attributes.
  54090. (line 63)
  54091. * lower function attribute, MSP430: MSP430 Function Attributes.
  54092. (line 57)
  54093. * lower variable attribute, MSP430: MSP430 Variable Attributes.
  54094. (line 27)
  54095. * lr fixed-suffix: Fixed-Point. (line 6)
  54096. * LR fixed-suffix: Fixed-Point. (line 6)
  54097. * lrint: Other Builtins. (line 6)
  54098. * lrintf: Other Builtins. (line 6)
  54099. * lrintl: Other Builtins. (line 6)
  54100. * lround: Other Builtins. (line 6)
  54101. * lroundf: Other Builtins. (line 6)
  54102. * lroundl: Other Builtins. (line 6)
  54103. * m in constraint: Simple Constraints. (line 17)
  54104. * M32C options: M32C Options. (line 6)
  54105. * M32R/D options: M32R/D Options. (line 6)
  54106. * M680x0 options: M680x0 Options. (line 6)
  54107. * machine specific constraints: Machine Constraints.
  54108. (line 6)
  54109. * machine-dependent options: Submodel Options. (line 6)
  54110. * macro with variable arguments: Variadic Macros. (line 6)
  54111. * macros, inline alternative: Inline. (line 6)
  54112. * macros, local labels: Local Labels. (line 6)
  54113. * macros, local variables in: Typeof. (line 46)
  54114. * macros, statements in expressions: Statement Exprs. (line 6)
  54115. * macros, types of arguments: Typeof. (line 6)
  54116. * make: Preprocessor Options.
  54117. (line 77)
  54118. * malloc: Other Builtins. (line 6)
  54119. * malloc function attribute: Common Function Attributes.
  54120. (line 674)
  54121. * matching constraint: Simple Constraints. (line 137)
  54122. * may_alias type attribute: Common Type Attributes.
  54123. (line 234)
  54124. * MCore options: MCore Options. (line 6)
  54125. * medium_call function attribute, ARC: ARC Function Attributes.
  54126. (line 27)
  54127. * member fns, automatically inline: Inline. (line 68)
  54128. * memchr: Other Builtins. (line 6)
  54129. * memcmp: Other Builtins. (line 6)
  54130. * memcpy: Other Builtins. (line 6)
  54131. * memory references in constraints: Simple Constraints. (line 17)
  54132. * mempcpy: Other Builtins. (line 6)
  54133. * memset: Other Builtins. (line 6)
  54134. * MeP options: MeP Options. (line 6)
  54135. * Mercury: G++ and GCC. (line 23)
  54136. * message formatting: Diagnostic Message Formatting Options.
  54137. (line 6)
  54138. * messages, warning: Warning Options. (line 6)
  54139. * messages, warning and error: Warnings and Errors.
  54140. (line 6)
  54141. * MicroBlaze Options: MicroBlaze Options. (line 6)
  54142. * micromips function attribute: MIPS Function Attributes.
  54143. (line 91)
  54144. * middle-operands, omitted: Conditionals. (line 6)
  54145. * MIPS options: MIPS Options. (line 6)
  54146. * mips16 function attribute, MIPS: MIPS Function Attributes.
  54147. (line 75)
  54148. * misunderstandings in C++: C++ Misunderstandings.
  54149. (line 6)
  54150. * mixed declarations and code: Mixed Declarations. (line 6)
  54151. * mixing assembly language and C: Using Assembly Language with C.
  54152. (line 6)
  54153. * mktemp, and constant strings: Incompatibilities. (line 13)
  54154. * MMIX Options: MMIX Options. (line 6)
  54155. * MN10300 options: MN10300 Options. (line 6)
  54156. * mode type attribute: Common Type Attributes.
  54157. (line 270)
  54158. * mode variable attribute: Common Variable Attributes.
  54159. (line 225)
  54160. * model function attribute, M32R/D: M32R/D Function Attributes.
  54161. (line 15)
  54162. * model variable attribute, IA-64: IA-64 Variable Attributes.
  54163. (line 9)
  54164. * model-name variable attribute, M32R/D: M32R/D Variable Attributes.
  54165. (line 9)
  54166. * modf: Other Builtins. (line 6)
  54167. * modff: Other Builtins. (line 6)
  54168. * modfl: Other Builtins. (line 6)
  54169. * modifiers in constraints: Modifiers. (line 6)
  54170. * Moxie Options: Moxie Options. (line 6)
  54171. * MSP430 Options: MSP430 Options. (line 6)
  54172. * ms_abi function attribute, x86: x86 Function Attributes.
  54173. (line 34)
  54174. * ms_hook_prologue function attribute, x86: x86 Function Attributes.
  54175. (line 59)
  54176. * ms_struct type attribute, PowerPC: PowerPC Type Attributes.
  54177. (line 9)
  54178. * ms_struct type attribute, x86: x86 Type Attributes.
  54179. (line 11)
  54180. * ms_struct variable attribute, PowerPC: PowerPC Variable Attributes.
  54181. (line 9)
  54182. * ms_struct variable attribute, x86: x86 Variable Attributes.
  54183. (line 11)
  54184. * multiple alternative constraints: Multi-Alternative. (line 6)
  54185. * multiprecision arithmetic: Long Long. (line 6)
  54186. * n in constraint: Simple Constraints. (line 73)
  54187. * naked function attribute, ARC: ARC Function Attributes.
  54188. (line 59)
  54189. * naked function attribute, ARM: ARM Function Attributes.
  54190. (line 48)
  54191. * naked function attribute, AVR: AVR Function Attributes.
  54192. (line 23)
  54193. * naked function attribute, C-SKY: C-SKY Function Attributes.
  54194. (line 20)
  54195. * naked function attribute, MCORE: MCORE Function Attributes.
  54196. (line 9)
  54197. * naked function attribute, MSP430: MSP430 Function Attributes.
  54198. (line 34)
  54199. * naked function attribute, NDS32: NDS32 Function Attributes.
  54200. (line 35)
  54201. * naked function attribute, RISC-V: RISC-V Function Attributes.
  54202. (line 9)
  54203. * naked function attribute, RL78: RL78 Function Attributes.
  54204. (line 20)
  54205. * naked function attribute, RX: RX Function Attributes.
  54206. (line 39)
  54207. * naked function attribute, x86: x86 Function Attributes.
  54208. (line 66)
  54209. * Named Address Spaces: Named Address Spaces.
  54210. (line 6)
  54211. * names used in assembler code: Asm Labels. (line 6)
  54212. * naming convention, implementation headers: C++ Interface. (line 43)
  54213. * NDS32 Options: NDS32 Options. (line 6)
  54214. * near function attribute, MeP: MeP Function Attributes.
  54215. (line 20)
  54216. * near function attribute, MIPS: MIPS Function Attributes.
  54217. (line 63)
  54218. * near type attribute, MeP: MeP Type Attributes.
  54219. (line 6)
  54220. * near variable attribute, MeP: MeP Variable Attributes.
  54221. (line 24)
  54222. * nearbyint: Other Builtins. (line 6)
  54223. * nearbyintf: Other Builtins. (line 6)
  54224. * nearbyintl: Other Builtins. (line 6)
  54225. * nested function attribute, NDS32: NDS32 Function Attributes.
  54226. (line 19)
  54227. * nested functions: Nested Functions. (line 6)
  54228. * nested_ready function attribute, NDS32: NDS32 Function Attributes.
  54229. (line 23)
  54230. * nesting function attribute, Blackfin: Blackfin Function Attributes.
  54231. (line 45)
  54232. * newlines (escaped): Escaped Newlines. (line 6)
  54233. * nextafter: Other Builtins. (line 6)
  54234. * nextafterf: Other Builtins. (line 6)
  54235. * nextafterl: Other Builtins. (line 6)
  54236. * nexttoward: Other Builtins. (line 6)
  54237. * nexttowardf: Other Builtins. (line 6)
  54238. * nexttowardl: Other Builtins. (line 6)
  54239. * NFC: Warning Options. (line 2654)
  54240. * NFKC: Warning Options. (line 2654)
  54241. * Nios II options: Nios II Options. (line 6)
  54242. * nmi function attribute, NDS32: NDS32 Function Attributes.
  54243. (line 50)
  54244. * NMI handler functions on the Blackfin processor: Blackfin Function Attributes.
  54245. (line 50)
  54246. * nmi_handler function attribute, Blackfin: Blackfin Function Attributes.
  54247. (line 50)
  54248. * nocf_check function attribute: x86 Function Attributes.
  54249. (line 571)
  54250. * noclone function attribute: Common Function Attributes.
  54251. (line 752)
  54252. * nocommon variable attribute: Common Variable Attributes.
  54253. (line 176)
  54254. * nocompression function attribute, MIPS: MIPS Function Attributes.
  54255. (line 108)
  54256. * noinit variable attribute: Common Variable Attributes.
  54257. (line 397)
  54258. * noinit variable attribute, MSP430: MSP430 Variable Attributes.
  54259. (line 7)
  54260. * noinline function attribute: Common Function Attributes.
  54261. (line 758)
  54262. * noipa function attribute: Common Function Attributes.
  54263. (line 769)
  54264. * nomicromips function attribute: MIPS Function Attributes.
  54265. (line 91)
  54266. * nomips16 function attribute, MIPS: MIPS Function Attributes.
  54267. (line 75)
  54268. * non-constant initializers: Initializers. (line 6)
  54269. * non-static inline function: Inline. (line 82)
  54270. * nonlocal gotos: Nonlocal Gotos. (line 6)
  54271. * nonnull function attribute: Common Function Attributes.
  54272. (line 783)
  54273. * nonstring variable attribute: Common Variable Attributes.
  54274. (line 237)
  54275. * noplt function attribute: Common Function Attributes.
  54276. (line 813)
  54277. * noreturn function attribute: Common Function Attributes.
  54278. (line 837)
  54279. * nosave_low_regs function attribute, SH: SH Function Attributes.
  54280. (line 34)
  54281. * note GCC_COLORS capability: Diagnostic Message Formatting Options.
  54282. (line 83)
  54283. * nothrow function attribute: Common Function Attributes.
  54284. (line 871)
  54285. * notshared type attribute, ARM: ARM Type Attributes.
  54286. (line 6)
  54287. * not_nested function attribute, NDS32: NDS32 Function Attributes.
  54288. (line 21)
  54289. * no_caller_saved_registers function attribute, x86: x86 Function Attributes.
  54290. (line 113)
  54291. * no_gccisr function attribute, AVR: AVR Function Attributes.
  54292. (line 33)
  54293. * no_icf function attribute: Common Function Attributes.
  54294. (line 687)
  54295. * no_instrument_function function attribute: Common Function Attributes.
  54296. (line 691)
  54297. * no_profile_instrument_function function attribute: Common Function Attributes.
  54298. (line 697)
  54299. * no_reorder function attribute: Common Function Attributes.
  54300. (line 702)
  54301. * no_sanitize function attribute: Common Function Attributes.
  54302. (line 710)
  54303. * no_sanitize_address function attribute: Common Function Attributes.
  54304. (line 722)
  54305. * no_sanitize_thread function attribute: Common Function Attributes.
  54306. (line 730)
  54307. * no_sanitize_undefined function attribute: Common Function Attributes.
  54308. (line 735)
  54309. * no_split_stack function attribute: Common Function Attributes.
  54310. (line 741)
  54311. * no_stack_limit function attribute: Common Function Attributes.
  54312. (line 747)
  54313. * Nvidia PTX options: Nvidia PTX Options. (line 6)
  54314. * nvptx options: Nvidia PTX Options. (line 6)
  54315. * o in constraint: Simple Constraints. (line 23)
  54316. * OBJC_INCLUDE_PATH: Environment Variables.
  54317. (line 130)
  54318. * Objective-C: G++ and GCC. (line 6)
  54319. * Objective-C <1>: Standards. (line 189)
  54320. * Objective-C and Objective-C++ options, command-line: Objective-C and Objective-C++ Dialect Options.
  54321. (line 6)
  54322. * Objective-C++: G++ and GCC. (line 6)
  54323. * Objective-C++ <1>: Standards. (line 189)
  54324. * offsettable address: Simple Constraints. (line 23)
  54325. * old-style function definitions: Function Prototypes.
  54326. (line 6)
  54327. * omit-leaf-frame-pointer function attribute, AArch64: AArch64 Function Attributes.
  54328. (line 41)
  54329. * omitted middle-operands: Conditionals. (line 6)
  54330. * open coding: Inline. (line 6)
  54331. * OpenACC accelerator programming: C Dialect Options. (line 325)
  54332. * OpenACC accelerator programming <1>: C Dialect Options. (line 334)
  54333. * OpenMP parallel: C Dialect Options. (line 340)
  54334. * OpenMP SIMD: C Dialect Options. (line 349)
  54335. * OpenRISC Options: OpenRISC Options. (line 6)
  54336. * operand constraints, asm: Constraints. (line 6)
  54337. * optimize function attribute: Common Function Attributes.
  54338. (line 879)
  54339. * optimize options: Optimize Options. (line 6)
  54340. * options to control diagnostics formatting: Diagnostic Message Formatting Options.
  54341. (line 6)
  54342. * options to control warnings: Warning Options. (line 6)
  54343. * options, C++: C++ Dialect Options.
  54344. (line 6)
  54345. * options, code generation: Code Gen Options. (line 6)
  54346. * options, debugging: Debugging Options. (line 6)
  54347. * options, dialect: C Dialect Options. (line 6)
  54348. * options, directory search: Directory Options. (line 6)
  54349. * options, GCC command: Invoking GCC. (line 6)
  54350. * options, grouping: Invoking GCC. (line 31)
  54351. * options, linking: Link Options. (line 6)
  54352. * options, Objective-C and Objective-C++: Objective-C and Objective-C++ Dialect Options.
  54353. (line 6)
  54354. * options, optimization: Optimize Options. (line 6)
  54355. * options, order: Invoking GCC. (line 35)
  54356. * options, preprocessor: Preprocessor Options.
  54357. (line 6)
  54358. * options, profiling: Instrumentation Options.
  54359. (line 6)
  54360. * options, program instrumentation: Instrumentation Options.
  54361. (line 6)
  54362. * options, run-time error checking: Instrumentation Options.
  54363. (line 6)
  54364. * order of evaluation, side effects: Non-bugs. (line 196)
  54365. * order of options: Invoking GCC. (line 35)
  54366. * OS_main function attribute, AVR: AVR Function Attributes.
  54367. (line 56)
  54368. * OS_task function attribute, AVR: AVR Function Attributes.
  54369. (line 56)
  54370. * other register constraints: Simple Constraints. (line 161)
  54371. * output file option: Overall Options. (line 196)
  54372. * overloaded virtual function, warning: C++ Dialect Options.
  54373. (line 817)
  54374. * p in constraint: Simple Constraints. (line 152)
  54375. * packed type attribute: Common Type Attributes.
  54376. (line 282)
  54377. * packed variable attribute: Common Variable Attributes.
  54378. (line 270)
  54379. * parameter forward declaration: Variable Length. (line 66)
  54380. * partial_save function attribute, NDS32: NDS32 Function Attributes.
  54381. (line 31)
  54382. * patchable_function_entry function attribute: Common Function Attributes.
  54383. (line 905)
  54384. * path GCC_COLORS capability: Diagnostic Message Formatting Options.
  54385. (line 86)
  54386. * pcs function attribute, ARM: ARM Function Attributes.
  54387. (line 58)
  54388. * PDP-11 Options: PDP-11 Options. (line 6)
  54389. * persistent variable attribute, MSP430: MSP430 Variable Attributes.
  54390. (line 12)
  54391. * PIC: Code Gen Options. (line 353)
  54392. * picoChip options: picoChip Options. (line 6)
  54393. * pmf: Bound member functions.
  54394. (line 6)
  54395. * pointer arguments: Common Function Attributes.
  54396. (line 247)
  54397. * pointer arguments in variadic functions: Variadic Pointer Args.
  54398. (line 6)
  54399. * pointer to member function: Bound member functions.
  54400. (line 6)
  54401. * pointers to arrays: Pointers to Arrays. (line 6)
  54402. * portions of temporary objects, pointers to: Temporaries. (line 6)
  54403. * pow: Other Builtins. (line 6)
  54404. * pow10: Other Builtins. (line 6)
  54405. * pow10f: Other Builtins. (line 6)
  54406. * pow10l: Other Builtins. (line 6)
  54407. * PowerPC options: PowerPC Options. (line 6)
  54408. * powf: Other Builtins. (line 6)
  54409. * powl: Other Builtins. (line 6)
  54410. * pragma GCC ivdep: Loop-Specific Pragmas.
  54411. (line 7)
  54412. * pragma GCC optimize: Function Specific Option Pragmas.
  54413. (line 21)
  54414. * pragma GCC pop_options: Function Specific Option Pragmas.
  54415. (line 33)
  54416. * pragma GCC push_options: Function Specific Option Pragmas.
  54417. (line 33)
  54418. * pragma GCC reset_options: Function Specific Option Pragmas.
  54419. (line 41)
  54420. * pragma GCC target: Function Specific Option Pragmas.
  54421. (line 7)
  54422. * pragma GCC unroll N: Loop-Specific Pragmas.
  54423. (line 37)
  54424. * pragma, address: M32C Pragmas. (line 15)
  54425. * pragma, align: Solaris Pragmas. (line 11)
  54426. * pragma, call: MeP Pragmas. (line 48)
  54427. * pragma, coprocessor available: MeP Pragmas. (line 13)
  54428. * pragma, coprocessor call_saved: MeP Pragmas. (line 20)
  54429. * pragma, coprocessor subclass: MeP Pragmas. (line 28)
  54430. * pragma, ctable_entry: PRU Pragmas. (line 7)
  54431. * pragma, custom io_volatile: MeP Pragmas. (line 7)
  54432. * pragma, diagnostic: Diagnostic Pragmas. (line 14)
  54433. * pragma, diagnostic <1>: Diagnostic Pragmas. (line 57)
  54434. * pragma, diagnostic <2>: Diagnostic Pragmas. (line 77)
  54435. * pragma, diagnostic <3>: Diagnostic Pragmas. (line 99)
  54436. * pragma, disinterrupt: MeP Pragmas. (line 38)
  54437. * pragma, fini: Solaris Pragmas. (line 20)
  54438. * pragma, init: Solaris Pragmas. (line 26)
  54439. * pragma, longcall: RS/6000 and PowerPC Pragmas.
  54440. (line 14)
  54441. * pragma, long_calls: ARM Pragmas. (line 11)
  54442. * pragma, long_calls_off: ARM Pragmas. (line 17)
  54443. * pragma, mark: Darwin Pragmas. (line 11)
  54444. * pragma, memregs: M32C Pragmas. (line 7)
  54445. * pragma, no_long_calls: ARM Pragmas. (line 14)
  54446. * pragma, options align: Darwin Pragmas. (line 14)
  54447. * pragma, pop_macro: Push/Pop Macro Pragmas.
  54448. (line 15)
  54449. * pragma, push_macro: Push/Pop Macro Pragmas.
  54450. (line 11)
  54451. * pragma, redefine_extname: Symbol-Renaming Pragmas.
  54452. (line 13)
  54453. * pragma, segment: Darwin Pragmas. (line 21)
  54454. * pragma, unused: Darwin Pragmas. (line 24)
  54455. * pragma, visibility: Visibility Pragmas. (line 8)
  54456. * pragma, weak: Weak Pragmas. (line 10)
  54457. * pragmas: Pragmas. (line 6)
  54458. * pragmas in C++, effect on inlining: C++ Interface. (line 57)
  54459. * pragmas, interface and implementation: C++ Interface. (line 6)
  54460. * pragmas, warning of unknown: Warning Options. (line 1299)
  54461. * precompiled headers: Precompiled Headers.
  54462. (line 6)
  54463. * preprocessing numbers: Incompatibilities. (line 173)
  54464. * preprocessing tokens: Incompatibilities. (line 173)
  54465. * preprocessor options: Preprocessor Options.
  54466. (line 6)
  54467. * printf: Other Builtins. (line 6)
  54468. * printf_unlocked: Other Builtins. (line 6)
  54469. * prof: Instrumentation Options.
  54470. (line 18)
  54471. * profiling options: Instrumentation Options.
  54472. (line 6)
  54473. * progmem variable attribute, AVR: AVR Variable Attributes.
  54474. (line 7)
  54475. * program instrumentation options: Instrumentation Options.
  54476. (line 6)
  54477. * promotion of formal parameters: Function Prototypes.
  54478. (line 6)
  54479. * PRU Options: PRU Options. (line 6)
  54480. * pure function attribute: Common Function Attributes.
  54481. (line 923)
  54482. * push address instruction: Simple Constraints. (line 152)
  54483. * putchar: Other Builtins. (line 6)
  54484. * puts: Other Builtins. (line 6)
  54485. * q floating point suffix: Floating Types. (line 6)
  54486. * Q floating point suffix: Floating Types. (line 6)
  54487. * qsort, and global register variables: Global Register Variables.
  54488. (line 75)
  54489. * quote GCC_COLORS capability: Diagnostic Message Formatting Options.
  54490. (line 102)
  54491. * r fixed-suffix: Fixed-Point. (line 6)
  54492. * R fixed-suffix: Fixed-Point. (line 6)
  54493. * r in constraint: Simple Constraints. (line 64)
  54494. * RAMPD: AVR Options. (line 430)
  54495. * RAMPX: AVR Options. (line 430)
  54496. * RAMPY: AVR Options. (line 430)
  54497. * RAMPZ: AVR Options. (line 430)
  54498. * range1 GCC_COLORS capability: Diagnostic Message Formatting Options.
  54499. (line 92)
  54500. * range2 GCC_COLORS capability: Diagnostic Message Formatting Options.
  54501. (line 95)
  54502. * ranges in case statements: Case Ranges. (line 6)
  54503. * read-only strings: Incompatibilities. (line 9)
  54504. * realloc: Other Builtins. (line 6)
  54505. * reentrant function attribute, MSP430: MSP430 Function Attributes.
  54506. (line 44)
  54507. * register variable after longjmp: Global Register Variables.
  54508. (line 92)
  54509. * registers for local variables: Local Register Variables.
  54510. (line 6)
  54511. * registers in constraints: Simple Constraints. (line 64)
  54512. * registers, global allocation: Global Register Variables.
  54513. (line 6)
  54514. * registers, global variables in: Global Register Variables.
  54515. (line 6)
  54516. * regparm function attribute, x86: x86 Function Attributes.
  54517. (line 76)
  54518. * relocation truncated to fit (ColdFire): M680x0 Options. (line 322)
  54519. * relocation truncated to fit (MIPS): MIPS Options. (line 237)
  54520. * remainder: Other Builtins. (line 6)
  54521. * remainderf: Other Builtins. (line 6)
  54522. * remainderl: Other Builtins. (line 6)
  54523. * remquo: Other Builtins. (line 6)
  54524. * remquof: Other Builtins. (line 6)
  54525. * remquol: Other Builtins. (line 6)
  54526. * renesas function attribute, SH: SH Function Attributes.
  54527. (line 40)
  54528. * reordering, warning: C++ Dialect Options.
  54529. (line 665)
  54530. * reporting bugs: Bugs. (line 6)
  54531. * resbank function attribute, SH: SH Function Attributes.
  54532. (line 44)
  54533. * reset function attribute, NDS32: NDS32 Function Attributes.
  54534. (line 45)
  54535. * reset handler functions: NDS32 Function Attributes.
  54536. (line 45)
  54537. * rest argument (in macro): Variadic Macros. (line 6)
  54538. * restricted pointers: Restricted Pointers.
  54539. (line 6)
  54540. * restricted references: Restricted Pointers.
  54541. (line 6)
  54542. * restricted this pointer: Restricted Pointers.
  54543. (line 6)
  54544. * returns_nonnull function attribute: Common Function Attributes.
  54545. (line 970)
  54546. * returns_twice function attribute: Common Function Attributes.
  54547. (line 980)
  54548. * rindex: Other Builtins. (line 6)
  54549. * rint: Other Builtins. (line 6)
  54550. * rintf: Other Builtins. (line 6)
  54551. * rintl: Other Builtins. (line 6)
  54552. * RISC-V Options: RISC-V Options. (line 6)
  54553. * RL78 Options: RL78 Options. (line 6)
  54554. * round: Other Builtins. (line 6)
  54555. * roundf: Other Builtins. (line 6)
  54556. * roundl: Other Builtins. (line 6)
  54557. * RS/6000 and PowerPC Options: RS/6000 and PowerPC Options.
  54558. (line 6)
  54559. * RTTI: Vague Linkage. (line 42)
  54560. * run-time error checking options: Instrumentation Options.
  54561. (line 6)
  54562. * run-time options: Code Gen Options. (line 6)
  54563. * RX Options: RX Options. (line 6)
  54564. * s in constraint: Simple Constraints. (line 100)
  54565. * S/390 and zSeries Options: S/390 and zSeries Options.
  54566. (line 6)
  54567. * saddr variable attribute, RL78: RL78 Variable Attributes.
  54568. (line 6)
  54569. * save all registers on the Blackfin: Blackfin Function Attributes.
  54570. (line 56)
  54571. * save all registers on the H8/300, H8/300H, and H8S: H8/300 Function Attributes.
  54572. (line 23)
  54573. * saveall function attribute, Blackfin: Blackfin Function Attributes.
  54574. (line 56)
  54575. * saveall function attribute, H8/300: H8/300 Function Attributes.
  54576. (line 23)
  54577. * save_all function attribute, NDS32: NDS32 Function Attributes.
  54578. (line 28)
  54579. * save_volatiles function attribute, MicroBlaze: MicroBlaze Function Attributes.
  54580. (line 9)
  54581. * scalar_storage_order type attribute: Common Type Attributes.
  54582. (line 317)
  54583. * scalb: Other Builtins. (line 6)
  54584. * scalbf: Other Builtins. (line 6)
  54585. * scalbl: Other Builtins. (line 6)
  54586. * scalbln: Other Builtins. (line 6)
  54587. * scalblnf: Other Builtins. (line 6)
  54588. * scalblnf <1>: Other Builtins. (line 6)
  54589. * scalbn: Other Builtins. (line 6)
  54590. * scalbnf: Other Builtins. (line 6)
  54591. * scanf, and constant strings: Incompatibilities. (line 17)
  54592. * scanfnl: Other Builtins. (line 6)
  54593. * scope of a variable length array: Variable Length. (line 22)
  54594. * scope of declaration: Disappointments. (line 21)
  54595. * scope of external declarations: Incompatibilities. (line 80)
  54596. * Score Options: Score Options. (line 6)
  54597. * sda variable attribute, V850: V850 Variable Attributes.
  54598. (line 9)
  54599. * search path: Directory Options. (line 6)
  54600. * section function attribute: Common Function Attributes.
  54601. (line 989)
  54602. * section variable attribute: Common Variable Attributes.
  54603. (line 292)
  54604. * secure_call function attribute, ARC: ARC Function Attributes.
  54605. (line 54)
  54606. * selectany variable attribute: Microsoft Windows Variable Attributes.
  54607. (line 16)
  54608. * sentinel function attribute: Common Function Attributes.
  54609. (line 1006)
  54610. * setjmp: Global Register Variables.
  54611. (line 92)
  54612. * setjmp incompatibilities: Incompatibilities. (line 39)
  54613. * shared attribute, Nvidia PTX: Nvidia PTX Variable Attributes.
  54614. (line 9)
  54615. * shared strings: Incompatibilities. (line 9)
  54616. * shared variable attribute: Microsoft Windows Variable Attributes.
  54617. (line 37)
  54618. * shortcall function attribute, Blackfin: Blackfin Function Attributes.
  54619. (line 38)
  54620. * shortcall function attribute, PowerPC: PowerPC Function Attributes.
  54621. (line 10)
  54622. * short_call function attribute, ARC: ARC Function Attributes.
  54623. (line 27)
  54624. * short_call function attribute, ARM: ARM Function Attributes.
  54625. (line 38)
  54626. * short_call function attribute, Epiphany: Epiphany Function Attributes.
  54627. (line 57)
  54628. * short_call function attribute, MIPS: MIPS Function Attributes.
  54629. (line 63)
  54630. * side effect in ?:: Conditionals. (line 20)
  54631. * side effects, macro argument: Statement Exprs. (line 35)
  54632. * side effects, order of evaluation: Non-bugs. (line 196)
  54633. * sign-return-address function attribute, AArch64: AArch64 Function Attributes.
  54634. (line 69)
  54635. * signal function attribute, AVR: AVR Function Attributes.
  54636. (line 80)
  54637. * signbit: Other Builtins. (line 6)
  54638. * signbitd128: Other Builtins. (line 6)
  54639. * signbitd32: Other Builtins. (line 6)
  54640. * signbitd64: Other Builtins. (line 6)
  54641. * signbitf: Other Builtins. (line 6)
  54642. * signbitl: Other Builtins. (line 6)
  54643. * signed and unsigned values, comparison warning: Warning Options.
  54644. (line 2412)
  54645. * significand: Other Builtins. (line 6)
  54646. * significandf: Other Builtins. (line 6)
  54647. * significandl: Other Builtins. (line 6)
  54648. * SIMD: C Dialect Options. (line 349)
  54649. * simd function attribute: Common Function Attributes.
  54650. (line 1033)
  54651. * simple constraints: Simple Constraints. (line 6)
  54652. * sin: Other Builtins. (line 6)
  54653. * sincos: Other Builtins. (line 6)
  54654. * sincosf: Other Builtins. (line 6)
  54655. * sincosl: Other Builtins. (line 6)
  54656. * sinf: Other Builtins. (line 6)
  54657. * sinh: Other Builtins. (line 6)
  54658. * sinhf: Other Builtins. (line 6)
  54659. * sinhl: Other Builtins. (line 6)
  54660. * sinl: Other Builtins. (line 6)
  54661. * sizeof: Typeof. (line 6)
  54662. * smaller data references: M32R/D Options. (line 57)
  54663. * smaller data references <1>: Nios II Options. (line 9)
  54664. * smaller data references (PowerPC): RS/6000 and PowerPC Options.
  54665. (line 712)
  54666. * snprintf: Other Builtins. (line 6)
  54667. * Solaris 2 options: Solaris 2 Options. (line 6)
  54668. * SOURCE_DATE_EPOCH: Environment Variables.
  54669. (line 177)
  54670. * SPARC options: SPARC Options. (line 6)
  54671. * Spec Files: Spec Files. (line 6)
  54672. * specified registers: Explicit Register Variables.
  54673. (line 6)
  54674. * specifying compiler version and target machine: Invoking GCC.
  54675. (line 24)
  54676. * specifying hardware config: Submodel Options. (line 6)
  54677. * specifying machine version: Invoking GCC. (line 24)
  54678. * specifying registers for local variables: Local Register Variables.
  54679. (line 6)
  54680. * speed of compilation: Precompiled Headers.
  54681. (line 6)
  54682. * sprintf: Other Builtins. (line 6)
  54683. * sp_switch function attribute, SH: SH Function Attributes.
  54684. (line 58)
  54685. * sqrt: Other Builtins. (line 6)
  54686. * sqrtf: Other Builtins. (line 6)
  54687. * sqrtl: Other Builtins. (line 6)
  54688. * sscanf: Other Builtins. (line 6)
  54689. * sscanf, and constant strings: Incompatibilities. (line 17)
  54690. * sseregparm function attribute, x86: x86 Function Attributes.
  54691. (line 93)
  54692. * stack_protect function attribute: Common Function Attributes.
  54693. (line 1052)
  54694. * Statement Attributes: Statement Attributes.
  54695. (line 6)
  54696. * statements inside expressions: Statement Exprs. (line 6)
  54697. * static data in C++, declaring and defining: Static Definitions.
  54698. (line 6)
  54699. * stdcall function attribute, x86-32: x86 Function Attributes.
  54700. (line 108)
  54701. * stpcpy: Other Builtins. (line 6)
  54702. * stpncpy: Other Builtins. (line 6)
  54703. * strcasecmp: Other Builtins. (line 6)
  54704. * strcat: Other Builtins. (line 6)
  54705. * strchr: Other Builtins. (line 6)
  54706. * strcmp: Other Builtins. (line 6)
  54707. * strcpy: Other Builtins. (line 6)
  54708. * strcspn: Other Builtins. (line 6)
  54709. * strdup: Other Builtins. (line 6)
  54710. * strfmon: Other Builtins. (line 6)
  54711. * strftime: Other Builtins. (line 6)
  54712. * strict-align function attribute, AArch64: AArch64 Function Attributes.
  54713. (line 33)
  54714. * string constants: Incompatibilities. (line 9)
  54715. * strlen: Other Builtins. (line 6)
  54716. * strncasecmp: Other Builtins. (line 6)
  54717. * strncat: Other Builtins. (line 6)
  54718. * strncmp: Other Builtins. (line 6)
  54719. * strncpy: Other Builtins. (line 6)
  54720. * strndup: Other Builtins. (line 6)
  54721. * strnlen: Other Builtins. (line 6)
  54722. * strpbrk: Other Builtins. (line 6)
  54723. * strrchr: Other Builtins. (line 6)
  54724. * strspn: Other Builtins. (line 6)
  54725. * strstr: Other Builtins. (line 6)
  54726. * struct: Unnamed Fields. (line 6)
  54727. * struct __htm_tdb: S/390 System z Built-in Functions.
  54728. (line 49)
  54729. * structures: Incompatibilities. (line 146)
  54730. * structures, constructor expression: Compound Literals. (line 6)
  54731. * submodel options: Submodel Options. (line 6)
  54732. * subscripting: Subscripting. (line 6)
  54733. * subscripting and function values: Subscripting. (line 6)
  54734. * suffixes for C++ source: Invoking G++. (line 6)
  54735. * SUNPRO_DEPENDENCIES: Environment Variables.
  54736. (line 171)
  54737. * suppressing warnings: Warning Options. (line 6)
  54738. * surprises in C++: C++ Misunderstandings.
  54739. (line 6)
  54740. * syntax checking: Warning Options. (line 13)
  54741. * syscall_linkage function attribute, IA-64: IA-64 Function Attributes.
  54742. (line 9)
  54743. * system headers, warnings from: Warning Options. (line 1855)
  54744. * sysv_abi function attribute, x86: x86 Function Attributes.
  54745. (line 34)
  54746. * tan: Other Builtins. (line 6)
  54747. * tanf: Other Builtins. (line 6)
  54748. * tanh: Other Builtins. (line 6)
  54749. * tanhf: Other Builtins. (line 6)
  54750. * tanhl: Other Builtins. (line 6)
  54751. * tanl: Other Builtins. (line 6)
  54752. * target function attribute: Common Function Attributes.
  54753. (line 1057)
  54754. * target function attribute <1>: ARM Function Attributes.
  54755. (line 77)
  54756. * target function attribute <2>: Nios II Function Attributes.
  54757. (line 9)
  54758. * target function attribute <3>: PowerPC Function Attributes.
  54759. (line 21)
  54760. * target function attribute <4>: S/390 Function Attributes.
  54761. (line 22)
  54762. * target function attribute <5>: x86 Function Attributes.
  54763. (line 180)
  54764. * target machine, specifying: Invoking GCC. (line 24)
  54765. * target("3dnow") function attribute, x86: x86 Function Attributes.
  54766. (line 186)
  54767. * target("3dnowa") function attribute, x86: x86 Function Attributes.
  54768. (line 190)
  54769. * target("abm") function attribute, x86: x86 Function Attributes.
  54770. (line 195)
  54771. * target("adx") function attribute, x86: x86 Function Attributes.
  54772. (line 200)
  54773. * target("aes") function attribute, x86: x86 Function Attributes.
  54774. (line 204)
  54775. * target("align-stringops") function attribute, x86: x86 Function Attributes.
  54776. (line 529)
  54777. * target("altivec") function attribute, PowerPC: PowerPC Function Attributes.
  54778. (line 28)
  54779. * target("arch=ARCH") function attribute, x86: x86 Function Attributes.
  54780. (line 538)
  54781. * target("arm") function attribute, ARM: ARM Function Attributes.
  54782. (line 87)
  54783. * target("avoid-indexed-addresses") function attribute, PowerPC: PowerPC Function Attributes.
  54784. (line 142)
  54785. * target("avx") function attribute, x86: x86 Function Attributes.
  54786. (line 208)
  54787. * target("avx2") function attribute, x86: x86 Function Attributes.
  54788. (line 212)
  54789. * target("avx5124fmaps") function attribute, x86: x86 Function Attributes.
  54790. (line 216)
  54791. * target("avx5124vnniw") function attribute, x86: x86 Function Attributes.
  54792. (line 221)
  54793. * target("avx512bitalg") function attribute, x86: x86 Function Attributes.
  54794. (line 226)
  54795. * target("avx512bw") function attribute, x86: x86 Function Attributes.
  54796. (line 231)
  54797. * target("avx512cd") function attribute, x86: x86 Function Attributes.
  54798. (line 235)
  54799. * target("avx512dq") function attribute, x86: x86 Function Attributes.
  54800. (line 239)
  54801. * target("avx512er") function attribute, x86: x86 Function Attributes.
  54802. (line 243)
  54803. * target("avx512f") function attribute, x86: x86 Function Attributes.
  54804. (line 247)
  54805. * target("avx512ifma") function attribute, x86: x86 Function Attributes.
  54806. (line 251)
  54807. * target("avx512pf") function attribute, x86: x86 Function Attributes.
  54808. (line 255)
  54809. * target("avx512vbmi") function attribute, x86: x86 Function Attributes.
  54810. (line 259)
  54811. * target("avx512vbmi2") function attribute, x86: x86 Function Attributes.
  54812. (line 263)
  54813. * target("avx512vl") function attribute, x86: x86 Function Attributes.
  54814. (line 267)
  54815. * target("avx512vnni") function attribute, x86: x86 Function Attributes.
  54816. (line 271)
  54817. * target("avx512vpopcntdq") function attribute, x86: x86 Function Attributes.
  54818. (line 275)
  54819. * target("bmi") function attribute, x86: x86 Function Attributes.
  54820. (line 280)
  54821. * target("bmi2") function attribute, x86: x86 Function Attributes.
  54822. (line 284)
  54823. * target("cld") function attribute, x86: x86 Function Attributes.
  54824. (line 505)
  54825. * target("cldemote") function attribute, x86: x86 Function Attributes.
  54826. (line 288)
  54827. * target("clflushopt") function attribute, x86: x86 Function Attributes.
  54828. (line 292)
  54829. * target("clwb") function attribute, x86: x86 Function Attributes.
  54830. (line 296)
  54831. * target("clzero") function attribute, x86: x86 Function Attributes.
  54832. (line 300)
  54833. * target("cmpb") function attribute, PowerPC: PowerPC Function Attributes.
  54834. (line 34)
  54835. * target("cpu=CPU") function attribute, PowerPC: PowerPC Function Attributes.
  54836. (line 157)
  54837. * target("crc32") function attribute, x86: x86 Function Attributes.
  54838. (line 304)
  54839. * target("custom-fpu-cfg=NAME") function attribute, Nios II: Nios II Function Attributes.
  54840. (line 25)
  54841. * target("custom-INSN=N") function attribute, Nios II: Nios II Function Attributes.
  54842. (line 16)
  54843. * target("cx16") function attribute, x86: x86 Function Attributes.
  54844. (line 308)
  54845. * target("default") function attribute, x86: x86 Function Attributes.
  54846. (line 311)
  54847. * target("dlmzb") function attribute, PowerPC: PowerPC Function Attributes.
  54848. (line 40)
  54849. * target("f16c") function attribute, x86: x86 Function Attributes.
  54850. (line 316)
  54851. * target("fancy-math-387") function attribute, x86: x86 Function Attributes.
  54852. (line 509)
  54853. * target("fma") function attribute, x86: x86 Function Attributes.
  54854. (line 320)
  54855. * target("fma4") function attribute, x86: x86 Function Attributes.
  54856. (line 324)
  54857. * target("fpmath=FPMATH") function attribute, x86: x86 Function Attributes.
  54858. (line 546)
  54859. * target("fprnd") function attribute, PowerPC: PowerPC Function Attributes.
  54860. (line 47)
  54861. * target("fpu=") function attribute, ARM: ARM Function Attributes.
  54862. (line 93)
  54863. * target("friz") function attribute, PowerPC: PowerPC Function Attributes.
  54864. (line 133)
  54865. * target("fsgsbase") function attribute, x86: x86 Function Attributes.
  54866. (line 328)
  54867. * target("fxsr") function attribute, x86: x86 Function Attributes.
  54868. (line 332)
  54869. * target("gfni") function attribute, x86: x86 Function Attributes.
  54870. (line 336)
  54871. * target("hard-dfp") function attribute, PowerPC: PowerPC Function Attributes.
  54872. (line 53)
  54873. * target("hle") function attribute, x86: x86 Function Attributes.
  54874. (line 340)
  54875. * target("ieee-fp") function attribute, x86: x86 Function Attributes.
  54876. (line 514)
  54877. * target("inline-all-stringops") function attribute, x86: x86 Function Attributes.
  54878. (line 519)
  54879. * target("inline-stringops-dynamically") function attribute, x86: x86 Function Attributes.
  54880. (line 523)
  54881. * target("isel") function attribute, PowerPC: PowerPC Function Attributes.
  54882. (line 59)
  54883. * target("longcall") function attribute, PowerPC: PowerPC Function Attributes.
  54884. (line 152)
  54885. * target("lwp") function attribute, x86: x86 Function Attributes.
  54886. (line 344)
  54887. * target("lzcnt") function attribute, x86: x86 Function Attributes.
  54888. (line 348)
  54889. * target("mfcrf") function attribute, PowerPC: PowerPC Function Attributes.
  54890. (line 63)
  54891. * target("mmx") function attribute, x86: x86 Function Attributes.
  54892. (line 352)
  54893. * target("movbe") function attribute, x86: x86 Function Attributes.
  54894. (line 356)
  54895. * target("movdir64b") function attribute, x86: x86 Function Attributes.
  54896. (line 360)
  54897. * target("movdiri") function attribute, x86: x86 Function Attributes.
  54898. (line 364)
  54899. * target("mulhw") function attribute, PowerPC: PowerPC Function Attributes.
  54900. (line 70)
  54901. * target("multiple") function attribute, PowerPC: PowerPC Function Attributes.
  54902. (line 77)
  54903. * target("mwaitx") function attribute, x86: x86 Function Attributes.
  54904. (line 368)
  54905. * target("no-custom-INSN") function attribute, Nios II: Nios II Function Attributes.
  54906. (line 16)
  54907. * target("paired") function attribute, PowerPC: PowerPC Function Attributes.
  54908. (line 147)
  54909. * target("pclmul") function attribute, x86: x86 Function Attributes.
  54910. (line 372)
  54911. * target("pconfig") function attribute, x86: x86 Function Attributes.
  54912. (line 376)
  54913. * target("pku") function attribute, x86: x86 Function Attributes.
  54914. (line 380)
  54915. * target("popcnt") function attribute, x86: x86 Function Attributes.
  54916. (line 384)
  54917. * target("popcntb") function attribute, PowerPC: PowerPC Function Attributes.
  54918. (line 88)
  54919. * target("popcntd") function attribute, PowerPC: PowerPC Function Attributes.
  54920. (line 95)
  54921. * target("powerpc-gfxopt") function attribute, PowerPC: PowerPC Function Attributes.
  54922. (line 101)
  54923. * target("powerpc-gpopt") function attribute, PowerPC: PowerPC Function Attributes.
  54924. (line 107)
  54925. * target("prefetchwt1") function attribute, x86: x86 Function Attributes.
  54926. (line 388)
  54927. * target("prfchw") function attribute, x86: x86 Function Attributes.
  54928. (line 392)
  54929. * target("ptwrite") function attribute, x86: x86 Function Attributes.
  54930. (line 396)
  54931. * target("rdpid") function attribute, x86: x86 Function Attributes.
  54932. (line 400)
  54933. * target("rdrnd") function attribute, x86: x86 Function Attributes.
  54934. (line 404)
  54935. * target("rdseed") function attribute, x86: x86 Function Attributes.
  54936. (line 408)
  54937. * target("recip") function attribute, x86: x86 Function Attributes.
  54938. (line 533)
  54939. * target("recip-precision") function attribute, PowerPC: PowerPC Function Attributes.
  54940. (line 113)
  54941. * target("rtm") function attribute, x86: x86 Function Attributes.
  54942. (line 412)
  54943. * target("sahf") function attribute, x86: x86 Function Attributes.
  54944. (line 416)
  54945. * target("sgx") function attribute, x86: x86 Function Attributes.
  54946. (line 420)
  54947. * target("sha") function attribute, x86: x86 Function Attributes.
  54948. (line 424)
  54949. * target("shstk") function attribute, x86: x86 Function Attributes.
  54950. (line 428)
  54951. * target("sse") function attribute, x86: x86 Function Attributes.
  54952. (line 432)
  54953. * target("sse2") function attribute, x86: x86 Function Attributes.
  54954. (line 436)
  54955. * target("sse3") function attribute, x86: x86 Function Attributes.
  54956. (line 440)
  54957. * target("sse4") function attribute, x86: x86 Function Attributes.
  54958. (line 444)
  54959. * target("sse4.1") function attribute, x86: x86 Function Attributes.
  54960. (line 449)
  54961. * target("sse4.2") function attribute, x86: x86 Function Attributes.
  54962. (line 453)
  54963. * target("sse4a") function attribute, x86: x86 Function Attributes.
  54964. (line 457)
  54965. * target("ssse3") function attribute, x86: x86 Function Attributes.
  54966. (line 461)
  54967. * target("string") function attribute, PowerPC: PowerPC Function Attributes.
  54968. (line 119)
  54969. * target("tbm") function attribute, x86: x86 Function Attributes.
  54970. (line 465)
  54971. * target("thumb") function attribute, ARM: ARM Function Attributes.
  54972. (line 83)
  54973. * target("tune=TUNE") function attribute, PowerPC: PowerPC Function Attributes.
  54974. (line 164)
  54975. * target("tune=TUNE") function attribute, x86: x86 Function Attributes.
  54976. (line 542)
  54977. * target("update") function attribute, PowerPC: PowerPC Function Attributes.
  54978. (line 82)
  54979. * target("vaes") function attribute, x86: x86 Function Attributes.
  54980. (line 469)
  54981. * target("vpclmulqdq") function attribute, x86: x86 Function Attributes.
  54982. (line 473)
  54983. * target("vsx") function attribute, PowerPC: PowerPC Function Attributes.
  54984. (line 125)
  54985. * target("waitpkg") function attribute, x86: x86 Function Attributes.
  54986. (line 477)
  54987. * target("wbnoinvd") function attribute, x86: x86 Function Attributes.
  54988. (line 481)
  54989. * target("xop") function attribute, x86: x86 Function Attributes.
  54990. (line 485)
  54991. * target("xsave") function attribute, x86: x86 Function Attributes.
  54992. (line 489)
  54993. * target("xsavec") function attribute, x86: x86 Function Attributes.
  54994. (line 493)
  54995. * target("xsaveopt") function attribute, x86: x86 Function Attributes.
  54996. (line 497)
  54997. * target("xsaves") function attribute, x86: x86 Function Attributes.
  54998. (line 501)
  54999. * target-dependent options: Submodel Options. (line 6)
  55000. * target_clones function attribute: Common Function Attributes.
  55001. (line 1126)
  55002. * TC1: Standards. (line 13)
  55003. * TC2: Standards. (line 13)
  55004. * TC3: Standards. (line 13)
  55005. * tda variable attribute, V850: V850 Variable Attributes.
  55006. (line 13)
  55007. * Technical Corrigenda: Standards. (line 13)
  55008. * Technical Corrigendum 1: Standards. (line 13)
  55009. * Technical Corrigendum 2: Standards. (line 13)
  55010. * Technical Corrigendum 3: Standards. (line 13)
  55011. * template instantiation: Template Instantiation.
  55012. (line 6)
  55013. * temporaries, lifetime of: Temporaries. (line 6)
  55014. * tentative definitions: Code Gen Options. (line 231)
  55015. * TERM_URLS environment variable: Diagnostic Message Formatting Options.
  55016. (line 129)
  55017. * tgamma: Other Builtins. (line 6)
  55018. * tgammaf: Other Builtins. (line 6)
  55019. * tgammal: Other Builtins. (line 6)
  55020. * thiscall function attribute, x86-32: x86 Function Attributes.
  55021. (line 23)
  55022. * Thread-Local Storage: Thread-Local. (line 6)
  55023. * thunks: Nested Functions. (line 6)
  55024. * TILE-Gx options: TILE-Gx Options. (line 6)
  55025. * TILEPro options: TILEPro Options. (line 6)
  55026. * tiny data section on the H8/300H and H8S: H8/300 Variable Attributes.
  55027. (line 19)
  55028. * tiny type attribute, MeP: MeP Type Attributes.
  55029. (line 6)
  55030. * tiny variable attribute, MeP: MeP Variable Attributes.
  55031. (line 20)
  55032. * tiny_data variable attribute, H8/300: H8/300 Variable Attributes.
  55033. (line 19)
  55034. * TLS: Thread-Local. (line 6)
  55035. * tls-dialect= function attribute, AArch64: AArch64 Function Attributes.
  55036. (line 48)
  55037. * tls_model variable attribute: Common Variable Attributes.
  55038. (line 337)
  55039. * TMPDIR: Environment Variables.
  55040. (line 45)
  55041. * toascii: Other Builtins. (line 6)
  55042. * tolower: Other Builtins. (line 6)
  55043. * toupper: Other Builtins. (line 6)
  55044. * towlower: Other Builtins. (line 6)
  55045. * towupper: Other Builtins. (line 6)
  55046. * traditional C language: Preprocessor Options.
  55047. (line 370)
  55048. * transparent_union type attribute: Common Type Attributes.
  55049. (line 357)
  55050. * trapa_handler function attribute, SH: SH Function Attributes.
  55051. (line 73)
  55052. * trap_exit function attribute, SH: SH Function Attributes.
  55053. (line 68)
  55054. * trunc: Other Builtins. (line 6)
  55055. * truncf: Other Builtins. (line 6)
  55056. * truncl: Other Builtins. (line 6)
  55057. * tune= function attribute, AArch64: AArch64 Function Attributes.
  55058. (line 58)
  55059. * two-stage name lookup: Name lookup. (line 6)
  55060. * type alignment: Alignment. (line 6)
  55061. * type attributes: Type Attributes. (line 6)
  55062. * type-diff GCC_COLORS capability: Diagnostic Message Formatting Options.
  55063. (line 125)
  55064. * typedef names as function parameters: Incompatibilities. (line 97)
  55065. * typeof: Typeof. (line 6)
  55066. * type_info: Vague Linkage. (line 42)
  55067. * uhk fixed-suffix: Fixed-Point. (line 6)
  55068. * UHK fixed-suffix: Fixed-Point. (line 6)
  55069. * uhr fixed-suffix: Fixed-Point. (line 6)
  55070. * UHR fixed-suffix: Fixed-Point. (line 6)
  55071. * uk fixed-suffix: Fixed-Point. (line 6)
  55072. * UK fixed-suffix: Fixed-Point. (line 6)
  55073. * ulk fixed-suffix: Fixed-Point. (line 6)
  55074. * ULK fixed-suffix: Fixed-Point. (line 6)
  55075. * ULL integer suffix: Long Long. (line 6)
  55076. * ullk fixed-suffix: Fixed-Point. (line 6)
  55077. * ULLK fixed-suffix: Fixed-Point. (line 6)
  55078. * ullr fixed-suffix: Fixed-Point. (line 6)
  55079. * ULLR fixed-suffix: Fixed-Point. (line 6)
  55080. * ulr fixed-suffix: Fixed-Point. (line 6)
  55081. * ULR fixed-suffix: Fixed-Point. (line 6)
  55082. * uncached type attribute, ARC: ARC Type Attributes.
  55083. (line 6)
  55084. * undefined behavior: Bug Criteria. (line 17)
  55085. * undefined function value: Bug Criteria. (line 17)
  55086. * underscores in variables in macros: Typeof. (line 46)
  55087. * union: Unnamed Fields. (line 6)
  55088. * union, casting to a: Cast to Union. (line 6)
  55089. * unions: Incompatibilities. (line 146)
  55090. * unknown pragmas, warning: Warning Options. (line 1299)
  55091. * unresolved references and -nodefaultlibs: Link Options. (line 154)
  55092. * unresolved references and -nostdlib: Link Options. (line 154)
  55093. * unused function attribute: Common Function Attributes.
  55094. (line 1153)
  55095. * unused label attribute: Label Attributes. (line 31)
  55096. * unused type attribute: Common Type Attributes.
  55097. (line 410)
  55098. * unused variable attribute: Common Variable Attributes.
  55099. (line 346)
  55100. * upper function attribute, MSP430: MSP430 Function Attributes.
  55101. (line 57)
  55102. * upper variable attribute, MSP430: MSP430 Variable Attributes.
  55103. (line 23)
  55104. * ur fixed-suffix: Fixed-Point. (line 6)
  55105. * UR fixed-suffix: Fixed-Point. (line 6)
  55106. * urls: Diagnostic Message Formatting Options.
  55107. (line 129)
  55108. * used function attribute: Common Function Attributes.
  55109. (line 1158)
  55110. * used variable attribute: Common Variable Attributes.
  55111. (line 351)
  55112. * User stack pointer in interrupts on the Blackfin: Blackfin Function Attributes.
  55113. (line 21)
  55114. * use_debug_exception_return function attribute, MIPS: MIPS Function Attributes.
  55115. (line 39)
  55116. * use_shadow_register_set function attribute, MIPS: MIPS Function Attributes.
  55117. (line 28)
  55118. * V in constraint: Simple Constraints. (line 43)
  55119. * V850 Options: V850 Options. (line 6)
  55120. * vague linkage: Vague Linkage. (line 6)
  55121. * value after longjmp: Global Register Variables.
  55122. (line 92)
  55123. * variable addressability on the M32R/D: M32R/D Variable Attributes.
  55124. (line 9)
  55125. * variable alignment: Alignment. (line 6)
  55126. * variable attributes: Variable Attributes.
  55127. (line 6)
  55128. * variable number of arguments: Variadic Macros. (line 6)
  55129. * variable-length array in a structure: Variable Length. (line 26)
  55130. * variable-length array scope: Variable Length. (line 22)
  55131. * variable-length arrays: Variable Length. (line 6)
  55132. * variables in specified registers: Explicit Register Variables.
  55133. (line 6)
  55134. * variables, local, in macros: Typeof. (line 46)
  55135. * variadic functions, pointer arguments: Variadic Pointer Args.
  55136. (line 6)
  55137. * variadic macros: Variadic Macros. (line 6)
  55138. * VAX options: VAX Options. (line 6)
  55139. * vector function attribute, RX: RX Function Attributes.
  55140. (line 49)
  55141. * vector types, using with x86 intrinsics: Vector Extensions.
  55142. (line 188)
  55143. * vector_size type attribute: Common Type Attributes.
  55144. (line 419)
  55145. * vector_size variable attribute: Common Variable Attributes.
  55146. (line 360)
  55147. * version_id function attribute, IA-64: IA-64 Function Attributes.
  55148. (line 16)
  55149. * vfprintf: Other Builtins. (line 6)
  55150. * vfscanf: Other Builtins. (line 6)
  55151. * visibility function attribute: Common Function Attributes.
  55152. (line 1168)
  55153. * visibility type attribute: Common Type Attributes.
  55154. (line 446)
  55155. * visibility variable attribute: Common Variable Attributes.
  55156. (line 388)
  55157. * Visium options: Visium Options. (line 6)
  55158. * VLAs: Variable Length. (line 6)
  55159. * vliw function attribute, MeP: MeP Function Attributes.
  55160. (line 30)
  55161. * void pointers, arithmetic: Pointer Arith. (line 6)
  55162. * void, size of pointer to: Pointer Arith. (line 6)
  55163. * volatile access: Volatiles. (line 6)
  55164. * volatile access <1>: C++ Volatiles. (line 6)
  55165. * volatile applied to function: Function Attributes.
  55166. (line 6)
  55167. * volatile asm: Extended Asm. (line 116)
  55168. * volatile read: Volatiles. (line 6)
  55169. * volatile read <1>: C++ Volatiles. (line 6)
  55170. * volatile write: Volatiles. (line 6)
  55171. * volatile write <1>: C++ Volatiles. (line 6)
  55172. * vprintf: Other Builtins. (line 6)
  55173. * vscanf: Other Builtins. (line 6)
  55174. * vsnprintf: Other Builtins. (line 6)
  55175. * vsprintf: Other Builtins. (line 6)
  55176. * vsscanf: Other Builtins. (line 6)
  55177. * vtable: Vague Linkage. (line 27)
  55178. * VxWorks Options: VxWorks Options. (line 6)
  55179. * w floating point suffix: Floating Types. (line 6)
  55180. * W floating point suffix: Floating Types. (line 6)
  55181. * wakeup function attribute, MSP430: MSP430 Function Attributes.
  55182. (line 49)
  55183. * warm function attribute, NDS32: NDS32 Function Attributes.
  55184. (line 52)
  55185. * warning for comparison of signed and unsigned values: Warning Options.
  55186. (line 2412)
  55187. * warning for overloaded virtual function: C++ Dialect Options.
  55188. (line 817)
  55189. * warning for reordering of member initializers: C++ Dialect Options.
  55190. (line 665)
  55191. * warning for unknown pragmas: Warning Options. (line 1299)
  55192. * warning function attribute: Common Function Attributes.
  55193. (line 343)
  55194. * warning GCC_COLORS capability: Diagnostic Message Formatting Options.
  55195. (line 80)
  55196. * warning messages: Warning Options. (line 6)
  55197. * warnings from system headers: Warning Options. (line 1855)
  55198. * warnings vs errors: Warnings and Errors.
  55199. (line 6)
  55200. * warn_if_not_aligned type attribute: Common Type Attributes.
  55201. (line 91)
  55202. * warn_if_not_aligned variable attribute: Common Variable Attributes.
  55203. (line 106)
  55204. * warn_unused type attribute: C++ Attributes. (line 71)
  55205. * warn_unused_result function attribute: Common Function Attributes.
  55206. (line 1268)
  55207. * weak function attribute: Common Function Attributes.
  55208. (line 1285)
  55209. * weak variable attribute: Common Variable Attributes.
  55210. (line 393)
  55211. * weakref function attribute: Common Function Attributes.
  55212. (line 1297)
  55213. * whitespace: Incompatibilities. (line 112)
  55214. * Windows Options for x86: x86 Windows Options.
  55215. (line 6)
  55216. * X in constraint: Simple Constraints. (line 122)
  55217. * X3.159-1989: Standards. (line 13)
  55218. * x86 named address spaces: Named Address Spaces.
  55219. (line 170)
  55220. * x86 Options: x86 Options. (line 6)
  55221. * x86 Windows Options: x86 Windows Options.
  55222. (line 6)
  55223. * Xstormy16 Options: Xstormy16 Options. (line 6)
  55224. * Xtensa Options: Xtensa Options. (line 6)
  55225. * y0: Other Builtins. (line 6)
  55226. * y0f: Other Builtins. (line 6)
  55227. * y0l: Other Builtins. (line 6)
  55228. * y1: Other Builtins. (line 6)
  55229. * y1f: Other Builtins. (line 6)
  55230. * y1l: Other Builtins. (line 6)
  55231. * yn: Other Builtins. (line 6)
  55232. * ynf: Other Builtins. (line 6)
  55233. * ynl: Other Builtins. (line 6)
  55234. * zda variable attribute, V850: V850 Variable Attributes.
  55235. (line 17)
  55236. * zero-length arrays: Zero Length. (line 6)
  55237. * zero-size structures: Empty Structures. (line 6)
  55238. * zSeries options: zSeries Options. (line 6)
  55239. 
  55240. Tag Table:
  55241. Node: Top2135
  55242. Node: G++ and GCC4093
  55243. Node: Standards6153
  55244. Node: Invoking GCC19770
  55245. Node: Option Summary24946
  55246. Node: Overall Options80011
  55247. Node: Invoking G++95339
  55248. Node: C Dialect Options96862
  55249. Node: C++ Dialect Options116094
  55250. Node: Objective-C and Objective-C++ Dialect Options165236
  55251. Node: Diagnostic Message Formatting Options176632
  55252. Node: Warning Options202353
  55253. Ref: Wtrigraphs298413
  55254. Node: Static Analyzer Options334098
  55255. Node: Debugging Options346807
  55256. Node: Optimize Options366056
  55257. Ref: Type-punning435623
  55258. Node: Instrumentation Options540846
  55259. Node: Preprocessor Options580746
  55260. Ref: dashMF585593
  55261. Ref: fdollars-in-identifiers590172
  55262. Node: Assembler Options602552
  55263. Node: Link Options603243
  55264. Ref: Link Options-Footnote-1620119
  55265. Node: Directory Options620455
  55266. Node: Code Gen Options628858
  55267. Node: Developer Options657223
  55268. Node: Submodel Options699137
  55269. Node: AArch64 Options700947
  55270. Ref: aarch64-feature-modifiers715231
  55271. Node: Adapteva Epiphany Options720343
  55272. Node: AMD GCN Options726295
  55273. Node: ARC Options727189
  55274. Node: ARM Options748415
  55275. Node: AVR Options789180
  55276. Node: Blackfin Options815702
  55277. Node: C6X Options823594
  55278. Node: CRIS Options825137
  55279. Node: CR16 Options828876
  55280. Node: C-SKY Options829788
  55281. Node: Darwin Options834648
  55282. Node: DEC Alpha Options842089
  55283. Node: eBPF Options853705
  55284. Node: FR30 Options854747
  55285. Node: FT32 Options855307
  55286. Node: FRV Options856253
  55287. Node: GNU/Linux Options863017
  55288. Node: H8/300 Options864398
  55289. Node: HPPA Options865850
  55290. Node: IA-64 Options875382
  55291. Node: LM32 Options883510
  55292. Node: M32C Options884033
  55293. Node: M32R/D Options885306
  55294. Node: M680x0 Options888851
  55295. Node: MCore Options902926
  55296. Node: MeP Options904428
  55297. Node: MicroBlaze Options908388
  55298. Node: MIPS Options911478
  55299. Node: MMIX Options948017
  55300. Node: MN10300 Options950494
  55301. Node: Moxie Options953037
  55302. Node: MSP430 Options953524
  55303. Node: NDS32 Options960620
  55304. Node: Nios II Options962790
  55305. Node: Nvidia PTX Options974952
  55306. Node: OpenRISC Options977421
  55307. Node: PDP-11 Options979941
  55308. Node: picoChip Options981190
  55309. Node: PowerPC Options983328
  55310. Node: PRU Options983548
  55311. Node: RISC-V Options985757
  55312. Node: RL78 Options991673
  55313. Node: RS/6000 and PowerPC Options995448
  55314. Node: RX Options1036248
  55315. Node: S/390 and zSeries Options1044850
  55316. Node: Score Options1055613
  55317. Node: SH Options1056462
  55318. Node: Solaris 2 Options1071602
  55319. Node: SPARC Options1072840
  55320. Node: System V Options1088466
  55321. Node: TILE-Gx Options1089294
  55322. Node: TILEPro Options1090312
  55323. Node: V850 Options1090816
  55324. Node: VAX Options1097503
  55325. Node: Visium Options1098041
  55326. Node: VMS Options1100349
  55327. Node: VxWorks Options1101165
  55328. Node: x86 Options1102317
  55329. Node: x86 Windows Options1164427
  55330. Node: Xstormy16 Options1167232
  55331. Node: Xtensa Options1167526
  55332. Node: zSeries Options1172675
  55333. Node: Spec Files1172871
  55334. Node: Environment Variables1195039
  55335. Node: Precompiled Headers1203765
  55336. Node: C Implementation1209954
  55337. Node: Translation implementation1211644
  55338. Node: Environment implementation1212235
  55339. Node: Identifiers implementation1212789
  55340. Node: Characters implementation1213875
  55341. Node: Integers implementation1217525
  55342. Node: Floating point implementation1219574
  55343. Node: Arrays and pointers implementation1222637
  55344. Ref: Arrays and pointers implementation-Footnote-11224097
  55345. Node: Hints implementation1224223
  55346. Node: Structures unions enumerations and bit-fields implementation1225718
  55347. Node: Qualifiers implementation1227942
  55348. Node: Declarators implementation1229721
  55349. Node: Statements implementation1230062
  55350. Node: Preprocessing directives implementation1230388
  55351. Node: Library functions implementation1232709
  55352. Node: Architecture implementation1233358
  55353. Node: Locale-specific behavior implementation1235003
  55354. Node: C++ Implementation1235308
  55355. Node: Conditionally-supported behavior1236591
  55356. Node: Exception handling1237208
  55357. Node: C Extensions1237675
  55358. Node: Statement Exprs1242879
  55359. Node: Local Labels1248251
  55360. Node: Labels as Values1251224
  55361. Ref: Labels as Values-Footnote-11253751
  55362. Node: Nested Functions1253936
  55363. Node: Nonlocal Gotos1257890
  55364. Node: Constructing Calls1260156
  55365. Node: Typeof1264871
  55366. Node: Conditionals1268800
  55367. Node: __int1281269689
  55368. Node: Long Long1270214
  55369. Node: Complex1271705
  55370. Node: Floating Types1274473
  55371. Node: Half-Precision1277940
  55372. Node: Decimal Float1280351
  55373. Node: Hex Floats1282205
  55374. Node: Fixed-Point1283279
  55375. Node: Named Address Spaces1286537
  55376. Ref: AVR Named Address Spaces1287218
  55377. Node: Zero Length1293830
  55378. Node: Empty Structures1298011
  55379. Node: Variable Length1298417
  55380. Node: Variadic Macros1301135
  55381. Node: Escaped Newlines1303513
  55382. Node: Subscripting1304374
  55383. Node: Pointer Arith1305099
  55384. Node: Variadic Pointer Args1305676
  55385. Node: Pointers to Arrays1306401
  55386. Node: Initializers1307154
  55387. Node: Compound Literals1307655
  55388. Node: Designated Inits1311222
  55389. Node: Case Ranges1315146
  55390. Node: Cast to Union1315827
  55391. Node: Mixed Declarations1317550
  55392. Node: Function Attributes1318060
  55393. Node: Common Function Attributes1322488
  55394. Node: AArch64 Function Attributes1387329
  55395. Node: AMD GCN Function Attributes1393300
  55396. Node: ARC Function Attributes1396353
  55397. Node: ARM Function Attributes1399290
  55398. Node: AVR Function Attributes1404429
  55399. Node: Blackfin Function Attributes1408964
  55400. Node: CR16 Function Attributes1411462
  55401. Node: C-SKY Function Attributes1411986
  55402. Node: Epiphany Function Attributes1413283
  55403. Node: H8/300 Function Attributes1416038
  55404. Node: IA-64 Function Attributes1417236
  55405. Node: M32C Function Attributes1418278
  55406. Node: M32R/D Function Attributes1420616
  55407. Node: m68k Function Attributes1422090
  55408. Node: MCORE Function Attributes1423034
  55409. Node: MeP Function Attributes1423845
  55410. Node: MicroBlaze Function Attributes1425146
  55411. Node: Microsoft Windows Function Attributes1426653
  55412. Node: MIPS Function Attributes1431222
  55413. Node: MSP430 Function Attributes1436840
  55414. Node: NDS32 Function Attributes1440919
  55415. Node: Nios II Function Attributes1443343
  55416. Node: Nvidia PTX Function Attributes1444640
  55417. Node: PowerPC Function Attributes1445255
  55418. Node: RISC-V Function Attributes1452029
  55419. Node: RL78 Function Attributes1453445
  55420. Node: RX Function Attributes1454684
  55421. Node: S/390 Function Attributes1457231
  55422. Node: SH Function Attributes1459059
  55423. Node: Symbian OS Function Attributes1462487
  55424. Node: V850 Function Attributes1462823
  55425. Node: Visium Function Attributes1463368
  55426. Node: x86 Function Attributes1463896
  55427. Node: Xstormy16 Function Attributes1486385
  55428. Node: Variable Attributes1486892
  55429. Node: Common Variable Attributes1488425
  55430. Node: ARC Variable Attributes1506555
  55431. Node: AVR Variable Attributes1506937
  55432. Node: Blackfin Variable Attributes1512099
  55433. Node: H8/300 Variable Attributes1512957
  55434. Node: IA-64 Variable Attributes1514030
  55435. Node: M32R/D Variable Attributes1514781
  55436. Node: MeP Variable Attributes1515564
  55437. Node: Microsoft Windows Variable Attributes1517657
  55438. Node: MSP430 Variable Attributes1520110
  55439. Node: Nvidia PTX Variable Attributes1522064
  55440. Node: PowerPC Variable Attributes1522681
  55441. Node: RL78 Variable Attributes1523238
  55442. Node: V850 Variable Attributes1523657
  55443. Node: x86 Variable Attributes1524290
  55444. Node: Xstormy16 Variable Attributes1525346
  55445. Node: Type Attributes1525916
  55446. Node: Common Type Attributes1527580
  55447. Node: ARC Type Attributes1549073
  55448. Node: ARM Type Attributes1549545
  55449. Node: MeP Type Attributes1550327
  55450. Node: PowerPC Type Attributes1550729
  55451. Node: x86 Type Attributes1551718
  55452. Node: Label Attributes1552710
  55453. Node: Enumerator Attributes1554643
  55454. Node: Statement Attributes1555962
  55455. Node: Attribute Syntax1557445
  55456. Node: Function Prototypes1568703
  55457. Node: C++ Comments1570483
  55458. Node: Dollar Signs1571002
  55459. Node: Character Escapes1571467
  55460. Node: Alignment1571751
  55461. Node: Inline1573404
  55462. Node: Volatiles1578221
  55463. Node: Using Assembly Language with C1581120
  55464. Node: Basic Asm1582357
  55465. Node: Extended Asm1587807
  55466. Ref: Volatile1591906
  55467. Ref: AssemblerTemplate1596026
  55468. Ref: OutputOperands1600266
  55469. Ref: FlagOutputOperands1607229
  55470. Ref: InputOperands1610176
  55471. Ref: Clobbers and Scratch Registers1614444
  55472. Ref: GotoLabels1623085
  55473. Ref: x86Operandmodifiers1625220
  55474. Ref: x86floatingpointasmoperands1628377
  55475. Node: Constraints1631706
  55476. Node: Simple Constraints1632812
  55477. Node: Multi-Alternative1640126
  55478. Node: Modifiers1641801
  55479. Node: Machine Constraints1644599
  55480. Node: Asm Labels1700824
  55481. Node: Explicit Register Variables1702444
  55482. Ref: Explicit Reg Vars1702658
  55483. Node: Global Register Variables1703267
  55484. Ref: Global Reg Vars1703475
  55485. Node: Local Register Variables1708257
  55486. Ref: Local Reg Vars1708477
  55487. Node: Size of an asm1712105
  55488. Node: Alternate Keywords1713583
  55489. Node: Incomplete Enums1715088
  55490. Node: Function Names1715845
  55491. Node: Return Address1717749
  55492. Node: Vector Extensions1721687
  55493. Node: Offsetof1731452
  55494. Node: __sync Builtins1732285
  55495. Node: __atomic Builtins1738728
  55496. Node: Integer Overflow Builtins1752353
  55497. Node: x86 specific memory model extensions for transactional memory1758836
  55498. Node: Object Size Checking1760102
  55499. Node: Other Builtins1766358
  55500. Node: Target Builtins1815809
  55501. Node: AArch64 Built-in Functions1817496
  55502. Node: Alpha Built-in Functions1817951
  55503. Node: Altera Nios II Built-in Functions1820999
  55504. Node: ARC Built-in Functions1825368
  55505. Node: ARC SIMD Built-in Functions1830580
  55506. Node: ARM iWMMXt Built-in Functions1839476
  55507. Node: ARM C Language Extensions (ACLE)1846472
  55508. Node: ARM Floating Point Status and Control Intrinsics1847811
  55509. Node: ARM ARMv8-M Security Extensions1848296
  55510. Node: AVR Built-in Functions1849641
  55511. Node: Blackfin Built-in Functions1853402
  55512. Node: BPF Built-in Functions1854020
  55513. Node: BPF Kernel Helpers1854915
  55514. Node: FR-V Built-in Functions1864643
  55515. Node: Argument Types1865502
  55516. Node: Directly-mapped Integer Functions1867256
  55517. Node: Directly-mapped Media Functions1868340
  55518. Node: Raw read/write Functions1876546
  55519. Node: Other Built-in Functions1877454
  55520. Node: MIPS DSP Built-in Functions1878640
  55521. Node: MIPS Paired-Single Support1891137
  55522. Node: MIPS Loongson Built-in Functions1892636
  55523. Node: Paired-Single Arithmetic1899158
  55524. Node: Paired-Single Built-in Functions1900106
  55525. Node: MIPS-3D Built-in Functions1902773
  55526. Node: MIPS SIMD Architecture (MSA) Support1908167
  55527. Node: MIPS SIMD Architecture Built-in Functions1911007
  55528. Node: Other MIPS Built-in Functions1937861
  55529. Node: MSP430 Built-in Functions1938870
  55530. Node: NDS32 Built-in Functions1940271
  55531. Node: picoChip Built-in Functions1941564
  55532. Node: Basic PowerPC Built-in Functions1942913
  55533. Node: Basic PowerPC Built-in Functions Available on all Configurations1943713
  55534. Node: Basic PowerPC Built-in Functions Available on ISA 2.051952037
  55535. Node: Basic PowerPC Built-in Functions Available on ISA 2.061956872
  55536. Node: Basic PowerPC Built-in Functions Available on ISA 2.071958952
  55537. Node: Basic PowerPC Built-in Functions Available on ISA 3.01959806
  55538. Node: PowerPC AltiVec/VSX Built-in Functions1966722
  55539. Node: PowerPC AltiVec Built-in Functions on ISA 2.051970404
  55540. Node: PowerPC AltiVec Built-in Functions Available on ISA 2.062059642
  55541. Node: PowerPC AltiVec Built-in Functions Available on ISA 2.072084087
  55542. Node: PowerPC AltiVec Built-in Functions Available on ISA 3.02105291
  55543. Node: PowerPC Hardware Transactional Memory Built-in Functions2140006
  55544. Node: PowerPC Atomic Memory Operation Functions2148521
  55545. Node: RX Built-in Functions2151056
  55546. Node: S/390 System z Built-in Functions2155074
  55547. Node: SH Built-in Functions2160304
  55548. Node: SPARC VIS Built-in Functions2162032
  55549. Node: TI C6X Built-in Functions2170564
  55550. Node: TILE-Gx Built-in Functions2171595
  55551. Node: TILEPro Built-in Functions2172714
  55552. Node: x86 Built-in Functions2173814
  55553. Node: x86 transactional memory intrinsics2237620
  55554. Node: x86 control-flow protection intrinsics2240887
  55555. Node: Target Format Checks2242658
  55556. Node: Solaris Format Checks2243090
  55557. Node: Darwin Format Checks2243516
  55558. Node: Pragmas2244479
  55559. Node: AArch64 Pragmas2245420
  55560. Node: ARM Pragmas2245877
  55561. Node: M32C Pragmas2246504
  55562. Node: MeP Pragmas2247576
  55563. Node: PRU Pragmas2249628
  55564. Node: RS/6000 and PowerPC Pragmas2250206
  55565. Node: S/390 Pragmas2250946
  55566. Node: Darwin Pragmas2251512
  55567. Node: Solaris Pragmas2252565
  55568. Node: Symbol-Renaming Pragmas2253729
  55569. Node: Structure-Layout Pragmas2255366
  55570. Node: Weak Pragmas2257646
  55571. Node: Diagnostic Pragmas2258381
  55572. Node: Visibility Pragmas2262572
  55573. Node: Push/Pop Macro Pragmas2263257
  55574. Node: Function Specific Option Pragmas2264230
  55575. Node: Loop-Specific Pragmas2266196
  55576. Node: Unnamed Fields2267796
  55577. Node: Thread-Local2269993
  55578. Node: C99 Thread-Local Edits2272099
  55579. Node: C++98 Thread-Local Edits2274097
  55580. Node: Binary constants2277542
  55581. Node: C++ Extensions2278213
  55582. Node: C++ Volatiles2279843
  55583. Node: Restricted Pointers2282191
  55584. Node: Vague Linkage2283782
  55585. Node: C++ Interface2287405
  55586. Ref: C++ Interface-Footnote-12291202
  55587. Node: Template Instantiation2291340
  55588. Node: Bound member functions2297431
  55589. Node: C++ Attributes2298963
  55590. Node: Function Multiversioning2303035
  55591. Node: Type Traits2304842
  55592. Node: C++ Concepts2311792
  55593. Node: Deprecated Features2313298
  55594. Node: Backwards Compatibility2315123
  55595. Node: Objective-C2316195
  55596. Node: GNU Objective-C runtime API2316802
  55597. Node: Modern GNU Objective-C runtime API2317809
  55598. Node: Traditional GNU Objective-C runtime API2320245
  55599. Node: Executing code before main2320972
  55600. Node: What you can and what you cannot do in +load2323716
  55601. Node: Type encoding2326086
  55602. Node: Legacy type encoding2331227
  55603. Node: @encode2332317
  55604. Node: Method signatures2332862
  55605. Node: Garbage Collection2334854
  55606. Node: Constant string objects2337544
  55607. Node: compatibility_alias2340053
  55608. Node: Exceptions2340778
  55609. Node: Synchronization2343488
  55610. Node: Fast enumeration2344672
  55611. Node: Using fast enumeration2344984
  55612. Node: c99-like fast enumeration syntax2346195
  55613. Node: Fast enumeration details2346898
  55614. Node: Fast enumeration protocol2349238
  55615. Node: Messaging with the GNU Objective-C runtime2352390
  55616. Node: Dynamically registering methods2353762
  55617. Node: Forwarding hook2355453
  55618. Node: Compatibility2358493
  55619. Node: Gcov2365049
  55620. Node: Gcov Intro2365584
  55621. Node: Invoking Gcov2368302
  55622. Node: Gcov and Optimization2391137
  55623. Node: Gcov Data Files2394880
  55624. Node: Cross-profiling2396289
  55625. Node: Gcov-tool2398143
  55626. Node: Gcov-tool Intro2398568
  55627. Node: Invoking Gcov-tool2400538
  55628. Node: Gcov-dump2403116
  55629. Node: Gcov-dump Intro2403439
  55630. Node: Invoking Gcov-dump2403706
  55631. Node: lto-dump2404307
  55632. Node: lto-dump Intro2404606
  55633. Node: Invoking lto-dump2404856
  55634. Node: Trouble2405952
  55635. Node: Actual Bugs2407369
  55636. Node: Interoperation2407816
  55637. Node: Incompatibilities2414707
  55638. Node: Fixed Headers2422859
  55639. Node: Standard Libraries2424517
  55640. Node: Disappointments2425889
  55641. Node: C++ Misunderstandings2430248
  55642. Node: Static Definitions2431059
  55643. Node: Name lookup2432112
  55644. Ref: Name lookup-Footnote-12436893
  55645. Node: Temporaries2437082
  55646. Node: Copy Assignment2439058
  55647. Node: Non-bugs2440865
  55648. Node: Warnings and Errors2451371
  55649. Node: Bugs2453133
  55650. Node: Bug Criteria2453600
  55651. Node: Bug Reporting2455810
  55652. Node: Service2456028
  55653. Node: Contributing2456848
  55654. Node: Funding2457589
  55655. Node: GNU Project2460079
  55656. Node: Copying2460725
  55657. Node: GNU Free Documentation License2498233
  55658. Node: Contributors2523351
  55659. Node: Option Index2564324
  55660. Node: Keyword Index2843305
  55661. 
  55662. End Tag Table