gcc.info 3.0 MB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931259322593325934259352593625937259382593925940259412594225943259442594525946259472594825949259502595125952259532595425955259562595725958259592596025961259622596325964259652596625967259682596925970259712597225973259742597525976259772597825979259802598125982259832598425985259862598725988259892599025991259922599325994259952599625997259982599926000260012600226003260042600526006260072600826009260102601126012260132601426015260162601726018260192602026021260222602326024260252602626027260282602926030260312603226033260342603526036260372603826039260402604126042260432604426045260462604726048260492605026051260522605326054260552605626057260582605926060260612606226063260642606526066260672606826069260702607126072260732607426075260762607726078260792608026081260822608326084260852608626087260882608926090260912609226093260942609526096260972609826099261002610126102261032610426105261062610726108261092611026111261122611326114261152611626117261182611926120261212612226123261242612526126261272612826129261302613126132261332613426135261362613726138261392614026141261422614326144261452614626147261482614926150261512615226153261542615526156261572615826159261602616126162261632616426165261662616726168261692617026171261722617326174261752617626177261782617926180261812618226183261842618526186261872618826189261902619126192261932619426195261962619726198261992620026201262022620326204262052620626207262082620926210262112621226213262142621526216262172621826219262202622126222262232622426225262262622726228262292623026231262322623326234262352623626237262382623926240262412624226243262442624526246262472624826249262502625126252262532625426255262562625726258262592626026261262622626326264262652626626267262682626926270262712627226273262742627526276262772627826279262802628126282262832628426285262862628726288262892629026291262922629326294262952629626297262982629926300263012630226303263042630526306263072630826309263102631126312263132631426315263162631726318263192632026321263222632326324263252632626327263282632926330263312633226333263342633526336263372633826339263402634126342263432634426345263462634726348263492635026351263522635326354263552635626357263582635926360263612636226363263642636526366263672636826369263702637126372263732637426375263762637726378263792638026381263822638326384263852638626387263882638926390263912639226393263942639526396263972639826399264002640126402264032640426405264062640726408264092641026411264122641326414264152641626417264182641926420264212642226423264242642526426264272642826429264302643126432264332643426435264362643726438264392644026441264422644326444264452644626447264482644926450264512645226453264542645526456264572645826459264602646126462264632646426465264662646726468264692647026471264722647326474264752647626477264782647926480264812648226483264842648526486264872648826489264902649126492264932649426495264962649726498264992650026501265022650326504265052650626507265082650926510265112651226513265142651526516265172651826519265202652126522265232652426525265262652726528265292653026531265322653326534265352653626537265382653926540265412654226543265442654526546265472654826549265502655126552265532655426555265562655726558265592656026561265622656326564265652656626567265682656926570265712657226573265742657526576265772657826579265802658126582265832658426585265862658726588265892659026591265922659326594265952659626597265982659926600266012660226603266042660526606266072660826609266102661126612266132661426615266162661726618266192662026621266222662326624266252662626627266282662926630266312663226633266342663526636266372663826639266402664126642266432664426645266462664726648266492665026651266522665326654266552665626657266582665926660266612666226663266642666526666266672666826669266702667126672266732667426675266762667726678266792668026681266822668326684266852668626687266882668926690266912669226693266942669526696266972669826699267002670126702267032670426705267062670726708267092671026711267122671326714267152671626717267182671926720267212672226723267242672526726267272672826729267302673126732267332673426735267362673726738267392674026741267422674326744267452674626747267482674926750267512675226753267542675526756267572675826759267602676126762267632676426765267662676726768267692677026771267722677326774267752677626777267782677926780267812678226783267842678526786267872678826789267902679126792267932679426795267962679726798267992680026801268022680326804268052680626807268082680926810268112681226813268142681526816268172681826819268202682126822268232682426825268262682726828268292683026831268322683326834268352683626837268382683926840268412684226843268442684526846268472684826849268502685126852268532685426855268562685726858268592686026861268622686326864268652686626867268682686926870268712687226873268742687526876268772687826879268802688126882268832688426885268862688726888268892689026891268922689326894268952689626897268982689926900269012690226903269042690526906269072690826909269102691126912269132691426915269162691726918269192692026921269222692326924269252692626927269282692926930269312693226933269342693526936269372693826939269402694126942269432694426945269462694726948269492695026951269522695326954269552695626957269582695926960269612696226963269642696526966269672696826969269702697126972269732697426975269762697726978269792698026981269822698326984269852698626987269882698926990269912699226993269942699526996269972699826999270002700127002270032700427005270062700727008270092701027011270122701327014270152701627017270182701927020270212702227023270242702527026270272702827029270302703127032270332703427035270362703727038270392704027041270422704327044270452704627047270482704927050270512705227053270542705527056270572705827059270602706127062270632706427065270662706727068270692707027071270722707327074270752707627077270782707927080270812708227083270842708527086270872708827089270902709127092270932709427095270962709727098270992710027101271022710327104271052710627107271082710927110271112711227113271142711527116271172711827119271202712127122271232712427125271262712727128271292713027131271322713327134271352713627137271382713927140271412714227143271442714527146271472714827149271502715127152271532715427155271562715727158271592716027161271622716327164271652716627167271682716927170271712717227173271742717527176271772717827179271802718127182271832718427185271862718727188271892719027191271922719327194271952719627197271982719927200272012720227203272042720527206272072720827209272102721127212272132721427215272162721727218272192722027221272222722327224272252722627227272282722927230272312723227233272342723527236272372723827239272402724127242272432724427245272462724727248272492725027251272522725327254272552725627257272582725927260272612726227263272642726527266272672726827269272702727127272272732727427275272762727727278272792728027281272822728327284272852728627287272882728927290272912729227293272942729527296272972729827299273002730127302273032730427305273062730727308273092731027311273122731327314273152731627317273182731927320273212732227323273242732527326273272732827329273302733127332273332733427335273362733727338273392734027341273422734327344273452734627347273482734927350273512735227353273542735527356273572735827359273602736127362273632736427365273662736727368273692737027371273722737327374273752737627377273782737927380273812738227383273842738527386273872738827389273902739127392273932739427395273962739727398273992740027401274022740327404274052740627407274082740927410274112741227413274142741527416274172741827419274202742127422274232742427425274262742727428274292743027431274322743327434274352743627437274382743927440274412744227443274442744527446274472744827449274502745127452274532745427455274562745727458274592746027461274622746327464274652746627467274682746927470274712747227473274742747527476274772747827479274802748127482274832748427485274862748727488274892749027491274922749327494274952749627497274982749927500275012750227503275042750527506275072750827509275102751127512275132751427515275162751727518275192752027521275222752327524275252752627527275282752927530275312753227533275342753527536275372753827539275402754127542275432754427545275462754727548275492755027551275522755327554275552755627557275582755927560275612756227563275642756527566275672756827569275702757127572275732757427575275762757727578275792758027581275822758327584275852758627587275882758927590275912759227593275942759527596275972759827599276002760127602276032760427605276062760727608276092761027611276122761327614276152761627617276182761927620276212762227623276242762527626276272762827629276302763127632276332763427635276362763727638276392764027641276422764327644276452764627647276482764927650276512765227653276542765527656276572765827659276602766127662276632766427665276662766727668276692767027671276722767327674276752767627677276782767927680276812768227683276842768527686276872768827689276902769127692276932769427695276962769727698276992770027701277022770327704277052770627707277082770927710277112771227713277142771527716277172771827719277202772127722277232772427725277262772727728277292773027731277322773327734277352773627737277382773927740277412774227743277442774527746277472774827749277502775127752277532775427755277562775727758277592776027761277622776327764277652776627767277682776927770277712777227773277742777527776277772777827779277802778127782277832778427785277862778727788277892779027791277922779327794277952779627797277982779927800278012780227803278042780527806278072780827809278102781127812278132781427815278162781727818278192782027821278222782327824278252782627827278282782927830278312783227833278342783527836278372783827839278402784127842278432784427845278462784727848278492785027851278522785327854278552785627857278582785927860278612786227863278642786527866278672786827869278702787127872278732787427875278762787727878278792788027881278822788327884278852788627887278882788927890278912789227893278942789527896278972789827899279002790127902279032790427905279062790727908279092791027911279122791327914279152791627917279182791927920279212792227923279242792527926279272792827929279302793127932279332793427935279362793727938279392794027941279422794327944279452794627947279482794927950279512795227953279542795527956279572795827959279602796127962279632796427965279662796727968279692797027971279722797327974279752797627977279782797927980279812798227983279842798527986279872798827989279902799127992279932799427995279962799727998279992800028001280022800328004280052800628007280082800928010280112801228013280142801528016280172801828019280202802128022280232802428025280262802728028280292803028031280322803328034280352803628037280382803928040280412804228043280442804528046280472804828049280502805128052280532805428055280562805728058280592806028061280622806328064280652806628067280682806928070280712807228073280742807528076280772807828079280802808128082280832808428085280862808728088280892809028091280922809328094280952809628097280982809928100281012810228103281042810528106281072810828109281102811128112281132811428115281162811728118281192812028121281222812328124281252812628127281282812928130281312813228133281342813528136281372813828139281402814128142281432814428145281462814728148281492815028151281522815328154281552815628157281582815928160281612816228163281642816528166281672816828169281702817128172281732817428175281762817728178281792818028181281822818328184281852818628187281882818928190281912819228193281942819528196281972819828199282002820128202282032820428205282062820728208282092821028211282122821328214282152821628217282182821928220282212822228223282242822528226282272822828229282302823128232282332823428235282362823728238282392824028241282422824328244282452824628247282482824928250282512825228253282542825528256282572825828259282602826128262282632826428265282662826728268282692827028271282722827328274282752827628277282782827928280282812828228283282842828528286282872828828289282902829128292282932829428295282962829728298282992830028301283022830328304283052830628307283082830928310283112831228313283142831528316283172831828319283202832128322283232832428325283262832728328283292833028331283322833328334283352833628337283382833928340283412834228343283442834528346283472834828349283502835128352283532835428355283562835728358283592836028361283622836328364283652836628367283682836928370283712837228373283742837528376283772837828379283802838128382283832838428385283862838728388283892839028391283922839328394283952839628397283982839928400284012840228403284042840528406284072840828409284102841128412284132841428415284162841728418284192842028421284222842328424284252842628427284282842928430284312843228433284342843528436284372843828439284402844128442284432844428445284462844728448284492845028451284522845328454284552845628457284582845928460284612846228463284642846528466284672846828469284702847128472284732847428475284762847728478284792848028481284822848328484284852848628487284882848928490284912849228493284942849528496284972849828499285002850128502285032850428505285062850728508285092851028511285122851328514285152851628517285182851928520285212852228523285242852528526285272852828529285302853128532285332853428535285362853728538285392854028541285422854328544285452854628547285482854928550285512855228553285542855528556285572855828559285602856128562285632856428565285662856728568285692857028571285722857328574285752857628577285782857928580285812858228583285842858528586285872858828589285902859128592285932859428595285962859728598285992860028601286022860328604286052860628607286082860928610286112861228613286142861528616286172861828619286202862128622286232862428625286262862728628286292863028631286322863328634286352863628637286382863928640286412864228643286442864528646286472864828649286502865128652286532865428655286562865728658286592866028661286622866328664286652866628667286682866928670286712867228673286742867528676286772867828679286802868128682286832868428685286862868728688286892869028691286922869328694286952869628697286982869928700287012870228703287042870528706287072870828709287102871128712287132871428715287162871728718287192872028721287222872328724287252872628727287282872928730287312873228733287342873528736287372873828739287402874128742287432874428745287462874728748287492875028751287522875328754287552875628757287582875928760287612876228763287642876528766287672876828769287702877128772287732877428775287762877728778287792878028781287822878328784287852878628787287882878928790287912879228793287942879528796287972879828799288002880128802288032880428805288062880728808288092881028811288122881328814288152881628817288182881928820288212882228823288242882528826288272882828829288302883128832288332883428835288362883728838288392884028841288422884328844288452884628847288482884928850288512885228853288542885528856288572885828859288602886128862288632886428865288662886728868288692887028871288722887328874288752887628877288782887928880288812888228883288842888528886288872888828889288902889128892288932889428895288962889728898288992890028901289022890328904289052890628907289082890928910289112891228913289142891528916289172891828919289202892128922289232892428925289262892728928289292893028931289322893328934289352893628937289382893928940289412894228943289442894528946289472894828949289502895128952289532895428955289562895728958289592896028961289622896328964289652896628967289682896928970289712897228973289742897528976289772897828979289802898128982289832898428985289862898728988289892899028991289922899328994289952899628997289982899929000290012900229003290042900529006290072900829009290102901129012290132901429015290162901729018290192902029021290222902329024290252902629027290282902929030290312903229033290342903529036290372903829039290402904129042290432904429045290462904729048290492905029051290522905329054290552905629057290582905929060290612906229063290642906529066290672906829069290702907129072290732907429075290762907729078290792908029081290822908329084290852908629087290882908929090290912909229093290942909529096290972909829099291002910129102291032910429105291062910729108291092911029111291122911329114291152911629117291182911929120291212912229123291242912529126291272912829129291302913129132291332913429135291362913729138291392914029141291422914329144291452914629147291482914929150291512915229153291542915529156291572915829159291602916129162291632916429165291662916729168291692917029171291722917329174291752917629177291782917929180291812918229183291842918529186291872918829189291902919129192291932919429195291962919729198291992920029201292022920329204292052920629207292082920929210292112921229213292142921529216292172921829219292202922129222292232922429225292262922729228292292923029231292322923329234292352923629237292382923929240292412924229243292442924529246292472924829249292502925129252292532925429255292562925729258292592926029261292622926329264292652926629267292682926929270292712927229273292742927529276292772927829279292802928129282292832928429285292862928729288292892929029291292922929329294292952929629297292982929929300293012930229303293042930529306293072930829309293102931129312293132931429315293162931729318293192932029321293222932329324293252932629327293282932929330293312933229333293342933529336293372933829339293402934129342293432934429345293462934729348293492935029351293522935329354293552935629357293582935929360293612936229363293642936529366293672936829369293702937129372293732937429375293762937729378293792938029381293822938329384293852938629387293882938929390293912939229393293942939529396293972939829399294002940129402294032940429405294062940729408294092941029411294122941329414294152941629417294182941929420294212942229423294242942529426294272942829429294302943129432294332943429435294362943729438294392944029441294422944329444294452944629447294482944929450294512945229453294542945529456294572945829459294602946129462294632946429465294662946729468294692947029471294722947329474294752947629477294782947929480294812948229483294842948529486294872948829489294902949129492294932949429495294962949729498294992950029501295022950329504295052950629507295082950929510295112951229513295142951529516295172951829519295202952129522295232952429525295262952729528295292953029531295322953329534295352953629537295382953929540295412954229543295442954529546295472954829549295502955129552295532955429555295562955729558295592956029561295622956329564295652956629567295682956929570295712957229573295742957529576295772957829579295802958129582295832958429585295862958729588295892959029591295922959329594295952959629597295982959929600296012960229603296042960529606296072960829609296102961129612296132961429615296162961729618296192962029621296222962329624296252962629627296282962929630296312963229633296342963529636296372963829639296402964129642296432964429645296462964729648296492965029651296522965329654296552965629657296582965929660296612966229663296642966529666296672966829669296702967129672296732967429675296762967729678296792968029681296822968329684296852968629687296882968929690296912969229693296942969529696296972969829699297002970129702297032970429705297062970729708297092971029711297122971329714297152971629717297182971929720297212972229723297242972529726297272972829729297302973129732297332973429735297362973729738297392974029741297422974329744297452974629747297482974929750297512975229753297542975529756297572975829759297602976129762297632976429765297662976729768297692977029771297722977329774297752977629777297782977929780297812978229783297842978529786297872978829789297902979129792297932979429795297962979729798297992980029801298022980329804298052980629807298082980929810298112981229813298142981529816298172981829819298202982129822298232982429825298262982729828298292983029831298322983329834298352983629837298382983929840298412984229843298442984529846298472984829849298502985129852298532985429855298562985729858298592986029861298622986329864298652986629867298682986929870298712987229873298742987529876298772987829879298802988129882298832988429885298862988729888298892989029891298922989329894298952989629897298982989929900299012990229903299042990529906299072990829909299102991129912299132991429915299162991729918299192992029921299222992329924299252992629927299282992929930299312993229933299342993529936299372993829939299402994129942299432994429945299462994729948299492995029951299522995329954299552995629957299582995929960299612996229963299642996529966299672996829969299702997129972299732997429975299762997729978299792998029981299822998329984299852998629987299882998929990299912999229993299942999529996299972999829999300003000130002300033000430005300063000730008300093001030011300123001330014300153001630017300183001930020300213002230023300243002530026300273002830029300303003130032300333003430035300363003730038300393004030041300423004330044300453004630047300483004930050300513005230053300543005530056300573005830059300603006130062300633006430065300663006730068300693007030071300723007330074300753007630077300783007930080300813008230083300843008530086300873008830089300903009130092300933009430095300963009730098300993010030101301023010330104301053010630107301083010930110301113011230113301143011530116301173011830119301203012130122301233012430125301263012730128301293013030131301323013330134301353013630137301383013930140301413014230143301443014530146301473014830149301503015130152301533015430155301563015730158301593016030161301623016330164301653016630167301683016930170301713017230173301743017530176301773017830179301803018130182301833018430185301863018730188301893019030191301923019330194301953019630197301983019930200302013020230203302043020530206302073020830209302103021130212302133021430215302163021730218302193022030221302223022330224302253022630227302283022930230302313023230233302343023530236302373023830239302403024130242302433024430245302463024730248302493025030251302523025330254302553025630257302583025930260302613026230263302643026530266302673026830269302703027130272302733027430275302763027730278302793028030281302823028330284302853028630287302883028930290302913029230293302943029530296302973029830299303003030130302303033030430305303063030730308303093031030311303123031330314303153031630317303183031930320303213032230323303243032530326303273032830329303303033130332303333033430335303363033730338303393034030341303423034330344303453034630347303483034930350303513035230353303543035530356303573035830359303603036130362303633036430365303663036730368303693037030371303723037330374303753037630377303783037930380303813038230383303843038530386303873038830389303903039130392303933039430395303963039730398303993040030401304023040330404304053040630407304083040930410304113041230413304143041530416304173041830419304203042130422304233042430425304263042730428304293043030431304323043330434304353043630437304383043930440304413044230443304443044530446304473044830449304503045130452304533045430455304563045730458304593046030461304623046330464304653046630467304683046930470304713047230473304743047530476304773047830479304803048130482304833048430485304863048730488304893049030491304923049330494304953049630497304983049930500305013050230503305043050530506305073050830509305103051130512305133051430515305163051730518305193052030521305223052330524305253052630527305283052930530305313053230533305343053530536305373053830539305403054130542305433054430545305463054730548305493055030551305523055330554305553055630557305583055930560305613056230563305643056530566305673056830569305703057130572305733057430575305763057730578305793058030581305823058330584305853058630587305883058930590305913059230593305943059530596305973059830599306003060130602306033060430605306063060730608306093061030611306123061330614306153061630617306183061930620306213062230623306243062530626306273062830629306303063130632306333063430635306363063730638306393064030641306423064330644306453064630647306483064930650306513065230653306543065530656306573065830659306603066130662306633066430665306663066730668306693067030671306723067330674306753067630677306783067930680306813068230683306843068530686306873068830689306903069130692306933069430695306963069730698306993070030701307023070330704307053070630707307083070930710307113071230713307143071530716307173071830719307203072130722307233072430725307263072730728307293073030731307323073330734307353073630737307383073930740307413074230743307443074530746307473074830749307503075130752307533075430755307563075730758307593076030761307623076330764307653076630767307683076930770307713077230773307743077530776307773077830779307803078130782307833078430785307863078730788307893079030791307923079330794307953079630797307983079930800308013080230803308043080530806308073080830809308103081130812308133081430815308163081730818308193082030821308223082330824308253082630827308283082930830308313083230833308343083530836308373083830839308403084130842308433084430845308463084730848308493085030851308523085330854308553085630857308583085930860308613086230863308643086530866308673086830869308703087130872308733087430875308763087730878308793088030881308823088330884308853088630887308883088930890308913089230893308943089530896308973089830899309003090130902309033090430905309063090730908309093091030911309123091330914309153091630917309183091930920309213092230923309243092530926309273092830929309303093130932309333093430935309363093730938309393094030941309423094330944309453094630947309483094930950309513095230953309543095530956309573095830959309603096130962309633096430965309663096730968309693097030971309723097330974309753097630977309783097930980309813098230983309843098530986309873098830989309903099130992309933099430995309963099730998309993100031001310023100331004310053100631007310083100931010310113101231013310143101531016310173101831019310203102131022310233102431025310263102731028310293103031031310323103331034310353103631037310383103931040310413104231043310443104531046310473104831049310503105131052310533105431055310563105731058310593106031061310623106331064310653106631067310683106931070310713107231073310743107531076310773107831079310803108131082310833108431085310863108731088310893109031091310923109331094310953109631097310983109931100311013110231103311043110531106311073110831109311103111131112311133111431115311163111731118311193112031121311223112331124311253112631127311283112931130311313113231133311343113531136311373113831139311403114131142311433114431145311463114731148311493115031151311523115331154311553115631157311583115931160311613116231163311643116531166311673116831169311703117131172311733117431175311763117731178311793118031181311823118331184311853118631187311883118931190311913119231193311943119531196311973119831199312003120131202312033120431205312063120731208312093121031211312123121331214312153121631217312183121931220312213122231223312243122531226312273122831229312303123131232312333123431235312363123731238312393124031241312423124331244312453124631247312483124931250312513125231253312543125531256312573125831259312603126131262312633126431265312663126731268312693127031271312723127331274312753127631277312783127931280312813128231283312843128531286312873128831289312903129131292312933129431295312963129731298312993130031301313023130331304313053130631307313083130931310313113131231313313143131531316313173131831319313203132131322313233132431325313263132731328313293133031331313323133331334313353133631337313383133931340313413134231343313443134531346313473134831349313503135131352313533135431355313563135731358313593136031361313623136331364313653136631367313683136931370313713137231373313743137531376313773137831379313803138131382313833138431385313863138731388313893139031391313923139331394313953139631397313983139931400314013140231403314043140531406314073140831409314103141131412314133141431415314163141731418314193142031421314223142331424314253142631427314283142931430314313143231433314343143531436314373143831439314403144131442314433144431445314463144731448314493145031451314523145331454314553145631457314583145931460314613146231463314643146531466314673146831469314703147131472314733147431475314763147731478314793148031481314823148331484314853148631487314883148931490314913149231493314943149531496314973149831499315003150131502315033150431505315063150731508315093151031511315123151331514315153151631517315183151931520315213152231523315243152531526315273152831529315303153131532315333153431535315363153731538315393154031541315423154331544315453154631547315483154931550315513155231553315543155531556315573155831559315603156131562315633156431565315663156731568315693157031571315723157331574315753157631577315783157931580315813158231583315843158531586315873158831589315903159131592315933159431595315963159731598315993160031601316023160331604316053160631607316083160931610316113161231613316143161531616316173161831619316203162131622316233162431625316263162731628316293163031631316323163331634316353163631637316383163931640316413164231643316443164531646316473164831649316503165131652316533165431655316563165731658316593166031661316623166331664316653166631667316683166931670316713167231673316743167531676316773167831679316803168131682316833168431685316863168731688316893169031691316923169331694316953169631697316983169931700317013170231703317043170531706317073170831709317103171131712317133171431715317163171731718317193172031721317223172331724317253172631727317283172931730317313173231733317343173531736317373173831739317403174131742317433174431745317463174731748317493175031751317523175331754317553175631757317583175931760317613176231763317643176531766317673176831769317703177131772317733177431775317763177731778317793178031781317823178331784317853178631787317883178931790317913179231793317943179531796317973179831799318003180131802318033180431805318063180731808318093181031811318123181331814318153181631817318183181931820318213182231823318243182531826318273182831829318303183131832318333183431835318363183731838318393184031841318423184331844318453184631847318483184931850318513185231853318543185531856318573185831859318603186131862318633186431865318663186731868318693187031871318723187331874318753187631877318783187931880318813188231883318843188531886318873188831889318903189131892318933189431895318963189731898318993190031901319023190331904319053190631907319083190931910319113191231913319143191531916319173191831919319203192131922319233192431925319263192731928319293193031931319323193331934319353193631937319383193931940319413194231943319443194531946319473194831949319503195131952319533195431955319563195731958319593196031961319623196331964319653196631967319683196931970319713197231973319743197531976319773197831979319803198131982319833198431985319863198731988319893199031991319923199331994319953199631997319983199932000320013200232003320043200532006320073200832009320103201132012320133201432015320163201732018320193202032021320223202332024320253202632027320283202932030320313203232033320343203532036320373203832039320403204132042320433204432045320463204732048320493205032051320523205332054320553205632057320583205932060320613206232063320643206532066320673206832069320703207132072320733207432075320763207732078320793208032081320823208332084320853208632087320883208932090320913209232093320943209532096320973209832099321003210132102321033210432105321063210732108321093211032111321123211332114321153211632117321183211932120321213212232123321243212532126321273212832129321303213132132321333213432135321363213732138321393214032141321423214332144321453214632147321483214932150321513215232153321543215532156321573215832159321603216132162321633216432165321663216732168321693217032171321723217332174321753217632177321783217932180321813218232183321843218532186321873218832189321903219132192321933219432195321963219732198321993220032201322023220332204322053220632207322083220932210322113221232213322143221532216322173221832219322203222132222322233222432225322263222732228322293223032231322323223332234322353223632237322383223932240322413224232243322443224532246322473224832249322503225132252322533225432255322563225732258322593226032261322623226332264322653226632267322683226932270322713227232273322743227532276322773227832279322803228132282322833228432285322863228732288322893229032291322923229332294322953229632297322983229932300323013230232303323043230532306323073230832309323103231132312323133231432315323163231732318323193232032321323223232332324323253232632327323283232932330323313233232333323343233532336323373233832339323403234132342323433234432345323463234732348323493235032351323523235332354323553235632357323583235932360323613236232363323643236532366323673236832369323703237132372323733237432375323763237732378323793238032381323823238332384323853238632387323883238932390323913239232393323943239532396323973239832399324003240132402324033240432405324063240732408324093241032411324123241332414324153241632417324183241932420324213242232423324243242532426324273242832429324303243132432324333243432435324363243732438324393244032441324423244332444324453244632447324483244932450324513245232453324543245532456324573245832459324603246132462324633246432465324663246732468324693247032471324723247332474324753247632477324783247932480324813248232483324843248532486324873248832489324903249132492324933249432495324963249732498324993250032501325023250332504325053250632507325083250932510325113251232513325143251532516325173251832519325203252132522325233252432525325263252732528325293253032531325323253332534325353253632537325383253932540325413254232543325443254532546325473254832549325503255132552325533255432555325563255732558325593256032561325623256332564325653256632567325683256932570325713257232573325743257532576325773257832579325803258132582325833258432585325863258732588325893259032591325923259332594325953259632597325983259932600326013260232603326043260532606326073260832609326103261132612326133261432615326163261732618326193262032621326223262332624326253262632627326283262932630326313263232633326343263532636326373263832639326403264132642326433264432645326463264732648326493265032651326523265332654326553265632657326583265932660326613266232663326643266532666326673266832669326703267132672326733267432675326763267732678326793268032681326823268332684326853268632687326883268932690326913269232693326943269532696326973269832699327003270132702327033270432705327063270732708327093271032711327123271332714327153271632717327183271932720327213272232723327243272532726327273272832729327303273132732327333273432735327363273732738327393274032741327423274332744327453274632747327483274932750327513275232753327543275532756327573275832759327603276132762327633276432765327663276732768327693277032771327723277332774327753277632777327783277932780327813278232783327843278532786327873278832789327903279132792327933279432795327963279732798327993280032801328023280332804328053280632807328083280932810328113281232813328143281532816328173281832819328203282132822328233282432825328263282732828328293283032831328323283332834328353283632837328383283932840328413284232843328443284532846328473284832849328503285132852328533285432855328563285732858328593286032861328623286332864328653286632867328683286932870328713287232873328743287532876328773287832879328803288132882328833288432885328863288732888328893289032891328923289332894328953289632897328983289932900329013290232903329043290532906329073290832909329103291132912329133291432915329163291732918329193292032921329223292332924329253292632927329283292932930329313293232933329343293532936329373293832939329403294132942329433294432945329463294732948329493295032951329523295332954329553295632957329583295932960329613296232963329643296532966329673296832969329703297132972329733297432975329763297732978329793298032981329823298332984329853298632987329883298932990329913299232993329943299532996329973299832999330003300133002330033300433005330063300733008330093301033011330123301333014330153301633017330183301933020330213302233023330243302533026330273302833029330303303133032330333303433035330363303733038330393304033041330423304333044330453304633047330483304933050330513305233053330543305533056330573305833059330603306133062330633306433065330663306733068330693307033071330723307333074330753307633077330783307933080330813308233083330843308533086330873308833089330903309133092330933309433095330963309733098330993310033101331023310333104331053310633107331083310933110331113311233113331143311533116331173311833119331203312133122331233312433125331263312733128331293313033131331323313333134331353313633137331383313933140331413314233143331443314533146331473314833149331503315133152331533315433155331563315733158331593316033161331623316333164331653316633167331683316933170331713317233173331743317533176331773317833179331803318133182331833318433185331863318733188331893319033191331923319333194331953319633197331983319933200332013320233203332043320533206332073320833209332103321133212332133321433215332163321733218332193322033221332223322333224332253322633227332283322933230332313323233233332343323533236332373323833239332403324133242332433324433245332463324733248332493325033251332523325333254332553325633257332583325933260332613326233263332643326533266332673326833269332703327133272332733327433275332763327733278332793328033281332823328333284332853328633287332883328933290332913329233293332943329533296332973329833299333003330133302333033330433305333063330733308333093331033311333123331333314333153331633317333183331933320333213332233323333243332533326333273332833329333303333133332333333333433335333363333733338333393334033341333423334333344333453334633347333483334933350333513335233353333543335533356333573335833359333603336133362333633336433365333663336733368333693337033371333723337333374333753337633377333783337933380333813338233383333843338533386333873338833389333903339133392333933339433395333963339733398333993340033401334023340333404334053340633407334083340933410334113341233413334143341533416334173341833419334203342133422334233342433425334263342733428334293343033431334323343333434334353343633437334383343933440334413344233443334443344533446334473344833449334503345133452334533345433455334563345733458334593346033461334623346333464334653346633467334683346933470334713347233473334743347533476334773347833479334803348133482334833348433485334863348733488334893349033491334923349333494334953349633497334983349933500335013350233503335043350533506335073350833509335103351133512335133351433515335163351733518335193352033521335223352333524335253352633527335283352933530335313353233533335343353533536335373353833539335403354133542335433354433545335463354733548335493355033551335523355333554335553355633557335583355933560335613356233563335643356533566335673356833569335703357133572335733357433575335763357733578335793358033581335823358333584335853358633587335883358933590335913359233593335943359533596335973359833599336003360133602336033360433605336063360733608336093361033611336123361333614336153361633617336183361933620336213362233623336243362533626336273362833629336303363133632336333363433635336363363733638336393364033641336423364333644336453364633647336483364933650336513365233653336543365533656336573365833659336603366133662336633366433665336663366733668336693367033671336723367333674336753367633677336783367933680336813368233683336843368533686336873368833689336903369133692336933369433695336963369733698336993370033701337023370333704337053370633707337083370933710337113371233713337143371533716337173371833719337203372133722337233372433725337263372733728337293373033731337323373333734337353373633737337383373933740337413374233743337443374533746337473374833749337503375133752337533375433755337563375733758337593376033761337623376333764337653376633767337683376933770337713377233773337743377533776337773377833779337803378133782337833378433785337863378733788337893379033791337923379333794337953379633797337983379933800338013380233803338043380533806338073380833809338103381133812338133381433815338163381733818338193382033821338223382333824338253382633827338283382933830338313383233833338343383533836338373383833839338403384133842338433384433845338463384733848338493385033851338523385333854338553385633857338583385933860338613386233863338643386533866338673386833869338703387133872338733387433875338763387733878338793388033881338823388333884338853388633887338883388933890338913389233893338943389533896338973389833899339003390133902339033390433905339063390733908339093391033911339123391333914339153391633917339183391933920339213392233923339243392533926339273392833929339303393133932339333393433935339363393733938339393394033941339423394333944339453394633947339483394933950339513395233953339543395533956339573395833959339603396133962339633396433965339663396733968339693397033971339723397333974339753397633977339783397933980339813398233983339843398533986339873398833989339903399133992339933399433995339963399733998339993400034001340023400334004340053400634007340083400934010340113401234013340143401534016340173401834019340203402134022340233402434025340263402734028340293403034031340323403334034340353403634037340383403934040340413404234043340443404534046340473404834049340503405134052340533405434055340563405734058340593406034061340623406334064340653406634067340683406934070340713407234073340743407534076340773407834079340803408134082340833408434085340863408734088340893409034091340923409334094340953409634097340983409934100341013410234103341043410534106341073410834109341103411134112341133411434115341163411734118341193412034121341223412334124341253412634127341283412934130341313413234133341343413534136341373413834139341403414134142341433414434145341463414734148341493415034151341523415334154341553415634157341583415934160341613416234163341643416534166341673416834169341703417134172341733417434175341763417734178341793418034181341823418334184341853418634187341883418934190341913419234193341943419534196341973419834199342003420134202342033420434205342063420734208342093421034211342123421334214342153421634217342183421934220342213422234223342243422534226342273422834229342303423134232342333423434235342363423734238342393424034241342423424334244342453424634247342483424934250342513425234253342543425534256342573425834259342603426134262342633426434265342663426734268342693427034271342723427334274342753427634277342783427934280342813428234283342843428534286342873428834289342903429134292342933429434295342963429734298342993430034301343023430334304343053430634307343083430934310343113431234313343143431534316343173431834319343203432134322343233432434325343263432734328343293433034331343323433334334343353433634337343383433934340343413434234343343443434534346343473434834349343503435134352343533435434355343563435734358343593436034361343623436334364343653436634367343683436934370343713437234373343743437534376343773437834379343803438134382343833438434385343863438734388343893439034391343923439334394343953439634397343983439934400344013440234403344043440534406344073440834409344103441134412344133441434415344163441734418344193442034421344223442334424344253442634427344283442934430344313443234433344343443534436344373443834439344403444134442344433444434445344463444734448344493445034451344523445334454344553445634457344583445934460344613446234463344643446534466344673446834469344703447134472344733447434475344763447734478344793448034481344823448334484344853448634487344883448934490344913449234493344943449534496344973449834499345003450134502345033450434505345063450734508345093451034511345123451334514345153451634517345183451934520345213452234523345243452534526345273452834529345303453134532345333453434535345363453734538345393454034541345423454334544345453454634547345483454934550345513455234553345543455534556345573455834559345603456134562345633456434565345663456734568345693457034571345723457334574345753457634577345783457934580345813458234583345843458534586345873458834589345903459134592345933459434595345963459734598345993460034601346023460334604346053460634607346083460934610346113461234613346143461534616346173461834619346203462134622346233462434625346263462734628346293463034631346323463334634346353463634637346383463934640346413464234643346443464534646346473464834649346503465134652346533465434655346563465734658346593466034661346623466334664346653466634667346683466934670346713467234673346743467534676346773467834679346803468134682346833468434685346863468734688346893469034691346923469334694346953469634697346983469934700347013470234703347043470534706347073470834709347103471134712347133471434715347163471734718347193472034721347223472334724347253472634727347283472934730347313473234733347343473534736347373473834739347403474134742347433474434745347463474734748347493475034751347523475334754347553475634757347583475934760347613476234763347643476534766347673476834769347703477134772347733477434775347763477734778347793478034781347823478334784347853478634787347883478934790347913479234793347943479534796347973479834799348003480134802348033480434805348063480734808348093481034811348123481334814348153481634817348183481934820348213482234823348243482534826348273482834829348303483134832348333483434835348363483734838348393484034841348423484334844348453484634847348483484934850348513485234853348543485534856348573485834859348603486134862348633486434865348663486734868348693487034871348723487334874348753487634877348783487934880348813488234883348843488534886348873488834889348903489134892348933489434895348963489734898348993490034901349023490334904349053490634907349083490934910349113491234913349143491534916349173491834919349203492134922349233492434925349263492734928349293493034931349323493334934349353493634937349383493934940349413494234943349443494534946349473494834949349503495134952349533495434955349563495734958349593496034961349623496334964349653496634967349683496934970349713497234973349743497534976349773497834979349803498134982349833498434985349863498734988349893499034991349923499334994349953499634997349983499935000350013500235003350043500535006350073500835009350103501135012350133501435015350163501735018350193502035021350223502335024350253502635027350283502935030350313503235033350343503535036350373503835039350403504135042350433504435045350463504735048350493505035051350523505335054350553505635057350583505935060350613506235063350643506535066350673506835069350703507135072350733507435075350763507735078350793508035081350823508335084350853508635087350883508935090350913509235093350943509535096350973509835099351003510135102351033510435105351063510735108351093511035111351123511335114351153511635117351183511935120351213512235123351243512535126351273512835129351303513135132351333513435135351363513735138351393514035141351423514335144351453514635147351483514935150351513515235153351543515535156351573515835159351603516135162351633516435165351663516735168351693517035171351723517335174351753517635177351783517935180351813518235183351843518535186351873518835189351903519135192351933519435195351963519735198351993520035201352023520335204352053520635207352083520935210352113521235213352143521535216352173521835219352203522135222352233522435225352263522735228352293523035231352323523335234352353523635237352383523935240352413524235243352443524535246352473524835249352503525135252352533525435255352563525735258352593526035261352623526335264352653526635267352683526935270352713527235273352743527535276352773527835279352803528135282352833528435285352863528735288352893529035291352923529335294352953529635297352983529935300353013530235303353043530535306353073530835309353103531135312353133531435315353163531735318353193532035321353223532335324353253532635327353283532935330353313533235333353343533535336353373533835339353403534135342353433534435345353463534735348353493535035351353523535335354353553535635357353583535935360353613536235363353643536535366353673536835369353703537135372353733537435375353763537735378353793538035381353823538335384353853538635387353883538935390353913539235393353943539535396353973539835399354003540135402354033540435405354063540735408354093541035411354123541335414354153541635417354183541935420354213542235423354243542535426354273542835429354303543135432354333543435435354363543735438354393544035441354423544335444354453544635447354483544935450354513545235453354543545535456354573545835459354603546135462354633546435465354663546735468354693547035471354723547335474354753547635477354783547935480354813548235483354843548535486354873548835489354903549135492354933549435495354963549735498354993550035501355023550335504355053550635507355083550935510355113551235513355143551535516355173551835519355203552135522355233552435525355263552735528355293553035531355323553335534355353553635537355383553935540355413554235543355443554535546355473554835549355503555135552355533555435555355563555735558355593556035561355623556335564355653556635567355683556935570355713557235573355743557535576355773557835579355803558135582355833558435585355863558735588355893559035591355923559335594355953559635597355983559935600356013560235603356043560535606356073560835609356103561135612356133561435615356163561735618356193562035621356223562335624356253562635627356283562935630356313563235633356343563535636356373563835639356403564135642356433564435645356463564735648356493565035651356523565335654356553565635657356583565935660356613566235663356643566535666356673566835669356703567135672356733567435675356763567735678356793568035681356823568335684356853568635687356883568935690356913569235693356943569535696356973569835699357003570135702357033570435705357063570735708357093571035711357123571335714357153571635717357183571935720357213572235723357243572535726357273572835729357303573135732357333573435735357363573735738357393574035741357423574335744357453574635747357483574935750357513575235753357543575535756357573575835759357603576135762357633576435765357663576735768357693577035771357723577335774357753577635777357783577935780357813578235783357843578535786357873578835789357903579135792357933579435795357963579735798357993580035801358023580335804358053580635807358083580935810358113581235813358143581535816358173581835819358203582135822358233582435825358263582735828358293583035831358323583335834358353583635837358383583935840358413584235843358443584535846358473584835849358503585135852358533585435855358563585735858358593586035861358623586335864358653586635867358683586935870358713587235873358743587535876358773587835879358803588135882358833588435885358863588735888358893589035891358923589335894358953589635897358983589935900359013590235903359043590535906359073590835909359103591135912359133591435915359163591735918359193592035921359223592335924359253592635927359283592935930359313593235933359343593535936359373593835939359403594135942359433594435945359463594735948359493595035951359523595335954359553595635957359583595935960359613596235963359643596535966359673596835969359703597135972359733597435975359763597735978359793598035981359823598335984359853598635987359883598935990359913599235993359943599535996359973599835999360003600136002360033600436005360063600736008360093601036011360123601336014360153601636017360183601936020360213602236023360243602536026360273602836029360303603136032360333603436035360363603736038360393604036041360423604336044360453604636047360483604936050360513605236053360543605536056360573605836059360603606136062360633606436065360663606736068360693607036071360723607336074360753607636077360783607936080360813608236083360843608536086360873608836089360903609136092360933609436095360963609736098360993610036101361023610336104361053610636107361083610936110361113611236113361143611536116361173611836119361203612136122361233612436125361263612736128361293613036131361323613336134361353613636137361383613936140361413614236143361443614536146361473614836149361503615136152361533615436155361563615736158361593616036161361623616336164361653616636167361683616936170361713617236173361743617536176361773617836179361803618136182361833618436185361863618736188361893619036191361923619336194361953619636197361983619936200362013620236203362043620536206362073620836209362103621136212362133621436215362163621736218362193622036221362223622336224362253622636227362283622936230362313623236233362343623536236362373623836239362403624136242362433624436245362463624736248362493625036251362523625336254362553625636257362583625936260362613626236263362643626536266362673626836269362703627136272362733627436275362763627736278362793628036281362823628336284362853628636287362883628936290362913629236293362943629536296362973629836299363003630136302363033630436305363063630736308363093631036311363123631336314363153631636317363183631936320363213632236323363243632536326363273632836329363303633136332363333633436335363363633736338363393634036341363423634336344363453634636347363483634936350363513635236353363543635536356363573635836359363603636136362363633636436365363663636736368363693637036371363723637336374363753637636377363783637936380363813638236383363843638536386363873638836389363903639136392363933639436395363963639736398363993640036401364023640336404364053640636407364083640936410364113641236413364143641536416364173641836419364203642136422364233642436425364263642736428364293643036431364323643336434364353643636437364383643936440364413644236443364443644536446364473644836449364503645136452364533645436455364563645736458364593646036461364623646336464364653646636467364683646936470364713647236473364743647536476364773647836479364803648136482364833648436485364863648736488364893649036491364923649336494364953649636497364983649936500365013650236503365043650536506365073650836509365103651136512365133651436515365163651736518365193652036521365223652336524365253652636527365283652936530365313653236533365343653536536365373653836539365403654136542365433654436545365463654736548365493655036551365523655336554365553655636557365583655936560365613656236563365643656536566365673656836569365703657136572365733657436575365763657736578365793658036581365823658336584365853658636587365883658936590365913659236593365943659536596365973659836599366003660136602366033660436605366063660736608366093661036611366123661336614366153661636617366183661936620366213662236623366243662536626366273662836629366303663136632366333663436635366363663736638366393664036641366423664336644366453664636647366483664936650366513665236653366543665536656366573665836659366603666136662366633666436665366663666736668366693667036671366723667336674366753667636677366783667936680366813668236683366843668536686366873668836689366903669136692366933669436695366963669736698366993670036701367023670336704367053670636707367083670936710367113671236713367143671536716367173671836719367203672136722367233672436725367263672736728367293673036731367323673336734367353673636737367383673936740367413674236743367443674536746367473674836749367503675136752367533675436755367563675736758367593676036761367623676336764367653676636767367683676936770367713677236773367743677536776367773677836779367803678136782367833678436785367863678736788367893679036791367923679336794367953679636797367983679936800368013680236803368043680536806368073680836809368103681136812368133681436815368163681736818368193682036821368223682336824368253682636827368283682936830368313683236833368343683536836368373683836839368403684136842368433684436845368463684736848368493685036851368523685336854368553685636857368583685936860368613686236863368643686536866368673686836869368703687136872368733687436875368763687736878368793688036881368823688336884368853688636887368883688936890368913689236893368943689536896368973689836899369003690136902369033690436905369063690736908369093691036911369123691336914369153691636917369183691936920369213692236923369243692536926369273692836929369303693136932369333693436935369363693736938369393694036941369423694336944369453694636947369483694936950369513695236953369543695536956369573695836959369603696136962369633696436965369663696736968369693697036971369723697336974369753697636977369783697936980369813698236983369843698536986369873698836989369903699136992369933699436995369963699736998369993700037001370023700337004370053700637007370083700937010370113701237013370143701537016370173701837019370203702137022370233702437025370263702737028370293703037031370323703337034370353703637037370383703937040370413704237043370443704537046370473704837049370503705137052370533705437055370563705737058370593706037061370623706337064370653706637067370683706937070370713707237073370743707537076370773707837079370803708137082370833708437085370863708737088370893709037091370923709337094370953709637097370983709937100371013710237103371043710537106371073710837109371103711137112371133711437115371163711737118371193712037121371223712337124371253712637127371283712937130371313713237133371343713537136371373713837139371403714137142371433714437145371463714737148371493715037151371523715337154371553715637157371583715937160371613716237163371643716537166371673716837169371703717137172371733717437175371763717737178371793718037181371823718337184371853718637187371883718937190371913719237193371943719537196371973719837199372003720137202372033720437205372063720737208372093721037211372123721337214372153721637217372183721937220372213722237223372243722537226372273722837229372303723137232372333723437235372363723737238372393724037241372423724337244372453724637247372483724937250372513725237253372543725537256372573725837259372603726137262372633726437265372663726737268372693727037271372723727337274372753727637277372783727937280372813728237283372843728537286372873728837289372903729137292372933729437295372963729737298372993730037301373023730337304373053730637307373083730937310373113731237313373143731537316373173731837319373203732137322373233732437325373263732737328373293733037331373323733337334373353733637337373383733937340373413734237343373443734537346373473734837349373503735137352373533735437355373563735737358373593736037361373623736337364373653736637367373683736937370373713737237373373743737537376373773737837379373803738137382373833738437385373863738737388373893739037391373923739337394373953739637397373983739937400374013740237403374043740537406374073740837409374103741137412374133741437415374163741737418374193742037421374223742337424374253742637427374283742937430374313743237433374343743537436374373743837439374403744137442374433744437445374463744737448374493745037451374523745337454374553745637457374583745937460374613746237463374643746537466374673746837469374703747137472374733747437475374763747737478374793748037481374823748337484374853748637487374883748937490374913749237493374943749537496374973749837499375003750137502375033750437505375063750737508375093751037511375123751337514375153751637517375183751937520375213752237523375243752537526375273752837529375303753137532375333753437535375363753737538375393754037541375423754337544375453754637547375483754937550375513755237553375543755537556375573755837559375603756137562375633756437565375663756737568375693757037571375723757337574375753757637577375783757937580375813758237583375843758537586375873758837589375903759137592375933759437595375963759737598375993760037601376023760337604376053760637607376083760937610376113761237613376143761537616376173761837619376203762137622376233762437625376263762737628376293763037631376323763337634376353763637637376383763937640376413764237643376443764537646376473764837649376503765137652376533765437655376563765737658376593766037661376623766337664376653766637667376683766937670376713767237673376743767537676376773767837679376803768137682376833768437685376863768737688376893769037691376923769337694376953769637697376983769937700377013770237703377043770537706377073770837709377103771137712377133771437715377163771737718377193772037721377223772337724377253772637727377283772937730377313773237733377343773537736377373773837739377403774137742377433774437745377463774737748377493775037751377523775337754377553775637757377583775937760377613776237763377643776537766377673776837769377703777137772377733777437775377763777737778377793778037781377823778337784377853778637787377883778937790377913779237793377943779537796377973779837799378003780137802378033780437805378063780737808378093781037811378123781337814378153781637817378183781937820378213782237823378243782537826378273782837829378303783137832378333783437835378363783737838378393784037841378423784337844378453784637847378483784937850378513785237853378543785537856378573785837859378603786137862378633786437865378663786737868378693787037871378723787337874378753787637877378783787937880378813788237883378843788537886378873788837889378903789137892378933789437895378963789737898378993790037901379023790337904379053790637907379083790937910379113791237913379143791537916379173791837919379203792137922379233792437925379263792737928379293793037931379323793337934379353793637937379383793937940379413794237943379443794537946379473794837949379503795137952379533795437955379563795737958379593796037961379623796337964379653796637967379683796937970379713797237973379743797537976379773797837979379803798137982379833798437985379863798737988379893799037991379923799337994379953799637997379983799938000380013800238003380043800538006380073800838009380103801138012380133801438015380163801738018380193802038021380223802338024380253802638027380283802938030380313803238033380343803538036380373803838039380403804138042380433804438045380463804738048380493805038051380523805338054380553805638057380583805938060380613806238063380643806538066380673806838069380703807138072380733807438075380763807738078380793808038081380823808338084380853808638087380883808938090380913809238093380943809538096380973809838099381003810138102381033810438105381063810738108381093811038111381123811338114381153811638117381183811938120381213812238123381243812538126381273812838129381303813138132381333813438135381363813738138381393814038141381423814338144381453814638147381483814938150381513815238153381543815538156381573815838159381603816138162381633816438165381663816738168381693817038171381723817338174381753817638177381783817938180381813818238183381843818538186381873818838189381903819138192381933819438195381963819738198381993820038201382023820338204382053820638207382083820938210382113821238213382143821538216382173821838219382203822138222382233822438225382263822738228382293823038231382323823338234382353823638237382383823938240382413824238243382443824538246382473824838249382503825138252382533825438255382563825738258382593826038261382623826338264382653826638267382683826938270382713827238273382743827538276382773827838279382803828138282382833828438285382863828738288382893829038291382923829338294382953829638297382983829938300383013830238303383043830538306383073830838309383103831138312383133831438315383163831738318383193832038321383223832338324383253832638327383283832938330383313833238333383343833538336383373833838339383403834138342383433834438345383463834738348383493835038351383523835338354383553835638357383583835938360383613836238363383643836538366383673836838369383703837138372383733837438375383763837738378383793838038381383823838338384383853838638387383883838938390383913839238393383943839538396383973839838399384003840138402384033840438405384063840738408384093841038411384123841338414384153841638417384183841938420384213842238423384243842538426384273842838429384303843138432384333843438435384363843738438384393844038441384423844338444384453844638447384483844938450384513845238453384543845538456384573845838459384603846138462384633846438465384663846738468384693847038471384723847338474384753847638477384783847938480384813848238483384843848538486384873848838489384903849138492384933849438495384963849738498384993850038501385023850338504385053850638507385083850938510385113851238513385143851538516385173851838519385203852138522385233852438525385263852738528385293853038531385323853338534385353853638537385383853938540385413854238543385443854538546385473854838549385503855138552385533855438555385563855738558385593856038561385623856338564385653856638567385683856938570385713857238573385743857538576385773857838579385803858138582385833858438585385863858738588385893859038591385923859338594385953859638597385983859938600386013860238603386043860538606386073860838609386103861138612386133861438615386163861738618386193862038621386223862338624386253862638627386283862938630386313863238633386343863538636386373863838639386403864138642386433864438645386463864738648386493865038651386523865338654386553865638657386583865938660386613866238663386643866538666386673866838669386703867138672386733867438675386763867738678386793868038681386823868338684386853868638687386883868938690386913869238693386943869538696386973869838699387003870138702387033870438705387063870738708387093871038711387123871338714387153871638717387183871938720387213872238723387243872538726387273872838729387303873138732387333873438735387363873738738387393874038741387423874338744387453874638747387483874938750387513875238753387543875538756387573875838759387603876138762387633876438765387663876738768387693877038771387723877338774387753877638777387783877938780387813878238783387843878538786387873878838789387903879138792387933879438795387963879738798387993880038801388023880338804388053880638807388083880938810388113881238813388143881538816388173881838819388203882138822388233882438825388263882738828388293883038831388323883338834388353883638837388383883938840388413884238843388443884538846388473884838849388503885138852388533885438855388563885738858388593886038861388623886338864388653886638867388683886938870388713887238873388743887538876388773887838879388803888138882388833888438885388863888738888388893889038891388923889338894388953889638897388983889938900389013890238903389043890538906389073890838909389103891138912389133891438915389163891738918389193892038921389223892338924389253892638927389283892938930389313893238933389343893538936389373893838939389403894138942389433894438945389463894738948389493895038951389523895338954389553895638957389583895938960389613896238963389643896538966389673896838969389703897138972389733897438975389763897738978389793898038981389823898338984389853898638987389883898938990389913899238993389943899538996389973899838999390003900139002390033900439005390063900739008390093901039011390123901339014390153901639017390183901939020390213902239023390243902539026390273902839029390303903139032390333903439035390363903739038390393904039041390423904339044390453904639047390483904939050390513905239053390543905539056390573905839059390603906139062390633906439065390663906739068390693907039071390723907339074390753907639077390783907939080390813908239083390843908539086390873908839089390903909139092390933909439095390963909739098390993910039101391023910339104391053910639107391083910939110391113911239113391143911539116391173911839119391203912139122391233912439125391263912739128391293913039131391323913339134391353913639137391383913939140391413914239143391443914539146391473914839149391503915139152391533915439155391563915739158391593916039161391623916339164391653916639167391683916939170391713917239173391743917539176391773917839179391803918139182391833918439185391863918739188391893919039191391923919339194391953919639197391983919939200392013920239203392043920539206392073920839209392103921139212392133921439215392163921739218392193922039221392223922339224392253922639227392283922939230392313923239233392343923539236392373923839239392403924139242392433924439245392463924739248392493925039251392523925339254392553925639257392583925939260392613926239263392643926539266392673926839269392703927139272392733927439275392763927739278392793928039281392823928339284392853928639287392883928939290392913929239293392943929539296392973929839299393003930139302393033930439305393063930739308393093931039311393123931339314393153931639317393183931939320393213932239323393243932539326393273932839329393303933139332393333933439335393363933739338393393934039341393423934339344393453934639347393483934939350393513935239353393543935539356393573935839359393603936139362393633936439365393663936739368393693937039371393723937339374393753937639377393783937939380393813938239383393843938539386393873938839389393903939139392393933939439395393963939739398393993940039401394023940339404394053940639407394083940939410394113941239413394143941539416394173941839419394203942139422394233942439425394263942739428394293943039431394323943339434394353943639437394383943939440394413944239443394443944539446394473944839449394503945139452394533945439455394563945739458394593946039461394623946339464394653946639467394683946939470394713947239473394743947539476394773947839479394803948139482394833948439485394863948739488394893949039491394923949339494394953949639497394983949939500395013950239503395043950539506395073950839509395103951139512395133951439515395163951739518395193952039521395223952339524395253952639527395283952939530395313953239533395343953539536395373953839539395403954139542395433954439545395463954739548395493955039551395523955339554395553955639557395583955939560395613956239563395643956539566395673956839569395703957139572395733957439575395763957739578395793958039581395823958339584395853958639587395883958939590395913959239593395943959539596395973959839599396003960139602396033960439605396063960739608396093961039611396123961339614396153961639617396183961939620396213962239623396243962539626396273962839629396303963139632396333963439635396363963739638396393964039641396423964339644396453964639647396483964939650396513965239653396543965539656396573965839659396603966139662396633966439665396663966739668396693967039671396723967339674396753967639677396783967939680396813968239683396843968539686396873968839689396903969139692396933969439695396963969739698396993970039701397023970339704397053970639707397083970939710397113971239713397143971539716397173971839719397203972139722397233972439725397263972739728397293973039731397323973339734397353973639737397383973939740397413974239743397443974539746397473974839749397503975139752397533975439755397563975739758397593976039761397623976339764397653976639767397683976939770397713977239773397743977539776397773977839779397803978139782397833978439785397863978739788397893979039791397923979339794397953979639797397983979939800398013980239803398043980539806398073980839809398103981139812398133981439815398163981739818398193982039821398223982339824398253982639827398283982939830398313983239833398343983539836398373983839839398403984139842398433984439845398463984739848398493985039851398523985339854398553985639857398583985939860398613986239863398643986539866398673986839869398703987139872398733987439875398763987739878398793988039881398823988339884398853988639887398883988939890398913989239893398943989539896398973989839899399003990139902399033990439905399063990739908399093991039911399123991339914399153991639917399183991939920399213992239923399243992539926399273992839929399303993139932399333993439935399363993739938399393994039941399423994339944399453994639947399483994939950399513995239953399543995539956399573995839959399603996139962399633996439965399663996739968399693997039971399723997339974399753997639977399783997939980399813998239983399843998539986399873998839989399903999139992399933999439995399963999739998399994000040001400024000340004400054000640007400084000940010400114001240013400144001540016400174001840019400204002140022400234002440025400264002740028400294003040031400324003340034400354003640037400384003940040400414004240043400444004540046400474004840049400504005140052400534005440055400564005740058400594006040061400624006340064400654006640067400684006940070400714007240073400744007540076400774007840079400804008140082400834008440085400864008740088400894009040091400924009340094400954009640097400984009940100401014010240103401044010540106401074010840109401104011140112401134011440115401164011740118401194012040121401224012340124401254012640127401284012940130401314013240133401344013540136401374013840139401404014140142401434014440145401464014740148401494015040151401524015340154401554015640157401584015940160401614016240163401644016540166401674016840169401704017140172401734017440175401764017740178401794018040181401824018340184401854018640187401884018940190401914019240193401944019540196401974019840199402004020140202402034020440205402064020740208402094021040211402124021340214402154021640217402184021940220402214022240223402244022540226402274022840229402304023140232402334023440235402364023740238402394024040241402424024340244402454024640247402484024940250402514025240253402544025540256402574025840259402604026140262402634026440265402664026740268402694027040271402724027340274402754027640277402784027940280402814028240283402844028540286402874028840289402904029140292402934029440295402964029740298402994030040301403024030340304403054030640307403084030940310403114031240313403144031540316403174031840319403204032140322403234032440325403264032740328403294033040331403324033340334403354033640337403384033940340403414034240343403444034540346403474034840349403504035140352403534035440355403564035740358403594036040361403624036340364403654036640367403684036940370403714037240373403744037540376403774037840379403804038140382403834038440385403864038740388403894039040391403924039340394403954039640397403984039940400404014040240403404044040540406404074040840409404104041140412404134041440415404164041740418404194042040421404224042340424404254042640427404284042940430404314043240433404344043540436404374043840439404404044140442404434044440445404464044740448404494045040451404524045340454404554045640457404584045940460404614046240463404644046540466404674046840469404704047140472404734047440475404764047740478404794048040481404824048340484404854048640487404884048940490404914049240493404944049540496404974049840499405004050140502405034050440505405064050740508405094051040511405124051340514405154051640517405184051940520405214052240523405244052540526405274052840529405304053140532405334053440535405364053740538405394054040541405424054340544405454054640547405484054940550405514055240553405544055540556405574055840559405604056140562405634056440565405664056740568405694057040571405724057340574405754057640577405784057940580405814058240583405844058540586405874058840589405904059140592405934059440595405964059740598405994060040601406024060340604406054060640607406084060940610406114061240613406144061540616406174061840619406204062140622406234062440625406264062740628406294063040631406324063340634406354063640637406384063940640406414064240643406444064540646406474064840649406504065140652406534065440655406564065740658406594066040661406624066340664406654066640667406684066940670406714067240673406744067540676406774067840679406804068140682406834068440685406864068740688406894069040691406924069340694406954069640697406984069940700407014070240703407044070540706407074070840709407104071140712407134071440715407164071740718407194072040721407224072340724407254072640727407284072940730407314073240733407344073540736407374073840739407404074140742407434074440745407464074740748407494075040751407524075340754407554075640757407584075940760407614076240763407644076540766407674076840769407704077140772407734077440775407764077740778407794078040781407824078340784407854078640787407884078940790407914079240793407944079540796407974079840799408004080140802408034080440805408064080740808408094081040811408124081340814408154081640817408184081940820408214082240823408244082540826408274082840829408304083140832408334083440835408364083740838408394084040841408424084340844408454084640847408484084940850408514085240853408544085540856408574085840859408604086140862408634086440865408664086740868408694087040871408724087340874408754087640877408784087940880408814088240883408844088540886408874088840889408904089140892408934089440895408964089740898408994090040901409024090340904409054090640907409084090940910409114091240913409144091540916409174091840919409204092140922409234092440925409264092740928409294093040931409324093340934409354093640937409384093940940409414094240943409444094540946409474094840949409504095140952409534095440955409564095740958409594096040961409624096340964409654096640967409684096940970409714097240973409744097540976409774097840979409804098140982409834098440985409864098740988409894099040991409924099340994409954099640997409984099941000410014100241003410044100541006410074100841009410104101141012410134101441015410164101741018410194102041021410224102341024410254102641027410284102941030410314103241033410344103541036410374103841039410404104141042410434104441045410464104741048410494105041051410524105341054410554105641057410584105941060410614106241063410644106541066410674106841069410704107141072410734107441075410764107741078410794108041081410824108341084410854108641087410884108941090410914109241093410944109541096410974109841099411004110141102411034110441105411064110741108411094111041111411124111341114411154111641117411184111941120411214112241123411244112541126411274112841129411304113141132411334113441135411364113741138411394114041141411424114341144411454114641147411484114941150411514115241153411544115541156411574115841159411604116141162411634116441165411664116741168411694117041171411724117341174411754117641177411784117941180411814118241183411844118541186411874118841189411904119141192411934119441195411964119741198411994120041201412024120341204412054120641207412084120941210412114121241213412144121541216412174121841219412204122141222412234122441225412264122741228412294123041231412324123341234412354123641237412384123941240412414124241243412444124541246412474124841249412504125141252412534125441255412564125741258412594126041261412624126341264412654126641267412684126941270412714127241273412744127541276412774127841279412804128141282412834128441285412864128741288412894129041291412924129341294412954129641297412984129941300413014130241303413044130541306413074130841309413104131141312413134131441315413164131741318413194132041321413224132341324413254132641327413284132941330413314133241333413344133541336413374133841339413404134141342413434134441345413464134741348413494135041351413524135341354413554135641357413584135941360413614136241363413644136541366413674136841369413704137141372413734137441375413764137741378413794138041381413824138341384413854138641387413884138941390413914139241393413944139541396413974139841399414004140141402414034140441405414064140741408414094141041411414124141341414414154141641417414184141941420414214142241423414244142541426414274142841429414304143141432414334143441435414364143741438414394144041441414424144341444414454144641447414484144941450414514145241453414544145541456414574145841459414604146141462414634146441465414664146741468414694147041471414724147341474414754147641477414784147941480414814148241483414844148541486414874148841489414904149141492414934149441495414964149741498414994150041501415024150341504415054150641507415084150941510415114151241513415144151541516415174151841519415204152141522415234152441525415264152741528415294153041531415324153341534415354153641537415384153941540415414154241543415444154541546415474154841549415504155141552415534155441555415564155741558415594156041561415624156341564415654156641567415684156941570415714157241573415744157541576415774157841579415804158141582415834158441585415864158741588415894159041591415924159341594415954159641597415984159941600416014160241603416044160541606416074160841609416104161141612416134161441615416164161741618416194162041621416224162341624416254162641627416284162941630416314163241633416344163541636416374163841639416404164141642416434164441645416464164741648416494165041651416524165341654416554165641657416584165941660416614166241663416644166541666416674166841669416704167141672416734167441675416764167741678416794168041681416824168341684416854168641687416884168941690416914169241693416944169541696416974169841699417004170141702417034170441705417064170741708417094171041711417124171341714417154171641717417184171941720417214172241723417244172541726417274172841729417304173141732417334173441735417364173741738417394174041741417424174341744417454174641747417484174941750417514175241753417544175541756417574175841759417604176141762417634176441765417664176741768417694177041771417724177341774417754177641777417784177941780417814178241783417844178541786417874178841789417904179141792417934179441795417964179741798417994180041801418024180341804418054180641807418084180941810418114181241813418144181541816418174181841819418204182141822418234182441825418264182741828418294183041831418324183341834418354183641837418384183941840418414184241843418444184541846418474184841849418504185141852418534185441855418564185741858418594186041861418624186341864418654186641867418684186941870418714187241873418744187541876418774187841879418804188141882418834188441885418864188741888418894189041891418924189341894418954189641897418984189941900419014190241903419044190541906419074190841909419104191141912419134191441915419164191741918419194192041921419224192341924419254192641927419284192941930419314193241933419344193541936419374193841939419404194141942419434194441945419464194741948419494195041951419524195341954419554195641957419584195941960419614196241963419644196541966419674196841969419704197141972419734197441975419764197741978419794198041981419824198341984419854198641987419884198941990419914199241993419944199541996419974199841999420004200142002420034200442005420064200742008420094201042011420124201342014420154201642017420184201942020420214202242023420244202542026420274202842029420304203142032420334203442035420364203742038420394204042041420424204342044420454204642047420484204942050420514205242053420544205542056420574205842059420604206142062420634206442065420664206742068420694207042071420724207342074420754207642077420784207942080420814208242083420844208542086420874208842089420904209142092420934209442095420964209742098420994210042101421024210342104421054210642107421084210942110421114211242113421144211542116421174211842119421204212142122421234212442125421264212742128421294213042131421324213342134421354213642137421384213942140421414214242143421444214542146421474214842149421504215142152421534215442155421564215742158421594216042161421624216342164421654216642167421684216942170421714217242173421744217542176421774217842179421804218142182421834218442185421864218742188421894219042191421924219342194421954219642197421984219942200422014220242203422044220542206422074220842209422104221142212422134221442215422164221742218422194222042221422224222342224422254222642227422284222942230422314223242233422344223542236422374223842239422404224142242422434224442245422464224742248422494225042251422524225342254422554225642257422584225942260422614226242263422644226542266422674226842269422704227142272422734227442275422764227742278422794228042281422824228342284422854228642287422884228942290422914229242293422944229542296422974229842299423004230142302423034230442305423064230742308423094231042311423124231342314423154231642317423184231942320423214232242323423244232542326423274232842329423304233142332423334233442335423364233742338423394234042341423424234342344423454234642347423484234942350423514235242353423544235542356423574235842359423604236142362423634236442365423664236742368423694237042371423724237342374423754237642377423784237942380423814238242383423844238542386423874238842389423904239142392423934239442395423964239742398423994240042401424024240342404424054240642407424084240942410424114241242413424144241542416424174241842419424204242142422424234242442425424264242742428424294243042431424324243342434424354243642437424384243942440424414244242443424444244542446424474244842449424504245142452424534245442455424564245742458424594246042461424624246342464424654246642467424684246942470424714247242473424744247542476424774247842479424804248142482424834248442485424864248742488424894249042491424924249342494424954249642497424984249942500425014250242503425044250542506425074250842509425104251142512425134251442515425164251742518425194252042521425224252342524425254252642527425284252942530425314253242533425344253542536425374253842539425404254142542425434254442545425464254742548425494255042551425524255342554425554255642557425584255942560425614256242563425644256542566425674256842569425704257142572425734257442575425764257742578425794258042581425824258342584425854258642587425884258942590425914259242593425944259542596425974259842599426004260142602426034260442605426064260742608426094261042611426124261342614426154261642617426184261942620426214262242623426244262542626426274262842629426304263142632426334263442635426364263742638426394264042641426424264342644426454264642647426484264942650426514265242653426544265542656426574265842659426604266142662426634266442665426664266742668426694267042671426724267342674426754267642677426784267942680426814268242683426844268542686426874268842689426904269142692426934269442695426964269742698426994270042701427024270342704427054270642707427084270942710427114271242713427144271542716427174271842719427204272142722427234272442725427264272742728427294273042731427324273342734427354273642737427384273942740427414274242743427444274542746427474274842749427504275142752427534275442755427564275742758427594276042761427624276342764427654276642767427684276942770427714277242773427744277542776427774277842779427804278142782427834278442785427864278742788427894279042791427924279342794427954279642797427984279942800428014280242803428044280542806428074280842809428104281142812428134281442815428164281742818428194282042821428224282342824428254282642827428284282942830428314283242833428344283542836428374283842839428404284142842428434284442845428464284742848428494285042851428524285342854428554285642857428584285942860428614286242863428644286542866428674286842869428704287142872428734287442875428764287742878428794288042881428824288342884428854288642887428884288942890428914289242893428944289542896428974289842899429004290142902429034290442905429064290742908429094291042911429124291342914429154291642917429184291942920429214292242923429244292542926429274292842929429304293142932429334293442935429364293742938429394294042941429424294342944429454294642947429484294942950429514295242953429544295542956429574295842959429604296142962429634296442965429664296742968429694297042971429724297342974429754297642977429784297942980429814298242983429844298542986429874298842989429904299142992429934299442995429964299742998429994300043001430024300343004430054300643007430084300943010430114301243013430144301543016430174301843019430204302143022430234302443025430264302743028430294303043031430324303343034430354303643037430384303943040430414304243043430444304543046430474304843049430504305143052430534305443055430564305743058430594306043061430624306343064430654306643067430684306943070430714307243073430744307543076430774307843079430804308143082430834308443085430864308743088430894309043091430924309343094430954309643097430984309943100431014310243103431044310543106431074310843109431104311143112431134311443115431164311743118431194312043121431224312343124431254312643127431284312943130431314313243133431344313543136431374313843139431404314143142431434314443145431464314743148431494315043151431524315343154431554315643157431584315943160431614316243163431644316543166431674316843169431704317143172431734317443175431764317743178431794318043181431824318343184431854318643187431884318943190431914319243193431944319543196431974319843199432004320143202432034320443205432064320743208432094321043211432124321343214432154321643217432184321943220432214322243223432244322543226432274322843229432304323143232432334323443235432364323743238432394324043241432424324343244432454324643247432484324943250432514325243253432544325543256432574325843259432604326143262432634326443265432664326743268432694327043271432724327343274432754327643277432784327943280432814328243283432844328543286432874328843289432904329143292432934329443295432964329743298432994330043301433024330343304433054330643307433084330943310433114331243313433144331543316433174331843319433204332143322433234332443325433264332743328433294333043331433324333343334433354333643337433384333943340433414334243343433444334543346433474334843349433504335143352433534335443355433564335743358433594336043361433624336343364433654336643367433684336943370433714337243373433744337543376433774337843379433804338143382433834338443385433864338743388433894339043391433924339343394433954339643397433984339943400434014340243403434044340543406434074340843409434104341143412434134341443415434164341743418434194342043421434224342343424434254342643427434284342943430434314343243433434344343543436434374343843439434404344143442434434344443445434464344743448434494345043451434524345343454434554345643457434584345943460434614346243463434644346543466434674346843469434704347143472434734347443475434764347743478434794348043481434824348343484434854348643487434884348943490434914349243493434944349543496434974349843499435004350143502435034350443505435064350743508435094351043511435124351343514435154351643517435184351943520435214352243523435244352543526435274352843529435304353143532435334353443535435364353743538435394354043541435424354343544435454354643547435484354943550435514355243553435544355543556435574355843559435604356143562435634356443565435664356743568435694357043571435724357343574435754357643577435784357943580435814358243583435844358543586435874358843589435904359143592435934359443595435964359743598435994360043601436024360343604436054360643607436084360943610436114361243613436144361543616436174361843619436204362143622436234362443625436264362743628436294363043631436324363343634436354363643637436384363943640436414364243643436444364543646436474364843649436504365143652436534365443655436564365743658436594366043661436624366343664436654366643667436684366943670436714367243673436744367543676436774367843679436804368143682436834368443685436864368743688436894369043691436924369343694436954369643697436984369943700437014370243703437044370543706437074370843709437104371143712437134371443715437164371743718437194372043721437224372343724437254372643727437284372943730437314373243733437344373543736437374373843739437404374143742437434374443745437464374743748437494375043751437524375343754437554375643757437584375943760437614376243763437644376543766437674376843769437704377143772437734377443775437764377743778437794378043781437824378343784437854378643787437884378943790437914379243793437944379543796437974379843799438004380143802438034380443805438064380743808438094381043811438124381343814438154381643817438184381943820438214382243823438244382543826438274382843829438304383143832438334383443835438364383743838438394384043841438424384343844438454384643847438484384943850438514385243853438544385543856438574385843859438604386143862438634386443865438664386743868438694387043871438724387343874438754387643877438784387943880438814388243883438844388543886438874388843889438904389143892438934389443895438964389743898438994390043901439024390343904439054390643907439084390943910439114391243913439144391543916439174391843919439204392143922439234392443925439264392743928439294393043931439324393343934439354393643937439384393943940439414394243943439444394543946439474394843949439504395143952439534395443955439564395743958439594396043961439624396343964439654396643967439684396943970439714397243973439744397543976439774397843979439804398143982439834398443985439864398743988439894399043991439924399343994439954399643997439984399944000440014400244003440044400544006440074400844009440104401144012440134401444015440164401744018440194402044021440224402344024440254402644027440284402944030440314403244033440344403544036440374403844039440404404144042440434404444045440464404744048440494405044051440524405344054440554405644057440584405944060440614406244063440644406544066440674406844069440704407144072440734407444075440764407744078440794408044081440824408344084440854408644087440884408944090440914409244093440944409544096440974409844099441004410144102441034410444105441064410744108441094411044111441124411344114441154411644117441184411944120441214412244123441244412544126441274412844129441304413144132441334413444135441364413744138441394414044141441424414344144441454414644147441484414944150441514415244153441544415544156441574415844159441604416144162441634416444165441664416744168441694417044171441724417344174441754417644177441784417944180441814418244183441844418544186441874418844189441904419144192441934419444195441964419744198441994420044201442024420344204442054420644207442084420944210442114421244213442144421544216442174421844219442204422144222442234422444225442264422744228442294423044231442324423344234442354423644237442384423944240442414424244243442444424544246442474424844249442504425144252442534425444255442564425744258442594426044261442624426344264442654426644267442684426944270442714427244273442744427544276442774427844279442804428144282442834428444285442864428744288442894429044291442924429344294442954429644297442984429944300443014430244303443044430544306443074430844309443104431144312443134431444315443164431744318443194432044321443224432344324443254432644327443284432944330443314433244333443344433544336443374433844339443404434144342443434434444345443464434744348443494435044351443524435344354443554435644357443584435944360443614436244363443644436544366443674436844369443704437144372443734437444375443764437744378443794438044381443824438344384443854438644387443884438944390443914439244393443944439544396443974439844399444004440144402444034440444405444064440744408444094441044411444124441344414444154441644417444184441944420444214442244423444244442544426444274442844429444304443144432444334443444435444364443744438444394444044441444424444344444444454444644447444484444944450444514445244453444544445544456444574445844459444604446144462444634446444465444664446744468444694447044471444724447344474444754447644477444784447944480444814448244483444844448544486444874448844489444904449144492444934449444495444964449744498444994450044501445024450344504445054450644507445084450944510445114451244513445144451544516445174451844519445204452144522445234452444525445264452744528445294453044531445324453344534445354453644537445384453944540445414454244543445444454544546445474454844549445504455144552445534455444555445564455744558445594456044561445624456344564445654456644567445684456944570445714457244573445744457544576445774457844579445804458144582445834458444585445864458744588445894459044591445924459344594445954459644597445984459944600446014460244603446044460544606446074460844609446104461144612446134461444615446164461744618446194462044621446224462344624446254462644627446284462944630446314463244633446344463544636446374463844639446404464144642446434464444645446464464744648446494465044651446524465344654446554465644657446584465944660446614466244663446644466544666446674466844669446704467144672446734467444675446764467744678446794468044681446824468344684446854468644687446884468944690446914469244693446944469544696446974469844699447004470144702447034470444705447064470744708447094471044711447124471344714447154471644717447184471944720447214472244723447244472544726447274472844729447304473144732447334473444735447364473744738447394474044741447424474344744447454474644747447484474944750447514475244753447544475544756447574475844759447604476144762447634476444765447664476744768447694477044771447724477344774447754477644777447784477944780447814478244783447844478544786447874478844789447904479144792447934479444795447964479744798447994480044801448024480344804448054480644807448084480944810448114481244813448144481544816448174481844819448204482144822448234482444825448264482744828448294483044831448324483344834448354483644837448384483944840448414484244843448444484544846448474484844849448504485144852448534485444855448564485744858448594486044861448624486344864448654486644867448684486944870448714487244873448744487544876448774487844879448804488144882448834488444885448864488744888448894489044891448924489344894448954489644897448984489944900449014490244903449044490544906449074490844909449104491144912449134491444915449164491744918449194492044921449224492344924449254492644927449284492944930449314493244933449344493544936449374493844939449404494144942449434494444945449464494744948449494495044951449524495344954449554495644957449584495944960449614496244963449644496544966449674496844969449704497144972449734497444975449764497744978449794498044981449824498344984449854498644987449884498944990449914499244993449944499544996449974499844999450004500145002450034500445005450064500745008450094501045011450124501345014450154501645017450184501945020450214502245023450244502545026450274502845029450304503145032450334503445035450364503745038450394504045041450424504345044450454504645047450484504945050450514505245053450544505545056450574505845059450604506145062450634506445065450664506745068450694507045071450724507345074450754507645077450784507945080450814508245083450844508545086450874508845089450904509145092450934509445095450964509745098450994510045101451024510345104451054510645107451084510945110451114511245113451144511545116451174511845119451204512145122451234512445125451264512745128451294513045131451324513345134451354513645137451384513945140451414514245143451444514545146451474514845149451504515145152451534515445155451564515745158451594516045161451624516345164451654516645167451684516945170451714517245173451744517545176451774517845179451804518145182451834518445185451864518745188451894519045191451924519345194451954519645197451984519945200452014520245203452044520545206452074520845209452104521145212452134521445215452164521745218452194522045221452224522345224452254522645227452284522945230452314523245233452344523545236452374523845239452404524145242452434524445245452464524745248452494525045251452524525345254452554525645257452584525945260452614526245263452644526545266452674526845269452704527145272452734527445275452764527745278452794528045281452824528345284452854528645287452884528945290452914529245293452944529545296452974529845299453004530145302453034530445305453064530745308453094531045311453124531345314453154531645317453184531945320453214532245323453244532545326453274532845329453304533145332453334533445335453364533745338453394534045341453424534345344453454534645347453484534945350453514535245353453544535545356453574535845359453604536145362453634536445365453664536745368453694537045371453724537345374453754537645377453784537945380453814538245383453844538545386453874538845389453904539145392453934539445395453964539745398453994540045401454024540345404454054540645407454084540945410454114541245413454144541545416454174541845419454204542145422454234542445425454264542745428454294543045431454324543345434454354543645437454384543945440454414544245443454444544545446454474544845449454504545145452454534545445455454564545745458454594546045461454624546345464454654546645467454684546945470454714547245473454744547545476454774547845479454804548145482454834548445485454864548745488454894549045491454924549345494454954549645497454984549945500455014550245503455044550545506455074550845509455104551145512455134551445515455164551745518455194552045521455224552345524455254552645527455284552945530455314553245533455344553545536455374553845539455404554145542455434554445545455464554745548455494555045551455524555345554455554555645557455584555945560455614556245563455644556545566455674556845569455704557145572455734557445575455764557745578455794558045581455824558345584455854558645587455884558945590455914559245593455944559545596455974559845599456004560145602456034560445605456064560745608456094561045611456124561345614456154561645617456184561945620456214562245623456244562545626456274562845629456304563145632456334563445635456364563745638456394564045641456424564345644456454564645647456484564945650456514565245653456544565545656456574565845659456604566145662456634566445665456664566745668456694567045671456724567345674456754567645677456784567945680456814568245683456844568545686456874568845689456904569145692456934569445695456964569745698456994570045701457024570345704457054570645707457084570945710457114571245713457144571545716457174571845719457204572145722457234572445725457264572745728457294573045731457324573345734457354573645737457384573945740457414574245743457444574545746457474574845749457504575145752457534575445755457564575745758457594576045761457624576345764457654576645767457684576945770457714577245773457744577545776457774577845779457804578145782457834578445785457864578745788457894579045791457924579345794457954579645797457984579945800458014580245803458044580545806458074580845809458104581145812458134581445815458164581745818458194582045821458224582345824458254582645827458284582945830458314583245833458344583545836458374583845839458404584145842458434584445845458464584745848458494585045851458524585345854458554585645857458584585945860458614586245863458644586545866458674586845869458704587145872458734587445875458764587745878458794588045881458824588345884458854588645887458884588945890458914589245893458944589545896458974589845899459004590145902459034590445905459064590745908459094591045911459124591345914459154591645917459184591945920459214592245923459244592545926459274592845929459304593145932459334593445935459364593745938459394594045941459424594345944459454594645947459484594945950459514595245953459544595545956459574595845959459604596145962459634596445965459664596745968459694597045971459724597345974459754597645977459784597945980459814598245983459844598545986459874598845989459904599145992459934599445995459964599745998459994600046001460024600346004460054600646007460084600946010460114601246013460144601546016460174601846019460204602146022460234602446025460264602746028460294603046031460324603346034460354603646037460384603946040460414604246043460444604546046460474604846049460504605146052460534605446055460564605746058460594606046061460624606346064460654606646067460684606946070460714607246073460744607546076460774607846079460804608146082460834608446085460864608746088460894609046091460924609346094460954609646097460984609946100461014610246103461044610546106461074610846109461104611146112461134611446115461164611746118461194612046121461224612346124461254612646127461284612946130461314613246133461344613546136461374613846139461404614146142461434614446145461464614746148461494615046151461524615346154461554615646157461584615946160461614616246163461644616546166461674616846169461704617146172461734617446175461764617746178461794618046181461824618346184461854618646187461884618946190461914619246193461944619546196461974619846199462004620146202462034620446205462064620746208462094621046211462124621346214462154621646217462184621946220462214622246223462244622546226462274622846229462304623146232462334623446235462364623746238462394624046241462424624346244462454624646247462484624946250462514625246253462544625546256462574625846259462604626146262462634626446265462664626746268462694627046271462724627346274462754627646277462784627946280462814628246283462844628546286462874628846289462904629146292462934629446295462964629746298462994630046301463024630346304463054630646307463084630946310463114631246313463144631546316463174631846319463204632146322463234632446325463264632746328463294633046331463324633346334463354633646337463384633946340463414634246343463444634546346463474634846349463504635146352463534635446355463564635746358463594636046361463624636346364463654636646367463684636946370463714637246373463744637546376463774637846379463804638146382463834638446385463864638746388463894639046391463924639346394463954639646397463984639946400464014640246403464044640546406464074640846409464104641146412464134641446415464164641746418464194642046421464224642346424464254642646427464284642946430464314643246433464344643546436464374643846439464404644146442464434644446445464464644746448464494645046451464524645346454464554645646457464584645946460464614646246463464644646546466464674646846469464704647146472464734647446475464764647746478464794648046481464824648346484464854648646487464884648946490464914649246493464944649546496464974649846499465004650146502465034650446505465064650746508465094651046511465124651346514465154651646517465184651946520465214652246523465244652546526465274652846529465304653146532465334653446535465364653746538465394654046541465424654346544465454654646547465484654946550465514655246553465544655546556465574655846559465604656146562465634656446565465664656746568465694657046571465724657346574465754657646577465784657946580465814658246583465844658546586465874658846589465904659146592465934659446595465964659746598465994660046601466024660346604466054660646607466084660946610466114661246613466144661546616466174661846619466204662146622466234662446625466264662746628466294663046631466324663346634466354663646637466384663946640466414664246643466444664546646466474664846649466504665146652466534665446655466564665746658466594666046661466624666346664466654666646667466684666946670466714667246673466744667546676466774667846679466804668146682466834668446685466864668746688466894669046691466924669346694466954669646697466984669946700467014670246703467044670546706467074670846709467104671146712467134671446715467164671746718467194672046721467224672346724467254672646727467284672946730467314673246733467344673546736467374673846739467404674146742467434674446745467464674746748467494675046751467524675346754467554675646757467584675946760467614676246763467644676546766467674676846769467704677146772467734677446775467764677746778467794678046781467824678346784467854678646787467884678946790467914679246793467944679546796467974679846799468004680146802468034680446805468064680746808468094681046811468124681346814468154681646817468184681946820468214682246823468244682546826468274682846829468304683146832468334683446835468364683746838468394684046841468424684346844468454684646847468484684946850468514685246853468544685546856468574685846859468604686146862468634686446865468664686746868468694687046871468724687346874468754687646877468784687946880468814688246883468844688546886468874688846889468904689146892468934689446895468964689746898468994690046901469024690346904469054690646907469084690946910469114691246913469144691546916469174691846919469204692146922469234692446925469264692746928469294693046931469324693346934469354693646937469384693946940469414694246943469444694546946469474694846949469504695146952469534695446955469564695746958469594696046961469624696346964469654696646967469684696946970469714697246973469744697546976469774697846979469804698146982469834698446985469864698746988469894699046991469924699346994469954699646997469984699947000470014700247003470044700547006470074700847009470104701147012470134701447015470164701747018470194702047021470224702347024470254702647027470284702947030470314703247033470344703547036470374703847039470404704147042470434704447045470464704747048470494705047051470524705347054470554705647057470584705947060470614706247063470644706547066470674706847069470704707147072470734707447075470764707747078470794708047081470824708347084470854708647087470884708947090470914709247093470944709547096470974709847099471004710147102471034710447105471064710747108471094711047111471124711347114471154711647117471184711947120471214712247123471244712547126471274712847129471304713147132471334713447135471364713747138471394714047141471424714347144471454714647147471484714947150471514715247153471544715547156471574715847159471604716147162471634716447165471664716747168471694717047171471724717347174471754717647177471784717947180471814718247183471844718547186471874718847189471904719147192471934719447195471964719747198471994720047201472024720347204472054720647207472084720947210472114721247213472144721547216472174721847219472204722147222472234722447225472264722747228472294723047231472324723347234472354723647237472384723947240472414724247243472444724547246472474724847249472504725147252472534725447255472564725747258472594726047261472624726347264472654726647267472684726947270472714727247273472744727547276472774727847279472804728147282472834728447285472864728747288472894729047291472924729347294472954729647297472984729947300473014730247303473044730547306473074730847309473104731147312473134731447315473164731747318473194732047321473224732347324473254732647327473284732947330473314733247333473344733547336473374733847339473404734147342473434734447345473464734747348473494735047351473524735347354473554735647357473584735947360473614736247363473644736547366473674736847369473704737147372473734737447375473764737747378473794738047381473824738347384473854738647387473884738947390473914739247393473944739547396473974739847399474004740147402474034740447405474064740747408474094741047411474124741347414474154741647417474184741947420474214742247423474244742547426474274742847429474304743147432474334743447435474364743747438474394744047441474424744347444474454744647447474484744947450474514745247453474544745547456474574745847459474604746147462474634746447465474664746747468474694747047471474724747347474474754747647477474784747947480474814748247483474844748547486474874748847489474904749147492474934749447495474964749747498474994750047501475024750347504475054750647507475084750947510475114751247513475144751547516475174751847519475204752147522475234752447525475264752747528475294753047531475324753347534475354753647537475384753947540475414754247543475444754547546475474754847549475504755147552475534755447555475564755747558475594756047561475624756347564475654756647567475684756947570475714757247573475744757547576475774757847579475804758147582475834758447585475864758747588475894759047591475924759347594475954759647597475984759947600476014760247603476044760547606476074760847609476104761147612476134761447615476164761747618476194762047621476224762347624476254762647627476284762947630476314763247633476344763547636476374763847639476404764147642476434764447645476464764747648476494765047651476524765347654476554765647657476584765947660476614766247663476644766547666476674766847669476704767147672476734767447675476764767747678476794768047681476824768347684476854768647687476884768947690476914769247693476944769547696476974769847699477004770147702477034770447705477064770747708477094771047711477124771347714477154771647717477184771947720477214772247723477244772547726477274772847729477304773147732477334773447735477364773747738477394774047741477424774347744477454774647747477484774947750477514775247753477544775547756477574775847759477604776147762477634776447765477664776747768477694777047771477724777347774477754777647777477784777947780477814778247783477844778547786477874778847789477904779147792477934779447795477964779747798477994780047801478024780347804478054780647807478084780947810478114781247813478144781547816478174781847819478204782147822478234782447825478264782747828478294783047831478324783347834478354783647837478384783947840478414784247843478444784547846478474784847849478504785147852478534785447855478564785747858478594786047861478624786347864478654786647867478684786947870478714787247873478744787547876478774787847879478804788147882478834788447885478864788747888478894789047891478924789347894478954789647897478984789947900479014790247903479044790547906479074790847909479104791147912479134791447915479164791747918479194792047921479224792347924479254792647927479284792947930479314793247933479344793547936479374793847939479404794147942479434794447945479464794747948479494795047951479524795347954479554795647957479584795947960479614796247963479644796547966479674796847969479704797147972479734797447975479764797747978479794798047981479824798347984479854798647987479884798947990479914799247993479944799547996479974799847999480004800148002480034800448005480064800748008480094801048011480124801348014480154801648017480184801948020480214802248023480244802548026480274802848029480304803148032480334803448035480364803748038480394804048041480424804348044480454804648047480484804948050480514805248053480544805548056480574805848059480604806148062480634806448065480664806748068480694807048071480724807348074480754807648077480784807948080480814808248083480844808548086480874808848089480904809148092480934809448095480964809748098480994810048101481024810348104481054810648107481084810948110481114811248113481144811548116481174811848119481204812148122481234812448125481264812748128481294813048131481324813348134481354813648137481384813948140481414814248143481444814548146481474814848149481504815148152481534815448155481564815748158481594816048161481624816348164481654816648167481684816948170481714817248173481744817548176481774817848179481804818148182481834818448185481864818748188481894819048191481924819348194481954819648197481984819948200482014820248203482044820548206482074820848209482104821148212482134821448215482164821748218482194822048221482224822348224482254822648227482284822948230482314823248233482344823548236482374823848239482404824148242482434824448245482464824748248482494825048251482524825348254482554825648257482584825948260482614826248263482644826548266482674826848269482704827148272482734827448275482764827748278482794828048281482824828348284482854828648287482884828948290482914829248293482944829548296482974829848299483004830148302483034830448305483064830748308483094831048311483124831348314483154831648317483184831948320483214832248323483244832548326483274832848329483304833148332483334833448335483364833748338483394834048341483424834348344483454834648347483484834948350483514835248353483544835548356483574835848359483604836148362483634836448365483664836748368483694837048371483724837348374483754837648377483784837948380483814838248383483844838548386483874838848389483904839148392483934839448395483964839748398483994840048401484024840348404484054840648407484084840948410484114841248413484144841548416484174841848419484204842148422484234842448425484264842748428484294843048431484324843348434484354843648437484384843948440484414844248443484444844548446484474844848449484504845148452484534845448455484564845748458484594846048461484624846348464484654846648467484684846948470484714847248473484744847548476484774847848479484804848148482484834848448485484864848748488484894849048491484924849348494484954849648497484984849948500485014850248503485044850548506485074850848509485104851148512485134851448515485164851748518485194852048521485224852348524485254852648527485284852948530485314853248533485344853548536485374853848539485404854148542485434854448545485464854748548485494855048551485524855348554485554855648557485584855948560485614856248563485644856548566485674856848569485704857148572485734857448575485764857748578485794858048581485824858348584485854858648587485884858948590485914859248593485944859548596485974859848599486004860148602486034860448605486064860748608486094861048611486124861348614486154861648617486184861948620486214862248623486244862548626486274862848629486304863148632486334863448635486364863748638486394864048641486424864348644486454864648647486484864948650486514865248653486544865548656486574865848659486604866148662486634866448665486664866748668486694867048671486724867348674486754867648677486784867948680486814868248683486844868548686486874868848689486904869148692486934869448695486964869748698486994870048701487024870348704487054870648707487084870948710487114871248713487144871548716487174871848719487204872148722487234872448725487264872748728487294873048731487324873348734487354873648737487384873948740487414874248743487444874548746487474874848749487504875148752487534875448755487564875748758487594876048761487624876348764487654876648767487684876948770487714877248773487744877548776487774877848779487804878148782487834878448785487864878748788487894879048791487924879348794487954879648797487984879948800488014880248803488044880548806488074880848809488104881148812488134881448815488164881748818488194882048821488224882348824488254882648827488284882948830488314883248833488344883548836488374883848839488404884148842488434884448845488464884748848488494885048851488524885348854488554885648857488584885948860488614886248863488644886548866488674886848869488704887148872488734887448875488764887748878488794888048881488824888348884488854888648887488884888948890488914889248893488944889548896488974889848899489004890148902489034890448905489064890748908489094891048911489124891348914489154891648917489184891948920489214892248923489244892548926489274892848929489304893148932489334893448935489364893748938489394894048941489424894348944489454894648947489484894948950489514895248953489544895548956489574895848959489604896148962489634896448965489664896748968489694897048971489724897348974489754897648977489784897948980489814898248983489844898548986489874898848989489904899148992489934899448995489964899748998489994900049001490024900349004490054900649007490084900949010490114901249013490144901549016490174901849019490204902149022490234902449025490264902749028490294903049031490324903349034490354903649037490384903949040490414904249043490444904549046490474904849049490504905149052490534905449055490564905749058490594906049061490624906349064490654906649067490684906949070490714907249073490744907549076490774907849079490804908149082490834908449085490864908749088490894909049091490924909349094490954909649097490984909949100491014910249103491044910549106491074910849109491104911149112491134911449115491164911749118491194912049121491224912349124491254912649127491284912949130491314913249133491344913549136491374913849139491404914149142491434914449145491464914749148491494915049151491524915349154491554915649157491584915949160491614916249163491644916549166491674916849169491704917149172491734917449175491764917749178491794918049181491824918349184491854918649187491884918949190491914919249193491944919549196491974919849199492004920149202492034920449205492064920749208492094921049211492124921349214492154921649217492184921949220492214922249223492244922549226492274922849229492304923149232492334923449235492364923749238492394924049241492424924349244492454924649247492484924949250492514925249253492544925549256492574925849259492604926149262492634926449265492664926749268492694927049271492724927349274492754927649277492784927949280492814928249283492844928549286492874928849289492904929149292492934929449295492964929749298492994930049301493024930349304493054930649307493084930949310493114931249313493144931549316493174931849319493204932149322493234932449325493264932749328493294933049331493324933349334493354933649337493384933949340493414934249343493444934549346493474934849349493504935149352493534935449355493564935749358493594936049361493624936349364493654936649367493684936949370493714937249373493744937549376493774937849379493804938149382493834938449385493864938749388493894939049391493924939349394493954939649397493984939949400494014940249403494044940549406494074940849409494104941149412494134941449415494164941749418494194942049421494224942349424494254942649427494284942949430494314943249433494344943549436494374943849439494404944149442494434944449445494464944749448494494945049451494524945349454494554945649457494584945949460494614946249463494644946549466494674946849469494704947149472494734947449475494764947749478494794948049481494824948349484494854948649487494884948949490494914949249493494944949549496494974949849499495004950149502495034950449505495064950749508495094951049511495124951349514495154951649517495184951949520495214952249523495244952549526495274952849529495304953149532495334953449535495364953749538495394954049541495424954349544495454954649547495484954949550495514955249553495544955549556495574955849559495604956149562495634956449565495664956749568495694957049571495724957349574495754957649577495784957949580495814958249583495844958549586495874958849589495904959149592495934959449595495964959749598495994960049601496024960349604496054960649607496084960949610496114961249613496144961549616496174961849619496204962149622496234962449625496264962749628496294963049631496324963349634496354963649637496384963949640496414964249643496444964549646496474964849649496504965149652496534965449655496564965749658496594966049661496624966349664496654966649667496684966949670496714967249673496744967549676496774967849679496804968149682496834968449685496864968749688496894969049691496924969349694496954969649697496984969949700497014970249703497044970549706497074970849709497104971149712497134971449715497164971749718497194972049721497224972349724497254972649727497284972949730497314973249733497344973549736497374973849739497404974149742497434974449745497464974749748497494975049751497524975349754497554975649757497584975949760497614976249763497644976549766497674976849769497704977149772497734977449775497764977749778497794978049781497824978349784497854978649787497884978949790497914979249793497944979549796497974979849799498004980149802498034980449805498064980749808498094981049811498124981349814498154981649817498184981949820498214982249823498244982549826498274982849829498304983149832498334983449835498364983749838498394984049841498424984349844498454984649847498484984949850498514985249853498544985549856498574985849859498604986149862498634986449865498664986749868498694987049871498724987349874498754987649877498784987949880498814988249883498844988549886498874988849889498904989149892498934989449895498964989749898498994990049901499024990349904499054990649907499084990949910499114991249913499144991549916499174991849919499204992149922499234992449925499264992749928499294993049931499324993349934499354993649937499384993949940499414994249943499444994549946499474994849949499504995149952499534995449955499564995749958499594996049961499624996349964499654996649967499684996949970499714997249973499744997549976499774997849979499804998149982499834998449985499864998749988499894999049991499924999349994499954999649997499984999950000500015000250003500045000550006500075000850009500105001150012500135001450015500165001750018500195002050021500225002350024500255002650027500285002950030500315003250033500345003550036500375003850039500405004150042500435004450045500465004750048500495005050051500525005350054500555005650057500585005950060500615006250063500645006550066500675006850069500705007150072500735007450075500765007750078500795008050081500825008350084500855008650087500885008950090500915009250093500945009550096500975009850099501005010150102501035010450105501065010750108501095011050111501125011350114501155011650117501185011950120501215012250123501245012550126501275012850129501305013150132501335013450135501365013750138501395014050141501425014350144501455014650147501485014950150501515015250153501545015550156501575015850159501605016150162501635016450165501665016750168501695017050171501725017350174501755017650177501785017950180501815018250183501845018550186501875018850189501905019150192501935019450195501965019750198501995020050201502025020350204502055020650207502085020950210502115021250213502145021550216502175021850219502205022150222502235022450225502265022750228502295023050231502325023350234502355023650237502385023950240502415024250243502445024550246502475024850249502505025150252502535025450255502565025750258502595026050261502625026350264502655026650267502685026950270502715027250273502745027550276502775027850279502805028150282502835028450285502865028750288502895029050291502925029350294502955029650297502985029950300503015030250303503045030550306503075030850309503105031150312503135031450315503165031750318503195032050321503225032350324503255032650327503285032950330503315033250333503345033550336503375033850339503405034150342503435034450345503465034750348503495035050351503525035350354503555035650357503585035950360503615036250363503645036550366503675036850369503705037150372503735037450375503765037750378503795038050381503825038350384503855038650387503885038950390503915039250393503945039550396503975039850399504005040150402504035040450405504065040750408504095041050411504125041350414504155041650417504185041950420504215042250423504245042550426504275042850429504305043150432504335043450435504365043750438504395044050441504425044350444504455044650447504485044950450504515045250453504545045550456504575045850459504605046150462504635046450465504665046750468504695047050471504725047350474504755047650477504785047950480504815048250483504845048550486504875048850489504905049150492504935049450495504965049750498504995050050501505025050350504505055050650507505085050950510505115051250513505145051550516505175051850519505205052150522505235052450525505265052750528505295053050531505325053350534505355053650537505385053950540505415054250543505445054550546505475054850549505505055150552505535055450555505565055750558505595056050561505625056350564505655056650567505685056950570505715057250573505745057550576505775057850579505805058150582505835058450585505865058750588505895059050591505925059350594505955059650597505985059950600506015060250603506045060550606506075060850609506105061150612506135061450615506165061750618506195062050621506225062350624506255062650627506285062950630506315063250633506345063550636506375063850639506405064150642506435064450645506465064750648506495065050651506525065350654506555065650657506585065950660506615066250663506645066550666506675066850669506705067150672506735067450675506765067750678506795068050681506825068350684506855068650687506885068950690506915069250693506945069550696506975069850699507005070150702507035070450705507065070750708507095071050711507125071350714507155071650717507185071950720507215072250723507245072550726507275072850729507305073150732507335073450735507365073750738507395074050741507425074350744507455074650747507485074950750507515075250753507545075550756507575075850759507605076150762507635076450765507665076750768507695077050771507725077350774507755077650777507785077950780507815078250783507845078550786507875078850789507905079150792507935079450795507965079750798507995080050801508025080350804508055080650807508085080950810508115081250813508145081550816508175081850819508205082150822508235082450825508265082750828508295083050831508325083350834508355083650837508385083950840508415084250843508445084550846508475084850849508505085150852508535085450855508565085750858508595086050861508625086350864508655086650867508685086950870508715087250873508745087550876508775087850879508805088150882508835088450885508865088750888508895089050891508925089350894508955089650897508985089950900509015090250903509045090550906509075090850909509105091150912509135091450915509165091750918509195092050921509225092350924509255092650927509285092950930509315093250933509345093550936509375093850939509405094150942509435094450945509465094750948509495095050951509525095350954509555095650957509585095950960509615096250963509645096550966509675096850969509705097150972509735097450975509765097750978509795098050981509825098350984509855098650987509885098950990509915099250993509945099550996509975099850999510005100151002510035100451005510065100751008510095101051011510125101351014510155101651017510185101951020510215102251023510245102551026510275102851029510305103151032510335103451035510365103751038510395104051041510425104351044510455104651047510485104951050510515105251053510545105551056510575105851059510605106151062510635106451065510665106751068510695107051071510725107351074510755107651077510785107951080510815108251083510845108551086510875108851089510905109151092510935109451095510965109751098510995110051101511025110351104511055110651107511085110951110511115111251113511145111551116511175111851119511205112151122511235112451125511265112751128511295113051131511325113351134511355113651137511385113951140511415114251143511445114551146511475114851149511505115151152511535115451155511565115751158511595116051161511625116351164511655116651167511685116951170511715117251173511745117551176511775117851179511805118151182511835118451185511865118751188511895119051191511925119351194511955119651197511985119951200512015120251203512045120551206512075120851209512105121151212512135121451215512165121751218512195122051221512225122351224512255122651227512285122951230512315123251233512345123551236512375123851239512405124151242512435124451245512465124751248512495125051251512525125351254512555125651257512585125951260512615126251263512645126551266512675126851269512705127151272512735127451275512765127751278512795128051281512825128351284512855128651287512885128951290512915129251293512945129551296512975129851299513005130151302513035130451305513065130751308513095131051311513125131351314513155131651317513185131951320513215132251323513245132551326513275132851329513305133151332513335133451335513365133751338513395134051341513425134351344513455134651347513485134951350513515135251353513545135551356513575135851359513605136151362513635136451365513665136751368513695137051371513725137351374513755137651377513785137951380513815138251383513845138551386513875138851389513905139151392513935139451395513965139751398513995140051401514025140351404514055140651407514085140951410514115141251413514145141551416514175141851419514205142151422514235142451425514265142751428514295143051431514325143351434514355143651437514385143951440514415144251443514445144551446514475144851449514505145151452514535145451455514565145751458514595146051461514625146351464514655146651467514685146951470514715147251473514745147551476514775147851479514805148151482514835148451485514865148751488514895149051491514925149351494514955149651497514985149951500515015150251503515045150551506515075150851509515105151151512515135151451515515165151751518515195152051521515225152351524515255152651527515285152951530515315153251533515345153551536515375153851539515405154151542515435154451545515465154751548515495155051551515525155351554515555155651557515585155951560515615156251563515645156551566515675156851569515705157151572515735157451575515765157751578515795158051581515825158351584515855158651587515885158951590515915159251593515945159551596515975159851599516005160151602516035160451605516065160751608516095161051611516125161351614516155161651617516185161951620516215162251623516245162551626516275162851629516305163151632516335163451635516365163751638516395164051641516425164351644516455164651647516485164951650516515165251653516545165551656516575165851659516605166151662516635166451665516665166751668516695167051671516725167351674516755167651677516785167951680516815168251683516845168551686516875168851689516905169151692516935169451695516965169751698516995170051701517025170351704517055170651707517085170951710517115171251713517145171551716517175171851719517205172151722517235172451725517265172751728517295173051731517325173351734517355173651737517385173951740517415174251743517445174551746517475174851749517505175151752517535175451755517565175751758517595176051761517625176351764517655176651767517685176951770517715177251773517745177551776517775177851779517805178151782517835178451785517865178751788517895179051791517925179351794517955179651797517985179951800518015180251803518045180551806518075180851809518105181151812518135181451815518165181751818518195182051821518225182351824518255182651827518285182951830518315183251833518345183551836518375183851839518405184151842518435184451845518465184751848518495185051851518525185351854518555185651857518585185951860518615186251863518645186551866518675186851869518705187151872518735187451875518765187751878518795188051881518825188351884518855188651887518885188951890518915189251893518945189551896518975189851899519005190151902519035190451905519065190751908519095191051911519125191351914519155191651917519185191951920519215192251923519245192551926519275192851929519305193151932519335193451935519365193751938519395194051941519425194351944519455194651947519485194951950519515195251953519545195551956519575195851959519605196151962519635196451965519665196751968519695197051971519725197351974519755197651977519785197951980519815198251983519845198551986519875198851989519905199151992519935199451995519965199751998519995200052001520025200352004520055200652007520085200952010520115201252013520145201552016520175201852019520205202152022520235202452025520265202752028520295203052031520325203352034520355203652037520385203952040520415204252043520445204552046520475204852049520505205152052520535205452055520565205752058520595206052061520625206352064520655206652067520685206952070520715207252073520745207552076520775207852079520805208152082520835208452085520865208752088520895209052091520925209352094520955209652097520985209952100521015210252103521045210552106521075210852109521105211152112521135211452115521165211752118521195212052121521225212352124521255212652127521285212952130521315213252133521345213552136521375213852139521405214152142521435214452145521465214752148521495215052151521525215352154521555215652157521585215952160521615216252163521645216552166521675216852169521705217152172521735217452175521765217752178521795218052181521825218352184521855218652187521885218952190521915219252193521945219552196521975219852199522005220152202522035220452205522065220752208522095221052211522125221352214522155221652217522185221952220522215222252223522245222552226522275222852229522305223152232522335223452235522365223752238522395224052241522425224352244522455224652247522485224952250522515225252253522545225552256522575225852259522605226152262522635226452265522665226752268522695227052271522725227352274522755227652277522785227952280522815228252283522845228552286522875228852289522905229152292522935229452295522965229752298522995230052301523025230352304523055230652307523085230952310523115231252313523145231552316523175231852319523205232152322523235232452325523265232752328523295233052331523325233352334523355233652337523385233952340523415234252343523445234552346523475234852349523505235152352523535235452355523565235752358523595236052361523625236352364523655236652367523685236952370523715237252373523745237552376523775237852379523805238152382523835238452385523865238752388523895239052391523925239352394523955239652397523985239952400524015240252403524045240552406524075240852409524105241152412524135241452415524165241752418524195242052421524225242352424524255242652427524285242952430524315243252433524345243552436524375243852439524405244152442524435244452445524465244752448524495245052451524525245352454524555245652457524585245952460524615246252463524645246552466524675246852469524705247152472524735247452475524765247752478524795248052481524825248352484524855248652487524885248952490524915249252493524945249552496524975249852499525005250152502525035250452505525065250752508525095251052511525125251352514525155251652517525185251952520525215252252523525245252552526525275252852529525305253152532525335253452535525365253752538525395254052541525425254352544525455254652547525485254952550525515255252553525545255552556525575255852559525605256152562525635256452565525665256752568525695257052571525725257352574525755257652577525785257952580525815258252583525845258552586525875258852589525905259152592525935259452595525965259752598525995260052601526025260352604526055260652607526085260952610526115261252613526145261552616526175261852619526205262152622526235262452625526265262752628526295263052631526325263352634526355263652637526385263952640526415264252643526445264552646526475264852649526505265152652526535265452655526565265752658526595266052661526625266352664526655266652667526685266952670526715267252673526745267552676526775267852679526805268152682526835268452685526865268752688526895269052691526925269352694526955269652697526985269952700527015270252703527045270552706527075270852709527105271152712527135271452715527165271752718527195272052721527225272352724527255272652727527285272952730527315273252733527345273552736527375273852739527405274152742527435274452745527465274752748527495275052751527525275352754527555275652757527585275952760527615276252763527645276552766527675276852769527705277152772527735277452775527765277752778527795278052781527825278352784527855278652787527885278952790527915279252793527945279552796527975279852799528005280152802528035280452805528065280752808528095281052811528125281352814528155281652817528185281952820528215282252823528245282552826528275282852829528305283152832528335283452835528365283752838528395284052841528425284352844528455284652847528485284952850528515285252853528545285552856528575285852859528605286152862528635286452865528665286752868528695287052871528725287352874528755287652877528785287952880528815288252883528845288552886528875288852889528905289152892528935289452895528965289752898528995290052901529025290352904529055290652907529085290952910529115291252913529145291552916529175291852919529205292152922529235292452925529265292752928529295293052931529325293352934529355293652937529385293952940529415294252943529445294552946529475294852949529505295152952529535295452955529565295752958529595296052961529625296352964529655296652967529685296952970529715297252973529745297552976529775297852979529805298152982529835298452985529865298752988529895299052991529925299352994529955299652997529985299953000530015300253003530045300553006530075300853009530105301153012530135301453015530165301753018530195302053021530225302353024530255302653027530285302953030530315303253033530345303553036530375303853039530405304153042530435304453045530465304753048530495305053051530525305353054530555305653057530585305953060530615306253063530645306553066530675306853069530705307153072530735307453075530765307753078530795308053081530825308353084530855308653087530885308953090530915309253093530945309553096530975309853099531005310153102531035310453105531065310753108531095311053111531125311353114531155311653117531185311953120531215312253123531245312553126531275312853129531305313153132531335313453135531365313753138531395314053141531425314353144531455314653147531485314953150531515315253153531545315553156531575315853159531605316153162531635316453165531665316753168531695317053171531725317353174531755317653177531785317953180531815318253183531845318553186531875318853189531905319153192531935319453195531965319753198531995320053201532025320353204532055320653207532085320953210532115321253213532145321553216532175321853219532205322153222532235322453225532265322753228532295323053231532325323353234532355323653237532385323953240532415324253243532445324553246532475324853249532505325153252532535325453255532565325753258532595326053261532625326353264532655326653267532685326953270532715327253273532745327553276532775327853279532805328153282532835328453285532865328753288532895329053291532925329353294532955329653297532985329953300533015330253303533045330553306533075330853309533105331153312533135331453315533165331753318533195332053321533225332353324533255332653327533285332953330533315333253333533345333553336533375333853339533405334153342533435334453345533465334753348533495335053351533525335353354533555335653357533585335953360533615336253363533645336553366533675336853369533705337153372533735337453375533765337753378533795338053381533825338353384533855338653387533885338953390533915339253393533945339553396533975339853399534005340153402534035340453405534065340753408534095341053411534125341353414534155341653417534185341953420534215342253423534245342553426534275342853429534305343153432534335343453435534365343753438534395344053441534425344353444534455344653447534485344953450534515345253453534545345553456534575345853459534605346153462534635346453465534665346753468534695347053471534725347353474534755347653477534785347953480534815348253483534845348553486534875348853489534905349153492534935349453495534965349753498534995350053501535025350353504535055350653507535085350953510535115351253513535145351553516535175351853519535205352153522535235352453525535265352753528535295353053531535325353353534535355353653537535385353953540535415354253543535445354553546535475354853549535505355153552535535355453555535565355753558535595356053561535625356353564535655356653567535685356953570535715357253573535745357553576535775357853579535805358153582535835358453585535865358753588535895359053591535925359353594535955359653597535985359953600536015360253603536045360553606536075360853609536105361153612536135361453615536165361753618536195362053621536225362353624536255362653627536285362953630536315363253633536345363553636536375363853639536405364153642536435364453645536465364753648536495365053651536525365353654536555365653657536585365953660536615366253663536645366553666536675366853669536705367153672536735367453675536765367753678536795368053681536825368353684536855368653687536885368953690536915369253693536945369553696536975369853699537005370153702537035370453705537065370753708537095371053711537125371353714537155371653717537185371953720537215372253723537245372553726537275372853729537305373153732537335373453735537365373753738537395374053741537425374353744537455374653747537485374953750537515375253753537545375553756537575375853759537605376153762537635376453765537665376753768537695377053771537725377353774537755377653777537785377953780537815378253783537845378553786537875378853789537905379153792537935379453795537965379753798537995380053801538025380353804538055380653807538085380953810538115381253813538145381553816538175381853819538205382153822538235382453825538265382753828538295383053831538325383353834538355383653837538385383953840538415384253843538445384553846538475384853849538505385153852538535385453855538565385753858538595386053861538625386353864538655386653867538685386953870538715387253873538745387553876538775387853879538805388153882538835388453885538865388753888538895389053891538925389353894538955389653897538985389953900539015390253903539045390553906539075390853909539105391153912539135391453915539165391753918539195392053921539225392353924539255392653927539285392953930539315393253933539345393553936539375393853939539405394153942539435394453945539465394753948539495395053951539525395353954539555395653957539585395953960539615396253963539645396553966539675396853969539705397153972539735397453975539765397753978539795398053981539825398353984539855398653987539885398953990539915399253993539945399553996539975399853999540005400154002540035400454005540065400754008540095401054011540125401354014540155401654017540185401954020540215402254023540245402554026540275402854029540305403154032540335403454035540365403754038540395404054041540425404354044540455404654047540485404954050540515405254053540545405554056540575405854059540605406154062540635406454065540665406754068540695407054071540725407354074540755407654077540785407954080540815408254083540845408554086540875408854089540905409154092540935409454095540965409754098540995410054101541025410354104541055410654107541085410954110541115411254113541145411554116541175411854119541205412154122541235412454125541265412754128541295413054131541325413354134541355413654137541385413954140541415414254143541445414554146541475414854149541505415154152541535415454155541565415754158541595416054161541625416354164541655416654167541685416954170541715417254173541745417554176541775417854179541805418154182541835418454185541865418754188541895419054191541925419354194541955419654197541985419954200542015420254203542045420554206542075420854209542105421154212542135421454215542165421754218542195422054221542225422354224542255422654227542285422954230542315423254233542345423554236542375423854239542405424154242542435424454245542465424754248542495425054251542525425354254542555425654257542585425954260542615426254263542645426554266542675426854269542705427154272542735427454275542765427754278542795428054281542825428354284542855428654287542885428954290542915429254293542945429554296542975429854299543005430154302543035430454305543065430754308543095431054311543125431354314543155431654317543185431954320543215432254323543245432554326543275432854329543305433154332543335433454335543365433754338543395434054341543425434354344543455434654347543485434954350543515435254353543545435554356543575435854359543605436154362543635436454365543665436754368543695437054371543725437354374543755437654377543785437954380543815438254383543845438554386543875438854389543905439154392543935439454395543965439754398543995440054401544025440354404544055440654407544085440954410544115441254413544145441554416544175441854419544205442154422544235442454425544265442754428544295443054431544325443354434544355443654437544385443954440544415444254443544445444554446544475444854449544505445154452544535445454455544565445754458544595446054461544625446354464544655446654467544685446954470544715447254473544745447554476544775447854479544805448154482544835448454485544865448754488544895449054491544925449354494544955449654497544985449954500545015450254503545045450554506545075450854509545105451154512545135451454515545165451754518545195452054521545225452354524545255452654527545285452954530545315453254533545345453554536545375453854539545405454154542545435454454545545465454754548545495455054551545525455354554545555455654557545585455954560545615456254563545645456554566545675456854569545705457154572545735457454575545765457754578545795458054581545825458354584545855458654587545885458954590545915459254593545945459554596545975459854599546005460154602546035460454605546065460754608546095461054611546125461354614546155461654617546185461954620546215462254623546245462554626546275462854629546305463154632546335463454635546365463754638546395464054641546425464354644546455464654647546485464954650546515465254653546545465554656546575465854659546605466154662546635466454665546665466754668546695467054671546725467354674546755467654677546785467954680546815468254683546845468554686546875468854689546905469154692546935469454695546965469754698546995470054701547025470354704547055470654707547085470954710547115471254713547145471554716547175471854719547205472154722547235472454725547265472754728547295473054731547325473354734547355473654737547385473954740547415474254743547445474554746547475474854749547505475154752547535475454755547565475754758547595476054761547625476354764547655476654767547685476954770547715477254773547745477554776547775477854779547805478154782547835478454785547865478754788547895479054791547925479354794547955479654797547985479954800548015480254803548045480554806548075480854809548105481154812548135481454815548165481754818548195482054821548225482354824548255482654827548285482954830548315483254833548345483554836548375483854839548405484154842548435484454845548465484754848548495485054851548525485354854548555485654857548585485954860548615486254863548645486554866548675486854869548705487154872548735487454875548765487754878548795488054881548825488354884548855488654887548885488954890548915489254893548945489554896548975489854899549005490154902549035490454905549065490754908549095491054911549125491354914549155491654917549185491954920549215492254923549245492554926549275492854929549305493154932549335493454935549365493754938549395494054941549425494354944549455494654947549485494954950549515495254953549545495554956549575495854959549605496154962549635496454965549665496754968549695497054971549725497354974549755497654977549785497954980549815498254983549845498554986549875498854989549905499154992549935499454995549965499754998549995500055001550025500355004550055500655007550085500955010550115501255013550145501555016550175501855019550205502155022550235502455025550265502755028550295503055031550325503355034550355503655037550385503955040550415504255043550445504555046550475504855049550505505155052550535505455055550565505755058550595506055061550625506355064550655506655067550685506955070550715507255073550745507555076550775507855079550805508155082550835508455085550865508755088550895509055091550925509355094550955509655097550985509955100551015510255103551045510555106551075510855109551105511155112551135511455115551165511755118551195512055121551225512355124551255512655127551285512955130551315513255133551345513555136551375513855139551405514155142551435514455145551465514755148551495515055151551525515355154551555515655157551585515955160551615516255163551645516555166551675516855169551705517155172551735517455175551765517755178551795518055181551825518355184551855518655187551885518955190551915519255193551945519555196551975519855199552005520155202552035520455205552065520755208552095521055211552125521355214552155521655217552185521955220552215522255223552245522555226552275522855229552305523155232552335523455235552365523755238552395524055241552425524355244552455524655247552485524955250552515525255253552545525555256552575525855259552605526155262552635526455265552665526755268552695527055271552725527355274552755527655277552785527955280552815528255283552845528555286552875528855289552905529155292552935529455295552965529755298552995530055301553025530355304553055530655307553085530955310553115531255313553145531555316553175531855319553205532155322553235532455325553265532755328553295533055331553325533355334553355533655337553385533955340553415534255343553445534555346553475534855349553505535155352553535535455355553565535755358553595536055361553625536355364553655536655367553685536955370553715537255373553745537555376553775537855379553805538155382553835538455385553865538755388553895539055391553925539355394553955539655397553985539955400554015540255403554045540555406554075540855409554105541155412554135541455415554165541755418554195542055421554225542355424554255542655427554285542955430554315543255433554345543555436554375543855439554405544155442554435544455445554465544755448554495545055451554525545355454554555545655457554585545955460554615546255463554645546555466554675546855469554705547155472554735547455475554765547755478554795548055481554825548355484554855548655487554885548955490554915549255493554945549555496554975549855499555005550155502555035550455505555065550755508555095551055511555125551355514555155551655517555185551955520555215552255523555245552555526555275552855529555305553155532555335553455535555365553755538555395554055541555425554355544555455554655547555485554955550555515555255553555545555555556555575555855559555605556155562555635556455565555665556755568555695557055571555725557355574555755557655577555785557955580555815558255583555845558555586555875558855589555905559155592555935559455595555965559755598555995560055601556025560355604556055560655607556085560955610556115561255613556145561555616556175561855619556205562155622556235562455625556265562755628556295563055631556325563355634556355563655637556385563955640556415564255643556445564555646556475564855649556505565155652556535565455655556565565755658556595566055661556625566355664556655566655667556685566955670556715567255673556745567555676556775567855679556805568155682556835568455685556865568755688556895569055691556925569355694556955569655697556985569955700557015570255703557045570555706557075570855709557105571155712557135571455715557165571755718557195572055721557225572355724557255572655727557285572955730557315573255733557345573555736557375573855739557405574155742557435574455745557465574755748557495575055751557525575355754557555575655757557585575955760557615576255763557645576555766557675576855769557705577155772557735577455775557765577755778557795578055781557825578355784557855578655787557885578955790557915579255793557945579555796557975579855799558005580155802558035580455805558065580755808558095581055811558125581355814558155581655817558185581955820558215582255823558245582555826558275582855829558305583155832558335583455835558365583755838558395584055841558425584355844558455584655847558485584955850558515585255853558545585555856558575585855859558605586155862558635586455865558665586755868558695587055871558725587355874558755587655877558785587955880558815588255883558845588555886558875588855889558905589155892558935589455895558965589755898558995590055901559025590355904559055590655907559085590955910559115591255913559145591555916559175591855919559205592155922559235592455925559265592755928559295593055931559325593355934559355593655937559385593955940559415594255943559445594555946559475594855949559505595155952559535595455955559565595755958559595596055961559625596355964559655596655967559685596955970559715597255973559745597555976559775597855979559805598155982559835598455985559865598755988559895599055991559925599355994559955599655997559985599956000560015600256003560045600556006560075600856009560105601156012560135601456015560165601756018560195602056021560225602356024560255602656027560285602956030560315603256033560345603556036560375603856039560405604156042560435604456045560465604756048560495605056051560525605356054560555605656057560585605956060560615606256063560645606556066560675606856069560705607156072560735607456075560765607756078560795608056081560825608356084560855608656087560885608956090560915609256093560945609556096560975609856099561005610156102561035610456105561065610756108561095611056111561125611356114561155611656117561185611956120561215612256123561245612556126561275612856129561305613156132561335613456135561365613756138561395614056141561425614356144561455614656147561485614956150561515615256153561545615556156561575615856159561605616156162561635616456165561665616756168561695617056171561725617356174561755617656177561785617956180561815618256183561845618556186561875618856189561905619156192561935619456195561965619756198561995620056201562025620356204562055620656207562085620956210562115621256213562145621556216562175621856219562205622156222562235622456225562265622756228562295623056231562325623356234562355623656237562385623956240562415624256243562445624556246562475624856249562505625156252562535625456255562565625756258562595626056261562625626356264562655626656267562685626956270562715627256273562745627556276562775627856279562805628156282562835628456285562865628756288562895629056291562925629356294562955629656297562985629956300563015630256303563045630556306563075630856309563105631156312563135631456315563165631756318563195632056321563225632356324563255632656327563285632956330563315633256333563345633556336563375633856339563405634156342563435634456345563465634756348563495635056351563525635356354563555635656357563585635956360563615636256363563645636556366563675636856369563705637156372563735637456375563765637756378563795638056381563825638356384563855638656387563885638956390563915639256393563945639556396563975639856399564005640156402564035640456405564065640756408564095641056411564125641356414564155641656417564185641956420564215642256423564245642556426564275642856429564305643156432564335643456435564365643756438564395644056441564425644356444564455644656447564485644956450564515645256453564545645556456564575645856459564605646156462564635646456465564665646756468564695647056471564725647356474564755647656477564785647956480564815648256483564845648556486564875648856489564905649156492564935649456495564965649756498564995650056501565025650356504565055650656507565085650956510565115651256513565145651556516565175651856519565205652156522565235652456525565265652756528565295653056531565325653356534565355653656537565385653956540565415654256543565445654556546565475654856549565505655156552565535655456555565565655756558565595656056561565625656356564565655656656567565685656956570565715657256573565745657556576565775657856579565805658156582565835658456585565865658756588565895659056591565925659356594565955659656597565985659956600566015660256603566045660556606566075660856609566105661156612566135661456615566165661756618566195662056621566225662356624566255662656627566285662956630566315663256633566345663556636566375663856639566405664156642566435664456645566465664756648566495665056651566525665356654566555665656657566585665956660566615666256663566645666556666566675666856669566705667156672566735667456675566765667756678566795668056681566825668356684566855668656687566885668956690566915669256693566945669556696566975669856699567005670156702567035670456705567065670756708567095671056711567125671356714567155671656717567185671956720567215672256723567245672556726567275672856729567305673156732567335673456735567365673756738567395674056741567425674356744567455674656747567485674956750567515675256753567545675556756567575675856759567605676156762567635676456765567665676756768567695677056771567725677356774567755677656777567785677956780567815678256783567845678556786567875678856789567905679156792567935679456795567965679756798567995680056801568025680356804568055680656807568085680956810568115681256813568145681556816568175681856819568205682156822568235682456825568265682756828568295683056831568325683356834568355683656837568385683956840568415684256843568445684556846568475684856849568505685156852568535685456855568565685756858568595686056861568625686356864568655686656867568685686956870568715687256873568745687556876568775687856879568805688156882568835688456885568865688756888568895689056891568925689356894568955689656897568985689956900569015690256903569045690556906569075690856909569105691156912569135691456915569165691756918569195692056921569225692356924569255692656927569285692956930569315693256933569345693556936569375693856939569405694156942569435694456945569465694756948569495695056951569525695356954569555695656957569585695956960569615696256963569645696556966569675696856969569705697156972569735697456975569765697756978569795698056981569825698356984569855698656987569885698956990569915699256993569945699556996569975699856999570005700157002570035700457005570065700757008570095701057011570125701357014570155701657017570185701957020570215702257023570245702557026570275702857029570305703157032570335703457035570365703757038570395704057041570425704357044570455704657047570485704957050570515705257053570545705557056570575705857059570605706157062570635706457065570665706757068570695707057071570725707357074570755707657077570785707957080570815708257083570845708557086570875708857089570905709157092570935709457095570965709757098570995710057101571025710357104571055710657107571085710957110571115711257113571145711557116571175711857119571205712157122571235712457125571265712757128571295713057131571325713357134571355713657137571385713957140571415714257143571445714557146571475714857149571505715157152571535715457155571565715757158571595716057161571625716357164571655716657167571685716957170571715717257173571745717557176571775717857179571805718157182571835718457185571865718757188571895719057191571925719357194571955719657197571985719957200572015720257203572045720557206572075720857209572105721157212572135721457215572165721757218572195722057221572225722357224572255722657227572285722957230572315723257233572345723557236572375723857239572405724157242572435724457245572465724757248572495725057251572525725357254572555725657257572585725957260572615726257263572645726557266572675726857269572705727157272572735727457275572765727757278572795728057281572825728357284572855728657287572885728957290572915729257293572945729557296572975729857299573005730157302573035730457305573065730757308573095731057311573125731357314573155731657317573185731957320573215732257323573245732557326573275732857329573305733157332573335733457335573365733757338573395734057341573425734357344573455734657347573485734957350573515735257353573545735557356573575735857359573605736157362573635736457365573665736757368573695737057371573725737357374573755737657377573785737957380573815738257383573845738557386573875738857389573905739157392573935739457395573965739757398573995740057401574025740357404574055740657407574085740957410574115741257413574145741557416574175741857419574205742157422574235742457425574265742757428574295743057431574325743357434574355743657437574385743957440574415744257443574445744557446574475744857449574505745157452574535745457455574565745757458574595746057461574625746357464574655746657467574685746957470574715747257473574745747557476574775747857479574805748157482574835748457485574865748757488574895749057491574925749357494574955749657497574985749957500575015750257503575045750557506575075750857509575105751157512575135751457515575165751757518575195752057521575225752357524575255752657527575285752957530575315753257533575345753557536575375753857539575405754157542575435754457545575465754757548575495755057551575525755357554575555755657557575585755957560575615756257563575645756557566575675756857569575705757157572575735757457575575765757757578575795758057581575825758357584575855758657587575885758957590575915759257593575945759557596575975759857599576005760157602576035760457605576065760757608576095761057611576125761357614576155761657617576185761957620576215762257623576245762557626576275762857629576305763157632576335763457635576365763757638576395764057641576425764357644576455764657647576485764957650576515765257653576545765557656576575765857659576605766157662576635766457665576665766757668576695767057671576725767357674576755767657677576785767957680576815768257683576845768557686576875768857689576905769157692576935769457695576965769757698576995770057701577025770357704577055770657707577085770957710577115771257713577145771557716577175771857719577205772157722577235772457725577265772757728577295773057731577325773357734577355773657737577385773957740577415774257743577445774557746577475774857749577505775157752577535775457755577565775757758577595776057761577625776357764577655776657767577685776957770577715777257773577745777557776577775777857779577805778157782577835778457785577865778757788577895779057791577925779357794577955779657797577985779957800578015780257803578045780557806578075780857809578105781157812578135781457815578165781757818578195782057821578225782357824578255782657827578285782957830578315783257833578345783557836578375783857839578405784157842578435784457845578465784757848578495785057851578525785357854578555785657857578585785957860578615786257863578645786557866578675786857869578705787157872578735787457875578765787757878578795788057881578825788357884578855788657887578885788957890578915789257893578945789557896578975789857899579005790157902579035790457905579065790757908579095791057911579125791357914579155791657917579185791957920579215792257923579245792557926579275792857929579305793157932579335793457935579365793757938579395794057941579425794357944579455794657947579485794957950579515795257953579545795557956579575795857959579605796157962579635796457965579665796757968579695797057971579725797357974579755797657977579785797957980579815798257983579845798557986579875798857989579905799157992579935799457995579965799757998579995800058001580025800358004580055800658007580085800958010580115801258013580145801558016580175801858019580205802158022580235802458025580265802758028580295803058031580325803358034580355803658037580385803958040580415804258043580445804558046580475804858049580505805158052580535805458055580565805758058580595806058061580625806358064580655806658067580685806958070580715807258073580745807558076580775807858079580805808158082580835808458085580865808758088580895809058091580925809358094580955809658097580985809958100581015810258103581045810558106581075810858109581105811158112581135811458115581165811758118581195812058121581225812358124581255812658127581285812958130581315813258133581345813558136581375813858139581405814158142581435814458145581465814758148581495815058151581525815358154581555815658157581585815958160581615816258163581645816558166581675816858169581705817158172581735817458175581765817758178581795818058181581825818358184581855818658187581885818958190581915819258193581945819558196581975819858199582005820158202582035820458205582065820758208582095821058211582125821358214582155821658217582185821958220582215822258223582245822558226582275822858229582305823158232582335823458235582365823758238582395824058241582425824358244582455824658247582485824958250582515825258253582545825558256582575825858259582605826158262582635826458265582665826758268582695827058271582725827358274582755827658277582785827958280582815828258283582845828558286582875828858289582905829158292582935829458295582965829758298582995830058301583025830358304583055830658307583085830958310583115831258313583145831558316583175831858319583205832158322583235832458325583265832758328583295833058331583325833358334583355833658337583385833958340583415834258343583445834558346583475834858349583505835158352583535835458355583565835758358583595836058361583625836358364583655836658367583685836958370583715837258373583745837558376583775837858379583805838158382583835838458385583865838758388583895839058391583925839358394583955839658397583985839958400584015840258403584045840558406584075840858409584105841158412584135841458415584165841758418584195842058421584225842358424584255842658427584285842958430584315843258433584345843558436584375843858439584405844158442584435844458445584465844758448584495845058451584525845358454584555845658457584585845958460584615846258463584645846558466584675846858469584705847158472584735847458475584765847758478584795848058481584825848358484584855848658487584885848958490584915849258493584945849558496584975849858499585005850158502585035850458505585065850758508585095851058511585125851358514585155851658517585185851958520585215852258523585245852558526585275852858529585305853158532585335853458535585365853758538585395854058541585425854358544585455854658547585485854958550585515855258553585545855558556585575855858559585605856158562585635856458565585665856758568585695857058571585725857358574585755857658577585785857958580585815858258583585845858558586585875858858589585905859158592585935859458595585965859758598585995860058601586025860358604586055860658607586085860958610586115861258613586145861558616586175861858619586205862158622586235862458625586265862758628586295863058631586325863358634586355863658637586385863958640586415864258643586445864558646586475864858649586505865158652586535865458655586565865758658586595866058661586625866358664586655866658667586685866958670586715867258673586745867558676586775867858679586805868158682586835868458685586865868758688586895869058691586925869358694586955869658697586985869958700587015870258703587045870558706587075870858709587105871158712587135871458715587165871758718587195872058721587225872358724587255872658727587285872958730587315873258733587345873558736587375873858739587405874158742587435874458745587465874758748587495875058751587525875358754587555875658757587585875958760587615876258763587645876558766587675876858769587705877158772587735877458775587765877758778587795878058781587825878358784587855878658787587885878958790587915879258793587945879558796587975879858799588005880158802588035880458805588065880758808588095881058811588125881358814588155881658817588185881958820588215882258823588245882558826588275882858829588305883158832588335883458835588365883758838588395884058841588425884358844588455884658847588485884958850588515885258853588545885558856588575885858859588605886158862588635886458865588665886758868588695887058871588725887358874588755887658877588785887958880588815888258883588845888558886588875888858889588905889158892588935889458895588965889758898588995890058901589025890358904589055890658907589085890958910589115891258913589145891558916589175891858919589205892158922589235892458925589265892758928589295893058931589325893358934589355893658937589385893958940589415894258943589445894558946589475894858949589505895158952589535895458955589565895758958589595896058961589625896358964589655896658967589685896958970589715897258973589745897558976589775897858979589805898158982589835898458985589865898758988589895899058991589925899358994589955899658997589985899959000590015900259003590045900559006590075900859009590105901159012590135901459015590165901759018590195902059021590225902359024590255902659027590285902959030590315903259033590345903559036590375903859039590405904159042590435904459045590465904759048590495905059051590525905359054590555905659057590585905959060590615906259063590645906559066590675906859069590705907159072590735907459075590765907759078590795908059081590825908359084590855908659087590885908959090590915909259093590945909559096590975909859099591005910159102591035910459105591065910759108591095911059111591125911359114591155911659117591185911959120591215912259123591245912559126591275912859129591305913159132591335913459135591365913759138591395914059141591425914359144591455914659147591485914959150591515915259153591545915559156591575915859159591605916159162591635916459165591665916759168591695917059171591725917359174591755917659177591785917959180591815918259183591845918559186591875918859189591905919159192591935919459195591965919759198591995920059201592025920359204592055920659207592085920959210592115921259213592145921559216592175921859219592205922159222592235922459225592265922759228592295923059231592325923359234592355923659237592385923959240592415924259243592445924559246592475924859249592505925159252592535925459255592565925759258592595926059261592625926359264592655926659267592685926959270592715927259273592745927559276592775927859279592805928159282592835928459285592865928759288592895929059291592925929359294592955929659297592985929959300593015930259303593045930559306593075930859309593105931159312593135931459315593165931759318593195932059321593225932359324593255932659327593285932959330593315933259333593345933559336593375933859339593405934159342593435934459345593465934759348593495935059351593525935359354593555935659357593585935959360593615936259363593645936559366593675936859369593705937159372593735937459375593765937759378593795938059381593825938359384593855938659387593885938959390593915939259393593945939559396593975939859399594005940159402594035940459405594065940759408594095941059411594125941359414594155941659417594185941959420594215942259423594245942559426594275942859429594305943159432594335943459435594365943759438594395944059441594425944359444594455944659447594485944959450594515945259453594545945559456594575945859459594605946159462594635946459465594665946759468594695947059471594725947359474594755947659477594785947959480594815948259483594845948559486594875948859489594905949159492594935949459495594965949759498594995950059501595025950359504595055950659507595085950959510595115951259513595145951559516595175951859519595205952159522595235952459525595265952759528595295953059531595325953359534595355953659537595385953959540595415954259543595445954559546595475954859549595505955159552595535955459555595565955759558595595956059561595625956359564595655956659567595685956959570595715957259573595745957559576595775957859579595805958159582595835958459585595865958759588595895959059591595925959359594595955959659597595985959959600596015960259603596045960559606596075960859609596105961159612596135961459615596165961759618596195962059621596225962359624596255962659627596285962959630596315963259633596345963559636596375963859639596405964159642596435964459645596465964759648596495965059651596525965359654596555965659657596585965959660596615966259663596645966559666596675966859669596705967159672596735967459675596765967759678596795968059681596825968359684596855968659687596885968959690596915969259693596945969559696596975969859699597005970159702597035970459705597065970759708597095971059711597125971359714597155971659717597185971959720597215972259723597245972559726597275972859729597305973159732597335973459735597365973759738597395974059741597425974359744597455974659747597485974959750597515975259753597545975559756597575975859759597605976159762597635976459765597665976759768597695977059771597725977359774597755977659777597785977959780597815978259783597845978559786597875978859789597905979159792597935979459795597965979759798597995980059801598025980359804598055980659807598085980959810598115981259813598145981559816598175981859819598205982159822598235982459825598265982759828598295983059831598325983359834598355983659837598385983959840598415984259843598445984559846598475984859849598505985159852598535985459855598565985759858598595986059861598625986359864598655986659867598685986959870598715987259873598745987559876598775987859879598805988159882598835988459885598865988759888598895989059891598925989359894598955989659897598985989959900599015990259903599045990559906599075990859909599105991159912599135991459915599165991759918599195992059921599225992359924599255992659927599285992959930599315993259933599345993559936599375993859939599405994159942599435994459945599465994759948599495995059951599525995359954599555995659957599585995959960599615996259963599645996559966599675996859969599705997159972599735997459975599765997759978599795998059981599825998359984599855998659987599885998959990599915999259993599945999559996599975999859999600006000160002600036000460005600066000760008600096001060011600126001360014600156001660017600186001960020600216002260023600246002560026600276002860029600306003160032600336003460035600366003760038600396004060041600426004360044600456004660047600486004960050600516005260053600546005560056600576005860059600606006160062600636006460065600666006760068600696007060071600726007360074600756007660077600786007960080600816008260083600846008560086600876008860089600906009160092600936009460095600966009760098600996010060101601026010360104601056010660107601086010960110601116011260113601146011560116601176011860119601206012160122601236012460125601266012760128601296013060131601326013360134601356013660137601386013960140601416014260143601446014560146601476014860149601506015160152601536015460155601566015760158601596016060161601626016360164601656016660167601686016960170601716017260173601746017560176601776017860179601806018160182601836018460185601866018760188601896019060191601926019360194601956019660197601986019960200602016020260203602046020560206602076020860209602106021160212602136021460215602166021760218602196022060221602226022360224602256022660227602286022960230602316023260233602346023560236602376023860239602406024160242602436024460245602466024760248602496025060251602526025360254602556025660257602586025960260602616026260263602646026560266602676026860269602706027160272602736027460275602766027760278602796028060281602826028360284602856028660287602886028960290602916029260293602946029560296602976029860299603006030160302603036030460305603066030760308603096031060311603126031360314603156031660317603186031960320603216032260323603246032560326603276032860329603306033160332603336033460335603366033760338603396034060341603426034360344603456034660347603486034960350603516035260353603546035560356603576035860359603606036160362603636036460365603666036760368603696037060371603726037360374603756037660377603786037960380603816038260383603846038560386603876038860389603906039160392603936039460395603966039760398603996040060401604026040360404604056040660407604086040960410604116041260413604146041560416604176041860419604206042160422604236042460425604266042760428604296043060431604326043360434604356043660437604386043960440604416044260443604446044560446604476044860449604506045160452604536045460455604566045760458604596046060461604626046360464604656046660467604686046960470604716047260473604746047560476604776047860479604806048160482604836048460485604866048760488604896049060491604926049360494604956049660497604986049960500605016050260503605046050560506605076050860509605106051160512605136051460515605166051760518605196052060521605226052360524605256052660527605286052960530605316053260533605346053560536605376053860539605406054160542605436054460545605466054760548605496055060551605526055360554605556055660557605586055960560605616056260563605646056560566605676056860569605706057160572605736057460575605766057760578605796058060581605826058360584605856058660587605886058960590605916059260593605946059560596605976059860599606006060160602606036060460605606066060760608606096061060611606126061360614606156061660617606186061960620606216062260623606246062560626606276062860629606306063160632606336063460635606366063760638606396064060641606426064360644606456064660647606486064960650606516065260653606546065560656606576065860659606606066160662606636066460665606666066760668606696067060671606726067360674606756067660677606786067960680606816068260683606846068560686606876068860689606906069160692606936069460695606966069760698606996070060701607026070360704607056070660707607086070960710607116071260713607146071560716607176071860719607206072160722607236072460725607266072760728607296073060731607326073360734607356073660737607386073960740607416074260743607446074560746607476074860749607506075160752607536075460755607566075760758607596076060761607626076360764607656076660767607686076960770607716077260773607746077560776607776077860779607806078160782607836078460785607866078760788607896079060791607926079360794607956079660797607986079960800608016080260803608046080560806608076080860809608106081160812608136081460815608166081760818608196082060821608226082360824608256082660827608286082960830608316083260833608346083560836608376083860839608406084160842608436084460845608466084760848608496085060851608526085360854608556085660857608586085960860608616086260863608646086560866608676086860869608706087160872608736087460875608766087760878608796088060881608826088360884608856088660887608886088960890608916089260893608946089560896608976089860899609006090160902609036090460905609066090760908609096091060911609126091360914609156091660917609186091960920609216092260923609246092560926609276092860929609306093160932609336093460935609366093760938609396094060941609426094360944609456094660947609486094960950609516095260953609546095560956609576095860959609606096160962609636096460965609666096760968609696097060971609726097360974609756097660977609786097960980609816098260983609846098560986609876098860989609906099160992609936099460995609966099760998609996100061001610026100361004610056100661007610086100961010610116101261013610146101561016610176101861019610206102161022610236102461025610266102761028610296103061031610326103361034610356103661037610386103961040610416104261043610446104561046610476104861049610506105161052610536105461055610566105761058610596106061061610626106361064610656106661067610686106961070610716107261073610746107561076610776107861079610806108161082610836108461085610866108761088610896109061091610926109361094610956109661097610986109961100611016110261103611046110561106611076110861109611106111161112611136111461115611166111761118611196112061121611226112361124611256112661127611286112961130611316113261133611346113561136611376113861139611406114161142611436114461145611466114761148611496115061151611526115361154611556115661157611586115961160611616116261163611646116561166611676116861169611706117161172611736117461175611766117761178611796118061181611826118361184611856118661187611886118961190611916119261193611946119561196611976119861199612006120161202612036120461205612066120761208612096121061211612126121361214612156121661217612186121961220612216122261223612246122561226612276122861229612306123161232612336123461235612366123761238612396124061241612426124361244612456124661247612486124961250612516125261253612546125561256612576125861259612606126161262612636126461265612666126761268612696127061271612726127361274612756127661277612786127961280612816128261283612846128561286612876128861289612906129161292612936129461295612966129761298612996130061301613026130361304613056130661307613086130961310613116131261313613146131561316613176131861319613206132161322613236132461325613266132761328613296133061331613326133361334613356133661337613386133961340613416134261343613446134561346613476134861349613506135161352613536135461355613566135761358613596136061361613626136361364613656136661367613686136961370613716137261373613746137561376613776137861379613806138161382613836138461385613866138761388613896139061391613926139361394613956139661397613986139961400614016140261403614046140561406614076140861409614106141161412614136141461415614166141761418614196142061421614226142361424614256142661427614286142961430614316143261433614346143561436614376143861439614406144161442614436144461445614466144761448614496145061451614526145361454614556145661457614586145961460614616146261463614646146561466614676146861469614706147161472614736147461475614766147761478614796148061481614826148361484614856148661487614886148961490614916149261493614946149561496614976149861499615006150161502615036150461505615066150761508615096151061511615126151361514615156151661517615186151961520615216152261523615246152561526615276152861529615306153161532615336153461535615366153761538615396154061541615426154361544615456154661547615486154961550615516155261553615546155561556615576155861559615606156161562615636156461565615666156761568615696157061571615726157361574615756157661577615786157961580615816158261583615846158561586615876158861589615906159161592615936159461595615966159761598615996160061601616026160361604616056160661607616086160961610616116161261613616146161561616616176161861619616206162161622616236162461625616266162761628616296163061631616326163361634616356163661637616386163961640616416164261643616446164561646616476164861649616506165161652616536165461655616566165761658616596166061661616626166361664616656166661667616686166961670616716167261673616746167561676616776167861679616806168161682616836168461685616866168761688616896169061691616926169361694616956169661697616986169961700617016170261703617046170561706617076170861709617106171161712617136171461715617166171761718617196172061721617226172361724617256172661727617286172961730617316173261733617346173561736617376173861739617406174161742617436174461745617466174761748617496175061751617526175361754617556175661757617586175961760617616176261763617646176561766617676176861769617706177161772617736177461775617766177761778617796178061781617826178361784617856178661787617886178961790617916179261793617946179561796617976179861799618006180161802618036180461805618066180761808618096181061811618126181361814618156181661817618186181961820618216182261823618246182561826618276182861829618306183161832618336183461835618366183761838618396184061841618426184361844618456184661847618486184961850618516185261853618546185561856618576185861859618606186161862618636186461865618666186761868618696187061871618726187361874618756187661877618786187961880618816188261883618846188561886618876188861889618906189161892618936189461895618966189761898618996190061901619026190361904619056190661907619086190961910619116191261913619146191561916619176191861919619206192161922619236192461925619266192761928619296193061931619326193361934619356193661937619386193961940619416194261943619446194561946619476194861949619506195161952619536195461955619566195761958619596196061961619626196361964619656196661967619686196961970619716197261973619746197561976619776197861979619806198161982619836198461985619866198761988619896199061991619926199361994619956199661997619986199962000620016200262003620046200562006620076200862009620106201162012620136201462015620166201762018620196202062021620226202362024620256202662027620286202962030620316203262033620346203562036620376203862039620406204162042620436204462045620466204762048620496205062051620526205362054620556205662057620586205962060620616206262063620646206562066620676206862069620706207162072620736207462075620766207762078620796208062081620826208362084620856208662087620886208962090620916209262093620946209562096620976209862099621006210162102621036210462105621066210762108621096211062111621126211362114621156211662117621186211962120621216212262123621246212562126621276212862129621306213162132621336213462135621366213762138621396214062141621426214362144621456214662147621486214962150621516215262153621546215562156621576215862159621606216162162621636216462165621666216762168621696217062171621726217362174621756217662177621786217962180621816218262183621846218562186621876218862189621906219162192621936219462195621966219762198621996220062201622026220362204622056220662207622086220962210622116221262213622146221562216622176221862219622206222162222622236222462225622266222762228622296223062231622326223362234622356223662237622386223962240622416224262243622446224562246622476224862249622506225162252622536225462255622566225762258622596226062261622626226362264622656226662267622686226962270622716227262273622746227562276622776227862279622806228162282622836228462285622866228762288622896229062291622926229362294622956229662297622986229962300623016230262303623046230562306623076230862309623106231162312623136231462315623166231762318623196232062321623226232362324623256232662327623286232962330623316233262333623346233562336623376233862339623406234162342623436234462345623466234762348623496235062351623526235362354623556235662357623586235962360623616236262363623646236562366623676236862369623706237162372623736237462375623766237762378623796238062381623826238362384623856238662387623886238962390623916239262393623946239562396623976239862399624006240162402624036240462405624066240762408624096241062411624126241362414624156241662417624186241962420624216242262423624246242562426624276242862429624306243162432624336243462435624366243762438624396244062441624426244362444624456244662447624486244962450624516245262453624546245562456624576245862459624606246162462624636246462465624666246762468624696247062471624726247362474624756247662477624786247962480624816248262483624846248562486624876248862489624906249162492624936249462495624966249762498624996250062501625026250362504625056250662507625086250962510625116251262513625146251562516625176251862519625206252162522625236252462525625266252762528625296253062531625326253362534625356253662537625386253962540625416254262543625446254562546625476254862549625506255162552625536255462555625566255762558625596256062561625626256362564625656256662567625686256962570625716257262573625746257562576625776257862579625806258162582625836258462585625866258762588625896259062591625926259362594625956259662597625986259962600626016260262603626046260562606626076260862609626106261162612626136261462615626166261762618626196262062621626226262362624626256262662627626286262962630626316263262633626346263562636626376263862639626406264162642626436264462645626466264762648626496265062651626526265362654626556265662657626586265962660626616266262663626646266562666626676266862669626706267162672626736267462675626766267762678626796268062681626826268362684626856268662687626886268962690626916269262693626946269562696626976269862699627006270162702627036270462705627066270762708627096271062711627126271362714627156271662717627186271962720627216272262723627246272562726627276272862729627306273162732627336273462735627366273762738627396274062741627426274362744627456274662747627486274962750627516275262753627546275562756627576275862759627606276162762627636276462765627666276762768627696277062771627726277362774627756277662777627786277962780627816278262783627846278562786627876278862789627906279162792627936279462795627966279762798627996280062801628026280362804628056280662807628086280962810628116281262813628146281562816628176281862819628206282162822628236282462825628266282762828628296283062831628326283362834628356283662837628386283962840628416284262843628446284562846628476284862849628506285162852628536285462855628566285762858628596286062861628626286362864628656286662867628686286962870628716287262873628746287562876628776287862879628806288162882628836288462885628866288762888628896289062891628926289362894628956289662897628986289962900629016290262903629046290562906629076290862909629106291162912629136291462915629166291762918629196292062921629226292362924629256292662927629286292962930629316293262933629346293562936629376293862939629406294162942629436294462945629466294762948629496295062951629526295362954629556295662957629586295962960629616296262963629646296562966629676296862969629706297162972629736297462975629766297762978629796298062981629826298362984629856298662987629886298962990629916299262993629946299562996629976299862999630006300163002630036300463005630066300763008630096301063011630126301363014630156301663017630186301963020630216302263023630246302563026630276302863029630306303163032630336303463035630366303763038630396304063041630426304363044630456304663047630486304963050630516305263053630546305563056630576305863059630606306163062630636306463065630666306763068630696307063071630726307363074630756307663077630786307963080630816308263083630846308563086630876308863089630906309163092630936309463095630966309763098630996310063101631026310363104631056310663107631086310963110631116311263113631146311563116631176311863119631206312163122631236312463125631266312763128631296313063131631326313363134631356313663137631386313963140631416314263143631446314563146631476314863149631506315163152631536315463155631566315763158631596316063161631626316363164631656316663167631686316963170631716317263173631746317563176631776317863179631806318163182631836318463185631866318763188631896319063191631926319363194631956319663197631986319963200632016320263203632046320563206632076320863209632106321163212632136321463215632166321763218632196322063221632226322363224632256322663227632286322963230632316323263233632346323563236632376323863239632406324163242632436324463245632466324763248632496325063251632526325363254632556325663257632586325963260632616326263263632646326563266632676326863269632706327163272632736327463275632766327763278632796328063281632826328363284632856328663287632886328963290632916329263293632946329563296632976329863299633006330163302633036330463305633066330763308633096331063311633126331363314633156331663317633186331963320633216332263323633246332563326633276332863329633306333163332633336333463335633366333763338633396334063341633426334363344633456334663347633486334963350633516335263353633546335563356633576335863359633606336163362633636336463365633666336763368633696337063371633726337363374633756337663377633786337963380633816338263383633846338563386633876338863389633906339163392633936339463395633966339763398633996340063401634026340363404634056340663407634086340963410634116341263413634146341563416634176341863419634206342163422634236342463425634266342763428634296343063431634326343363434634356343663437634386343963440634416344263443634446344563446634476344863449634506345163452634536345463455634566345763458634596346063461634626346363464634656346663467634686346963470634716347263473634746347563476634776347863479634806348163482634836348463485634866348763488634896349063491634926349363494634956349663497634986349963500635016350263503635046350563506635076350863509635106351163512635136351463515635166351763518635196352063521635226352363524635256352663527635286352963530635316353263533635346353563536635376353863539635406354163542635436354463545635466354763548635496355063551635526355363554635556355663557635586355963560635616356263563635646356563566635676356863569635706357163572635736357463575635766357763578635796358063581635826358363584635856358663587635886358963590635916359263593635946359563596635976359863599636006360163602636036360463605636066360763608636096361063611636126361363614636156361663617636186361963620636216362263623636246362563626636276362863629636306363163632636336363463635636366363763638636396364063641636426364363644636456364663647636486364963650636516365263653636546365563656636576365863659636606366163662636636366463665636666366763668636696367063671636726367363674636756367663677636786367963680636816368263683636846368563686636876368863689636906369163692636936369463695636966369763698636996370063701637026370363704637056370663707637086370963710637116371263713637146371563716637176371863719637206372163722637236372463725637266372763728637296373063731637326373363734637356373663737637386373963740637416374263743637446374563746637476374863749637506375163752637536375463755637566375763758637596376063761637626376363764637656376663767637686376963770637716377263773637746377563776637776377863779637806378163782637836378463785637866378763788637896379063791637926379363794637956379663797637986379963800638016380263803638046380563806638076380863809638106381163812638136381463815638166381763818638196382063821638226382363824638256382663827638286382963830638316383263833638346383563836638376383863839638406384163842638436384463845638466384763848638496385063851638526385363854638556385663857638586385963860638616386263863638646386563866638676386863869638706387163872638736387463875638766387763878638796388063881638826388363884638856388663887638886388963890638916389263893638946389563896638976389863899639006390163902639036390463905639066390763908639096391063911639126391363914639156391663917639186391963920639216392263923639246392563926639276392863929639306393163932639336393463935639366393763938639396394063941639426394363944639456394663947639486394963950639516395263953639546395563956639576395863959639606396163962639636396463965639666396763968639696397063971639726397363974639756397663977639786397963980639816398263983639846398563986639876398863989639906399163992639936399463995639966399763998639996400064001640026400364004640056400664007640086400964010640116401264013640146401564016640176401864019640206402164022640236402464025640266402764028640296403064031640326403364034640356403664037640386403964040640416404264043640446404564046640476404864049640506405164052640536405464055640566405764058640596406064061640626406364064640656406664067640686406964070640716407264073640746407564076640776407864079640806408164082640836408464085640866408764088640896409064091640926409364094640956409664097640986409964100641016410264103641046410564106641076410864109641106411164112641136411464115641166411764118641196412064121641226412364124641256412664127641286412964130641316413264133641346413564136641376413864139641406414164142641436414464145641466414764148641496415064151641526415364154641556415664157641586415964160641616416264163641646416564166641676416864169641706417164172641736417464175641766417764178641796418064181641826418364184641856418664187641886418964190641916419264193641946419564196641976419864199642006420164202642036420464205642066420764208642096421064211642126421364214642156421664217642186421964220642216422264223642246422564226642276422864229642306423164232642336423464235642366423764238642396424064241642426424364244642456424664247642486424964250642516425264253642546425564256642576425864259642606426164262642636426464265642666426764268642696427064271642726427364274642756427664277642786427964280642816428264283642846428564286642876428864289642906429164292642936429464295642966429764298642996430064301643026430364304643056430664307643086430964310643116431264313643146431564316643176431864319643206432164322643236432464325643266432764328643296433064331643326433364334643356433664337643386433964340643416434264343643446434564346643476434864349643506435164352643536435464355643566435764358643596436064361643626436364364643656436664367643686436964370643716437264373643746437564376643776437864379643806438164382643836438464385643866438764388643896439064391643926439364394643956439664397643986439964400644016440264403644046440564406644076440864409644106441164412644136441464415644166441764418644196442064421644226442364424644256442664427644286442964430644316443264433644346443564436644376443864439644406444164442644436444464445644466444764448644496445064451644526445364454644556445664457644586445964460644616446264463644646446564466644676446864469644706447164472644736447464475644766447764478644796448064481644826448364484644856448664487644886448964490644916449264493644946449564496644976449864499645006450164502645036450464505645066450764508645096451064511645126451364514645156451664517645186451964520645216452264523645246452564526645276452864529645306453164532645336453464535645366453764538645396454064541645426454364544645456454664547645486454964550645516455264553645546455564556645576455864559645606456164562645636456464565645666456764568645696457064571645726457364574645756457664577645786457964580645816458264583645846458564586645876458864589645906459164592645936459464595645966459764598645996460064601646026460364604646056460664607646086460964610646116461264613646146461564616646176461864619646206462164622646236462464625646266462764628646296463064631646326463364634646356463664637646386463964640646416464264643646446464564646646476464864649646506465164652646536465464655646566465764658646596466064661646626466364664646656466664667646686466964670646716467264673646746467564676646776467864679646806468164682646836468464685646866468764688646896469064691646926469364694646956469664697646986469964700647016470264703647046470564706647076470864709647106471164712647136471464715647166471764718647196472064721647226472364724647256472664727647286472964730647316473264733647346473564736647376473864739647406474164742647436474464745647466474764748647496475064751647526475364754647556475664757647586475964760647616476264763647646476564766647676476864769647706477164772647736477464775647766477764778647796478064781647826478364784647856478664787647886478964790647916479264793647946479564796647976479864799648006480164802648036480464805648066480764808648096481064811648126481364814648156481664817648186481964820648216482264823648246482564826648276482864829648306483164832648336483464835648366483764838648396484064841648426484364844648456484664847648486484964850648516485264853648546485564856648576485864859648606486164862648636486464865648666486764868648696487064871648726487364874648756487664877648786487964880648816488264883648846488564886648876488864889648906489164892648936489464895648966489764898648996490064901649026490364904649056490664907649086490964910649116491264913649146491564916649176491864919649206492164922649236492464925649266492764928649296493064931649326493364934649356493664937649386493964940649416494264943649446494564946649476494864949649506495164952649536495464955649566495764958649596496064961649626496364964649656496664967649686496964970649716497264973649746497564976649776497864979649806498164982649836498464985649866498764988649896499064991649926499364994649956499664997649986499965000650016500265003650046500565006650076500865009650106501165012650136501465015650166501765018650196502065021650226502365024650256502665027650286502965030650316503265033650346503565036650376503865039650406504165042650436504465045650466504765048650496505065051650526505365054650556505665057650586505965060650616506265063650646506565066650676506865069650706507165072650736507465075650766507765078650796508065081650826508365084650856508665087650886508965090650916509265093650946509565096650976509865099651006510165102651036510465105651066510765108651096511065111651126511365114651156511665117651186511965120651216512265123651246512565126651276512865129651306513165132651336513465135651366513765138651396514065141651426514365144651456514665147651486514965150651516515265153651546515565156651576515865159651606516165162651636516465165651666516765168651696517065171651726517365174651756517665177651786517965180651816518265183651846518565186651876518865189651906519165192651936519465195651966519765198651996520065201652026520365204652056520665207652086520965210652116521265213652146521565216652176521865219652206522165222652236522465225652266522765228652296523065231652326523365234652356523665237652386523965240652416524265243652446524565246652476524865249652506525165252652536525465255652566525765258652596526065261652626526365264652656526665267652686526965270652716527265273652746527565276652776527865279652806528165282652836528465285652866528765288652896529065291652926529365294652956529665297652986529965300653016530265303653046530565306653076530865309653106531165312653136531465315653166531765318653196532065321653226532365324653256532665327653286532965330653316533265333653346533565336653376533865339653406534165342653436534465345653466534765348653496535065351653526535365354653556535665357653586535965360653616536265363653646536565366653676536865369653706537165372653736537465375653766537765378653796538065381653826538365384653856538665387653886538965390653916539265393653946539565396653976539865399654006540165402654036540465405654066540765408654096541065411654126541365414654156541665417654186541965420654216542265423654246542565426654276542865429654306543165432654336543465435654366543765438654396544065441654426544365444654456544665447654486544965450654516545265453654546545565456654576545865459654606546165462654636546465465654666546765468654696547065471654726547365474654756547665477654786547965480654816548265483654846548565486654876548865489654906549165492654936549465495654966549765498654996550065501655026550365504655056550665507655086550965510655116551265513655146551565516655176551865519655206552165522655236552465525655266552765528655296553065531655326553365534655356553665537655386553965540655416554265543655446554565546655476554865549655506555165552655536555465555655566555765558655596556065561655626556365564655656556665567655686556965570655716557265573655746557565576655776557865579655806558165582655836558465585655866558765588655896559065591655926559365594655956559665597655986559965600656016560265603656046560565606656076560865609656106561165612656136561465615656166561765618656196562065621656226562365624656256562665627656286562965630656316563265633656346563565636656376563865639656406564165642656436564465645656466564765648656496565065651656526565365654656556565665657656586565965660656616566265663656646566565666656676566865669656706567165672656736567465675656766567765678656796568065681656826568365684656856568665687656886568965690656916569265693656946569565696656976569865699657006570165702657036570465705657066570765708657096571065711657126571365714657156571665717657186571965720657216572265723657246572565726657276572865729657306573165732657336573465735657366573765738657396574065741657426574365744657456574665747657486574965750657516575265753657546575565756657576575865759657606576165762657636576465765657666576765768657696577065771657726577365774657756577665777657786577965780657816578265783657846578565786657876578865789657906579165792657936579465795657966579765798657996580065801658026580365804658056580665807658086580965810658116581265813658146581565816658176581865819658206582165822658236582465825658266582765828658296583065831658326583365834658356583665837658386583965840658416584265843658446584565846658476584865849658506585165852658536585465855658566585765858658596586065861658626586365864658656586665867658686586965870658716587265873658746587565876658776587865879658806588165882658836588465885658866588765888658896589065891658926589365894658956589665897658986589965900659016590265903659046590565906659076590865909659106591165912659136591465915659166591765918659196592065921659226592365924659256592665927659286592965930659316593265933659346593565936659376593865939659406594165942659436594465945659466594765948659496595065951659526595365954659556595665957659586595965960659616596265963659646596565966659676596865969659706597165972659736597465975659766597765978659796598065981659826598365984659856598665987659886598965990659916599265993659946599565996659976599865999660006600166002660036600466005660066600766008660096601066011660126601366014660156601666017660186601966020660216602266023660246602566026660276602866029660306603166032660336603466035660366603766038660396604066041660426604366044660456604666047660486604966050660516605266053660546605566056660576605866059660606606166062660636606466065660666606766068660696607066071660726607366074660756607666077660786607966080660816608266083660846608566086660876608866089660906609166092660936609466095660966609766098660996610066101661026610366104661056610666107661086610966110661116611266113661146611566116661176611866119661206612166122661236612466125661266612766128661296613066131661326613366134661356613666137661386613966140661416614266143661446614566146661476614866149661506615166152661536615466155661566615766158661596616066161661626616366164661656616666167661686616966170661716617266173661746617566176661776617866179661806618166182661836618466185661866618766188661896619066191661926619366194661956619666197661986619966200662016620266203662046620566206662076620866209662106621166212662136621466215662166621766218662196622066221662226622366224662256622666227662286622966230662316623266233662346623566236662376623866239662406624166242662436624466245662466624766248662496625066251662526625366254662556625666257662586625966260662616626266263662646626566266662676626866269662706627166272662736627466275662766627766278662796628066281662826628366284662856628666287662886628966290662916629266293662946629566296662976629866299663006630166302663036630466305663066630766308663096631066311663126631366314663156631666317663186631966320663216632266323663246632566326663276632866329663306633166332663336633466335663366633766338663396634066341663426634366344663456634666347663486634966350663516635266353663546635566356663576635866359663606636166362663636636466365663666636766368663696637066371663726637366374663756637666377663786637966380663816638266383663846638566386663876638866389663906639166392663936639466395663966639766398663996640066401664026640366404664056640666407664086640966410664116641266413664146641566416664176641866419664206642166422664236642466425664266642766428664296643066431664326643366434664356643666437664386643966440664416644266443664446644566446664476644866449664506645166452664536645466455664566645766458664596646066461664626646366464664656646666467664686646966470664716647266473664746647566476664776647866479664806648166482664836648466485664866648766488664896649066491664926649366494664956649666497664986649966500665016650266503665046650566506665076650866509665106651166512665136651466515665166651766518665196652066521665226652366524665256652666527665286652966530665316653266533665346653566536665376653866539665406654166542665436654466545665466654766548665496655066551665526655366554665556655666557665586655966560665616656266563665646656566566665676656866569665706657166572665736657466575665766657766578665796658066581665826658366584665856658666587665886658966590665916659266593665946659566596665976659866599666006660166602666036660466605666066660766608666096661066611666126661366614666156661666617666186661966620666216662266623666246662566626666276662866629666306663166632666336663466635666366663766638666396664066641666426664366644666456664666647666486664966650666516665266653666546665566656666576665866659666606666166662666636666466665666666666766668666696667066671666726667366674666756667666677666786667966680666816668266683666846668566686666876668866689666906669166692666936669466695666966669766698666996670066701667026670366704667056670666707667086670966710667116671266713667146671566716667176671866719667206672166722667236672466725667266672766728667296673066731667326673366734667356673666737667386673966740667416674266743667446674566746667476674866749667506675166752667536675466755667566675766758667596676066761667626676366764667656676666767667686676966770667716677266773667746677566776667776677866779667806678166782667836678466785667866678766788667896679066791667926679366794667956679666797667986679966800668016680266803668046680566806668076680866809668106681166812668136681466815668166681766818668196682066821668226682366824668256682666827668286682966830668316683266833668346683566836668376683866839668406684166842668436684466845668466684766848668496685066851668526685366854668556685666857668586685966860668616686266863668646686566866668676686866869668706687166872668736687466875668766687766878668796688066881668826688366884668856688666887668886688966890668916689266893668946689566896668976689866899669006690166902669036690466905669066690766908669096691066911669126691366914669156691666917669186691966920669216692266923669246692566926669276692866929669306693166932669336693466935669366693766938669396694066941669426694366944669456694666947669486694966950669516695266953669546695566956669576695866959669606696166962669636696466965669666696766968669696697066971669726697366974669756697666977669786697966980669816698266983669846698566986669876698866989669906699166992669936699466995669966699766998669996700067001670026700367004670056700667007670086700967010670116701267013670146701567016670176701867019670206702167022670236702467025670266702767028670296703067031670326703367034670356703667037670386703967040670416704267043670446704567046670476704867049670506705167052670536705467055670566705767058670596706067061670626706367064670656706667067670686706967070670716707267073670746707567076670776707867079670806708167082670836708467085670866708767088670896709067091670926709367094670956709667097670986709967100671016710267103671046710567106671076710867109671106711167112671136711467115671166711767118671196712067121671226712367124671256712667127671286712967130671316713267133671346713567136671376713867139671406714167142671436714467145671466714767148671496715067151671526715367154671556715667157671586715967160671616716267163671646716567166671676716867169671706717167172671736717467175671766717767178671796718067181671826718367184671856718667187671886718967190671916719267193671946719567196671976719867199672006720167202672036720467205672066720767208672096721067211672126721367214672156721667217672186721967220672216722267223672246722567226672276722867229672306723167232672336723467235672366723767238672396724067241672426724367244672456724667247672486724967250672516725267253672546725567256672576725867259672606726167262672636726467265672666726767268672696727067271672726727367274672756727667277672786727967280672816728267283672846728567286672876728867289672906729167292672936729467295672966729767298672996730067301673026730367304673056730667307673086730967310673116731267313673146731567316673176731867319673206732167322673236732467325673266732767328673296733067331673326733367334673356733667337673386733967340673416734267343673446734567346673476734867349673506735167352673536735467355673566735767358673596736067361673626736367364673656736667367673686736967370673716737267373673746737567376673776737867379673806738167382673836738467385673866738767388673896739067391673926739367394673956739667397673986739967400674016740267403674046740567406674076740867409674106741167412674136741467415674166741767418674196742067421674226742367424674256742667427674286742967430674316743267433674346743567436674376743867439674406744167442674436744467445674466744767448674496745067451674526745367454674556745667457674586745967460674616746267463674646746567466674676746867469674706747167472674736747467475674766747767478674796748067481674826748367484674856748667487674886748967490674916749267493674946749567496674976749867499675006750167502675036750467505675066750767508675096751067511675126751367514675156751667517675186751967520675216752267523675246752567526675276752867529675306753167532675336753467535675366753767538675396754067541675426754367544675456754667547675486754967550675516755267553675546755567556675576755867559675606756167562675636756467565675666756767568675696757067571675726757367574675756757667577675786757967580675816758267583675846758567586675876758867589675906759167592675936759467595675966759767598675996760067601676026760367604676056760667607676086760967610676116761267613676146761567616676176761867619676206762167622676236762467625676266762767628676296763067631676326763367634676356763667637676386763967640676416764267643676446764567646676476764867649676506765167652676536765467655676566765767658676596766067661676626766367664676656766667667676686766967670676716767267673676746767567676676776767867679676806768167682676836768467685676866768767688676896769067691676926769367694676956769667697676986769967700677016770267703677046770567706677076770867709677106771167712677136771467715677166771767718677196772067721677226772367724677256772667727677286772967730677316773267733677346773567736677376773867739677406774167742677436774467745677466774767748677496775067751677526775367754677556775667757677586775967760677616776267763677646776567766677676776867769677706777167772677736777467775677766777767778677796778067781677826778367784677856778667787677886778967790677916779267793677946779567796677976779867799678006780167802678036780467805678066780767808678096781067811678126781367814678156781667817678186781967820678216782267823678246782567826678276782867829678306783167832678336783467835678366783767838678396784067841678426784367844678456784667847678486784967850678516785267853678546785567856678576785867859678606786167862678636786467865678666786767868678696787067871678726787367874678756787667877678786787967880678816788267883678846788567886678876788867889678906789167892678936789467895678966789767898678996790067901679026790367904679056790667907679086790967910679116791267913679146791567916679176791867919679206792167922679236792467925679266792767928679296793067931679326793367934679356793667937679386793967940679416794267943679446794567946679476794867949679506795167952679536795467955679566795767958679596796067961679626796367964679656796667967679686796967970679716797267973679746797567976679776797867979679806798167982679836798467985679866798767988679896799067991679926799367994679956799667997679986799968000680016800268003680046800568006680076800868009680106801168012680136801468015680166801768018680196802068021680226802368024680256802668027680286802968030680316803268033680346803568036680376803868039680406804168042680436804468045680466804768048680496805068051680526805368054680556805668057680586805968060680616806268063680646806568066680676806868069680706807168072680736807468075680766807768078680796808068081680826808368084680856808668087680886808968090680916809268093680946809568096680976809868099681006810168102681036810468105681066810768108681096811068111681126811368114681156811668117681186811968120681216812268123681246812568126681276812868129681306813168132681336813468135681366813768138681396814068141681426814368144681456814668147681486814968150681516815268153681546815568156681576815868159681606816168162681636816468165681666816768168681696817068171681726817368174681756817668177681786817968180681816818268183681846818568186681876818868189681906819168192681936819468195681966819768198681996820068201682026820368204682056820668207682086820968210682116821268213682146821568216682176821868219682206822168222682236822468225682266822768228682296823068231682326823368234682356823668237682386823968240682416824268243682446824568246682476824868249682506825168252682536825468255682566825768258682596826068261682626826368264682656826668267682686826968270682716827268273682746827568276682776827868279682806828168282682836828468285682866828768288682896829068291682926829368294682956829668297682986829968300683016830268303683046830568306683076830868309683106831168312683136831468315683166831768318683196832068321683226832368324683256832668327683286832968330683316833268333683346833568336683376833868339683406834168342683436834468345683466834768348683496835068351683526835368354683556835668357683586835968360683616836268363683646836568366683676836868369683706837168372683736837468375683766837768378683796838068381683826838368384683856838668387683886838968390683916839268393683946839568396683976839868399684006840168402684036840468405684066840768408684096841068411684126841368414684156841668417684186841968420684216842268423684246842568426684276842868429684306843168432684336843468435684366843768438684396844068441684426844368444684456844668447684486844968450684516845268453684546845568456684576845868459684606846168462684636846468465684666846768468684696847068471684726847368474684756847668477684786847968480684816848268483684846848568486684876848868489684906849168492684936849468495684966849768498684996850068501685026850368504685056850668507685086850968510685116851268513685146851568516685176851868519685206852168522685236852468525685266852768528685296853068531685326853368534685356853668537685386853968540685416854268543685446854568546685476854868549685506855168552685536855468555685566855768558685596856068561685626856368564685656856668567685686856968570685716857268573685746857568576685776857868579685806858168582685836858468585685866858768588685896859068591685926859368594685956859668597685986859968600686016860268603686046860568606686076860868609686106861168612686136861468615686166861768618686196862068621686226862368624686256862668627686286862968630686316863268633686346863568636686376863868639686406864168642686436864468645686466864768648686496865068651686526865368654686556865668657686586865968660686616866268663686646866568666686676866868669686706867168672686736867468675686766867768678686796868068681686826868368684686856868668687686886868968690686916869268693686946869568696686976869868699687006870168702687036870468705687066870768708687096871068711687126871368714687156871668717687186871968720687216872268723687246872568726687276872868729687306873168732687336873468735687366873768738687396874068741687426874368744687456874668747687486874968750687516875268753687546875568756687576875868759687606876168762687636876468765687666876768768687696877068771687726877368774687756877668777687786877968780687816878268783687846878568786687876878868789687906879168792687936879468795687966879768798687996880068801688026880368804688056880668807688086880968810688116881268813688146881568816688176881868819688206882168822688236882468825688266882768828688296883068831688326883368834688356883668837688386883968840
  1. This is gcc.info, produced by makeinfo version 6.8 from gcc.texi.
  2. Copyright (C) 1988-2021 Free Software Foundation, Inc.
  3. Permission is granted to copy, distribute and/or modify this document
  4. under the terms of the GNU Free Documentation License, Version 1.3 or
  5. any later version published by the Free Software Foundation; with the
  6. Invariant Sections being "Funding Free Software", the Front-Cover Texts
  7. being (a) (see below), and with the Back-Cover Texts being (b) (see
  8. below). A copy of the license is included in the section entitled "GNU
  9. Free Documentation License".
  10. (a) The FSF's Front-Cover Text is:
  11. A GNU Manual
  12. (b) The FSF's Back-Cover Text is:
  13. You have freedom to copy and modify this GNU Manual, like GNU software.
  14. Copies published by the Free Software Foundation raise funds for GNU
  15. development.
  16. INFO-DIR-SECTION Software development
  17. START-INFO-DIR-ENTRY
  18. * 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-2021 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, Up: (dir)
  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 (g) version 11.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=gnu17'.
  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, 2014, 2017 and mostly 2020 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 that
  249. specification. For further details see
  250. <https://gcc.gnu.org/projects/cxx-status.html#cxx17>. Use the option
  251. '-std=c++17' to select this variant of C++.
  252. Another revised ISO C++ standard was published in 2020 as ISO/IEC
  253. 14882:2020, and is referred to as C++20; before its publication it was
  254. sometimes referred to as C++2a. GCC supports most of the changes in the
  255. new specification. For further details see
  256. <https://gcc.gnu.org/projects/cxx-status.html#cxx20>. To select this
  257. standard in GCC, use the option '-std=c++20'.
  258. More information about the C++ standards is available on the ISO C++
  259. committee's web site at <http://www.open-std.org/jtc1/sc22/wg21/>.
  260. To obtain all the diagnostics required by any of the standard versions
  261. described above you should specify '-pedantic' or '-pedantic-errors',
  262. otherwise GCC will allow some non-ISO C++ features as extensions. *Note
  263. Warning Options::.
  264. By default, GCC also provides some additional extensions to the C++
  265. language that on rare occasions conflict with the C++ standard. *Note
  266. Options Controlling C++ Dialect: C++ Dialect Options. Use of the '-std'
  267. options listed above disables these extensions where they they conflict
  268. with the C++ standard version selected. You may also select an extended
  269. version of the C++ language explicitly with '-std=gnu++98' (for C++98
  270. with GNU extensions), or '-std=gnu++11' (for C++11 with GNU extensions),
  271. or '-std=gnu++14' (for C++14 with GNU extensions), or '-std=gnu++17'
  272. (for C++17 with GNU extensions), or '-std=gnu++20' (for C++20 with GNU
  273. extensions).
  274. The default, if no C++ language dialect options are given, is
  275. '-std=gnu++17'.
  276. 2.3 Objective-C and Objective-C++ Languages
  277. ===========================================
  278. GCC supports "traditional" Objective-C (also known as "Objective-C 1.0")
  279. and contains support for the Objective-C exception and synchronization
  280. syntax. It has also support for a number of "Objective-C 2.0" language
  281. extensions, including properties, fast enumeration (only for
  282. Objective-C), method attributes and the @optional and @required keywords
  283. in protocols. GCC supports Objective-C++ and features available in
  284. Objective-C are also available in Objective-C++.
  285. GCC by default uses the GNU Objective-C runtime library, which is part
  286. of GCC and is not the same as the Apple/NeXT Objective-C runtime library
  287. used on Apple systems. There are a number of differences documented in
  288. this manual. The options '-fgnu-runtime' and '-fnext-runtime' allow you
  289. to switch between producing output that works with the GNU Objective-C
  290. runtime library and output that works with the Apple/NeXT Objective-C
  291. runtime library.
  292. There is no formal written standard for Objective-C or Objective-C++.
  293. The authoritative manual on traditional Objective-C (1.0) is
  294. "Object-Oriented Programming and the Objective-C Language":
  295. <http://www.gnustep.org/resources/documentation/ObjectivCBook.pdf> is
  296. the original NeXTstep document.
  297. The Objective-C exception and synchronization syntax (that is, the
  298. keywords '@try', '@throw', '@catch', '@finally' and '@synchronized') is
  299. supported by GCC and is enabled with the option '-fobjc-exceptions'.
  300. The syntax is briefly documented in this manual and in the Objective-C
  301. 2.0 manuals from Apple.
  302. The Objective-C 2.0 language extensions and features are automatically
  303. enabled; they include properties (via the '@property', '@synthesize' and
  304. '@dynamic keywords'), fast enumeration (not available in Objective-C++),
  305. attributes for methods (such as 'deprecated', 'noreturn', 'sentinel',
  306. 'format'), the 'unused' attribute for method arguments, the '@package'
  307. keyword for instance variables and the '@optional' and '@required'
  308. keywords in protocols. You can disable all these Objective-C 2.0
  309. language extensions with the option '-fobjc-std=objc1', which causes the
  310. compiler to recognize the same Objective-C language syntax recognized by
  311. GCC 4.0, and to produce an error if one of the new features is used.
  312. GCC has currently no support for non-fragile instance variables.
  313. The authoritative manual on Objective-C 2.0 is available from Apple:
  314. *
  315. <https://developer.apple.com/library/archive/documentation/Cocoa/Conceptual/ProgrammingWithObjectiveC/Introduction/Introduction.html>
  316. For more information concerning the history of Objective-C that is
  317. available online, see <http://gcc.gnu.org/readings.html>
  318. 2.4 Go Language
  319. ===============
  320. As of the GCC 4.7.1 release, GCC supports the Go 1 language standard,
  321. described at <https://golang.org/doc/go1>.
  322. 2.5 HSA Intermediate Language (HSAIL)
  323. =====================================
  324. GCC can compile the binary representation (BRIG) of the HSAIL text
  325. format as described in HSA Programmer's Reference Manual version 1.0.1.
  326. This capability is typically utilized to implement the HSA runtime API's
  327. HSAIL finalization extension for a gcc supported processor. HSA
  328. standards are freely available at
  329. <http://www.hsafoundation.com/standards/>.
  330. 2.6 D language
  331. ==============
  332. GCC supports the D 2.0 programming language. The D language itself is
  333. currently defined by its reference implementation and supporting
  334. language specification, described at <https://dlang.org/spec/spec.html>.
  335. 2.7 References for Other Languages
  336. ==================================
  337. *Note GNAT Reference Manual: (gnat_rm)Top, for information on standard
  338. conformance and compatibility of the Ada compiler.
  339. *Note Standards: (gfortran)Standards, for details of standards
  340. supported by GNU Fortran.
  341. 
  342. File: gcc.info, Node: Invoking GCC, Next: C Implementation, Prev: Standards, Up: Top
  343. 3 GCC Command Options
  344. *********************
  345. When you invoke GCC, it normally does preprocessing, compilation,
  346. assembly and linking. The "overall options" allow you to stop this
  347. process at an intermediate stage. For example, the '-c' option says not
  348. to run the linker. Then the output consists of object files output by
  349. the assembler. *Note Options Controlling the Kind of Output: Overall
  350. Options.
  351. Other options are passed on to one or more stages of processing. Some
  352. options control the preprocessor and others the compiler itself. Yet
  353. other options control the assembler and linker; most of these are not
  354. documented here, since you rarely need to use any of them.
  355. Most of the command-line options that you can use with GCC are useful
  356. for C programs; when an option is only useful with another language
  357. (usually C++), the explanation says so explicitly. If the description
  358. for a particular option does not mention a source language, you can use
  359. that option with all supported languages.
  360. The usual way to run GCC is to run the executable called 'gcc', or
  361. 'MACHINE-gcc' when cross-compiling, or 'MACHINE-gcc-VERSION' to run a
  362. specific version of GCC. When you compile C++ programs, you should
  363. invoke GCC as 'g++' instead. *Note Compiling C++ Programs: Invoking
  364. G++, for information about the differences in behavior between 'gcc' and
  365. 'g++' when compiling C++ programs.
  366. The 'gcc' program accepts options and file names as operands. Many
  367. options have multi-letter names; therefore multiple single-letter
  368. options may _not_ be grouped: '-dv' is very different from '-d -v'.
  369. You can mix options and other arguments. For the most part, the order
  370. you use doesn't matter. Order does matter when you use several options
  371. of the same kind; for example, if you specify '-L' more than once, the
  372. directories are searched in the order specified. Also, the placement of
  373. the '-l' option is significant.
  374. Many options have long names starting with '-f' or with '-W'--for
  375. example, '-fmove-loop-invariants', '-Wformat' and so on. Most of these
  376. have both positive and negative forms; the negative form of '-ffoo' is
  377. '-fno-foo'. This manual documents only one of these two forms,
  378. whichever one is not the default.
  379. Some options take one or more arguments typically separated either by a
  380. space or by the equals sign ('=') from the option name. Unless
  381. documented otherwise, an argument can be either numeric or a string.
  382. Numeric arguments must typically be small unsigned decimal or
  383. hexadecimal integers. Hexadecimal arguments must begin with the '0x'
  384. prefix. Arguments to options that specify a size threshold of some sort
  385. may be arbitrarily large decimal or hexadecimal integers followed by a
  386. byte size suffix designating a multiple of bytes such as 'kB' and 'KiB'
  387. for kilobyte and kibibyte, respectively, 'MB' and 'MiB' for megabyte and
  388. mebibyte, 'GB' and 'GiB' for gigabyte and gigibyte, and so on. Such
  389. arguments are designated by BYTE-SIZE in the following text. Refer to
  390. the NIST, IEC, and other relevant national and international standards
  391. for the full listing and explanation of the binary and decimal byte size
  392. prefixes.
  393. *Note Option Index::, for an index to GCC's options.
  394. * Menu:
  395. * Option Summary:: Brief list of all options, without explanations.
  396. * Overall Options:: Controlling the kind of output:
  397. an executable, object files, assembler files,
  398. or preprocessed source.
  399. * Invoking G++:: Compiling C++ programs.
  400. * C Dialect Options:: Controlling the variant of C language compiled.
  401. * C++ Dialect Options:: Variations on C++.
  402. * Objective-C and Objective-C++ Dialect Options:: Variations on Objective-C
  403. and Objective-C++.
  404. * Diagnostic Message Formatting Options:: Controlling how diagnostics should
  405. be formatted.
  406. * Warning Options:: How picky should the compiler be?
  407. * Static Analyzer Options:: More expensive warnings.
  408. * Debugging Options:: Producing debuggable code.
  409. * Optimize Options:: How much optimization?
  410. * Instrumentation Options:: Enabling profiling and extra run-time error checking.
  411. * Preprocessor Options:: Controlling header files and macro definitions.
  412. Also, getting dependency information for Make.
  413. * Assembler Options:: Passing options to the assembler.
  414. * Link Options:: Specifying libraries and so on.
  415. * Directory Options:: Where to find header files and libraries.
  416. Where to find the compiler executable files.
  417. * Code Gen Options:: Specifying conventions for function calls, data layout
  418. and register usage.
  419. * Developer Options:: Printing GCC configuration info, statistics, and
  420. debugging dumps.
  421. * Submodel Options:: Target-specific options, such as compiling for a
  422. specific processor variant.
  423. * Spec Files:: How to pass switches to sub-processes.
  424. * Environment Variables:: Env vars that affect GCC.
  425. * Precompiled Headers:: Compiling a header once, and using it many times.
  426. * C++ Modules:: Experimental C++20 module system.
  427. 
  428. File: gcc.info, Node: Option Summary, Next: Overall Options, Up: Invoking GCC
  429. 3.1 Option Summary
  430. ==================
  431. Here is a summary of all the options, grouped by type. Explanations are
  432. in the following sections.
  433. _Overall Options_
  434. *Note Options Controlling the Kind of Output: Overall Options.
  435. -c -S -E -o FILE
  436. -dumpbase DUMPBASE -dumpbase-ext AUXDROPSUF
  437. -dumpdir DUMPPFX -x LANGUAGE
  438. -v -### --help[=CLASS[,...]] --target-help --version
  439. -pass-exit-codes -pipe -specs=FILE -wrapper
  440. @FILE -ffile-prefix-map=OLD=NEW
  441. -fplugin=FILE -fplugin-arg-NAME=ARG
  442. -fdump-ada-spec[-slim] -fada-spec-parent=UNIT -fdump-go-spec=FILE
  443. _C Language Options_
  444. *Note Options Controlling C Dialect: C Dialect Options.
  445. -ansi -std=STANDARD -fgnu89-inline
  446. -fpermitted-flt-eval-methods=STANDARD
  447. -aux-info FILENAME -fallow-parameterless-variadic-functions
  448. -fno-asm -fno-builtin -fno-builtin-FUNCTION -fgimple
  449. -fhosted -ffreestanding
  450. -fopenacc -fopenacc-dim=GEOM
  451. -fopenmp -fopenmp-simd
  452. -fms-extensions -fplan9-extensions -fsso-struct=ENDIANNESS
  453. -fallow-single-precision -fcond-mismatch -flax-vector-conversions
  454. -fsigned-bitfields -fsigned-char
  455. -funsigned-bitfields -funsigned-char
  456. _C++ Language Options_
  457. *Note Options Controlling C++ Dialect: C++ Dialect Options.
  458. -fabi-version=N -fno-access-control
  459. -faligned-new=N -fargs-in-order=N -fchar8_t -fcheck-new
  460. -fconstexpr-depth=N -fconstexpr-cache-depth=N
  461. -fconstexpr-loop-limit=N -fconstexpr-ops-limit=N
  462. -fno-elide-constructors
  463. -fno-enforce-eh-specs
  464. -fno-gnu-keywords
  465. -fno-implicit-templates
  466. -fno-implicit-inline-templates
  467. -fno-implement-inlines
  468. -fmodule-header[=KIND] -fmodule-only -fmodules-ts
  469. -fmodule-implicit-inline
  470. -fno-module-lazy
  471. -fmodule-mapper=SPECIFICATION
  472. -fmodule-version-ignore
  473. -fms-extensions
  474. -fnew-inheriting-ctors
  475. -fnew-ttp-matching
  476. -fno-nonansi-builtins -fnothrow-opt -fno-operator-names
  477. -fno-optional-diags -fpermissive
  478. -fno-pretty-templates
  479. -fno-rtti -fsized-deallocation
  480. -ftemplate-backtrace-limit=N
  481. -ftemplate-depth=N
  482. -fno-threadsafe-statics -fuse-cxa-atexit
  483. -fno-weak -nostdinc++
  484. -fvisibility-inlines-hidden
  485. -fvisibility-ms-compat
  486. -fext-numeric-literals
  487. -flang-info-include-translate[=HEADER]
  488. -flang-info-include-translate-not
  489. -flang-info-module-cmi[=MODULE]
  490. -stdlib=LIBSTDC++,LIBC++
  491. -Wabi-tag -Wcatch-value -Wcatch-value=N
  492. -Wno-class-conversion -Wclass-memaccess
  493. -Wcomma-subscript -Wconditionally-supported
  494. -Wno-conversion-null -Wctad-maybe-unsupported
  495. -Wctor-dtor-privacy -Wno-delete-incomplete
  496. -Wdelete-non-virtual-dtor -Wdeprecated-copy -Wdeprecated-copy-dtor
  497. -Wno-deprecated-enum-enum-conversion -Wno-deprecated-enum-float-conversion
  498. -Weffc++ -Wno-exceptions -Wextra-semi -Wno-inaccessible-base
  499. -Wno-inherited-variadic-ctor -Wno-init-list-lifetime
  500. -Winvalid-imported-macros
  501. -Wno-invalid-offsetof -Wno-literal-suffix
  502. -Wno-mismatched-new-delete -Wmismatched-tags
  503. -Wmultiple-inheritance -Wnamespaces -Wnarrowing
  504. -Wnoexcept -Wnoexcept-type -Wnon-virtual-dtor
  505. -Wpessimizing-move -Wno-placement-new -Wplacement-new=N
  506. -Wrange-loop-construct -Wredundant-move -Wredundant-tags
  507. -Wreorder -Wregister
  508. -Wstrict-null-sentinel -Wno-subobject-linkage -Wtemplates
  509. -Wno-non-template-friend -Wold-style-cast
  510. -Woverloaded-virtual -Wno-pmf-conversions -Wsign-promo
  511. -Wsized-deallocation -Wsuggest-final-methods
  512. -Wsuggest-final-types -Wsuggest-override
  513. -Wno-terminate -Wuseless-cast -Wno-vexing-parse
  514. -Wvirtual-inheritance
  515. -Wno-virtual-move-assign -Wvolatile -Wzero-as-null-pointer-constant
  516. _Objective-C and Objective-C++ Language Options_
  517. *Note Options Controlling Objective-C and Objective-C++ Dialects:
  518. Objective-C and Objective-C++ Dialect Options.
  519. -fconstant-string-class=CLASS-NAME
  520. -fgnu-runtime -fnext-runtime
  521. -fno-nil-receivers
  522. -fobjc-abi-version=N
  523. -fobjc-call-cxx-cdtors
  524. -fobjc-direct-dispatch
  525. -fobjc-exceptions
  526. -fobjc-gc
  527. -fobjc-nilcheck
  528. -fobjc-std=objc1
  529. -fno-local-ivars
  530. -fivar-visibility=[public|protected|private|package]
  531. -freplace-objc-classes
  532. -fzero-link
  533. -gen-decls
  534. -Wassign-intercept -Wno-property-assign-default
  535. -Wno-protocol -Wobjc-root-class -Wselector
  536. -Wstrict-selector-match
  537. -Wundeclared-selector
  538. _Diagnostic Message Formatting Options_
  539. *Note Options to Control Diagnostic Messages Formatting: Diagnostic
  540. Message Formatting Options.
  541. -fmessage-length=N
  542. -fdiagnostics-plain-output
  543. -fdiagnostics-show-location=[once|every-line]
  544. -fdiagnostics-color=[auto|never|always]
  545. -fdiagnostics-urls=[auto|never|always]
  546. -fdiagnostics-format=[text|json]
  547. -fno-diagnostics-show-option -fno-diagnostics-show-caret
  548. -fno-diagnostics-show-labels -fno-diagnostics-show-line-numbers
  549. -fno-diagnostics-show-cwe
  550. -fdiagnostics-minimum-margin-width=WIDTH
  551. -fdiagnostics-parseable-fixits -fdiagnostics-generate-patch
  552. -fdiagnostics-show-template-tree -fno-elide-type
  553. -fdiagnostics-path-format=[none|separate-events|inline-events]
  554. -fdiagnostics-show-path-depths
  555. -fno-show-column
  556. -fdiagnostics-column-unit=[display|byte]
  557. -fdiagnostics-column-origin=ORIGIN
  558. _Warning Options_
  559. *Note Options to Request or Suppress Warnings: Warning Options.
  560. -fsyntax-only -fmax-errors=N -Wpedantic
  561. -pedantic-errors
  562. -w -Wextra -Wall -Wabi=N
  563. -Waddress -Wno-address-of-packed-member -Waggregate-return
  564. -Walloc-size-larger-than=BYTE-SIZE -Walloc-zero
  565. -Walloca -Walloca-larger-than=BYTE-SIZE
  566. -Wno-aggressive-loop-optimizations
  567. -Warith-conversion
  568. -Warray-bounds -Warray-bounds=N
  569. -Wno-attributes -Wattribute-alias=N -Wno-attribute-alias
  570. -Wno-attribute-warning -Wbool-compare -Wbool-operation
  571. -Wno-builtin-declaration-mismatch
  572. -Wno-builtin-macro-redefined -Wc90-c99-compat -Wc99-c11-compat
  573. -Wc11-c2x-compat
  574. -Wc++-compat -Wc++11-compat -Wc++14-compat -Wc++17-compat
  575. -Wc++20-compat
  576. -Wcast-align -Wcast-align=strict -Wcast-function-type -Wcast-qual
  577. -Wchar-subscripts
  578. -Wclobbered -Wcomment
  579. -Wconversion -Wno-coverage-mismatch -Wno-cpp
  580. -Wdangling-else -Wdate-time
  581. -Wno-deprecated -Wno-deprecated-declarations -Wno-designated-init
  582. -Wdisabled-optimization
  583. -Wno-discarded-array-qualifiers -Wno-discarded-qualifiers
  584. -Wno-div-by-zero -Wdouble-promotion
  585. -Wduplicated-branches -Wduplicated-cond
  586. -Wempty-body -Wno-endif-labels -Wenum-compare -Wenum-conversion
  587. -Werror -Werror=* -Wexpansion-to-defined -Wfatal-errors
  588. -Wfloat-conversion -Wfloat-equal -Wformat -Wformat=2
  589. -Wno-format-contains-nul -Wno-format-extra-args
  590. -Wformat-nonliteral -Wformat-overflow=N
  591. -Wformat-security -Wformat-signedness -Wformat-truncation=N
  592. -Wformat-y2k -Wframe-address
  593. -Wframe-larger-than=BYTE-SIZE -Wno-free-nonheap-object
  594. -Wno-if-not-aligned -Wno-ignored-attributes
  595. -Wignored-qualifiers -Wno-incompatible-pointer-types
  596. -Wimplicit -Wimplicit-fallthrough -Wimplicit-fallthrough=N
  597. -Wno-implicit-function-declaration -Wno-implicit-int
  598. -Winit-self -Winline -Wno-int-conversion -Wint-in-bool-context
  599. -Wno-int-to-pointer-cast -Wno-invalid-memory-model
  600. -Winvalid-pch -Wjump-misses-init -Wlarger-than=BYTE-SIZE
  601. -Wlogical-not-parentheses -Wlogical-op -Wlong-long
  602. -Wno-lto-type-mismatch -Wmain -Wmaybe-uninitialized
  603. -Wmemset-elt-size -Wmemset-transposed-args
  604. -Wmisleading-indentation -Wmissing-attributes -Wmissing-braces
  605. -Wmissing-field-initializers -Wmissing-format-attribute
  606. -Wmissing-include-dirs -Wmissing-noreturn -Wno-missing-profile
  607. -Wno-multichar -Wmultistatement-macros -Wnonnull -Wnonnull-compare
  608. -Wnormalized=[none|id|nfc|nfkc]
  609. -Wnull-dereference -Wno-odr -Wopenmp-simd
  610. -Wno-overflow -Woverlength-strings -Wno-override-init-side-effects
  611. -Wpacked -Wno-packed-bitfield-compat -Wpacked-not-aligned -Wpadded
  612. -Wparentheses -Wno-pedantic-ms-format
  613. -Wpointer-arith -Wno-pointer-compare -Wno-pointer-to-int-cast
  614. -Wno-pragmas -Wno-prio-ctor-dtor -Wredundant-decls
  615. -Wrestrict -Wno-return-local-addr -Wreturn-type
  616. -Wno-scalar-storage-order -Wsequence-point
  617. -Wshadow -Wshadow=global -Wshadow=local -Wshadow=compatible-local
  618. -Wno-shadow-ivar
  619. -Wno-shift-count-negative -Wno-shift-count-overflow -Wshift-negative-value
  620. -Wno-shift-overflow -Wshift-overflow=N
  621. -Wsign-compare -Wsign-conversion
  622. -Wno-sizeof-array-argument
  623. -Wsizeof-array-div
  624. -Wsizeof-pointer-div -Wsizeof-pointer-memaccess
  625. -Wstack-protector -Wstack-usage=BYTE-SIZE -Wstrict-aliasing
  626. -Wstrict-aliasing=n -Wstrict-overflow -Wstrict-overflow=N
  627. -Wstring-compare
  628. -Wno-stringop-overflow -Wno-stringop-overread
  629. -Wno-stringop-truncation
  630. -Wsuggest-attribute=[pure|const|noreturn|format|malloc]
  631. -Wswitch -Wno-switch-bool -Wswitch-default -Wswitch-enum
  632. -Wno-switch-outside-range -Wno-switch-unreachable -Wsync-nand
  633. -Wsystem-headers -Wtautological-compare -Wtrampolines -Wtrigraphs
  634. -Wtsan -Wtype-limits -Wundef
  635. -Wuninitialized -Wunknown-pragmas
  636. -Wunsuffixed-float-constants -Wunused
  637. -Wunused-but-set-parameter -Wunused-but-set-variable
  638. -Wunused-const-variable -Wunused-const-variable=N
  639. -Wunused-function -Wunused-label -Wunused-local-typedefs
  640. -Wunused-macros
  641. -Wunused-parameter -Wno-unused-result
  642. -Wunused-value -Wunused-variable
  643. -Wno-varargs -Wvariadic-macros
  644. -Wvector-operation-performance
  645. -Wvla -Wvla-larger-than=BYTE-SIZE -Wno-vla-larger-than
  646. -Wvolatile-register-var -Wwrite-strings
  647. -Wzero-length-bounds
  648. _Static Analyzer Options_
  649. -fanalyzer
  650. -fanalyzer-call-summaries
  651. -fanalyzer-checker=NAME
  652. -fno-analyzer-feasibility
  653. -fanalyzer-fine-grained
  654. -fanalyzer-state-merge
  655. -fanalyzer-state-purge
  656. -fanalyzer-transitivity
  657. -fanalyzer-verbose-edges
  658. -fanalyzer-verbose-state-changes
  659. -fanalyzer-verbosity=LEVEL
  660. -fdump-analyzer
  661. -fdump-analyzer-stderr
  662. -fdump-analyzer-callgraph
  663. -fdump-analyzer-exploded-graph
  664. -fdump-analyzer-exploded-nodes
  665. -fdump-analyzer-exploded-nodes-2
  666. -fdump-analyzer-exploded-nodes-3
  667. -fdump-analyzer-feasibility
  668. -fdump-analyzer-json
  669. -fdump-analyzer-state-purge
  670. -fdump-analyzer-supergraph
  671. -Wno-analyzer-double-fclose
  672. -Wno-analyzer-double-free
  673. -Wno-analyzer-exposure-through-output-file
  674. -Wno-analyzer-file-leak
  675. -Wno-analyzer-free-of-non-heap
  676. -Wno-analyzer-malloc-leak
  677. -Wno-analyzer-mismatching-deallocation
  678. -Wno-analyzer-null-argument
  679. -Wno-analyzer-null-dereference
  680. -Wno-analyzer-possible-null-argument
  681. -Wno-analyzer-possible-null-dereference
  682. -Wno-analyzer-shift-count-negative
  683. -Wno-analyzer-shift-count-overflow
  684. -Wno-analyzer-stale-setjmp-buffer
  685. -Wno-analyzer-tainted-array-index
  686. -Wanalyzer-too-complex
  687. -Wno-analyzer-unsafe-call-within-signal-handler
  688. -Wno-analyzer-use-after-free
  689. -Wno-analyzer-use-of-pointer-in-stale-stack-frame
  690. -Wno-analyzer-use-of-uninitialized-value
  691. -Wno-analyzer-write-to-const
  692. -Wno-analyzer-write-to-string-literal
  693. _C and Objective-C-only Warning Options_
  694. -Wbad-function-cast -Wmissing-declarations
  695. -Wmissing-parameter-type -Wmissing-prototypes -Wnested-externs
  696. -Wold-style-declaration -Wold-style-definition
  697. -Wstrict-prototypes -Wtraditional -Wtraditional-conversion
  698. -Wdeclaration-after-statement -Wpointer-sign
  699. _Debugging Options_
  700. *Note Options for Debugging Your Program: Debugging Options.
  701. -g -gLEVEL -gdwarf -gdwarf-VERSION
  702. -ggdb -grecord-gcc-switches -gno-record-gcc-switches
  703. -gstabs -gstabs+ -gstrict-dwarf -gno-strict-dwarf
  704. -gas-loc-support -gno-as-loc-support
  705. -gas-locview-support -gno-as-locview-support
  706. -gcolumn-info -gno-column-info -gdwarf32 -gdwarf64
  707. -gstatement-frontiers -gno-statement-frontiers
  708. -gvariable-location-views -gno-variable-location-views
  709. -ginternal-reset-location-views -gno-internal-reset-location-views
  710. -ginline-points -gno-inline-points
  711. -gvms -gxcoff -gxcoff+ -gz[=TYPE]
  712. -gsplit-dwarf -gdescribe-dies -gno-describe-dies
  713. -fdebug-prefix-map=OLD=NEW -fdebug-types-section
  714. -fno-eliminate-unused-debug-types
  715. -femit-struct-debug-baseonly -femit-struct-debug-reduced
  716. -femit-struct-debug-detailed[=SPEC-LIST]
  717. -fno-eliminate-unused-debug-symbols -femit-class-debug-always
  718. -fno-merge-debug-strings -fno-dwarf2-cfi-asm
  719. -fvar-tracking -fvar-tracking-assignments
  720. _Optimization Options_
  721. *Note Options that Control Optimization: Optimize Options.
  722. -faggressive-loop-optimizations
  723. -falign-functions[=N[:M:[N2[:M2]]]]
  724. -falign-jumps[=N[:M:[N2[:M2]]]]
  725. -falign-labels[=N[:M:[N2[:M2]]]]
  726. -falign-loops[=N[:M:[N2[:M2]]]]
  727. -fno-allocation-dce -fallow-store-data-races
  728. -fassociative-math -fauto-profile -fauto-profile[=PATH]
  729. -fauto-inc-dec -fbranch-probabilities
  730. -fcaller-saves
  731. -fcombine-stack-adjustments -fconserve-stack
  732. -fcompare-elim -fcprop-registers -fcrossjumping
  733. -fcse-follow-jumps -fcse-skip-blocks -fcx-fortran-rules
  734. -fcx-limited-range
  735. -fdata-sections -fdce -fdelayed-branch
  736. -fdelete-null-pointer-checks -fdevirtualize -fdevirtualize-speculatively
  737. -fdevirtualize-at-ltrans -fdse
  738. -fearly-inlining -fipa-sra -fexpensive-optimizations -ffat-lto-objects
  739. -ffast-math -ffinite-math-only -ffloat-store -fexcess-precision=STYLE
  740. -ffinite-loops
  741. -fforward-propagate -ffp-contract=STYLE -ffunction-sections
  742. -fgcse -fgcse-after-reload -fgcse-las -fgcse-lm -fgraphite-identity
  743. -fgcse-sm -fhoist-adjacent-loads -fif-conversion
  744. -fif-conversion2 -findirect-inlining
  745. -finline-functions -finline-functions-called-once -finline-limit=N
  746. -finline-small-functions -fipa-modref -fipa-cp -fipa-cp-clone
  747. -fipa-bit-cp -fipa-vrp -fipa-pta -fipa-profile -fipa-pure-const
  748. -fipa-reference -fipa-reference-addressable
  749. -fipa-stack-alignment -fipa-icf -fira-algorithm=ALGORITHM
  750. -flive-patching=LEVEL
  751. -fira-region=REGION -fira-hoist-pressure
  752. -fira-loop-pressure -fno-ira-share-save-slots
  753. -fno-ira-share-spill-slots
  754. -fisolate-erroneous-paths-dereference -fisolate-erroneous-paths-attribute
  755. -fivopts -fkeep-inline-functions -fkeep-static-functions
  756. -fkeep-static-consts -flimit-function-alignment -flive-range-shrinkage
  757. -floop-block -floop-interchange -floop-strip-mine
  758. -floop-unroll-and-jam -floop-nest-optimize
  759. -floop-parallelize-all -flra-remat -flto -flto-compression-level
  760. -flto-partition=ALG -fmerge-all-constants
  761. -fmerge-constants -fmodulo-sched -fmodulo-sched-allow-regmoves
  762. -fmove-loop-invariants -fno-branch-count-reg
  763. -fno-defer-pop -fno-fp-int-builtin-inexact -fno-function-cse
  764. -fno-guess-branch-probability -fno-inline -fno-math-errno -fno-peephole
  765. -fno-peephole2 -fno-printf-return-value -fno-sched-interblock
  766. -fno-sched-spec -fno-signed-zeros
  767. -fno-toplevel-reorder -fno-trapping-math -fno-zero-initialized-in-bss
  768. -fomit-frame-pointer -foptimize-sibling-calls
  769. -fpartial-inlining -fpeel-loops -fpredictive-commoning
  770. -fprefetch-loop-arrays
  771. -fprofile-correction
  772. -fprofile-use -fprofile-use=PATH -fprofile-partial-training
  773. -fprofile-values -fprofile-reorder-functions
  774. -freciprocal-math -free -frename-registers -freorder-blocks
  775. -freorder-blocks-algorithm=ALGORITHM
  776. -freorder-blocks-and-partition -freorder-functions
  777. -frerun-cse-after-loop -freschedule-modulo-scheduled-loops
  778. -frounding-math -fsave-optimization-record
  779. -fsched2-use-superblocks -fsched-pressure
  780. -fsched-spec-load -fsched-spec-load-dangerous
  781. -fsched-stalled-insns-dep[=N] -fsched-stalled-insns[=N]
  782. -fsched-group-heuristic -fsched-critical-path-heuristic
  783. -fsched-spec-insn-heuristic -fsched-rank-heuristic
  784. -fsched-last-insn-heuristic -fsched-dep-count-heuristic
  785. -fschedule-fusion
  786. -fschedule-insns -fschedule-insns2 -fsection-anchors
  787. -fselective-scheduling -fselective-scheduling2
  788. -fsel-sched-pipelining -fsel-sched-pipelining-outer-loops
  789. -fsemantic-interposition -fshrink-wrap -fshrink-wrap-separate
  790. -fsignaling-nans
  791. -fsingle-precision-constant -fsplit-ivs-in-unroller -fsplit-loops
  792. -fsplit-paths
  793. -fsplit-wide-types -fsplit-wide-types-early -fssa-backprop -fssa-phiopt
  794. -fstdarg-opt -fstore-merging -fstrict-aliasing
  795. -fthread-jumps -ftracer -ftree-bit-ccp
  796. -ftree-builtin-call-dce -ftree-ccp -ftree-ch
  797. -ftree-coalesce-vars -ftree-copy-prop -ftree-dce -ftree-dominator-opts
  798. -ftree-dse -ftree-forwprop -ftree-fre -fcode-hoisting
  799. -ftree-loop-if-convert -ftree-loop-im
  800. -ftree-phiprop -ftree-loop-distribution -ftree-loop-distribute-patterns
  801. -ftree-loop-ivcanon -ftree-loop-linear -ftree-loop-optimize
  802. -ftree-loop-vectorize
  803. -ftree-parallelize-loops=N -ftree-pre -ftree-partial-pre -ftree-pta
  804. -ftree-reassoc -ftree-scev-cprop -ftree-sink -ftree-slsr -ftree-sra
  805. -ftree-switch-conversion -ftree-tail-merge
  806. -ftree-ter -ftree-vectorize -ftree-vrp -funconstrained-commons
  807. -funit-at-a-time -funroll-all-loops -funroll-loops
  808. -funsafe-math-optimizations -funswitch-loops
  809. -fipa-ra -fvariable-expansion-in-unroller -fvect-cost-model -fvpt
  810. -fweb -fwhole-program -fwpa -fuse-linker-plugin -fzero-call-used-regs
  811. --param NAME=VALUE
  812. -O -O0 -O1 -O2 -O3 -Os -Ofast -Og
  813. _Program Instrumentation Options_
  814. *Note Program Instrumentation Options: Instrumentation Options.
  815. -p -pg -fprofile-arcs --coverage -ftest-coverage
  816. -fprofile-abs-path
  817. -fprofile-dir=PATH -fprofile-generate -fprofile-generate=PATH
  818. -fprofile-info-section -fprofile-info-section=NAME
  819. -fprofile-note=PATH -fprofile-prefix-path=PATH
  820. -fprofile-update=METHOD -fprofile-filter-files=REGEX
  821. -fprofile-exclude-files=REGEX
  822. -fprofile-reproducible=[multithreaded|parallel-runs|serial]
  823. -fsanitize=STYLE -fsanitize-recover -fsanitize-recover=STYLE
  824. -fasan-shadow-offset=NUMBER -fsanitize-sections=S1,S2,...
  825. -fsanitize-undefined-trap-on-error -fbounds-check
  826. -fcf-protection=[full|branch|return|none|check]
  827. -fstack-protector -fstack-protector-all -fstack-protector-strong
  828. -fstack-protector-explicit -fstack-check
  829. -fstack-limit-register=REG -fstack-limit-symbol=SYM
  830. -fno-stack-limit -fsplit-stack
  831. -fvtable-verify=[std|preinit|none]
  832. -fvtv-counts -fvtv-debug
  833. -finstrument-functions
  834. -finstrument-functions-exclude-function-list=SYM,SYM,...
  835. -finstrument-functions-exclude-file-list=FILE,FILE,...
  836. _Preprocessor Options_
  837. *Note Options Controlling the Preprocessor: Preprocessor Options.
  838. -AQUESTION=ANSWER
  839. -A-QUESTION[=ANSWER]
  840. -C -CC -DMACRO[=DEFN]
  841. -dD -dI -dM -dN -dU
  842. -fdebug-cpp -fdirectives-only -fdollars-in-identifiers
  843. -fexec-charset=CHARSET -fextended-identifiers
  844. -finput-charset=CHARSET -flarge-source-files
  845. -fmacro-prefix-map=OLD=NEW -fmax-include-depth=DEPTH
  846. -fno-canonical-system-headers -fpch-deps -fpch-preprocess
  847. -fpreprocessed -ftabstop=WIDTH -ftrack-macro-expansion
  848. -fwide-exec-charset=CHARSET -fworking-directory
  849. -H -imacros FILE -include FILE
  850. -M -MD -MF -MG -MM -MMD -MP -MQ -MT -Mno-modules
  851. -no-integrated-cpp -P -pthread -remap
  852. -traditional -traditional-cpp -trigraphs
  853. -UMACRO -undef
  854. -Wp,OPTION -Xpreprocessor OPTION
  855. _Assembler Options_
  856. *Note Passing Options to the Assembler: Assembler Options.
  857. -Wa,OPTION -Xassembler OPTION
  858. _Linker Options_
  859. *Note Options for Linking: Link Options.
  860. OBJECT-FILE-NAME -fuse-ld=LINKER -lLIBRARY
  861. -nostartfiles -nodefaultlibs -nolibc -nostdlib
  862. -e ENTRY --entry=ENTRY
  863. -pie -pthread -r -rdynamic
  864. -s -static -static-pie -static-libgcc -static-libstdc++
  865. -static-libasan -static-libtsan -static-liblsan -static-libubsan
  866. -shared -shared-libgcc -symbolic
  867. -T SCRIPT -Wl,OPTION -Xlinker OPTION
  868. -u SYMBOL -z KEYWORD
  869. _Directory Options_
  870. *Note Options for Directory Search: Directory Options.
  871. -BPREFIX -IDIR -I-
  872. -idirafter DIR
  873. -imacros FILE -imultilib DIR
  874. -iplugindir=DIR -iprefix FILE
  875. -iquote DIR -isysroot DIR -isystem DIR
  876. -iwithprefix DIR -iwithprefixbefore DIR
  877. -LDIR -no-canonical-prefixes --no-sysroot-suffix
  878. -nostdinc -nostdinc++ --sysroot=DIR
  879. _Code Generation Options_
  880. *Note Options for Code Generation Conventions: Code Gen Options.
  881. -fcall-saved-REG -fcall-used-REG
  882. -ffixed-REG -fexceptions
  883. -fnon-call-exceptions -fdelete-dead-exceptions -funwind-tables
  884. -fasynchronous-unwind-tables
  885. -fno-gnu-unique
  886. -finhibit-size-directive -fcommon -fno-ident
  887. -fpcc-struct-return -fpic -fPIC -fpie -fPIE -fno-plt
  888. -fno-jump-tables -fno-bit-tests
  889. -frecord-gcc-switches
  890. -freg-struct-return -fshort-enums -fshort-wchar
  891. -fverbose-asm -fpack-struct[=N]
  892. -fleading-underscore -ftls-model=MODEL
  893. -fstack-reuse=REUSE_LEVEL
  894. -ftrampolines -ftrapv -fwrapv
  895. -fvisibility=[default|internal|hidden|protected]
  896. -fstrict-volatile-bitfields -fsync-libcalls
  897. _Developer Options_
  898. *Note GCC Developer Options: Developer Options.
  899. -dLETTERS -dumpspecs -dumpmachine -dumpversion
  900. -dumpfullversion -fcallgraph-info[=su,da]
  901. -fchecking -fchecking=N
  902. -fdbg-cnt-list -fdbg-cnt=COUNTER-VALUE-LIST
  903. -fdisable-ipa-PASS_NAME
  904. -fdisable-rtl-PASS_NAME
  905. -fdisable-rtl-PASS-NAME=RANGE-LIST
  906. -fdisable-tree-PASS_NAME
  907. -fdisable-tree-PASS-NAME=RANGE-LIST
  908. -fdump-debug -fdump-earlydebug
  909. -fdump-noaddr -fdump-unnumbered -fdump-unnumbered-links
  910. -fdump-final-insns[=FILE]
  911. -fdump-ipa-all -fdump-ipa-cgraph -fdump-ipa-inline
  912. -fdump-lang-all
  913. -fdump-lang-SWITCH
  914. -fdump-lang-SWITCH-OPTIONS
  915. -fdump-lang-SWITCH-OPTIONS=FILENAME
  916. -fdump-passes
  917. -fdump-rtl-PASS -fdump-rtl-PASS=FILENAME
  918. -fdump-statistics
  919. -fdump-tree-all
  920. -fdump-tree-SWITCH
  921. -fdump-tree-SWITCH-OPTIONS
  922. -fdump-tree-SWITCH-OPTIONS=FILENAME
  923. -fcompare-debug[=OPTS] -fcompare-debug-second
  924. -fenable-KIND-PASS
  925. -fenable-KIND-PASS=RANGE-LIST
  926. -fira-verbose=N
  927. -flto-report -flto-report-wpa -fmem-report-wpa
  928. -fmem-report -fpre-ipa-mem-report -fpost-ipa-mem-report
  929. -fopt-info -fopt-info-OPTIONS[=FILE]
  930. -fprofile-report
  931. -frandom-seed=STRING -fsched-verbose=N
  932. -fsel-sched-verbose -fsel-sched-dump-cfg -fsel-sched-pipelining-verbose
  933. -fstats -fstack-usage -ftime-report -ftime-report-details
  934. -fvar-tracking-assignments-toggle -gtoggle
  935. -print-file-name=LIBRARY -print-libgcc-file-name
  936. -print-multi-directory -print-multi-lib -print-multi-os-directory
  937. -print-prog-name=PROGRAM -print-search-dirs -Q
  938. -print-sysroot -print-sysroot-headers-suffix
  939. -save-temps -save-temps=cwd -save-temps=obj -time[=FILE]
  940. _Machine-Dependent Options_
  941. *Note Machine-Dependent Options: Submodel Options.
  942. _AArch64 Options_
  943. -mabi=NAME -mbig-endian -mlittle-endian
  944. -mgeneral-regs-only
  945. -mcmodel=tiny -mcmodel=small -mcmodel=large
  946. -mstrict-align -mno-strict-align
  947. -momit-leaf-frame-pointer
  948. -mtls-dialect=desc -mtls-dialect=traditional
  949. -mtls-size=SIZE
  950. -mfix-cortex-a53-835769 -mfix-cortex-a53-843419
  951. -mlow-precision-recip-sqrt -mlow-precision-sqrt -mlow-precision-div
  952. -mpc-relative-literal-loads
  953. -msign-return-address=SCOPE
  954. -mbranch-protection=NONE|STANDARD|PAC-RET[+LEAF
  955. +B-KEY]|BTI
  956. -mharden-sls=OPTS
  957. -march=NAME -mcpu=NAME -mtune=NAME
  958. -moverride=STRING -mverbose-cost-dump
  959. -mstack-protector-guard=GUARD -mstack-protector-guard-reg=SYSREG
  960. -mstack-protector-guard-offset=OFFSET -mtrack-speculation
  961. -moutline-atomics
  962. _Adapteva Epiphany Options_
  963. -mhalf-reg-file -mprefer-short-insn-regs
  964. -mbranch-cost=NUM -mcmove -mnops=NUM -msoft-cmpsf
  965. -msplit-lohi -mpost-inc -mpost-modify -mstack-offset=NUM
  966. -mround-nearest -mlong-calls -mshort-calls -msmall16
  967. -mfp-mode=MODE -mvect-double -max-vect-align=NUM
  968. -msplit-vecmove-early -m1reg-REG
  969. _AMD GCN Options_
  970. -march=GPU -mtune=GPU -mstack-size=BYTES
  971. _ARC Options_
  972. -mbarrel-shifter -mjli-always
  973. -mcpu=CPU -mA6 -mARC600 -mA7 -mARC700
  974. -mdpfp -mdpfp-compact -mdpfp-fast -mno-dpfp-lrsr
  975. -mea -mno-mpy -mmul32x16 -mmul64 -matomic
  976. -mnorm -mspfp -mspfp-compact -mspfp-fast -msimd -msoft-float -mswap
  977. -mcrc -mdsp-packa -mdvbf -mlock -mmac-d16 -mmac-24 -mrtsc -mswape
  978. -mtelephony -mxy -misize -mannotate-align -marclinux -marclinux_prof
  979. -mlong-calls -mmedium-calls -msdata -mirq-ctrl-saved
  980. -mrgf-banked-regs -mlpc-width=WIDTH -G NUM
  981. -mvolatile-cache -mtp-regno=REGNO
  982. -malign-call -mauto-modify-reg -mbbit-peephole -mno-brcc
  983. -mcase-vector-pcrel -mcompact-casesi -mno-cond-exec -mearly-cbranchsi
  984. -mexpand-adddi -mindexed-loads -mlra -mlra-priority-none
  985. -mlra-priority-compact mlra-priority-noncompact -mmillicode
  986. -mmixed-code -mq-class -mRcq -mRcw -msize-level=LEVEL
  987. -mtune=CPU -mmultcost=NUM -mcode-density-frame
  988. -munalign-prob-threshold=PROBABILITY -mmpy-option=MULTO
  989. -mdiv-rem -mcode-density -mll64 -mfpu=FPU -mrf16 -mbranch-index
  990. _ARM Options_
  991. -mapcs-frame -mno-apcs-frame
  992. -mabi=NAME
  993. -mapcs-stack-check -mno-apcs-stack-check
  994. -mapcs-reentrant -mno-apcs-reentrant
  995. -mgeneral-regs-only
  996. -msched-prolog -mno-sched-prolog
  997. -mlittle-endian -mbig-endian
  998. -mbe8 -mbe32
  999. -mfloat-abi=NAME
  1000. -mfp16-format=NAME
  1001. -mthumb-interwork -mno-thumb-interwork
  1002. -mcpu=NAME -march=NAME -mfpu=NAME
  1003. -mtune=NAME -mprint-tune-info
  1004. -mstructure-size-boundary=N
  1005. -mabort-on-noreturn
  1006. -mlong-calls -mno-long-calls
  1007. -msingle-pic-base -mno-single-pic-base
  1008. -mpic-register=REG
  1009. -mnop-fun-dllimport
  1010. -mpoke-function-name
  1011. -mthumb -marm -mflip-thumb
  1012. -mtpcs-frame -mtpcs-leaf-frame
  1013. -mcaller-super-interworking -mcallee-super-interworking
  1014. -mtp=NAME -mtls-dialect=DIALECT
  1015. -mword-relocations
  1016. -mfix-cortex-m3-ldrd
  1017. -munaligned-access
  1018. -mneon-for-64bits
  1019. -mslow-flash-data
  1020. -masm-syntax-unified
  1021. -mrestrict-it
  1022. -mverbose-cost-dump
  1023. -mpure-code
  1024. -mcmse
  1025. -mfdpic
  1026. _AVR Options_
  1027. -mmcu=MCU -mabsdata -maccumulate-args
  1028. -mbranch-cost=COST
  1029. -mcall-prologues -mgas-isr-prologues -mint8
  1030. -mdouble=BITS -mlong-double=BITS
  1031. -mn_flash=SIZE -mno-interrupts
  1032. -mmain-is-OS_task -mrelax -mrmw -mstrict-X -mtiny-stack
  1033. -mfract-convert-truncate
  1034. -mshort-calls -nodevicelib -nodevicespecs
  1035. -Waddr-space-convert -Wmisspelled-isr
  1036. _Blackfin Options_
  1037. -mcpu=CPU[-SIREVISION]
  1038. -msim -momit-leaf-frame-pointer -mno-omit-leaf-frame-pointer
  1039. -mspecld-anomaly -mno-specld-anomaly -mcsync-anomaly -mno-csync-anomaly
  1040. -mlow-64k -mno-low64k -mstack-check-l1 -mid-shared-library
  1041. -mno-id-shared-library -mshared-library-id=N
  1042. -mleaf-id-shared-library -mno-leaf-id-shared-library
  1043. -msep-data -mno-sep-data -mlong-calls -mno-long-calls
  1044. -mfast-fp -minline-plt -mmulticore -mcorea -mcoreb -msdram
  1045. -micplb
  1046. _C6X Options_
  1047. -mbig-endian -mlittle-endian -march=CPU
  1048. -msim -msdata=SDATA-TYPE
  1049. _CRIS Options_
  1050. -mcpu=CPU -march=CPU -mtune=CPU
  1051. -mmax-stack-frame=N -melinux-stacksize=N
  1052. -metrax4 -metrax100 -mpdebug -mcc-init -mno-side-effects
  1053. -mstack-align -mdata-align -mconst-align
  1054. -m32-bit -m16-bit -m8-bit -mno-prologue-epilogue -mno-gotplt
  1055. -melf -maout -melinux -mlinux -sim -sim2
  1056. -mmul-bug-workaround -mno-mul-bug-workaround
  1057. _CR16 Options_
  1058. -mmac
  1059. -mcr16cplus -mcr16c
  1060. -msim -mint32 -mbit-ops
  1061. -mdata-model=MODEL
  1062. _C-SKY Options_
  1063. -march=ARCH -mcpu=CPU
  1064. -mbig-endian -EB -mlittle-endian -EL
  1065. -mhard-float -msoft-float -mfpu=FPU -mdouble-float -mfdivdu
  1066. -mfloat-abi=NAME
  1067. -melrw -mistack -mmp -mcp -mcache -msecurity -mtrust
  1068. -mdsp -medsp -mvdsp
  1069. -mdiv -msmart -mhigh-registers -manchor
  1070. -mpushpop -mmultiple-stld -mconstpool -mstack-size -mccrt
  1071. -mbranch-cost=N -mcse-cc -msched-prolog -msim
  1072. _Darwin Options_
  1073. -all_load -allowable_client -arch -arch_errors_fatal
  1074. -arch_only -bind_at_load -bundle -bundle_loader
  1075. -client_name -compatibility_version -current_version
  1076. -dead_strip
  1077. -dependency-file -dylib_file -dylinker_install_name
  1078. -dynamic -dynamiclib -exported_symbols_list
  1079. -filelist -flat_namespace -force_cpusubtype_ALL
  1080. -force_flat_namespace -headerpad_max_install_names
  1081. -iframework
  1082. -image_base -init -install_name -keep_private_externs
  1083. -multi_module -multiply_defined -multiply_defined_unused
  1084. -noall_load -no_dead_strip_inits_and_terms
  1085. -nofixprebinding -nomultidefs -noprebind -noseglinkedit
  1086. -pagezero_size -prebind -prebind_all_twolevel_modules
  1087. -private_bundle -read_only_relocs -sectalign
  1088. -sectobjectsymbols -whyload -seg1addr
  1089. -sectcreate -sectobjectsymbols -sectorder
  1090. -segaddr -segs_read_only_addr -segs_read_write_addr
  1091. -seg_addr_table -seg_addr_table_filename -seglinkedit
  1092. -segprot -segs_read_only_addr -segs_read_write_addr
  1093. -single_module -static -sub_library -sub_umbrella
  1094. -twolevel_namespace -umbrella -undefined
  1095. -unexported_symbols_list -weak_reference_mismatches
  1096. -whatsloaded -F -gused -gfull -mmacosx-version-min=VERSION
  1097. -mkernel -mone-byte-bool
  1098. _DEC Alpha Options_
  1099. -mno-fp-regs -msoft-float
  1100. -mieee -mieee-with-inexact -mieee-conformant
  1101. -mfp-trap-mode=MODE -mfp-rounding-mode=MODE
  1102. -mtrap-precision=MODE -mbuild-constants
  1103. -mcpu=CPU-TYPE -mtune=CPU-TYPE
  1104. -mbwx -mmax -mfix -mcix
  1105. -mfloat-vax -mfloat-ieee
  1106. -mexplicit-relocs -msmall-data -mlarge-data
  1107. -msmall-text -mlarge-text
  1108. -mmemory-latency=TIME
  1109. _eBPF Options_
  1110. -mbig-endian -mlittle-endian -mkernel=VERSION
  1111. -mframe-limit=BYTES -mxbpf
  1112. _FR30 Options_
  1113. -msmall-model -mno-lsim
  1114. _FT32 Options_
  1115. -msim -mlra -mnodiv -mft32b -mcompress -mnopm
  1116. _FRV Options_
  1117. -mgpr-32 -mgpr-64 -mfpr-32 -mfpr-64
  1118. -mhard-float -msoft-float
  1119. -malloc-cc -mfixed-cc -mdword -mno-dword
  1120. -mdouble -mno-double
  1121. -mmedia -mno-media -mmuladd -mno-muladd
  1122. -mfdpic -minline-plt -mgprel-ro -multilib-library-pic
  1123. -mlinked-fp -mlong-calls -malign-labels
  1124. -mlibrary-pic -macc-4 -macc-8
  1125. -mpack -mno-pack -mno-eflags -mcond-move -mno-cond-move
  1126. -moptimize-membar -mno-optimize-membar
  1127. -mscc -mno-scc -mcond-exec -mno-cond-exec
  1128. -mvliw-branch -mno-vliw-branch
  1129. -mmulti-cond-exec -mno-multi-cond-exec -mnested-cond-exec
  1130. -mno-nested-cond-exec -mtomcat-stats
  1131. -mTLS -mtls
  1132. -mcpu=CPU
  1133. _GNU/Linux Options_
  1134. -mglibc -muclibc -mmusl -mbionic -mandroid
  1135. -tno-android-cc -tno-android-ld
  1136. _H8/300 Options_
  1137. -mrelax -mh -ms -mn -mexr -mno-exr -mint32 -malign-300
  1138. _HPPA Options_
  1139. -march=ARCHITECTURE-TYPE
  1140. -mcaller-copies -mdisable-fpregs -mdisable-indexing
  1141. -mfast-indirect-calls -mgas -mgnu-ld -mhp-ld
  1142. -mfixed-range=REGISTER-RANGE
  1143. -mjump-in-delay -mlinker-opt -mlong-calls
  1144. -mlong-load-store -mno-disable-fpregs
  1145. -mno-disable-indexing -mno-fast-indirect-calls -mno-gas
  1146. -mno-jump-in-delay -mno-long-load-store
  1147. -mno-portable-runtime -mno-soft-float
  1148. -mno-space-regs -msoft-float -mpa-risc-1-0
  1149. -mpa-risc-1-1 -mpa-risc-2-0 -mportable-runtime
  1150. -mschedule=CPU-TYPE -mspace-regs -msio -mwsio
  1151. -munix=UNIX-STD -nolibdld -static -threads
  1152. _IA-64 Options_
  1153. -mbig-endian -mlittle-endian -mgnu-as -mgnu-ld -mno-pic
  1154. -mvolatile-asm-stop -mregister-names -msdata -mno-sdata
  1155. -mconstant-gp -mauto-pic -mfused-madd
  1156. -minline-float-divide-min-latency
  1157. -minline-float-divide-max-throughput
  1158. -mno-inline-float-divide
  1159. -minline-int-divide-min-latency
  1160. -minline-int-divide-max-throughput
  1161. -mno-inline-int-divide
  1162. -minline-sqrt-min-latency -minline-sqrt-max-throughput
  1163. -mno-inline-sqrt
  1164. -mdwarf2-asm -mearly-stop-bits
  1165. -mfixed-range=REGISTER-RANGE -mtls-size=TLS-SIZE
  1166. -mtune=CPU-TYPE -milp32 -mlp64
  1167. -msched-br-data-spec -msched-ar-data-spec -msched-control-spec
  1168. -msched-br-in-data-spec -msched-ar-in-data-spec -msched-in-control-spec
  1169. -msched-spec-ldc -msched-spec-control-ldc
  1170. -msched-prefer-non-data-spec-insns -msched-prefer-non-control-spec-insns
  1171. -msched-stop-bits-after-every-cycle -msched-count-spec-in-critical-path
  1172. -msel-sched-dont-check-control-spec -msched-fp-mem-deps-zero-cost
  1173. -msched-max-memory-insns-hard-limit -msched-max-memory-insns=MAX-INSNS
  1174. _LM32 Options_
  1175. -mbarrel-shift-enabled -mdivide-enabled -mmultiply-enabled
  1176. -msign-extend-enabled -muser-enabled
  1177. _M32R/D Options_
  1178. -m32r2 -m32rx -m32r
  1179. -mdebug
  1180. -malign-loops -mno-align-loops
  1181. -missue-rate=NUMBER
  1182. -mbranch-cost=NUMBER
  1183. -mmodel=CODE-SIZE-MODEL-TYPE
  1184. -msdata=SDATA-TYPE
  1185. -mno-flush-func -mflush-func=NAME
  1186. -mno-flush-trap -mflush-trap=NUMBER
  1187. -G NUM
  1188. _M32C Options_
  1189. -mcpu=CPU -msim -memregs=NUMBER
  1190. _M680x0 Options_
  1191. -march=ARCH -mcpu=CPU -mtune=TUNE
  1192. -m68000 -m68020 -m68020-40 -m68020-60 -m68030 -m68040
  1193. -m68060 -mcpu32 -m5200 -m5206e -m528x -m5307 -m5407
  1194. -mcfv4e -mbitfield -mno-bitfield -mc68000 -mc68020
  1195. -mnobitfield -mrtd -mno-rtd -mdiv -mno-div -mshort
  1196. -mno-short -mhard-float -m68881 -msoft-float -mpcrel
  1197. -malign-int -mstrict-align -msep-data -mno-sep-data
  1198. -mshared-library-id=n -mid-shared-library -mno-id-shared-library
  1199. -mxgot -mno-xgot -mlong-jump-table-offsets
  1200. _MCore Options_
  1201. -mhardlit -mno-hardlit -mdiv -mno-div -mrelax-immediates
  1202. -mno-relax-immediates -mwide-bitfields -mno-wide-bitfields
  1203. -m4byte-functions -mno-4byte-functions -mcallgraph-data
  1204. -mno-callgraph-data -mslow-bytes -mno-slow-bytes -mno-lsim
  1205. -mlittle-endian -mbig-endian -m210 -m340 -mstack-increment
  1206. _MeP Options_
  1207. -mabsdiff -mall-opts -maverage -mbased=N -mbitops
  1208. -mc=N -mclip -mconfig=NAME -mcop -mcop32 -mcop64 -mivc2
  1209. -mdc -mdiv -meb -mel -mio-volatile -ml -mleadz -mm -mminmax
  1210. -mmult -mno-opts -mrepeat -ms -msatur -msdram -msim -msimnovec -mtf
  1211. -mtiny=N
  1212. _MicroBlaze Options_
  1213. -msoft-float -mhard-float -msmall-divides -mcpu=CPU
  1214. -mmemcpy -mxl-soft-mul -mxl-soft-div -mxl-barrel-shift
  1215. -mxl-pattern-compare -mxl-stack-check -mxl-gp-opt -mno-clearbss
  1216. -mxl-multiply-high -mxl-float-convert -mxl-float-sqrt
  1217. -mbig-endian -mlittle-endian -mxl-reorder -mxl-mode-APP-MODEL
  1218. -mpic-data-is-text-relative
  1219. _MIPS Options_
  1220. -EL -EB -march=ARCH -mtune=ARCH
  1221. -mips1 -mips2 -mips3 -mips4 -mips32 -mips32r2 -mips32r3 -mips32r5
  1222. -mips32r6 -mips64 -mips64r2 -mips64r3 -mips64r5 -mips64r6
  1223. -mips16 -mno-mips16 -mflip-mips16
  1224. -minterlink-compressed -mno-interlink-compressed
  1225. -minterlink-mips16 -mno-interlink-mips16
  1226. -mabi=ABI -mabicalls -mno-abicalls
  1227. -mshared -mno-shared -mplt -mno-plt -mxgot -mno-xgot
  1228. -mgp32 -mgp64 -mfp32 -mfpxx -mfp64 -mhard-float -msoft-float
  1229. -mno-float -msingle-float -mdouble-float
  1230. -modd-spreg -mno-odd-spreg
  1231. -mabs=MODE -mnan=ENCODING
  1232. -mdsp -mno-dsp -mdspr2 -mno-dspr2
  1233. -mmcu -mmno-mcu
  1234. -meva -mno-eva
  1235. -mvirt -mno-virt
  1236. -mxpa -mno-xpa
  1237. -mcrc -mno-crc
  1238. -mginv -mno-ginv
  1239. -mmicromips -mno-micromips
  1240. -mmsa -mno-msa
  1241. -mloongson-mmi -mno-loongson-mmi
  1242. -mloongson-ext -mno-loongson-ext
  1243. -mloongson-ext2 -mno-loongson-ext2
  1244. -mfpu=FPU-TYPE
  1245. -msmartmips -mno-smartmips
  1246. -mpaired-single -mno-paired-single -mdmx -mno-mdmx
  1247. -mips3d -mno-mips3d -mmt -mno-mt -mllsc -mno-llsc
  1248. -mlong64 -mlong32 -msym32 -mno-sym32
  1249. -GNUM -mlocal-sdata -mno-local-sdata
  1250. -mextern-sdata -mno-extern-sdata -mgpopt -mno-gopt
  1251. -membedded-data -mno-embedded-data
  1252. -muninit-const-in-rodata -mno-uninit-const-in-rodata
  1253. -mcode-readable=SETTING
  1254. -msplit-addresses -mno-split-addresses
  1255. -mexplicit-relocs -mno-explicit-relocs
  1256. -mcheck-zero-division -mno-check-zero-division
  1257. -mdivide-traps -mdivide-breaks
  1258. -mload-store-pairs -mno-load-store-pairs
  1259. -mmemcpy -mno-memcpy -mlong-calls -mno-long-calls
  1260. -mmad -mno-mad -mimadd -mno-imadd -mfused-madd -mno-fused-madd -nocpp
  1261. -mfix-24k -mno-fix-24k
  1262. -mfix-r4000 -mno-fix-r4000 -mfix-r4400 -mno-fix-r4400
  1263. -mfix-r5900 -mno-fix-r5900
  1264. -mfix-r10000 -mno-fix-r10000 -mfix-rm7000 -mno-fix-rm7000
  1265. -mfix-vr4120 -mno-fix-vr4120
  1266. -mfix-vr4130 -mno-fix-vr4130 -mfix-sb1 -mno-fix-sb1
  1267. -mflush-func=FUNC -mno-flush-func
  1268. -mbranch-cost=NUM -mbranch-likely -mno-branch-likely
  1269. -mcompact-branches=POLICY
  1270. -mfp-exceptions -mno-fp-exceptions
  1271. -mvr4130-align -mno-vr4130-align -msynci -mno-synci
  1272. -mlxc1-sxc1 -mno-lxc1-sxc1 -mmadd4 -mno-madd4
  1273. -mrelax-pic-calls -mno-relax-pic-calls -mmcount-ra-address
  1274. -mframe-header-opt -mno-frame-header-opt
  1275. _MMIX Options_
  1276. -mlibfuncs -mno-libfuncs -mepsilon -mno-epsilon -mabi=gnu
  1277. -mabi=mmixware -mzero-extend -mknuthdiv -mtoplevel-symbols
  1278. -melf -mbranch-predict -mno-branch-predict -mbase-addresses
  1279. -mno-base-addresses -msingle-exit -mno-single-exit
  1280. _MN10300 Options_
  1281. -mmult-bug -mno-mult-bug
  1282. -mno-am33 -mam33 -mam33-2 -mam34
  1283. -mtune=CPU-TYPE
  1284. -mreturn-pointer-on-d0
  1285. -mno-crt0 -mrelax -mliw -msetlb
  1286. _Moxie Options_
  1287. -meb -mel -mmul.x -mno-crt0
  1288. _MSP430 Options_
  1289. -msim -masm-hex -mmcu= -mcpu= -mlarge -msmall -mrelax
  1290. -mwarn-mcu
  1291. -mcode-region= -mdata-region=
  1292. -msilicon-errata= -msilicon-errata-warn=
  1293. -mhwmult= -minrt -mtiny-printf -mmax-inline-shift=
  1294. _NDS32 Options_
  1295. -mbig-endian -mlittle-endian
  1296. -mreduced-regs -mfull-regs
  1297. -mcmov -mno-cmov
  1298. -mext-perf -mno-ext-perf
  1299. -mext-perf2 -mno-ext-perf2
  1300. -mext-string -mno-ext-string
  1301. -mv3push -mno-v3push
  1302. -m16bit -mno-16bit
  1303. -misr-vector-size=NUM
  1304. -mcache-block-size=NUM
  1305. -march=ARCH
  1306. -mcmodel=CODE-MODEL
  1307. -mctor-dtor -mrelax
  1308. _Nios II Options_
  1309. -G NUM -mgpopt=OPTION -mgpopt -mno-gpopt
  1310. -mgprel-sec=REGEXP -mr0rel-sec=REGEXP
  1311. -mel -meb
  1312. -mno-bypass-cache -mbypass-cache
  1313. -mno-cache-volatile -mcache-volatile
  1314. -mno-fast-sw-div -mfast-sw-div
  1315. -mhw-mul -mno-hw-mul -mhw-mulx -mno-hw-mulx -mno-hw-div -mhw-div
  1316. -mcustom-INSN=N -mno-custom-INSN
  1317. -mcustom-fpu-cfg=NAME
  1318. -mhal -msmallc -msys-crt0=NAME -msys-lib=NAME
  1319. -march=ARCH -mbmx -mno-bmx -mcdx -mno-cdx
  1320. _Nvidia PTX Options_
  1321. -m64 -mmainkernel -moptimize
  1322. _OpenRISC Options_
  1323. -mboard=NAME -mnewlib -mhard-mul -mhard-div
  1324. -msoft-mul -msoft-div
  1325. -msoft-float -mhard-float -mdouble-float -munordered-float
  1326. -mcmov -mror -mrori -msext -msfimm -mshftimm
  1327. _PDP-11 Options_
  1328. -mfpu -msoft-float -mac0 -mno-ac0 -m40 -m45 -m10
  1329. -mint32 -mno-int16 -mint16 -mno-int32
  1330. -msplit -munix-asm -mdec-asm -mgnu-asm -mlra
  1331. _picoChip Options_
  1332. -mae=AE_TYPE -mvliw-lookahead=N
  1333. -msymbol-as-address -mno-inefficient-warnings
  1334. _PowerPC Options_ See RS/6000 and PowerPC Options.
  1335. _PRU Options_
  1336. -mmcu=MCU -minrt -mno-relax -mloop
  1337. -mabi=VARIANT
  1338. _RISC-V Options_
  1339. -mbranch-cost=N-INSTRUCTION
  1340. -mplt -mno-plt
  1341. -mabi=ABI-STRING
  1342. -mfdiv -mno-fdiv
  1343. -mdiv -mno-div
  1344. -march=ISA-STRING
  1345. -mtune=PROCESSOR-STRING
  1346. -mpreferred-stack-boundary=NUM
  1347. -msmall-data-limit=N-BYTES
  1348. -msave-restore -mno-save-restore
  1349. -mshorten-memrefs -mno-shorten-memrefs
  1350. -mstrict-align -mno-strict-align
  1351. -mcmodel=medlow -mcmodel=medany
  1352. -mexplicit-relocs -mno-explicit-relocs
  1353. -mrelax -mno-relax
  1354. -mriscv-attribute -mmo-riscv-attribute
  1355. -malign-data=TYPE
  1356. -mbig-endian -mlittle-endian
  1357. +-mstack-protector-guard=GUARD -mstack-protector-guard-reg=REG
  1358. +-mstack-protector-guard-offset=OFFSET
  1359. _RL78 Options_
  1360. -msim -mmul=none -mmul=g13 -mmul=g14 -mallregs
  1361. -mcpu=g10 -mcpu=g13 -mcpu=g14 -mg10 -mg13 -mg14
  1362. -m64bit-doubles -m32bit-doubles -msave-mduc-in-interrupts
  1363. _RS/6000 and PowerPC Options_
  1364. -mcpu=CPU-TYPE
  1365. -mtune=CPU-TYPE
  1366. -mcmodel=CODE-MODEL
  1367. -mpowerpc64
  1368. -maltivec -mno-altivec
  1369. -mpowerpc-gpopt -mno-powerpc-gpopt
  1370. -mpowerpc-gfxopt -mno-powerpc-gfxopt
  1371. -mmfcrf -mno-mfcrf -mpopcntb -mno-popcntb -mpopcntd -mno-popcntd
  1372. -mfprnd -mno-fprnd
  1373. -mcmpb -mno-cmpb -mhard-dfp -mno-hard-dfp
  1374. -mfull-toc -mminimal-toc -mno-fp-in-toc -mno-sum-in-toc
  1375. -m64 -m32 -mxl-compat -mno-xl-compat -mpe
  1376. -malign-power -malign-natural
  1377. -msoft-float -mhard-float -mmultiple -mno-multiple
  1378. -mupdate -mno-update
  1379. -mavoid-indexed-addresses -mno-avoid-indexed-addresses
  1380. -mfused-madd -mno-fused-madd -mbit-align -mno-bit-align
  1381. -mstrict-align -mno-strict-align -mrelocatable
  1382. -mno-relocatable -mrelocatable-lib -mno-relocatable-lib
  1383. -mtoc -mno-toc -mlittle -mlittle-endian -mbig -mbig-endian
  1384. -mdynamic-no-pic -mswdiv -msingle-pic-base
  1385. -mprioritize-restricted-insns=PRIORITY
  1386. -msched-costly-dep=DEPENDENCE_TYPE
  1387. -minsert-sched-nops=SCHEME
  1388. -mcall-aixdesc -mcall-eabi -mcall-freebsd
  1389. -mcall-linux -mcall-netbsd -mcall-openbsd
  1390. -mcall-sysv -mcall-sysv-eabi -mcall-sysv-noeabi
  1391. -mtraceback=TRACEBACK_TYPE
  1392. -maix-struct-return -msvr4-struct-return
  1393. -mabi=ABI-TYPE -msecure-plt -mbss-plt
  1394. -mlongcall -mno-longcall -mpltseq -mno-pltseq
  1395. -mblock-move-inline-limit=NUM
  1396. -mblock-compare-inline-limit=NUM
  1397. -mblock-compare-inline-loop-limit=NUM
  1398. -mno-block-ops-unaligned-vsx
  1399. -mstring-compare-inline-limit=NUM
  1400. -misel -mno-isel
  1401. -mvrsave -mno-vrsave
  1402. -mmulhw -mno-mulhw
  1403. -mdlmzb -mno-dlmzb
  1404. -mprototype -mno-prototype
  1405. -msim -mmvme -mads -myellowknife -memb -msdata
  1406. -msdata=OPT -mreadonly-in-sdata -mvxworks -G NUM
  1407. -mrecip -mrecip=OPT -mno-recip -mrecip-precision
  1408. -mno-recip-precision
  1409. -mveclibabi=TYPE -mfriz -mno-friz
  1410. -mpointers-to-nested-functions -mno-pointers-to-nested-functions
  1411. -msave-toc-indirect -mno-save-toc-indirect
  1412. -mpower8-fusion -mno-mpower8-fusion -mpower8-vector -mno-power8-vector
  1413. -mcrypto -mno-crypto -mhtm -mno-htm
  1414. -mquad-memory -mno-quad-memory
  1415. -mquad-memory-atomic -mno-quad-memory-atomic
  1416. -mcompat-align-parm -mno-compat-align-parm
  1417. -mfloat128 -mno-float128 -mfloat128-hardware -mno-float128-hardware
  1418. -mgnu-attribute -mno-gnu-attribute
  1419. -mstack-protector-guard=GUARD -mstack-protector-guard-reg=REG
  1420. -mstack-protector-guard-offset=OFFSET -mprefixed -mno-prefixed
  1421. -mpcrel -mno-pcrel -mmma -mno-mmma
  1422. _RX Options_
  1423. -m64bit-doubles -m32bit-doubles -fpu -nofpu
  1424. -mcpu=
  1425. -mbig-endian-data -mlittle-endian-data
  1426. -msmall-data
  1427. -msim -mno-sim
  1428. -mas100-syntax -mno-as100-syntax
  1429. -mrelax
  1430. -mmax-constant-size=
  1431. -mint-register=
  1432. -mpid
  1433. -mallow-string-insns -mno-allow-string-insns
  1434. -mjsr
  1435. -mno-warn-multiple-fast-interrupts
  1436. -msave-acc-in-interrupts
  1437. _S/390 and zSeries Options_
  1438. -mtune=CPU-TYPE -march=CPU-TYPE
  1439. -mhard-float -msoft-float -mhard-dfp -mno-hard-dfp
  1440. -mlong-double-64 -mlong-double-128
  1441. -mbackchain -mno-backchain -mpacked-stack -mno-packed-stack
  1442. -msmall-exec -mno-small-exec -mmvcle -mno-mvcle
  1443. -m64 -m31 -mdebug -mno-debug -mesa -mzarch
  1444. -mhtm -mvx -mzvector
  1445. -mtpf-trace -mno-tpf-trace -mtpf-trace-skip -mno-tpf-trace-skip
  1446. -mfused-madd -mno-fused-madd
  1447. -mwarn-framesize -mwarn-dynamicstack -mstack-size -mstack-guard
  1448. -mhotpatch=HALFWORDS,HALFWORDS
  1449. _Score Options_
  1450. -meb -mel
  1451. -mnhwloop
  1452. -muls
  1453. -mmac
  1454. -mscore5 -mscore5u -mscore7 -mscore7d
  1455. _SH Options_
  1456. -m1 -m2 -m2e
  1457. -m2a-nofpu -m2a-single-only -m2a-single -m2a
  1458. -m3 -m3e
  1459. -m4-nofpu -m4-single-only -m4-single -m4
  1460. -m4a-nofpu -m4a-single-only -m4a-single -m4a -m4al
  1461. -mb -ml -mdalign -mrelax
  1462. -mbigtable -mfmovd -mrenesas -mno-renesas -mnomacsave
  1463. -mieee -mno-ieee -mbitops -misize -minline-ic_invalidate -mpadstruct
  1464. -mprefergot -musermode -multcost=NUMBER -mdiv=STRATEGY
  1465. -mdivsi3_libfunc=NAME -mfixed-range=REGISTER-RANGE
  1466. -maccumulate-outgoing-args
  1467. -matomic-model=ATOMIC-MODEL
  1468. -mbranch-cost=NUM -mzdcbranch -mno-zdcbranch
  1469. -mcbranch-force-delay-slot
  1470. -mfused-madd -mno-fused-madd -mfsca -mno-fsca -mfsrra -mno-fsrra
  1471. -mpretend-cmove -mtas
  1472. _Solaris 2 Options_
  1473. -mclear-hwcap -mno-clear-hwcap -mimpure-text -mno-impure-text
  1474. -pthreads
  1475. _SPARC Options_
  1476. -mcpu=CPU-TYPE
  1477. -mtune=CPU-TYPE
  1478. -mcmodel=CODE-MODEL
  1479. -mmemory-model=MEM-MODEL
  1480. -m32 -m64 -mapp-regs -mno-app-regs
  1481. -mfaster-structs -mno-faster-structs -mflat -mno-flat
  1482. -mfpu -mno-fpu -mhard-float -msoft-float
  1483. -mhard-quad-float -msoft-quad-float
  1484. -mstack-bias -mno-stack-bias
  1485. -mstd-struct-return -mno-std-struct-return
  1486. -munaligned-doubles -mno-unaligned-doubles
  1487. -muser-mode -mno-user-mode
  1488. -mv8plus -mno-v8plus -mvis -mno-vis
  1489. -mvis2 -mno-vis2 -mvis3 -mno-vis3
  1490. -mvis4 -mno-vis4 -mvis4b -mno-vis4b
  1491. -mcbcond -mno-cbcond -mfmaf -mno-fmaf -mfsmuld -mno-fsmuld
  1492. -mpopc -mno-popc -msubxc -mno-subxc
  1493. -mfix-at697f -mfix-ut699 -mfix-ut700 -mfix-gr712rc
  1494. -mlra -mno-lra
  1495. _System V Options_
  1496. -Qy -Qn -YP,PATHS -Ym,DIR
  1497. _TILE-Gx Options_
  1498. -mcpu=CPU -m32 -m64 -mbig-endian -mlittle-endian
  1499. -mcmodel=CODE-MODEL
  1500. _TILEPro Options_
  1501. -mcpu=CPU -m32
  1502. _V850 Options_
  1503. -mlong-calls -mno-long-calls -mep -mno-ep
  1504. -mprolog-function -mno-prolog-function -mspace
  1505. -mtda=N -msda=N -mzda=N
  1506. -mapp-regs -mno-app-regs
  1507. -mdisable-callt -mno-disable-callt
  1508. -mv850e2v3 -mv850e2 -mv850e1 -mv850es
  1509. -mv850e -mv850 -mv850e3v5
  1510. -mloop
  1511. -mrelax
  1512. -mlong-jumps
  1513. -msoft-float
  1514. -mhard-float
  1515. -mgcc-abi
  1516. -mrh850-abi
  1517. -mbig-switch
  1518. _VAX Options_
  1519. -mg -mgnu -munix
  1520. _Visium Options_
  1521. -mdebug -msim -mfpu -mno-fpu -mhard-float -msoft-float
  1522. -mcpu=CPU-TYPE -mtune=CPU-TYPE -msv-mode -muser-mode
  1523. _VMS Options_
  1524. -mvms-return-codes -mdebug-main=PREFIX -mmalloc64
  1525. -mpointer-size=SIZE
  1526. _VxWorks Options_
  1527. -mrtp -non-static -Bstatic -Bdynamic
  1528. -Xbind-lazy -Xbind-now
  1529. _x86 Options_
  1530. -mtune=CPU-TYPE -march=CPU-TYPE
  1531. -mtune-ctrl=FEATURE-LIST -mdump-tune-features -mno-default
  1532. -mfpmath=UNIT
  1533. -masm=DIALECT -mno-fancy-math-387
  1534. -mno-fp-ret-in-387 -m80387 -mhard-float -msoft-float
  1535. -mno-wide-multiply -mrtd -malign-double
  1536. -mpreferred-stack-boundary=NUM
  1537. -mincoming-stack-boundary=NUM
  1538. -mcld -mcx16 -msahf -mmovbe -mcrc32
  1539. -mrecip -mrecip=OPT
  1540. -mvzeroupper -mprefer-avx128 -mprefer-vector-width=OPT
  1541. -mmmx -msse -msse2 -msse3 -mssse3 -msse4.1 -msse4.2 -msse4 -mavx
  1542. -mavx2 -mavx512f -mavx512pf -mavx512er -mavx512cd -mavx512vl
  1543. -mavx512bw -mavx512dq -mavx512ifma -mavx512vbmi -msha -maes
  1544. -mpclmul -mfsgsbase -mrdrnd -mf16c -mfma -mpconfig -mwbnoinvd
  1545. -mptwrite -mprefetchwt1 -mclflushopt -mclwb -mxsavec -mxsaves
  1546. -msse4a -m3dnow -m3dnowa -mpopcnt -mabm -mbmi -mtbm -mfma4 -mxop
  1547. -madx -mlzcnt -mbmi2 -mfxsr -mxsave -mxsaveopt -mrtm -mhle -mlwp
  1548. -mmwaitx -mclzero -mpku -mthreads -mgfni -mvaes -mwaitpkg
  1549. -mshstk -mmanual-endbr -mforce-indirect-call -mavx512vbmi2 -mavx512bf16 -menqcmd
  1550. -mvpclmulqdq -mavx512bitalg -mmovdiri -mmovdir64b -mavx512vpopcntdq
  1551. -mavx5124fmaps -mavx512vnni -mavx5124vnniw -mprfchw -mrdpid
  1552. -mrdseed -msgx -mavx512vp2intersect -mserialize -mtsxldtrk
  1553. -mamx-tile -mamx-int8 -mamx-bf16 -muintr -mhreset -mavxvnni
  1554. -mcldemote -mms-bitfields -mno-align-stringops -minline-all-stringops
  1555. -minline-stringops-dynamically -mstringop-strategy=ALG
  1556. -mkl -mwidekl
  1557. -mmemcpy-strategy=STRATEGY -mmemset-strategy=STRATEGY
  1558. -mpush-args -maccumulate-outgoing-args -m128bit-long-double
  1559. -m96bit-long-double -mlong-double-64 -mlong-double-80 -mlong-double-128
  1560. -mregparm=NUM -msseregparm
  1561. -mveclibabi=TYPE -mvect8-ret-in-mem
  1562. -mpc32 -mpc64 -mpc80 -mstackrealign
  1563. -momit-leaf-frame-pointer -mno-red-zone -mno-tls-direct-seg-refs
  1564. -mcmodel=CODE-MODEL -mabi=NAME -maddress-mode=MODE
  1565. -m32 -m64 -mx32 -m16 -miamcu -mlarge-data-threshold=NUM
  1566. -msse2avx -mfentry -mrecord-mcount -mnop-mcount -m8bit-idiv
  1567. -minstrument-return=TYPE -mfentry-name=NAME -mfentry-section=NAME
  1568. -mavx256-split-unaligned-load -mavx256-split-unaligned-store
  1569. -malign-data=TYPE -mstack-protector-guard=GUARD
  1570. -mstack-protector-guard-reg=REG
  1571. -mstack-protector-guard-offset=OFFSET
  1572. -mstack-protector-guard-symbol=SYMBOL
  1573. -mgeneral-regs-only -mcall-ms2sysv-xlogues
  1574. -mindirect-branch=CHOICE -mfunction-return=CHOICE
  1575. -mindirect-branch-register -mneeded
  1576. _x86 Windows Options_
  1577. -mconsole -mcygwin -mno-cygwin -mdll
  1578. -mnop-fun-dllimport -mthread
  1579. -municode -mwin32 -mwindows -fno-set-stack-executable
  1580. _Xstormy16 Options_
  1581. -msim
  1582. _Xtensa Options_
  1583. -mconst16 -mno-const16
  1584. -mfused-madd -mno-fused-madd
  1585. -mforce-no-pic
  1586. -mserialize-volatile -mno-serialize-volatile
  1587. -mtext-section-literals -mno-text-section-literals
  1588. -mauto-litpools -mno-auto-litpools
  1589. -mtarget-align -mno-target-align
  1590. -mlongcalls -mno-longcalls
  1591. -mabi=ABI-TYPE
  1592. _zSeries Options_ See S/390 and zSeries Options.
  1593. 
  1594. File: gcc.info, Node: Overall Options, Next: Invoking G++, Prev: Option Summary, Up: Invoking GCC
  1595. 3.2 Options Controlling the Kind of Output
  1596. ==========================================
  1597. Compilation can involve up to four stages: preprocessing, compilation
  1598. proper, assembly and linking, always in that order. GCC is capable of
  1599. preprocessing and compiling several files either into several assembler
  1600. input files, or into one assembler input file; then each assembler input
  1601. file produces an object file, and linking combines all the object files
  1602. (those newly compiled, and those specified as input) into an executable
  1603. file.
  1604. For any given input file, the file name suffix determines what kind of
  1605. compilation is done:
  1606. 'FILE.c'
  1607. C source code that must be preprocessed.
  1608. 'FILE.i'
  1609. C source code that should not be preprocessed.
  1610. 'FILE.ii'
  1611. C++ source code that should not be preprocessed.
  1612. 'FILE.m'
  1613. Objective-C source code. Note that you must link with the
  1614. 'libobjc' library to make an Objective-C program work.
  1615. 'FILE.mi'
  1616. Objective-C source code that should not be preprocessed.
  1617. 'FILE.mm'
  1618. 'FILE.M'
  1619. Objective-C++ source code. Note that you must link with the
  1620. 'libobjc' library to make an Objective-C++ program work. Note that
  1621. '.M' refers to a literal capital M.
  1622. 'FILE.mii'
  1623. Objective-C++ source code that should not be preprocessed.
  1624. 'FILE.h'
  1625. C, C++, Objective-C or Objective-C++ header file to be turned into
  1626. a precompiled header (default), or C, C++ header file to be turned
  1627. into an Ada spec (via the '-fdump-ada-spec' switch).
  1628. 'FILE.cc'
  1629. 'FILE.cp'
  1630. 'FILE.cxx'
  1631. 'FILE.cpp'
  1632. 'FILE.CPP'
  1633. 'FILE.c++'
  1634. 'FILE.C'
  1635. C++ source code that must be preprocessed. Note that in '.cxx',
  1636. the last two letters must both be literally 'x'. Likewise, '.C'
  1637. refers to a literal capital C.
  1638. 'FILE.mm'
  1639. 'FILE.M'
  1640. Objective-C++ source code that must be preprocessed.
  1641. 'FILE.mii'
  1642. Objective-C++ source code that should not be preprocessed.
  1643. 'FILE.hh'
  1644. 'FILE.H'
  1645. 'FILE.hp'
  1646. 'FILE.hxx'
  1647. 'FILE.hpp'
  1648. 'FILE.HPP'
  1649. 'FILE.h++'
  1650. 'FILE.tcc'
  1651. C++ header file to be turned into a precompiled header or Ada spec.
  1652. 'FILE.f'
  1653. 'FILE.for'
  1654. 'FILE.ftn'
  1655. Fixed form Fortran source code that should not be preprocessed.
  1656. 'FILE.F'
  1657. 'FILE.FOR'
  1658. 'FILE.fpp'
  1659. 'FILE.FPP'
  1660. 'FILE.FTN'
  1661. Fixed form Fortran source code that must be preprocessed (with the
  1662. traditional preprocessor).
  1663. 'FILE.f90'
  1664. 'FILE.f95'
  1665. 'FILE.f03'
  1666. 'FILE.f08'
  1667. Free form Fortran source code that should not be preprocessed.
  1668. 'FILE.F90'
  1669. 'FILE.F95'
  1670. 'FILE.F03'
  1671. 'FILE.F08'
  1672. Free form Fortran source code that must be preprocessed (with the
  1673. traditional preprocessor).
  1674. 'FILE.go'
  1675. Go source code.
  1676. 'FILE.brig'
  1677. BRIG files (binary representation of HSAIL).
  1678. 'FILE.d'
  1679. D source code.
  1680. 'FILE.di'
  1681. D interface file.
  1682. 'FILE.dd'
  1683. D documentation code (Ddoc).
  1684. 'FILE.ads'
  1685. Ada source code file that contains a library unit declaration (a
  1686. declaration of a package, subprogram, or generic, or a generic
  1687. instantiation), or a library unit renaming declaration (a package,
  1688. generic, or subprogram renaming declaration). Such files are also
  1689. called "specs".
  1690. 'FILE.adb'
  1691. Ada source code file containing a library unit body (a subprogram
  1692. or package body). Such files are also called "bodies".
  1693. 'FILE.s'
  1694. Assembler code.
  1695. 'FILE.S'
  1696. 'FILE.sx'
  1697. Assembler code that must be preprocessed.
  1698. 'OTHER'
  1699. An object file to be fed straight into linking. Any file name with
  1700. no recognized suffix is treated this way.
  1701. You can specify the input language explicitly with the '-x' option:
  1702. '-x LANGUAGE'
  1703. Specify explicitly the LANGUAGE for the following input files
  1704. (rather than letting the compiler choose a default based on the
  1705. file name suffix). This option applies to all following input
  1706. files until the next '-x' option. Possible values for LANGUAGE
  1707. are:
  1708. c c-header cpp-output
  1709. c++ c++-header c++-system-header c++-user-header c++-cpp-output
  1710. objective-c objective-c-header objective-c-cpp-output
  1711. objective-c++ objective-c++-header objective-c++-cpp-output
  1712. assembler assembler-with-cpp
  1713. ada
  1714. d
  1715. f77 f77-cpp-input f95 f95-cpp-input
  1716. go
  1717. brig
  1718. '-x none'
  1719. Turn off any specification of a language, so that subsequent files
  1720. are handled according to their file name suffixes (as they are if
  1721. '-x' has not been used at all).
  1722. If you only want some of the stages of compilation, you can use '-x'
  1723. (or filename suffixes) to tell 'gcc' where to start, and one of the
  1724. options '-c', '-S', or '-E' to say where 'gcc' is to stop. Note that
  1725. some combinations (for example, '-x cpp-output -E') instruct 'gcc' to do
  1726. nothing at all.
  1727. '-c'
  1728. Compile or assemble the source files, but do not link. The linking
  1729. stage simply is not done. The ultimate output is in the form of an
  1730. object file for each source file.
  1731. By default, the object file name for a source file is made by
  1732. replacing the suffix '.c', '.i', '.s', etc., with '.o'.
  1733. Unrecognized input files, not requiring compilation or assembly,
  1734. are ignored.
  1735. '-S'
  1736. Stop after the stage of compilation proper; do not assemble. The
  1737. output is in the form of an assembler code file for each
  1738. non-assembler input file specified.
  1739. By default, the assembler file name for a source file is made by
  1740. replacing the suffix '.c', '.i', etc., with '.s'.
  1741. Input files that don't require compilation are ignored.
  1742. '-E'
  1743. Stop after the preprocessing stage; do not run the compiler proper.
  1744. The output is in the form of preprocessed source code, which is
  1745. sent to the standard output.
  1746. Input files that don't require preprocessing are ignored.
  1747. '-o FILE'
  1748. Place the primary output in file FILE. This applies to whatever
  1749. sort of output is being produced, whether it be an executable file,
  1750. an object file, an assembler file or preprocessed C code.
  1751. If '-o' is not specified, the default is to put an executable file
  1752. in 'a.out', the object file for 'SOURCE.SUFFIX' in 'SOURCE.o', its
  1753. assembler file in 'SOURCE.s', a precompiled header file in
  1754. 'SOURCE.SUFFIX.gch', and all preprocessed C source on standard
  1755. output.
  1756. Though '-o' names only the primary output, it also affects the
  1757. naming of auxiliary and dump outputs. See the examples below.
  1758. Unless overridden, both auxiliary outputs and dump outputs are
  1759. placed in the same directory as the primary output. In auxiliary
  1760. outputs, the suffix of the input file is replaced with that of the
  1761. auxiliary output file type; in dump outputs, the suffix of the dump
  1762. file is appended to the input file suffix. In compilation
  1763. commands, the base name of both auxiliary and dump outputs is that
  1764. of the primary output; in compile and link commands, the primary
  1765. output name, minus the executable suffix, is combined with the
  1766. input file name. If both share the same base name, disregarding
  1767. the suffix, the result of the combination is that base name,
  1768. otherwise, they are concatenated, separated by a dash.
  1769. gcc -c foo.c ...
  1770. will use 'foo.o' as the primary output, and place aux outputs and
  1771. dumps next to it, e.g., aux file 'foo.dwo' for '-gsplit-dwarf', and
  1772. dump file 'foo.c.???r.final' for '-fdump-rtl-final'.
  1773. If a non-linker output file is explicitly specified, aux and dump
  1774. files by default take the same base name:
  1775. gcc -c foo.c -o dir/foobar.o ...
  1776. will name aux outputs 'dir/foobar.*' and dump outputs
  1777. 'dir/foobar.c.*'.
  1778. A linker output will instead prefix aux and dump outputs:
  1779. gcc foo.c bar.c -o dir/foobar ...
  1780. will generally name aux outputs 'dir/foobar-foo.*' and
  1781. 'dir/foobar-bar.*', and dump outputs 'dir/foobar-foo.c.*' and
  1782. 'dir/foobar-bar.c.*'.
  1783. The one exception to the above is when the executable shares the
  1784. base name with the single input:
  1785. gcc foo.c -o dir/foo ...
  1786. in which case aux outputs are named 'dir/foo.*' and dump outputs
  1787. named 'dir/foo.c.*'.
  1788. The location and the names of auxiliary and dump outputs can be
  1789. adjusted by the options '-dumpbase', '-dumpbase-ext', '-dumpdir',
  1790. '-save-temps=cwd', and '-save-temps=obj'.
  1791. '-dumpbase DUMPBASE'
  1792. This option sets the base name for auxiliary and dump output files.
  1793. It does not affect the name of the primary output file.
  1794. Intermediate outputs, when preserved, are not regarded as primary
  1795. outputs, but as auxiliary outputs:
  1796. gcc -save-temps -S foo.c
  1797. saves the (no longer) temporary preprocessed file in 'foo.i', and
  1798. then compiles to the (implied) output file 'foo.s', whereas:
  1799. gcc -save-temps -dumpbase save-foo -c foo.c
  1800. preprocesses to in 'save-foo.i', compiles to 'save-foo.s' (now an
  1801. intermediate, thus auxiliary output), and then assembles to the
  1802. (implied) output file 'foo.o'.
  1803. Absent this option, dump and aux files take their names from the
  1804. input file, or from the (non-linker) output file, if one is
  1805. explicitly specified: dump output files (e.g. those requested by
  1806. '-fdump-*' options) with the input name suffix, and aux output
  1807. files (those requested by other non-dump options, e.g.
  1808. '-save-temps', '-gsplit-dwarf', '-fcallgraph-info') without it.
  1809. Similar suffix differentiation of dump and aux outputs can be
  1810. attained for explicitly-given '-dumpbase basename.suf' by also
  1811. specifying '-dumpbase-ext .suf'.
  1812. If DUMPBASE is explicitly specified with any directory component,
  1813. any DUMPPFX specification (e.g. '-dumpdir' or '-save-temps=*') is
  1814. ignored, and instead of appending to it, DUMPBASE fully overrides
  1815. it:
  1816. gcc foo.c -c -o dir/foo.o -dumpbase alt/foo \
  1817. -dumpdir pfx- -save-temps=cwd ...
  1818. creates auxiliary and dump outputs named 'alt/foo.*', disregarding
  1819. 'dir/' in '-o', the './' prefix implied by '-save-temps=cwd', and
  1820. 'pfx-' in '-dumpdir'.
  1821. When '-dumpbase' is specified in a command that compiles multiple
  1822. inputs, or that compiles and then links, it may be combined with
  1823. DUMPPFX, as specified under '-dumpdir'. Then, each input file is
  1824. compiled using the combined DUMPPFX, and default values for
  1825. DUMPBASE and AUXDROPSUF are computed for each input file:
  1826. gcc foo.c bar.c -c -dumpbase main ...
  1827. creates 'foo.o' and 'bar.o' as primary outputs, and avoids
  1828. overwriting the auxiliary and dump outputs by using the DUMPBASE as
  1829. a prefix, creating auxiliary and dump outputs named 'main-foo.*'
  1830. and 'main-bar.*'.
  1831. An empty string specified as DUMPBASE avoids the influence of the
  1832. output basename in the naming of auxiliary and dump outputs during
  1833. compilation, computing default values :
  1834. gcc -c foo.c -o dir/foobar.o -dumpbase '' ...
  1835. will name aux outputs 'dir/foo.*' and dump outputs 'dir/foo.c.*'.
  1836. Note how their basenames are taken from the input name, but the
  1837. directory still defaults to that of the output.
  1838. The empty-string dumpbase does not prevent the use of the output
  1839. basename for outputs during linking:
  1840. gcc foo.c bar.c -o dir/foobar -dumpbase '' -flto ...
  1841. The compilation of the source files will name auxiliary outputs
  1842. 'dir/foo.*' and 'dir/bar.*', and dump outputs 'dir/foo.c.*' and
  1843. 'dir/bar.c.*'. LTO recompilation during linking will use
  1844. 'dir/foobar.' as the prefix for dumps and auxiliary files.
  1845. '-dumpbase-ext AUXDROPSUF'
  1846. When forming the name of an auxiliary (but not a dump) output file,
  1847. drop trailing AUXDROPSUF from DUMPBASE before appending any
  1848. suffixes. If not specified, this option defaults to the suffix of
  1849. a default DUMPBASE, i.e., the suffix of the input file when
  1850. '-dumpbase' is not present in the command line, or DUMPBASE is
  1851. combined with DUMPPFX.
  1852. gcc foo.c -c -o dir/foo.o -dumpbase x-foo.c -dumpbase-ext .c ...
  1853. creates 'dir/foo.o' as the main output, and generates auxiliary
  1854. outputs in 'dir/x-foo.*', taking the location of the primary
  1855. output, and dropping the '.c' suffix from the DUMPBASE. Dump
  1856. outputs retain the suffix: 'dir/x-foo.c.*'.
  1857. This option is disregarded if it does not match the suffix of a
  1858. specified DUMPBASE, except as an alternative to the executable
  1859. suffix when appending the linker output base name to DUMPPFX, as
  1860. specified below:
  1861. gcc foo.c bar.c -o main.out -dumpbase-ext .out ...
  1862. creates 'main.out' as the primary output, and avoids overwriting
  1863. the auxiliary and dump outputs by using the executable name minus
  1864. AUXDROPSUF as a prefix, creating auxiliary outputs named
  1865. 'main-foo.*' and 'main-bar.*' and dump outputs named 'main-foo.c.*'
  1866. and 'main-bar.c.*'.
  1867. '-dumpdir DUMPPFX'
  1868. When forming the name of an auxiliary or dump output file, use
  1869. DUMPPFX as a prefix:
  1870. gcc -dumpdir pfx- -c foo.c ...
  1871. creates 'foo.o' as the primary output, and auxiliary outputs named
  1872. 'pfx-foo.*', combining the given DUMPPFX with the default DUMPBASE
  1873. derived from the default primary output, derived in turn from the
  1874. input name. Dump outputs also take the input name suffix:
  1875. 'pfx-foo.c.*'.
  1876. If DUMPPFX is to be used as a directory name, it must end with a
  1877. directory separator:
  1878. gcc -dumpdir dir/ -c foo.c -o obj/bar.o ...
  1879. creates 'obj/bar.o' as the primary output, and auxiliary outputs
  1880. named 'dir/bar.*', combining the given DUMPPFX with the default
  1881. DUMPBASE derived from the primary output name. Dump outputs also
  1882. take the input name suffix: 'dir/bar.c.*'.
  1883. It defaults to the location of the output file; options
  1884. '-save-temps=cwd' and '-save-temps=obj' override this default, just
  1885. like an explicit '-dumpdir' option. In case multiple such options
  1886. are given, the last one prevails:
  1887. gcc -dumpdir pfx- -c foo.c -save-temps=obj ...
  1888. outputs 'foo.o', with auxiliary outputs named 'foo.*' because
  1889. '-save-temps=*' overrides the DUMPPFX given by the earlier
  1890. '-dumpdir' option. It does not matter that '=obj' is the default
  1891. for '-save-temps', nor that the output directory is implicitly the
  1892. current directory. Dump outputs are named 'foo.c.*'.
  1893. When compiling from multiple input files, if '-dumpbase' is
  1894. specified, DUMPBASE, minus a AUXDROPSUF suffix, and a dash are
  1895. appended to (or override, if containing any directory components)
  1896. an explicit or defaulted DUMPPFX, so that each of the multiple
  1897. compilations gets differently-named aux and dump outputs.
  1898. gcc foo.c bar.c -c -dumpdir dir/pfx- -dumpbase main ...
  1899. outputs auxiliary dumps to 'dir/pfx-main-foo.*' and
  1900. 'dir/pfx-main-bar.*', appending DUMPBASE- to DUMPPFX. Dump outputs
  1901. retain the input file suffix: 'dir/pfx-main-foo.c.*' and
  1902. 'dir/pfx-main-bar.c.*', respectively. Contrast with the
  1903. single-input compilation:
  1904. gcc foo.c -c -dumpdir dir/pfx- -dumpbase main ...
  1905. that, applying '-dumpbase' to a single source, does not compute and
  1906. append a separate DUMPBASE per input file. Its auxiliary and dump
  1907. outputs go in 'dir/pfx-main.*'.
  1908. When compiling and then linking from multiple input files, a
  1909. defaulted or explicitly specified DUMPPFX also undergoes the
  1910. DUMPBASE- transformation above (e.g. the compilation of 'foo.c'
  1911. and 'bar.c' above, but without '-c'). If neither '-dumpdir' nor
  1912. '-dumpbase' are given, the linker output base name, minus
  1913. AUXDROPSUF, if specified, or the executable suffix otherwise, plus
  1914. a dash is appended to the default DUMPPFX instead. Note, however,
  1915. that unlike earlier cases of linking:
  1916. gcc foo.c bar.c -dumpdir dir/pfx- -o main ...
  1917. does not append the output name 'main' to DUMPPFX, because
  1918. '-dumpdir' is explicitly specified. The goal is that the
  1919. explicitly-specified DUMPPFX may contain the specified output name
  1920. as part of the prefix, if desired; only an explicitly-specified
  1921. '-dumpbase' would be combined with it, in order to avoid simply
  1922. discarding a meaningful option.
  1923. When compiling and then linking from a single input file, the
  1924. linker output base name will only be appended to the default
  1925. DUMPPFX as above if it does not share the base name with the single
  1926. input file name. This has been covered in single-input linking
  1927. cases above, but not with an explicit '-dumpdir' that inhibits the
  1928. combination, even if overridden by '-save-temps=*':
  1929. gcc foo.c -dumpdir alt/pfx- -o dir/main.exe -save-temps=cwd ...
  1930. Auxiliary outputs are named 'foo.*', and dump outputs 'foo.c.*', in
  1931. the current working directory as ultimately requested by
  1932. '-save-temps=cwd'.
  1933. Summing it all up for an intuitive though slightly imprecise data
  1934. flow: the primary output name is broken into a directory part and a
  1935. basename part; DUMPPFX is set to the former, unless overridden by
  1936. '-dumpdir' or '-save-temps=*', and DUMPBASE is set to the latter,
  1937. unless overriden by '-dumpbase'. If there are multiple inputs or
  1938. linking, this DUMPBASE may be combined with DUMPPFX and taken from
  1939. each input file. Auxiliary output names for each input are formed
  1940. by combining DUMPPFX, DUMPBASE minus suffix, and the auxiliary
  1941. output suffix; dump output names are only different in that the
  1942. suffix from DUMPBASE is retained.
  1943. When it comes to auxiliary and dump outputs created during LTO
  1944. recompilation, a combination of DUMPPFX and DUMPBASE, as given or
  1945. as derived from the linker output name but not from inputs, even in
  1946. cases in which this combination would not otherwise be used as
  1947. such, is passed down with a trailing period replacing the
  1948. compiler-added dash, if any, as a '-dumpdir' option to
  1949. 'lto-wrapper'; being involved in linking, this program does not
  1950. normally get any '-dumpbase' and '-dumpbase-ext', and it ignores
  1951. them.
  1952. When running sub-compilers, 'lto-wrapper' appends LTO stage names
  1953. to the received DUMPPFX, ensures it contains a directory component
  1954. so that it overrides any '-dumpdir', and passes that as '-dumpbase'
  1955. to sub-compilers.
  1956. '-v'
  1957. Print (on standard error output) the commands executed to run the
  1958. stages of compilation. Also print the version number of the
  1959. compiler driver program and of the preprocessor and the compiler
  1960. proper.
  1961. '-###'
  1962. Like '-v' except the commands are not executed and arguments are
  1963. quoted unless they contain only alphanumeric characters or './-_'.
  1964. This is useful for shell scripts to capture the driver-generated
  1965. command lines.
  1966. '--help'
  1967. Print (on the standard output) a description of the command-line
  1968. options understood by 'gcc'. If the '-v' option is also specified
  1969. then '--help' is also passed on to the various processes invoked by
  1970. 'gcc', so that they can display the command-line options they
  1971. accept. If the '-Wextra' option has also been specified (prior to
  1972. the '--help' option), then command-line options that have no
  1973. documentation associated with them are also displayed.
  1974. '--target-help'
  1975. Print (on the standard output) a description of target-specific
  1976. command-line options for each tool. For some targets extra
  1977. target-specific information may also be printed.
  1978. '--help={CLASS|[^]QUALIFIER}[,...]'
  1979. Print (on the standard output) a description of the command-line
  1980. options understood by the compiler that fit into all specified
  1981. classes and qualifiers. These are the supported classes:
  1982. 'optimizers'
  1983. Display all of the optimization options supported by the
  1984. compiler.
  1985. 'warnings'
  1986. Display all of the options controlling warning messages
  1987. produced by the compiler.
  1988. 'target'
  1989. Display target-specific options. Unlike the '--target-help'
  1990. option however, target-specific options of the linker and
  1991. assembler are not displayed. This is because those tools do
  1992. not currently support the extended '--help=' syntax.
  1993. 'params'
  1994. Display the values recognized by the '--param' option.
  1995. LANGUAGE
  1996. Display the options supported for LANGUAGE, where LANGUAGE is
  1997. the name of one of the languages supported in this version of
  1998. GCC. If an option is supported by all languages, one needs to
  1999. select 'common' class.
  2000. 'common'
  2001. Display the options that are common to all languages.
  2002. These are the supported qualifiers:
  2003. 'undocumented'
  2004. Display only those options that are undocumented.
  2005. 'joined'
  2006. Display options taking an argument that appears after an equal
  2007. sign in the same continuous piece of text, such as:
  2008. '--help=target'.
  2009. 'separate'
  2010. Display options taking an argument that appears as a separate
  2011. word following the original option, such as: '-o output-file'.
  2012. Thus for example to display all the undocumented target-specific
  2013. switches supported by the compiler, use:
  2014. --help=target,undocumented
  2015. The sense of a qualifier can be inverted by prefixing it with the
  2016. '^' character, so for example to display all binary warning options
  2017. (i.e., ones that are either on or off and that do not take an
  2018. argument) that have a description, use:
  2019. --help=warnings,^joined,^undocumented
  2020. The argument to '--help=' should not consist solely of inverted
  2021. qualifiers.
  2022. Combining several classes is possible, although this usually
  2023. restricts the output so much that there is nothing to display. One
  2024. case where it does work, however, is when one of the classes is
  2025. TARGET. For example, to display all the target-specific
  2026. optimization options, use:
  2027. --help=target,optimizers
  2028. The '--help=' option can be repeated on the command line. Each
  2029. successive use displays its requested class of options, skipping
  2030. those that have already been displayed. If '--help' is also
  2031. specified anywhere on the command line then this takes precedence
  2032. over any '--help=' option.
  2033. If the '-Q' option appears on the command line before the '--help='
  2034. option, then the descriptive text displayed by '--help=' is
  2035. changed. Instead of describing the displayed options, an
  2036. indication is given as to whether the option is enabled, disabled
  2037. or set to a specific value (assuming that the compiler knows this
  2038. at the point where the '--help=' option is used).
  2039. Here is a truncated example from the ARM port of 'gcc':
  2040. % gcc -Q -mabi=2 --help=target -c
  2041. The following options are target specific:
  2042. -mabi= 2
  2043. -mabort-on-noreturn [disabled]
  2044. -mapcs [disabled]
  2045. The output is sensitive to the effects of previous command-line
  2046. options, so for example it is possible to find out which
  2047. optimizations are enabled at '-O2' by using:
  2048. -Q -O2 --help=optimizers
  2049. Alternatively you can discover which binary optimizations are
  2050. enabled by '-O3' by using:
  2051. gcc -c -Q -O3 --help=optimizers > /tmp/O3-opts
  2052. gcc -c -Q -O2 --help=optimizers > /tmp/O2-opts
  2053. diff /tmp/O2-opts /tmp/O3-opts | grep enabled
  2054. '--version'
  2055. Display the version number and copyrights of the invoked GCC.
  2056. '-pass-exit-codes'
  2057. Normally the 'gcc' program exits with the code of 1 if any phase of
  2058. the compiler returns a non-success return code. If you specify
  2059. '-pass-exit-codes', the 'gcc' program instead returns with the
  2060. numerically highest error produced by any phase returning an error
  2061. indication. The C, C++, and Fortran front ends return 4 if an
  2062. internal compiler error is encountered.
  2063. '-pipe'
  2064. Use pipes rather than temporary files for communication between the
  2065. various stages of compilation. This fails to work on some systems
  2066. where the assembler is unable to read from a pipe; but the GNU
  2067. assembler has no trouble.
  2068. '-specs=FILE'
  2069. Process FILE after the compiler reads in the standard 'specs' file,
  2070. in order to override the defaults which the 'gcc' driver program
  2071. uses when determining what switches to pass to 'cc1', 'cc1plus',
  2072. 'as', 'ld', etc. More than one '-specs=FILE' can be specified on
  2073. the command line, and they are processed in order, from left to
  2074. right. *Note Spec Files::, for information about the format of the
  2075. FILE.
  2076. '-wrapper'
  2077. Invoke all subcommands under a wrapper program. The name of the
  2078. wrapper program and its parameters are passed as a comma separated
  2079. list.
  2080. gcc -c t.c -wrapper gdb,--args
  2081. This invokes all subprograms of 'gcc' under 'gdb --args', thus the
  2082. invocation of 'cc1' is 'gdb --args cc1 ...'.
  2083. '-ffile-prefix-map=OLD=NEW'
  2084. When compiling files residing in directory 'OLD', record any
  2085. references to them in the result of the compilation as if the files
  2086. resided in directory 'NEW' instead. Specifying this option is
  2087. equivalent to specifying all the individual '-f*-prefix-map'
  2088. options. This can be used to make reproducible builds that are
  2089. location independent. See also '-fmacro-prefix-map' and
  2090. '-fdebug-prefix-map'.
  2091. '-fplugin=NAME.so'
  2092. Load the plugin code in file NAME.so, assumed to be a shared object
  2093. to be dlopen'd by the compiler. The base name of the shared object
  2094. file is used to identify the plugin for the purposes of argument
  2095. parsing (See '-fplugin-arg-NAME-KEY=VALUE' below). Each plugin
  2096. should define the callback functions specified in the Plugins API.
  2097. '-fplugin-arg-NAME-KEY=VALUE'
  2098. Define an argument called KEY with a value of VALUE for the plugin
  2099. called NAME.
  2100. '-fdump-ada-spec[-slim]'
  2101. For C and C++ source and include files, generate corresponding Ada
  2102. specs. *Note (gnat_ugn)Generating Ada Bindings for C and C++
  2103. headers::, which provides detailed documentation on this feature.
  2104. '-fada-spec-parent=UNIT'
  2105. In conjunction with '-fdump-ada-spec[-slim]' above, generate Ada
  2106. specs as child units of parent UNIT.
  2107. '-fdump-go-spec=FILE'
  2108. For input files in any language, generate corresponding Go
  2109. declarations in FILE. This generates Go 'const', 'type', 'var',
  2110. and 'func' declarations which may be a useful way to start writing
  2111. a Go interface to code written in some other language.
  2112. '@FILE'
  2113. Read command-line options from FILE. The options read are inserted
  2114. in place of the original @FILE option. If FILE does not exist, or
  2115. cannot be read, then the option will be treated literally, and not
  2116. removed.
  2117. Options in FILE are separated by whitespace. A whitespace
  2118. character may be included in an option by surrounding the entire
  2119. option in either single or double quotes. Any character (including
  2120. a backslash) may be included by prefixing the character to be
  2121. included with a backslash. The FILE may itself contain additional
  2122. @FILE options; any such options will be processed recursively.
  2123. 
  2124. File: gcc.info, Node: Invoking G++, Next: C Dialect Options, Prev: Overall Options, Up: Invoking GCC
  2125. 3.3 Compiling C++ Programs
  2126. ==========================
  2127. C++ source files conventionally use one of the suffixes '.C', '.cc',
  2128. '.cpp', '.CPP', '.c++', '.cp', or '.cxx'; C++ header files often use
  2129. '.hh', '.hpp', '.H', or (for shared template code) '.tcc'; and
  2130. preprocessed C++ files use the suffix '.ii'. GCC recognizes files with
  2131. these names and compiles them as C++ programs even if you call the
  2132. compiler the same way as for compiling C programs (usually with the name
  2133. 'gcc').
  2134. However, the use of 'gcc' does not add the C++ library. 'g++' is a
  2135. program that calls GCC and automatically specifies linking against the
  2136. C++ library. It treats '.c', '.h' and '.i' files as C++ source files
  2137. instead of C source files unless '-x' is used. This program is also
  2138. useful when precompiling a C header file with a '.h' extension for use
  2139. in C++ compilations. On many systems, 'g++' is also installed with the
  2140. name 'c++'.
  2141. When you compile C++ programs, you may specify many of the same
  2142. command-line options that you use for compiling programs in any
  2143. language; or command-line options meaningful for C and related
  2144. languages; or options that are meaningful only for C++ programs. *Note
  2145. Options Controlling C Dialect: C Dialect Options, for explanations of
  2146. options for languages related to C. *Note Options Controlling C++
  2147. Dialect: C++ Dialect Options, for explanations of options that are
  2148. meaningful only for C++ programs.
  2149. 
  2150. File: gcc.info, Node: C Dialect Options, Next: C++ Dialect Options, Prev: Invoking G++, Up: Invoking GCC
  2151. 3.4 Options Controlling C Dialect
  2152. =================================
  2153. The following options control the dialect of C (or languages derived
  2154. from C, such as C++, Objective-C and Objective-C++) that the compiler
  2155. accepts:
  2156. '-ansi'
  2157. In C mode, this is equivalent to '-std=c90'. In C++ mode, it is
  2158. equivalent to '-std=c++98'.
  2159. This turns off certain features of GCC that are incompatible with
  2160. ISO C90 (when compiling C code), or of standard C++ (when compiling
  2161. C++ code), such as the 'asm' and 'typeof' keywords, and predefined
  2162. macros such as 'unix' and 'vax' that identify the type of system
  2163. you are using. It also enables the undesirable and rarely used ISO
  2164. trigraph feature. For the C compiler, it disables recognition of
  2165. C++ style '//' comments as well as the 'inline' keyword.
  2166. The alternate keywords '__asm__', '__extension__', '__inline__' and
  2167. '__typeof__' continue to work despite '-ansi'. You would not want
  2168. to use them in an ISO C program, of course, but it is useful to put
  2169. them in header files that might be included in compilations done
  2170. with '-ansi'. Alternate predefined macros such as '__unix__' and
  2171. '__vax__' are also available, with or without '-ansi'.
  2172. The '-ansi' option does not cause non-ISO programs to be rejected
  2173. gratuitously. For that, '-Wpedantic' is required in addition to
  2174. '-ansi'. *Note Warning Options::.
  2175. The macro '__STRICT_ANSI__' is predefined when the '-ansi' option
  2176. is used. Some header files may notice this macro and refrain from
  2177. declaring certain functions or defining certain macros that the ISO
  2178. standard doesn't call for; this is to avoid interfering with any
  2179. programs that might use these names for other things.
  2180. Functions that are normally built in but do not have semantics
  2181. defined by ISO C (such as 'alloca' and 'ffs') are not built-in
  2182. functions when '-ansi' is used. *Note Other built-in functions
  2183. provided by GCC: Other Builtins, for details of the functions
  2184. affected.
  2185. '-std='
  2186. Determine the language standard. *Note Language Standards
  2187. Supported by GCC: Standards, for details of these standard
  2188. versions. This option is currently only supported when compiling C
  2189. or C++.
  2190. The compiler can accept several base standards, such as 'c90' or
  2191. 'c++98', and GNU dialects of those standards, such as 'gnu90' or
  2192. 'gnu++98'. When a base standard is specified, the compiler accepts
  2193. all programs following that standard plus those using GNU
  2194. extensions that do not contradict it. For example, '-std=c90'
  2195. turns off certain features of GCC that are incompatible with ISO
  2196. C90, such as the 'asm' and 'typeof' keywords, but not other GNU
  2197. extensions that do not have a meaning in ISO C90, such as omitting
  2198. the middle term of a '?:' expression. On the other hand, when a
  2199. GNU dialect of a standard is specified, all features supported by
  2200. the compiler are enabled, even when those features change the
  2201. meaning of the base standard. As a result, some strict-conforming
  2202. programs may be rejected. The particular standard is used by
  2203. '-Wpedantic' to identify which features are GNU extensions given
  2204. that version of the standard. For example '-std=gnu90 -Wpedantic'
  2205. warns about C++ style '//' comments, while '-std=gnu99 -Wpedantic'
  2206. does not.
  2207. A value for this option must be provided; possible values are
  2208. 'c90'
  2209. 'c89'
  2210. 'iso9899:1990'
  2211. Support all ISO C90 programs (certain GNU extensions that
  2212. conflict with ISO C90 are disabled). Same as '-ansi' for C
  2213. code.
  2214. 'iso9899:199409'
  2215. ISO C90 as modified in amendment 1.
  2216. 'c99'
  2217. 'c9x'
  2218. 'iso9899:1999'
  2219. 'iso9899:199x'
  2220. ISO C99. This standard is substantially completely supported,
  2221. modulo bugs and floating-point issues (mainly but not entirely
  2222. relating to optional C99 features from Annexes F and G). See
  2223. <http://gcc.gnu.org/c99status.html> for more information. The
  2224. names 'c9x' and 'iso9899:199x' are deprecated.
  2225. 'c11'
  2226. 'c1x'
  2227. 'iso9899:2011'
  2228. ISO C11, the 2011 revision of the ISO C standard. This
  2229. standard is substantially completely supported, modulo bugs,
  2230. floating-point issues (mainly but not entirely relating to
  2231. optional C11 features from Annexes F and G) and the optional
  2232. Annexes K (Bounds-checking interfaces) and L (Analyzability).
  2233. The name 'c1x' is deprecated.
  2234. 'c17'
  2235. 'c18'
  2236. 'iso9899:2017'
  2237. 'iso9899:2018'
  2238. ISO C17, the 2017 revision of the ISO C standard (published in
  2239. 2018). This standard is same as C11 except for corrections of
  2240. defects (all of which are also applied with '-std=c11') and a
  2241. new value of '__STDC_VERSION__', and so is supported to the
  2242. same extent as C11.
  2243. 'c2x'
  2244. The next version of the ISO C standard, still under
  2245. development. The support for this version is experimental and
  2246. incomplete.
  2247. 'gnu90'
  2248. 'gnu89'
  2249. GNU dialect of ISO C90 (including some C99 features).
  2250. 'gnu99'
  2251. 'gnu9x'
  2252. GNU dialect of ISO C99. The name 'gnu9x' is deprecated.
  2253. 'gnu11'
  2254. 'gnu1x'
  2255. GNU dialect of ISO C11. The name 'gnu1x' is deprecated.
  2256. 'gnu17'
  2257. 'gnu18'
  2258. GNU dialect of ISO C17. This is the default for C code.
  2259. 'gnu2x'
  2260. The next version of the ISO C standard, still under
  2261. development, plus GNU extensions. The support for this
  2262. version is experimental and incomplete.
  2263. 'c++98'
  2264. 'c++03'
  2265. The 1998 ISO C++ standard plus the 2003 technical corrigendum
  2266. and some additional defect reports. Same as '-ansi' for C++
  2267. code.
  2268. 'gnu++98'
  2269. 'gnu++03'
  2270. GNU dialect of '-std=c++98'.
  2271. 'c++11'
  2272. 'c++0x'
  2273. The 2011 ISO C++ standard plus amendments. The name 'c++0x'
  2274. is deprecated.
  2275. 'gnu++11'
  2276. 'gnu++0x'
  2277. GNU dialect of '-std=c++11'. The name 'gnu++0x' is
  2278. deprecated.
  2279. 'c++14'
  2280. 'c++1y'
  2281. The 2014 ISO C++ standard plus amendments. The name 'c++1y'
  2282. is deprecated.
  2283. 'gnu++14'
  2284. 'gnu++1y'
  2285. GNU dialect of '-std=c++14'. The name 'gnu++1y' is
  2286. deprecated.
  2287. 'c++17'
  2288. 'c++1z'
  2289. The 2017 ISO C++ standard plus amendments. The name 'c++1z'
  2290. is deprecated.
  2291. 'gnu++17'
  2292. 'gnu++1z'
  2293. GNU dialect of '-std=c++17'. This is the default for C++
  2294. code. The name 'gnu++1z' is deprecated.
  2295. 'c++20'
  2296. 'c++2a'
  2297. The 2020 ISO C++ standard plus amendments. Support is
  2298. experimental, and could change in incompatible ways in future
  2299. releases. The name 'c++2a' is deprecated.
  2300. 'gnu++20'
  2301. 'gnu++2a'
  2302. GNU dialect of '-std=c++20'. Support is experimental, and
  2303. could change in incompatible ways in future releases. The
  2304. name 'gnu++2a' is deprecated.
  2305. 'c++2b'
  2306. 'c++23'
  2307. The next revision of the ISO C++ standard, planned for 2023.
  2308. Support is highly experimental, and will almost certainly
  2309. change in incompatible ways in future releases.
  2310. 'gnu++2b'
  2311. 'gnu++23'
  2312. GNU dialect of '-std=c++2b'. Support is highly experimental,
  2313. and will almost certainly change in incompatible ways in
  2314. future releases.
  2315. '-fgnu89-inline'
  2316. The option '-fgnu89-inline' tells GCC to use the traditional GNU
  2317. semantics for 'inline' functions when in C99 mode. *Note An Inline
  2318. Function is As Fast As a Macro: Inline. Using this option is
  2319. roughly equivalent to adding the 'gnu_inline' function attribute to
  2320. all inline functions (*note Function Attributes::).
  2321. The option '-fno-gnu89-inline' explicitly tells GCC to use the C99
  2322. semantics for 'inline' when in C99 or gnu99 mode (i.e., it
  2323. specifies the default behavior). This option is not supported in
  2324. '-std=c90' or '-std=gnu90' mode.
  2325. The preprocessor macros '__GNUC_GNU_INLINE__' and
  2326. '__GNUC_STDC_INLINE__' may be used to check which semantics are in
  2327. effect for 'inline' functions. *Note (cpp)Common Predefined
  2328. Macros::.
  2329. '-fpermitted-flt-eval-methods=STYLE'
  2330. ISO/IEC TS 18661-3 defines new permissible values for
  2331. 'FLT_EVAL_METHOD' that indicate that operations and constants with
  2332. a semantic type that is an interchange or extended format should be
  2333. evaluated to the precision and range of that type. These new
  2334. values are a superset of those permitted under C99/C11, which does
  2335. not specify the meaning of other positive values of
  2336. 'FLT_EVAL_METHOD'. As such, code conforming to C11 may not have
  2337. been written expecting the possibility of the new values.
  2338. '-fpermitted-flt-eval-methods' specifies whether the compiler
  2339. should allow only the values of 'FLT_EVAL_METHOD' specified in
  2340. C99/C11, or the extended set of values specified in ISO/IEC TS
  2341. 18661-3.
  2342. STYLE is either 'c11' or 'ts-18661-3' as appropriate.
  2343. The default when in a standards compliant mode ('-std=c11' or
  2344. similar) is '-fpermitted-flt-eval-methods=c11'. The default when
  2345. in a GNU dialect ('-std=gnu11' or similar) is
  2346. '-fpermitted-flt-eval-methods=ts-18661-3'.
  2347. '-aux-info FILENAME'
  2348. Output to the given filename prototyped declarations for all
  2349. functions declared and/or defined in a translation unit, including
  2350. those in header files. This option is silently ignored in any
  2351. language other than C.
  2352. Besides declarations, the file indicates, in comments, the origin
  2353. of each declaration (source file and line), whether the declaration
  2354. was implicit, prototyped or unprototyped ('I', 'N' for new or 'O'
  2355. for old, respectively, in the first character after the line number
  2356. and the colon), and whether it came from a declaration or a
  2357. definition ('C' or 'F', respectively, in the following character).
  2358. In the case of function definitions, a K&R-style list of arguments
  2359. followed by their declarations is also provided, inside comments,
  2360. after the declaration.
  2361. '-fallow-parameterless-variadic-functions'
  2362. Accept variadic functions without named parameters.
  2363. Although it is possible to define such a function, this is not very
  2364. useful as it is not possible to read the arguments. This is only
  2365. supported for C as this construct is allowed by C++.
  2366. '-fno-asm'
  2367. Do not recognize 'asm', 'inline' or 'typeof' as a keyword, so that
  2368. code can use these words as identifiers. You can use the keywords
  2369. '__asm__', '__inline__' and '__typeof__' instead. '-ansi' implies
  2370. '-fno-asm'.
  2371. In C++, this switch only affects the 'typeof' keyword, since 'asm'
  2372. and 'inline' are standard keywords. You may want to use the
  2373. '-fno-gnu-keywords' flag instead, which has the same effect. In
  2374. C99 mode ('-std=c99' or '-std=gnu99'), this switch only affects the
  2375. 'asm' and 'typeof' keywords, since 'inline' is a standard keyword
  2376. in ISO C99.
  2377. '-fno-builtin'
  2378. '-fno-builtin-FUNCTION'
  2379. Don't recognize built-in functions that do not begin with
  2380. '__builtin_' as prefix. *Note Other built-in functions provided by
  2381. GCC: Other Builtins, for details of the functions affected,
  2382. including those which are not built-in functions when '-ansi' or
  2383. '-std' options for strict ISO C conformance are used because they
  2384. do not have an ISO standard meaning.
  2385. GCC normally generates special code to handle certain built-in
  2386. functions more efficiently; for instance, calls to 'alloca' may
  2387. become single instructions which adjust the stack directly, and
  2388. calls to 'memcpy' may become inline copy loops. The resulting code
  2389. is often both smaller and faster, but since the function calls no
  2390. longer appear as such, you cannot set a breakpoint on those calls,
  2391. nor can you change the behavior of the functions by linking with a
  2392. different library. In addition, when a function is recognized as a
  2393. built-in function, GCC may use information about that function to
  2394. warn about problems with calls to that function, or to generate
  2395. more efficient code, even if the resulting code still contains
  2396. calls to that function. For example, warnings are given with
  2397. '-Wformat' for bad calls to 'printf' when 'printf' is built in and
  2398. 'strlen' is known not to modify global memory.
  2399. With the '-fno-builtin-FUNCTION' option only the built-in function
  2400. FUNCTION is disabled. FUNCTION must not begin with '__builtin_'.
  2401. If a function is named that is not built-in in this version of GCC,
  2402. this option is ignored. There is no corresponding
  2403. '-fbuiltin-FUNCTION' option; if you wish to enable built-in
  2404. functions selectively when using '-fno-builtin' or
  2405. '-ffreestanding', you may define macros such as:
  2406. #define abs(n) __builtin_abs ((n))
  2407. #define strcpy(d, s) __builtin_strcpy ((d), (s))
  2408. '-fgimple'
  2409. Enable parsing of function definitions marked with '__GIMPLE'.
  2410. This is an experimental feature that allows unit testing of GIMPLE
  2411. passes.
  2412. '-fhosted'
  2413. Assert that compilation targets a hosted environment. This implies
  2414. '-fbuiltin'. A hosted environment is one in which the entire
  2415. standard library is available, and in which 'main' has a return
  2416. type of 'int'. Examples are nearly everything except a kernel.
  2417. This is equivalent to '-fno-freestanding'.
  2418. '-ffreestanding'
  2419. Assert that compilation targets a freestanding environment. This
  2420. implies '-fno-builtin'. A freestanding environment is one in which
  2421. the standard library may not exist, and program startup may not
  2422. necessarily be at 'main'. The most obvious example is an OS
  2423. kernel. This is equivalent to '-fno-hosted'.
  2424. *Note Language Standards Supported by GCC: Standards, for details
  2425. of freestanding and hosted environments.
  2426. '-fopenacc'
  2427. Enable handling of OpenACC directives '#pragma acc' in C/C++ and
  2428. '!$acc' in Fortran. When '-fopenacc' is specified, the compiler
  2429. generates accelerated code according to the OpenACC Application
  2430. Programming Interface v2.6 <https://www.openacc.org>. This option
  2431. implies '-pthread', and thus is only supported on targets that have
  2432. support for '-pthread'.
  2433. '-fopenacc-dim=GEOM'
  2434. Specify default compute dimensions for parallel offload regions
  2435. that do not explicitly specify. The GEOM value is a triple of
  2436. ':'-separated sizes, in order 'gang', 'worker' and, 'vector'. A
  2437. size can be omitted, to use a target-specific default value.
  2438. '-fopenmp'
  2439. Enable handling of OpenMP directives '#pragma omp' in C/C++ and
  2440. '!$omp' in Fortran. When '-fopenmp' is specified, the compiler
  2441. generates parallel code according to the OpenMP Application Program
  2442. Interface v4.5 <https://www.openmp.org>. This option implies
  2443. '-pthread', and thus is only supported on targets that have support
  2444. for '-pthread'. '-fopenmp' implies '-fopenmp-simd'.
  2445. '-fopenmp-simd'
  2446. Enable handling of OpenMP's SIMD directives with '#pragma omp' in
  2447. C/C++ and '!$omp' in Fortran. Other OpenMP directives are ignored.
  2448. '-fgnu-tm'
  2449. When the option '-fgnu-tm' is specified, the compiler generates
  2450. code for the Linux variant of Intel's current Transactional Memory
  2451. ABI specification document (Revision 1.1, May 6 2009). This is an
  2452. experimental feature whose interface may change in future versions
  2453. of GCC, as the official specification changes. Please note that
  2454. not all architectures are supported for this feature.
  2455. For more information on GCC's support for transactional memory,
  2456. *Note The GNU Transactional Memory Library: (libitm)Enabling
  2457. libitm.
  2458. Note that the transactional memory feature is not supported with
  2459. non-call exceptions ('-fnon-call-exceptions').
  2460. '-fms-extensions'
  2461. Accept some non-standard constructs used in Microsoft header files.
  2462. In C++ code, this allows member names in structures to be similar
  2463. to previous types declarations.
  2464. typedef int UOW;
  2465. struct ABC {
  2466. UOW UOW;
  2467. };
  2468. Some cases of unnamed fields in structures and unions are only
  2469. accepted with this option. *Note Unnamed struct/union fields
  2470. within structs/unions: Unnamed Fields, for details.
  2471. Note that this option is off for all targets except for x86 targets
  2472. using ms-abi.
  2473. '-fplan9-extensions'
  2474. Accept some non-standard constructs used in Plan 9 code.
  2475. This enables '-fms-extensions', permits passing pointers to
  2476. structures with anonymous fields to functions that expect pointers
  2477. to elements of the type of the field, and permits referring to
  2478. anonymous fields declared using a typedef. *Note Unnamed
  2479. struct/union fields within structs/unions: Unnamed Fields, for
  2480. details. This is only supported for C, not C++.
  2481. '-fcond-mismatch'
  2482. Allow conditional expressions with mismatched types in the second
  2483. and third arguments. The value of such an expression is void.
  2484. This option is not supported for C++.
  2485. '-flax-vector-conversions'
  2486. Allow implicit conversions between vectors with differing numbers
  2487. of elements and/or incompatible element types. This option should
  2488. not be used for new code.
  2489. '-funsigned-char'
  2490. Let the type 'char' be unsigned, like 'unsigned char'.
  2491. Each kind of machine has a default for what 'char' should be. It
  2492. is either like 'unsigned char' by default or like 'signed char' by
  2493. default.
  2494. Ideally, a portable program should always use 'signed char' or
  2495. 'unsigned char' when it depends on the signedness of an object.
  2496. But many programs have been written to use plain 'char' and expect
  2497. it to be signed, or expect it to be unsigned, depending on the
  2498. machines they were written for. This option, and its inverse, let
  2499. you make such a program work with the opposite default.
  2500. The type 'char' is always a distinct type from each of 'signed
  2501. char' or 'unsigned char', even though its behavior is always just
  2502. like one of those two.
  2503. '-fsigned-char'
  2504. Let the type 'char' be signed, like 'signed char'.
  2505. Note that this is equivalent to '-fno-unsigned-char', which is the
  2506. negative form of '-funsigned-char'. Likewise, the option
  2507. '-fno-signed-char' is equivalent to '-funsigned-char'.
  2508. '-fsigned-bitfields'
  2509. '-funsigned-bitfields'
  2510. '-fno-signed-bitfields'
  2511. '-fno-unsigned-bitfields'
  2512. These options control whether a bit-field is signed or unsigned,
  2513. when the declaration does not use either 'signed' or 'unsigned'.
  2514. By default, such a bit-field is signed, because this is consistent:
  2515. the basic integer types such as 'int' are signed types.
  2516. '-fsso-struct=ENDIANNESS'
  2517. Set the default scalar storage order of structures and unions to
  2518. the specified endianness. The accepted values are 'big-endian',
  2519. 'little-endian' and 'native' for the native endianness of the
  2520. target (the default). This option is not supported for C++.
  2521. *Warning:* the '-fsso-struct' switch causes GCC to generate code
  2522. that is not binary compatible with code generated without it if the
  2523. specified endianness is not the native endianness of the target.
  2524. 
  2525. File: gcc.info, Node: C++ Dialect Options, Next: Objective-C and Objective-C++ Dialect Options, Prev: C Dialect Options, Up: Invoking GCC
  2526. 3.5 Options Controlling C++ Dialect
  2527. ===================================
  2528. This section describes the command-line options that are only meaningful
  2529. for C++ programs. You can also use most of the GNU compiler options
  2530. regardless of what language your program is in. For example, you might
  2531. compile a file 'firstClass.C' like this:
  2532. g++ -g -fstrict-enums -O -c firstClass.C
  2533. In this example, only '-fstrict-enums' is an option meant only for C++
  2534. programs; you can use the other options with any language supported by
  2535. GCC.
  2536. Some options for compiling C programs, such as '-std', are also
  2537. relevant for C++ programs. *Note Options Controlling C Dialect: C
  2538. Dialect Options.
  2539. Here is a list of options that are _only_ for compiling C++ programs:
  2540. '-fabi-version=N'
  2541. Use version N of the C++ ABI. The default is version 0.
  2542. Version 0 refers to the version conforming most closely to the C++
  2543. ABI specification. Therefore, the ABI obtained using version 0
  2544. will change in different versions of G++ as ABI bugs are fixed.
  2545. Version 1 is the version of the C++ ABI that first appeared in G++
  2546. 3.2.
  2547. Version 2 is the version of the C++ ABI that first appeared in G++
  2548. 3.4, and was the default through G++ 4.9.
  2549. Version 3 corrects an error in mangling a constant address as a
  2550. template argument.
  2551. Version 4, which first appeared in G++ 4.5, implements a standard
  2552. mangling for vector types.
  2553. Version 5, which first appeared in G++ 4.6, corrects the mangling
  2554. of attribute const/volatile on function pointer types, decltype of
  2555. a plain decl, and use of a function parameter in the declaration of
  2556. another parameter.
  2557. Version 6, which first appeared in G++ 4.7, corrects the promotion
  2558. behavior of C++11 scoped enums and the mangling of template
  2559. argument packs, const/static_cast, prefix ++ and -, and a class
  2560. scope function used as a template argument.
  2561. Version 7, which first appeared in G++ 4.8, that treats nullptr_t
  2562. as a builtin type and corrects the mangling of lambdas in default
  2563. argument scope.
  2564. Version 8, which first appeared in G++ 4.9, corrects the
  2565. substitution behavior of function types with
  2566. function-cv-qualifiers.
  2567. Version 9, which first appeared in G++ 5.2, corrects the alignment
  2568. of 'nullptr_t'.
  2569. Version 10, which first appeared in G++ 6.1, adds mangling of
  2570. attributes that affect type identity, such as ia32 calling
  2571. convention attributes (e.g. 'stdcall').
  2572. Version 11, which first appeared in G++ 7, corrects the mangling of
  2573. sizeof... expressions and operator names. For multiple entities
  2574. with the same name within a function, that are declared in
  2575. different scopes, the mangling now changes starting with the
  2576. twelfth occurrence. It also implies '-fnew-inheriting-ctors'.
  2577. Version 12, which first appeared in G++ 8, corrects the calling
  2578. conventions for empty classes on the x86_64 target and for classes
  2579. with only deleted copy/move constructors. It accidentally changes
  2580. the calling convention for classes with a deleted copy constructor
  2581. and a trivial move constructor.
  2582. Version 13, which first appeared in G++ 8.2, fixes the accidental
  2583. change in version 12.
  2584. Version 14, which first appeared in G++ 10, corrects the mangling
  2585. of the nullptr expression.
  2586. Version 15, which first appeared in G++ 11, changes the mangling of
  2587. '__alignof__' to be distinct from that of 'alignof', and dependent
  2588. operator names.
  2589. See also '-Wabi'.
  2590. '-fabi-compat-version=N'
  2591. On targets that support strong aliases, G++ works around mangling
  2592. changes by creating an alias with the correct mangled name when
  2593. defining a symbol with an incorrect mangled name. This switch
  2594. specifies which ABI version to use for the alias.
  2595. With '-fabi-version=0' (the default), this defaults to 11 (GCC 7
  2596. compatibility). If another ABI version is explicitly selected,
  2597. this defaults to 0. For compatibility with GCC versions 3.2
  2598. through 4.9, use '-fabi-compat-version=2'.
  2599. If this option is not provided but '-Wabi=N' is, that version is
  2600. used for compatibility aliases. If this option is provided along
  2601. with '-Wabi' (without the version), the version from this option is
  2602. used for the warning.
  2603. '-fno-access-control'
  2604. Turn off all access checking. This switch is mainly useful for
  2605. working around bugs in the access control code.
  2606. '-faligned-new'
  2607. Enable support for C++17 'new' of types that require more alignment
  2608. than 'void* ::operator new(std::size_t)' provides. A numeric
  2609. argument such as '-faligned-new=32' can be used to specify how much
  2610. alignment (in bytes) is provided by that function, but few users
  2611. will need to override the default of 'alignof(std::max_align_t)'.
  2612. This flag is enabled by default for '-std=c++17'.
  2613. '-fchar8_t'
  2614. '-fno-char8_t'
  2615. Enable support for 'char8_t' as adopted for C++20. This includes
  2616. the addition of a new 'char8_t' fundamental type, changes to the
  2617. types of UTF-8 string and character literals, new signatures for
  2618. user-defined literals, associated standard library updates, and new
  2619. '__cpp_char8_t' and '__cpp_lib_char8_t' feature test macros.
  2620. This option enables functions to be overloaded for ordinary and
  2621. UTF-8 strings:
  2622. int f(const char *); // #1
  2623. int f(const char8_t *); // #2
  2624. int v1 = f("text"); // Calls #1
  2625. int v2 = f(u8"text"); // Calls #2
  2626. and introduces new signatures for user-defined literals:
  2627. int operator""_udl1(char8_t);
  2628. int v3 = u8'x'_udl1;
  2629. int operator""_udl2(const char8_t*, std::size_t);
  2630. int v4 = u8"text"_udl2;
  2631. template<typename T, T...> int operator""_udl3();
  2632. int v5 = u8"text"_udl3;
  2633. The change to the types of UTF-8 string and character literals
  2634. introduces incompatibilities with ISO C++11 and later standards.
  2635. For example, the following code is well-formed under ISO C++11, but
  2636. is ill-formed when '-fchar8_t' is specified.
  2637. char ca[] = u8"xx"; // error: char-array initialized from wide
  2638. // string
  2639. const char *cp = u8"xx";// error: invalid conversion from
  2640. // `const char8_t*' to `const char*'
  2641. int f(const char*);
  2642. auto v = f(u8"xx"); // error: invalid conversion from
  2643. // `const char8_t*' to `const char*'
  2644. std::string s{u8"xx"}; // error: no matching function for call to
  2645. // `std::basic_string<char>::basic_string()'
  2646. using namespace std::literals;
  2647. s = u8"xx"s; // error: conversion from
  2648. // `basic_string<char8_t>' to non-scalar
  2649. // type `basic_string<char>' requested
  2650. '-fcheck-new'
  2651. Check that the pointer returned by 'operator new' is non-null
  2652. before attempting to modify the storage allocated. This check is
  2653. normally unnecessary because the C++ standard specifies that
  2654. 'operator new' only returns '0' if it is declared 'throw()', in
  2655. which case the compiler always checks the return value even without
  2656. this option. In all other cases, when 'operator new' has a
  2657. non-empty exception specification, memory exhaustion is signalled
  2658. by throwing 'std::bad_alloc'. See also 'new (nothrow)'.
  2659. '-fconcepts'
  2660. '-fconcepts-ts'
  2661. Below '-std=c++20', '-fconcepts' enables support for the C++
  2662. Extensions for Concepts Technical Specification, ISO 19217 (2015).
  2663. With '-std=c++20' and above, Concepts are part of the language
  2664. standard, so '-fconcepts' defaults to on. But the standard
  2665. specification of Concepts differs significantly from the TS, so
  2666. some constructs that were allowed in the TS but didn't make it into
  2667. the standard can still be enabled by '-fconcepts-ts'.
  2668. '-fconstexpr-depth=N'
  2669. Set the maximum nested evaluation depth for C++11 constexpr
  2670. functions to N. A limit is needed to detect endless recursion
  2671. during constant expression evaluation. The minimum specified by
  2672. the standard is 512.
  2673. '-fconstexpr-cache-depth=N'
  2674. Set the maximum level of nested evaluation depth for C++11
  2675. constexpr functions that will be cached to N. This is a heuristic
  2676. that trades off compilation speed (when the cache avoids repeated
  2677. calculations) against memory consumption (when the cache grows very
  2678. large from highly recursive evaluations). The default is 8. Very
  2679. few users are likely to want to adjust it, but if your code does
  2680. heavy constexpr calculations you might want to experiment to find
  2681. which value works best for you.
  2682. '-fconstexpr-loop-limit=N'
  2683. Set the maximum number of iterations for a loop in C++14 constexpr
  2684. functions to N. A limit is needed to detect infinite loops during
  2685. constant expression evaluation. The default is 262144 (1<<18).
  2686. '-fconstexpr-ops-limit=N'
  2687. Set the maximum number of operations during a single constexpr
  2688. evaluation. Even when number of iterations of a single loop is
  2689. limited with the above limit, if there are several nested loops and
  2690. each of them has many iterations but still smaller than the above
  2691. limit, or if in a body of some loop or even outside of a loop too
  2692. many expressions need to be evaluated, the resulting constexpr
  2693. evaluation might take too long. The default is 33554432 (1<<25).
  2694. '-fcoroutines'
  2695. Enable support for the C++ coroutines extension (experimental).
  2696. '-fno-elide-constructors'
  2697. The C++ standard allows an implementation to omit creating a
  2698. temporary that is only used to initialize another object of the
  2699. same type. Specifying this option disables that optimization, and
  2700. forces G++ to call the copy constructor in all cases. This option
  2701. also causes G++ to call trivial member functions which otherwise
  2702. would be expanded inline.
  2703. In C++17, the compiler is required to omit these temporaries, but
  2704. this option still affects trivial member functions.
  2705. '-fno-enforce-eh-specs'
  2706. Don't generate code to check for violation of exception
  2707. specifications at run time. This option violates the C++ standard,
  2708. but may be useful for reducing code size in production builds, much
  2709. like defining 'NDEBUG'. This does not give user code permission to
  2710. throw exceptions in violation of the exception specifications; the
  2711. compiler still optimizes based on the specifications, so throwing
  2712. an unexpected exception results in undefined behavior at run time.
  2713. '-fextern-tls-init'
  2714. '-fno-extern-tls-init'
  2715. The C++11 and OpenMP standards allow 'thread_local' and
  2716. 'threadprivate' variables to have dynamic (runtime) initialization.
  2717. To support this, any use of such a variable goes through a wrapper
  2718. function that performs any necessary initialization. When the use
  2719. and definition of the variable are in the same translation unit,
  2720. this overhead can be optimized away, but when the use is in a
  2721. different translation unit there is significant overhead even if
  2722. the variable doesn't actually need dynamic initialization. If the
  2723. programmer can be sure that no use of the variable in a
  2724. non-defining TU needs to trigger dynamic initialization (either
  2725. because the variable is statically initialized, or a use of the
  2726. variable in the defining TU will be executed before any uses in
  2727. another TU), they can avoid this overhead with the
  2728. '-fno-extern-tls-init' option.
  2729. On targets that support symbol aliases, the default is
  2730. '-fextern-tls-init'. On targets that do not support symbol
  2731. aliases, the default is '-fno-extern-tls-init'.
  2732. '-fno-gnu-keywords'
  2733. Do not recognize 'typeof' as a keyword, so that code can use this
  2734. word as an identifier. You can use the keyword '__typeof__'
  2735. instead. This option is implied by the strict ISO C++ dialects:
  2736. '-ansi', '-std=c++98', '-std=c++11', etc.
  2737. '-fno-implicit-templates'
  2738. Never emit code for non-inline templates that are instantiated
  2739. implicitly (i.e. by use); only emit code for explicit
  2740. instantiations. If you use this option, you must take care to
  2741. structure your code to include all the necessary explicit
  2742. instantiations to avoid getting undefined symbols at link time.
  2743. *Note Template Instantiation::, for more information.
  2744. '-fno-implicit-inline-templates'
  2745. Don't emit code for implicit instantiations of inline templates,
  2746. either. The default is to handle inlines differently so that
  2747. compiles with and without optimization need the same set of
  2748. explicit instantiations.
  2749. '-fno-implement-inlines'
  2750. To save space, do not emit out-of-line copies of inline functions
  2751. controlled by '#pragma implementation'. This causes linker errors
  2752. if these functions are not inlined everywhere they are called.
  2753. '-fmodules-ts'
  2754. '-fno-modules-ts'
  2755. Enable support for C++20 modules (*Note C++ Modules::). The
  2756. '-fno-modules-ts' is usually not needed, as that is the default.
  2757. Even though this is a C++20 feature, it is not currently implicitly
  2758. enabled by selecting that standard version.
  2759. '-fmodule-header'
  2760. '-fmodule-header=user'
  2761. '-fmodule-header=system'
  2762. Compile a header file to create an importable header unit.
  2763. '-fmodule-implicit-inline'
  2764. Member functions defined in their class definitions are not
  2765. implicitly inline for modular code. This is different to
  2766. traditional C++ behavior, for good reasons. However, it may result
  2767. in a difficulty during code porting. This option makes such
  2768. function definitions implicitly inline. It does however generate
  2769. an ABI incompatibility, so you must use it everywhere or nowhere.
  2770. (Such definitions outside of a named module remain implicitly
  2771. inline, regardless.)
  2772. '-fno-module-lazy'
  2773. Disable lazy module importing and module mapper creation.
  2774. '-fmodule-mapper=[HOSTNAME]:PORT[?IDENT]'
  2775. '-fmodule-mapper=|PROGRAM[?IDENT] ARGS...'
  2776. '-fmodule-mapper==SOCKET[?IDENT]'
  2777. '-fmodule-mapper=<>[INOUT][?IDENT]'
  2778. '-fmodule-mapper=<IN>OUT[?IDENT]'
  2779. '-fmodule-mapper=FILE[?IDENT]'
  2780. An oracle to query for module name to filename mappings. If
  2781. unspecified the 'CXX_MODULE_MAPPER' environment variable is used,
  2782. and if that is unset, an in-process default is provided.
  2783. '-fmodule-only'
  2784. Only emit the Compiled Module Interface, inhibiting any object
  2785. file.
  2786. '-fms-extensions'
  2787. Disable Wpedantic warnings about constructs used in MFC, such as
  2788. implicit int and getting a pointer to member function via
  2789. non-standard syntax.
  2790. '-fnew-inheriting-ctors'
  2791. Enable the P0136 adjustment to the semantics of C++11 constructor
  2792. inheritance. This is part of C++17 but also considered to be a
  2793. Defect Report against C++11 and C++14. This flag is enabled by
  2794. default unless '-fabi-version=10' or lower is specified.
  2795. '-fnew-ttp-matching'
  2796. Enable the P0522 resolution to Core issue 150, template template
  2797. parameters and default arguments: this allows a template with
  2798. default template arguments as an argument for a template template
  2799. parameter with fewer template parameters. This flag is enabled by
  2800. default for '-std=c++17'.
  2801. '-fno-nonansi-builtins'
  2802. Disable built-in declarations of functions that are not mandated by
  2803. ANSI/ISO C. These include 'ffs', 'alloca', '_exit', 'index',
  2804. 'bzero', 'conjf', and other related functions.
  2805. '-fnothrow-opt'
  2806. Treat a 'throw()' exception specification as if it were a
  2807. 'noexcept' specification to reduce or eliminate the text size
  2808. overhead relative to a function with no exception specification.
  2809. If the function has local variables of types with non-trivial
  2810. destructors, the exception specification actually makes the
  2811. function smaller because the EH cleanups for those variables can be
  2812. optimized away. The semantic effect is that an exception thrown
  2813. out of a function with such an exception specification results in a
  2814. call to 'terminate' rather than 'unexpected'.
  2815. '-fno-operator-names'
  2816. Do not treat the operator name keywords 'and', 'bitand', 'bitor',
  2817. 'compl', 'not', 'or' and 'xor' as synonyms as keywords.
  2818. '-fno-optional-diags'
  2819. Disable diagnostics that the standard says a compiler does not need
  2820. to issue. Currently, the only such diagnostic issued by G++ is the
  2821. one for a name having multiple meanings within a class.
  2822. '-fpermissive'
  2823. Downgrade some diagnostics about nonconformant code from errors to
  2824. warnings. Thus, using '-fpermissive' allows some nonconforming
  2825. code to compile.
  2826. '-fno-pretty-templates'
  2827. When an error message refers to a specialization of a function
  2828. template, the compiler normally prints the signature of the
  2829. template followed by the template arguments and any typedefs or
  2830. typenames in the signature (e.g. 'void f(T) [with T = int]' rather
  2831. than 'void f(int)') so that it's clear which template is involved.
  2832. When an error message refers to a specialization of a class
  2833. template, the compiler omits any template arguments that match the
  2834. default template arguments for that template. If either of these
  2835. behaviors make it harder to understand the error message rather
  2836. than easier, you can use '-fno-pretty-templates' to disable them.
  2837. '-fno-rtti'
  2838. Disable generation of information about every class with virtual
  2839. functions for use by the C++ run-time type identification features
  2840. ('dynamic_cast' and 'typeid'). If you don't use those parts of the
  2841. language, you can save some space by using this flag. Note that
  2842. exception handling uses the same information, but G++ generates it
  2843. as needed. The 'dynamic_cast' operator can still be used for casts
  2844. that do not require run-time type information, i.e. casts to 'void
  2845. *' or to unambiguous base classes.
  2846. Mixing code compiled with '-frtti' with that compiled with
  2847. '-fno-rtti' may not work. For example, programs may fail to link
  2848. if a class compiled with '-fno-rtti' is used as a base for a class
  2849. compiled with '-frtti'.
  2850. '-fsized-deallocation'
  2851. Enable the built-in global declarations
  2852. void operator delete (void *, std::size_t) noexcept;
  2853. void operator delete[] (void *, std::size_t) noexcept;
  2854. as introduced in C++14. This is useful for user-defined
  2855. replacement deallocation functions that, for example, use the size
  2856. of the object to make deallocation faster. Enabled by default
  2857. under '-std=c++14' and above. The flag '-Wsized-deallocation'
  2858. warns about places that might want to add a definition.
  2859. '-fstrict-enums'
  2860. Allow the compiler to optimize using the assumption that a value of
  2861. enumerated type can only be one of the values of the enumeration
  2862. (as defined in the C++ standard; basically, a value that can be
  2863. represented in the minimum number of bits needed to represent all
  2864. the enumerators). This assumption may not be valid if the program
  2865. uses a cast to convert an arbitrary integer value to the enumerated
  2866. type.
  2867. '-fstrong-eval-order'
  2868. Evaluate member access, array subscripting, and shift expressions
  2869. in left-to-right order, and evaluate assignment in right-to-left
  2870. order, as adopted for C++17. Enabled by default with '-std=c++17'.
  2871. '-fstrong-eval-order=some' enables just the ordering of member
  2872. access and shift expressions, and is the default without
  2873. '-std=c++17'.
  2874. '-ftemplate-backtrace-limit=N'
  2875. Set the maximum number of template instantiation notes for a single
  2876. warning or error to N. The default value is 10.
  2877. '-ftemplate-depth=N'
  2878. Set the maximum instantiation depth for template classes to N. A
  2879. limit on the template instantiation depth is needed to detect
  2880. endless recursions during template class instantiation. ANSI/ISO
  2881. C++ conforming programs must not rely on a maximum depth greater
  2882. than 17 (changed to 1024 in C++11). The default value is 900, as
  2883. the compiler can run out of stack space before hitting 1024 in some
  2884. situations.
  2885. '-fno-threadsafe-statics'
  2886. Do not emit the extra code to use the routines specified in the C++
  2887. ABI for thread-safe initialization of local statics. You can use
  2888. this option to reduce code size slightly in code that doesn't need
  2889. to be thread-safe.
  2890. '-fuse-cxa-atexit'
  2891. Register destructors for objects with static storage duration with
  2892. the '__cxa_atexit' function rather than the 'atexit' function.
  2893. This option is required for fully standards-compliant handling of
  2894. static destructors, but only works if your C library supports
  2895. '__cxa_atexit'.
  2896. '-fno-use-cxa-get-exception-ptr'
  2897. Don't use the '__cxa_get_exception_ptr' runtime routine. This
  2898. causes 'std::uncaught_exception' to be incorrect, but is necessary
  2899. if the runtime routine is not available.
  2900. '-fvisibility-inlines-hidden'
  2901. This switch declares that the user does not attempt to compare
  2902. pointers to inline functions or methods where the addresses of the
  2903. two functions are taken in different shared objects.
  2904. The effect of this is that GCC may, effectively, mark inline
  2905. methods with '__attribute__ ((visibility ("hidden")))' so that they
  2906. do not appear in the export table of a DSO and do not require a PLT
  2907. indirection when used within the DSO. Enabling this option can
  2908. have a dramatic effect on load and link times of a DSO as it
  2909. massively reduces the size of the dynamic export table when the
  2910. library makes heavy use of templates.
  2911. The behavior of this switch is not quite the same as marking the
  2912. methods as hidden directly, because it does not affect static
  2913. variables local to the function or cause the compiler to deduce
  2914. that the function is defined in only one shared object.
  2915. You may mark a method as having a visibility explicitly to negate
  2916. the effect of the switch for that method. For example, if you do
  2917. want to compare pointers to a particular inline method, you might
  2918. mark it as having default visibility. Marking the enclosing class
  2919. with explicit visibility has no effect.
  2920. Explicitly instantiated inline methods are unaffected by this
  2921. option as their linkage might otherwise cross a shared library
  2922. boundary. *Note Template Instantiation::.
  2923. '-fvisibility-ms-compat'
  2924. This flag attempts to use visibility settings to make GCC's C++
  2925. linkage model compatible with that of Microsoft Visual Studio.
  2926. The flag makes these changes to GCC's linkage model:
  2927. 1. It sets the default visibility to 'hidden', like
  2928. '-fvisibility=hidden'.
  2929. 2. Types, but not their members, are not hidden by default.
  2930. 3. The One Definition Rule is relaxed for types without explicit
  2931. visibility specifications that are defined in more than one
  2932. shared object: those declarations are permitted if they are
  2933. permitted when this option is not used.
  2934. In new code it is better to use '-fvisibility=hidden' and export
  2935. those classes that are intended to be externally visible.
  2936. Unfortunately it is possible for code to rely, perhaps
  2937. accidentally, on the Visual Studio behavior.
  2938. Among the consequences of these changes are that static data
  2939. members of the same type with the same name but defined in
  2940. different shared objects are different, so changing one does not
  2941. change the other; and that pointers to function members defined in
  2942. different shared objects may not compare equal. When this flag is
  2943. given, it is a violation of the ODR to define types with the same
  2944. name differently.
  2945. '-fno-weak'
  2946. Do not use weak symbol support, even if it is provided by the
  2947. linker. By default, G++ uses weak symbols if they are available.
  2948. This option exists only for testing, and should not be used by
  2949. end-users; it results in inferior code and has no benefits. This
  2950. option may be removed in a future release of G++.
  2951. '-fext-numeric-literals (C++ and Objective-C++ only)'
  2952. Accept imaginary, fixed-point, or machine-defined literal number
  2953. suffixes as GNU extensions. When this option is turned off these
  2954. suffixes are treated as C++11 user-defined literal numeric
  2955. suffixes. This is on by default for all pre-C++11 dialects and all
  2956. GNU dialects: '-std=c++98', '-std=gnu++98', '-std=gnu++11',
  2957. '-std=gnu++14'. This option is off by default for ISO C++11
  2958. onwards ('-std=c++11', ...).
  2959. '-nostdinc++'
  2960. Do not search for header files in the standard directories specific
  2961. to C++, but do still search the other standard directories. (This
  2962. option is used when building the C++ library.)
  2963. '-flang-info-include-translate'
  2964. '-flang-info-include-translate-not'
  2965. '-flang-info-include-translate=HEADER'
  2966. Inform of include translation events. The first will note accepted
  2967. include translations, the second will note declined include
  2968. translations. The HEADER form will inform of include translations
  2969. relating to that specific header. If HEADER is of the form
  2970. '"user"' or '<system>' it will be resolved to a specific user or
  2971. system header using the include path.
  2972. '-flang-info-module-cmi'
  2973. '-flang-info-module-cmi=MODULE'
  2974. Inform of Compiled Module Interface pathnames. The first will note
  2975. all read CMI pathnames. The MODULE form will not reading a
  2976. specific module's CMI. MODULE may be a named module or a
  2977. header-unit (the latter indicated by either being a pathname
  2978. containing directory separators or enclosed in '<>' or '""').
  2979. '-stdlib=LIBSTDC++,LIBC++'
  2980. When G++ is configured to support this option, it allows
  2981. specification of alternate C++ runtime libraries. Two options are
  2982. available: LIBSTDC++ (the default, native C++ runtime for G++) and
  2983. LIBC++ which is the C++ runtime installed on some operating systems
  2984. (e.g. Darwin versions from Darwin11 onwards). The option switches
  2985. G++ to use the headers from the specified library and to emit
  2986. '-lstdc++' or '-lc++' respectively, when a C++ runtime is required
  2987. for linking.
  2988. In addition, these warning options have meanings only for C++ programs:
  2989. '-Wabi-tag (C++ and Objective-C++ only)'
  2990. Warn when a type with an ABI tag is used in a context that does not
  2991. have that ABI tag. See *note C++ Attributes:: for more information
  2992. about ABI tags.
  2993. '-Wcomma-subscript (C++ and Objective-C++ only)'
  2994. Warn about uses of a comma expression within a subscripting
  2995. expression. This usage was deprecated in C++20. However, a comma
  2996. expression wrapped in '( )' is not deprecated. Example:
  2997. void f(int *a, int b, int c) {
  2998. a[b,c]; // deprecated
  2999. a[(b,c)]; // OK
  3000. }
  3001. Enabled by default with '-std=c++20'.
  3002. '-Wctad-maybe-unsupported (C++ and Objective-C++ only)'
  3003. Warn when performing class template argument deduction (CTAD) on a
  3004. type with no explicitly written deduction guides. This warning
  3005. will point out cases where CTAD succeeded only because the compiler
  3006. synthesized the implicit deduction guides, which might not be what
  3007. the programmer intended. Certain style guides allow CTAD only on
  3008. types that specifically "opt-in"; i.e., on types that are designed
  3009. to support CTAD. This warning can be suppressed with the following
  3010. pattern:
  3011. struct allow_ctad_t; // any name works
  3012. template <typename T> struct S {
  3013. S(T) { }
  3014. };
  3015. S(allow_ctad_t) -> S<void>; // guide with incomplete parameter type will never be considered
  3016. '-Wctor-dtor-privacy (C++ and Objective-C++ only)'
  3017. Warn when a class seems unusable because all the constructors or
  3018. destructors in that class are private, and it has neither friends
  3019. nor public static member functions. Also warn if there are no
  3020. non-private methods, and there's at least one private member
  3021. function that isn't a constructor or destructor.
  3022. '-Wdelete-non-virtual-dtor (C++ and Objective-C++ only)'
  3023. Warn when 'delete' is used to destroy an instance of a class that
  3024. has virtual functions and non-virtual destructor. It is unsafe to
  3025. delete an instance of a derived class through a pointer to a base
  3026. class if the base class does not have a virtual destructor. This
  3027. warning is enabled by '-Wall'.
  3028. '-Wdeprecated-copy (C++ and Objective-C++ only)'
  3029. Warn that the implicit declaration of a copy constructor or copy
  3030. assignment operator is deprecated if the class has a user-provided
  3031. copy constructor or copy assignment operator, in C++11 and up.
  3032. This warning is enabled by '-Wextra'. With
  3033. '-Wdeprecated-copy-dtor', also deprecate if the class has a
  3034. user-provided destructor.
  3035. '-Wno-deprecated-enum-enum-conversion (C++ and Objective-C++ only)'
  3036. Disable the warning about the case when the usual arithmetic
  3037. conversions are applied on operands where one is of enumeration
  3038. type and the other is of a different enumeration type. This
  3039. conversion was deprecated in C++20. For example:
  3040. enum E1 { e };
  3041. enum E2 { f };
  3042. int k = f - e;
  3043. '-Wdeprecated-enum-enum-conversion' is enabled by default with
  3044. '-std=c++20'. In pre-C++20 dialects, this warning can be enabled
  3045. by '-Wenum-conversion'.
  3046. '-Wno-deprecated-enum-float-conversion (C++ and Objective-C++ only)'
  3047. Disable the warning about the case when the usual arithmetic
  3048. conversions are applied on operands where one is of enumeration
  3049. type and the other is of a floating-point type. This conversion
  3050. was deprecated in C++20. For example:
  3051. enum E1 { e };
  3052. enum E2 { f };
  3053. bool b = e <= 3.7;
  3054. '-Wdeprecated-enum-float-conversion' is enabled by default with
  3055. '-std=c++20'. In pre-C++20 dialects, this warning can be enabled
  3056. by '-Wenum-conversion'.
  3057. '-Wno-init-list-lifetime (C++ and Objective-C++ only)'
  3058. Do not warn about uses of 'std::initializer_list' that are likely
  3059. to result in dangling pointers. Since the underlying array for an
  3060. 'initializer_list' is handled like a normal C++ temporary object,
  3061. it is easy to inadvertently keep a pointer to the array past the
  3062. end of the array's lifetime. For example:
  3063. * If a function returns a temporary 'initializer_list', or a
  3064. local 'initializer_list' variable, the array's lifetime ends
  3065. at the end of the return statement, so the value returned has
  3066. a dangling pointer.
  3067. * If a new-expression creates an 'initializer_list', the array
  3068. only lives until the end of the enclosing full-expression, so
  3069. the 'initializer_list' in the heap has a dangling pointer.
  3070. * When an 'initializer_list' variable is assigned from a
  3071. brace-enclosed initializer list, the temporary array created
  3072. for the right side of the assignment only lives until the end
  3073. of the full-expression, so at the next statement the
  3074. 'initializer_list' variable has a dangling pointer.
  3075. // li's initial underlying array lives as long as li
  3076. std::initializer_list<int> li = { 1,2,3 };
  3077. // assignment changes li to point to a temporary array
  3078. li = { 4, 5 };
  3079. // now the temporary is gone and li has a dangling pointer
  3080. int i = li.begin()[0] // undefined behavior
  3081. * When a list constructor stores the 'begin' pointer from the
  3082. 'initializer_list' argument, this doesn't extend the lifetime
  3083. of the array, so if a class variable is constructed from a
  3084. temporary 'initializer_list', the pointer is left dangling by
  3085. the end of the variable declaration statement.
  3086. '-Winvalid-imported-macros'
  3087. Verify all imported macro definitions are valid at the end of
  3088. compilation. This is not enabled by default, as it requires
  3089. additional processing to determine. It may be useful when
  3090. preparing sets of header-units to ensure consistent macros.
  3091. '-Wno-literal-suffix (C++ and Objective-C++ only)'
  3092. Do not warn when a string or character literal is followed by a
  3093. ud-suffix which does not begin with an underscore. As a conforming
  3094. extension, GCC treats such suffixes as separate preprocessing
  3095. tokens in order to maintain backwards compatibility with code that
  3096. uses formatting macros from '<inttypes.h>'. For example:
  3097. #define __STDC_FORMAT_MACROS
  3098. #include <inttypes.h>
  3099. #include <stdio.h>
  3100. int main() {
  3101. int64_t i64 = 123;
  3102. printf("My int64: %" PRId64"\n", i64);
  3103. }
  3104. In this case, 'PRId64' is treated as a separate preprocessing
  3105. token.
  3106. This option also controls warnings when a user-defined literal
  3107. operator is declared with a literal suffix identifier that doesn't
  3108. begin with an underscore. Literal suffix identifiers that don't
  3109. begin with an underscore are reserved for future standardization.
  3110. These warnings are enabled by default.
  3111. '-Wno-narrowing (C++ and Objective-C++ only)'
  3112. For C++11 and later standards, narrowing conversions are diagnosed
  3113. by default, as required by the standard. A narrowing conversion
  3114. from a constant produces an error, and a narrowing conversion from
  3115. a non-constant produces a warning, but '-Wno-narrowing' suppresses
  3116. the diagnostic. Note that this does not affect the meaning of
  3117. well-formed code; narrowing conversions are still considered
  3118. ill-formed in SFINAE contexts.
  3119. With '-Wnarrowing' in C++98, warn when a narrowing conversion
  3120. prohibited by C++11 occurs within '{ }', e.g.
  3121. int i = { 2.2 }; // error: narrowing from double to int
  3122. This flag is included in '-Wall' and '-Wc++11-compat'.
  3123. '-Wnoexcept (C++ and Objective-C++ only)'
  3124. Warn when a noexcept-expression evaluates to false because of a
  3125. call to a function that does not have a non-throwing exception
  3126. specification (i.e. 'throw()' or 'noexcept') but is known by the
  3127. compiler to never throw an exception.
  3128. '-Wnoexcept-type (C++ and Objective-C++ only)'
  3129. Warn if the C++17 feature making 'noexcept' part of a function type
  3130. changes the mangled name of a symbol relative to C++14. Enabled by
  3131. '-Wabi' and '-Wc++17-compat'.
  3132. As an example:
  3133. template <class T> void f(T t) { t(); };
  3134. void g() noexcept;
  3135. void h() { f(g); }
  3136. In C++14, 'f' calls 'f<void(*)()>', but in C++17 it calls
  3137. 'f<void(*)()noexcept>'.
  3138. '-Wclass-memaccess (C++ and Objective-C++ only)'
  3139. Warn when the destination of a call to a raw memory function such
  3140. as 'memset' or 'memcpy' is an object of class type, and when
  3141. writing into such an object might bypass the class non-trivial or
  3142. deleted constructor or copy assignment, violate const-correctness
  3143. or encapsulation, or corrupt virtual table pointers. Modifying the
  3144. representation of such objects may violate invariants maintained by
  3145. member functions of the class. For example, the call to 'memset'
  3146. below is undefined because it modifies a non-trivial class object
  3147. and is, therefore, diagnosed. The safe way to either initialize or
  3148. clear the storage of objects of such types is by using the
  3149. appropriate constructor or assignment operator, if one is
  3150. available.
  3151. std::string str = "abc";
  3152. memset (&str, 0, sizeof str);
  3153. The '-Wclass-memaccess' option is enabled by '-Wall'. Explicitly
  3154. casting the pointer to the class object to 'void *' or to a type
  3155. that can be safely accessed by the raw memory function suppresses
  3156. the warning.
  3157. '-Wnon-virtual-dtor (C++ and Objective-C++ only)'
  3158. Warn when a class has virtual functions and an accessible
  3159. non-virtual destructor itself or in an accessible polymorphic base
  3160. class, in which case it is possible but unsafe to delete an
  3161. instance of a derived class through a pointer to the class itself
  3162. or base class. This warning is automatically enabled if '-Weffc++'
  3163. is specified.
  3164. '-Wregister (C++ and Objective-C++ only)'
  3165. Warn on uses of the 'register' storage class specifier, except when
  3166. it is part of the GNU *note Explicit Register Variables::
  3167. extension. The use of the 'register' keyword as storage class
  3168. specifier has been deprecated in C++11 and removed in C++17.
  3169. Enabled by default with '-std=c++17'.
  3170. '-Wreorder (C++ and Objective-C++ only)'
  3171. Warn when the order of member initializers given in the code does
  3172. not match the order in which they must be executed. For instance:
  3173. struct A {
  3174. int i;
  3175. int j;
  3176. A(): j (0), i (1) { }
  3177. };
  3178. The compiler rearranges the member initializers for 'i' and 'j' to
  3179. match the declaration order of the members, emitting a warning to
  3180. that effect. This warning is enabled by '-Wall'.
  3181. '-Wno-pessimizing-move (C++ and Objective-C++ only)'
  3182. This warning warns when a call to 'std::move' prevents copy
  3183. elision. A typical scenario when copy elision can occur is when
  3184. returning in a function with a class return type, when the
  3185. expression being returned is the name of a non-volatile automatic
  3186. object, and is not a function parameter, and has the same type as
  3187. the function return type.
  3188. struct T {
  3189. ...
  3190. };
  3191. T fn()
  3192. {
  3193. T t;
  3194. ...
  3195. return std::move (t);
  3196. }
  3197. But in this example, the 'std::move' call prevents copy elision.
  3198. This warning is enabled by '-Wall'.
  3199. '-Wno-redundant-move (C++ and Objective-C++ only)'
  3200. This warning warns about redundant calls to 'std::move'; that is,
  3201. when a move operation would have been performed even without the
  3202. 'std::move' call. This happens because the compiler is forced to
  3203. treat the object as if it were an rvalue in certain situations such
  3204. as returning a local variable, where copy elision isn't applicable.
  3205. Consider:
  3206. struct T {
  3207. ...
  3208. };
  3209. T fn(T t)
  3210. {
  3211. ...
  3212. return std::move (t);
  3213. }
  3214. Here, the 'std::move' call is redundant. Because G++ implements
  3215. Core Issue 1579, another example is:
  3216. struct T { // convertible to U
  3217. ...
  3218. };
  3219. struct U {
  3220. ...
  3221. };
  3222. U fn()
  3223. {
  3224. T t;
  3225. ...
  3226. return std::move (t);
  3227. }
  3228. In this example, copy elision isn't applicable because the type of
  3229. the expression being returned and the function return type differ,
  3230. yet G++ treats the return value as if it were designated by an
  3231. rvalue.
  3232. This warning is enabled by '-Wextra'.
  3233. '-Wrange-loop-construct (C++ and Objective-C++ only)'
  3234. This warning warns when a C++ range-based for-loop is creating an
  3235. unnecessary copy. This can happen when the range declaration is
  3236. not a reference, but probably should be. For example:
  3237. struct S { char arr[128]; };
  3238. void fn () {
  3239. S arr[5];
  3240. for (const auto x : arr) { ... }
  3241. }
  3242. It does not warn when the type being copied is a trivially-copyable
  3243. type whose size is less than 64 bytes.
  3244. This warning also warns when a loop variable in a range-based
  3245. for-loop is initialized with a value of a different type resulting
  3246. in a copy. For example:
  3247. void fn() {
  3248. int arr[10];
  3249. for (const double &x : arr) { ... }
  3250. }
  3251. In the example above, in every iteration of the loop a temporary
  3252. value of type 'double' is created and destroyed, to which the
  3253. reference 'const double &' is bound.
  3254. This warning is enabled by '-Wall'.
  3255. '-Wredundant-tags (C++ and Objective-C++ only)'
  3256. Warn about redundant class-key and enum-key in references to class
  3257. types and enumerated types in contexts where the key can be
  3258. eliminated without causing an ambiguity. For example:
  3259. struct foo;
  3260. struct foo *p; // warn that keyword struct can be eliminated
  3261. On the other hand, in this example there is no warning:
  3262. struct foo;
  3263. void foo (); // "hides" struct foo
  3264. void bar (struct foo&); // no warning, keyword struct is necessary
  3265. '-Wno-subobject-linkage (C++ and Objective-C++ only)'
  3266. Do not warn if a class type has a base or a field whose type uses
  3267. the anonymous namespace or depends on a type with no linkage. If a
  3268. type A depends on a type B with no or internal linkage, defining it
  3269. in multiple translation units would be an ODR violation because the
  3270. meaning of B is different in each translation unit. If A only
  3271. appears in a single translation unit, the best way to silence the
  3272. warning is to give it internal linkage by putting it in an
  3273. anonymous namespace as well. The compiler doesn't give this
  3274. warning for types defined in the main .C file, as those are
  3275. unlikely to have multiple definitions. '-Wsubobject-linkage' is
  3276. enabled by default.
  3277. '-Weffc++ (C++ and Objective-C++ only)'
  3278. Warn about violations of the following style guidelines from Scott
  3279. Meyers' 'Effective C++' series of books:
  3280. * Define a copy constructor and an assignment operator for
  3281. classes with dynamically-allocated memory.
  3282. * Prefer initialization to assignment in constructors.
  3283. * Have 'operator=' return a reference to '*this'.
  3284. * Don't try to return a reference when you must return an
  3285. object.
  3286. * Distinguish between prefix and postfix forms of increment and
  3287. decrement operators.
  3288. * Never overload '&&', '||', or ','.
  3289. This option also enables '-Wnon-virtual-dtor', which is also one of
  3290. the effective C++ recommendations. However, the check is extended
  3291. to warn about the lack of virtual destructor in accessible
  3292. non-polymorphic bases classes too.
  3293. When selecting this option, be aware that the standard library
  3294. headers do not obey all of these guidelines; use 'grep -v' to
  3295. filter out those warnings.
  3296. '-Wno-exceptions (C++ and Objective-C++ only)'
  3297. Disable the warning about the case when an exception handler is
  3298. shadowed by another handler, which can point out a wrong ordering
  3299. of exception handlers.
  3300. '-Wstrict-null-sentinel (C++ and Objective-C++ only)'
  3301. Warn about the use of an uncasted 'NULL' as sentinel. When
  3302. compiling only with GCC this is a valid sentinel, as 'NULL' is
  3303. defined to '__null'. Although it is a null pointer constant rather
  3304. than a null pointer, it is guaranteed to be of the same size as a
  3305. pointer. But this use is not portable across different compilers.
  3306. '-Wno-non-template-friend (C++ and Objective-C++ only)'
  3307. Disable warnings when non-template friend functions are declared
  3308. within a template. In very old versions of GCC that predate
  3309. implementation of the ISO standard, declarations such as 'friend
  3310. int foo(int)', where the name of the friend is an unqualified-id,
  3311. could be interpreted as a particular specialization of a template
  3312. function; the warning exists to diagnose compatibility problems,
  3313. and is enabled by default.
  3314. '-Wold-style-cast (C++ and Objective-C++ only)'
  3315. Warn if an old-style (C-style) cast to a non-void type is used
  3316. within a C++ program. The new-style casts ('dynamic_cast',
  3317. 'static_cast', 'reinterpret_cast', and 'const_cast') are less
  3318. vulnerable to unintended effects and much easier to search for.
  3319. '-Woverloaded-virtual (C++ and Objective-C++ only)'
  3320. Warn when a function declaration hides virtual functions from a
  3321. base class. For example, in:
  3322. struct A {
  3323. virtual void f();
  3324. };
  3325. struct B: public A {
  3326. void f(int);
  3327. };
  3328. the 'A' class version of 'f' is hidden in 'B', and code like:
  3329. B* b;
  3330. b->f();
  3331. fails to compile.
  3332. '-Wno-pmf-conversions (C++ and Objective-C++ only)'
  3333. Disable the diagnostic for converting a bound pointer to member
  3334. function to a plain pointer.
  3335. '-Wsign-promo (C++ and Objective-C++ only)'
  3336. Warn when overload resolution chooses a promotion from unsigned or
  3337. enumerated type to a signed type, over a conversion to an unsigned
  3338. type of the same size. Previous versions of G++ tried to preserve
  3339. unsignedness, but the standard mandates the current behavior.
  3340. '-Wtemplates (C++ and Objective-C++ only)'
  3341. Warn when a primary template declaration is encountered. Some
  3342. coding rules disallow templates, and this may be used to enforce
  3343. that rule. The warning is inactive inside a system header file,
  3344. such as the STL, so one can still use the STL. One may also
  3345. instantiate or specialize templates.
  3346. '-Wno-mismatched-new-delete (C++ and Objective-C++ only)'
  3347. Warn for mismatches between calls to 'operator new' or 'operator
  3348. delete' and the corresponding call to the allocation or
  3349. deallocation function. This includes invocations of C++ 'operator
  3350. delete' with pointers returned from either mismatched forms of
  3351. 'operator new', or from other functions that allocate objects for
  3352. which the 'operator delete' isn't a suitable deallocator, as well
  3353. as calls to other deallocation functions with pointers returned
  3354. from 'operator new' for which the deallocation function isn't
  3355. suitable.
  3356. For example, the 'delete' expression in the function below is
  3357. diagnosed because it doesn't match the array form of the 'new'
  3358. expression the pointer argument was returned from. Similarly, the
  3359. call to 'free' is also diagnosed.
  3360. void f ()
  3361. {
  3362. int *a = new int[n];
  3363. delete a; // warning: mismatch in array forms of expressions
  3364. char *p = new char[n];
  3365. free (p); // warning: mismatch between new and free
  3366. }
  3367. The related option '-Wmismatched-dealloc' diagnoses mismatches
  3368. involving allocation and deallocation functions other than
  3369. 'operator new' and 'operator delete'.
  3370. '-Wmismatched-new-delete' is enabled by default.
  3371. '-Wmismatched-tags (C++ and Objective-C++ only)'
  3372. Warn for declarations of structs, classes, and class templates and
  3373. their specializations with a class-key that does not match either
  3374. the definition or the first declaration if no definition is
  3375. provided.
  3376. For example, the declaration of 'struct Object' in the argument
  3377. list of 'draw' triggers the warning. To avoid it, either remove
  3378. the redundant class-key 'struct' or replace it with 'class' to
  3379. match its definition.
  3380. class Object {
  3381. public:
  3382. virtual ~Object () = 0;
  3383. };
  3384. void draw (struct Object*);
  3385. It is not wrong to declare a class with the class-key 'struct' as
  3386. the example above shows. The '-Wmismatched-tags' option is
  3387. intended to help achieve a consistent style of class declarations.
  3388. In code that is intended to be portable to Windows-based compilers
  3389. the warning helps prevent unresolved references due to the
  3390. difference in the mangling of symbols declared with different
  3391. class-keys. The option can be used either on its own or in
  3392. conjunction with '-Wredundant-tags'.
  3393. '-Wmultiple-inheritance (C++ and Objective-C++ only)'
  3394. Warn when a class is defined with multiple direct base classes.
  3395. Some coding rules disallow multiple inheritance, and this may be
  3396. used to enforce that rule. The warning is inactive inside a system
  3397. header file, such as the STL, so one can still use the STL. One may
  3398. also define classes that indirectly use multiple inheritance.
  3399. '-Wvirtual-inheritance'
  3400. Warn when a class is defined with a virtual direct base class.
  3401. Some coding rules disallow multiple inheritance, and this may be
  3402. used to enforce that rule. The warning is inactive inside a system
  3403. header file, such as the STL, so one can still use the STL. One may
  3404. also define classes that indirectly use virtual inheritance.
  3405. '-Wno-virtual-move-assign'
  3406. Suppress warnings about inheriting from a virtual base with a
  3407. non-trivial C++11 move assignment operator. This is dangerous
  3408. because if the virtual base is reachable along more than one path,
  3409. it is moved multiple times, which can mean both objects end up in
  3410. the moved-from state. If the move assignment operator is written
  3411. to avoid moving from a moved-from object, this warning can be
  3412. disabled.
  3413. '-Wnamespaces'
  3414. Warn when a namespace definition is opened. Some coding rules
  3415. disallow namespaces, and this may be used to enforce that rule.
  3416. The warning is inactive inside a system header file, such as the
  3417. STL, so one can still use the STL. One may also use using
  3418. directives and qualified names.
  3419. '-Wno-terminate (C++ and Objective-C++ only)'
  3420. Disable the warning about a throw-expression that will immediately
  3421. result in a call to 'terminate'.
  3422. '-Wno-vexing-parse (C++ and Objective-C++ only)'
  3423. Warn about the most vexing parse syntactic ambiguity. This warns
  3424. about the cases when a declaration looks like a variable
  3425. definition, but the C++ language requires it to be interpreted as a
  3426. function declaration. For instance:
  3427. void f(double a) {
  3428. int i(); // extern int i (void);
  3429. int n(int(a)); // extern int n (int);
  3430. }
  3431. Another example:
  3432. struct S { S(int); };
  3433. void f(double a) {
  3434. S x(int(a)); // extern struct S x (int);
  3435. S y(int()); // extern struct S y (int (*) (void));
  3436. S z(); // extern struct S z (void);
  3437. }
  3438. The warning will suggest options how to deal with such an
  3439. ambiguity; e.g., it can suggest removing the parentheses or using
  3440. braces instead.
  3441. This warning is enabled by default.
  3442. '-Wno-class-conversion (C++ and Objective-C++ only)'
  3443. Do not warn when a conversion function converts an object to the
  3444. same type, to a base class of that type, or to void; such a
  3445. conversion function will never be called.
  3446. '-Wvolatile (C++ and Objective-C++ only)'
  3447. Warn about deprecated uses of the 'volatile' qualifier. This
  3448. includes postfix and prefix '++' and '--' expressions of
  3449. 'volatile'-qualified types, using simple assignments where the left
  3450. operand is a 'volatile'-qualified non-class type for their value,
  3451. compound assignments where the left operand is a
  3452. 'volatile'-qualified non-class type, 'volatile'-qualified function
  3453. return type, 'volatile'-qualified parameter type, and structured
  3454. bindings of a 'volatile'-qualified type. This usage was deprecated
  3455. in C++20.
  3456. Enabled by default with '-std=c++20'.
  3457. '-Wzero-as-null-pointer-constant (C++ and Objective-C++ only)'
  3458. Warn when a literal '0' is used as null pointer constant. This can
  3459. be useful to facilitate the conversion to 'nullptr' in C++11.
  3460. '-Waligned-new'
  3461. Warn about a new-expression of a type that requires greater
  3462. alignment than the 'alignof(std::max_align_t)' but uses an
  3463. allocation function without an explicit alignment parameter. This
  3464. option is enabled by '-Wall'.
  3465. Normally this only warns about global allocation functions, but
  3466. '-Waligned-new=all' also warns about class member allocation
  3467. functions.
  3468. '-Wno-placement-new'
  3469. '-Wplacement-new=N'
  3470. Warn about placement new expressions with undefined behavior, such
  3471. as constructing an object in a buffer that is smaller than the type
  3472. of the object. For example, the placement new expression below is
  3473. diagnosed because it attempts to construct an array of 64 integers
  3474. in a buffer only 64 bytes large.
  3475. char buf [64];
  3476. new (buf) int[64];
  3477. This warning is enabled by default.
  3478. '-Wplacement-new=1'
  3479. This is the default warning level of '-Wplacement-new'. At
  3480. this level the warning is not issued for some strictly
  3481. undefined constructs that GCC allows as extensions for
  3482. compatibility with legacy code. For example, the following
  3483. 'new' expression is not diagnosed at this level even though it
  3484. has undefined behavior according to the C++ standard because
  3485. it writes past the end of the one-element array.
  3486. struct S { int n, a[1]; };
  3487. S *s = (S *)malloc (sizeof *s + 31 * sizeof s->a[0]);
  3488. new (s->a)int [32]();
  3489. '-Wplacement-new=2'
  3490. At this level, in addition to diagnosing all the same
  3491. constructs as at level 1, a diagnostic is also issued for
  3492. placement new expressions that construct an object in the last
  3493. member of structure whose type is an array of a single element
  3494. and whose size is less than the size of the object being
  3495. constructed. While the previous example would be diagnosed,
  3496. the following construct makes use of the flexible member array
  3497. extension to avoid the warning at level 2.
  3498. struct S { int n, a[]; };
  3499. S *s = (S *)malloc (sizeof *s + 32 * sizeof s->a[0]);
  3500. new (s->a)int [32]();
  3501. '-Wcatch-value'
  3502. '-Wcatch-value=N (C++ and Objective-C++ only)'
  3503. Warn about catch handlers that do not catch via reference. With
  3504. '-Wcatch-value=1' (or '-Wcatch-value' for short) warn about
  3505. polymorphic class types that are caught by value. With
  3506. '-Wcatch-value=2' warn about all class types that are caught by
  3507. value. With '-Wcatch-value=3' warn about all types that are not
  3508. caught by reference. '-Wcatch-value' is enabled by '-Wall'.
  3509. '-Wconditionally-supported (C++ and Objective-C++ only)'
  3510. Warn for conditionally-supported (C++11 [intro.defs]) constructs.
  3511. '-Wno-delete-incomplete (C++ and Objective-C++ only)'
  3512. Do not warn when deleting a pointer to incomplete type, which may
  3513. cause undefined behavior at runtime. This warning is enabled by
  3514. default.
  3515. '-Wextra-semi (C++, Objective-C++ only)'
  3516. Warn about redundant semicolons after in-class function
  3517. definitions.
  3518. '-Wno-inaccessible-base (C++, Objective-C++ only)'
  3519. This option controls warnings when a base class is inaccessible in
  3520. a class derived from it due to ambiguity. The warning is enabled
  3521. by default. Note that the warning for ambiguous virtual bases is
  3522. enabled by the '-Wextra' option.
  3523. struct A { int a; };
  3524. struct B : A { };
  3525. struct C : B, A { };
  3526. '-Wno-inherited-variadic-ctor'
  3527. Suppress warnings about use of C++11 inheriting constructors when
  3528. the base class inherited from has a C variadic constructor; the
  3529. warning is on by default because the ellipsis is not inherited.
  3530. '-Wno-invalid-offsetof (C++ and Objective-C++ only)'
  3531. Suppress warnings from applying the 'offsetof' macro to a non-POD
  3532. type. According to the 2014 ISO C++ standard, applying 'offsetof'
  3533. to a non-standard-layout type is undefined. In existing C++
  3534. implementations, however, 'offsetof' typically gives meaningful
  3535. results. This flag is for users who are aware that they are
  3536. writing nonportable code and who have deliberately chosen to ignore
  3537. the warning about it.
  3538. The restrictions on 'offsetof' may be relaxed in a future version
  3539. of the C++ standard.
  3540. '-Wsized-deallocation (C++ and Objective-C++ only)'
  3541. Warn about a definition of an unsized deallocation function
  3542. void operator delete (void *) noexcept;
  3543. void operator delete[] (void *) noexcept;
  3544. without a definition of the corresponding sized deallocation
  3545. function
  3546. void operator delete (void *, std::size_t) noexcept;
  3547. void operator delete[] (void *, std::size_t) noexcept;
  3548. or vice versa. Enabled by '-Wextra' along with
  3549. '-fsized-deallocation'.
  3550. '-Wsuggest-final-types'
  3551. Warn about types with virtual methods where code quality would be
  3552. improved if the type were declared with the C++11 'final'
  3553. specifier, or, if possible, declared in an anonymous namespace.
  3554. This allows GCC to more aggressively devirtualize the polymorphic
  3555. calls. This warning is more effective with link-time optimization,
  3556. where the information about the class hierarchy graph is more
  3557. complete.
  3558. '-Wsuggest-final-methods'
  3559. Warn about virtual methods where code quality would be improved if
  3560. the method were declared with the C++11 'final' specifier, or, if
  3561. possible, its type were declared in an anonymous namespace or with
  3562. the 'final' specifier. This warning is more effective with
  3563. link-time optimization, where the information about the class
  3564. hierarchy graph is more complete. It is recommended to first
  3565. consider suggestions of '-Wsuggest-final-types' and then rebuild
  3566. with new annotations.
  3567. '-Wsuggest-override'
  3568. Warn about overriding virtual functions that are not marked with
  3569. the 'override' keyword.
  3570. '-Wuseless-cast (C++ and Objective-C++ only)'
  3571. Warn when an expression is casted to its own type.
  3572. '-Wno-conversion-null (C++ and Objective-C++ only)'
  3573. Do not warn for conversions between 'NULL' and non-pointer types.
  3574. '-Wconversion-null' is enabled by default.
  3575. 
  3576. File: gcc.info, Node: Objective-C and Objective-C++ Dialect Options, Next: Diagnostic Message Formatting Options, Prev: C++ Dialect Options, Up: Invoking GCC
  3577. 3.6 Options Controlling Objective-C and Objective-C++ Dialects
  3578. ==============================================================
  3579. (NOTE: This manual does not describe the Objective-C and Objective-C++
  3580. languages themselves. *Note Language Standards Supported by GCC:
  3581. Standards, for references.)
  3582. This section describes the command-line options that are only
  3583. meaningful for Objective-C and Objective-C++ programs. You can also use
  3584. most of the language-independent GNU compiler options. For example, you
  3585. might compile a file 'some_class.m' like this:
  3586. gcc -g -fgnu-runtime -O -c some_class.m
  3587. In this example, '-fgnu-runtime' is an option meant only for Objective-C
  3588. and Objective-C++ programs; you can use the other options with any
  3589. language supported by GCC.
  3590. Note that since Objective-C is an extension of the C language,
  3591. Objective-C compilations may also use options specific to the C
  3592. front-end (e.g., '-Wtraditional'). Similarly, Objective-C++
  3593. compilations may use C++-specific options (e.g., '-Wabi').
  3594. Here is a list of options that are _only_ for compiling Objective-C and
  3595. Objective-C++ programs:
  3596. '-fconstant-string-class=CLASS-NAME'
  3597. Use CLASS-NAME as the name of the class to instantiate for each
  3598. literal string specified with the syntax '@"..."'. The default
  3599. class name is 'NXConstantString' if the GNU runtime is being used,
  3600. and 'NSConstantString' if the NeXT runtime is being used (see
  3601. below). The '-fconstant-cfstrings' option, if also present,
  3602. overrides the '-fconstant-string-class' setting and cause '@"..."'
  3603. literals to be laid out as constant CoreFoundation strings.
  3604. '-fgnu-runtime'
  3605. Generate object code compatible with the standard GNU Objective-C
  3606. runtime. This is the default for most types of systems.
  3607. '-fnext-runtime'
  3608. Generate output compatible with the NeXT runtime. This is the
  3609. default for NeXT-based systems, including Darwin and Mac OS X. The
  3610. macro '__NEXT_RUNTIME__' is predefined if (and only if) this option
  3611. is used.
  3612. '-fno-nil-receivers'
  3613. Assume that all Objective-C message dispatches ('[receiver
  3614. message:arg]') in this translation unit ensure that the receiver is
  3615. not 'nil'. This allows for more efficient entry points in the
  3616. runtime to be used. This option is only available in conjunction
  3617. with the NeXT runtime and ABI version 0 or 1.
  3618. '-fobjc-abi-version=N'
  3619. Use version N of the Objective-C ABI for the selected runtime.
  3620. This option is currently supported only for the NeXT runtime. In
  3621. that case, Version 0 is the traditional (32-bit) ABI without
  3622. support for properties and other Objective-C 2.0 additions.
  3623. Version 1 is the traditional (32-bit) ABI with support for
  3624. properties and other Objective-C 2.0 additions. Version 2 is the
  3625. modern (64-bit) ABI. If nothing is specified, the default is
  3626. Version 0 on 32-bit target machines, and Version 2 on 64-bit target
  3627. machines.
  3628. '-fobjc-call-cxx-cdtors'
  3629. For each Objective-C class, check if any of its instance variables
  3630. is a C++ object with a non-trivial default constructor. If so,
  3631. synthesize a special '- (id) .cxx_construct' instance method which
  3632. runs non-trivial default constructors on any such instance
  3633. variables, in order, and then return 'self'. Similarly, check if
  3634. any instance variable is a C++ object with a non-trivial
  3635. destructor, and if so, synthesize a special '- (void)
  3636. .cxx_destruct' method which runs all such default destructors, in
  3637. reverse order.
  3638. The '- (id) .cxx_construct' and '- (void) .cxx_destruct' methods
  3639. thusly generated only operate on instance variables declared in the
  3640. current Objective-C class, and not those inherited from
  3641. superclasses. It is the responsibility of the Objective-C runtime
  3642. to invoke all such methods in an object's inheritance hierarchy.
  3643. The '- (id) .cxx_construct' methods are invoked by the runtime
  3644. immediately after a new object instance is allocated; the '- (void)
  3645. .cxx_destruct' methods are invoked immediately before the runtime
  3646. deallocates an object instance.
  3647. As of this writing, only the NeXT runtime on Mac OS X 10.4 and
  3648. later has support for invoking the '- (id) .cxx_construct' and '-
  3649. (void) .cxx_destruct' methods.
  3650. '-fobjc-direct-dispatch'
  3651. Allow fast jumps to the message dispatcher. On Darwin this is
  3652. accomplished via the comm page.
  3653. '-fobjc-exceptions'
  3654. Enable syntactic support for structured exception handling in
  3655. Objective-C, similar to what is offered by C++. This option is
  3656. required to use the Objective-C keywords '@try', '@throw',
  3657. '@catch', '@finally' and '@synchronized'. This option is available
  3658. with both the GNU runtime and the NeXT runtime (but not available
  3659. in conjunction with the NeXT runtime on Mac OS X 10.2 and earlier).
  3660. '-fobjc-gc'
  3661. Enable garbage collection (GC) in Objective-C and Objective-C++
  3662. programs. This option is only available with the NeXT runtime; the
  3663. GNU runtime has a different garbage collection implementation that
  3664. does not require special compiler flags.
  3665. '-fobjc-nilcheck'
  3666. For the NeXT runtime with version 2 of the ABI, check for a nil
  3667. receiver in method invocations before doing the actual method call.
  3668. This is the default and can be disabled using '-fno-objc-nilcheck'.
  3669. Class methods and super calls are never checked for nil in this way
  3670. no matter what this flag is set to. Currently this flag does
  3671. nothing when the GNU runtime, or an older version of the NeXT
  3672. runtime ABI, is used.
  3673. '-fobjc-std=objc1'
  3674. Conform to the language syntax of Objective-C 1.0, the language
  3675. recognized by GCC 4.0. This only affects the Objective-C additions
  3676. to the C/C++ language; it does not affect conformance to C/C++
  3677. standards, which is controlled by the separate C/C++ dialect option
  3678. flags. When this option is used with the Objective-C or
  3679. Objective-C++ compiler, any Objective-C syntax that is not
  3680. recognized by GCC 4.0 is rejected. This is useful if you need to
  3681. make sure that your Objective-C code can be compiled with older
  3682. versions of GCC.
  3683. '-freplace-objc-classes'
  3684. Emit a special marker instructing 'ld(1)' not to statically link in
  3685. the resulting object file, and allow 'dyld(1)' to load it in at run
  3686. time instead. This is used in conjunction with the
  3687. Fix-and-Continue debugging mode, where the object file in question
  3688. may be recompiled and dynamically reloaded in the course of program
  3689. execution, without the need to restart the program itself.
  3690. Currently, Fix-and-Continue functionality is only available in
  3691. conjunction with the NeXT runtime on Mac OS X 10.3 and later.
  3692. '-fzero-link'
  3693. When compiling for the NeXT runtime, the compiler ordinarily
  3694. replaces calls to 'objc_getClass("...")' (when the name of the
  3695. class is known at compile time) with static class references that
  3696. get initialized at load time, which improves run-time performance.
  3697. Specifying the '-fzero-link' flag suppresses this behavior and
  3698. causes calls to 'objc_getClass("...")' to be retained. This is
  3699. useful in Zero-Link debugging mode, since it allows for individual
  3700. class implementations to be modified during program execution. The
  3701. GNU runtime currently always retains calls to
  3702. 'objc_get_class("...")' regardless of command-line options.
  3703. '-fno-local-ivars'
  3704. By default instance variables in Objective-C can be accessed as if
  3705. they were local variables from within the methods of the class
  3706. they're declared in. This can lead to shadowing between instance
  3707. variables and other variables declared either locally inside a
  3708. class method or globally with the same name. Specifying the
  3709. '-fno-local-ivars' flag disables this behavior thus avoiding
  3710. variable shadowing issues.
  3711. '-fivar-visibility=[public|protected|private|package]'
  3712. Set the default instance variable visibility to the specified
  3713. option so that instance variables declared outside the scope of any
  3714. access modifier directives default to the specified visibility.
  3715. '-gen-decls'
  3716. Dump interface declarations for all classes seen in the source file
  3717. to a file named 'SOURCENAME.decl'.
  3718. '-Wassign-intercept (Objective-C and Objective-C++ only)'
  3719. Warn whenever an Objective-C assignment is being intercepted by the
  3720. garbage collector.
  3721. '-Wno-property-assign-default (Objective-C and Objective-C++ only)'
  3722. Do not warn if a property for an Objective-C object has no assign
  3723. semantics specified.
  3724. '-Wno-protocol (Objective-C and Objective-C++ only)'
  3725. If a class is declared to implement a protocol, a warning is issued
  3726. for every method in the protocol that is not implemented by the
  3727. class. The default behavior is to issue a warning for every method
  3728. not explicitly implemented in the class, even if a method
  3729. implementation is inherited from the superclass. If you use the
  3730. '-Wno-protocol' option, then methods inherited from the superclass
  3731. are considered to be implemented, and no warning is issued for
  3732. them.
  3733. '-Wobjc-root-class (Objective-C and Objective-C++ only)'
  3734. Warn if a class interface lacks a superclass. Most classes will
  3735. inherit from 'NSObject' (or 'Object') for example. When declaring
  3736. classes intended to be root classes, the warning can be suppressed
  3737. by marking their interfaces with
  3738. '__attribute__((objc_root_class))'.
  3739. '-Wselector (Objective-C and Objective-C++ only)'
  3740. Warn if multiple methods of different types for the same selector
  3741. are found during compilation. The check is performed on the list
  3742. of methods in the final stage of compilation. Additionally, a
  3743. check is performed for each selector appearing in a
  3744. '@selector(...)' expression, and a corresponding method for that
  3745. selector has been found during compilation. Because these checks
  3746. scan the method table only at the end of compilation, these
  3747. warnings are not produced if the final stage of compilation is not
  3748. reached, for example because an error is found during compilation,
  3749. or because the '-fsyntax-only' option is being used.
  3750. '-Wstrict-selector-match (Objective-C and Objective-C++ only)'
  3751. Warn if multiple methods with differing argument and/or return
  3752. types are found for a given selector when attempting to send a
  3753. message using this selector to a receiver of type 'id' or 'Class'.
  3754. When this flag is off (which is the default behavior), the compiler
  3755. omits such warnings if any differences found are confined to types
  3756. that share the same size and alignment.
  3757. '-Wundeclared-selector (Objective-C and Objective-C++ only)'
  3758. Warn if a '@selector(...)' expression referring to an undeclared
  3759. selector is found. A selector is considered undeclared if no
  3760. method with that name has been declared before the '@selector(...)'
  3761. expression, either explicitly in an '@interface' or '@protocol'
  3762. declaration, or implicitly in an '@implementation' section. This
  3763. option always performs its checks as soon as a '@selector(...)'
  3764. expression is found, while '-Wselector' only performs its checks in
  3765. the final stage of compilation. This also enforces the coding
  3766. style convention that methods and selectors must be declared before
  3767. being used.
  3768. '-print-objc-runtime-info'
  3769. Generate C header describing the largest structure that is passed
  3770. by value, if any.
  3771. 
  3772. File: gcc.info, Node: Diagnostic Message Formatting Options, Next: Warning Options, Prev: Objective-C and Objective-C++ Dialect Options, Up: Invoking GCC
  3773. 3.7 Options to Control Diagnostic Messages Formatting
  3774. =====================================================
  3775. Traditionally, diagnostic messages have been formatted irrespective of
  3776. the output device's aspect (e.g. its width, ...). You can use the
  3777. options described below to control the formatting algorithm for
  3778. diagnostic messages, e.g. how many characters per line, how often source
  3779. location information should be reported. Note that some language front
  3780. ends may not honor these options.
  3781. '-fmessage-length=N'
  3782. Try to format error messages so that they fit on lines of about N
  3783. characters. If N is zero, then no line-wrapping is done; each
  3784. error message appears on a single line. This is the default for
  3785. all front ends.
  3786. Note - this option also affects the display of the '#error' and
  3787. '#warning' pre-processor directives, and the 'deprecated'
  3788. function/type/variable attribute. It does not however affect the
  3789. 'pragma GCC warning' and 'pragma GCC error' pragmas.
  3790. '-fdiagnostics-plain-output'
  3791. This option requests that diagnostic output look as plain as
  3792. possible, which may be useful when running 'dejagnu' or other
  3793. utilities that need to parse diagnostics output and prefer that it
  3794. remain more stable over time. '-fdiagnostics-plain-output' is
  3795. currently equivalent to the following options:
  3796. -fno-diagnostics-show-caret
  3797. -fno-diagnostics-show-line-numbers
  3798. -fdiagnostics-color=never
  3799. -fdiagnostics-urls=never
  3800. -fdiagnostics-path-format=separate-events
  3801. In the future, if GCC changes the default appearance of its
  3802. diagnostics, the corresponding option to disable the new behavior
  3803. will be added to this list.
  3804. '-fdiagnostics-show-location=once'
  3805. Only meaningful in line-wrapping mode. Instructs the diagnostic
  3806. messages reporter to emit source location information _once_; that
  3807. is, in case the message is too long to fit on a single physical
  3808. line and has to be wrapped, the source location won't be emitted
  3809. (as prefix) again, over and over, in subsequent continuation lines.
  3810. This is the default behavior.
  3811. '-fdiagnostics-show-location=every-line'
  3812. Only meaningful in line-wrapping mode. Instructs the diagnostic
  3813. messages reporter to emit the same source location information (as
  3814. prefix) for physical lines that result from the process of breaking
  3815. a message which is too long to fit on a single line.
  3816. '-fdiagnostics-color[=WHEN]'
  3817. '-fno-diagnostics-color'
  3818. Use color in diagnostics. WHEN is 'never', 'always', or 'auto'.
  3819. The default depends on how the compiler has been configured, it can
  3820. be any of the above WHEN options or also 'never' if 'GCC_COLORS'
  3821. environment variable isn't present in the environment, and 'auto'
  3822. otherwise. 'auto' makes GCC use color only when the standard error
  3823. is a terminal, and when not executing in an emacs shell. The forms
  3824. '-fdiagnostics-color' and '-fno-diagnostics-color' are aliases for
  3825. '-fdiagnostics-color=always' and '-fdiagnostics-color=never',
  3826. respectively.
  3827. The colors are defined by the environment variable 'GCC_COLORS'.
  3828. Its value is a colon-separated list of capabilities and Select
  3829. Graphic Rendition (SGR) substrings. SGR commands are interpreted
  3830. by the terminal or terminal emulator. (See the section in the
  3831. documentation of your text terminal for permitted values and their
  3832. meanings as character attributes.) These substring values are
  3833. integers in decimal representation and can be concatenated with
  3834. semicolons. Common values to concatenate include '1' for bold, '4'
  3835. for underline, '5' for blink, '7' for inverse, '39' for default
  3836. foreground color, '30' to '37' for foreground colors, '90' to '97'
  3837. for 16-color mode foreground colors, '38;5;0' to '38;5;255' for
  3838. 88-color and 256-color modes foreground colors, '49' for default
  3839. background color, '40' to '47' for background colors, '100' to
  3840. '107' for 16-color mode background colors, and '48;5;0' to
  3841. '48;5;255' for 88-color and 256-color modes background colors.
  3842. The default 'GCC_COLORS' is
  3843. error=01;31:warning=01;35:note=01;36:range1=32:range2=34:locus=01:\
  3844. quote=01:path=01;36:fixit-insert=32:fixit-delete=31:\
  3845. diff-filename=01:diff-hunk=32:diff-delete=31:diff-insert=32:\
  3846. type-diff=01;32
  3847. where '01;31' is bold red, '01;35' is bold magenta, '01;36' is bold
  3848. cyan, '32' is green, '34' is blue, '01' is bold, and '31' is red.
  3849. Setting 'GCC_COLORS' to the empty string disables colors.
  3850. Supported capabilities are as follows.
  3851. 'error='
  3852. SGR substring for error: markers.
  3853. 'warning='
  3854. SGR substring for warning: markers.
  3855. 'note='
  3856. SGR substring for note: markers.
  3857. 'path='
  3858. SGR substring for colorizing paths of control-flow events as
  3859. printed via '-fdiagnostics-path-format=', such as the
  3860. identifiers of individual events and lines indicating
  3861. interprocedural calls and returns.
  3862. 'range1='
  3863. SGR substring for first additional range.
  3864. 'range2='
  3865. SGR substring for second additional range.
  3866. 'locus='
  3867. SGR substring for location information, 'file:line' or
  3868. 'file:line:column' etc.
  3869. 'quote='
  3870. SGR substring for information printed within quotes.
  3871. 'fixit-insert='
  3872. SGR substring for fix-it hints suggesting text to be inserted
  3873. or replaced.
  3874. 'fixit-delete='
  3875. SGR substring for fix-it hints suggesting text to be deleted.
  3876. 'diff-filename='
  3877. SGR substring for filename headers within generated patches.
  3878. 'diff-hunk='
  3879. SGR substring for the starts of hunks within generated
  3880. patches.
  3881. 'diff-delete='
  3882. SGR substring for deleted lines within generated patches.
  3883. 'diff-insert='
  3884. SGR substring for inserted lines within generated patches.
  3885. 'type-diff='
  3886. SGR substring for highlighting mismatching types within
  3887. template arguments in the C++ frontend.
  3888. '-fdiagnostics-urls[=WHEN]'
  3889. Use escape sequences to embed URLs in diagnostics. For example,
  3890. when '-fdiagnostics-show-option' emits text showing the
  3891. command-line option controlling a diagnostic, embed a URL for
  3892. documentation of that option.
  3893. WHEN is 'never', 'always', or 'auto'. 'auto' makes GCC use URL
  3894. escape sequences only when the standard error is a terminal, and
  3895. when not executing in an emacs shell or any graphical terminal
  3896. which is known to be incompatible with this feature, see below.
  3897. The default depends on how the compiler has been configured. It
  3898. can be any of the above WHEN options.
  3899. GCC can also be configured (via the
  3900. '--with-diagnostics-urls=auto-if-env' configure-time option) so
  3901. that the default is affected by environment variables. Under such
  3902. a configuration, GCC defaults to using 'auto' if either 'GCC_URLS'
  3903. or 'TERM_URLS' environment variables are present and non-empty in
  3904. the environment of the compiler, or 'never' if neither are.
  3905. However, even with '-fdiagnostics-urls=always' the behavior is
  3906. dependent on those environment variables: If 'GCC_URLS' is set to
  3907. empty or 'no', do not embed URLs in diagnostics. If set to 'st',
  3908. URLs use ST escape sequences. If set to 'bel', the default, URLs
  3909. use BEL escape sequences. Any other non-empty value enables the
  3910. feature. If 'GCC_URLS' is not set, use 'TERM_URLS' as a fallback.
  3911. Note: ST is an ANSI escape sequence, string terminator 'ESC \', BEL
  3912. is an ASCII character, CTRL-G that usually sounds like a beep.
  3913. At this time GCC tries to detect also a few terminals that are
  3914. known to not implement the URL feature, and have bugs or at least
  3915. had bugs in some versions that are still in use, where the URL
  3916. escapes are likely to misbehave, i.e. print garbage on the screen.
  3917. That list is currently xfce4-terminal, certain known to be buggy
  3918. gnome-terminal versions, the linux console, and mingw. This check
  3919. can be skipped with the '-fdiagnostics-urls=always'.
  3920. '-fno-diagnostics-show-option'
  3921. By default, each diagnostic emitted includes text indicating the
  3922. command-line option that directly controls the diagnostic (if such
  3923. an option is known to the diagnostic machinery). Specifying the
  3924. '-fno-diagnostics-show-option' flag suppresses that behavior.
  3925. '-fno-diagnostics-show-caret'
  3926. By default, each diagnostic emitted includes the original source
  3927. line and a caret '^' indicating the column. This option suppresses
  3928. this information. The source line is truncated to N characters, if
  3929. the '-fmessage-length=n' option is given. When the output is done
  3930. to the terminal, the width is limited to the width given by the
  3931. 'COLUMNS' environment variable or, if not set, to the terminal
  3932. width.
  3933. '-fno-diagnostics-show-labels'
  3934. By default, when printing source code (via
  3935. '-fdiagnostics-show-caret'), diagnostics can label ranges of source
  3936. code with pertinent information, such as the types of expressions:
  3937. printf ("foo %s bar", long_i + long_j);
  3938. ~^ ~~~~~~~~~~~~~~~
  3939. | |
  3940. char * long int
  3941. This option suppresses the printing of these labels (in the example
  3942. above, the vertical bars and the "char *" and "long int" text).
  3943. '-fno-diagnostics-show-cwe'
  3944. Diagnostic messages can optionally have an associated CWE
  3945. (https://cwe.mitre.org/index.html) identifier. GCC itself only
  3946. provides such metadata for some of the '-fanalyzer' diagnostics.
  3947. GCC plugins may also provide diagnostics with such metadata. By
  3948. default, if this information is present, it will be printed with
  3949. the diagnostic. This option suppresses the printing of this
  3950. metadata.
  3951. '-fno-diagnostics-show-line-numbers'
  3952. By default, when printing source code (via
  3953. '-fdiagnostics-show-caret'), a left margin is printed, showing line
  3954. numbers. This option suppresses this left margin.
  3955. '-fdiagnostics-minimum-margin-width=WIDTH'
  3956. This option controls the minimum width of the left margin printed
  3957. by '-fdiagnostics-show-line-numbers'. It defaults to 6.
  3958. '-fdiagnostics-parseable-fixits'
  3959. Emit fix-it hints in a machine-parseable format, suitable for
  3960. consumption by IDEs. For each fix-it, a line will be printed after
  3961. the relevant diagnostic, starting with the string "fix-it:". For
  3962. example:
  3963. fix-it:"test.c":{45:3-45:21}:"gtk_widget_show_all"
  3964. The location is expressed as a half-open range, expressed as a
  3965. count of bytes, starting at byte 1 for the initial column. In the
  3966. above example, bytes 3 through 20 of line 45 of "test.c" are to be
  3967. replaced with the given string:
  3968. 00000000011111111112222222222
  3969. 12345678901234567890123456789
  3970. gtk_widget_showall (dlg);
  3971. ^^^^^^^^^^^^^^^^^^
  3972. gtk_widget_show_all
  3973. The filename and replacement string escape backslash as "\\", tab
  3974. as "\t", newline as "\n", double quotes as "\"", non-printable
  3975. characters as octal (e.g. vertical tab as "\013").
  3976. An empty replacement string indicates that the given range is to be
  3977. removed. An empty range (e.g. "45:3-45:3") indicates that the
  3978. string is to be inserted at the given position.
  3979. '-fdiagnostics-generate-patch'
  3980. Print fix-it hints to stderr in unified diff format, after any
  3981. diagnostics are printed. For example:
  3982. --- test.c
  3983. +++ test.c
  3984. @ -42,5 +42,5 @
  3985. void show_cb(GtkDialog *dlg)
  3986. {
  3987. - gtk_widget_showall(dlg);
  3988. + gtk_widget_show_all(dlg);
  3989. }
  3990. The diff may or may not be colorized, following the same rules as
  3991. for diagnostics (see '-fdiagnostics-color').
  3992. '-fdiagnostics-show-template-tree'
  3993. In the C++ frontend, when printing diagnostics showing mismatching
  3994. template types, such as:
  3995. could not convert 'std::map<int, std::vector<double> >()'
  3996. from 'map<[...],vector<double>>' to 'map<[...],vector<float>>
  3997. the '-fdiagnostics-show-template-tree' flag enables printing a
  3998. tree-like structure showing the common and differing parts of the
  3999. types, such as:
  4000. map<
  4001. [...],
  4002. vector<
  4003. [double != float]>>
  4004. The parts that differ are highlighted with color ("double" and
  4005. "float" in this case).
  4006. '-fno-elide-type'
  4007. By default when the C++ frontend prints diagnostics showing
  4008. mismatching template types, common parts of the types are printed
  4009. as "[...]" to simplify the error message. For example:
  4010. could not convert 'std::map<int, std::vector<double> >()'
  4011. from 'map<[...],vector<double>>' to 'map<[...],vector<float>>
  4012. Specifying the '-fno-elide-type' flag suppresses that behavior.
  4013. This flag also affects the output of the
  4014. '-fdiagnostics-show-template-tree' flag.
  4015. '-fdiagnostics-path-format=KIND'
  4016. Specify how to print paths of control-flow events for diagnostics
  4017. that have such a path associated with them.
  4018. KIND is 'none', 'separate-events', or 'inline-events', the default.
  4019. 'none' means to not print diagnostic paths.
  4020. 'separate-events' means to print a separate "note" diagnostic for
  4021. each event within the diagnostic. For example:
  4022. test.c:29:5: error: passing NULL as argument 1 to 'PyList_Append' which requires a non-NULL parameter
  4023. test.c:25:10: note: (1) when 'PyList_New' fails, returning NULL
  4024. test.c:27:3: note: (2) when 'i < count'
  4025. test.c:29:5: note: (3) when calling 'PyList_Append', passing NULL from (1) as argument 1
  4026. 'inline-events' means to print the events "inline" within the
  4027. source code. This view attempts to consolidate the events into
  4028. runs of sufficiently-close events, printing them as labelled ranges
  4029. within the source.
  4030. For example, the same events as above might be printed as:
  4031. 'test': events 1-3
  4032. |
  4033. | 25 | list = PyList_New(0);
  4034. | | ^~~~~~~~~~~~~
  4035. | | |
  4036. | | (1) when 'PyList_New' fails, returning NULL
  4037. | 26 |
  4038. | 27 | for (i = 0; i < count; i++) {
  4039. | | ~~~
  4040. | | |
  4041. | | (2) when 'i < count'
  4042. | 28 | item = PyLong_FromLong(random());
  4043. | 29 | PyList_Append(list, item);
  4044. | | ~~~~~~~~~~~~~~~~~~~~~~~~~
  4045. | | |
  4046. | | (3) when calling 'PyList_Append', passing NULL from (1) as argument 1
  4047. |
  4048. Interprocedural control flow is shown by grouping the events by
  4049. stack frame, and using indentation to show how stack frames are
  4050. nested, pushed, and popped.
  4051. For example:
  4052. 'test': events 1-2
  4053. |
  4054. | 133 | {
  4055. | | ^
  4056. | | |
  4057. | | (1) entering 'test'
  4058. | 134 | boxed_int *obj = make_boxed_int (i);
  4059. | | ~~~~~~~~~~~~~~~~~~
  4060. | | |
  4061. | | (2) calling 'make_boxed_int'
  4062. |
  4063. +--> 'make_boxed_int': events 3-4
  4064. |
  4065. | 120 | {
  4066. | | ^
  4067. | | |
  4068. | | (3) entering 'make_boxed_int'
  4069. | 121 | boxed_int *result = (boxed_int *)wrapped_malloc (sizeof (boxed_int));
  4070. | | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  4071. | | |
  4072. | | (4) calling 'wrapped_malloc'
  4073. |
  4074. +--> 'wrapped_malloc': events 5-6
  4075. |
  4076. | 7 | {
  4077. | | ^
  4078. | | |
  4079. | | (5) entering 'wrapped_malloc'
  4080. | 8 | return malloc (size);
  4081. | | ~~~~~~~~~~~~~
  4082. | | |
  4083. | | (6) calling 'malloc'
  4084. |
  4085. <-------------+
  4086. |
  4087. 'test': event 7
  4088. |
  4089. | 138 | free_boxed_int (obj);
  4090. | | ^~~~~~~~~~~~~~~~~~~~
  4091. | | |
  4092. | | (7) calling 'free_boxed_int'
  4093. |
  4094. (etc)
  4095. '-fdiagnostics-show-path-depths'
  4096. This option provides additional information when printing
  4097. control-flow paths associated with a diagnostic.
  4098. If this is option is provided then the stack depth will be printed
  4099. for each run of events within
  4100. '-fdiagnostics-path-format=separate-events'.
  4101. This is intended for use by GCC developers and plugin developers
  4102. when debugging diagnostics that report interprocedural control
  4103. flow.
  4104. '-fno-show-column'
  4105. Do not print column numbers in diagnostics. This may be necessary
  4106. if diagnostics are being scanned by a program that does not
  4107. understand the column numbers, such as 'dejagnu'.
  4108. '-fdiagnostics-column-unit=UNIT'
  4109. Select the units for the column number. This affects traditional
  4110. diagnostics (in the absence of '-fno-show-column'), as well as JSON
  4111. format diagnostics if requested.
  4112. The default UNIT, 'display', considers the number of display
  4113. columns occupied by each character. This may be larger than the
  4114. number of bytes required to encode the character, in the case of
  4115. tab characters, or it may be smaller, in the case of multibyte
  4116. characters. For example, the character "GREEK SMALL LETTER PI
  4117. (U+03C0)" occupies one display column, and its UTF-8 encoding
  4118. requires two bytes; the character "SLIGHTLY SMILING FACE (U+1F642)"
  4119. occupies two display columns, and its UTF-8 encoding requires four
  4120. bytes.
  4121. Setting UNIT to 'byte' changes the column number to the raw byte
  4122. count in all cases, as was traditionally output by GCC prior to
  4123. version 11.1.0.
  4124. '-fdiagnostics-column-origin=ORIGIN'
  4125. Select the origin for column numbers, i.e. the column number
  4126. assigned to the first column. The default value of 1 corresponds
  4127. to traditional GCC behavior and to the GNU style guide. Some
  4128. utilities may perform better with an origin of 0; any non-negative
  4129. value may be specified.
  4130. '-fdiagnostics-format=FORMAT'
  4131. Select a different format for printing diagnostics. FORMAT is
  4132. 'text' or 'json'. The default is 'text'.
  4133. The 'json' format consists of a top-level JSON array containing
  4134. JSON objects representing the diagnostics.
  4135. The JSON is emitted as one line, without formatting; the examples
  4136. below have been formatted for clarity.
  4137. Diagnostics can have child diagnostics. For example, this error
  4138. and note:
  4139. misleading-indentation.c:15:3: warning: this 'if' clause does not
  4140. guard... [-Wmisleading-indentation]
  4141. 15 | if (flag)
  4142. | ^~
  4143. misleading-indentation.c:17:5: note: ...this statement, but the latter
  4144. is misleadingly indented as if it were guarded by the 'if'
  4145. 17 | y = 2;
  4146. | ^
  4147. might be printed in JSON form (after formatting) like this:
  4148. [
  4149. {
  4150. "kind": "warning",
  4151. "locations": [
  4152. {
  4153. "caret": {
  4154. "display-column": 3,
  4155. "byte-column": 3,
  4156. "column": 3,
  4157. "file": "misleading-indentation.c",
  4158. "line": 15
  4159. },
  4160. "finish": {
  4161. "display-column": 4,
  4162. "byte-column": 4,
  4163. "column": 4,
  4164. "file": "misleading-indentation.c",
  4165. "line": 15
  4166. }
  4167. }
  4168. ],
  4169. "message": "this \u2018if\u2019 clause does not guard...",
  4170. "option": "-Wmisleading-indentation",
  4171. "option_url": "https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wmisleading-indentation",
  4172. "children": [
  4173. {
  4174. "kind": "note",
  4175. "locations": [
  4176. {
  4177. "caret": {
  4178. "display-column": 5,
  4179. "byte-column": 5,
  4180. "column": 5,
  4181. "file": "misleading-indentation.c",
  4182. "line": 17
  4183. }
  4184. }
  4185. ],
  4186. "message": "...this statement, but the latter is ..."
  4187. }
  4188. ]
  4189. "column-origin": 1,
  4190. },
  4191. ...
  4192. ]
  4193. where the 'note' is a child of the 'warning'.
  4194. A diagnostic has a 'kind'. If this is 'warning', then there is an
  4195. 'option' key describing the command-line option controlling the
  4196. warning.
  4197. A diagnostic can contain zero or more locations. Each location has
  4198. an optional 'label' string and up to three positions within it: a
  4199. 'caret' position and optional 'start' and 'finish' positions. A
  4200. position is described by a 'file' name, a 'line' number, and three
  4201. numbers indicating a column position:
  4202. * 'display-column' counts display columns, accounting for tabs
  4203. and multibyte characters.
  4204. * 'byte-column' counts raw bytes.
  4205. * 'column' is equal to one of the previous two, as dictated by
  4206. the '-fdiagnostics-column-unit' option.
  4207. All three columns are relative to the origin specified by
  4208. '-fdiagnostics-column-origin', which is typically equal to 1 but
  4209. may be set, for instance, to 0 for compatibility with other
  4210. utilities that number columns from 0. The column origin is
  4211. recorded in the JSON output in the 'column-origin' tag. In the
  4212. remaining examples below, the extra column number outputs have been
  4213. omitted for brevity.
  4214. For example, this error:
  4215. bad-binary-ops.c:64:23: error: invalid operands to binary + (have 'S' {aka
  4216. 'struct s'} and 'T' {aka 'struct t'})
  4217. 64 | return callee_4a () + callee_4b ();
  4218. | ~~~~~~~~~~~~ ^ ~~~~~~~~~~~~
  4219. | | |
  4220. | | T {aka struct t}
  4221. | S {aka struct s}
  4222. has three locations. Its primary location is at the "+" token at
  4223. column 23. It has two secondary locations, describing the left and
  4224. right-hand sides of the expression, which have labels. It might be
  4225. printed in JSON form as:
  4226. {
  4227. "children": [],
  4228. "kind": "error",
  4229. "locations": [
  4230. {
  4231. "caret": {
  4232. "column": 23, "file": "bad-binary-ops.c", "line": 64
  4233. }
  4234. },
  4235. {
  4236. "caret": {
  4237. "column": 10, "file": "bad-binary-ops.c", "line": 64
  4238. },
  4239. "finish": {
  4240. "column": 21, "file": "bad-binary-ops.c", "line": 64
  4241. },
  4242. "label": "S {aka struct s}"
  4243. },
  4244. {
  4245. "caret": {
  4246. "column": 25, "file": "bad-binary-ops.c", "line": 64
  4247. },
  4248. "finish": {
  4249. "column": 36, "file": "bad-binary-ops.c", "line": 64
  4250. },
  4251. "label": "T {aka struct t}"
  4252. }
  4253. ],
  4254. "message": "invalid operands to binary + ..."
  4255. }
  4256. If a diagnostic contains fix-it hints, it has a 'fixits' array,
  4257. consisting of half-open intervals, similar to the output of
  4258. '-fdiagnostics-parseable-fixits'. For example, this diagnostic
  4259. with a replacement fix-it hint:
  4260. demo.c:8:15: error: 'struct s' has no member named 'colour'; did you
  4261. mean 'color'?
  4262. 8 | return ptr->colour;
  4263. | ^~~~~~
  4264. | color
  4265. might be printed in JSON form as:
  4266. {
  4267. "children": [],
  4268. "fixits": [
  4269. {
  4270. "next": {
  4271. "column": 21,
  4272. "file": "demo.c",
  4273. "line": 8
  4274. },
  4275. "start": {
  4276. "column": 15,
  4277. "file": "demo.c",
  4278. "line": 8
  4279. },
  4280. "string": "color"
  4281. }
  4282. ],
  4283. "kind": "error",
  4284. "locations": [
  4285. {
  4286. "caret": {
  4287. "column": 15,
  4288. "file": "demo.c",
  4289. "line": 8
  4290. },
  4291. "finish": {
  4292. "column": 20,
  4293. "file": "demo.c",
  4294. "line": 8
  4295. }
  4296. }
  4297. ],
  4298. "message": "\u2018struct s\u2019 has no member named ..."
  4299. }
  4300. where the fix-it hint suggests replacing the text from 'start' up
  4301. to but not including 'next' with 'string''s value. Deletions are
  4302. expressed via an empty value for 'string', insertions by having
  4303. 'start' equal 'next'.
  4304. If the diagnostic has a path of control-flow events associated with
  4305. it, it has a 'path' array of objects representing the events. Each
  4306. event object has a 'description' string, a 'location' object, along
  4307. with a 'function' string and a 'depth' number for representing
  4308. interprocedural paths. The 'function' represents the current
  4309. function at that event, and the 'depth' represents the stack depth
  4310. relative to some baseline: the higher, the more frames are within
  4311. the stack.
  4312. For example, the intraprocedural example shown for
  4313. '-fdiagnostics-path-format=' might have this JSON for its path:
  4314. "path": [
  4315. {
  4316. "depth": 0,
  4317. "description": "when 'PyList_New' fails, returning NULL",
  4318. "function": "test",
  4319. "location": {
  4320. "column": 10,
  4321. "file": "test.c",
  4322. "line": 25
  4323. }
  4324. },
  4325. {
  4326. "depth": 0,
  4327. "description": "when 'i < count'",
  4328. "function": "test",
  4329. "location": {
  4330. "column": 3,
  4331. "file": "test.c",
  4332. "line": 27
  4333. }
  4334. },
  4335. {
  4336. "depth": 0,
  4337. "description": "when calling 'PyList_Append', passing NULL from (1) as argument 1",
  4338. "function": "test",
  4339. "location": {
  4340. "column": 5,
  4341. "file": "test.c",
  4342. "line": 29
  4343. }
  4344. }
  4345. ]
  4346. 
  4347. File: gcc.info, Node: Warning Options, Next: Static Analyzer Options, Prev: Diagnostic Message Formatting Options, Up: Invoking GCC
  4348. 3.8 Options to Request or Suppress Warnings
  4349. ===========================================
  4350. Warnings are diagnostic messages that report constructions that are not
  4351. inherently erroneous but that are risky or suggest there may have been
  4352. an error.
  4353. The following language-independent options do not enable specific
  4354. warnings but control the kinds of diagnostics produced by GCC.
  4355. '-fsyntax-only'
  4356. Check the code for syntax errors, but don't do anything beyond
  4357. that.
  4358. '-fmax-errors=N'
  4359. Limits the maximum number of error messages to N, at which point
  4360. GCC bails out rather than attempting to continue processing the
  4361. source code. If N is 0 (the default), there is no limit on the
  4362. number of error messages produced. If '-Wfatal-errors' is also
  4363. specified, then '-Wfatal-errors' takes precedence over this option.
  4364. '-w'
  4365. Inhibit all warning messages.
  4366. '-Werror'
  4367. Make all warnings into errors.
  4368. '-Werror='
  4369. Make the specified warning into an error. The specifier for a
  4370. warning is appended; for example '-Werror=switch' turns the
  4371. warnings controlled by '-Wswitch' into errors. This switch takes a
  4372. negative form, to be used to negate '-Werror' for specific
  4373. warnings; for example '-Wno-error=switch' makes '-Wswitch' warnings
  4374. not be errors, even when '-Werror' is in effect.
  4375. The warning message for each controllable warning includes the
  4376. option that controls the warning. That option can then be used
  4377. with '-Werror=' and '-Wno-error=' as described above. (Printing of
  4378. the option in the warning message can be disabled using the
  4379. '-fno-diagnostics-show-option' flag.)
  4380. Note that specifying '-Werror='FOO automatically implies '-W'FOO.
  4381. However, '-Wno-error='FOO does not imply anything.
  4382. '-Wfatal-errors'
  4383. This option causes the compiler to abort compilation on the first
  4384. error occurred rather than trying to keep going and printing
  4385. further error messages.
  4386. You can request many specific warnings with options beginning with
  4387. '-W', for example '-Wimplicit' to request warnings on implicit
  4388. declarations. Each of these specific warning options also has a
  4389. negative form beginning '-Wno-' to turn off warnings; for example,
  4390. '-Wno-implicit'. This manual lists only one of the two forms, whichever
  4391. is not the default. For further language-specific options also refer to
  4392. *note C++ Dialect Options:: and *note Objective-C and Objective-C++
  4393. Dialect Options::. Additional warnings can be produced by enabling the
  4394. static analyzer; *Note Static Analyzer Options::.
  4395. Some options, such as '-Wall' and '-Wextra', turn on other options,
  4396. such as '-Wunused', which may turn on further options, such as
  4397. '-Wunused-value'. The combined effect of positive and negative forms is
  4398. that more specific options have priority over less specific ones,
  4399. independently of their position in the command-line. For options of the
  4400. same specificity, the last one takes effect. Options enabled or
  4401. disabled via pragmas (*note Diagnostic Pragmas::) take effect as if they
  4402. appeared at the end of the command-line.
  4403. When an unrecognized warning option is requested (e.g.,
  4404. '-Wunknown-warning'), GCC emits a diagnostic stating that the option is
  4405. not recognized. However, if the '-Wno-' form is used, the behavior is
  4406. slightly different: no diagnostic is produced for '-Wno-unknown-warning'
  4407. unless other diagnostics are being produced. This allows the use of new
  4408. '-Wno-' options with old compilers, but if something goes wrong, the
  4409. compiler warns that an unrecognized option is present.
  4410. The effectiveness of some warnings depends on optimizations also being
  4411. enabled. For example '-Wsuggest-final-types' is more effective with
  4412. link-time optimization and '-Wmaybe-uninitialized' does not warn at all
  4413. unless optimization is enabled.
  4414. '-Wpedantic'
  4415. '-pedantic'
  4416. Issue all the warnings demanded by strict ISO C and ISO C++; reject
  4417. all programs that use forbidden extensions, and some other programs
  4418. that do not follow ISO C and ISO C++. For ISO C, follows the
  4419. version of the ISO C standard specified by any '-std' option used.
  4420. Valid ISO C and ISO C++ programs should compile properly with or
  4421. without this option (though a rare few require '-ansi' or a '-std'
  4422. option specifying the required version of ISO C). However, without
  4423. this option, certain GNU extensions and traditional C and C++
  4424. features are supported as well. With this option, they are
  4425. rejected.
  4426. '-Wpedantic' does not cause warning messages for use of the
  4427. alternate keywords whose names begin and end with '__'. This
  4428. alternate format can also be used to disable warnings for non-ISO
  4429. '__intN' types, i.e. '__intN__'. Pedantic warnings are also
  4430. disabled in the expression that follows '__extension__'. However,
  4431. only system header files should use these escape routes;
  4432. application programs should avoid them. *Note Alternate
  4433. Keywords::.
  4434. Some users try to use '-Wpedantic' to check programs for strict ISO
  4435. C conformance. They soon find that it does not do quite what they
  4436. want: it finds some non-ISO practices, but not all--only those for
  4437. which ISO C _requires_ a diagnostic, and some others for which
  4438. diagnostics have been added.
  4439. A feature to report any failure to conform to ISO C might be useful
  4440. in some instances, but would require considerable additional work
  4441. and would be quite different from '-Wpedantic'. We don't have
  4442. plans to support such a feature in the near future.
  4443. Where the standard specified with '-std' represents a GNU extended
  4444. dialect of C, such as 'gnu90' or 'gnu99', there is a corresponding
  4445. "base standard", the version of ISO C on which the GNU extended
  4446. dialect is based. Warnings from '-Wpedantic' are given where they
  4447. are required by the base standard. (It does not make sense for
  4448. such warnings to be given only for features not in the specified
  4449. GNU C dialect, since by definition the GNU dialects of C include
  4450. all features the compiler supports with the given option, and there
  4451. would be nothing to warn about.)
  4452. '-pedantic-errors'
  4453. Give an error whenever the "base standard" (see '-Wpedantic')
  4454. requires a diagnostic, in some cases where there is undefined
  4455. behavior at compile-time and in some other cases that do not
  4456. prevent compilation of programs that are valid according to the
  4457. standard. This is not equivalent to '-Werror=pedantic', since
  4458. there are errors enabled by this option and not enabled by the
  4459. latter and vice versa.
  4460. '-Wall'
  4461. This enables all the warnings about constructions that some users
  4462. consider questionable, and that are easy to avoid (or modify to
  4463. prevent the warning), even in conjunction with macros. This also
  4464. enables some language-specific warnings described in *note C++
  4465. Dialect Options:: and *note Objective-C and Objective-C++ Dialect
  4466. Options::.
  4467. '-Wall' turns on the following warning flags:
  4468. -Waddress
  4469. -Warray-bounds=1 (only with -O2)
  4470. -Warray-parameter=2 (C and Objective-C only)
  4471. -Wbool-compare
  4472. -Wbool-operation
  4473. -Wc++11-compat -Wc++14-compat
  4474. -Wcatch-value (C++ and Objective-C++ only)
  4475. -Wchar-subscripts
  4476. -Wcomment
  4477. -Wduplicate-decl-specifier (C and Objective-C only)
  4478. -Wenum-compare (in C/ObjC; this is on by default in C++)
  4479. -Wformat
  4480. -Wformat-overflow
  4481. -Wformat-truncation
  4482. -Wint-in-bool-context
  4483. -Wimplicit (C and Objective-C only)
  4484. -Wimplicit-int (C and Objective-C only)
  4485. -Wimplicit-function-declaration (C and Objective-C only)
  4486. -Winit-self (only for C++)
  4487. -Wlogical-not-parentheses
  4488. -Wmain (only for C/ObjC and unless -ffreestanding)
  4489. -Wmaybe-uninitialized
  4490. -Wmemset-elt-size
  4491. -Wmemset-transposed-args
  4492. -Wmisleading-indentation (only for C/C++)
  4493. -Wmissing-attributes
  4494. -Wmissing-braces (only for C/ObjC)
  4495. -Wmultistatement-macros
  4496. -Wnarrowing (only for C++)
  4497. -Wnonnull
  4498. -Wnonnull-compare
  4499. -Wopenmp-simd
  4500. -Wparentheses
  4501. -Wpessimizing-move (only for C++)
  4502. -Wpointer-sign
  4503. -Wrange-loop-construct (only for C++)
  4504. -Wreorder
  4505. -Wrestrict
  4506. -Wreturn-type
  4507. -Wsequence-point
  4508. -Wsign-compare (only in C++)
  4509. -Wsizeof-array-div
  4510. -Wsizeof-pointer-div
  4511. -Wsizeof-pointer-memaccess
  4512. -Wstrict-aliasing
  4513. -Wstrict-overflow=1
  4514. -Wswitch
  4515. -Wtautological-compare
  4516. -Wtrigraphs
  4517. -Wuninitialized
  4518. -Wunknown-pragmas
  4519. -Wunused-function
  4520. -Wunused-label
  4521. -Wunused-value
  4522. -Wunused-variable
  4523. -Wvla-parameter (C and Objective-C only)
  4524. -Wvolatile-register-var
  4525. -Wzero-length-bounds
  4526. Note that some warning flags are not implied by '-Wall'. Some of
  4527. them warn about constructions that users generally do not consider
  4528. questionable, but which occasionally you might wish to check for;
  4529. others warn about constructions that are necessary or hard to avoid
  4530. in some cases, and there is no simple way to modify the code to
  4531. suppress the warning. Some of them are enabled by '-Wextra' but
  4532. many of them must be enabled individually.
  4533. '-Wextra'
  4534. This enables some extra warning flags that are not enabled by
  4535. '-Wall'. (This option used to be called '-W'. The older name is
  4536. still supported, but the newer name is more descriptive.)
  4537. -Wclobbered
  4538. -Wcast-function-type
  4539. -Wdeprecated-copy (C++ only)
  4540. -Wempty-body
  4541. -Wenum-conversion (C only)
  4542. -Wignored-qualifiers
  4543. -Wimplicit-fallthrough=3
  4544. -Wmissing-field-initializers
  4545. -Wmissing-parameter-type (C only)
  4546. -Wold-style-declaration (C only)
  4547. -Woverride-init
  4548. -Wsign-compare (C only)
  4549. -Wstring-compare
  4550. -Wredundant-move (only for C++)
  4551. -Wtype-limits
  4552. -Wuninitialized
  4553. -Wshift-negative-value (in C++03 and in C99 and newer)
  4554. -Wunused-parameter (only with -Wunused or -Wall)
  4555. -Wunused-but-set-parameter (only with -Wunused or -Wall)
  4556. The option '-Wextra' also prints warning messages for the following
  4557. cases:
  4558. * A pointer is compared against integer zero with '<', '<=',
  4559. '>', or '>='.
  4560. * (C++ only) An enumerator and a non-enumerator both appear in a
  4561. conditional expression.
  4562. * (C++ only) Ambiguous virtual bases.
  4563. * (C++ only) Subscripting an array that has been declared
  4564. 'register'.
  4565. * (C++ only) Taking the address of a variable that has been
  4566. declared 'register'.
  4567. * (C++ only) A base class is not initialized in the copy
  4568. constructor of a derived class.
  4569. '-Wabi (C, Objective-C, C++ and Objective-C++ only)'
  4570. Warn about code affected by ABI changes. This includes code that
  4571. may not be compatible with the vendor-neutral C++ ABI as well as
  4572. the psABI for the particular target.
  4573. Since G++ now defaults to updating the ABI with each major release,
  4574. normally '-Wabi' warns only about C++ ABI compatibility problems if
  4575. there is a check added later in a release series for an ABI issue
  4576. discovered since the initial release. '-Wabi' warns about more
  4577. things if an older ABI version is selected (with
  4578. '-fabi-version=N').
  4579. '-Wabi' can also be used with an explicit version number to warn
  4580. about C++ ABI compatibility with a particular '-fabi-version'
  4581. level, e.g. '-Wabi=2' to warn about changes relative to
  4582. '-fabi-version=2'.
  4583. If an explicit version number is provided and
  4584. '-fabi-compat-version' is not specified, the version number from
  4585. this option is used for compatibility aliases. If no explicit
  4586. version number is provided with this option, but
  4587. '-fabi-compat-version' is specified, that version number is used
  4588. for C++ ABI warnings.
  4589. Although an effort has been made to warn about all such cases,
  4590. there are probably some cases that are not warned about, even
  4591. though G++ is generating incompatible code. There may also be
  4592. cases where warnings are emitted even though the code that is
  4593. generated is compatible.
  4594. You should rewrite your code to avoid these warnings if you are
  4595. concerned about the fact that code generated by G++ may not be
  4596. binary compatible with code generated by other compilers.
  4597. Known incompatibilities in '-fabi-version=2' (which was the default
  4598. from GCC 3.4 to 4.9) include:
  4599. * A template with a non-type template parameter of reference
  4600. type was mangled incorrectly:
  4601. extern int N;
  4602. template <int &> struct S {};
  4603. void n (S<N>) {2}
  4604. This was fixed in '-fabi-version=3'.
  4605. * SIMD vector types declared using '__attribute ((vector_size))'
  4606. were mangled in a non-standard way that does not allow for
  4607. overloading of functions taking vectors of different sizes.
  4608. The mangling was changed in '-fabi-version=4'.
  4609. * '__attribute ((const))' and 'noreturn' were mangled as type
  4610. qualifiers, and 'decltype' of a plain declaration was folded
  4611. away.
  4612. These mangling issues were fixed in '-fabi-version=5'.
  4613. * Scoped enumerators passed as arguments to a variadic function
  4614. are promoted like unscoped enumerators, causing 'va_arg' to
  4615. complain. On most targets this does not actually affect the
  4616. parameter passing ABI, as there is no way to pass an argument
  4617. smaller than 'int'.
  4618. Also, the ABI changed the mangling of template argument packs,
  4619. 'const_cast', 'static_cast', prefix increment/decrement, and a
  4620. class scope function used as a template argument.
  4621. These issues were corrected in '-fabi-version=6'.
  4622. * Lambdas in default argument scope were mangled incorrectly,
  4623. and the ABI changed the mangling of 'nullptr_t'.
  4624. These issues were corrected in '-fabi-version=7'.
  4625. * When mangling a function type with function-cv-qualifiers, the
  4626. un-qualified function type was incorrectly treated as a
  4627. substitution candidate.
  4628. This was fixed in '-fabi-version=8', the default for GCC 5.1.
  4629. * 'decltype(nullptr)' incorrectly had an alignment of 1, leading
  4630. to unaligned accesses. Note that this did not affect the ABI
  4631. of a function with a 'nullptr_t' parameter, as parameters have
  4632. a minimum alignment.
  4633. This was fixed in '-fabi-version=9', the default for GCC 5.2.
  4634. * Target-specific attributes that affect the identity of a type,
  4635. such as ia32 calling conventions on a function type (stdcall,
  4636. regparm, etc.), did not affect the mangled name, leading to
  4637. name collisions when function pointers were used as template
  4638. arguments.
  4639. This was fixed in '-fabi-version=10', the default for GCC 6.1.
  4640. This option also enables warnings about psABI-related changes. The
  4641. known psABI changes at this point include:
  4642. * For SysV/x86-64, unions with 'long double' members are passed
  4643. in memory as specified in psABI. Prior to GCC 4.4, this was
  4644. not the case. For example:
  4645. union U {
  4646. long double ld;
  4647. int i;
  4648. };
  4649. 'union U' is now always passed in memory.
  4650. '-Wchar-subscripts'
  4651. Warn if an array subscript has type 'char'. This is a common cause
  4652. of error, as programmers often forget that this type is signed on
  4653. some machines. This warning is enabled by '-Wall'.
  4654. '-Wno-coverage-mismatch'
  4655. Warn if feedback profiles do not match when using the
  4656. '-fprofile-use' option. If a source file is changed between
  4657. compiling with '-fprofile-generate' and with '-fprofile-use', the
  4658. files with the profile feedback can fail to match the source file
  4659. and GCC cannot use the profile feedback information. By default,
  4660. this warning is enabled and is treated as an error.
  4661. '-Wno-coverage-mismatch' can be used to disable the warning or
  4662. '-Wno-error=coverage-mismatch' can be used to disable the error.
  4663. Disabling the error for this warning can result in poorly optimized
  4664. code and is useful only in the case of very minor changes such as
  4665. bug fixes to an existing code-base. Completely disabling the
  4666. warning is not recommended.
  4667. '-Wno-cpp'
  4668. (C, Objective-C, C++, Objective-C++ and Fortran only) Suppress
  4669. warning messages emitted by '#warning' directives.
  4670. '-Wdouble-promotion (C, C++, Objective-C and Objective-C++ only)'
  4671. Give a warning when a value of type 'float' is implicitly promoted
  4672. to 'double'. CPUs with a 32-bit "single-precision" floating-point
  4673. unit implement 'float' in hardware, but emulate 'double' in
  4674. software. On such a machine, doing computations using 'double'
  4675. values is much more expensive because of the overhead required for
  4676. software emulation.
  4677. It is easy to accidentally do computations with 'double' because
  4678. floating-point literals are implicitly of type 'double'. For
  4679. example, in:
  4680. float area(float radius)
  4681. {
  4682. return 3.14159 * radius * radius;
  4683. }
  4684. the compiler performs the entire computation with 'double' because
  4685. the floating-point literal is a 'double'.
  4686. '-Wduplicate-decl-specifier (C and Objective-C only)'
  4687. Warn if a declaration has duplicate 'const', 'volatile', 'restrict'
  4688. or '_Atomic' specifier. This warning is enabled by '-Wall'.
  4689. '-Wformat'
  4690. '-Wformat=N'
  4691. Check calls to 'printf' and 'scanf', etc., to make sure that the
  4692. arguments supplied have types appropriate to the format string
  4693. specified, and that the conversions specified in the format string
  4694. make sense. This includes standard functions, and others specified
  4695. by format attributes (*note Function Attributes::), in the
  4696. 'printf', 'scanf', 'strftime' and 'strfmon' (an X/Open extension,
  4697. not in the C standard) families (or other target-specific
  4698. families). Which functions are checked without format attributes
  4699. having been specified depends on the standard version selected, and
  4700. such checks of functions without the attribute specified are
  4701. disabled by '-ffreestanding' or '-fno-builtin'.
  4702. The formats are checked against the format features supported by
  4703. GNU libc version 2.2. These include all ISO C90 and C99 features,
  4704. as well as features from the Single Unix Specification and some BSD
  4705. and GNU extensions. Other library implementations may not support
  4706. all these features; GCC does not support warning about features
  4707. that go beyond a particular library's limitations. However, if
  4708. '-Wpedantic' is used with '-Wformat', warnings are given about
  4709. format features not in the selected standard version (but not for
  4710. 'strfmon' formats, since those are not in any version of the C
  4711. standard). *Note Options Controlling C Dialect: C Dialect Options.
  4712. '-Wformat=1'
  4713. '-Wformat'
  4714. Option '-Wformat' is equivalent to '-Wformat=1', and
  4715. '-Wno-format' is equivalent to '-Wformat=0'. Since '-Wformat'
  4716. also checks for null format arguments for several functions,
  4717. '-Wformat' also implies '-Wnonnull'. Some aspects of this
  4718. level of format checking can be disabled by the options:
  4719. '-Wno-format-contains-nul', '-Wno-format-extra-args', and
  4720. '-Wno-format-zero-length'. '-Wformat' is enabled by '-Wall'.
  4721. '-Wformat=2'
  4722. Enable '-Wformat' plus additional format checks. Currently
  4723. equivalent to '-Wformat -Wformat-nonliteral -Wformat-security
  4724. -Wformat-y2k'.
  4725. '-Wno-format-contains-nul'
  4726. If '-Wformat' is specified, do not warn about format strings that
  4727. contain NUL bytes.
  4728. '-Wno-format-extra-args'
  4729. If '-Wformat' is specified, do not warn about excess arguments to a
  4730. 'printf' or 'scanf' format function. The C standard specifies that
  4731. such arguments are ignored.
  4732. Where the unused arguments lie between used arguments that are
  4733. specified with '$' operand number specifications, normally warnings
  4734. are still given, since the implementation could not know what type
  4735. to pass to 'va_arg' to skip the unused arguments. However, in the
  4736. case of 'scanf' formats, this option suppresses the warning if the
  4737. unused arguments are all pointers, since the Single Unix
  4738. Specification says that such unused arguments are allowed.
  4739. '-Wformat-overflow'
  4740. '-Wformat-overflow=LEVEL'
  4741. Warn about calls to formatted input/output functions such as
  4742. 'sprintf' and 'vsprintf' that might overflow the destination
  4743. buffer. When the exact number of bytes written by a format
  4744. directive cannot be determined at compile-time it is estimated
  4745. based on heuristics that depend on the LEVEL argument and on
  4746. optimization. While enabling optimization will in most cases
  4747. improve the accuracy of the warning, it may also result in false
  4748. positives.
  4749. '-Wformat-overflow'
  4750. '-Wformat-overflow=1'
  4751. Level 1 of '-Wformat-overflow' enabled by '-Wformat' employs a
  4752. conservative approach that warns only about calls that most
  4753. likely overflow the buffer. At this level, numeric arguments
  4754. to format directives with unknown values are assumed to have
  4755. the value of one, and strings of unknown length to be empty.
  4756. Numeric arguments that are known to be bounded to a subrange
  4757. of their type, or string arguments whose output is bounded
  4758. either by their directive's precision or by a finite set of
  4759. string literals, are assumed to take on the value within the
  4760. range that results in the most bytes on output. For example,
  4761. the call to 'sprintf' below is diagnosed because even with
  4762. both A and B equal to zero, the terminating NUL character
  4763. (''\0'') appended by the function to the destination buffer
  4764. will be written past its end. Increasing the size of the
  4765. buffer by a single byte is sufficient to avoid the warning,
  4766. though it may not be sufficient to avoid the overflow.
  4767. void f (int a, int b)
  4768. {
  4769. char buf [13];
  4770. sprintf (buf, "a = %i, b = %i\n", a, b);
  4771. }
  4772. '-Wformat-overflow=2'
  4773. Level 2 warns also about calls that might overflow the
  4774. destination buffer given an argument of sufficient length or
  4775. magnitude. At level 2, unknown numeric arguments are assumed
  4776. to have the minimum representable value for signed types with
  4777. a precision greater than 1, and the maximum representable
  4778. value otherwise. Unknown string arguments whose length cannot
  4779. be assumed to be bounded either by the directive's precision,
  4780. or by a finite set of string literals they may evaluate to, or
  4781. the character array they may point to, are assumed to be 1
  4782. character long.
  4783. At level 2, the call in the example above is again diagnosed,
  4784. but this time because with A equal to a 32-bit 'INT_MIN' the
  4785. first '%i' directive will write some of its digits beyond the
  4786. end of the destination buffer. To make the call safe
  4787. regardless of the values of the two variables, the size of the
  4788. destination buffer must be increased to at least 34 bytes.
  4789. GCC includes the minimum size of the buffer in an
  4790. informational note following the warning.
  4791. An alternative to increasing the size of the destination
  4792. buffer is to constrain the range of formatted values. The
  4793. maximum length of string arguments can be bounded by
  4794. specifying the precision in the format directive. When
  4795. numeric arguments of format directives can be assumed to be
  4796. bounded by less than the precision of their type, choosing an
  4797. appropriate length modifier to the format specifier will
  4798. reduce the required buffer size. For example, if A and B in
  4799. the example above can be assumed to be within the precision of
  4800. the 'short int' type then using either the '%hi' format
  4801. directive or casting the argument to 'short' reduces the
  4802. maximum required size of the buffer to 24 bytes.
  4803. void f (int a, int b)
  4804. {
  4805. char buf [23];
  4806. sprintf (buf, "a = %hi, b = %i\n", a, (short)b);
  4807. }
  4808. '-Wno-format-zero-length'
  4809. If '-Wformat' is specified, do not warn about zero-length formats.
  4810. The C standard specifies that zero-length formats are allowed.
  4811. '-Wformat-nonliteral'
  4812. If '-Wformat' is specified, also warn if the format string is not a
  4813. string literal and so cannot be checked, unless the format function
  4814. takes its format arguments as a 'va_list'.
  4815. '-Wformat-security'
  4816. If '-Wformat' is specified, also warn about uses of format
  4817. functions that represent possible security problems. At present,
  4818. this warns about calls to 'printf' and 'scanf' functions where the
  4819. format string is not a string literal and there are no format
  4820. arguments, as in 'printf (foo);'. This may be a security hole if
  4821. the format string came from untrusted input and contains '%n'.
  4822. (This is currently a subset of what '-Wformat-nonliteral' warns
  4823. about, but in future warnings may be added to '-Wformat-security'
  4824. that are not included in '-Wformat-nonliteral'.)
  4825. '-Wformat-signedness'
  4826. If '-Wformat' is specified, also warn if the format string requires
  4827. an unsigned argument and the argument is signed and vice versa.
  4828. '-Wformat-truncation'
  4829. '-Wformat-truncation=LEVEL'
  4830. Warn about calls to formatted input/output functions such as
  4831. 'snprintf' and 'vsnprintf' that might result in output truncation.
  4832. When the exact number of bytes written by a format directive cannot
  4833. be determined at compile-time it is estimated based on heuristics
  4834. that depend on the LEVEL argument and on optimization. While
  4835. enabling optimization will in most cases improve the accuracy of
  4836. the warning, it may also result in false positives. Except as
  4837. noted otherwise, the option uses the same logic
  4838. '-Wformat-overflow'.
  4839. '-Wformat-truncation'
  4840. '-Wformat-truncation=1'
  4841. Level 1 of '-Wformat-truncation' enabled by '-Wformat' employs
  4842. a conservative approach that warns only about calls to bounded
  4843. functions whose return value is unused and that will most
  4844. likely result in output truncation.
  4845. '-Wformat-truncation=2'
  4846. Level 2 warns also about calls to bounded functions whose
  4847. return value is used and that might result in truncation given
  4848. an argument of sufficient length or magnitude.
  4849. '-Wformat-y2k'
  4850. If '-Wformat' is specified, also warn about 'strftime' formats that
  4851. may yield only a two-digit year.
  4852. '-Wnonnull'
  4853. Warn about passing a null pointer for arguments marked as requiring
  4854. a non-null value by the 'nonnull' function attribute.
  4855. '-Wnonnull' is included in '-Wall' and '-Wformat'. It can be
  4856. disabled with the '-Wno-nonnull' option.
  4857. '-Wnonnull-compare'
  4858. Warn when comparing an argument marked with the 'nonnull' function
  4859. attribute against null inside the function.
  4860. '-Wnonnull-compare' is included in '-Wall'. It can be disabled
  4861. with the '-Wno-nonnull-compare' option.
  4862. '-Wnull-dereference'
  4863. Warn if the compiler detects paths that trigger erroneous or
  4864. undefined behavior due to dereferencing a null pointer. This
  4865. option is only active when '-fdelete-null-pointer-checks' is
  4866. active, which is enabled by optimizations in most targets. The
  4867. precision of the warnings depends on the optimization options used.
  4868. '-Winit-self (C, C++, Objective-C and Objective-C++ only)'
  4869. Warn about uninitialized variables that are initialized with
  4870. themselves. Note this option can only be used with the
  4871. '-Wuninitialized' option.
  4872. For example, GCC warns about 'i' being uninitialized in the
  4873. following snippet only when '-Winit-self' has been specified:
  4874. int f()
  4875. {
  4876. int i = i;
  4877. return i;
  4878. }
  4879. This warning is enabled by '-Wall' in C++.
  4880. '-Wno-implicit-int (C and Objective-C only)'
  4881. This option controls warnings when a declaration does not specify a
  4882. type. This warning is enabled by default in C99 and later dialects
  4883. of C, and also by '-Wall'.
  4884. '-Wno-implicit-function-declaration (C and Objective-C only)'
  4885. This option controls warnings when a function is used before being
  4886. declared. This warning is enabled by default in C99 and later
  4887. dialects of C, and also by '-Wall'. The warning is made into an
  4888. error by '-pedantic-errors'.
  4889. '-Wimplicit (C and Objective-C only)'
  4890. Same as '-Wimplicit-int' and '-Wimplicit-function-declaration'.
  4891. This warning is enabled by '-Wall'.
  4892. '-Wimplicit-fallthrough'
  4893. '-Wimplicit-fallthrough' is the same as '-Wimplicit-fallthrough=3'
  4894. and '-Wno-implicit-fallthrough' is the same as
  4895. '-Wimplicit-fallthrough=0'.
  4896. '-Wimplicit-fallthrough=N'
  4897. Warn when a switch case falls through. For example:
  4898. switch (cond)
  4899. {
  4900. case 1:
  4901. a = 1;
  4902. break;
  4903. case 2:
  4904. a = 2;
  4905. case 3:
  4906. a = 3;
  4907. break;
  4908. }
  4909. This warning does not warn when the last statement of a case cannot
  4910. fall through, e.g. when there is a return statement or a call to
  4911. function declared with the noreturn attribute.
  4912. '-Wimplicit-fallthrough=' also takes into account control flow
  4913. statements, such as ifs, and only warns when appropriate. E.g.
  4914. switch (cond)
  4915. {
  4916. case 1:
  4917. if (i > 3) {
  4918. bar (5);
  4919. break;
  4920. } else if (i < 1) {
  4921. bar (0);
  4922. } else
  4923. return;
  4924. default:
  4925. ...
  4926. }
  4927. Since there are occasions where a switch case fall through is
  4928. desirable, GCC provides an attribute, '__attribute__
  4929. ((fallthrough))', that is to be used along with a null statement to
  4930. suppress this warning that would normally occur:
  4931. switch (cond)
  4932. {
  4933. case 1:
  4934. bar (0);
  4935. __attribute__ ((fallthrough));
  4936. default:
  4937. ...
  4938. }
  4939. C++17 provides a standard way to suppress the
  4940. '-Wimplicit-fallthrough' warning using '[[fallthrough]];' instead
  4941. of the GNU attribute. In C++11 or C++14 users can use
  4942. '[[gnu::fallthrough]];', which is a GNU extension. Instead of
  4943. these attributes, it is also possible to add a fallthrough comment
  4944. to silence the warning. The whole body of the C or C++ style
  4945. comment should match the given regular expressions listed below.
  4946. The option argument N specifies what kind of comments are accepted:
  4947. * '-Wimplicit-fallthrough=0' disables the warning altogether.
  4948. * '-Wimplicit-fallthrough=1' matches '.*' regular expression,
  4949. any comment is used as fallthrough comment.
  4950. * '-Wimplicit-fallthrough=2' case insensitively matches
  4951. '.*falls?[ \t-]*thr(ough|u).*' regular expression.
  4952. * '-Wimplicit-fallthrough=3' case sensitively matches one of the
  4953. following regular expressions:
  4954. * '-fallthrough'
  4955. * '@fallthrough@'
  4956. * 'lint -fallthrough[ \t]*'
  4957. * '[ \t.!]*(ELSE,? |INTENTIONAL(LY)? )?
  4958. FALL(S | |-)?THR(OUGH|U)[ \t.!]*(-[^\n\r]*)?'
  4959. * '[ \t.!]*(Else,? |Intentional(ly)? )?
  4960. Fall((s | |-)[Tt]|t)hr(ough|u)[ \t.!]*(-[^\n\r]*)?'
  4961. * '[ \t.!]*([Ee]lse,? |[Ii]ntentional(ly)? )?
  4962. fall(s | |-)?thr(ough|u)[ \t.!]*(-[^\n\r]*)?'
  4963. * '-Wimplicit-fallthrough=4' case sensitively matches one of the
  4964. following regular expressions:
  4965. * '-fallthrough'
  4966. * '@fallthrough@'
  4967. * 'lint -fallthrough[ \t]*'
  4968. * '[ \t]*FALLTHR(OUGH|U)[ \t]*'
  4969. * '-Wimplicit-fallthrough=5' doesn't recognize any comments as
  4970. fallthrough comments, only attributes disable the warning.
  4971. The comment needs to be followed after optional whitespace and
  4972. other comments by 'case' or 'default' keywords or by a user label
  4973. that precedes some 'case' or 'default' label.
  4974. switch (cond)
  4975. {
  4976. case 1:
  4977. bar (0);
  4978. /* FALLTHRU */
  4979. default:
  4980. ...
  4981. }
  4982. The '-Wimplicit-fallthrough=3' warning is enabled by '-Wextra'.
  4983. '-Wno-if-not-aligned (C, C++, Objective-C and Objective-C++ only)'
  4984. Control if warnings triggered by the 'warn_if_not_aligned'
  4985. attribute should be issued. These warnings are enabled by default.
  4986. '-Wignored-qualifiers (C and C++ only)'
  4987. Warn if the return type of a function has a type qualifier such as
  4988. 'const'. For ISO C such a type qualifier has no effect, since the
  4989. value returned by a function is not an lvalue. For C++, the
  4990. warning is only emitted for scalar types or 'void'. ISO C
  4991. prohibits qualified 'void' return types on function definitions, so
  4992. such return types always receive a warning even without this
  4993. option.
  4994. This warning is also enabled by '-Wextra'.
  4995. '-Wno-ignored-attributes (C and C++ only)'
  4996. This option controls warnings when an attribute is ignored. This
  4997. is different from the '-Wattributes' option in that it warns
  4998. whenever the compiler decides to drop an attribute, not that the
  4999. attribute is either unknown, used in a wrong place, etc. This
  5000. warning is enabled by default.
  5001. '-Wmain'
  5002. Warn if the type of 'main' is suspicious. 'main' should be a
  5003. function with external linkage, returning int, taking either zero
  5004. arguments, two, or three arguments of appropriate types. This
  5005. warning is enabled by default in C++ and is enabled by either
  5006. '-Wall' or '-Wpedantic'.
  5007. '-Wmisleading-indentation (C and C++ only)'
  5008. Warn when the indentation of the code does not reflect the block
  5009. structure. Specifically, a warning is issued for 'if', 'else',
  5010. 'while', and 'for' clauses with a guarded statement that does not
  5011. use braces, followed by an unguarded statement with the same
  5012. indentation.
  5013. In the following example, the call to "bar" is misleadingly
  5014. indented as if it were guarded by the "if" conditional.
  5015. if (some_condition ())
  5016. foo ();
  5017. bar (); /* Gotcha: this is not guarded by the "if". */
  5018. In the case of mixed tabs and spaces, the warning uses the
  5019. '-ftabstop=' option to determine if the statements line up
  5020. (defaulting to 8).
  5021. The warning is not issued for code involving multiline preprocessor
  5022. logic such as the following example.
  5023. if (flagA)
  5024. foo (0);
  5025. #if SOME_CONDITION_THAT_DOES_NOT_HOLD
  5026. if (flagB)
  5027. #endif
  5028. foo (1);
  5029. The warning is not issued after a '#line' directive, since this
  5030. typically indicates autogenerated code, and no assumptions can be
  5031. made about the layout of the file that the directive references.
  5032. This warning is enabled by '-Wall' in C and C++.
  5033. '-Wmissing-attributes'
  5034. Warn when a declaration of a function is missing one or more
  5035. attributes that a related function is declared with and whose
  5036. absence may adversely affect the correctness or efficiency of
  5037. generated code. For example, the warning is issued for
  5038. declarations of aliases that use attributes to specify less
  5039. restrictive requirements than those of their targets. This
  5040. typically represents a potential optimization opportunity. By
  5041. contrast, the '-Wattribute-alias=2' option controls warnings issued
  5042. when the alias is more restrictive than the target, which could
  5043. lead to incorrect code generation. Attributes considered include
  5044. 'alloc_align', 'alloc_size', 'cold', 'const', 'hot', 'leaf',
  5045. 'malloc', 'nonnull', 'noreturn', 'nothrow', 'pure',
  5046. 'returns_nonnull', and 'returns_twice'.
  5047. In C++, the warning is issued when an explicit specialization of a
  5048. primary template declared with attribute 'alloc_align',
  5049. 'alloc_size', 'assume_aligned', 'format', 'format_arg', 'malloc',
  5050. or 'nonnull' is declared without it. Attributes 'deprecated',
  5051. 'error', and 'warning' suppress the warning. (*note Function
  5052. Attributes::).
  5053. You can use the 'copy' attribute to apply the same set of
  5054. attributes to a declaration as that on another declaration without
  5055. explicitly enumerating the attributes. This attribute can be
  5056. applied to declarations of functions (*note Common Function
  5057. Attributes::), variables (*note Common Variable Attributes::), or
  5058. types (*note Common Type Attributes::).
  5059. '-Wmissing-attributes' is enabled by '-Wall'.
  5060. For example, since the declaration of the primary function template
  5061. below makes use of both attribute 'malloc' and 'alloc_size' the
  5062. declaration of the explicit specialization of the template is
  5063. diagnosed because it is missing one of the attributes.
  5064. template <class T>
  5065. T* __attribute__ ((malloc, alloc_size (1)))
  5066. allocate (size_t);
  5067. template <>
  5068. void* __attribute__ ((malloc)) // missing alloc_size
  5069. allocate<void> (size_t);
  5070. '-Wmissing-braces'
  5071. Warn if an aggregate or union initializer is not fully bracketed.
  5072. In the following example, the initializer for 'a' is not fully
  5073. bracketed, but that for 'b' is fully bracketed.
  5074. int a[2][2] = { 0, 1, 2, 3 };
  5075. int b[2][2] = { { 0, 1 }, { 2, 3 } };
  5076. This warning is enabled by '-Wall'.
  5077. '-Wmissing-include-dirs (C, C++, Objective-C and Objective-C++ only)'
  5078. Warn if a user-supplied include directory does not exist.
  5079. '-Wno-missing-profile'
  5080. This option controls warnings if feedback profiles are missing when
  5081. using the '-fprofile-use' option. This option diagnoses those
  5082. cases where a new function or a new file is added between compiling
  5083. with '-fprofile-generate' and with '-fprofile-use', without
  5084. regenerating the profiles. In these cases, the profile feedback
  5085. data files do not contain any profile feedback information for the
  5086. newly added function or file respectively. Also, in the case when
  5087. profile count data (.gcda) files are removed, GCC cannot use any
  5088. profile feedback information. In all these cases, warnings are
  5089. issued to inform you that a profile generation step is due.
  5090. Ignoring the warning can result in poorly optimized code.
  5091. '-Wno-missing-profile' can be used to disable the warning, but this
  5092. is not recommended and should be done only when non-existent
  5093. profile data is justified.
  5094. '-Wno-mismatched-dealloc'
  5095. Warn for calls to deallocation functions with pointer arguments
  5096. returned from from allocations functions for which the former isn't
  5097. a suitable deallocator. A pair of functions can be associated as
  5098. matching allocators and deallocators by use of attribute 'malloc'.
  5099. Unless disabled by the '-fno-builtin' option the standard functions
  5100. 'calloc', 'malloc', 'realloc', and 'free', as well as the
  5101. corresponding forms of C++ 'operator new' and 'operator delete' are
  5102. implicitly associated as matching allocators and deallocators. In
  5103. the following example 'mydealloc' is the deallocator for pointers
  5104. returned from 'myalloc'.
  5105. void mydealloc (void*);
  5106. __attribute__ ((malloc (mydealloc, 1))) void*
  5107. myalloc (size_t);
  5108. void f (void)
  5109. {
  5110. void *p = myalloc (32);
  5111. // ...use p...
  5112. free (p); // warning: not a matching deallocator for myalloc
  5113. mydealloc (p); // ok
  5114. }
  5115. In C++, the related option '-Wmismatched-new-delete' diagnoses
  5116. mismatches involving either 'operator new' or 'operator delete'.
  5117. Option '-Wmismatched-dealloc' is enabled by default.
  5118. '-Wmultistatement-macros'
  5119. Warn about unsafe multiple statement macros that appear to be
  5120. guarded by a clause such as 'if', 'else', 'for', 'switch', or
  5121. 'while', in which only the first statement is actually guarded
  5122. after the macro is expanded.
  5123. For example:
  5124. #define DOIT x++; y++
  5125. if (c)
  5126. DOIT;
  5127. will increment 'y' unconditionally, not just when 'c' holds. The
  5128. can usually be fixed by wrapping the macro in a do-while loop:
  5129. #define DOIT do { x++; y++; } while (0)
  5130. if (c)
  5131. DOIT;
  5132. This warning is enabled by '-Wall' in C and C++.
  5133. '-Wparentheses'
  5134. Warn if parentheses are omitted in certain contexts, such as when
  5135. there is an assignment in a context where a truth value is
  5136. expected, or when operators are nested whose precedence people
  5137. often get confused about.
  5138. Also warn if a comparison like 'x<=y<=z' appears; this is
  5139. equivalent to '(x<=y ? 1 : 0) <= z', which is a different
  5140. interpretation from that of ordinary mathematical notation.
  5141. Also warn for dangerous uses of the GNU extension to '?:' with
  5142. omitted middle operand. When the condition in the '?': operator is
  5143. a boolean expression, the omitted value is always 1. Often
  5144. programmers expect it to be a value computed inside the conditional
  5145. expression instead.
  5146. For C++ this also warns for some cases of unnecessary parentheses
  5147. in declarations, which can indicate an attempt at a function call
  5148. instead of a declaration:
  5149. {
  5150. // Declares a local variable called mymutex.
  5151. std::unique_lock<std::mutex> (mymutex);
  5152. // User meant std::unique_lock<std::mutex> lock (mymutex);
  5153. }
  5154. This warning is enabled by '-Wall'.
  5155. '-Wsequence-point'
  5156. Warn about code that may have undefined semantics because of
  5157. violations of sequence point rules in the C and C++ standards.
  5158. The C and C++ standards define the order in which expressions in a
  5159. C/C++ program are evaluated in terms of "sequence points", which
  5160. represent a partial ordering between the execution of parts of the
  5161. program: those executed before the sequence point, and those
  5162. executed after it. These occur after the evaluation of a full
  5163. expression (one which is not part of a larger expression), after
  5164. the evaluation of the first operand of a '&&', '||', '? :' or ','
  5165. (comma) operator, before a function is called (but after the
  5166. evaluation of its arguments and the expression denoting the called
  5167. function), and in certain other places. Other than as expressed by
  5168. the sequence point rules, the order of evaluation of subexpressions
  5169. of an expression is not specified. All these rules describe only a
  5170. partial order rather than a total order, since, for example, if two
  5171. functions are called within one expression with no sequence point
  5172. between them, the order in which the functions are called is not
  5173. specified. However, the standards committee have ruled that
  5174. function calls do not overlap.
  5175. It is not specified when between sequence points modifications to
  5176. the values of objects take effect. Programs whose behavior depends
  5177. on this have undefined behavior; the C and C++ standards specify
  5178. that "Between the previous and next sequence point an object shall
  5179. have its stored value modified at most once by the evaluation of an
  5180. expression. Furthermore, the prior value shall be read only to
  5181. determine the value to be stored.". If a program breaks these
  5182. rules, the results on any particular implementation are entirely
  5183. unpredictable.
  5184. Examples of code with undefined behavior are 'a = a++;', 'a[n] =
  5185. b[n++]' and 'a[i++] = i;'. Some more complicated cases are not
  5186. diagnosed by this option, and it may give an occasional false
  5187. positive result, but in general it has been found fairly effective
  5188. at detecting this sort of problem in programs.
  5189. The C++17 standard will define the order of evaluation of operands
  5190. in more cases: in particular it requires that the right-hand side
  5191. of an assignment be evaluated before the left-hand side, so the
  5192. above examples are no longer undefined. But this option will still
  5193. warn about them, to help people avoid writing code that is
  5194. undefined in C and earlier revisions of C++.
  5195. The standard is worded confusingly, therefore there is some debate
  5196. over the precise meaning of the sequence point rules in subtle
  5197. cases. Links to discussions of the problem, including proposed
  5198. formal definitions, may be found on the GCC readings page, at
  5199. <http://gcc.gnu.org/readings.html>.
  5200. This warning is enabled by '-Wall' for C and C++.
  5201. '-Wno-return-local-addr'
  5202. Do not warn about returning a pointer (or in C++, a reference) to a
  5203. variable that goes out of scope after the function returns.
  5204. '-Wreturn-type'
  5205. Warn whenever a function is defined with a return type that
  5206. defaults to 'int'. Also warn about any 'return' statement with no
  5207. return value in a function whose return type is not 'void' (falling
  5208. off the end of the function body is considered returning without a
  5209. value).
  5210. For C only, warn about a 'return' statement with an expression in a
  5211. function whose return type is 'void', unless the expression type is
  5212. also 'void'. As a GNU extension, the latter case is accepted
  5213. without a warning unless '-Wpedantic' is used. Attempting to use
  5214. the return value of a non-'void' function other than 'main' that
  5215. flows off the end by reaching the closing curly brace that
  5216. terminates the function is undefined.
  5217. Unlike in C, in C++, flowing off the end of a non-'void' function
  5218. other than 'main' results in undefined behavior even when the value
  5219. of the function is not used.
  5220. This warning is enabled by default in C++ and by '-Wall' otherwise.
  5221. '-Wno-shift-count-negative'
  5222. Controls warnings if a shift count is negative. This warning is
  5223. enabled by default.
  5224. '-Wno-shift-count-overflow'
  5225. Controls warnings if a shift count is greater than or equal to the
  5226. bit width of the type. This warning is enabled by default.
  5227. '-Wshift-negative-value'
  5228. Warn if left shifting a negative value. This warning is enabled by
  5229. '-Wextra' in C99 and C++11 modes (and newer).
  5230. '-Wno-shift-overflow'
  5231. '-Wshift-overflow=N'
  5232. These options control warnings about left shift overflows.
  5233. '-Wshift-overflow=1'
  5234. This is the warning level of '-Wshift-overflow' and is enabled
  5235. by default in C99 and C++11 modes (and newer). This warning
  5236. level does not warn about left-shifting 1 into the sign bit.
  5237. (However, in C, such an overflow is still rejected in contexts
  5238. where an integer constant expression is required.) No warning
  5239. is emitted in C++20 mode (and newer), as signed left shifts
  5240. always wrap.
  5241. '-Wshift-overflow=2'
  5242. This warning level also warns about left-shifting 1 into the
  5243. sign bit, unless C++14 mode (or newer) is active.
  5244. '-Wswitch'
  5245. Warn whenever a 'switch' statement has an index of enumerated type
  5246. and lacks a 'case' for one or more of the named codes of that
  5247. enumeration. (The presence of a 'default' label prevents this
  5248. warning.) 'case' labels outside the enumeration range also provoke
  5249. warnings when this option is used (even if there is a 'default'
  5250. label). This warning is enabled by '-Wall'.
  5251. '-Wswitch-default'
  5252. Warn whenever a 'switch' statement does not have a 'default' case.
  5253. '-Wswitch-enum'
  5254. Warn whenever a 'switch' statement has an index of enumerated type
  5255. and lacks a 'case' for one or more of the named codes of that
  5256. enumeration. 'case' labels outside the enumeration range also
  5257. provoke warnings when this option is used. The only difference
  5258. between '-Wswitch' and this option is that this option gives a
  5259. warning about an omitted enumeration code even if there is a
  5260. 'default' label.
  5261. '-Wno-switch-bool'
  5262. Do not warn when a 'switch' statement has an index of boolean type
  5263. and the case values are outside the range of a boolean type. It is
  5264. possible to suppress this warning by casting the controlling
  5265. expression to a type other than 'bool'. For example:
  5266. switch ((int) (a == 4))
  5267. {
  5268. ...
  5269. }
  5270. This warning is enabled by default for C and C++ programs.
  5271. '-Wno-switch-outside-range'
  5272. This option controls warnings when a 'switch' case has a value that
  5273. is outside of its respective type range. This warning is enabled
  5274. by default for C and C++ programs.
  5275. '-Wno-switch-unreachable'
  5276. Do not warn when a 'switch' statement contains statements between
  5277. the controlling expression and the first case label, which will
  5278. never be executed. For example:
  5279. switch (cond)
  5280. {
  5281. i = 15;
  5282. ...
  5283. case 5:
  5284. ...
  5285. }
  5286. '-Wswitch-unreachable' does not warn if the statement between the
  5287. controlling expression and the first case label is just a
  5288. declaration:
  5289. switch (cond)
  5290. {
  5291. int i;
  5292. ...
  5293. case 5:
  5294. i = 5;
  5295. ...
  5296. }
  5297. This warning is enabled by default for C and C++ programs.
  5298. '-Wsync-nand (C and C++ only)'
  5299. Warn when '__sync_fetch_and_nand' and '__sync_nand_and_fetch'
  5300. built-in functions are used. These functions changed semantics in
  5301. GCC 4.4.
  5302. '-Wunused-but-set-parameter'
  5303. Warn whenever a function parameter is assigned to, but otherwise
  5304. unused (aside from its declaration).
  5305. To suppress this warning use the 'unused' attribute (*note Variable
  5306. Attributes::).
  5307. This warning is also enabled by '-Wunused' together with '-Wextra'.
  5308. '-Wunused-but-set-variable'
  5309. Warn whenever a local variable is assigned to, but otherwise unused
  5310. (aside from its declaration). This warning is enabled by '-Wall'.
  5311. To suppress this warning use the 'unused' attribute (*note Variable
  5312. Attributes::).
  5313. This warning is also enabled by '-Wunused', which is enabled by
  5314. '-Wall'.
  5315. '-Wunused-function'
  5316. Warn whenever a static function is declared but not defined or a
  5317. non-inline static function is unused. This warning is enabled by
  5318. '-Wall'.
  5319. '-Wunused-label'
  5320. Warn whenever a label is declared but not used. This warning is
  5321. enabled by '-Wall'.
  5322. To suppress this warning use the 'unused' attribute (*note Variable
  5323. Attributes::).
  5324. '-Wunused-local-typedefs (C, Objective-C, C++ and Objective-C++ only)'
  5325. Warn when a typedef locally defined in a function is not used.
  5326. This warning is enabled by '-Wall'.
  5327. '-Wunused-parameter'
  5328. Warn whenever a function parameter is unused aside from its
  5329. declaration.
  5330. To suppress this warning use the 'unused' attribute (*note Variable
  5331. Attributes::).
  5332. '-Wno-unused-result'
  5333. Do not warn if a caller of a function marked with attribute
  5334. 'warn_unused_result' (*note Function Attributes::) does not use its
  5335. return value. The default is '-Wunused-result'.
  5336. '-Wunused-variable'
  5337. Warn whenever a local or static variable is unused aside from its
  5338. declaration. This option implies '-Wunused-const-variable=1' for
  5339. C, but not for C++. This warning is enabled by '-Wall'.
  5340. To suppress this warning use the 'unused' attribute (*note Variable
  5341. Attributes::).
  5342. '-Wunused-const-variable'
  5343. '-Wunused-const-variable=N'
  5344. Warn whenever a constant static variable is unused aside from its
  5345. declaration. '-Wunused-const-variable=1' is enabled by
  5346. '-Wunused-variable' for C, but not for C++. In C this declares
  5347. variable storage, but in C++ this is not an error since const
  5348. variables take the place of '#define's.
  5349. To suppress this warning use the 'unused' attribute (*note Variable
  5350. Attributes::).
  5351. '-Wunused-const-variable=1'
  5352. This is the warning level that is enabled by
  5353. '-Wunused-variable' for C. It warns only about unused static
  5354. const variables defined in the main compilation unit, but not
  5355. about static const variables declared in any header included.
  5356. '-Wunused-const-variable=2'
  5357. This warning level also warns for unused constant static
  5358. variables in headers (excluding system headers). This is the
  5359. warning level of '-Wunused-const-variable' and must be
  5360. explicitly requested since in C++ this isn't an error and in C
  5361. it might be harder to clean up all headers included.
  5362. '-Wunused-value'
  5363. Warn whenever a statement computes a result that is explicitly not
  5364. used. To suppress this warning cast the unused expression to
  5365. 'void'. This includes an expression-statement or the left-hand
  5366. side of a comma expression that contains no side effects. For
  5367. example, an expression such as 'x[i,j]' causes a warning, while
  5368. 'x[(void)i,j]' does not.
  5369. This warning is enabled by '-Wall'.
  5370. '-Wunused'
  5371. All the above '-Wunused' options combined.
  5372. In order to get a warning about an unused function parameter, you
  5373. must either specify '-Wextra -Wunused' (note that '-Wall' implies
  5374. '-Wunused'), or separately specify '-Wunused-parameter'.
  5375. '-Wuninitialized'
  5376. Warn if an object with automatic or allocated storage duration is
  5377. used without having been initialized. In C++, also warn if a
  5378. non-static reference or non-static 'const' member appears in a
  5379. class without constructors.
  5380. In addition, passing a pointer (or in C++, a reference) to an
  5381. uninitialized object to a 'const'-qualified argument of a built-in
  5382. function known to read the object is also diagnosed by this
  5383. warning. ('-Wmaybe-uninitialized' is issued for ordinary
  5384. functions.)
  5385. If you want to warn about code that uses the uninitialized value of
  5386. the variable in its own initializer, use the '-Winit-self' option.
  5387. These warnings occur for individual uninitialized elements of
  5388. structure, union or array variables as well as for variables that
  5389. are uninitialized as a whole. They do not occur for variables or
  5390. elements declared 'volatile'. Because these warnings depend on
  5391. optimization, the exact variables or elements for which there are
  5392. warnings depend on the precise optimization options and version of
  5393. GCC used.
  5394. Note that there may be no warning about a variable that is used
  5395. only to compute a value that itself is never used, because such
  5396. computations may be deleted by data flow analysis before the
  5397. warnings are printed.
  5398. '-Wno-invalid-memory-model'
  5399. This option controls warnings for invocations of *note __atomic
  5400. Builtins::, *note __sync Builtins::, and the C11 atomic generic
  5401. functions with a memory consistency argument that is either invalid
  5402. for the operation or outside the range of values of the
  5403. 'memory_order' enumeration. For example, since the
  5404. '__atomic_store' and '__atomic_store_n' built-ins are only defined
  5405. for the relaxed, release, and sequentially consistent memory orders
  5406. the following code is diagnosed:
  5407. void store (int *i)
  5408. {
  5409. __atomic_store_n (i, 0, memory_order_consume);
  5410. }
  5411. '-Winvalid-memory-model' is enabled by default.
  5412. '-Wmaybe-uninitialized'
  5413. For an object with automatic or allocated storage duration, if
  5414. there exists a path from the function entry to a use of the object
  5415. that is initialized, but there exist some other paths for which the
  5416. object is not initialized, the compiler emits a warning if it
  5417. cannot prove the uninitialized paths are not executed at run time.
  5418. In addition, passing a pointer (or in C++, a reference) to an
  5419. uninitialized object to a 'const'-qualified function argument is
  5420. also diagnosed by this warning. ('-Wuninitialized' is issued for
  5421. built-in functions known to read the object.) Annotating the
  5422. function with attribute 'access (none)' indicates that the argument
  5423. isn't used to access the object and avoids the warning (*note
  5424. Common Function Attributes::).
  5425. These warnings are only possible in optimizing compilation, because
  5426. otherwise GCC does not keep track of the state of variables.
  5427. These warnings are made optional because GCC may not be able to
  5428. determine when the code is correct in spite of appearing to have an
  5429. error. Here is one example of how this can happen:
  5430. {
  5431. int x;
  5432. switch (y)
  5433. {
  5434. case 1: x = 1;
  5435. break;
  5436. case 2: x = 4;
  5437. break;
  5438. case 3: x = 5;
  5439. }
  5440. foo (x);
  5441. }
  5442. If the value of 'y' is always 1, 2 or 3, then 'x' is always
  5443. initialized, but GCC doesn't know this. To suppress the warning,
  5444. you need to provide a default case with assert(0) or similar code.
  5445. This option also warns when a non-volatile automatic variable might
  5446. be changed by a call to 'longjmp'. The compiler sees only the
  5447. calls to 'setjmp'. It cannot know where 'longjmp' will be called;
  5448. in fact, a signal handler could call it at any point in the code.
  5449. As a result, you may get a warning even when there is in fact no
  5450. problem because 'longjmp' cannot in fact be called at the place
  5451. that would cause a problem.
  5452. Some spurious warnings can be avoided if you declare all the
  5453. functions you use that never return as 'noreturn'. *Note Function
  5454. Attributes::.
  5455. This warning is enabled by '-Wall' or '-Wextra'.
  5456. '-Wunknown-pragmas'
  5457. Warn when a '#pragma' directive is encountered that is not
  5458. understood by GCC. If this command-line option is used, warnings
  5459. are even issued for unknown pragmas in system header files. This
  5460. is not the case if the warnings are only enabled by the '-Wall'
  5461. command-line option.
  5462. '-Wno-pragmas'
  5463. Do not warn about misuses of pragmas, such as incorrect parameters,
  5464. invalid syntax, or conflicts between pragmas. See also
  5465. '-Wunknown-pragmas'.
  5466. '-Wno-prio-ctor-dtor'
  5467. Do not warn if a priority from 0 to 100 is used for constructor or
  5468. destructor. The use of constructor and destructor attributes allow
  5469. you to assign a priority to the constructor/destructor to control
  5470. its order of execution before 'main' is called or after it returns.
  5471. The priority values must be greater than 100 as the compiler
  5472. reserves priority values between 0-100 for the implementation.
  5473. '-Wstrict-aliasing'
  5474. This option is only active when '-fstrict-aliasing' is active. It
  5475. warns about code that might break the strict aliasing rules that
  5476. the compiler is using for optimization. The warning does not catch
  5477. all cases, but does attempt to catch the more common pitfalls. It
  5478. is included in '-Wall'. It is equivalent to '-Wstrict-aliasing=3'
  5479. '-Wstrict-aliasing=n'
  5480. This option is only active when '-fstrict-aliasing' is active. It
  5481. warns about code that might break the strict aliasing rules that
  5482. the compiler is using for optimization. Higher levels correspond
  5483. to higher accuracy (fewer false positives). Higher levels also
  5484. correspond to more effort, similar to the way '-O' works.
  5485. '-Wstrict-aliasing' is equivalent to '-Wstrict-aliasing=3'.
  5486. Level 1: Most aggressive, quick, least accurate. Possibly useful
  5487. when higher levels do not warn but '-fstrict-aliasing' still breaks
  5488. the code, as it has very few false negatives. However, it has many
  5489. false positives. Warns for all pointer conversions between
  5490. possibly incompatible types, even if never dereferenced. Runs in
  5491. the front end only.
  5492. Level 2: Aggressive, quick, not too precise. May still have many
  5493. false positives (not as many as level 1 though), and few false
  5494. negatives (but possibly more than level 1). Unlike level 1, it
  5495. only warns when an address is taken. Warns about incomplete types.
  5496. Runs in the front end only.
  5497. Level 3 (default for '-Wstrict-aliasing'): Should have very few
  5498. false positives and few false negatives. Slightly slower than
  5499. levels 1 or 2 when optimization is enabled. Takes care of the
  5500. common pun+dereference pattern in the front end:
  5501. '*(int*)&some_float'. If optimization is enabled, it also runs in
  5502. the back end, where it deals with multiple statement cases using
  5503. flow-sensitive points-to information. Only warns when the
  5504. converted pointer is dereferenced. Does not warn about incomplete
  5505. types.
  5506. '-Wstrict-overflow'
  5507. '-Wstrict-overflow=N'
  5508. This option is only active when signed overflow is undefined. It
  5509. warns about cases where the compiler optimizes based on the
  5510. assumption that signed overflow does not occur. Note that it does
  5511. not warn about all cases where the code might overflow: it only
  5512. warns about cases where the compiler implements some optimization.
  5513. Thus this warning depends on the optimization level.
  5514. An optimization that assumes that signed overflow does not occur is
  5515. perfectly safe if the values of the variables involved are such
  5516. that overflow never does, in fact, occur. Therefore this warning
  5517. can easily give a false positive: a warning about code that is not
  5518. actually a problem. To help focus on important issues, several
  5519. warning levels are defined. No warnings are issued for the use of
  5520. undefined signed overflow when estimating how many iterations a
  5521. loop requires, in particular when determining whether a loop will
  5522. be executed at all.
  5523. '-Wstrict-overflow=1'
  5524. Warn about cases that are both questionable and easy to avoid.
  5525. For example the compiler simplifies 'x + 1 > x' to '1'. This
  5526. level of '-Wstrict-overflow' is enabled by '-Wall'; higher
  5527. levels are not, and must be explicitly requested.
  5528. '-Wstrict-overflow=2'
  5529. Also warn about other cases where a comparison is simplified
  5530. to a constant. For example: 'abs (x) >= 0'. This can only be
  5531. simplified when signed integer overflow is undefined, because
  5532. 'abs (INT_MIN)' overflows to 'INT_MIN', which is less than
  5533. zero. '-Wstrict-overflow' (with no level) is the same as
  5534. '-Wstrict-overflow=2'.
  5535. '-Wstrict-overflow=3'
  5536. Also warn about other cases where a comparison is simplified.
  5537. For example: 'x + 1 > 1' is simplified to 'x > 0'.
  5538. '-Wstrict-overflow=4'
  5539. Also warn about other simplifications not covered by the above
  5540. cases. For example: '(x * 10) / 5' is simplified to 'x * 2'.
  5541. '-Wstrict-overflow=5'
  5542. Also warn about cases where the compiler reduces the magnitude
  5543. of a constant involved in a comparison. For example: 'x + 2 >
  5544. y' is simplified to 'x + 1 >= y'. This is reported only at
  5545. the highest warning level because this simplification applies
  5546. to many comparisons, so this warning level gives a very large
  5547. number of false positives.
  5548. '-Wstring-compare'
  5549. Warn for calls to 'strcmp' and 'strncmp' whose result is determined
  5550. to be either zero or non-zero in tests for such equality owing to
  5551. the length of one argument being greater than the size of the array
  5552. the other argument is stored in (or the bound in the case of
  5553. 'strncmp'). Such calls could be mistakes. For example, the call
  5554. to 'strcmp' below is diagnosed because its result is necessarily
  5555. non-zero irrespective of the contents of the array 'a'.
  5556. extern char a[4];
  5557. void f (char *d)
  5558. {
  5559. strcpy (d, "string");
  5560. ...
  5561. if (0 == strcmp (a, d)) // cannot be true
  5562. puts ("a and d are the same");
  5563. }
  5564. '-Wstring-compare' is enabled by '-Wextra'.
  5565. '-Wno-stringop-overflow'
  5566. '-Wstringop-overflow'
  5567. '-Wstringop-overflow=TYPE'
  5568. Warn for calls to string manipulation functions such as 'memcpy'
  5569. and 'strcpy' that are determined to overflow the destination
  5570. buffer. The optional argument is one greater than the type of
  5571. Object Size Checking to perform to determine the size of the
  5572. destination. *Note Object Size Checking::. The argument is
  5573. meaningful only for functions that operate on character arrays but
  5574. not for raw memory functions like 'memcpy' which always make use of
  5575. Object Size type-0. The option also warns for calls that specify a
  5576. size in excess of the largest possible object or at most 'SIZE_MAX
  5577. / 2' bytes. The option produces the best results with optimization
  5578. enabled but can detect a small subset of simple buffer overflows
  5579. even without optimization in calls to the GCC built-in functions
  5580. like '__builtin_memcpy' that correspond to the standard functions.
  5581. In any case, the option warns about just a subset of buffer
  5582. overflows detected by the corresponding overflow checking
  5583. built-ins. For example, the option issues a warning for the
  5584. 'strcpy' call below because it copies at least 5 characters (the
  5585. string '"blue"' including the terminating NUL) into the buffer of
  5586. size 4.
  5587. enum Color { blue, purple, yellow };
  5588. const char* f (enum Color clr)
  5589. {
  5590. static char buf [4];
  5591. const char *str;
  5592. switch (clr)
  5593. {
  5594. case blue: str = "blue"; break;
  5595. case purple: str = "purple"; break;
  5596. case yellow: str = "yellow"; break;
  5597. }
  5598. return strcpy (buf, str); // warning here
  5599. }
  5600. Option '-Wstringop-overflow=2' is enabled by default.
  5601. '-Wstringop-overflow'
  5602. '-Wstringop-overflow=1'
  5603. The '-Wstringop-overflow=1' option uses type-zero Object Size
  5604. Checking to determine the sizes of destination objects. At
  5605. this setting the option does not warn for writes past the end
  5606. of subobjects of larger objects accessed by pointers unless
  5607. the size of the largest surrounding object is known. When the
  5608. destination may be one of several objects it is assumed to be
  5609. the largest one of them. On Linux systems, when optimization
  5610. is enabled at this setting the option warns for the same code
  5611. as when the '_FORTIFY_SOURCE' macro is defined to a non-zero
  5612. value.
  5613. '-Wstringop-overflow=2'
  5614. The '-Wstringop-overflow=2' option uses type-one Object Size
  5615. Checking to determine the sizes of destination objects. At
  5616. this setting the option warns about overflows when writing to
  5617. members of the largest complete objects whose exact size is
  5618. known. However, it does not warn for excessive writes to the
  5619. same members of unknown objects referenced by pointers since
  5620. they may point to arrays containing unknown numbers of
  5621. elements. This is the default setting of the option.
  5622. '-Wstringop-overflow=3'
  5623. The '-Wstringop-overflow=3' option uses type-two Object Size
  5624. Checking to determine the sizes of destination objects. At
  5625. this setting the option warns about overflowing the smallest
  5626. object or data member. This is the most restrictive setting
  5627. of the option that may result in warnings for safe code.
  5628. '-Wstringop-overflow=4'
  5629. The '-Wstringop-overflow=4' option uses type-three Object Size
  5630. Checking to determine the sizes of destination objects. At
  5631. this setting the option warns about overflowing any data
  5632. members, and when the destination is one of several objects it
  5633. uses the size of the largest of them to decide whether to
  5634. issue a warning. Similarly to '-Wstringop-overflow=3' this
  5635. setting of the option may result in warnings for benign code.
  5636. '-Wno-stringop-overread'
  5637. Warn for calls to string manipulation functions such as 'memchr',
  5638. or 'strcpy' that are determined to read past the end of the source
  5639. sequence.
  5640. Option '-Wstringop-overread' is enabled by default.
  5641. '-Wno-stringop-truncation'
  5642. Do not warn for calls to bounded string manipulation functions such
  5643. as 'strncat', 'strncpy', and 'stpncpy' that may either truncate the
  5644. copied string or leave the destination unchanged.
  5645. In the following example, the call to 'strncat' specifies a bound
  5646. that is less than the length of the source string. As a result,
  5647. the copy of the source will be truncated and so the call is
  5648. diagnosed. To avoid the warning use 'bufsize - strlen (buf) - 1)'
  5649. as the bound.
  5650. void append (char *buf, size_t bufsize)
  5651. {
  5652. strncat (buf, ".txt", 3);
  5653. }
  5654. As another example, the following call to 'strncpy' results in
  5655. copying to 'd' just the characters preceding the terminating NUL,
  5656. without appending the NUL to the end. Assuming the result of
  5657. 'strncpy' is necessarily a NUL-terminated string is a common
  5658. mistake, and so the call is diagnosed. To avoid the warning when
  5659. the result is not expected to be NUL-terminated, call 'memcpy'
  5660. instead.
  5661. void copy (char *d, const char *s)
  5662. {
  5663. strncpy (d, s, strlen (s));
  5664. }
  5665. In the following example, the call to 'strncpy' specifies the size
  5666. of the destination buffer as the bound. If the length of the
  5667. source string is equal to or greater than this size the result of
  5668. the copy will not be NUL-terminated. Therefore, the call is also
  5669. diagnosed. To avoid the warning, specify 'sizeof buf - 1' as the
  5670. bound and set the last element of the buffer to 'NUL'.
  5671. void copy (const char *s)
  5672. {
  5673. char buf[80];
  5674. strncpy (buf, s, sizeof buf);
  5675. ...
  5676. }
  5677. In situations where a character array is intended to store a
  5678. sequence of bytes with no terminating 'NUL' such an array may be
  5679. annotated with attribute 'nonstring' to avoid this warning. Such
  5680. arrays, however, are not suitable arguments to functions that
  5681. expect 'NUL'-terminated strings. To help detect accidental misuses
  5682. of such arrays GCC issues warnings unless it can prove that the use
  5683. is safe. *Note Common Variable Attributes::.
  5684. '-Wsuggest-attribute=[pure|const|noreturn|format|cold|malloc]'
  5685. Warn for cases where adding an attribute may be beneficial. The
  5686. attributes currently supported are listed below.
  5687. '-Wsuggest-attribute=pure'
  5688. '-Wsuggest-attribute=const'
  5689. '-Wsuggest-attribute=noreturn'
  5690. '-Wmissing-noreturn'
  5691. '-Wsuggest-attribute=malloc'
  5692. Warn about functions that might be candidates for attributes
  5693. 'pure', 'const' or 'noreturn' or 'malloc'. The compiler only
  5694. warns for functions visible in other compilation units or (in
  5695. the case of 'pure' and 'const') if it cannot prove that the
  5696. function returns normally. A function returns normally if it
  5697. doesn't contain an infinite loop or return abnormally by
  5698. throwing, calling 'abort' or trapping. This analysis requires
  5699. option '-fipa-pure-const', which is enabled by default at '-O'
  5700. and higher. Higher optimization levels improve the accuracy
  5701. of the analysis.
  5702. '-Wsuggest-attribute=format'
  5703. '-Wmissing-format-attribute'
  5704. Warn about function pointers that might be candidates for
  5705. 'format' attributes. Note these are only possible candidates,
  5706. not absolute ones. GCC guesses that function pointers with
  5707. 'format' attributes that are used in assignment,
  5708. initialization, parameter passing or return statements should
  5709. have a corresponding 'format' attribute in the resulting type.
  5710. I.e. the left-hand side of the assignment or initialization,
  5711. the type of the parameter variable, or the return type of the
  5712. containing function respectively should also have a 'format'
  5713. attribute to avoid the warning.
  5714. GCC also warns about function definitions that might be
  5715. candidates for 'format' attributes. Again, these are only
  5716. possible candidates. GCC guesses that 'format' attributes
  5717. might be appropriate for any function that calls a function
  5718. like 'vprintf' or 'vscanf', but this might not always be the
  5719. case, and some functions for which 'format' attributes are
  5720. appropriate may not be detected.
  5721. '-Wsuggest-attribute=cold'
  5722. Warn about functions that might be candidates for 'cold'
  5723. attribute. This is based on static detection and generally
  5724. only warns about functions which always leads to a call to
  5725. another 'cold' function such as wrappers of C++ 'throw' or
  5726. fatal error reporting functions leading to 'abort'.
  5727. '-Walloc-zero'
  5728. Warn about calls to allocation functions decorated with attribute
  5729. 'alloc_size' that specify zero bytes, including those to the
  5730. built-in forms of the functions 'aligned_alloc', 'alloca',
  5731. 'calloc', 'malloc', and 'realloc'. Because the behavior of these
  5732. functions when called with a zero size differs among
  5733. implementations (and in the case of 'realloc' has been deprecated)
  5734. relying on it may result in subtle portability bugs and should be
  5735. avoided.
  5736. '-Walloc-size-larger-than=BYTE-SIZE'
  5737. Warn about calls to functions decorated with attribute 'alloc_size'
  5738. that attempt to allocate objects larger than the specified number
  5739. of bytes, or where the result of the size computation in an integer
  5740. type with infinite precision would exceed the value of
  5741. 'PTRDIFF_MAX' on the target.
  5742. '-Walloc-size-larger-than=''PTRDIFF_MAX' is enabled by default.
  5743. Warnings controlled by the option can be disabled either by
  5744. specifying BYTE-SIZE of 'SIZE_MAX' or more or by
  5745. '-Wno-alloc-size-larger-than'. *Note Function Attributes::.
  5746. '-Wno-alloc-size-larger-than'
  5747. Disable '-Walloc-size-larger-than=' warnings. The option is
  5748. equivalent to '-Walloc-size-larger-than=''SIZE_MAX' or larger.
  5749. '-Walloca'
  5750. This option warns on all uses of 'alloca' in the source.
  5751. '-Walloca-larger-than=BYTE-SIZE'
  5752. This option warns on calls to 'alloca' with an integer argument
  5753. whose value is either zero, or that is not bounded by a controlling
  5754. predicate that limits its value to at most BYTE-SIZE. It also
  5755. warns for calls to 'alloca' where the bound value is unknown.
  5756. Arguments of non-integer types are considered unbounded even if
  5757. they appear to be constrained to the expected range.
  5758. For example, a bounded case of 'alloca' could be:
  5759. void func (size_t n)
  5760. {
  5761. void *p;
  5762. if (n <= 1000)
  5763. p = alloca (n);
  5764. else
  5765. p = malloc (n);
  5766. f (p);
  5767. }
  5768. In the above example, passing '-Walloca-larger-than=1000' would not
  5769. issue a warning because the call to 'alloca' is known to be at most
  5770. 1000 bytes. However, if '-Walloca-larger-than=500' were passed,
  5771. the compiler would emit a warning.
  5772. Unbounded uses, on the other hand, are uses of 'alloca' with no
  5773. controlling predicate constraining its integer argument. For
  5774. example:
  5775. void func ()
  5776. {
  5777. void *p = alloca (n);
  5778. f (p);
  5779. }
  5780. If '-Walloca-larger-than=500' were passed, the above would trigger
  5781. a warning, but this time because of the lack of bounds checking.
  5782. Note, that even seemingly correct code involving signed integers
  5783. could cause a warning:
  5784. void func (signed int n)
  5785. {
  5786. if (n < 500)
  5787. {
  5788. p = alloca (n);
  5789. f (p);
  5790. }
  5791. }
  5792. In the above example, N could be negative, causing a larger than
  5793. expected argument to be implicitly cast into the 'alloca' call.
  5794. This option also warns when 'alloca' is used in a loop.
  5795. '-Walloca-larger-than=''PTRDIFF_MAX' is enabled by default but is
  5796. usually only effective when '-ftree-vrp' is active (default for
  5797. '-O2' and above).
  5798. See also '-Wvla-larger-than=''byte-size'.
  5799. '-Wno-alloca-larger-than'
  5800. Disable '-Walloca-larger-than=' warnings. The option is equivalent
  5801. to '-Walloca-larger-than=''SIZE_MAX' or larger.
  5802. '-Warith-conversion'
  5803. Do warn about implicit conversions from arithmetic operations even
  5804. when conversion of the operands to the same type cannot change
  5805. their values. This affects warnings from '-Wconversion',
  5806. '-Wfloat-conversion', and '-Wsign-conversion'.
  5807. void f (char c, int i)
  5808. {
  5809. c = c + i; // warns with -Wconversion
  5810. c = c + 1; // only warns with -Warith-conversion
  5811. }
  5812. '-Warray-bounds'
  5813. '-Warray-bounds=N'
  5814. This option is only active when '-ftree-vrp' is active (default for
  5815. '-O2' and above). It warns about subscripts to arrays that are
  5816. always out of bounds. This warning is enabled by '-Wall'.
  5817. '-Warray-bounds=1'
  5818. This is the warning level of '-Warray-bounds' and is enabled
  5819. by '-Wall'; higher levels are not, and must be explicitly
  5820. requested.
  5821. '-Warray-bounds=2'
  5822. This warning level also warns about out of bounds access for
  5823. arrays at the end of a struct and for arrays accessed through
  5824. pointers. This warning level may give a larger number of
  5825. false positives and is deactivated by default.
  5826. '-Warray-parameter'
  5827. '-Warray-parameter=N'
  5828. Warn about redeclarations of functions involving arguments of array
  5829. or pointer types of inconsistent kinds or forms, and enable the
  5830. detection of out-of-bounds accesses to such parameters by warnings
  5831. such as '-Warray-bounds'.
  5832. If the first function declaration uses the array form the bound
  5833. specified in the array is assumed to be the minimum number of
  5834. elements expected to be provided in calls to the function and the
  5835. maximum number of elements accessed by it. Failing to provide
  5836. arguments of sufficient size or accessing more than the maximum
  5837. number of elements may be diagnosed by warnings such as
  5838. '-Warray-bounds'. At level 1 the warning diagnoses inconsistencies
  5839. involving array parameters declared using the 'T[static N]' form.
  5840. For example, the warning triggers for the following redeclarations
  5841. because the first one allows an array of any size to be passed to
  5842. 'f' while the second one with the keyword 'static' specifies that
  5843. the array argument must have at least four elements.
  5844. void f (int[static 4]);
  5845. void f (int[]); // warning (inconsistent array form)
  5846. void g (void)
  5847. {
  5848. int *p = (int *)malloc (4);
  5849. f (p); // warning (array too small)
  5850. ...
  5851. }
  5852. At level 2 the warning also triggers for redeclarations involving
  5853. any other inconsistency in array or pointer argument forms denoting
  5854. array sizes. Pointers and arrays of unspecified bound are
  5855. considered equivalent and do not trigger a warning.
  5856. void g (int*);
  5857. void g (int[]); // no warning
  5858. void g (int[8]); // warning (inconsistent array bound)
  5859. '-Warray-parameter=2' is included in '-Wall'. The
  5860. '-Wvla-parameter' option triggers warnings for similar
  5861. inconsistencies involving Variable Length Array arguments.
  5862. '-Wattribute-alias=N'
  5863. '-Wno-attribute-alias'
  5864. Warn about declarations using the 'alias' and similar attributes
  5865. whose target is incompatible with the type of the alias. *Note
  5866. Declaring Attributes of Functions: Function Attributes.
  5867. '-Wattribute-alias=1'
  5868. The default warning level of the '-Wattribute-alias' option
  5869. diagnoses incompatibilities between the type of the alias
  5870. declaration and that of its target. Such incompatibilities
  5871. are typically indicative of bugs.
  5872. '-Wattribute-alias=2'
  5873. At this level '-Wattribute-alias' also diagnoses cases where
  5874. the attributes of the alias declaration are more restrictive
  5875. than the attributes applied to its target. These mismatches
  5876. can potentially result in incorrect code generation. In other
  5877. cases they may be benign and could be resolved simply by
  5878. adding the missing attribute to the target. For comparison,
  5879. see the '-Wmissing-attributes' option, which controls
  5880. diagnostics when the alias declaration is less restrictive
  5881. than the target, rather than more restrictive.
  5882. Attributes considered include 'alloc_align', 'alloc_size',
  5883. 'cold', 'const', 'hot', 'leaf', 'malloc', 'nonnull',
  5884. 'noreturn', 'nothrow', 'pure', 'returns_nonnull', and
  5885. 'returns_twice'.
  5886. '-Wattribute-alias' is equivalent to '-Wattribute-alias=1'. This
  5887. is the default. You can disable these warnings with either
  5888. '-Wno-attribute-alias' or '-Wattribute-alias=0'.
  5889. '-Wbool-compare'
  5890. Warn about boolean expression compared with an integer value
  5891. different from 'true'/'false'. For instance, the following
  5892. comparison is always false:
  5893. int n = 5;
  5894. ...
  5895. if ((n > 1) == 2) { ... }
  5896. This warning is enabled by '-Wall'.
  5897. '-Wbool-operation'
  5898. Warn about suspicious operations on expressions of a boolean type.
  5899. For instance, bitwise negation of a boolean is very likely a bug in
  5900. the program. For C, this warning also warns about incrementing or
  5901. decrementing a boolean, which rarely makes sense. (In C++,
  5902. decrementing a boolean is always invalid. Incrementing a boolean
  5903. is invalid in C++17, and deprecated otherwise.)
  5904. This warning is enabled by '-Wall'.
  5905. '-Wduplicated-branches'
  5906. Warn when an if-else has identical branches. This warning detects
  5907. cases like
  5908. if (p != NULL)
  5909. return 0;
  5910. else
  5911. return 0;
  5912. It doesn't warn when both branches contain just a null statement.
  5913. This warning also warn for conditional operators:
  5914. int i = x ? *p : *p;
  5915. '-Wduplicated-cond'
  5916. Warn about duplicated conditions in an if-else-if chain. For
  5917. instance, warn for the following code:
  5918. if (p->q != NULL) { ... }
  5919. else if (p->q != NULL) { ... }
  5920. '-Wframe-address'
  5921. Warn when the '__builtin_frame_address' or
  5922. '__builtin_return_address' is called with an argument greater than
  5923. 0. Such calls may return indeterminate values or crash the
  5924. program. The warning is included in '-Wall'.
  5925. '-Wno-discarded-qualifiers (C and Objective-C only)'
  5926. Do not warn if type qualifiers on pointers are being discarded.
  5927. Typically, the compiler warns if a 'const char *' variable is
  5928. passed to a function that takes a 'char *' parameter. This option
  5929. can be used to suppress such a warning.
  5930. '-Wno-discarded-array-qualifiers (C and Objective-C only)'
  5931. Do not warn if type qualifiers on arrays which are pointer targets
  5932. are being discarded. Typically, the compiler warns if a 'const int
  5933. (*)[]' variable is passed to a function that takes a 'int (*)[]'
  5934. parameter. This option can be used to suppress such a warning.
  5935. '-Wno-incompatible-pointer-types (C and Objective-C only)'
  5936. Do not warn when there is a conversion between pointers that have
  5937. incompatible types. This warning is for cases not covered by
  5938. '-Wno-pointer-sign', which warns for pointer argument passing or
  5939. assignment with different signedness.
  5940. '-Wno-int-conversion (C and Objective-C only)'
  5941. Do not warn about incompatible integer to pointer and pointer to
  5942. integer conversions. This warning is about implicit conversions;
  5943. for explicit conversions the warnings '-Wno-int-to-pointer-cast'
  5944. and '-Wno-pointer-to-int-cast' may be used.
  5945. '-Wzero-length-bounds'
  5946. Warn about accesses to elements of zero-length array members that
  5947. might overlap other members of the same object. Declaring interior
  5948. zero-length arrays is discouraged because accesses to them are
  5949. undefined. See *Note Zero Length::.
  5950. For example, the first two stores in function 'bad' are diagnosed
  5951. because the array elements overlap the subsequent members 'b' and
  5952. 'c'. The third store is diagnosed by '-Warray-bounds' because it
  5953. is beyond the bounds of the enclosing object.
  5954. struct X { int a[0]; int b, c; };
  5955. struct X x;
  5956. void bad (void)
  5957. {
  5958. x.a[0] = 0; // -Wzero-length-bounds
  5959. x.a[1] = 1; // -Wzero-length-bounds
  5960. x.a[2] = 2; // -Warray-bounds
  5961. }
  5962. Option '-Wzero-length-bounds' is enabled by '-Warray-bounds'.
  5963. '-Wno-div-by-zero'
  5964. Do not warn about compile-time integer division by zero.
  5965. Floating-point division by zero is not warned about, as it can be a
  5966. legitimate way of obtaining infinities and NaNs.
  5967. '-Wsystem-headers'
  5968. Print warning messages for constructs found in system header files.
  5969. Warnings from system headers are normally suppressed, on the
  5970. assumption that they usually do not indicate real problems and
  5971. would only make the compiler output harder to read. Using this
  5972. command-line option tells GCC to emit warnings from system headers
  5973. as if they occurred in user code. However, note that using '-Wall'
  5974. in conjunction with this option does _not_ warn about unknown
  5975. pragmas in system headers--for that, '-Wunknown-pragmas' must also
  5976. be used.
  5977. '-Wtautological-compare'
  5978. Warn if a self-comparison always evaluates to true or false. This
  5979. warning detects various mistakes such as:
  5980. int i = 1;
  5981. ...
  5982. if (i > i) { ... }
  5983. This warning also warns about bitwise comparisons that always
  5984. evaluate to true or false, for instance:
  5985. if ((a & 16) == 10) { ... }
  5986. will always be false.
  5987. This warning is enabled by '-Wall'.
  5988. '-Wtrampolines'
  5989. Warn about trampolines generated for pointers to nested functions.
  5990. A trampoline is a small piece of data or code that is created at
  5991. run time on the stack when the address of a nested function is
  5992. taken, and is used to call the nested function indirectly. For
  5993. some targets, it is made up of data only and thus requires no
  5994. special treatment. But, for most targets, it is made up of code
  5995. and thus requires the stack to be made executable in order for the
  5996. program to work properly.
  5997. '-Wfloat-equal'
  5998. Warn if floating-point values are used in equality comparisons.
  5999. The idea behind this is that sometimes it is convenient (for the
  6000. programmer) to consider floating-point values as approximations to
  6001. infinitely precise real numbers. If you are doing this, then you
  6002. need to compute (by analyzing the code, or in some other way) the
  6003. maximum or likely maximum error that the computation introduces,
  6004. and allow for it when performing comparisons (and when producing
  6005. output, but that's a different problem). In particular, instead of
  6006. testing for equality, you should check to see whether the two
  6007. values have ranges that overlap; and this is done with the
  6008. relational operators, so equality comparisons are probably
  6009. mistaken.
  6010. '-Wtraditional (C and Objective-C only)'
  6011. Warn about certain constructs that behave differently in
  6012. traditional and ISO C. Also warn about ISO C constructs that have
  6013. no traditional C equivalent, and/or problematic constructs that
  6014. should be avoided.
  6015. * Macro parameters that appear within string literals in the
  6016. macro body. In traditional C macro replacement takes place
  6017. within string literals, but in ISO C it does not.
  6018. * In traditional C, some preprocessor directives did not exist.
  6019. Traditional preprocessors only considered a line to be a
  6020. directive if the '#' appeared in column 1 on the line.
  6021. Therefore '-Wtraditional' warns about directives that
  6022. traditional C understands but ignores because the '#' does not
  6023. appear as the first character on the line. It also suggests
  6024. you hide directives like '#pragma' not understood by
  6025. traditional C by indenting them. Some traditional
  6026. implementations do not recognize '#elif', so this option
  6027. suggests avoiding it altogether.
  6028. * A function-like macro that appears without arguments.
  6029. * The unary plus operator.
  6030. * The 'U' integer constant suffix, or the 'F' or 'L'
  6031. floating-point constant suffixes. (Traditional C does support
  6032. the 'L' suffix on integer constants.) Note, these suffixes
  6033. appear in macros defined in the system headers of most modern
  6034. systems, e.g. the '_MIN'/'_MAX' macros in '<limits.h>'. Use
  6035. of these macros in user code might normally lead to spurious
  6036. warnings, however GCC's integrated preprocessor has enough
  6037. context to avoid warning in these cases.
  6038. * A function declared external in one block and then used after
  6039. the end of the block.
  6040. * A 'switch' statement has an operand of type 'long'.
  6041. * A non-'static' function declaration follows a 'static' one.
  6042. This construct is not accepted by some traditional C
  6043. compilers.
  6044. * The ISO type of an integer constant has a different width or
  6045. signedness from its traditional type. This warning is only
  6046. issued if the base of the constant is ten. I.e. hexadecimal
  6047. or octal values, which typically represent bit patterns, are
  6048. not warned about.
  6049. * Usage of ISO string concatenation is detected.
  6050. * Initialization of automatic aggregates.
  6051. * Identifier conflicts with labels. Traditional C lacks a
  6052. separate namespace for labels.
  6053. * Initialization of unions. If the initializer is zero, the
  6054. warning is omitted. This is done under the assumption that
  6055. the zero initializer in user code appears conditioned on e.g.
  6056. '__STDC__' to avoid missing initializer warnings and relies on
  6057. default initialization to zero in the traditional C case.
  6058. * Conversions by prototypes between fixed/floating-point values
  6059. and vice versa. The absence of these prototypes when
  6060. compiling with traditional C causes serious problems. This is
  6061. a subset of the possible conversion warnings; for the full set
  6062. use '-Wtraditional-conversion'.
  6063. * Use of ISO C style function definitions. This warning
  6064. intentionally is _not_ issued for prototype declarations or
  6065. variadic functions because these ISO C features appear in your
  6066. code when using libiberty's traditional C compatibility
  6067. macros, 'PARAMS' and 'VPARAMS'. This warning is also bypassed
  6068. for nested functions because that feature is already a GCC
  6069. extension and thus not relevant to traditional C
  6070. compatibility.
  6071. '-Wtraditional-conversion (C and Objective-C only)'
  6072. Warn if a prototype causes a type conversion that is different from
  6073. what would happen to the same argument in the absence of a
  6074. prototype. This includes conversions of fixed point to floating
  6075. and vice versa, and conversions changing the width or signedness of
  6076. a fixed-point argument except when the same as the default
  6077. promotion.
  6078. '-Wdeclaration-after-statement (C and Objective-C only)'
  6079. Warn when a declaration is found after a statement in a block.
  6080. This construct, known from C++, was introduced with ISO C99 and is
  6081. by default allowed in GCC. It is not supported by ISO C90. *Note
  6082. Mixed Labels and Declarations::.
  6083. '-Wshadow'
  6084. Warn whenever a local variable or type declaration shadows another
  6085. variable, parameter, type, class member (in C++), or instance
  6086. variable (in Objective-C) or whenever a built-in function is
  6087. shadowed. Note that in C++, the compiler warns if a local variable
  6088. shadows an explicit typedef, but not if it shadows a
  6089. struct/class/enum. If this warning is enabled, it includes also
  6090. all instances of local shadowing. This means that
  6091. '-Wno-shadow=local' and '-Wno-shadow=compatible-local' are ignored
  6092. when '-Wshadow' is used. Same as '-Wshadow=global'.
  6093. '-Wno-shadow-ivar (Objective-C only)'
  6094. Do not warn whenever a local variable shadows an instance variable
  6095. in an Objective-C method.
  6096. '-Wshadow=global'
  6097. Warn for any shadowing. Same as '-Wshadow'.
  6098. '-Wshadow=local'
  6099. Warn when a local variable shadows another local variable or
  6100. parameter.
  6101. '-Wshadow=compatible-local'
  6102. Warn when a local variable shadows another local variable or
  6103. parameter whose type is compatible with that of the shadowing
  6104. variable. In C++, type compatibility here means the type of the
  6105. shadowing variable can be converted to that of the shadowed
  6106. variable. The creation of this flag (in addition to
  6107. '-Wshadow=local') is based on the idea that when a local variable
  6108. shadows another one of incompatible type, it is most likely
  6109. intentional, not a bug or typo, as shown in the following example:
  6110. for (SomeIterator i = SomeObj.begin(); i != SomeObj.end(); ++i)
  6111. {
  6112. for (int i = 0; i < N; ++i)
  6113. {
  6114. ...
  6115. }
  6116. ...
  6117. }
  6118. Since the two variable 'i' in the example above have incompatible
  6119. types, enabling only '-Wshadow=compatible-local' does not emit a
  6120. warning. Because their types are incompatible, if a programmer
  6121. accidentally uses one in place of the other, type checking is
  6122. expected to catch that and emit an error or warning. Use of this
  6123. flag instead of '-Wshadow=local' can possibly reduce the number of
  6124. warnings triggered by intentional shadowing. Note that this also
  6125. means that shadowing 'const char *i' by 'char *i' does not emit a
  6126. warning.
  6127. This warning is also enabled by '-Wshadow=local'.
  6128. '-Wlarger-than=BYTE-SIZE'
  6129. Warn whenever an object is defined whose size exceeds BYTE-SIZE.
  6130. '-Wlarger-than=''PTRDIFF_MAX' is enabled by default. Warnings
  6131. controlled by the option can be disabled either by specifying
  6132. BYTE-SIZE of 'SIZE_MAX' or more or by '-Wno-larger-than'.
  6133. Also warn for calls to bounded functions such as 'memchr' or
  6134. 'strnlen' that specify a bound greater than the largest possible
  6135. object, which is 'PTRDIFF_MAX' bytes by default. These warnings
  6136. can only be disabled by '-Wno-larger-than'.
  6137. '-Wno-larger-than'
  6138. Disable '-Wlarger-than=' warnings. The option is equivalent to
  6139. '-Wlarger-than=''SIZE_MAX' or larger.
  6140. '-Wframe-larger-than=BYTE-SIZE'
  6141. Warn if the size of a function frame exceeds BYTE-SIZE. The
  6142. computation done to determine the stack frame size is approximate
  6143. and not conservative. The actual requirements may be somewhat
  6144. greater than BYTE-SIZE even if you do not get a warning. In
  6145. addition, any space allocated via 'alloca', variable-length arrays,
  6146. or related constructs is not included by the compiler when
  6147. determining whether or not to issue a warning.
  6148. '-Wframe-larger-than=''PTRDIFF_MAX' is enabled by default.
  6149. Warnings controlled by the option can be disabled either by
  6150. specifying BYTE-SIZE of 'SIZE_MAX' or more or by
  6151. '-Wno-frame-larger-than'.
  6152. '-Wno-frame-larger-than'
  6153. Disable '-Wframe-larger-than=' warnings. The option is equivalent
  6154. to '-Wframe-larger-than=''SIZE_MAX' or larger.
  6155. '-Wno-free-nonheap-object'
  6156. Warn when attempting to deallocate an object that was either not
  6157. allocated on the heap, or by using a pointer that was not returned
  6158. from a prior call to the corresponding allocation function. For
  6159. example, because the call to 'stpcpy' returns a pointer to the
  6160. terminating nul character and not to the begginning of the object,
  6161. the call to 'free' below is diagnosed.
  6162. void f (char *p)
  6163. {
  6164. p = stpcpy (p, "abc");
  6165. // ...
  6166. free (p); // warning
  6167. }
  6168. '-Wfree-nonheap-object' is enabled by default.
  6169. '-Wstack-usage=BYTE-SIZE'
  6170. Warn if the stack usage of a function might exceed BYTE-SIZE. The
  6171. computation done to determine the stack usage is conservative. Any
  6172. space allocated via 'alloca', variable-length arrays, or related
  6173. constructs is included by the compiler when determining whether or
  6174. not to issue a warning.
  6175. The message is in keeping with the output of '-fstack-usage'.
  6176. * If the stack usage is fully static but exceeds the specified
  6177. amount, it's:
  6178. warning: stack usage is 1120 bytes
  6179. * If the stack usage is (partly) dynamic but bounded, it's:
  6180. warning: stack usage might be 1648 bytes
  6181. * If the stack usage is (partly) dynamic and not bounded, it's:
  6182. warning: stack usage might be unbounded
  6183. '-Wstack-usage=''PTRDIFF_MAX' is enabled by default. Warnings
  6184. controlled by the option can be disabled either by specifying
  6185. BYTE-SIZE of 'SIZE_MAX' or more or by '-Wno-stack-usage'.
  6186. '-Wno-stack-usage'
  6187. Disable '-Wstack-usage=' warnings. The option is equivalent to
  6188. '-Wstack-usage=''SIZE_MAX' or larger.
  6189. '-Wunsafe-loop-optimizations'
  6190. Warn if the loop cannot be optimized because the compiler cannot
  6191. assume anything on the bounds of the loop indices. With
  6192. '-funsafe-loop-optimizations' warn if the compiler makes such
  6193. assumptions.
  6194. '-Wno-pedantic-ms-format (MinGW targets only)'
  6195. When used in combination with '-Wformat' and '-pedantic' without
  6196. GNU extensions, this option disables the warnings about non-ISO
  6197. 'printf' / 'scanf' format width specifiers 'I32', 'I64', and 'I'
  6198. used on Windows targets, which depend on the MS runtime.
  6199. '-Wpointer-arith'
  6200. Warn about anything that depends on the "size of" a function type
  6201. or of 'void'. GNU C assigns these types a size of 1, for
  6202. convenience in calculations with 'void *' pointers and pointers to
  6203. functions. In C++, warn also when an arithmetic operation involves
  6204. 'NULL'. This warning is also enabled by '-Wpedantic'.
  6205. '-Wno-pointer-compare'
  6206. Do not warn if a pointer is compared with a zero character
  6207. constant. This usually means that the pointer was meant to be
  6208. dereferenced. For example:
  6209. const char *p = foo ();
  6210. if (p == '\0')
  6211. return 42;
  6212. Note that the code above is invalid in C++11.
  6213. This warning is enabled by default.
  6214. '-Wtsan'
  6215. Warn about unsupported features in ThreadSanitizer.
  6216. ThreadSanitizer does not support 'std::atomic_thread_fence' and can
  6217. report false positives.
  6218. This warning is enabled by default.
  6219. '-Wtype-limits'
  6220. Warn if a comparison is always true or always false due to the
  6221. limited range of the data type, but do not warn for constant
  6222. expressions. For example, warn if an unsigned variable is compared
  6223. against zero with '<' or '>='. This warning is also enabled by
  6224. '-Wextra'.
  6225. '-Wabsolute-value (C and Objective-C only)'
  6226. Warn for calls to standard functions that compute the absolute
  6227. value of an argument when a more appropriate standard function is
  6228. available. For example, calling 'abs(3.14)' triggers the warning
  6229. because the appropriate function to call to compute the absolute
  6230. value of a double argument is 'fabs'. The option also triggers
  6231. warnings when the argument in a call to such a function has an
  6232. unsigned type. This warning can be suppressed with an explicit
  6233. type cast and it is also enabled by '-Wextra'.
  6234. '-Wcomment'
  6235. '-Wcomments'
  6236. Warn whenever a comment-start sequence '/*' appears in a '/*'
  6237. comment, or whenever a backslash-newline appears in a '//' comment.
  6238. This warning is enabled by '-Wall'.
  6239. '-Wtrigraphs'
  6240. Warn if any trigraphs are encountered that might change the meaning
  6241. of the program. Trigraphs within comments are not warned about,
  6242. except those that would form escaped newlines.
  6243. This option is implied by '-Wall'. If '-Wall' is not given, this
  6244. option is still enabled unless trigraphs are enabled. To get
  6245. trigraph conversion without warnings, but get the other '-Wall'
  6246. warnings, use '-trigraphs -Wall -Wno-trigraphs'.
  6247. '-Wundef'
  6248. Warn if an undefined identifier is evaluated in an '#if' directive.
  6249. Such identifiers are replaced with zero.
  6250. '-Wexpansion-to-defined'
  6251. Warn whenever 'defined' is encountered in the expansion of a macro
  6252. (including the case where the macro is expanded by an '#if'
  6253. directive). Such usage is not portable. This warning is also
  6254. enabled by '-Wpedantic' and '-Wextra'.
  6255. '-Wunused-macros'
  6256. Warn about macros defined in the main file that are unused. A
  6257. macro is "used" if it is expanded or tested for existence at least
  6258. once. The preprocessor also warns if the macro has not been used
  6259. at the time it is redefined or undefined.
  6260. Built-in macros, macros defined on the command line, and macros
  6261. defined in include files are not warned about.
  6262. _Note:_ If a macro is actually used, but only used in skipped
  6263. conditional blocks, then the preprocessor reports it as unused. To
  6264. avoid the warning in such a case, you might improve the scope of
  6265. the macro's definition by, for example, moving it into the first
  6266. skipped block. Alternatively, you could provide a dummy use with
  6267. something like:
  6268. #if defined the_macro_causing_the_warning
  6269. #endif
  6270. '-Wno-endif-labels'
  6271. Do not warn whenever an '#else' or an '#endif' are followed by
  6272. text. This sometimes happens in older programs with code of the
  6273. form
  6274. #if FOO
  6275. ...
  6276. #else FOO
  6277. ...
  6278. #endif FOO
  6279. The second and third 'FOO' should be in comments. This warning is
  6280. on by default.
  6281. '-Wbad-function-cast (C and Objective-C only)'
  6282. Warn when a function call is cast to a non-matching type. For
  6283. example, warn if a call to a function returning an integer type is
  6284. cast to a pointer type.
  6285. '-Wc90-c99-compat (C and Objective-C only)'
  6286. Warn about features not present in ISO C90, but present in ISO C99.
  6287. For instance, warn about use of variable length arrays, 'long long'
  6288. type, 'bool' type, compound literals, designated initializers, and
  6289. so on. This option is independent of the standards mode. Warnings
  6290. are disabled in the expression that follows '__extension__'.
  6291. '-Wc99-c11-compat (C and Objective-C only)'
  6292. Warn about features not present in ISO C99, but present in ISO C11.
  6293. For instance, warn about use of anonymous structures and unions,
  6294. '_Atomic' type qualifier, '_Thread_local' storage-class specifier,
  6295. '_Alignas' specifier, 'Alignof' operator, '_Generic' keyword, and
  6296. so on. This option is independent of the standards mode. Warnings
  6297. are disabled in the expression that follows '__extension__'.
  6298. '-Wc11-c2x-compat (C and Objective-C only)'
  6299. Warn about features not present in ISO C11, but present in ISO C2X.
  6300. For instance, warn about omitting the string in '_Static_assert',
  6301. use of '[[]]' syntax for attributes, use of decimal floating-point
  6302. types, and so on. This option is independent of the standards
  6303. mode. Warnings are disabled in the expression that follows
  6304. '__extension__'.
  6305. '-Wc++-compat (C and Objective-C only)'
  6306. Warn about ISO C constructs that are outside of the common subset
  6307. of ISO C and ISO C++, e.g. request for implicit conversion from
  6308. 'void *' to a pointer to non-'void' type.
  6309. '-Wc++11-compat (C++ and Objective-C++ only)'
  6310. Warn about C++ constructs whose meaning differs between ISO C++
  6311. 1998 and ISO C++ 2011, e.g., identifiers in ISO C++ 1998 that are
  6312. keywords in ISO C++ 2011. This warning turns on '-Wnarrowing' and
  6313. is enabled by '-Wall'.
  6314. '-Wc++14-compat (C++ and Objective-C++ only)'
  6315. Warn about C++ constructs whose meaning differs between ISO C++
  6316. 2011 and ISO C++ 2014. This warning is enabled by '-Wall'.
  6317. '-Wc++17-compat (C++ and Objective-C++ only)'
  6318. Warn about C++ constructs whose meaning differs between ISO C++
  6319. 2014 and ISO C++ 2017. This warning is enabled by '-Wall'.
  6320. '-Wc++20-compat (C++ and Objective-C++ only)'
  6321. Warn about C++ constructs whose meaning differs between ISO C++
  6322. 2017 and ISO C++ 2020. This warning is enabled by '-Wall'.
  6323. '-Wcast-qual'
  6324. Warn whenever a pointer is cast so as to remove a type qualifier
  6325. from the target type. For example, warn if a 'const char *' is
  6326. cast to an ordinary 'char *'.
  6327. Also warn when making a cast that introduces a type qualifier in an
  6328. unsafe way. For example, casting 'char **' to 'const char **' is
  6329. unsafe, as in this example:
  6330. /* p is char ** value. */
  6331. const char **q = (const char **) p;
  6332. /* Assignment of readonly string to const char * is OK. */
  6333. *q = "string";
  6334. /* Now char** pointer points to read-only memory. */
  6335. **p = 'b';
  6336. '-Wcast-align'
  6337. Warn whenever a pointer is cast such that the required alignment of
  6338. the target is increased. For example, warn if a 'char *' is cast
  6339. to an 'int *' on machines where integers can only be accessed at
  6340. two- or four-byte boundaries.
  6341. '-Wcast-align=strict'
  6342. Warn whenever a pointer is cast such that the required alignment of
  6343. the target is increased. For example, warn if a 'char *' is cast
  6344. to an 'int *' regardless of the target machine.
  6345. '-Wcast-function-type'
  6346. Warn when a function pointer is cast to an incompatible function
  6347. pointer. In a cast involving function types with a variable
  6348. argument list only the types of initial arguments that are provided
  6349. are considered. Any parameter of pointer-type matches any other
  6350. pointer-type. Any benign differences in integral types are
  6351. ignored, like 'int' vs. 'long' on ILP32 targets. Likewise type
  6352. qualifiers are ignored. The function type 'void (*) (void)' is
  6353. special and matches everything, which can be used to suppress this
  6354. warning. In a cast involving pointer to member types this warning
  6355. warns whenever the type cast is changing the pointer to member
  6356. type. This warning is enabled by '-Wextra'.
  6357. '-Wwrite-strings'
  6358. When compiling C, give string constants the type 'const
  6359. char[LENGTH]' so that copying the address of one into a non-'const'
  6360. 'char *' pointer produces a warning. These warnings help you find
  6361. at compile time code that can try to write into a string constant,
  6362. but only if you have been very careful about using 'const' in
  6363. declarations and prototypes. Otherwise, it is just a nuisance.
  6364. This is why we did not make '-Wall' request these warnings.
  6365. When compiling C++, warn about the deprecated conversion from
  6366. string literals to 'char *'. This warning is enabled by default
  6367. for C++ programs.
  6368. '-Wclobbered'
  6369. Warn for variables that might be changed by 'longjmp' or 'vfork'.
  6370. This warning is also enabled by '-Wextra'.
  6371. '-Wconversion'
  6372. Warn for implicit conversions that may alter a value. This
  6373. includes conversions between real and integer, like 'abs (x)' when
  6374. 'x' is 'double'; conversions between signed and unsigned, like
  6375. 'unsigned ui = -1'; and conversions to smaller types, like 'sqrtf
  6376. (M_PI)'. Do not warn for explicit casts like 'abs ((int) x)' and
  6377. 'ui = (unsigned) -1', or if the value is not changed by the
  6378. conversion like in 'abs (2.0)'. Warnings about conversions between
  6379. signed and unsigned integers can be disabled by using
  6380. '-Wno-sign-conversion'.
  6381. For C++, also warn for confusing overload resolution for
  6382. user-defined conversions; and conversions that never use a type
  6383. conversion operator: conversions to 'void', the same type, a base
  6384. class or a reference to them. Warnings about conversions between
  6385. signed and unsigned integers are disabled by default in C++ unless
  6386. '-Wsign-conversion' is explicitly enabled.
  6387. Warnings about conversion from arithmetic on a small type back to
  6388. that type are only given with '-Warith-conversion'.
  6389. '-Wdangling-else'
  6390. Warn about constructions where there may be confusion to which 'if'
  6391. statement an 'else' branch belongs. Here is an example of such a
  6392. case:
  6393. {
  6394. if (a)
  6395. if (b)
  6396. foo ();
  6397. else
  6398. bar ();
  6399. }
  6400. In C/C++, every 'else' branch belongs to the innermost possible
  6401. 'if' statement, which in this example is 'if (b)'. This is often
  6402. not what the programmer expected, as illustrated in the above
  6403. example by indentation the programmer chose. When there is the
  6404. potential for this confusion, GCC issues a warning when this flag
  6405. is specified. To eliminate the warning, add explicit braces around
  6406. the innermost 'if' statement so there is no way the 'else' can
  6407. belong to the enclosing 'if'. The resulting code looks like this:
  6408. {
  6409. if (a)
  6410. {
  6411. if (b)
  6412. foo ();
  6413. else
  6414. bar ();
  6415. }
  6416. }
  6417. This warning is enabled by '-Wparentheses'.
  6418. '-Wdate-time'
  6419. Warn when macros '__TIME__', '__DATE__' or '__TIMESTAMP__' are
  6420. encountered as they might prevent bit-wise-identical reproducible
  6421. compilations.
  6422. '-Wempty-body'
  6423. Warn if an empty body occurs in an 'if', 'else' or 'do while'
  6424. statement. This warning is also enabled by '-Wextra'.
  6425. '-Wno-endif-labels'
  6426. Do not warn about stray tokens after '#else' and '#endif'.
  6427. '-Wenum-compare'
  6428. Warn about a comparison between values of different enumerated
  6429. types. In C++ enumerated type mismatches in conditional
  6430. expressions are also diagnosed and the warning is enabled by
  6431. default. In C this warning is enabled by '-Wall'.
  6432. '-Wenum-conversion'
  6433. Warn when a value of enumerated type is implicitly converted to a
  6434. different enumerated type. This warning is enabled by '-Wextra' in
  6435. C.
  6436. '-Wjump-misses-init (C, Objective-C only)'
  6437. Warn if a 'goto' statement or a 'switch' statement jumps forward
  6438. across the initialization of a variable, or jumps backward to a
  6439. label after the variable has been initialized. This only warns
  6440. about variables that are initialized when they are declared. This
  6441. warning is only supported for C and Objective-C; in C++ this sort
  6442. of branch is an error in any case.
  6443. '-Wjump-misses-init' is included in '-Wc++-compat'. It can be
  6444. disabled with the '-Wno-jump-misses-init' option.
  6445. '-Wsign-compare'
  6446. Warn when a comparison between signed and unsigned values could
  6447. produce an incorrect result when the signed value is converted to
  6448. unsigned. In C++, this warning is also enabled by '-Wall'. In C,
  6449. it is also enabled by '-Wextra'.
  6450. '-Wsign-conversion'
  6451. Warn for implicit conversions that may change the sign of an
  6452. integer value, like assigning a signed integer expression to an
  6453. unsigned integer variable. An explicit cast silences the warning.
  6454. In C, this option is enabled also by '-Wconversion'.
  6455. '-Wfloat-conversion'
  6456. Warn for implicit conversions that reduce the precision of a real
  6457. value. This includes conversions from real to integer, and from
  6458. higher precision real to lower precision real values. This option
  6459. is also enabled by '-Wconversion'.
  6460. '-Wno-scalar-storage-order'
  6461. Do not warn on suspicious constructs involving reverse scalar
  6462. storage order.
  6463. '-Wsizeof-array-div'
  6464. Warn about divisions of two sizeof operators when the first one is
  6465. applied to an array and the divisor does not equal the size of the
  6466. array element. In such a case, the computation will not yield the
  6467. number of elements in the array, which is likely what the user
  6468. intended. This warning warns e.g. about
  6469. int fn ()
  6470. {
  6471. int arr[10];
  6472. return sizeof (arr) / sizeof (short);
  6473. }
  6474. This warning is enabled by '-Wall'.
  6475. '-Wsizeof-pointer-div'
  6476. Warn for suspicious divisions of two sizeof expressions that divide
  6477. the pointer size by the element size, which is the usual way to
  6478. compute the array size but won't work out correctly with pointers.
  6479. This warning warns e.g. about 'sizeof (ptr) / sizeof (ptr[0])' if
  6480. 'ptr' is not an array, but a pointer. This warning is enabled by
  6481. '-Wall'.
  6482. '-Wsizeof-pointer-memaccess'
  6483. Warn for suspicious length parameters to certain string and memory
  6484. built-in functions if the argument uses 'sizeof'. This warning
  6485. triggers for example for 'memset (ptr, 0, sizeof (ptr));' if 'ptr'
  6486. is not an array, but a pointer, and suggests a possible fix, or
  6487. about 'memcpy (&foo, ptr, sizeof (&foo));'.
  6488. '-Wsizeof-pointer-memaccess' also warns about calls to bounded
  6489. string copy functions like 'strncat' or 'strncpy' that specify as
  6490. the bound a 'sizeof' expression of the source array. For example,
  6491. in the following function the call to 'strncat' specifies the size
  6492. of the source string as the bound. That is almost certainly a
  6493. mistake and so the call is diagnosed.
  6494. void make_file (const char *name)
  6495. {
  6496. char path[PATH_MAX];
  6497. strncpy (path, name, sizeof path - 1);
  6498. strncat (path, ".text", sizeof ".text");
  6499. ...
  6500. }
  6501. The '-Wsizeof-pointer-memaccess' option is enabled by '-Wall'.
  6502. '-Wno-sizeof-array-argument'
  6503. Do not warn when the 'sizeof' operator is applied to a parameter
  6504. that is declared as an array in a function definition. This
  6505. warning is enabled by default for C and C++ programs.
  6506. '-Wmemset-elt-size'
  6507. Warn for suspicious calls to the 'memset' built-in function, if the
  6508. first argument references an array, and the third argument is a
  6509. number equal to the number of elements, but not equal to the size
  6510. of the array in memory. This indicates that the user has omitted a
  6511. multiplication by the element size. This warning is enabled by
  6512. '-Wall'.
  6513. '-Wmemset-transposed-args'
  6514. Warn for suspicious calls to the 'memset' built-in function where
  6515. the second argument is not zero and the third argument is zero.
  6516. For example, the call 'memset (buf, sizeof buf, 0)' is diagnosed
  6517. because 'memset (buf, 0, sizeof buf)' was meant instead. The
  6518. diagnostic is only emitted if the third argument is a literal zero.
  6519. Otherwise, if it is an expression that is folded to zero, or a cast
  6520. of zero to some type, it is far less likely that the arguments have
  6521. been mistakenly transposed and no warning is emitted. This warning
  6522. is enabled by '-Wall'.
  6523. '-Waddress'
  6524. Warn about suspicious uses of memory addresses. These include
  6525. using the address of a function in a conditional expression, such
  6526. as 'void func(void); if (func)', and comparisons against the memory
  6527. address of a string literal, such as 'if (x == "abc")'. Such uses
  6528. typically indicate a programmer error: the address of a function
  6529. always evaluates to true, so their use in a conditional usually
  6530. indicate that the programmer forgot the parentheses in a function
  6531. call; and comparisons against string literals result in unspecified
  6532. behavior and are not portable in C, so they usually indicate that
  6533. the programmer intended to use 'strcmp'. This warning is enabled
  6534. by '-Wall'.
  6535. '-Wno-address-of-packed-member'
  6536. Do not warn when the address of packed member of struct or union is
  6537. taken, which usually results in an unaligned pointer value. This
  6538. is enabled by default.
  6539. '-Wlogical-op'
  6540. Warn about suspicious uses of logical operators in expressions.
  6541. This includes using logical operators in contexts where a bit-wise
  6542. operator is likely to be expected. Also warns when the operands of
  6543. a logical operator are the same:
  6544. extern int a;
  6545. if (a < 0 && a < 0) { ... }
  6546. '-Wlogical-not-parentheses'
  6547. Warn about logical not used on the left hand side operand of a
  6548. comparison. This option does not warn if the right operand is
  6549. considered to be a boolean expression. Its purpose is to detect
  6550. suspicious code like the following:
  6551. int a;
  6552. ...
  6553. if (!a > 1) { ... }
  6554. It is possible to suppress the warning by wrapping the LHS into
  6555. parentheses:
  6556. if ((!a) > 1) { ... }
  6557. This warning is enabled by '-Wall'.
  6558. '-Waggregate-return'
  6559. Warn if any functions that return structures or unions are defined
  6560. or called. (In languages where you can return an array, this also
  6561. elicits a warning.)
  6562. '-Wno-aggressive-loop-optimizations'
  6563. Warn if in a loop with constant number of iterations the compiler
  6564. detects undefined behavior in some statement during one or more of
  6565. the iterations.
  6566. '-Wno-attributes'
  6567. Do not warn if an unexpected '__attribute__' is used, such as
  6568. unrecognized attributes, function attributes applied to variables,
  6569. etc. This does not stop errors for incorrect use of supported
  6570. attributes.
  6571. '-Wno-builtin-declaration-mismatch'
  6572. Warn if a built-in function is declared with an incompatible
  6573. signature or as a non-function, or when a built-in function
  6574. declared with a type that does not include a prototype is called
  6575. with arguments whose promoted types do not match those expected by
  6576. the function. When '-Wextra' is specified, also warn when a
  6577. built-in function that takes arguments is declared without a
  6578. prototype. The '-Wbuiltin-declaration-mismatch' warning is enabled
  6579. by default. To avoid the warning include the appropriate header to
  6580. bring the prototypes of built-in functions into scope.
  6581. For example, the call to 'memset' below is diagnosed by the warning
  6582. because the function expects a value of type 'size_t' as its
  6583. argument but the type of '32' is 'int'. With '-Wextra', the
  6584. declaration of the function is diagnosed as well.
  6585. extern void* memset ();
  6586. void f (void *d)
  6587. {
  6588. memset (d, '\0', 32);
  6589. }
  6590. '-Wno-builtin-macro-redefined'
  6591. Do not warn if certain built-in macros are redefined. This
  6592. suppresses warnings for redefinition of '__TIMESTAMP__',
  6593. '__TIME__', '__DATE__', '__FILE__', and '__BASE_FILE__'.
  6594. '-Wstrict-prototypes (C and Objective-C only)'
  6595. Warn if a function is declared or defined without specifying the
  6596. argument types. (An old-style function definition is permitted
  6597. without a warning if preceded by a declaration that specifies the
  6598. argument types.)
  6599. '-Wold-style-declaration (C and Objective-C only)'
  6600. Warn for obsolescent usages, according to the C Standard, in a
  6601. declaration. For example, warn if storage-class specifiers like
  6602. 'static' are not the first things in a declaration. This warning
  6603. is also enabled by '-Wextra'.
  6604. '-Wold-style-definition (C and Objective-C only)'
  6605. Warn if an old-style function definition is used. A warning is
  6606. given even if there is a previous prototype. A definition using
  6607. '()' is not considered an old-style definition in C2X mode, because
  6608. it is equivalent to '(void)' in that case, but is considered an
  6609. old-style definition for older standards.
  6610. '-Wmissing-parameter-type (C and Objective-C only)'
  6611. A function parameter is declared without a type specifier in
  6612. K&R-style functions:
  6613. void foo(bar) { }
  6614. This warning is also enabled by '-Wextra'.
  6615. '-Wmissing-prototypes (C and Objective-C only)'
  6616. Warn if a global function is defined without a previous prototype
  6617. declaration. This warning is issued even if the definition itself
  6618. provides a prototype. Use this option to detect global functions
  6619. that do not have a matching prototype declaration in a header file.
  6620. This option is not valid for C++ because all function declarations
  6621. provide prototypes and a non-matching declaration declares an
  6622. overload rather than conflict with an earlier declaration. Use
  6623. '-Wmissing-declarations' to detect missing declarations in C++.
  6624. '-Wmissing-declarations'
  6625. Warn if a global function is defined without a previous
  6626. declaration. Do so even if the definition itself provides a
  6627. prototype. Use this option to detect global functions that are not
  6628. declared in header files. In C, no warnings are issued for
  6629. functions with previous non-prototype declarations; use
  6630. '-Wmissing-prototypes' to detect missing prototypes. In C++, no
  6631. warnings are issued for function templates, or for inline
  6632. functions, or for functions in anonymous namespaces.
  6633. '-Wmissing-field-initializers'
  6634. Warn if a structure's initializer has some fields missing. For
  6635. example, the following code causes such a warning, because 'x.h' is
  6636. implicitly zero:
  6637. struct s { int f, g, h; };
  6638. struct s x = { 3, 4 };
  6639. This option does not warn about designated initializers, so the
  6640. following modification does not trigger a warning:
  6641. struct s { int f, g, h; };
  6642. struct s x = { .f = 3, .g = 4 };
  6643. In C this option does not warn about the universal zero initializer
  6644. '{ 0 }':
  6645. struct s { int f, g, h; };
  6646. struct s x = { 0 };
  6647. Likewise, in C++ this option does not warn about the empty { }
  6648. initializer, for example:
  6649. struct s { int f, g, h; };
  6650. s x = { };
  6651. This warning is included in '-Wextra'. To get other '-Wextra'
  6652. warnings without this one, use '-Wextra
  6653. -Wno-missing-field-initializers'.
  6654. '-Wno-multichar'
  6655. Do not warn if a multicharacter constant (''FOOF'') is used.
  6656. Usually they indicate a typo in the user's code, as they have
  6657. implementation-defined values, and should not be used in portable
  6658. code.
  6659. '-Wnormalized=[none|id|nfc|nfkc]'
  6660. In ISO C and ISO C++, two identifiers are different if they are
  6661. different sequences of characters. However, sometimes when
  6662. characters outside the basic ASCII character set are used, you can
  6663. have two different character sequences that look the same. To
  6664. avoid confusion, the ISO 10646 standard sets out some
  6665. "normalization rules" which when applied ensure that two sequences
  6666. that look the same are turned into the same sequence. GCC can warn
  6667. you if you are using identifiers that have not been normalized;
  6668. this option controls that warning.
  6669. There are four levels of warning supported by GCC. The default is
  6670. '-Wnormalized=nfc', which warns about any identifier that is not in
  6671. the ISO 10646 "C" normalized form, "NFC". NFC is the recommended
  6672. form for most uses. It is equivalent to '-Wnormalized'.
  6673. Unfortunately, there are some characters allowed in identifiers by
  6674. ISO C and ISO C++ that, when turned into NFC, are not allowed in
  6675. identifiers. That is, there's no way to use these symbols in
  6676. portable ISO C or C++ and have all your identifiers in NFC.
  6677. '-Wnormalized=id' suppresses the warning for these characters. It
  6678. is hoped that future versions of the standards involved will
  6679. correct this, which is why this option is not the default.
  6680. You can switch the warning off for all characters by writing
  6681. '-Wnormalized=none' or '-Wno-normalized'. You should only do this
  6682. if you are using some other normalization scheme (like "D"),
  6683. because otherwise you can easily create bugs that are literally
  6684. impossible to see.
  6685. Some characters in ISO 10646 have distinct meanings but look
  6686. identical in some fonts or display methodologies, especially once
  6687. formatting has been applied. For instance '\u207F', "SUPERSCRIPT
  6688. LATIN SMALL LETTER N", displays just like a regular 'n' that has
  6689. been placed in a superscript. ISO 10646 defines the "NFKC"
  6690. normalization scheme to convert all these into a standard form as
  6691. well, and GCC warns if your code is not in NFKC if you use
  6692. '-Wnormalized=nfkc'. This warning is comparable to warning about
  6693. every identifier that contains the letter O because it might be
  6694. confused with the digit 0, and so is not the default, but may be
  6695. useful as a local coding convention if the programming environment
  6696. cannot be fixed to display these characters distinctly.
  6697. '-Wno-attribute-warning'
  6698. Do not warn about usage of functions (*note Function Attributes::)
  6699. declared with 'warning' attribute. By default, this warning is
  6700. enabled. '-Wno-attribute-warning' can be used to disable the
  6701. warning or '-Wno-error=attribute-warning' can be used to disable
  6702. the error when compiled with '-Werror' flag.
  6703. '-Wno-deprecated'
  6704. Do not warn about usage of deprecated features. *Note Deprecated
  6705. Features::.
  6706. '-Wno-deprecated-declarations'
  6707. Do not warn about uses of functions (*note Function Attributes::),
  6708. variables (*note Variable Attributes::), and types (*note Type
  6709. Attributes::) marked as deprecated by using the 'deprecated'
  6710. attribute.
  6711. '-Wno-overflow'
  6712. Do not warn about compile-time overflow in constant expressions.
  6713. '-Wno-odr'
  6714. Warn about One Definition Rule violations during link-time
  6715. optimization. Enabled by default.
  6716. '-Wopenmp-simd'
  6717. Warn if the vectorizer cost model overrides the OpenMP simd
  6718. directive set by user. The '-fsimd-cost-model=unlimited' option
  6719. can be used to relax the cost model.
  6720. '-Woverride-init (C and Objective-C only)'
  6721. Warn if an initialized field without side effects is overridden
  6722. when using designated initializers (*note Designated Initializers:
  6723. Designated Inits.).
  6724. This warning is included in '-Wextra'. To get other '-Wextra'
  6725. warnings without this one, use '-Wextra -Wno-override-init'.
  6726. '-Wno-override-init-side-effects (C and Objective-C only)'
  6727. Do not warn if an initialized field with side effects is overridden
  6728. when using designated initializers (*note Designated Initializers:
  6729. Designated Inits.). This warning is enabled by default.
  6730. '-Wpacked'
  6731. Warn if a structure is given the packed attribute, but the packed
  6732. attribute has no effect on the layout or size of the structure.
  6733. Such structures may be mis-aligned for little benefit. For
  6734. instance, in this code, the variable 'f.x' in 'struct bar' is
  6735. misaligned even though 'struct bar' does not itself have the packed
  6736. attribute:
  6737. struct foo {
  6738. int x;
  6739. char a, b, c, d;
  6740. } __attribute__((packed));
  6741. struct bar {
  6742. char z;
  6743. struct foo f;
  6744. };
  6745. '-Wnopacked-bitfield-compat'
  6746. The 4.1, 4.2 and 4.3 series of GCC ignore the 'packed' attribute on
  6747. bit-fields of type 'char'. This was fixed in GCC 4.4 but the
  6748. change can lead to differences in the structure layout. GCC
  6749. informs you when the offset of such a field has changed in GCC 4.4.
  6750. For example there is no longer a 4-bit padding between field 'a'
  6751. and 'b' in this structure:
  6752. struct foo
  6753. {
  6754. char a:4;
  6755. char b:8;
  6756. } __attribute__ ((packed));
  6757. This warning is enabled by default. Use
  6758. '-Wno-packed-bitfield-compat' to disable this warning.
  6759. '-Wpacked-not-aligned (C, C++, Objective-C and Objective-C++ only)'
  6760. Warn if a structure field with explicitly specified alignment in a
  6761. packed struct or union is misaligned. For example, a warning will
  6762. be issued on 'struct S', like, 'warning: alignment 1 of 'struct S'
  6763. is less than 8', in this code:
  6764. struct __attribute__ ((aligned (8))) S8 { char a[8]; };
  6765. struct __attribute__ ((packed)) S {
  6766. struct S8 s8;
  6767. };
  6768. This warning is enabled by '-Wall'.
  6769. '-Wpadded'
  6770. Warn if padding is included in a structure, either to align an
  6771. element of the structure or to align the whole structure.
  6772. Sometimes when this happens it is possible to rearrange the fields
  6773. of the structure to reduce the padding and so make the structure
  6774. smaller.
  6775. '-Wredundant-decls'
  6776. Warn if anything is declared more than once in the same scope, even
  6777. in cases where multiple declaration is valid and changes nothing.
  6778. '-Wrestrict'
  6779. Warn when an object referenced by a 'restrict'-qualified parameter
  6780. (or, in C++, a '__restrict'-qualified parameter) is aliased by
  6781. another argument, or when copies between such objects overlap. For
  6782. example, the call to the 'strcpy' function below attempts to
  6783. truncate the string by replacing its initial characters with the
  6784. last four. However, because the call writes the terminating NUL
  6785. into 'a[4]', the copies overlap and the call is diagnosed.
  6786. void foo (void)
  6787. {
  6788. char a[] = "abcd1234";
  6789. strcpy (a, a + 4);
  6790. ...
  6791. }
  6792. The '-Wrestrict' option detects some instances of simple overlap
  6793. even without optimization but works best at '-O2' and above. It is
  6794. included in '-Wall'.
  6795. '-Wnested-externs (C and Objective-C only)'
  6796. Warn if an 'extern' declaration is encountered within a function.
  6797. '-Winline'
  6798. Warn if a function that is declared as inline cannot be inlined.
  6799. Even with this option, the compiler does not warn about failures to
  6800. inline functions declared in system headers.
  6801. The compiler uses a variety of heuristics to determine whether or
  6802. not to inline a function. For example, the compiler takes into
  6803. account the size of the function being inlined and the amount of
  6804. inlining that has already been done in the current function.
  6805. Therefore, seemingly insignificant changes in the source program
  6806. can cause the warnings produced by '-Winline' to appear or
  6807. disappear.
  6808. '-Wint-in-bool-context'
  6809. Warn for suspicious use of integer values where boolean values are
  6810. expected, such as conditional expressions (?:) using non-boolean
  6811. integer constants in boolean context, like 'if (a <= b ? 2 : 3)'.
  6812. Or left shifting of signed integers in boolean context, like 'for
  6813. (a = 0; 1 << a; a++);'. Likewise for all kinds of multiplications
  6814. regardless of the data type. This warning is enabled by '-Wall'.
  6815. '-Wno-int-to-pointer-cast'
  6816. Suppress warnings from casts to pointer type of an integer of a
  6817. different size. In C++, casting to a pointer type of smaller size
  6818. is an error. 'Wint-to-pointer-cast' is enabled by default.
  6819. '-Wno-pointer-to-int-cast (C and Objective-C only)'
  6820. Suppress warnings from casts from a pointer to an integer type of a
  6821. different size.
  6822. '-Winvalid-pch'
  6823. Warn if a precompiled header (*note Precompiled Headers::) is found
  6824. in the search path but cannot be used.
  6825. '-Wlong-long'
  6826. Warn if 'long long' type is used. This is enabled by either
  6827. '-Wpedantic' or '-Wtraditional' in ISO C90 and C++98 modes. To
  6828. inhibit the warning messages, use '-Wno-long-long'.
  6829. '-Wvariadic-macros'
  6830. Warn if variadic macros are used in ISO C90 mode, or if the GNU
  6831. alternate syntax is used in ISO C99 mode. This is enabled by
  6832. either '-Wpedantic' or '-Wtraditional'. To inhibit the warning
  6833. messages, use '-Wno-variadic-macros'.
  6834. '-Wno-varargs'
  6835. Do not warn upon questionable usage of the macros used to handle
  6836. variable arguments like 'va_start'. These warnings are enabled by
  6837. default.
  6838. '-Wvector-operation-performance'
  6839. Warn if vector operation is not implemented via SIMD capabilities
  6840. of the architecture. Mainly useful for the performance tuning.
  6841. Vector operation can be implemented 'piecewise', which means that
  6842. the scalar operation is performed on every vector element; 'in
  6843. parallel', which means that the vector operation is implemented
  6844. using scalars of wider type, which normally is more performance
  6845. efficient; and 'as a single scalar', which means that vector fits
  6846. into a scalar type.
  6847. '-Wvla'
  6848. Warn if a variable-length array is used in the code. '-Wno-vla'
  6849. prevents the '-Wpedantic' warning of the variable-length array.
  6850. '-Wvla-larger-than=BYTE-SIZE'
  6851. If this option is used, the compiler warns for declarations of
  6852. variable-length arrays whose size is either unbounded, or bounded
  6853. by an argument that allows the array size to exceed BYTE-SIZE
  6854. bytes. This is similar to how '-Walloca-larger-than='BYTE-SIZE
  6855. works, but with variable-length arrays.
  6856. Note that GCC may optimize small variable-length arrays of a known
  6857. value into plain arrays, so this warning may not get triggered for
  6858. such arrays.
  6859. '-Wvla-larger-than=''PTRDIFF_MAX' is enabled by default but is
  6860. typically only effective when '-ftree-vrp' is active (default for
  6861. '-O2' and above).
  6862. See also '-Walloca-larger-than=BYTE-SIZE'.
  6863. '-Wno-vla-larger-than'
  6864. Disable '-Wvla-larger-than=' warnings. The option is equivalent to
  6865. '-Wvla-larger-than=''SIZE_MAX' or larger.
  6866. '-Wvla-parameter'
  6867. Warn about redeclarations of functions involving arguments of
  6868. Variable Length Array types of inconsistent kinds or forms, and
  6869. enable the detection of out-of-bounds accesses to such parameters
  6870. by warnings such as '-Warray-bounds'.
  6871. If the first function declaration uses the VLA form the bound
  6872. specified in the array is assumed to be the minimum number of
  6873. elements expected to be provided in calls to the function and the
  6874. maximum number of elements accessed by it. Failing to provide
  6875. arguments of sufficient size or accessing more than the maximum
  6876. number of elements may be diagnosed.
  6877. For example, the warning triggers for the following redeclarations
  6878. because the first one allows an array of any size to be passed to
  6879. 'f' while the second one specifies that the array argument must
  6880. have at least 'n' elements. In addition, calling 'f' with the
  6881. assotiated VLA bound parameter in excess of the actual VLA bound
  6882. triggers a warning as well.
  6883. void f (int n, int[n]);
  6884. void f (int, int[]); // warning: argument 2 previously declared as a VLA
  6885. void g (int n)
  6886. {
  6887. if (n > 4)
  6888. return;
  6889. int a[n];
  6890. f (sizeof a, a); // warning: access to a by f may be out of bounds
  6891. ...
  6892. }
  6893. '-Wvla-parameter' is included in '-Wall'. The '-Warray-parameter'
  6894. option triggers warnings for similar problems involving ordinary
  6895. array arguments.
  6896. '-Wvolatile-register-var'
  6897. Warn if a register variable is declared volatile. The volatile
  6898. modifier does not inhibit all optimizations that may eliminate
  6899. reads and/or writes to register variables. This warning is enabled
  6900. by '-Wall'.
  6901. '-Wdisabled-optimization'
  6902. Warn if a requested optimization pass is disabled. This warning
  6903. does not generally indicate that there is anything wrong with your
  6904. code; it merely indicates that GCC's optimizers are unable to
  6905. handle the code effectively. Often, the problem is that your code
  6906. is too big or too complex; GCC refuses to optimize programs when
  6907. the optimization itself is likely to take inordinate amounts of
  6908. time.
  6909. '-Wpointer-sign (C and Objective-C only)'
  6910. Warn for pointer argument passing or assignment with different
  6911. signedness. This option is only supported for C and Objective-C.
  6912. It is implied by '-Wall' and by '-Wpedantic', which can be disabled
  6913. with '-Wno-pointer-sign'.
  6914. '-Wstack-protector'
  6915. This option is only active when '-fstack-protector' is active. It
  6916. warns about functions that are not protected against stack
  6917. smashing.
  6918. '-Woverlength-strings'
  6919. Warn about string constants that are longer than the "minimum
  6920. maximum" length specified in the C standard. Modern compilers
  6921. generally allow string constants that are much longer than the
  6922. standard's minimum limit, but very portable programs should avoid
  6923. using longer strings.
  6924. The limit applies _after_ string constant concatenation, and does
  6925. not count the trailing NUL. In C90, the limit was 509 characters;
  6926. in C99, it was raised to 4095. C++98 does not specify a normative
  6927. minimum maximum, so we do not diagnose overlength strings in C++.
  6928. This option is implied by '-Wpedantic', and can be disabled with
  6929. '-Wno-overlength-strings'.
  6930. '-Wunsuffixed-float-constants (C and Objective-C only)'
  6931. Issue a warning for any floating constant that does not have a
  6932. suffix. When used together with '-Wsystem-headers' it warns about
  6933. such constants in system header files. This can be useful when
  6934. preparing code to use with the 'FLOAT_CONST_DECIMAL64' pragma from
  6935. the decimal floating-point extension to C99.
  6936. '-Wno-lto-type-mismatch'
  6937. During the link-time optimization, do not warn about type
  6938. mismatches in global declarations from different compilation units.
  6939. Requires '-flto' to be enabled. Enabled by default.
  6940. '-Wno-designated-init (C and Objective-C only)'
  6941. Suppress warnings when a positional initializer is used to
  6942. initialize a structure that has been marked with the
  6943. 'designated_init' attribute.
  6944. 
  6945. File: gcc.info, Node: Static Analyzer Options, Next: Debugging Options, Prev: Warning Options, Up: Invoking GCC
  6946. 3.9 Options That Control Static Analysis
  6947. ========================================
  6948. '-fanalyzer'
  6949. This option enables an static analysis of program flow which looks
  6950. for "interesting" interprocedural paths through the code, and
  6951. issues warnings for problems found on them.
  6952. This analysis is much more expensive than other GCC warnings.
  6953. Enabling this option effectively enables the following warnings:
  6954. -Wanalyzer-double-fclose
  6955. -Wanalyzer-double-free
  6956. -Wanalyzer-exposure-through-output-file
  6957. -Wanalyzer-file-leak
  6958. -Wanalyzer-free-of-non-heap
  6959. -Wanalyzer-malloc-leak
  6960. -Wanalyzer-mismatching-deallocation
  6961. -Wanalyzer-possible-null-argument
  6962. -Wanalyzer-possible-null-dereference
  6963. -Wanalyzer-null-argument
  6964. -Wanalyzer-null-dereference
  6965. -Wanalyzer-shift-count-negative
  6966. -Wanalyzer-shift-count-overflow
  6967. -Wanalyzer-stale-setjmp-buffer
  6968. -Wanalyzer-tainted-array-index
  6969. -Wanalyzer-unsafe-call-within-signal-handler
  6970. -Wanalyzer-use-after-free
  6971. -Wanalyzer-use-of-pointer-in-stale-stack-frame
  6972. -Wanalyzer-write-to-const
  6973. -Wanalyzer-write-to-string-literal
  6974. This option is only available if GCC was configured with analyzer
  6975. support enabled.
  6976. '-Wanalyzer-too-complex'
  6977. If '-fanalyzer' is enabled, the analyzer uses various heuristics to
  6978. attempt to explore the control flow and data flow in the program,
  6979. but these can be defeated by sufficiently complicated code.
  6980. By default, the analysis silently stops if the code is too
  6981. complicated for the analyzer to fully explore and it reaches an
  6982. internal limit. The '-Wanalyzer-too-complex' option warns if this
  6983. occurs.
  6984. '-Wno-analyzer-double-fclose'
  6985. This warning requires '-fanalyzer', which enables it; use
  6986. '-Wno-analyzer-double-fclose' to disable it.
  6987. This diagnostic warns for paths through the code in which a 'FILE
  6988. *' can have 'fclose' called on it more than once.
  6989. '-Wno-analyzer-double-free'
  6990. This warning requires '-fanalyzer', which enables it; use
  6991. '-Wno-analyzer-double-free' to disable it.
  6992. This diagnostic warns for paths through the code in which a pointer
  6993. can have a deallocator called on it more than once, either 'free',
  6994. or a deallocator referenced by attribute 'malloc'.
  6995. '-Wno-analyzer-exposure-through-output-file'
  6996. This warning requires '-fanalyzer', which enables it; use
  6997. '-Wno-analyzer-exposure-through-output-file' to disable it.
  6998. This diagnostic warns for paths through the code in which a
  6999. security-sensitive value is written to an output file (such as
  7000. writing a password to a log file).
  7001. '-Wno-analyzer-file-leak'
  7002. This warning requires '-fanalyzer', which enables it; use
  7003. '-Wno-analyzer-file-leak' to disable it.
  7004. This diagnostic warns for paths through the code in which a
  7005. '<stdio.h>' 'FILE *' stream object is leaked.
  7006. '-Wno-analyzer-free-of-non-heap'
  7007. This warning requires '-fanalyzer', which enables it; use
  7008. '-Wno-analyzer-free-of-non-heap' to disable it.
  7009. This diagnostic warns for paths through the code in which 'free' is
  7010. called on a non-heap pointer (e.g. an on-stack buffer, or a
  7011. global).
  7012. '-Wno-analyzer-malloc-leak'
  7013. This warning requires '-fanalyzer', which enables it; use
  7014. '-Wno-analyzer-malloc-leak' to disable it.
  7015. This diagnostic warns for paths through the code in which a pointer
  7016. allocated via an allocator is leaked: either 'malloc', or a
  7017. function marked with attribute 'malloc'.
  7018. '-Wno-analyzer-mismatching-deallocation'
  7019. This warning requires '-fanalyzer', which enables it; use
  7020. '-Wno-analyzer-mismatching-deallocation' to disable it.
  7021. This diagnostic warns for paths through the code in which the wrong
  7022. deallocation function is called on a pointer value, based on which
  7023. function was used to allocate the pointer value. The diagnostic
  7024. will warn about mismatches between 'free', scalar 'delete' and
  7025. vector 'delete[]', and those marked as allocator/deallocator pairs
  7026. using attribute 'malloc'.
  7027. '-Wno-analyzer-possible-null-argument'
  7028. This warning requires '-fanalyzer', which enables it; use
  7029. '-Wno-analyzer-possible-null-argument' to disable it.
  7030. This diagnostic warns for paths through the code in which a
  7031. possibly-NULL value is passed to a function argument marked with
  7032. '__attribute__((nonnull))' as requiring a non-NULL value.
  7033. '-Wno-analyzer-possible-null-dereference'
  7034. This warning requires '-fanalyzer', which enables it; use
  7035. '-Wno-analyzer-possible-null-dereference' to disable it.
  7036. This diagnostic warns for paths through the code in which a
  7037. possibly-NULL value is dereferenced.
  7038. '-Wno-analyzer-null-argument'
  7039. This warning requires '-fanalyzer', which enables it; use
  7040. '-Wno-analyzer-null-argument' to disable it.
  7041. This diagnostic warns for paths through the code in which a value
  7042. known to be NULL is passed to a function argument marked with
  7043. '__attribute__((nonnull))' as requiring a non-NULL value.
  7044. '-Wno-analyzer-null-dereference'
  7045. This warning requires '-fanalyzer', which enables it; use
  7046. '-Wno-analyzer-null-dereference' to disable it.
  7047. This diagnostic warns for paths through the code in which a value
  7048. known to be NULL is dereferenced.
  7049. '-Wno-analyzer-shift-count-negative'
  7050. This warning requires '-fanalyzer', which enables it; use
  7051. '-Wno-analyzer-shift-count-negative' to disable it.
  7052. This diagnostic warns for paths through the code in which a shift
  7053. is attempted with a negative count. It is analogous to the
  7054. '-Wshift-count-negative' diagnostic implemented in the C/C++ front
  7055. ends, but is implemented based on analyzing interprocedural paths,
  7056. rather than merely parsing the syntax tree. However, the analyzer
  7057. does not prioritize detection of such paths, so false negatives are
  7058. more likely relative to other warnings.
  7059. '-Wno-analyzer-shift-count-overflow'
  7060. This warning requires '-fanalyzer', which enables it; use
  7061. '-Wno-analyzer-shift-count-overflow' to disable it.
  7062. This diagnostic warns for paths through the code in which a shift
  7063. is attempted with a count greater than or equal to the precision of
  7064. the operand's type. It is analogous to the
  7065. '-Wshift-count-overflow' diagnostic implemented in the C/C++ front
  7066. ends, but is implemented based on analyzing interprocedural paths,
  7067. rather than merely parsing the syntax tree. However, the analyzer
  7068. does not prioritize detection of such paths, so false negatives are
  7069. more likely relative to other warnings.
  7070. '-Wno-analyzer-stale-setjmp-buffer'
  7071. This warning requires '-fanalyzer', which enables it; use
  7072. '-Wno-analyzer-stale-setjmp-buffer' to disable it.
  7073. This diagnostic warns for paths through the code in which 'longjmp'
  7074. is called to rewind to a 'jmp_buf' relating to a 'setjmp' call in a
  7075. function that has returned.
  7076. When 'setjmp' is called on a 'jmp_buf' to record a rewind location,
  7077. it records the stack frame. The stack frame becomes invalid when
  7078. the function containing the 'setjmp' call returns. Attempting to
  7079. rewind to it via 'longjmp' would reference a stack frame that no
  7080. longer exists, and likely lead to a crash (or worse).
  7081. '-Wno-analyzer-tainted-array-index'
  7082. This warning requires both '-fanalyzer' and
  7083. '-fanalyzer-checker=taint' to enable it; use
  7084. '-Wno-analyzer-tainted-array-index' to disable it.
  7085. This diagnostic warns for paths through the code in which a value
  7086. that could be under an attacker's control is used as the index of
  7087. an array access without being sanitized.
  7088. '-Wno-analyzer-unsafe-call-within-signal-handler'
  7089. This warning requires '-fanalyzer', which enables it; use
  7090. '-Wno-analyzer-unsafe-call-within-signal-handler' to disable it.
  7091. This diagnostic warns for paths through the code in which a
  7092. function known to be async-signal-unsafe (such as 'fprintf') is
  7093. called from a signal handler.
  7094. '-Wno-analyzer-use-after-free'
  7095. This warning requires '-fanalyzer', which enables it; use
  7096. '-Wno-analyzer-use-after-free' to disable it.
  7097. This diagnostic warns for paths through the code in which a pointer
  7098. is used after a deallocator is called on it: either 'free', or a
  7099. deallocator referenced by attribute 'malloc'.
  7100. '-Wno-analyzer-use-of-pointer-in-stale-stack-frame'
  7101. This warning requires '-fanalyzer', which enables it; use
  7102. '-Wno-analyzer-use-of-pointer-in-stale-stack-frame' to disable it.
  7103. This diagnostic warns for paths through the code in which a pointer
  7104. is dereferenced that points to a variable in a stale stack frame.
  7105. '-Wno-analyzer-write-to-const'
  7106. This warning requires '-fanalyzer', which enables it; use
  7107. '-Wno-analyzer-write-to-const' to disable it.
  7108. This diagnostic warns for paths through the code in which the
  7109. analyzer detects an attempt to write through a pointer to a 'const'
  7110. object. However, the analyzer does not prioritize detection of
  7111. such paths, so false negatives are more likely relative to other
  7112. warnings.
  7113. '-Wno-analyzer-write-to-string-literal'
  7114. This warning requires '-fanalyzer', which enables it; use
  7115. '-Wno-analyzer-write-to-string-literal' to disable it.
  7116. This diagnostic warns for paths through the code in which the
  7117. analyzer detects an attempt to write through a pointer to a string
  7118. literal. However, the analyzer does not prioritize detection of
  7119. such paths, so false negatives are more likely relative to other
  7120. warnings.
  7121. Pertinent parameters for controlling the exploration are: '--param
  7122. analyzer-bb-explosion-factor=VALUE', '--param
  7123. analyzer-max-enodes-per-program-point=VALUE', '--param
  7124. analyzer-max-recursion-depth=VALUE', and '--param
  7125. analyzer-min-snodes-for-call-summary=VALUE'.
  7126. The following options control the analyzer.
  7127. '-fanalyzer-call-summaries'
  7128. Simplify interprocedural analysis by computing the effect of
  7129. certain calls, rather than exploring all paths through the function
  7130. from callsite to each possible return.
  7131. If enabled, call summaries are only used for functions with more
  7132. than one call site, and that are sufficiently complicated (as per
  7133. '--param analyzer-min-snodes-for-call-summary=VALUE').
  7134. '-fanalyzer-checker=NAME'
  7135. Restrict the analyzer to run just the named checker, and enable it.
  7136. Some checkers are disabled by default (even with '-fanalyzer'),
  7137. such as the 'taint' checker that implements
  7138. '-Wanalyzer-tainted-array-index', and this option is required to
  7139. enable them.
  7140. '-fno-analyzer-feasibility'
  7141. This option is intended for analyzer developers.
  7142. By default the analyzer verifies that there is a feasible control
  7143. flow path for each diagnostic it emits: that the conditions that
  7144. hold are not mutually exclusive. Diagnostics for which no feasible
  7145. path can be found are rejected. This filtering can be suppressed
  7146. with '-fno-analyzer-feasibility', for debugging issues in this
  7147. code.
  7148. '-fanalyzer-fine-grained'
  7149. This option is intended for analyzer developers.
  7150. Internally the analyzer builds an "exploded graph" that combines
  7151. control flow graphs with data flow information.
  7152. By default, an edge in this graph can contain the effects of a run
  7153. of multiple statements within a basic block. With
  7154. '-fanalyzer-fine-grained', each statement gets its own edge.
  7155. '-fanalyzer-show-duplicate-count'
  7156. This option is intended for analyzer developers: if multiple
  7157. diagnostics have been detected as being duplicates of each other,
  7158. it emits a note when reporting the best diagnostic, giving the
  7159. number of additional diagnostics that were suppressed by the
  7160. deduplication logic.
  7161. '-fno-analyzer-state-merge'
  7162. This option is intended for analyzer developers.
  7163. By default the analyzer attempts to simplify analysis by merging
  7164. sufficiently similar states at each program point as it builds its
  7165. "exploded graph". With '-fno-analyzer-state-merge' this merging
  7166. can be suppressed, for debugging state-handling issues.
  7167. '-fno-analyzer-state-purge'
  7168. This option is intended for analyzer developers.
  7169. By default the analyzer attempts to simplify analysis by purging
  7170. aspects of state at a program point that appear to no longer be
  7171. relevant e.g. the values of locals that aren't accessed later in
  7172. the function and which aren't relevant to leak analysis.
  7173. With '-fno-analyzer-state-purge' this purging of state can be
  7174. suppressed, for debugging state-handling issues.
  7175. '-fanalyzer-transitivity'
  7176. This option enables transitivity of constraints within the
  7177. analyzer.
  7178. '-fanalyzer-verbose-edges'
  7179. This option is intended for analyzer developers. It enables more
  7180. verbose, lower-level detail in the descriptions of control flow
  7181. within diagnostic paths.
  7182. '-fanalyzer-verbose-state-changes'
  7183. This option is intended for analyzer developers. It enables more
  7184. verbose, lower-level detail in the descriptions of events relating
  7185. to state machines within diagnostic paths.
  7186. '-fanalyzer-verbosity=LEVEL'
  7187. This option controls the complexity of the control flow paths that
  7188. are emitted for analyzer diagnostics.
  7189. The LEVEL can be one of:
  7190. '0'
  7191. At this level, interprocedural call and return events are
  7192. displayed, along with the most pertinent state-change events
  7193. relating to a diagnostic. For example, for a double-'free'
  7194. diagnostic, both calls to 'free' will be shown.
  7195. '1'
  7196. As per the previous level, but also show events for the entry
  7197. to each function.
  7198. '2'
  7199. As per the previous level, but also show events relating to
  7200. control flow that are significant to triggering the issue
  7201. (e.g. "true path taken" at a conditional).
  7202. This level is the default.
  7203. '3'
  7204. As per the previous level, but show all control flow events,
  7205. not just significant ones.
  7206. '4'
  7207. This level is intended for analyzer developers; it adds
  7208. various other events intended for debugging the analyzer.
  7209. '-fdump-analyzer'
  7210. Dump internal details about what the analyzer is doing to
  7211. 'FILE.analyzer.txt'. This option is overridden by
  7212. '-fdump-analyzer-stderr'.
  7213. '-fdump-analyzer-stderr'
  7214. Dump internal details about what the analyzer is doing to stderr.
  7215. This option overrides '-fdump-analyzer'.
  7216. '-fdump-analyzer-callgraph'
  7217. Dump a representation of the call graph suitable for viewing with
  7218. GraphViz to 'FILE.callgraph.dot'.
  7219. '-fdump-analyzer-exploded-graph'
  7220. Dump a representation of the "exploded graph" suitable for viewing
  7221. with GraphViz to 'FILE.eg.dot'. Nodes are color-coded based on
  7222. state-machine states to emphasize state changes.
  7223. '-fdump-analyzer-exploded-nodes'
  7224. Emit diagnostics showing where nodes in the "exploded graph" are in
  7225. relation to the program source.
  7226. '-fdump-analyzer-exploded-nodes-2'
  7227. Dump a textual representation of the "exploded graph" to
  7228. 'FILE.eg.txt'.
  7229. '-fdump-analyzer-exploded-nodes-3'
  7230. Dump a textual representation of the "exploded graph" to one dump
  7231. file per node, to 'FILE.eg-ID.txt'. This is typically a large
  7232. number of dump files.
  7233. '-fdump-analyzer-feasibility'
  7234. Dump internal details about the analyzer's search for feasible
  7235. paths. The details are written in a form suitable for viewing with
  7236. GraphViz to filenames of the form 'FILE.*.fg.dot' and
  7237. 'FILE.*.tg.dot'.
  7238. '-fdump-analyzer-json'
  7239. Dump a compressed JSON representation of analyzer internals to
  7240. 'FILE.analyzer.json.gz'. The precise format is subject to change.
  7241. '-fdump-analyzer-state-purge'
  7242. As per '-fdump-analyzer-supergraph', dump a representation of the
  7243. "supergraph" suitable for viewing with GraphViz, but annotate the
  7244. graph with information on what state will be purged at each node.
  7245. The graph is written to 'FILE.state-purge.dot'.
  7246. '-fdump-analyzer-supergraph'
  7247. Dump representations of the "supergraph" suitable for viewing with
  7248. GraphViz to 'FILE.supergraph.dot' and to 'FILE.supergraph-eg.dot'.
  7249. These show all of the control flow graphs in the program, with
  7250. interprocedural edges for calls and returns. The second dump
  7251. contains annotations showing nodes in the "exploded graph" and
  7252. diagnostics associated with them.
  7253. 
  7254. File: gcc.info, Node: Debugging Options, Next: Optimize Options, Prev: Static Analyzer Options, Up: Invoking GCC
  7255. 3.10 Options for Debugging Your Program
  7256. =======================================
  7257. To tell GCC to emit extra information for use by a debugger, in almost
  7258. all cases you need only to add '-g' to your other options.
  7259. GCC allows you to use '-g' with '-O'. The shortcuts taken by optimized
  7260. code may occasionally be surprising: some variables you declared may not
  7261. exist at all; flow of control may briefly move where you did not expect
  7262. it; some statements may not be executed because they compute constant
  7263. results or their values are already at hand; some statements may execute
  7264. in different places because they have been moved out of loops.
  7265. Nevertheless it is possible to debug optimized output. This makes it
  7266. reasonable to use the optimizer for programs that might have bugs.
  7267. If you are not using some other optimization option, consider using
  7268. '-Og' (*note Optimize Options::) with '-g'. With no '-O' option at all,
  7269. some compiler passes that collect information useful for debugging do
  7270. not run at all, so that '-Og' may result in a better debugging
  7271. experience.
  7272. '-g'
  7273. Produce debugging information in the operating system's native
  7274. format (stabs, COFF, XCOFF, or DWARF). GDB can work with this
  7275. debugging information.
  7276. On most systems that use stabs format, '-g' enables use of extra
  7277. debugging information that only GDB can use; this extra information
  7278. makes debugging work better in GDB but probably makes other
  7279. debuggers crash or refuse to read the program. If you want to
  7280. control for certain whether to generate the extra information, use
  7281. '-gstabs+', '-gstabs', '-gxcoff+', '-gxcoff', or '-gvms' (see
  7282. below).
  7283. '-ggdb'
  7284. Produce debugging information for use by GDB. This means to use
  7285. the most expressive format available (DWARF, stabs, or the native
  7286. format if neither of those are supported), including GDB extensions
  7287. if at all possible.
  7288. '-gdwarf'
  7289. '-gdwarf-VERSION'
  7290. Produce debugging information in DWARF format (if that is
  7291. supported). The value of VERSION may be either 2, 3, 4 or 5; the
  7292. default version for most targets is 5 (with the exception of
  7293. VxWorks, TPF and Darwin/Mac OS X, which default to version 2, and
  7294. AIX, which defaults to version 4).
  7295. Note that with DWARF Version 2, some ports require and always use
  7296. some non-conflicting DWARF 3 extensions in the unwind tables.
  7297. Version 4 may require GDB 7.0 and '-fvar-tracking-assignments' for
  7298. maximum benefit. Version 5 requires GDB 8.0 or higher.
  7299. GCC no longer supports DWARF Version 1, which is substantially
  7300. different than Version 2 and later. For historical reasons, some
  7301. other DWARF-related options such as '-fno-dwarf2-cfi-asm') retain a
  7302. reference to DWARF Version 2 in their names, but apply to all
  7303. currently-supported versions of DWARF.
  7304. '-gstabs'
  7305. Produce debugging information in stabs format (if that is
  7306. supported), without GDB extensions. This is the format used by DBX
  7307. on most BSD systems. On MIPS, Alpha and System V Release 4 systems
  7308. this option produces stabs debugging output that is not understood
  7309. by DBX. On System V Release 4 systems this option requires the GNU
  7310. assembler.
  7311. '-gstabs+'
  7312. Produce debugging information in stabs format (if that is
  7313. supported), using GNU extensions understood only by the GNU
  7314. debugger (GDB). The use of these extensions is likely to make
  7315. other debuggers crash or refuse to read the program.
  7316. '-gxcoff'
  7317. Produce debugging information in XCOFF format (if that is
  7318. supported). This is the format used by the DBX debugger on IBM
  7319. RS/6000 systems.
  7320. '-gxcoff+'
  7321. Produce debugging information in XCOFF format (if that is
  7322. supported), using GNU extensions understood only by the GNU
  7323. debugger (GDB). The use of these extensions is likely to make
  7324. other debuggers crash or refuse to read the program, and may cause
  7325. assemblers other than the GNU assembler (GAS) to fail with an
  7326. error.
  7327. '-gvms'
  7328. Produce debugging information in Alpha/VMS debug format (if that is
  7329. supported). This is the format used by DEBUG on Alpha/VMS systems.
  7330. '-gLEVEL'
  7331. '-ggdbLEVEL'
  7332. '-gstabsLEVEL'
  7333. '-gxcoffLEVEL'
  7334. '-gvmsLEVEL'
  7335. Request debugging information and also use LEVEL to specify how
  7336. much information. The default level is 2.
  7337. Level 0 produces no debug information at all. Thus, '-g0' negates
  7338. '-g'.
  7339. Level 1 produces minimal information, enough for making backtraces
  7340. in parts of the program that you don't plan to debug. This
  7341. includes descriptions of functions and external variables, and line
  7342. number tables, but no information about local variables.
  7343. Level 3 includes extra information, such as all the macro
  7344. definitions present in the program. Some debuggers support macro
  7345. expansion when you use '-g3'.
  7346. If you use multiple '-g' options, with or without level numbers,
  7347. the last such option is the one that is effective.
  7348. '-gdwarf' does not accept a concatenated debug level, to avoid
  7349. confusion with '-gdwarf-LEVEL'. Instead use an additional
  7350. '-gLEVEL' option to change the debug level for DWARF.
  7351. '-fno-eliminate-unused-debug-symbols'
  7352. By default, no debug information is produced for symbols that are
  7353. not actually used. Use this option if you want debug information
  7354. for all symbols.
  7355. '-femit-class-debug-always'
  7356. Instead of emitting debugging information for a C++ class in only
  7357. one object file, emit it in all object files using the class. This
  7358. option should be used only with debuggers that are unable to handle
  7359. the way GCC normally emits debugging information for classes
  7360. because using this option increases the size of debugging
  7361. information by as much as a factor of two.
  7362. '-fno-merge-debug-strings'
  7363. Direct the linker to not merge together strings in the debugging
  7364. information that are identical in different object files. Merging
  7365. is not supported by all assemblers or linkers. Merging decreases
  7366. the size of the debug information in the output file at the cost of
  7367. increasing link processing time. Merging is enabled by default.
  7368. '-fdebug-prefix-map=OLD=NEW'
  7369. When compiling files residing in directory 'OLD', record debugging
  7370. information describing them as if the files resided in directory
  7371. 'NEW' instead. This can be used to replace a build-time path with
  7372. an install-time path in the debug info. It can also be used to
  7373. change an absolute path to a relative path by using '.' for NEW.
  7374. This can give more reproducible builds, which are location
  7375. independent, but may require an extra command to tell GDB where to
  7376. find the source files. See also '-ffile-prefix-map'.
  7377. '-fvar-tracking'
  7378. Run variable tracking pass. It computes where variables are stored
  7379. at each position in code. Better debugging information is then
  7380. generated (if the debugging information format supports this
  7381. information).
  7382. It is enabled by default when compiling with optimization ('-Os',
  7383. '-O', '-O2', ...), debugging information ('-g') and the debug info
  7384. format supports it.
  7385. '-fvar-tracking-assignments'
  7386. Annotate assignments to user variables early in the compilation and
  7387. attempt to carry the annotations over throughout the compilation
  7388. all the way to the end, in an attempt to improve debug information
  7389. while optimizing. Use of '-gdwarf-4' is recommended along with it.
  7390. It can be enabled even if var-tracking is disabled, in which case
  7391. annotations are created and maintained, but discarded at the end.
  7392. By default, this flag is enabled together with '-fvar-tracking',
  7393. except when selective scheduling is enabled.
  7394. '-gsplit-dwarf'
  7395. If DWARF debugging information is enabled, separate as much
  7396. debugging information as possible into a separate output file with
  7397. the extension '.dwo'. This option allows the build system to avoid
  7398. linking files with debug information. To be useful, this option
  7399. requires a debugger capable of reading '.dwo' files.
  7400. '-gdwarf32'
  7401. '-gdwarf64'
  7402. If DWARF debugging information is enabled, the '-gdwarf32' selects
  7403. the 32-bit DWARF format and the '-gdwarf64' selects the 64-bit
  7404. DWARF format. The default is target specific, on most targets it
  7405. is '-gdwarf32' though. The 32-bit DWARF format is smaller, but
  7406. can't support more than 2GiB of debug information in any of the
  7407. DWARF debug information sections. The 64-bit DWARF format allows
  7408. larger debug information and might not be well supported by all
  7409. consumers yet.
  7410. '-gdescribe-dies'
  7411. Add description attributes to some DWARF DIEs that have no name
  7412. attribute, such as artificial variables, external references and
  7413. call site parameter DIEs.
  7414. '-gpubnames'
  7415. Generate DWARF '.debug_pubnames' and '.debug_pubtypes' sections.
  7416. '-ggnu-pubnames'
  7417. Generate '.debug_pubnames' and '.debug_pubtypes' sections in a
  7418. format suitable for conversion into a GDB index. This option is
  7419. only useful with a linker that can produce GDB index version 7.
  7420. '-fdebug-types-section'
  7421. When using DWARF Version 4 or higher, type DIEs can be put into
  7422. their own '.debug_types' section instead of making them part of the
  7423. '.debug_info' section. It is more efficient to put them in a
  7424. separate comdat section since the linker can then remove
  7425. duplicates. But not all DWARF consumers support '.debug_types'
  7426. sections yet and on some objects '.debug_types' produces larger
  7427. instead of smaller debugging information.
  7428. '-grecord-gcc-switches'
  7429. '-gno-record-gcc-switches'
  7430. This switch causes the command-line options used to invoke the
  7431. compiler that may affect code generation to be appended to the
  7432. DW_AT_producer attribute in DWARF debugging information. The
  7433. options are concatenated with spaces separating them from each
  7434. other and from the compiler version. It is enabled by default.
  7435. See also '-frecord-gcc-switches' for another way of storing
  7436. compiler options into the object file.
  7437. '-gstrict-dwarf'
  7438. Disallow using extensions of later DWARF standard version than
  7439. selected with '-gdwarf-VERSION'. On most targets using
  7440. non-conflicting DWARF extensions from later standard versions is
  7441. allowed.
  7442. '-gno-strict-dwarf'
  7443. Allow using extensions of later DWARF standard version than
  7444. selected with '-gdwarf-VERSION'.
  7445. '-gas-loc-support'
  7446. Inform the compiler that the assembler supports '.loc' directives.
  7447. It may then use them for the assembler to generate DWARF2+ line
  7448. number tables.
  7449. This is generally desirable, because assembler-generated
  7450. line-number tables are a lot more compact than those the compiler
  7451. can generate itself.
  7452. This option will be enabled by default if, at GCC configure time,
  7453. the assembler was found to support such directives.
  7454. '-gno-as-loc-support'
  7455. Force GCC to generate DWARF2+ line number tables internally, if
  7456. DWARF2+ line number tables are to be generated.
  7457. '-gas-locview-support'
  7458. Inform the compiler that the assembler supports 'view' assignment
  7459. and reset assertion checking in '.loc' directives.
  7460. This option will be enabled by default if, at GCC configure time,
  7461. the assembler was found to support them.
  7462. '-gno-as-locview-support'
  7463. Force GCC to assign view numbers internally, if
  7464. '-gvariable-location-views' are explicitly requested.
  7465. '-gcolumn-info'
  7466. '-gno-column-info'
  7467. Emit location column information into DWARF debugging information,
  7468. rather than just file and line. This option is enabled by default.
  7469. '-gstatement-frontiers'
  7470. '-gno-statement-frontiers'
  7471. This option causes GCC to create markers in the internal
  7472. representation at the beginning of statements, and to keep them
  7473. roughly in place throughout compilation, using them to guide the
  7474. output of 'is_stmt' markers in the line number table. This is
  7475. enabled by default when compiling with optimization ('-Os', '-O',
  7476. '-O2', ...), and outputting DWARF 2 debug information at the normal
  7477. level.
  7478. '-gvariable-location-views'
  7479. '-gvariable-location-views=incompat5'
  7480. '-gno-variable-location-views'
  7481. Augment variable location lists with progressive view numbers
  7482. implied from the line number table. This enables debug information
  7483. consumers to inspect state at certain points of the program, even
  7484. if no instructions associated with the corresponding source
  7485. locations are present at that point. If the assembler lacks
  7486. support for view numbers in line number tables, this will cause the
  7487. compiler to emit the line number table, which generally makes them
  7488. somewhat less compact. The augmented line number tables and
  7489. location lists are fully backward-compatible, so they can be
  7490. consumed by debug information consumers that are not aware of these
  7491. augmentations, but they won't derive any benefit from them either.
  7492. This is enabled by default when outputting DWARF 2 debug
  7493. information at the normal level, as long as there is assembler
  7494. support, '-fvar-tracking-assignments' is enabled and
  7495. '-gstrict-dwarf' is not. When assembler support is not available,
  7496. this may still be enabled, but it will force GCC to output internal
  7497. line number tables, and if '-ginternal-reset-location-views' is not
  7498. enabled, that will most certainly lead to silently mismatching
  7499. location views.
  7500. There is a proposed representation for view numbers that is not
  7501. backward compatible with the location list format introduced in
  7502. DWARF 5, that can be enabled with
  7503. '-gvariable-location-views=incompat5'. This option may be removed
  7504. in the future, is only provided as a reference implementation of
  7505. the proposed representation. Debug information consumers are not
  7506. expected to support this extended format, and they would be
  7507. rendered unable to decode location lists using it.
  7508. '-ginternal-reset-location-views'
  7509. '-gno-internal-reset-location-views'
  7510. Attempt to determine location views that can be omitted from
  7511. location view lists. This requires the compiler to have very
  7512. accurate insn length estimates, which isn't always the case, and it
  7513. may cause incorrect view lists to be generated silently when using
  7514. an assembler that does not support location view lists. The GNU
  7515. assembler will flag any such error as a 'view number mismatch'.
  7516. This is only enabled on ports that define a reliable estimation
  7517. function.
  7518. '-ginline-points'
  7519. '-gno-inline-points'
  7520. Generate extended debug information for inlined functions.
  7521. Location view tracking markers are inserted at inlined entry
  7522. points, so that address and view numbers can be computed and output
  7523. in debug information. This can be enabled independently of
  7524. location views, in which case the view numbers won't be output, but
  7525. it can only be enabled along with statement frontiers, and it is
  7526. only enabled by default if location views are enabled.
  7527. '-gz[=TYPE]'
  7528. Produce compressed debug sections in DWARF format, if that is
  7529. supported. If TYPE is not given, the default type depends on the
  7530. capabilities of the assembler and linker used. TYPE may be one of
  7531. 'none' (don't compress debug sections), 'zlib' (use zlib
  7532. compression in ELF gABI format), or 'zlib-gnu' (use zlib
  7533. compression in traditional GNU format). If the linker doesn't
  7534. support writing compressed debug sections, the option is rejected.
  7535. Otherwise, if the assembler does not support them, '-gz' is
  7536. silently ignored when producing object files.
  7537. '-femit-struct-debug-baseonly'
  7538. Emit debug information for struct-like types only when the base
  7539. name of the compilation source file matches the base name of file
  7540. in which the struct is defined.
  7541. This option substantially reduces the size of debugging
  7542. information, but at significant potential loss in type information
  7543. to the debugger. See '-femit-struct-debug-reduced' for a less
  7544. aggressive option. See '-femit-struct-debug-detailed' for more
  7545. detailed control.
  7546. This option works only with DWARF debug output.
  7547. '-femit-struct-debug-reduced'
  7548. Emit debug information for struct-like types only when the base
  7549. name of the compilation source file matches the base name of file
  7550. in which the type is defined, unless the struct is a template or
  7551. defined in a system header.
  7552. This option significantly reduces the size of debugging
  7553. information, with some potential loss in type information to the
  7554. debugger. See '-femit-struct-debug-baseonly' for a more aggressive
  7555. option. See '-femit-struct-debug-detailed' for more detailed
  7556. control.
  7557. This option works only with DWARF debug output.
  7558. '-femit-struct-debug-detailed[=SPEC-LIST]'
  7559. Specify the struct-like types for which the compiler generates
  7560. debug information. The intent is to reduce duplicate struct debug
  7561. information between different object files within the same program.
  7562. This option is a detailed version of '-femit-struct-debug-reduced'
  7563. and '-femit-struct-debug-baseonly', which serves for most needs.
  7564. A specification has the syntax
  7565. ['dir:'|'ind:']['ord:'|'gen:']('any'|'sys'|'base'|'none')
  7566. The optional first word limits the specification to structs that
  7567. are used directly ('dir:') or used indirectly ('ind:'). A struct
  7568. type is used directly when it is the type of a variable, member.
  7569. Indirect uses arise through pointers to structs. That is, when use
  7570. of an incomplete struct is valid, the use is indirect. An example
  7571. is 'struct one direct; struct two * indirect;'.
  7572. The optional second word limits the specification to ordinary
  7573. structs ('ord:') or generic structs ('gen:'). Generic structs are
  7574. a bit complicated to explain. For C++, these are non-explicit
  7575. specializations of template classes, or non-template classes within
  7576. the above. Other programming languages have generics, but
  7577. '-femit-struct-debug-detailed' does not yet implement them.
  7578. The third word specifies the source files for those structs for
  7579. which the compiler should emit debug information. The values
  7580. 'none' and 'any' have the normal meaning. The value 'base' means
  7581. that the base of name of the file in which the type declaration
  7582. appears must match the base of the name of the main compilation
  7583. file. In practice, this means that when compiling 'foo.c', debug
  7584. information is generated for types declared in that file and
  7585. 'foo.h', but not other header files. The value 'sys' means those
  7586. types satisfying 'base' or declared in system or compiler headers.
  7587. You may need to experiment to determine the best settings for your
  7588. application.
  7589. The default is '-femit-struct-debug-detailed=all'.
  7590. This option works only with DWARF debug output.
  7591. '-fno-dwarf2-cfi-asm'
  7592. Emit DWARF unwind info as compiler generated '.eh_frame' section
  7593. instead of using GAS '.cfi_*' directives.
  7594. '-fno-eliminate-unused-debug-types'
  7595. Normally, when producing DWARF output, GCC avoids producing debug
  7596. symbol output for types that are nowhere used in the source file
  7597. being compiled. Sometimes it is useful to have GCC emit debugging
  7598. information for all types declared in a compilation unit,
  7599. regardless of whether or not they are actually used in that
  7600. compilation unit, for example if, in the debugger, you want to cast
  7601. a value to a type that is not actually used in your program (but is
  7602. declared). More often, however, this results in a significant
  7603. amount of wasted space.
  7604. 
  7605. File: gcc.info, Node: Optimize Options, Next: Instrumentation Options, Prev: Debugging Options, Up: Invoking GCC
  7606. 3.11 Options That Control Optimization
  7607. ======================================
  7608. These options control various sorts of optimizations.
  7609. Without any optimization option, the compiler's goal is to reduce the
  7610. cost of compilation and to make debugging produce the expected results.
  7611. Statements are independent: if you stop the program with a breakpoint
  7612. between statements, you can then assign a new value to any variable or
  7613. change the program counter to any other statement in the function and
  7614. get exactly the results you expect from the source code.
  7615. Turning on optimization flags makes the compiler attempt to improve the
  7616. performance and/or code size at the expense of compilation time and
  7617. possibly the ability to debug the program.
  7618. The compiler performs optimization based on the knowledge it has of the
  7619. program. Compiling multiple files at once to a single output file mode
  7620. allows the compiler to use information gained from all of the files when
  7621. compiling each of them.
  7622. Not all optimizations are controlled directly by a flag. Only
  7623. optimizations that have a flag are listed in this section.
  7624. Most optimizations are completely disabled at '-O0' or if an '-O' level
  7625. is not set on the command line, even if individual optimization flags
  7626. are specified. Similarly, '-Og' suppresses many optimization passes.
  7627. Depending on the target and how GCC was configured, a slightly
  7628. different set of optimizations may be enabled at each '-O' level than
  7629. those listed here. You can invoke GCC with '-Q --help=optimizers' to
  7630. find out the exact set of optimizations that are enabled at each level.
  7631. *Note Overall Options::, for examples.
  7632. '-O'
  7633. '-O1'
  7634. Optimize. Optimizing compilation takes somewhat more time, and a
  7635. lot more memory for a large function.
  7636. With '-O', the compiler tries to reduce code size and execution
  7637. time, without performing any optimizations that take a great deal
  7638. of compilation time.
  7639. '-O' turns on the following optimization flags:
  7640. -fauto-inc-dec
  7641. -fbranch-count-reg
  7642. -fcombine-stack-adjustments
  7643. -fcompare-elim
  7644. -fcprop-registers
  7645. -fdce
  7646. -fdefer-pop
  7647. -fdelayed-branch
  7648. -fdse
  7649. -fforward-propagate
  7650. -fguess-branch-probability
  7651. -fif-conversion
  7652. -fif-conversion2
  7653. -finline-functions-called-once
  7654. -fipa-modref
  7655. -fipa-profile
  7656. -fipa-pure-const
  7657. -fipa-reference
  7658. -fipa-reference-addressable
  7659. -fmerge-constants
  7660. -fmove-loop-invariants
  7661. -fomit-frame-pointer
  7662. -freorder-blocks
  7663. -fshrink-wrap
  7664. -fshrink-wrap-separate
  7665. -fsplit-wide-types
  7666. -fssa-backprop
  7667. -fssa-phiopt
  7668. -ftree-bit-ccp
  7669. -ftree-ccp
  7670. -ftree-ch
  7671. -ftree-coalesce-vars
  7672. -ftree-copy-prop
  7673. -ftree-dce
  7674. -ftree-dominator-opts
  7675. -ftree-dse
  7676. -ftree-forwprop
  7677. -ftree-fre
  7678. -ftree-phiprop
  7679. -ftree-pta
  7680. -ftree-scev-cprop
  7681. -ftree-sink
  7682. -ftree-slsr
  7683. -ftree-sra
  7684. -ftree-ter
  7685. -funit-at-a-time
  7686. '-O2'
  7687. Optimize even more. GCC performs nearly all supported
  7688. optimizations that do not involve a space-speed tradeoff. As
  7689. compared to '-O', this option increases both compilation time and
  7690. the performance of the generated code.
  7691. '-O2' turns on all optimization flags specified by '-O'. It also
  7692. turns on the following optimization flags:
  7693. -falign-functions -falign-jumps
  7694. -falign-labels -falign-loops
  7695. -fcaller-saves
  7696. -fcode-hoisting
  7697. -fcrossjumping
  7698. -fcse-follow-jumps -fcse-skip-blocks
  7699. -fdelete-null-pointer-checks
  7700. -fdevirtualize -fdevirtualize-speculatively
  7701. -fexpensive-optimizations
  7702. -ffinite-loops
  7703. -fgcse -fgcse-lm
  7704. -fhoist-adjacent-loads
  7705. -finline-functions
  7706. -finline-small-functions
  7707. -findirect-inlining
  7708. -fipa-bit-cp -fipa-cp -fipa-icf
  7709. -fipa-ra -fipa-sra -fipa-vrp
  7710. -fisolate-erroneous-paths-dereference
  7711. -flra-remat
  7712. -foptimize-sibling-calls
  7713. -foptimize-strlen
  7714. -fpartial-inlining
  7715. -fpeephole2
  7716. -freorder-blocks-algorithm=stc
  7717. -freorder-blocks-and-partition -freorder-functions
  7718. -frerun-cse-after-loop
  7719. -fschedule-insns -fschedule-insns2
  7720. -fsched-interblock -fsched-spec
  7721. -fstore-merging
  7722. -fstrict-aliasing
  7723. -fthread-jumps
  7724. -ftree-builtin-call-dce
  7725. -ftree-pre
  7726. -ftree-switch-conversion -ftree-tail-merge
  7727. -ftree-vrp
  7728. Please note the warning under '-fgcse' about invoking '-O2' on
  7729. programs that use computed gotos.
  7730. '-O3'
  7731. Optimize yet more. '-O3' turns on all optimizations specified by
  7732. '-O2' and also turns on the following optimization flags:
  7733. -fgcse-after-reload
  7734. -fipa-cp-clone
  7735. -floop-interchange
  7736. -floop-unroll-and-jam
  7737. -fpeel-loops
  7738. -fpredictive-commoning
  7739. -fsplit-loops
  7740. -fsplit-paths
  7741. -ftree-loop-distribution
  7742. -ftree-loop-vectorize
  7743. -ftree-partial-pre
  7744. -ftree-slp-vectorize
  7745. -funswitch-loops
  7746. -fvect-cost-model
  7747. -fvect-cost-model=dynamic
  7748. -fversion-loops-for-strides
  7749. '-O0'
  7750. Reduce compilation time and make debugging produce the expected
  7751. results. This is the default.
  7752. '-Os'
  7753. Optimize for size. '-Os' enables all '-O2' optimizations except
  7754. those that often increase code size:
  7755. -falign-functions -falign-jumps
  7756. -falign-labels -falign-loops
  7757. -fprefetch-loop-arrays -freorder-blocks-algorithm=stc
  7758. It also enables '-finline-functions', causes the compiler to tune
  7759. for code size rather than execution speed, and performs further
  7760. optimizations designed to reduce code size.
  7761. '-Ofast'
  7762. Disregard strict standards compliance. '-Ofast' enables all '-O3'
  7763. optimizations. It also enables optimizations that are not valid
  7764. for all standard-compliant programs. It turns on '-ffast-math',
  7765. '-fallow-store-data-races' and the Fortran-specific
  7766. '-fstack-arrays', unless '-fmax-stack-var-size' is specified, and
  7767. '-fno-protect-parens'.
  7768. '-Og'
  7769. Optimize debugging experience. '-Og' should be the optimization
  7770. level of choice for the standard edit-compile-debug cycle, offering
  7771. a reasonable level of optimization while maintaining fast
  7772. compilation and a good debugging experience. It is a better choice
  7773. than '-O0' for producing debuggable code because some compiler
  7774. passes that collect debug information are disabled at '-O0'.
  7775. Like '-O0', '-Og' completely disables a number of optimization
  7776. passes so that individual options controlling them have no effect.
  7777. Otherwise '-Og' enables all '-O1' optimization flags except for
  7778. those that may interfere with debugging:
  7779. -fbranch-count-reg -fdelayed-branch
  7780. -fdse -fif-conversion -fif-conversion2
  7781. -finline-functions-called-once
  7782. -fmove-loop-invariants -fssa-phiopt
  7783. -ftree-bit-ccp -ftree-dse -ftree-pta -ftree-sra
  7784. If you use multiple '-O' options, with or without level numbers, the
  7785. last such option is the one that is effective.
  7786. Options of the form '-fFLAG' specify machine-independent flags. Most
  7787. flags have both positive and negative forms; the negative form of
  7788. '-ffoo' is '-fno-foo'. In the table below, only one of the forms is
  7789. listed--the one you typically use. You can figure out the other form by
  7790. either removing 'no-' or adding it.
  7791. The following options control specific optimizations. They are either
  7792. activated by '-O' options or are related to ones that are. You can use
  7793. the following flags in the rare cases when "fine-tuning" of
  7794. optimizations to be performed is desired.
  7795. '-fno-defer-pop'
  7796. For machines that must pop arguments after a function call, always
  7797. pop the arguments as soon as each function returns. At levels
  7798. '-O1' and higher, '-fdefer-pop' is the default; this allows the
  7799. compiler to let arguments accumulate on the stack for several
  7800. function calls and pop them all at once.
  7801. '-fforward-propagate'
  7802. Perform a forward propagation pass on RTL. The pass tries to
  7803. combine two instructions and checks if the result can be
  7804. simplified. If loop unrolling is active, two passes are performed
  7805. and the second is scheduled after loop unrolling.
  7806. This option is enabled by default at optimization levels '-O',
  7807. '-O2', '-O3', '-Os'.
  7808. '-ffp-contract=STYLE'
  7809. '-ffp-contract=off' disables floating-point expression contraction.
  7810. '-ffp-contract=fast' enables floating-point expression contraction
  7811. such as forming of fused multiply-add operations if the target has
  7812. native support for them. '-ffp-contract=on' enables floating-point
  7813. expression contraction if allowed by the language standard. This
  7814. is currently not implemented and treated equal to
  7815. '-ffp-contract=off'.
  7816. The default is '-ffp-contract=fast'.
  7817. '-fomit-frame-pointer'
  7818. Omit the frame pointer in functions that don't need one. This
  7819. avoids the instructions to save, set up and restore the frame
  7820. pointer; on many targets it also makes an extra register available.
  7821. On some targets this flag has no effect because the standard
  7822. calling sequence always uses a frame pointer, so it cannot be
  7823. omitted.
  7824. Note that '-fno-omit-frame-pointer' doesn't guarantee the frame
  7825. pointer is used in all functions. Several targets always omit the
  7826. frame pointer in leaf functions.
  7827. Enabled by default at '-O' and higher.
  7828. '-foptimize-sibling-calls'
  7829. Optimize sibling and tail recursive calls.
  7830. Enabled at levels '-O2', '-O3', '-Os'.
  7831. '-foptimize-strlen'
  7832. Optimize various standard C string functions (e.g. 'strlen',
  7833. 'strchr' or 'strcpy') and their '_FORTIFY_SOURCE' counterparts into
  7834. faster alternatives.
  7835. Enabled at levels '-O2', '-O3'.
  7836. '-fno-inline'
  7837. Do not expand any functions inline apart from those marked with the
  7838. 'always_inline' attribute. This is the default when not
  7839. optimizing.
  7840. Single functions can be exempted from inlining by marking them with
  7841. the 'noinline' attribute.
  7842. '-finline-small-functions'
  7843. Integrate functions into their callers when their body is smaller
  7844. than expected function call code (so overall size of program gets
  7845. smaller). The compiler heuristically decides which functions are
  7846. simple enough to be worth integrating in this way. This inlining
  7847. applies to all functions, even those not declared inline.
  7848. Enabled at levels '-O2', '-O3', '-Os'.
  7849. '-findirect-inlining'
  7850. Inline also indirect calls that are discovered to be known at
  7851. compile time thanks to previous inlining. This option has any
  7852. effect only when inlining itself is turned on by the
  7853. '-finline-functions' or '-finline-small-functions' options.
  7854. Enabled at levels '-O2', '-O3', '-Os'.
  7855. '-finline-functions'
  7856. Consider all functions for inlining, even if they are not declared
  7857. inline. The compiler heuristically decides which functions are
  7858. worth integrating in this way.
  7859. If all calls to a given function are integrated, and the function
  7860. is declared 'static', then the function is normally not output as
  7861. assembler code in its own right.
  7862. Enabled at levels '-O2', '-O3', '-Os'. Also enabled by
  7863. '-fprofile-use' and '-fauto-profile'.
  7864. '-finline-functions-called-once'
  7865. Consider all 'static' functions called once for inlining into their
  7866. caller even if they are not marked 'inline'. If a call to a given
  7867. function is integrated, then the function is not output as
  7868. assembler code in its own right.
  7869. Enabled at levels '-O1', '-O2', '-O3' and '-Os', but not '-Og'.
  7870. '-fearly-inlining'
  7871. Inline functions marked by 'always_inline' and functions whose body
  7872. seems smaller than the function call overhead early before doing
  7873. '-fprofile-generate' instrumentation and real inlining pass. Doing
  7874. so makes profiling significantly cheaper and usually inlining
  7875. faster on programs having large chains of nested wrapper functions.
  7876. Enabled by default.
  7877. '-fipa-sra'
  7878. Perform interprocedural scalar replacement of aggregates, removal
  7879. of unused parameters and replacement of parameters passed by
  7880. reference by parameters passed by value.
  7881. Enabled at levels '-O2', '-O3' and '-Os'.
  7882. '-finline-limit=N'
  7883. By default, GCC limits the size of functions that can be inlined.
  7884. This flag allows coarse control of this limit. N is the size of
  7885. functions that can be inlined in number of pseudo instructions.
  7886. Inlining is actually controlled by a number of parameters, which
  7887. may be specified individually by using '--param NAME=VALUE'. The
  7888. '-finline-limit=N' option sets some of these parameters as follows:
  7889. 'max-inline-insns-single'
  7890. is set to N/2.
  7891. 'max-inline-insns-auto'
  7892. is set to N/2.
  7893. See below for a documentation of the individual parameters
  7894. controlling inlining and for the defaults of these parameters.
  7895. _Note:_ there may be no value to '-finline-limit' that results in
  7896. default behavior.
  7897. _Note:_ pseudo instruction represents, in this particular context,
  7898. an abstract measurement of function's size. In no way does it
  7899. represent a count of assembly instructions and as such its exact
  7900. meaning might change from one release to an another.
  7901. '-fno-keep-inline-dllexport'
  7902. This is a more fine-grained version of '-fkeep-inline-functions',
  7903. which applies only to functions that are declared using the
  7904. 'dllexport' attribute or declspec. *Note Declaring Attributes of
  7905. Functions: Function Attributes.
  7906. '-fkeep-inline-functions'
  7907. In C, emit 'static' functions that are declared 'inline' into the
  7908. object file, even if the function has been inlined into all of its
  7909. callers. This switch does not affect functions using the 'extern
  7910. inline' extension in GNU C90. In C++, emit any and all inline
  7911. functions into the object file.
  7912. '-fkeep-static-functions'
  7913. Emit 'static' functions into the object file, even if the function
  7914. is never used.
  7915. '-fkeep-static-consts'
  7916. Emit variables declared 'static const' when optimization isn't
  7917. turned on, even if the variables aren't referenced.
  7918. GCC enables this option by default. If you want to force the
  7919. compiler to check if a variable is referenced, regardless of
  7920. whether or not optimization is turned on, use the
  7921. '-fno-keep-static-consts' option.
  7922. '-fmerge-constants'
  7923. Attempt to merge identical constants (string constants and
  7924. floating-point constants) across compilation units.
  7925. This option is the default for optimized compilation if the
  7926. assembler and linker support it. Use '-fno-merge-constants' to
  7927. inhibit this behavior.
  7928. Enabled at levels '-O', '-O2', '-O3', '-Os'.
  7929. '-fmerge-all-constants'
  7930. Attempt to merge identical constants and identical variables.
  7931. This option implies '-fmerge-constants'. In addition to
  7932. '-fmerge-constants' this considers e.g. even constant initialized
  7933. arrays or initialized constant variables with integral or
  7934. floating-point types. Languages like C or C++ require each
  7935. variable, including multiple instances of the same variable in
  7936. recursive calls, to have distinct locations, so using this option
  7937. results in non-conforming behavior.
  7938. '-fmodulo-sched'
  7939. Perform swing modulo scheduling immediately before the first
  7940. scheduling pass. This pass looks at innermost loops and reorders
  7941. their instructions by overlapping different iterations.
  7942. '-fmodulo-sched-allow-regmoves'
  7943. Perform more aggressive SMS-based modulo scheduling with register
  7944. moves allowed. By setting this flag certain anti-dependences edges
  7945. are deleted, which triggers the generation of reg-moves based on
  7946. the life-range analysis. This option is effective only with
  7947. '-fmodulo-sched' enabled.
  7948. '-fno-branch-count-reg'
  7949. Disable the optimization pass that scans for opportunities to use
  7950. "decrement and branch" instructions on a count register instead of
  7951. instruction sequences that decrement a register, compare it against
  7952. zero, and then branch based upon the result. This option is only
  7953. meaningful on architectures that support such instructions, which
  7954. include x86, PowerPC, IA-64 and S/390. Note that the
  7955. '-fno-branch-count-reg' option doesn't remove the decrement and
  7956. branch instructions from the generated instruction stream
  7957. introduced by other optimization passes.
  7958. The default is '-fbranch-count-reg' at '-O1' and higher, except for
  7959. '-Og'.
  7960. '-fno-function-cse'
  7961. Do not put function addresses in registers; make each instruction
  7962. that calls a constant function contain the function's address
  7963. explicitly.
  7964. This option results in less efficient code, but some strange hacks
  7965. that alter the assembler output may be confused by the
  7966. optimizations performed when this option is not used.
  7967. The default is '-ffunction-cse'
  7968. '-fno-zero-initialized-in-bss'
  7969. If the target supports a BSS section, GCC by default puts variables
  7970. that are initialized to zero into BSS. This can save space in the
  7971. resulting code.
  7972. This option turns off this behavior because some programs
  7973. explicitly rely on variables going to the data section--e.g., so
  7974. that the resulting executable can find the beginning of that
  7975. section and/or make assumptions based on that.
  7976. The default is '-fzero-initialized-in-bss'.
  7977. '-fthread-jumps'
  7978. Perform optimizations that check to see if a jump branches to a
  7979. location where another comparison subsumed by the first is found.
  7980. If so, the first branch is redirected to either the destination of
  7981. the second branch or a point immediately following it, depending on
  7982. whether the condition is known to be true or false.
  7983. Enabled at levels '-O2', '-O3', '-Os'.
  7984. '-fsplit-wide-types'
  7985. When using a type that occupies multiple registers, such as 'long
  7986. long' on a 32-bit system, split the registers apart and allocate
  7987. them independently. This normally generates better code for those
  7988. types, but may make debugging more difficult.
  7989. Enabled at levels '-O', '-O2', '-O3', '-Os'.
  7990. '-fsplit-wide-types-early'
  7991. Fully split wide types early, instead of very late. This option
  7992. has no effect unless '-fsplit-wide-types' is turned on.
  7993. This is the default on some targets.
  7994. '-fcse-follow-jumps'
  7995. In common subexpression elimination (CSE), scan through jump
  7996. instructions when the target of the jump is not reached by any
  7997. other path. For example, when CSE encounters an 'if' statement
  7998. with an 'else' clause, CSE follows the jump when the condition
  7999. tested is false.
  8000. Enabled at levels '-O2', '-O3', '-Os'.
  8001. '-fcse-skip-blocks'
  8002. This is similar to '-fcse-follow-jumps', but causes CSE to follow
  8003. jumps that conditionally skip over blocks. When CSE encounters a
  8004. simple 'if' statement with no else clause, '-fcse-skip-blocks'
  8005. causes CSE to follow the jump around the body of the 'if'.
  8006. Enabled at levels '-O2', '-O3', '-Os'.
  8007. '-frerun-cse-after-loop'
  8008. Re-run common subexpression elimination after loop optimizations
  8009. are performed.
  8010. Enabled at levels '-O2', '-O3', '-Os'.
  8011. '-fgcse'
  8012. Perform a global common subexpression elimination pass. This pass
  8013. also performs global constant and copy propagation.
  8014. _Note:_ When compiling a program using computed gotos, a GCC
  8015. extension, you may get better run-time performance if you disable
  8016. the global common subexpression elimination pass by adding
  8017. '-fno-gcse' to the command line.
  8018. Enabled at levels '-O2', '-O3', '-Os'.
  8019. '-fgcse-lm'
  8020. When '-fgcse-lm' is enabled, global common subexpression
  8021. elimination attempts to move loads that are only killed by stores
  8022. into themselves. This allows a loop containing a load/store
  8023. sequence to be changed to a load outside the loop, and a copy/store
  8024. within the loop.
  8025. Enabled by default when '-fgcse' is enabled.
  8026. '-fgcse-sm'
  8027. When '-fgcse-sm' is enabled, a store motion pass is run after
  8028. global common subexpression elimination. This pass attempts to
  8029. move stores out of loops. When used in conjunction with
  8030. '-fgcse-lm', loops containing a load/store sequence can be changed
  8031. to a load before the loop and a store after the loop.
  8032. Not enabled at any optimization level.
  8033. '-fgcse-las'
  8034. When '-fgcse-las' is enabled, the global common subexpression
  8035. elimination pass eliminates redundant loads that come after stores
  8036. to the same memory location (both partial and full redundancies).
  8037. Not enabled at any optimization level.
  8038. '-fgcse-after-reload'
  8039. When '-fgcse-after-reload' is enabled, a redundant load elimination
  8040. pass is performed after reload. The purpose of this pass is to
  8041. clean up redundant spilling.
  8042. Enabled by '-fprofile-use' and '-fauto-profile'.
  8043. '-faggressive-loop-optimizations'
  8044. This option tells the loop optimizer to use language constraints to
  8045. derive bounds for the number of iterations of a loop. This assumes
  8046. that loop code does not invoke undefined behavior by for example
  8047. causing signed integer overflows or out-of-bound array accesses.
  8048. The bounds for the number of iterations of a loop are used to guide
  8049. loop unrolling and peeling and loop exit test optimizations. This
  8050. option is enabled by default.
  8051. '-funconstrained-commons'
  8052. This option tells the compiler that variables declared in common
  8053. blocks (e.g. Fortran) may later be overridden with longer trailing
  8054. arrays. This prevents certain optimizations that depend on knowing
  8055. the array bounds.
  8056. '-fcrossjumping'
  8057. Perform cross-jumping transformation. This transformation unifies
  8058. equivalent code and saves code size. The resulting code may or may
  8059. not perform better than without cross-jumping.
  8060. Enabled at levels '-O2', '-O3', '-Os'.
  8061. '-fauto-inc-dec'
  8062. Combine increments or decrements of addresses with memory accesses.
  8063. This pass is always skipped on architectures that do not have
  8064. instructions to support this. Enabled by default at '-O' and
  8065. higher on architectures that support this.
  8066. '-fdce'
  8067. Perform dead code elimination (DCE) on RTL. Enabled by default at
  8068. '-O' and higher.
  8069. '-fdse'
  8070. Perform dead store elimination (DSE) on RTL. Enabled by default at
  8071. '-O' and higher.
  8072. '-fif-conversion'
  8073. Attempt to transform conditional jumps into branch-less
  8074. equivalents. This includes use of conditional moves, min, max, set
  8075. flags and abs instructions, and some tricks doable by standard
  8076. arithmetics. The use of conditional execution on chips where it is
  8077. available is controlled by '-fif-conversion2'.
  8078. Enabled at levels '-O', '-O2', '-O3', '-Os', but not with '-Og'.
  8079. '-fif-conversion2'
  8080. Use conditional execution (where available) to transform
  8081. conditional jumps into branch-less equivalents.
  8082. Enabled at levels '-O', '-O2', '-O3', '-Os', but not with '-Og'.
  8083. '-fdeclone-ctor-dtor'
  8084. The C++ ABI requires multiple entry points for constructors and
  8085. destructors: one for a base subobject, one for a complete object,
  8086. and one for a virtual destructor that calls operator delete
  8087. afterwards. For a hierarchy with virtual bases, the base and
  8088. complete variants are clones, which means two copies of the
  8089. function. With this option, the base and complete variants are
  8090. changed to be thunks that call a common implementation.
  8091. Enabled by '-Os'.
  8092. '-fdelete-null-pointer-checks'
  8093. Assume that programs cannot safely dereference null pointers, and
  8094. that no code or data element resides at address zero. This option
  8095. enables simple constant folding optimizations at all optimization
  8096. levels. In addition, other optimization passes in GCC use this
  8097. flag to control global dataflow analyses that eliminate useless
  8098. checks for null pointers; these assume that a memory access to
  8099. address zero always results in a trap, so that if a pointer is
  8100. checked after it has already been dereferenced, it cannot be null.
  8101. Note however that in some environments this assumption is not true.
  8102. Use '-fno-delete-null-pointer-checks' to disable this optimization
  8103. for programs that depend on that behavior.
  8104. This option is enabled by default on most targets. On Nios II ELF,
  8105. it defaults to off. On AVR, CR16, and MSP430, this option is
  8106. completely disabled.
  8107. Passes that use the dataflow information are enabled independently
  8108. at different optimization levels.
  8109. '-fdevirtualize'
  8110. Attempt to convert calls to virtual functions to direct calls.
  8111. This is done both within a procedure and interprocedurally as part
  8112. of indirect inlining ('-findirect-inlining') and interprocedural
  8113. constant propagation ('-fipa-cp'). Enabled at levels '-O2', '-O3',
  8114. '-Os'.
  8115. '-fdevirtualize-speculatively'
  8116. Attempt to convert calls to virtual functions to speculative direct
  8117. calls. Based on the analysis of the type inheritance graph,
  8118. determine for a given call the set of likely targets. If the set
  8119. is small, preferably of size 1, change the call into a conditional
  8120. deciding between direct and indirect calls. The speculative calls
  8121. enable more optimizations, such as inlining. When they seem
  8122. useless after further optimization, they are converted back into
  8123. original form.
  8124. '-fdevirtualize-at-ltrans'
  8125. Stream extra information needed for aggressive devirtualization
  8126. when running the link-time optimizer in local transformation mode.
  8127. This option enables more devirtualization but significantly
  8128. increases the size of streamed data. For this reason it is
  8129. disabled by default.
  8130. '-fexpensive-optimizations'
  8131. Perform a number of minor optimizations that are relatively
  8132. expensive.
  8133. Enabled at levels '-O2', '-O3', '-Os'.
  8134. '-free'
  8135. Attempt to remove redundant extension instructions. This is
  8136. especially helpful for the x86-64 architecture, which implicitly
  8137. zero-extends in 64-bit registers after writing to their lower
  8138. 32-bit half.
  8139. Enabled for Alpha, AArch64 and x86 at levels '-O2', '-O3', '-Os'.
  8140. '-fno-lifetime-dse'
  8141. In C++ the value of an object is only affected by changes within
  8142. its lifetime: when the constructor begins, the object has an
  8143. indeterminate value, and any changes during the lifetime of the
  8144. object are dead when the object is destroyed. Normally dead store
  8145. elimination will take advantage of this; if your code relies on the
  8146. value of the object storage persisting beyond the lifetime of the
  8147. object, you can use this flag to disable this optimization. To
  8148. preserve stores before the constructor starts (e.g. because your
  8149. operator new clears the object storage) but still treat the object
  8150. as dead after the destructor, you can use '-flifetime-dse=1'. The
  8151. default behavior can be explicitly selected with
  8152. '-flifetime-dse=2'. '-flifetime-dse=0' is equivalent to
  8153. '-fno-lifetime-dse'.
  8154. '-flive-range-shrinkage'
  8155. Attempt to decrease register pressure through register live range
  8156. shrinkage. This is helpful for fast processors with small or
  8157. moderate size register sets.
  8158. '-fira-algorithm=ALGORITHM'
  8159. Use the specified coloring algorithm for the integrated register
  8160. allocator. The ALGORITHM argument can be 'priority', which
  8161. specifies Chow's priority coloring, or 'CB', which specifies
  8162. Chaitin-Briggs coloring. Chaitin-Briggs coloring is not
  8163. implemented for all architectures, but for those targets that do
  8164. support it, it is the default because it generates better code.
  8165. '-fira-region=REGION'
  8166. Use specified regions for the integrated register allocator. The
  8167. REGION argument should be one of the following:
  8168. 'all'
  8169. Use all loops as register allocation regions. This can give
  8170. the best results for machines with a small and/or irregular
  8171. register set.
  8172. 'mixed'
  8173. Use all loops except for loops with small register pressure as
  8174. the regions. This value usually gives the best results in
  8175. most cases and for most architectures, and is enabled by
  8176. default when compiling with optimization for speed ('-O',
  8177. '-O2', ...).
  8178. 'one'
  8179. Use all functions as a single region. This typically results
  8180. in the smallest code size, and is enabled by default for '-Os'
  8181. or '-O0'.
  8182. '-fira-hoist-pressure'
  8183. Use IRA to evaluate register pressure in the code hoisting pass for
  8184. decisions to hoist expressions. This option usually results in
  8185. smaller code, but it can slow the compiler down.
  8186. This option is enabled at level '-Os' for all targets.
  8187. '-fira-loop-pressure'
  8188. Use IRA to evaluate register pressure in loops for decisions to
  8189. move loop invariants. This option usually results in generation of
  8190. faster and smaller code on machines with large register files (>=
  8191. 32 registers), but it can slow the compiler down.
  8192. This option is enabled at level '-O3' for some targets.
  8193. '-fno-ira-share-save-slots'
  8194. Disable sharing of stack slots used for saving call-used hard
  8195. registers living through a call. Each hard register gets a
  8196. separate stack slot, and as a result function stack frames are
  8197. larger.
  8198. '-fno-ira-share-spill-slots'
  8199. Disable sharing of stack slots allocated for pseudo-registers.
  8200. Each pseudo-register that does not get a hard register gets a
  8201. separate stack slot, and as a result function stack frames are
  8202. larger.
  8203. '-flra-remat'
  8204. Enable CFG-sensitive rematerialization in LRA. Instead of loading
  8205. values of spilled pseudos, LRA tries to rematerialize (recalculate)
  8206. values if it is profitable.
  8207. Enabled at levels '-O2', '-O3', '-Os'.
  8208. '-fdelayed-branch'
  8209. If supported for the target machine, attempt to reorder
  8210. instructions to exploit instruction slots available after delayed
  8211. branch instructions.
  8212. Enabled at levels '-O', '-O2', '-O3', '-Os', but not at '-Og'.
  8213. '-fschedule-insns'
  8214. If supported for the target machine, attempt to reorder
  8215. instructions to eliminate execution stalls due to required data
  8216. being unavailable. This helps machines that have slow floating
  8217. point or memory load instructions by allowing other instructions to
  8218. be issued until the result of the load or floating-point
  8219. instruction is required.
  8220. Enabled at levels '-O2', '-O3'.
  8221. '-fschedule-insns2'
  8222. Similar to '-fschedule-insns', but requests an additional pass of
  8223. instruction scheduling after register allocation has been done.
  8224. This is especially useful on machines with a relatively small
  8225. number of registers and where memory load instructions take more
  8226. than one cycle.
  8227. Enabled at levels '-O2', '-O3', '-Os'.
  8228. '-fno-sched-interblock'
  8229. Disable instruction scheduling across basic blocks, which is
  8230. normally enabled when scheduling before register allocation, i.e.
  8231. with '-fschedule-insns' or at '-O2' or higher.
  8232. '-fno-sched-spec'
  8233. Disable speculative motion of non-load instructions, which is
  8234. normally enabled when scheduling before register allocation, i.e.
  8235. with '-fschedule-insns' or at '-O2' or higher.
  8236. '-fsched-pressure'
  8237. Enable register pressure sensitive insn scheduling before register
  8238. allocation. This only makes sense when scheduling before register
  8239. allocation is enabled, i.e. with '-fschedule-insns' or at '-O2' or
  8240. higher. Usage of this option can improve the generated code and
  8241. decrease its size by preventing register pressure increase above
  8242. the number of available hard registers and subsequent spills in
  8243. register allocation.
  8244. '-fsched-spec-load'
  8245. Allow speculative motion of some load instructions. This only
  8246. makes sense when scheduling before register allocation, i.e. with
  8247. '-fschedule-insns' or at '-O2' or higher.
  8248. '-fsched-spec-load-dangerous'
  8249. Allow speculative motion of more load instructions. This only
  8250. makes sense when scheduling before register allocation, i.e. with
  8251. '-fschedule-insns' or at '-O2' or higher.
  8252. '-fsched-stalled-insns'
  8253. '-fsched-stalled-insns=N'
  8254. Define how many insns (if any) can be moved prematurely from the
  8255. queue of stalled insns into the ready list during the second
  8256. scheduling pass. '-fno-sched-stalled-insns' means that no insns
  8257. are moved prematurely, '-fsched-stalled-insns=0' means there is no
  8258. limit on how many queued insns can be moved prematurely.
  8259. '-fsched-stalled-insns' without a value is equivalent to
  8260. '-fsched-stalled-insns=1'.
  8261. '-fsched-stalled-insns-dep'
  8262. '-fsched-stalled-insns-dep=N'
  8263. Define how many insn groups (cycles) are examined for a dependency
  8264. on a stalled insn that is a candidate for premature removal from
  8265. the queue of stalled insns. This has an effect only during the
  8266. second scheduling pass, and only if '-fsched-stalled-insns' is
  8267. used. '-fno-sched-stalled-insns-dep' is equivalent to
  8268. '-fsched-stalled-insns-dep=0'. '-fsched-stalled-insns-dep' without
  8269. a value is equivalent to '-fsched-stalled-insns-dep=1'.
  8270. '-fsched2-use-superblocks'
  8271. When scheduling after register allocation, use superblock
  8272. scheduling. This allows motion across basic block boundaries,
  8273. resulting in faster schedules. This option is experimental, as not
  8274. all machine descriptions used by GCC model the CPU closely enough
  8275. to avoid unreliable results from the algorithm.
  8276. This only makes sense when scheduling after register allocation,
  8277. i.e. with '-fschedule-insns2' or at '-O2' or higher.
  8278. '-fsched-group-heuristic'
  8279. Enable the group heuristic in the scheduler. This heuristic favors
  8280. the instruction that belongs to a schedule group. This is enabled
  8281. by default when scheduling is enabled, i.e. with '-fschedule-insns'
  8282. or '-fschedule-insns2' or at '-O2' or higher.
  8283. '-fsched-critical-path-heuristic'
  8284. Enable the critical-path heuristic in the scheduler. This
  8285. heuristic favors instructions on the critical path. This is
  8286. enabled by default when scheduling is enabled, i.e. with
  8287. '-fschedule-insns' or '-fschedule-insns2' or at '-O2' or higher.
  8288. '-fsched-spec-insn-heuristic'
  8289. Enable the speculative instruction heuristic in the scheduler.
  8290. This heuristic favors speculative instructions with greater
  8291. dependency weakness. This is enabled by default when scheduling is
  8292. enabled, i.e. with '-fschedule-insns' or '-fschedule-insns2' or at
  8293. '-O2' or higher.
  8294. '-fsched-rank-heuristic'
  8295. Enable the rank heuristic in the scheduler. This heuristic favors
  8296. the instruction belonging to a basic block with greater size or
  8297. frequency. This is enabled by default when scheduling is enabled,
  8298. i.e. with '-fschedule-insns' or '-fschedule-insns2' or at '-O2' or
  8299. higher.
  8300. '-fsched-last-insn-heuristic'
  8301. Enable the last-instruction heuristic in the scheduler. This
  8302. heuristic favors the instruction that is less dependent on the last
  8303. instruction scheduled. This is enabled by default when scheduling
  8304. is enabled, i.e. with '-fschedule-insns' or '-fschedule-insns2' or
  8305. at '-O2' or higher.
  8306. '-fsched-dep-count-heuristic'
  8307. Enable the dependent-count heuristic in the scheduler. This
  8308. heuristic favors the instruction that has more instructions
  8309. depending on it. This is enabled by default when scheduling is
  8310. enabled, i.e. with '-fschedule-insns' or '-fschedule-insns2' or at
  8311. '-O2' or higher.
  8312. '-freschedule-modulo-scheduled-loops'
  8313. Modulo scheduling is performed before traditional scheduling. If a
  8314. loop is modulo scheduled, later scheduling passes may change its
  8315. schedule. Use this option to control that behavior.
  8316. '-fselective-scheduling'
  8317. Schedule instructions using selective scheduling algorithm.
  8318. Selective scheduling runs instead of the first scheduler pass.
  8319. '-fselective-scheduling2'
  8320. Schedule instructions using selective scheduling algorithm.
  8321. Selective scheduling runs instead of the second scheduler pass.
  8322. '-fsel-sched-pipelining'
  8323. Enable software pipelining of innermost loops during selective
  8324. scheduling. This option has no effect unless one of
  8325. '-fselective-scheduling' or '-fselective-scheduling2' is turned on.
  8326. '-fsel-sched-pipelining-outer-loops'
  8327. When pipelining loops during selective scheduling, also pipeline
  8328. outer loops. This option has no effect unless
  8329. '-fsel-sched-pipelining' is turned on.
  8330. '-fsemantic-interposition'
  8331. Some object formats, like ELF, allow interposing of symbols by the
  8332. dynamic linker. This means that for symbols exported from the DSO,
  8333. the compiler cannot perform interprocedural propagation, inlining
  8334. and other optimizations in anticipation that the function or
  8335. variable in question may change. While this feature is useful, for
  8336. example, to rewrite memory allocation functions by a debugging
  8337. implementation, it is expensive in the terms of code quality. With
  8338. '-fno-semantic-interposition' the compiler assumes that if
  8339. interposition happens for functions the overwriting function will
  8340. have precisely the same semantics (and side effects). Similarly if
  8341. interposition happens for variables, the constructor of the
  8342. variable will be the same. The flag has no effect for functions
  8343. explicitly declared inline (where it is never allowed for
  8344. interposition to change semantics) and for symbols explicitly
  8345. declared weak.
  8346. '-fshrink-wrap'
  8347. Emit function prologues only before parts of the function that need
  8348. it, rather than at the top of the function. This flag is enabled
  8349. by default at '-O' and higher.
  8350. '-fshrink-wrap-separate'
  8351. Shrink-wrap separate parts of the prologue and epilogue separately,
  8352. so that those parts are only executed when needed. This option is
  8353. on by default, but has no effect unless '-fshrink-wrap' is also
  8354. turned on and the target supports this.
  8355. '-fcaller-saves'
  8356. Enable allocation of values to registers that are clobbered by
  8357. function calls, by emitting extra instructions to save and restore
  8358. the registers around such calls. Such allocation is done only when
  8359. it seems to result in better code.
  8360. This option is always enabled by default on certain machines,
  8361. usually those which have no call-preserved registers to use
  8362. instead.
  8363. Enabled at levels '-O2', '-O3', '-Os'.
  8364. '-fcombine-stack-adjustments'
  8365. Tracks stack adjustments (pushes and pops) and stack memory
  8366. references and then tries to find ways to combine them.
  8367. Enabled by default at '-O1' and higher.
  8368. '-fipa-ra'
  8369. Use caller save registers for allocation if those registers are not
  8370. used by any called function. In that case it is not necessary to
  8371. save and restore them around calls. This is only possible if
  8372. called functions are part of same compilation unit as current
  8373. function and they are compiled before it.
  8374. Enabled at levels '-O2', '-O3', '-Os', however the option is
  8375. disabled if generated code will be instrumented for profiling
  8376. ('-p', or '-pg') or if callee's register usage cannot be known
  8377. exactly (this happens on targets that do not expose prologues and
  8378. epilogues in RTL).
  8379. '-fconserve-stack'
  8380. Attempt to minimize stack usage. The compiler attempts to use less
  8381. stack space, even if that makes the program slower. This option
  8382. implies setting the 'large-stack-frame' parameter to 100 and the
  8383. 'large-stack-frame-growth' parameter to 400.
  8384. '-ftree-reassoc'
  8385. Perform reassociation on trees. This flag is enabled by default at
  8386. '-O' and higher.
  8387. '-fcode-hoisting'
  8388. Perform code hoisting. Code hoisting tries to move the evaluation
  8389. of expressions executed on all paths to the function exit as early
  8390. as possible. This is especially useful as a code size
  8391. optimization, but it often helps for code speed as well. This flag
  8392. is enabled by default at '-O2' and higher.
  8393. '-ftree-pre'
  8394. Perform partial redundancy elimination (PRE) on trees. This flag
  8395. is enabled by default at '-O2' and '-O3'.
  8396. '-ftree-partial-pre'
  8397. Make partial redundancy elimination (PRE) more aggressive. This
  8398. flag is enabled by default at '-O3'.
  8399. '-ftree-forwprop'
  8400. Perform forward propagation on trees. This flag is enabled by
  8401. default at '-O' and higher.
  8402. '-ftree-fre'
  8403. Perform full redundancy elimination (FRE) on trees. The difference
  8404. between FRE and PRE is that FRE only considers expressions that are
  8405. computed on all paths leading to the redundant computation. This
  8406. analysis is faster than PRE, though it exposes fewer redundancies.
  8407. This flag is enabled by default at '-O' and higher.
  8408. '-ftree-phiprop'
  8409. Perform hoisting of loads from conditional pointers on trees. This
  8410. pass is enabled by default at '-O' and higher.
  8411. '-fhoist-adjacent-loads'
  8412. Speculatively hoist loads from both branches of an if-then-else if
  8413. the loads are from adjacent locations in the same structure and the
  8414. target architecture has a conditional move instruction. This flag
  8415. is enabled by default at '-O2' and higher.
  8416. '-ftree-copy-prop'
  8417. Perform copy propagation on trees. This pass eliminates
  8418. unnecessary copy operations. This flag is enabled by default at
  8419. '-O' and higher.
  8420. '-fipa-pure-const'
  8421. Discover which functions are pure or constant. Enabled by default
  8422. at '-O' and higher.
  8423. '-fipa-reference'
  8424. Discover which static variables do not escape the compilation unit.
  8425. Enabled by default at '-O' and higher.
  8426. '-fipa-reference-addressable'
  8427. Discover read-only, write-only and non-addressable static
  8428. variables. Enabled by default at '-O' and higher.
  8429. '-fipa-stack-alignment'
  8430. Reduce stack alignment on call sites if possible. Enabled by
  8431. default.
  8432. '-fipa-pta'
  8433. Perform interprocedural pointer analysis and interprocedural
  8434. modification and reference analysis. This option can cause
  8435. excessive memory and compile-time usage on large compilation units.
  8436. It is not enabled by default at any optimization level.
  8437. '-fipa-profile'
  8438. Perform interprocedural profile propagation. The functions called
  8439. only from cold functions are marked as cold. Also functions
  8440. executed once (such as 'cold', 'noreturn', static constructors or
  8441. destructors) are identified. Cold functions and loop less parts of
  8442. functions executed once are then optimized for size. Enabled by
  8443. default at '-O' and higher.
  8444. '-fipa-modref'
  8445. Perform interprocedural mod/ref analysis. This optimization
  8446. analyzes the side effects of functions (memory locations that are
  8447. modified or referenced) and enables better optimization across the
  8448. function call boundary. This flag is enabled by default at '-O'
  8449. and higher.
  8450. '-fipa-cp'
  8451. Perform interprocedural constant propagation. This optimization
  8452. analyzes the program to determine when values passed to functions
  8453. are constants and then optimizes accordingly. This optimization
  8454. can substantially increase performance if the application has
  8455. constants passed to functions. This flag is enabled by default at
  8456. '-O2', '-Os' and '-O3'. It is also enabled by '-fprofile-use' and
  8457. '-fauto-profile'.
  8458. '-fipa-cp-clone'
  8459. Perform function cloning to make interprocedural constant
  8460. propagation stronger. When enabled, interprocedural constant
  8461. propagation performs function cloning when externally visible
  8462. function can be called with constant arguments. Because this
  8463. optimization can create multiple copies of functions, it may
  8464. significantly increase code size (see '--param
  8465. ipa-cp-unit-growth=VALUE'). This flag is enabled by default at
  8466. '-O3'. It is also enabled by '-fprofile-use' and '-fauto-profile'.
  8467. '-fipa-bit-cp'
  8468. When enabled, perform interprocedural bitwise constant propagation.
  8469. This flag is enabled by default at '-O2' and by '-fprofile-use' and
  8470. '-fauto-profile'. It requires that '-fipa-cp' is enabled.
  8471. '-fipa-vrp'
  8472. When enabled, perform interprocedural propagation of value ranges.
  8473. This flag is enabled by default at '-O2'. It requires that
  8474. '-fipa-cp' is enabled.
  8475. '-fipa-icf'
  8476. Perform Identical Code Folding for functions and read-only
  8477. variables. The optimization reduces code size and may disturb
  8478. unwind stacks by replacing a function by equivalent one with a
  8479. different name. The optimization works more effectively with
  8480. link-time optimization enabled.
  8481. Although the behavior is similar to the Gold Linker's ICF
  8482. optimization, GCC ICF works on different levels and thus the
  8483. optimizations are not same - there are equivalences that are found
  8484. only by GCC and equivalences found only by Gold.
  8485. This flag is enabled by default at '-O2' and '-Os'.
  8486. '-flive-patching=LEVEL'
  8487. Control GCC's optimizations to produce output suitable for
  8488. live-patching.
  8489. If the compiler's optimization uses a function's body or
  8490. information extracted from its body to optimize/change another
  8491. function, the latter is called an impacted function of the former.
  8492. If a function is patched, its impacted functions should be patched
  8493. too.
  8494. The impacted functions are determined by the compiler's
  8495. interprocedural optimizations. For example, a caller is impacted
  8496. when inlining a function into its caller, cloning a function and
  8497. changing its caller to call this new clone, or extracting a
  8498. function's pureness/constness information to optimize its direct or
  8499. indirect callers, etc.
  8500. Usually, the more IPA optimizations enabled, the larger the number
  8501. of impacted functions for each function. In order to control the
  8502. number of impacted functions and more easily compute the list of
  8503. impacted function, IPA optimizations can be partially enabled at
  8504. two different levels.
  8505. The LEVEL argument should be one of the following:
  8506. 'inline-clone'
  8507. Only enable inlining and cloning optimizations, which includes
  8508. inlining, cloning, interprocedural scalar replacement of
  8509. aggregates and partial inlining. As a result, when patching a
  8510. function, all its callers and its clones' callers are
  8511. impacted, therefore need to be patched as well.
  8512. '-flive-patching=inline-clone' disables the following
  8513. optimization flags:
  8514. -fwhole-program -fipa-pta -fipa-reference -fipa-ra
  8515. -fipa-icf -fipa-icf-functions -fipa-icf-variables
  8516. -fipa-bit-cp -fipa-vrp -fipa-pure-const -fipa-reference-addressable
  8517. -fipa-stack-alignment -fipa-modref
  8518. 'inline-only-static'
  8519. Only enable inlining of static functions. As a result, when
  8520. patching a static function, all its callers are impacted and
  8521. so need to be patched as well.
  8522. In addition to all the flags that
  8523. '-flive-patching=inline-clone' disables,
  8524. '-flive-patching=inline-only-static' disables the following
  8525. additional optimization flags:
  8526. -fipa-cp-clone -fipa-sra -fpartial-inlining -fipa-cp
  8527. When '-flive-patching' is specified without any value, the default
  8528. value is INLINE-CLONE.
  8529. This flag is disabled by default.
  8530. Note that '-flive-patching' is not supported with link-time
  8531. optimization ('-flto').
  8532. '-fisolate-erroneous-paths-dereference'
  8533. Detect paths that trigger erroneous or undefined behavior due to
  8534. dereferencing a null pointer. Isolate those paths from the main
  8535. control flow and turn the statement with erroneous or undefined
  8536. behavior into a trap. This flag is enabled by default at '-O2' and
  8537. higher and depends on '-fdelete-null-pointer-checks' also being
  8538. enabled.
  8539. '-fisolate-erroneous-paths-attribute'
  8540. Detect paths that trigger erroneous or undefined behavior due to a
  8541. null value being used in a way forbidden by a 'returns_nonnull' or
  8542. 'nonnull' attribute. Isolate those paths from the main control
  8543. flow and turn the statement with erroneous or undefined behavior
  8544. into a trap. This is not currently enabled, but may be enabled by
  8545. '-O2' in the future.
  8546. '-ftree-sink'
  8547. Perform forward store motion on trees. This flag is enabled by
  8548. default at '-O' and higher.
  8549. '-ftree-bit-ccp'
  8550. Perform sparse conditional bit constant propagation on trees and
  8551. propagate pointer alignment information. This pass only operates
  8552. on local scalar variables and is enabled by default at '-O1' and
  8553. higher, except for '-Og'. It requires that '-ftree-ccp' is
  8554. enabled.
  8555. '-ftree-ccp'
  8556. Perform sparse conditional constant propagation (CCP) on trees.
  8557. This pass only operates on local scalar variables and is enabled by
  8558. default at '-O' and higher.
  8559. '-fssa-backprop'
  8560. Propagate information about uses of a value up the definition chain
  8561. in order to simplify the definitions. For example, this pass
  8562. strips sign operations if the sign of a value never matters. The
  8563. flag is enabled by default at '-O' and higher.
  8564. '-fssa-phiopt'
  8565. Perform pattern matching on SSA PHI nodes to optimize conditional
  8566. code. This pass is enabled by default at '-O1' and higher, except
  8567. for '-Og'.
  8568. '-ftree-switch-conversion'
  8569. Perform conversion of simple initializations in a switch to
  8570. initializations from a scalar array. This flag is enabled by
  8571. default at '-O2' and higher.
  8572. '-ftree-tail-merge'
  8573. Look for identical code sequences. When found, replace one with a
  8574. jump to the other. This optimization is known as tail merging or
  8575. cross jumping. This flag is enabled by default at '-O2' and
  8576. higher. The compilation time in this pass can be limited using
  8577. 'max-tail-merge-comparisons' parameter and
  8578. 'max-tail-merge-iterations' parameter.
  8579. '-ftree-dce'
  8580. Perform dead code elimination (DCE) on trees. This flag is enabled
  8581. by default at '-O' and higher.
  8582. '-ftree-builtin-call-dce'
  8583. Perform conditional dead code elimination (DCE) for calls to
  8584. built-in functions that may set 'errno' but are otherwise free of
  8585. side effects. This flag is enabled by default at '-O2' and higher
  8586. if '-Os' is not also specified.
  8587. '-ffinite-loops'
  8588. Assume that a loop with an exit will eventually take the exit and
  8589. not loop indefinitely. This allows the compiler to remove loops
  8590. that otherwise have no side-effects, not considering eventual
  8591. endless looping as such.
  8592. This option is enabled by default at '-O2' for C++ with -std=c++11
  8593. or higher.
  8594. '-ftree-dominator-opts'
  8595. Perform a variety of simple scalar cleanups (constant/copy
  8596. propagation, redundancy elimination, range propagation and
  8597. expression simplification) based on a dominator tree traversal.
  8598. This also performs jump threading (to reduce jumps to jumps). This
  8599. flag is enabled by default at '-O' and higher.
  8600. '-ftree-dse'
  8601. Perform dead store elimination (DSE) on trees. A dead store is a
  8602. store into a memory location that is later overwritten by another
  8603. store without any intervening loads. In this case the earlier
  8604. store can be deleted. This flag is enabled by default at '-O' and
  8605. higher.
  8606. '-ftree-ch'
  8607. Perform loop header copying on trees. This is beneficial since it
  8608. increases effectiveness of code motion optimizations. It also
  8609. saves one jump. This flag is enabled by default at '-O' and
  8610. higher. It is not enabled for '-Os', since it usually increases
  8611. code size.
  8612. '-ftree-loop-optimize'
  8613. Perform loop optimizations on trees. This flag is enabled by
  8614. default at '-O' and higher.
  8615. '-ftree-loop-linear'
  8616. '-floop-strip-mine'
  8617. '-floop-block'
  8618. Perform loop nest optimizations. Same as '-floop-nest-optimize'.
  8619. To use this code transformation, GCC has to be configured with
  8620. '--with-isl' to enable the Graphite loop transformation
  8621. infrastructure.
  8622. '-fgraphite-identity'
  8623. Enable the identity transformation for graphite. For every SCoP we
  8624. generate the polyhedral representation and transform it back to
  8625. gimple. Using '-fgraphite-identity' we can check the costs or
  8626. benefits of the GIMPLE -> GRAPHITE -> GIMPLE transformation. Some
  8627. minimal optimizations are also performed by the code generator isl,
  8628. like index splitting and dead code elimination in loops.
  8629. '-floop-nest-optimize'
  8630. Enable the isl based loop nest optimizer. This is a generic loop
  8631. nest optimizer based on the Pluto optimization algorithms. It
  8632. calculates a loop structure optimized for data-locality and
  8633. parallelism. This option is experimental.
  8634. '-floop-parallelize-all'
  8635. Use the Graphite data dependence analysis to identify loops that
  8636. can be parallelized. Parallelize all the loops that can be
  8637. analyzed to not contain loop carried dependences without checking
  8638. that it is profitable to parallelize the loops.
  8639. '-ftree-coalesce-vars'
  8640. While transforming the program out of the SSA representation,
  8641. attempt to reduce copying by coalescing versions of different
  8642. user-defined variables, instead of just compiler temporaries. This
  8643. may severely limit the ability to debug an optimized program
  8644. compiled with '-fno-var-tracking-assignments'. In the negated
  8645. form, this flag prevents SSA coalescing of user variables. This
  8646. option is enabled by default if optimization is enabled, and it
  8647. does very little otherwise.
  8648. '-ftree-loop-if-convert'
  8649. Attempt to transform conditional jumps in the innermost loops to
  8650. branch-less equivalents. The intent is to remove control-flow from
  8651. the innermost loops in order to improve the ability of the
  8652. vectorization pass to handle these loops. This is enabled by
  8653. default if vectorization is enabled.
  8654. '-ftree-loop-distribution'
  8655. Perform loop distribution. This flag can improve cache performance
  8656. on big loop bodies and allow further loop optimizations, like
  8657. parallelization or vectorization, to take place. For example, the
  8658. loop
  8659. DO I = 1, N
  8660. A(I) = B(I) + C
  8661. D(I) = E(I) * F
  8662. ENDDO
  8663. is transformed to
  8664. DO I = 1, N
  8665. A(I) = B(I) + C
  8666. ENDDO
  8667. DO I = 1, N
  8668. D(I) = E(I) * F
  8669. ENDDO
  8670. This flag is enabled by default at '-O3'. It is also enabled by
  8671. '-fprofile-use' and '-fauto-profile'.
  8672. '-ftree-loop-distribute-patterns'
  8673. Perform loop distribution of patterns that can be code generated
  8674. with calls to a library. This flag is enabled by default at '-O2'
  8675. and higher, and by '-fprofile-use' and '-fauto-profile'.
  8676. This pass distributes the initialization loops and generates a call
  8677. to memset zero. For example, the loop
  8678. DO I = 1, N
  8679. A(I) = 0
  8680. B(I) = A(I) + I
  8681. ENDDO
  8682. is transformed to
  8683. DO I = 1, N
  8684. A(I) = 0
  8685. ENDDO
  8686. DO I = 1, N
  8687. B(I) = A(I) + I
  8688. ENDDO
  8689. and the initialization loop is transformed into a call to memset
  8690. zero. This flag is enabled by default at '-O3'. It is also
  8691. enabled by '-fprofile-use' and '-fauto-profile'.
  8692. '-floop-interchange'
  8693. Perform loop interchange outside of graphite. This flag can
  8694. improve cache performance on loop nest and allow further loop
  8695. optimizations, like vectorization, to take place. For example, the
  8696. loop
  8697. for (int i = 0; i < N; i++)
  8698. for (int j = 0; j < N; j++)
  8699. for (int k = 0; k < N; k++)
  8700. c[i][j] = c[i][j] + a[i][k]*b[k][j];
  8701. is transformed to
  8702. for (int i = 0; i < N; i++)
  8703. for (int k = 0; k < N; k++)
  8704. for (int j = 0; j < N; j++)
  8705. c[i][j] = c[i][j] + a[i][k]*b[k][j];
  8706. This flag is enabled by default at '-O3'. It is also enabled by
  8707. '-fprofile-use' and '-fauto-profile'.
  8708. '-floop-unroll-and-jam'
  8709. Apply unroll and jam transformations on feasible loops. In a loop
  8710. nest this unrolls the outer loop by some factor and fuses the
  8711. resulting multiple inner loops. This flag is enabled by default at
  8712. '-O3'. It is also enabled by '-fprofile-use' and '-fauto-profile'.
  8713. '-ftree-loop-im'
  8714. Perform loop invariant motion on trees. This pass moves only
  8715. invariants that are hard to handle at RTL level (function calls,
  8716. operations that expand to nontrivial sequences of insns). With
  8717. '-funswitch-loops' it also moves operands of conditions that are
  8718. invariant out of the loop, so that we can use just trivial
  8719. invariantness analysis in loop unswitching. The pass also includes
  8720. store motion.
  8721. '-ftree-loop-ivcanon'
  8722. Create a canonical counter for number of iterations in loops for
  8723. which determining number of iterations requires complicated
  8724. analysis. Later optimizations then may determine the number
  8725. easily. Useful especially in connection with unrolling.
  8726. '-ftree-scev-cprop'
  8727. Perform final value replacement. If a variable is modified in a
  8728. loop in such a way that its value when exiting the loop can be
  8729. determined using only its initial value and the number of loop
  8730. iterations, replace uses of the final value by such a computation,
  8731. provided it is sufficiently cheap. This reduces data dependencies
  8732. and may allow further simplifications. Enabled by default at '-O'
  8733. and higher.
  8734. '-fivopts'
  8735. Perform induction variable optimizations (strength reduction,
  8736. induction variable merging and induction variable elimination) on
  8737. trees.
  8738. '-ftree-parallelize-loops=n'
  8739. Parallelize loops, i.e., split their iteration space to run in n
  8740. threads. This is only possible for loops whose iterations are
  8741. independent and can be arbitrarily reordered. The optimization is
  8742. only profitable on multiprocessor machines, for loops that are
  8743. CPU-intensive, rather than constrained e.g. by memory bandwidth.
  8744. This option implies '-pthread', and thus is only supported on
  8745. targets that have support for '-pthread'.
  8746. '-ftree-pta'
  8747. Perform function-local points-to analysis on trees. This flag is
  8748. enabled by default at '-O1' and higher, except for '-Og'.
  8749. '-ftree-sra'
  8750. Perform scalar replacement of aggregates. This pass replaces
  8751. structure references with scalars to prevent committing structures
  8752. to memory too early. This flag is enabled by default at '-O1' and
  8753. higher, except for '-Og'.
  8754. '-fstore-merging'
  8755. Perform merging of narrow stores to consecutive memory addresses.
  8756. This pass merges contiguous stores of immediate values narrower
  8757. than a word into fewer wider stores to reduce the number of
  8758. instructions. This is enabled by default at '-O2' and higher as
  8759. well as '-Os'.
  8760. '-ftree-ter'
  8761. Perform temporary expression replacement during the SSA->normal
  8762. phase. Single use/single def temporaries are replaced at their use
  8763. location with their defining expression. This results in
  8764. non-GIMPLE code, but gives the expanders much more complex trees to
  8765. work on resulting in better RTL generation. This is enabled by
  8766. default at '-O' and higher.
  8767. '-ftree-slsr'
  8768. Perform straight-line strength reduction on trees. This recognizes
  8769. related expressions involving multiplications and replaces them by
  8770. less expensive calculations when possible. This is enabled by
  8771. default at '-O' and higher.
  8772. '-ftree-vectorize'
  8773. Perform vectorization on trees. This flag enables
  8774. '-ftree-loop-vectorize' and '-ftree-slp-vectorize' if not
  8775. explicitly specified.
  8776. '-ftree-loop-vectorize'
  8777. Perform loop vectorization on trees. This flag is enabled by
  8778. default at '-O3' and by '-ftree-vectorize', '-fprofile-use', and
  8779. '-fauto-profile'.
  8780. '-ftree-slp-vectorize'
  8781. Perform basic block vectorization on trees. This flag is enabled
  8782. by default at '-O3' and by '-ftree-vectorize', '-fprofile-use', and
  8783. '-fauto-profile'.
  8784. '-fvect-cost-model=MODEL'
  8785. Alter the cost model used for vectorization. The MODEL argument
  8786. should be one of 'unlimited', 'dynamic', 'cheap' or 'very-cheap'.
  8787. With the 'unlimited' model the vectorized code-path is assumed to
  8788. be profitable while with the 'dynamic' model a runtime check guards
  8789. the vectorized code-path to enable it only for iteration counts
  8790. that will likely execute faster than when executing the original
  8791. scalar loop. The 'cheap' model disables vectorization of loops
  8792. where doing so would be cost prohibitive for example due to
  8793. required runtime checks for data dependence or alignment but
  8794. otherwise is equal to the 'dynamic' model. The 'very-cheap' model
  8795. only allows vectorization if the vector code would entirely replace
  8796. the scalar code that is being vectorized. For example, if each
  8797. iteration of a vectorized loop would only be able to handle exactly
  8798. four iterations of the scalar loop, the 'very-cheap' model would
  8799. only allow vectorization if the scalar iteration count is known to
  8800. be a multiple of four.
  8801. The default cost model depends on other optimization flags and is
  8802. either 'dynamic' or 'cheap'.
  8803. '-fsimd-cost-model=MODEL'
  8804. Alter the cost model used for vectorization of loops marked with
  8805. the OpenMP simd directive. The MODEL argument should be one of
  8806. 'unlimited', 'dynamic', 'cheap'. All values of MODEL have the same
  8807. meaning as described in '-fvect-cost-model' and by default a cost
  8808. model defined with '-fvect-cost-model' is used.
  8809. '-ftree-vrp'
  8810. Perform Value Range Propagation on trees. This is similar to the
  8811. constant propagation pass, but instead of values, ranges of values
  8812. are propagated. This allows the optimizers to remove unnecessary
  8813. range checks like array bound checks and null pointer checks. This
  8814. is enabled by default at '-O2' and higher. Null pointer check
  8815. elimination is only done if '-fdelete-null-pointer-checks' is
  8816. enabled.
  8817. '-fsplit-paths'
  8818. Split paths leading to loop backedges. This can improve dead code
  8819. elimination and common subexpression elimination. This is enabled
  8820. by default at '-O3' and above.
  8821. '-fsplit-ivs-in-unroller'
  8822. Enables expression of values of induction variables in later
  8823. iterations of the unrolled loop using the value in the first
  8824. iteration. This breaks long dependency chains, thus improving
  8825. efficiency of the scheduling passes.
  8826. A combination of '-fweb' and CSE is often sufficient to obtain the
  8827. same effect. However, that is not reliable in cases where the loop
  8828. body is more complicated than a single basic block. It also does
  8829. not work at all on some architectures due to restrictions in the
  8830. CSE pass.
  8831. This optimization is enabled by default.
  8832. '-fvariable-expansion-in-unroller'
  8833. With this option, the compiler creates multiple copies of some
  8834. local variables when unrolling a loop, which can result in superior
  8835. code.
  8836. This optimization is enabled by default for PowerPC targets, but
  8837. disabled by default otherwise.
  8838. '-fpartial-inlining'
  8839. Inline parts of functions. This option has any effect only when
  8840. inlining itself is turned on by the '-finline-functions' or
  8841. '-finline-small-functions' options.
  8842. Enabled at levels '-O2', '-O3', '-Os'.
  8843. '-fpredictive-commoning'
  8844. Perform predictive commoning optimization, i.e., reusing
  8845. computations (especially memory loads and stores) performed in
  8846. previous iterations of loops.
  8847. This option is enabled at level '-O3'. It is also enabled by
  8848. '-fprofile-use' and '-fauto-profile'.
  8849. '-fprefetch-loop-arrays'
  8850. If supported by the target machine, generate instructions to
  8851. prefetch memory to improve the performance of loops that access
  8852. large arrays.
  8853. This option may generate better or worse code; results are highly
  8854. dependent on the structure of loops within the source code.
  8855. Disabled at level '-Os'.
  8856. '-fno-printf-return-value'
  8857. Do not substitute constants for known return value of formatted
  8858. output functions such as 'sprintf', 'snprintf', 'vsprintf', and
  8859. 'vsnprintf' (but not 'printf' of 'fprintf'). This transformation
  8860. allows GCC to optimize or even eliminate branches based on the
  8861. known return value of these functions called with arguments that
  8862. are either constant, or whose values are known to be in a range
  8863. that makes determining the exact return value possible. For
  8864. example, when '-fprintf-return-value' is in effect, both the branch
  8865. and the body of the 'if' statement (but not the call to 'snprint')
  8866. can be optimized away when 'i' is a 32-bit or smaller integer
  8867. because the return value is guaranteed to be at most 8.
  8868. char buf[9];
  8869. if (snprintf (buf, "%08x", i) >= sizeof buf)
  8870. ...
  8871. The '-fprintf-return-value' option relies on other optimizations
  8872. and yields best results with '-O2' and above. It works in tandem
  8873. with the '-Wformat-overflow' and '-Wformat-truncation' options.
  8874. The '-fprintf-return-value' option is enabled by default.
  8875. '-fno-peephole'
  8876. '-fno-peephole2'
  8877. Disable any machine-specific peephole optimizations. The
  8878. difference between '-fno-peephole' and '-fno-peephole2' is in how
  8879. they are implemented in the compiler; some targets use one, some
  8880. use the other, a few use both.
  8881. '-fpeephole' is enabled by default. '-fpeephole2' enabled at
  8882. levels '-O2', '-O3', '-Os'.
  8883. '-fno-guess-branch-probability'
  8884. Do not guess branch probabilities using heuristics.
  8885. GCC uses heuristics to guess branch probabilities if they are not
  8886. provided by profiling feedback ('-fprofile-arcs'). These
  8887. heuristics are based on the control flow graph. If some branch
  8888. probabilities are specified by '__builtin_expect', then the
  8889. heuristics are used to guess branch probabilities for the rest of
  8890. the control flow graph, taking the '__builtin_expect' info into
  8891. account. The interactions between the heuristics and
  8892. '__builtin_expect' can be complex, and in some cases, it may be
  8893. useful to disable the heuristics so that the effects of
  8894. '__builtin_expect' are easier to understand.
  8895. It is also possible to specify expected probability of the
  8896. expression with '__builtin_expect_with_probability' built-in
  8897. function.
  8898. The default is '-fguess-branch-probability' at levels '-O', '-O2',
  8899. '-O3', '-Os'.
  8900. '-freorder-blocks'
  8901. Reorder basic blocks in the compiled function in order to reduce
  8902. number of taken branches and improve code locality.
  8903. Enabled at levels '-O', '-O2', '-O3', '-Os'.
  8904. '-freorder-blocks-algorithm=ALGORITHM'
  8905. Use the specified algorithm for basic block reordering. The
  8906. ALGORITHM argument can be 'simple', which does not increase code
  8907. size (except sometimes due to secondary effects like alignment), or
  8908. 'stc', the "software trace cache" algorithm, which tries to put all
  8909. often executed code together, minimizing the number of branches
  8910. executed by making extra copies of code.
  8911. The default is 'simple' at levels '-O', '-Os', and 'stc' at levels
  8912. '-O2', '-O3'.
  8913. '-freorder-blocks-and-partition'
  8914. In addition to reordering basic blocks in the compiled function, in
  8915. order to reduce number of taken branches, partitions hot and cold
  8916. basic blocks into separate sections of the assembly and '.o' files,
  8917. to improve paging and cache locality performance.
  8918. This optimization is automatically turned off in the presence of
  8919. exception handling or unwind tables (on targets using
  8920. setjump/longjump or target specific scheme), for linkonce sections,
  8921. for functions with a user-defined section attribute and on any
  8922. architecture that does not support named sections. When
  8923. '-fsplit-stack' is used this option is not enabled by default (to
  8924. avoid linker errors), but may be enabled explicitly (if using a
  8925. working linker).
  8926. Enabled for x86 at levels '-O2', '-O3', '-Os'.
  8927. '-freorder-functions'
  8928. Reorder functions in the object file in order to improve code
  8929. locality. This is implemented by using special subsections
  8930. '.text.hot' for most frequently executed functions and
  8931. '.text.unlikely' for unlikely executed functions. Reordering is
  8932. done by the linker so object file format must support named
  8933. sections and linker must place them in a reasonable way.
  8934. This option isn't effective unless you either provide profile
  8935. feedback (see '-fprofile-arcs' for details) or manually annotate
  8936. functions with 'hot' or 'cold' attributes (*note Common Function
  8937. Attributes::).
  8938. Enabled at levels '-O2', '-O3', '-Os'.
  8939. '-fstrict-aliasing'
  8940. Allow the compiler to assume the strictest aliasing rules
  8941. applicable to the language being compiled. For C (and C++), this
  8942. activates optimizations based on the type of expressions. In
  8943. particular, an object of one type is assumed never to reside at the
  8944. same address as an object of a different type, unless the types are
  8945. almost the same. For example, an 'unsigned int' can alias an
  8946. 'int', but not a 'void*' or a 'double'. A character type may alias
  8947. any other type.
  8948. Pay special attention to code like this:
  8949. union a_union {
  8950. int i;
  8951. double d;
  8952. };
  8953. int f() {
  8954. union a_union t;
  8955. t.d = 3.0;
  8956. return t.i;
  8957. }
  8958. The practice of reading from a different union member than the one
  8959. most recently written to (called "type-punning") is common. Even
  8960. with '-fstrict-aliasing', type-punning is allowed, provided the
  8961. memory is accessed through the union type. So, the code above
  8962. works as expected. *Note Structures unions enumerations and
  8963. bit-fields implementation::. However, this code might not:
  8964. int f() {
  8965. union a_union t;
  8966. int* ip;
  8967. t.d = 3.0;
  8968. ip = &t.i;
  8969. return *ip;
  8970. }
  8971. Similarly, access by taking the address, casting the resulting
  8972. pointer and dereferencing the result has undefined behavior, even
  8973. if the cast uses a union type, e.g.:
  8974. int f() {
  8975. double d = 3.0;
  8976. return ((union a_union *) &d)->i;
  8977. }
  8978. The '-fstrict-aliasing' option is enabled at levels '-O2', '-O3',
  8979. '-Os'.
  8980. '-falign-functions'
  8981. '-falign-functions=N'
  8982. '-falign-functions=N:M'
  8983. '-falign-functions=N:M:N2'
  8984. '-falign-functions=N:M:N2:M2'
  8985. Align the start of functions to the next power-of-two greater than
  8986. or equal to N, skipping up to M-1 bytes. This ensures that at
  8987. least the first M bytes of the function can be fetched by the CPU
  8988. without crossing an N-byte alignment boundary.
  8989. If M is not specified, it defaults to N.
  8990. Examples: '-falign-functions=32' aligns functions to the next
  8991. 32-byte boundary, '-falign-functions=24' aligns to the next 32-byte
  8992. boundary only if this can be done by skipping 23 bytes or less,
  8993. '-falign-functions=32:7' aligns to the next 32-byte boundary only
  8994. if this can be done by skipping 6 bytes or less.
  8995. The second pair of N2:M2 values allows you to specify a secondary
  8996. alignment: '-falign-functions=64:7:32:3' aligns to the next 64-byte
  8997. boundary if this can be done by skipping 6 bytes or less, otherwise
  8998. aligns to the next 32-byte boundary if this can be done by skipping
  8999. 2 bytes or less. If M2 is not specified, it defaults to N2.
  9000. Some assemblers only support this flag when N is a power of two; in
  9001. that case, it is rounded up.
  9002. '-fno-align-functions' and '-falign-functions=1' are equivalent and
  9003. mean that functions are not aligned.
  9004. If N is not specified or is zero, use a machine-dependent default.
  9005. The maximum allowed N option value is 65536.
  9006. Enabled at levels '-O2', '-O3'.
  9007. '-flimit-function-alignment'
  9008. If this option is enabled, the compiler tries to avoid
  9009. unnecessarily overaligning functions. It attempts to instruct the
  9010. assembler to align by the amount specified by '-falign-functions',
  9011. but not to skip more bytes than the size of the function.
  9012. '-falign-labels'
  9013. '-falign-labels=N'
  9014. '-falign-labels=N:M'
  9015. '-falign-labels=N:M:N2'
  9016. '-falign-labels=N:M:N2:M2'
  9017. Align all branch targets to a power-of-two boundary.
  9018. Parameters of this option are analogous to the '-falign-functions'
  9019. option. '-fno-align-labels' and '-falign-labels=1' are equivalent
  9020. and mean that labels are not aligned.
  9021. If '-falign-loops' or '-falign-jumps' are applicable and are
  9022. greater than this value, then their values are used instead.
  9023. If N is not specified or is zero, use a machine-dependent default
  9024. which is very likely to be '1', meaning no alignment. The maximum
  9025. allowed N option value is 65536.
  9026. Enabled at levels '-O2', '-O3'.
  9027. '-falign-loops'
  9028. '-falign-loops=N'
  9029. '-falign-loops=N:M'
  9030. '-falign-loops=N:M:N2'
  9031. '-falign-loops=N:M:N2:M2'
  9032. Align loops to a power-of-two boundary. If the loops are executed
  9033. many times, this makes up for any execution of the dummy padding
  9034. instructions.
  9035. If '-falign-labels' is greater than this value, then its value is
  9036. used instead.
  9037. Parameters of this option are analogous to the '-falign-functions'
  9038. option. '-fno-align-loops' and '-falign-loops=1' are equivalent
  9039. and mean that loops are not aligned. The maximum allowed N option
  9040. value is 65536.
  9041. If N is not specified or is zero, use a machine-dependent default.
  9042. Enabled at levels '-O2', '-O3'.
  9043. '-falign-jumps'
  9044. '-falign-jumps=N'
  9045. '-falign-jumps=N:M'
  9046. '-falign-jumps=N:M:N2'
  9047. '-falign-jumps=N:M:N2:M2'
  9048. Align branch targets to a power-of-two boundary, for branch targets
  9049. where the targets can only be reached by jumping. In this case, no
  9050. dummy operations need be executed.
  9051. If '-falign-labels' is greater than this value, then its value is
  9052. used instead.
  9053. Parameters of this option are analogous to the '-falign-functions'
  9054. option. '-fno-align-jumps' and '-falign-jumps=1' are equivalent
  9055. and mean that loops are not aligned.
  9056. If N is not specified or is zero, use a machine-dependent default.
  9057. The maximum allowed N option value is 65536.
  9058. Enabled at levels '-O2', '-O3'.
  9059. '-fno-allocation-dce'
  9060. Do not remove unused C++ allocations in dead code elimination.
  9061. '-fallow-store-data-races'
  9062. Allow the compiler to perform optimizations that may introduce new
  9063. data races on stores, without proving that the variable cannot be
  9064. concurrently accessed by other threads. Does not affect
  9065. optimization of local data. It is safe to use this option if it is
  9066. known that global data will not be accessed by multiple threads.
  9067. Examples of optimizations enabled by '-fallow-store-data-races'
  9068. include hoisting or if-conversions that may cause a value that was
  9069. already in memory to be re-written with that same value. Such
  9070. re-writing is safe in a single threaded context but may be unsafe
  9071. in a multi-threaded context. Note that on some processors,
  9072. if-conversions may be required in order to enable vectorization.
  9073. Enabled at level '-Ofast'.
  9074. '-funit-at-a-time'
  9075. This option is left for compatibility reasons. '-funit-at-a-time'
  9076. has no effect, while '-fno-unit-at-a-time' implies
  9077. '-fno-toplevel-reorder' and '-fno-section-anchors'.
  9078. Enabled by default.
  9079. '-fno-toplevel-reorder'
  9080. Do not reorder top-level functions, variables, and 'asm'
  9081. statements. Output them in the same order that they appear in the
  9082. input file. When this option is used, unreferenced static
  9083. variables are not removed. This option is intended to support
  9084. existing code that relies on a particular ordering. For new code,
  9085. it is better to use attributes when possible.
  9086. '-ftoplevel-reorder' is the default at '-O1' and higher, and also
  9087. at '-O0' if '-fsection-anchors' is explicitly requested.
  9088. Additionally '-fno-toplevel-reorder' implies
  9089. '-fno-section-anchors'.
  9090. '-fweb'
  9091. Constructs webs as commonly used for register allocation purposes
  9092. and assign each web individual pseudo register. This allows the
  9093. register allocation pass to operate on pseudos directly, but also
  9094. strengthens several other optimization passes, such as CSE, loop
  9095. optimizer and trivial dead code remover. It can, however, make
  9096. debugging impossible, since variables no longer stay in a "home
  9097. register".
  9098. Enabled by default with '-funroll-loops'.
  9099. '-fwhole-program'
  9100. Assume that the current compilation unit represents the whole
  9101. program being compiled. All public functions and variables with
  9102. the exception of 'main' and those merged by attribute
  9103. 'externally_visible' become static functions and in effect are
  9104. optimized more aggressively by interprocedural optimizers.
  9105. This option should not be used in combination with '-flto'.
  9106. Instead relying on a linker plugin should provide safer and more
  9107. precise information.
  9108. '-flto[=N]'
  9109. This option runs the standard link-time optimizer. When invoked
  9110. with source code, it generates GIMPLE (one of GCC's internal
  9111. representations) and writes it to special ELF sections in the
  9112. object file. When the object files are linked together, all the
  9113. function bodies are read from these ELF sections and instantiated
  9114. as if they had been part of the same translation unit.
  9115. To use the link-time optimizer, '-flto' and optimization options
  9116. should be specified at compile time and during the final link. It
  9117. is recommended that you compile all the files participating in the
  9118. same link with the same options and also specify those options at
  9119. link time. For example:
  9120. gcc -c -O2 -flto foo.c
  9121. gcc -c -O2 -flto bar.c
  9122. gcc -o myprog -flto -O2 foo.o bar.o
  9123. The first two invocations to GCC save a bytecode representation of
  9124. GIMPLE into special ELF sections inside 'foo.o' and 'bar.o'. The
  9125. final invocation reads the GIMPLE bytecode from 'foo.o' and
  9126. 'bar.o', merges the two files into a single internal image, and
  9127. compiles the result as usual. Since both 'foo.o' and 'bar.o' are
  9128. merged into a single image, this causes all the interprocedural
  9129. analyses and optimizations in GCC to work across the two files as
  9130. if they were a single one. This means, for example, that the
  9131. inliner is able to inline functions in 'bar.o' into functions in
  9132. 'foo.o' and vice-versa.
  9133. Another (simpler) way to enable link-time optimization is:
  9134. gcc -o myprog -flto -O2 foo.c bar.c
  9135. The above generates bytecode for 'foo.c' and 'bar.c', merges them
  9136. together into a single GIMPLE representation and optimizes them as
  9137. usual to produce 'myprog'.
  9138. The important thing to keep in mind is that to enable link-time
  9139. optimizations you need to use the GCC driver to perform the link
  9140. step. GCC automatically performs link-time optimization if any of
  9141. the objects involved were compiled with the '-flto' command-line
  9142. option. You can always override the automatic decision to do
  9143. link-time optimization by passing '-fno-lto' to the link command.
  9144. To make whole program optimization effective, it is necessary to
  9145. make certain whole program assumptions. The compiler needs to know
  9146. what functions and variables can be accessed by libraries and
  9147. runtime outside of the link-time optimized unit. When supported by
  9148. the linker, the linker plugin (see '-fuse-linker-plugin') passes
  9149. information to the compiler about used and externally visible
  9150. symbols. When the linker plugin is not available,
  9151. '-fwhole-program' should be used to allow the compiler to make
  9152. these assumptions, which leads to more aggressive optimization
  9153. decisions.
  9154. When a file is compiled with '-flto' without '-fuse-linker-plugin',
  9155. the generated object file is larger than a regular object file
  9156. because it contains GIMPLE bytecodes and the usual final code (see
  9157. '-ffat-lto-objects'). This means that object files with LTO
  9158. information can be linked as normal object files; if '-fno-lto' is
  9159. passed to the linker, no interprocedural optimizations are applied.
  9160. Note that when '-fno-fat-lto-objects' is enabled the compile stage
  9161. is faster but you cannot perform a regular, non-LTO link on them.
  9162. When producing the final binary, GCC only applies link-time
  9163. optimizations to those files that contain bytecode. Therefore, you
  9164. can mix and match object files and libraries with GIMPLE bytecodes
  9165. and final object code. GCC automatically selects which files to
  9166. optimize in LTO mode and which files to link without further
  9167. processing.
  9168. Generally, options specified at link time override those specified
  9169. at compile time, although in some cases GCC attempts to infer
  9170. link-time options from the settings used to compile the input
  9171. files.
  9172. If you do not specify an optimization level option '-O' at link
  9173. time, then GCC uses the highest optimization level used when
  9174. compiling the object files. Note that it is generally ineffective
  9175. to specify an optimization level option only at link time and not
  9176. at compile time, for two reasons. First, compiling without
  9177. optimization suppresses compiler passes that gather information
  9178. needed for effective optimization at link time. Second, some early
  9179. optimization passes can be performed only at compile time and not
  9180. at link time.
  9181. There are some code generation flags preserved by GCC when
  9182. generating bytecodes, as they need to be used during the final
  9183. link. Currently, the following options and their settings are
  9184. taken from the first object file that explicitly specifies them:
  9185. '-fcommon', '-fexceptions', '-fnon-call-exceptions', '-fgnu-tm' and
  9186. all the '-m' target flags.
  9187. The following options '-fPIC', '-fpic', '-fpie' and '-fPIE' are
  9188. combined based on the following scheme:
  9189. -fPIC + -fpic = -fpic
  9190. -fPIC + -fno-pic = -fno-pic
  9191. -fpic/-fPIC + (no option) = (no option)
  9192. -fPIC + -fPIE = -fPIE
  9193. -fpic + -fPIE = -fpie
  9194. -fPIC/-fpic + -fpie = -fpie
  9195. Certain ABI-changing flags are required to match in all compilation
  9196. units, and trying to override this at link time with a conflicting
  9197. value is ignored. This includes options such as
  9198. '-freg-struct-return' and '-fpcc-struct-return'.
  9199. Other options such as '-ffp-contract', '-fno-strict-overflow',
  9200. '-fwrapv', '-fno-trapv' or '-fno-strict-aliasing' are passed
  9201. through to the link stage and merged conservatively for conflicting
  9202. translation units. Specifically '-fno-strict-overflow', '-fwrapv'
  9203. and '-fno-trapv' take precedence; and for example
  9204. '-ffp-contract=off' takes precedence over '-ffp-contract=fast'.
  9205. You can override them at link time.
  9206. Diagnostic options such as '-Wstringop-overflow' are passed through
  9207. to the link stage and their setting matches that of the
  9208. compile-step at function granularity. Note that this matters only
  9209. for diagnostics emitted during optimization. Note that code
  9210. transforms such as inlining can lead to warnings being enabled or
  9211. disabled for regions if code not consistent with the setting at
  9212. compile time.
  9213. When you need to pass options to the assembler via '-Wa' or
  9214. '-Xassembler' make sure to either compile such translation units
  9215. with '-fno-lto' or consistently use the same assembler options on
  9216. all translation units. You can alternatively also specify
  9217. assembler options at LTO link time.
  9218. To enable debug info generation you need to supply '-g' at compile
  9219. time. If any of the input files at link time were built with debug
  9220. info generation enabled the link will enable debug info generation
  9221. as well. Any elaborate debug info settings like the dwarf level
  9222. '-gdwarf-5' need to be explicitly repeated at the linker command
  9223. line and mixing different settings in different translation units
  9224. is discouraged.
  9225. If LTO encounters objects with C linkage declared with incompatible
  9226. types in separate translation units to be linked together
  9227. (undefined behavior according to ISO C99 6.2.7), a non-fatal
  9228. diagnostic may be issued. The behavior is still undefined at run
  9229. time. Similar diagnostics may be raised for other languages.
  9230. Another feature of LTO is that it is possible to apply
  9231. interprocedural optimizations on files written in different
  9232. languages:
  9233. gcc -c -flto foo.c
  9234. g++ -c -flto bar.cc
  9235. gfortran -c -flto baz.f90
  9236. g++ -o myprog -flto -O3 foo.o bar.o baz.o -lgfortran
  9237. Notice that the final link is done with 'g++' to get the C++
  9238. runtime libraries and '-lgfortran' is added to get the Fortran
  9239. runtime libraries. In general, when mixing languages in LTO mode,
  9240. you should use the same link command options as when mixing
  9241. languages in a regular (non-LTO) compilation.
  9242. If object files containing GIMPLE bytecode are stored in a library
  9243. archive, say 'libfoo.a', it is possible to extract and use them in
  9244. an LTO link if you are using a linker with plugin support. To
  9245. create static libraries suitable for LTO, use 'gcc-ar' and
  9246. 'gcc-ranlib' instead of 'ar' and 'ranlib'; to show the symbols of
  9247. object files with GIMPLE bytecode, use 'gcc-nm'. Those commands
  9248. require that 'ar', 'ranlib' and 'nm' have been compiled with plugin
  9249. support. At link time, use the flag '-fuse-linker-plugin' to
  9250. ensure that the library participates in the LTO optimization
  9251. process:
  9252. gcc -o myprog -O2 -flto -fuse-linker-plugin a.o b.o -lfoo
  9253. With the linker plugin enabled, the linker extracts the needed
  9254. GIMPLE files from 'libfoo.a' and passes them on to the running GCC
  9255. to make them part of the aggregated GIMPLE image to be optimized.
  9256. If you are not using a linker with plugin support and/or do not
  9257. enable the linker plugin, then the objects inside 'libfoo.a' are
  9258. extracted and linked as usual, but they do not participate in the
  9259. LTO optimization process. In order to make a static library
  9260. suitable for both LTO optimization and usual linkage, compile its
  9261. object files with '-flto' '-ffat-lto-objects'.
  9262. Link-time optimizations do not require the presence of the whole
  9263. program to operate. If the program does not require any symbols to
  9264. be exported, it is possible to combine '-flto' and
  9265. '-fwhole-program' to allow the interprocedural optimizers to use
  9266. more aggressive assumptions which may lead to improved optimization
  9267. opportunities. Use of '-fwhole-program' is not needed when linker
  9268. plugin is active (see '-fuse-linker-plugin').
  9269. The current implementation of LTO makes no attempt to generate
  9270. bytecode that is portable between different types of hosts. The
  9271. bytecode files are versioned and there is a strict version check,
  9272. so bytecode files generated in one version of GCC do not work with
  9273. an older or newer version of GCC.
  9274. Link-time optimization does not work well with generation of
  9275. debugging information on systems other than those using a
  9276. combination of ELF and DWARF.
  9277. If you specify the optional N, the optimization and code generation
  9278. done at link time is executed in parallel using N parallel jobs by
  9279. utilizing an installed 'make' program. The environment variable
  9280. 'MAKE' may be used to override the program used.
  9281. You can also specify '-flto=jobserver' to use GNU make's job server
  9282. mode to determine the number of parallel jobs. This is useful when
  9283. the Makefile calling GCC is already executing in parallel. You
  9284. must prepend a '+' to the command recipe in the parent Makefile for
  9285. this to work. This option likely only works if 'MAKE' is GNU make.
  9286. Even without the option value, GCC tries to automatically detect a
  9287. running GNU make's job server.
  9288. Use '-flto=auto' to use GNU make's job server, if available, or
  9289. otherwise fall back to autodetection of the number of CPU threads
  9290. present in your system.
  9291. '-flto-partition=ALG'
  9292. Specify the partitioning algorithm used by the link-time optimizer.
  9293. The value is either '1to1' to specify a partitioning mirroring the
  9294. original source files or 'balanced' to specify partitioning into
  9295. equally sized chunks (whenever possible) or 'max' to create new
  9296. partition for every symbol where possible. Specifying 'none' as an
  9297. algorithm disables partitioning and streaming completely. The
  9298. default value is 'balanced'. While '1to1' can be used as an
  9299. workaround for various code ordering issues, the 'max' partitioning
  9300. is intended for internal testing only. The value 'one' specifies
  9301. that exactly one partition should be used while the value 'none'
  9302. bypasses partitioning and executes the link-time optimization step
  9303. directly from the WPA phase.
  9304. '-flto-compression-level=N'
  9305. This option specifies the level of compression used for
  9306. intermediate language written to LTO object files, and is only
  9307. meaningful in conjunction with LTO mode ('-flto'). GCC currently
  9308. supports two LTO compression algorithms. For zstd, valid values
  9309. are 0 (no compression) to 19 (maximum compression), while zlib
  9310. supports values from 0 to 9. Values outside this range are clamped
  9311. to either minimum or maximum of the supported values. If the
  9312. option is not given, a default balanced compression setting is
  9313. used.
  9314. '-fuse-linker-plugin'
  9315. Enables the use of a linker plugin during link-time optimization.
  9316. This option relies on plugin support in the linker, which is
  9317. available in gold or in GNU ld 2.21 or newer.
  9318. This option enables the extraction of object files with GIMPLE
  9319. bytecode out of library archives. This improves the quality of
  9320. optimization by exposing more code to the link-time optimizer.
  9321. This information specifies what symbols can be accessed externally
  9322. (by non-LTO object or during dynamic linking). Resulting code
  9323. quality improvements on binaries (and shared libraries that use
  9324. hidden visibility) are similar to '-fwhole-program'. See '-flto'
  9325. for a description of the effect of this flag and how to use it.
  9326. This option is enabled by default when LTO support in GCC is
  9327. enabled and GCC was configured for use with a linker supporting
  9328. plugins (GNU ld 2.21 or newer or gold).
  9329. '-ffat-lto-objects'
  9330. Fat LTO objects are object files that contain both the intermediate
  9331. language and the object code. This makes them usable for both LTO
  9332. linking and normal linking. This option is effective only when
  9333. compiling with '-flto' and is ignored at link time.
  9334. '-fno-fat-lto-objects' improves compilation time over plain LTO,
  9335. but requires the complete toolchain to be aware of LTO. It requires
  9336. a linker with linker plugin support for basic functionality.
  9337. Additionally, 'nm', 'ar' and 'ranlib' need to support linker
  9338. plugins to allow a full-featured build environment (capable of
  9339. building static libraries etc). GCC provides the 'gcc-ar',
  9340. 'gcc-nm', 'gcc-ranlib' wrappers to pass the right options to these
  9341. tools. With non fat LTO makefiles need to be modified to use them.
  9342. Note that modern binutils provide plugin auto-load mechanism.
  9343. Installing the linker plugin into '$libdir/bfd-plugins' has the
  9344. same effect as usage of the command wrappers ('gcc-ar', 'gcc-nm'
  9345. and 'gcc-ranlib').
  9346. The default is '-fno-fat-lto-objects' on targets with linker plugin
  9347. support.
  9348. '-fcompare-elim'
  9349. After register allocation and post-register allocation instruction
  9350. splitting, identify arithmetic instructions that compute processor
  9351. flags similar to a comparison operation based on that arithmetic.
  9352. If possible, eliminate the explicit comparison operation.
  9353. This pass only applies to certain targets that cannot explicitly
  9354. represent the comparison operation before register allocation is
  9355. complete.
  9356. Enabled at levels '-O', '-O2', '-O3', '-Os'.
  9357. '-fcprop-registers'
  9358. After register allocation and post-register allocation instruction
  9359. splitting, perform a copy-propagation pass to try to reduce
  9360. scheduling dependencies and occasionally eliminate the copy.
  9361. Enabled at levels '-O', '-O2', '-O3', '-Os'.
  9362. '-fprofile-correction'
  9363. Profiles collected using an instrumented binary for multi-threaded
  9364. programs may be inconsistent due to missed counter updates. When
  9365. this option is specified, GCC uses heuristics to correct or smooth
  9366. out such inconsistencies. By default, GCC emits an error message
  9367. when an inconsistent profile is detected.
  9368. This option is enabled by '-fauto-profile'.
  9369. '-fprofile-partial-training'
  9370. With '-fprofile-use' all portions of programs not executed during
  9371. train run are optimized agressively for size rather than speed. In
  9372. some cases it is not practical to train all possible hot paths in
  9373. the program. (For example, program may contain functions specific
  9374. for a given hardware and trianing may not cover all hardware
  9375. configurations program is run on.) With
  9376. '-fprofile-partial-training' profile feedback will be ignored for
  9377. all functions not executed during the train run leading them to be
  9378. optimized as if they were compiled without profile feedback. This
  9379. leads to better performance when train run is not representative
  9380. but also leads to significantly bigger code.
  9381. '-fprofile-use'
  9382. '-fprofile-use=PATH'
  9383. Enable profile feedback-directed optimizations, and the following
  9384. optimizations, many of which are generally profitable only with
  9385. profile feedback available:
  9386. -fbranch-probabilities -fprofile-values
  9387. -funroll-loops -fpeel-loops -ftracer -fvpt
  9388. -finline-functions -fipa-cp -fipa-cp-clone -fipa-bit-cp
  9389. -fpredictive-commoning -fsplit-loops -funswitch-loops
  9390. -fgcse-after-reload -ftree-loop-vectorize -ftree-slp-vectorize
  9391. -fvect-cost-model=dynamic -ftree-loop-distribute-patterns
  9392. -fprofile-reorder-functions
  9393. Before you can use this option, you must first generate profiling
  9394. information. *Note Instrumentation Options::, for information
  9395. about the '-fprofile-generate' option.
  9396. By default, GCC emits an error message if the feedback profiles do
  9397. not match the source code. This error can be turned into a warning
  9398. by using '-Wno-error=coverage-mismatch'. Note this may result in
  9399. poorly optimized code. Additionally, by default, GCC also emits a
  9400. warning message if the feedback profiles do not exist (see
  9401. '-Wmissing-profile').
  9402. If PATH is specified, GCC looks at the PATH to find the profile
  9403. feedback data files. See '-fprofile-dir'.
  9404. '-fauto-profile'
  9405. '-fauto-profile=PATH'
  9406. Enable sampling-based feedback-directed optimizations, and the
  9407. following optimizations, many of which are generally profitable
  9408. only with profile feedback available:
  9409. -fbranch-probabilities -fprofile-values
  9410. -funroll-loops -fpeel-loops -ftracer -fvpt
  9411. -finline-functions -fipa-cp -fipa-cp-clone -fipa-bit-cp
  9412. -fpredictive-commoning -fsplit-loops -funswitch-loops
  9413. -fgcse-after-reload -ftree-loop-vectorize -ftree-slp-vectorize
  9414. -fvect-cost-model=dynamic -ftree-loop-distribute-patterns
  9415. -fprofile-correction
  9416. PATH is the name of a file containing AutoFDO profile information.
  9417. If omitted, it defaults to 'fbdata.afdo' in the current directory.
  9418. Producing an AutoFDO profile data file requires running your
  9419. program with the 'perf' utility on a supported GNU/Linux target
  9420. system. For more information, see <https://perf.wiki.kernel.org/>.
  9421. E.g.
  9422. perf record -e br_inst_retired:near_taken -b -o perf.data \
  9423. -- your_program
  9424. Then use the 'create_gcov' tool to convert the raw profile data to
  9425. a format that can be used by GCC. You must also supply the
  9426. unstripped binary for your program to this tool. See
  9427. <https://github.com/google/autofdo>.
  9428. E.g.
  9429. create_gcov --binary=your_program.unstripped --profile=perf.data \
  9430. --gcov=profile.afdo
  9431. The following options control compiler behavior regarding
  9432. floating-point arithmetic. These options trade off between speed and
  9433. correctness. All must be specifically enabled.
  9434. '-ffloat-store'
  9435. Do not store floating-point variables in registers, and inhibit
  9436. other options that might change whether a floating-point value is
  9437. taken from a register or memory.
  9438. This option prevents undesirable excess precision on machines such
  9439. as the 68000 where the floating registers (of the 68881) keep more
  9440. precision than a 'double' is supposed to have. Similarly for the
  9441. x86 architecture. For most programs, the excess precision does
  9442. only good, but a few programs rely on the precise definition of
  9443. IEEE floating point. Use '-ffloat-store' for such programs, after
  9444. modifying them to store all pertinent intermediate computations
  9445. into variables.
  9446. '-fexcess-precision=STYLE'
  9447. This option allows further control over excess precision on
  9448. machines where floating-point operations occur in a format with
  9449. more precision or range than the IEEE standard and interchange
  9450. floating-point types. By default, '-fexcess-precision=fast' is in
  9451. effect; this means that operations may be carried out in a wider
  9452. precision than the types specified in the source if that would
  9453. result in faster code, and it is unpredictable when rounding to the
  9454. types specified in the source code takes place. When compiling C,
  9455. if '-fexcess-precision=standard' is specified then excess precision
  9456. follows the rules specified in ISO C99; in particular, both casts
  9457. and assignments cause values to be rounded to their semantic types
  9458. (whereas '-ffloat-store' only affects assignments). This option is
  9459. enabled by default for C if a strict conformance option such as
  9460. '-std=c99' is used. '-ffast-math' enables
  9461. '-fexcess-precision=fast' by default regardless of whether a strict
  9462. conformance option is used.
  9463. '-fexcess-precision=standard' is not implemented for languages
  9464. other than C. On the x86, it has no effect if '-mfpmath=sse' or
  9465. '-mfpmath=sse+387' is specified; in the former case, IEEE semantics
  9466. apply without excess precision, and in the latter, rounding is
  9467. unpredictable.
  9468. '-ffast-math'
  9469. Sets the options '-fno-math-errno', '-funsafe-math-optimizations',
  9470. '-ffinite-math-only', '-fno-rounding-math', '-fno-signaling-nans',
  9471. '-fcx-limited-range' and '-fexcess-precision=fast'.
  9472. This option causes the preprocessor macro '__FAST_MATH__' to be
  9473. defined.
  9474. This option is not turned on by any '-O' option besides '-Ofast'
  9475. since it can result in incorrect output for programs that depend on
  9476. an exact implementation of IEEE or ISO rules/specifications for
  9477. math functions. It may, however, yield faster code for programs
  9478. that do not require the guarantees of these specifications.
  9479. '-fno-math-errno'
  9480. Do not set 'errno' after calling math functions that are executed
  9481. with a single instruction, e.g., 'sqrt'. A program that relies on
  9482. IEEE exceptions for math error handling may want to use this flag
  9483. for speed while maintaining IEEE arithmetic compatibility.
  9484. This option is not turned on by any '-O' option since it can result
  9485. in incorrect output for programs that depend on an exact
  9486. implementation of IEEE or ISO rules/specifications for math
  9487. functions. It may, however, yield faster code for programs that do
  9488. not require the guarantees of these specifications.
  9489. The default is '-fmath-errno'.
  9490. On Darwin systems, the math library never sets 'errno'. There is
  9491. therefore no reason for the compiler to consider the possibility
  9492. that it might, and '-fno-math-errno' is the default.
  9493. '-funsafe-math-optimizations'
  9494. Allow optimizations for floating-point arithmetic that (a) assume
  9495. that arguments and results are valid and (b) may violate IEEE or
  9496. ANSI standards. When used at link time, it may include libraries
  9497. or startup files that change the default FPU control word or other
  9498. similar optimizations.
  9499. This option is not turned on by any '-O' option since it can result
  9500. in incorrect output for programs that depend on an exact
  9501. implementation of IEEE or ISO rules/specifications for math
  9502. functions. It may, however, yield faster code for programs that do
  9503. not require the guarantees of these specifications. Enables
  9504. '-fno-signed-zeros', '-fno-trapping-math', '-fassociative-math' and
  9505. '-freciprocal-math'.
  9506. The default is '-fno-unsafe-math-optimizations'.
  9507. '-fassociative-math'
  9508. Allow re-association of operands in series of floating-point
  9509. operations. This violates the ISO C and C++ language standard by
  9510. possibly changing computation result. NOTE: re-ordering may change
  9511. the sign of zero as well as ignore NaNs and inhibit or create
  9512. underflow or overflow (and thus cannot be used on code that relies
  9513. on rounding behavior like '(x + 2**52) - 2**52'. May also reorder
  9514. floating-point comparisons and thus may not be used when ordered
  9515. comparisons are required. This option requires that both
  9516. '-fno-signed-zeros' and '-fno-trapping-math' be in effect.
  9517. Moreover, it doesn't make much sense with '-frounding-math'. For
  9518. Fortran the option is automatically enabled when both
  9519. '-fno-signed-zeros' and '-fno-trapping-math' are in effect.
  9520. The default is '-fno-associative-math'.
  9521. '-freciprocal-math'
  9522. Allow the reciprocal of a value to be used instead of dividing by
  9523. the value if this enables optimizations. For example 'x / y' can
  9524. be replaced with 'x * (1/y)', which is useful if '(1/y)' is subject
  9525. to common subexpression elimination. Note that this loses
  9526. precision and increases the number of flops operating on the value.
  9527. The default is '-fno-reciprocal-math'.
  9528. '-ffinite-math-only'
  9529. Allow optimizations for floating-point arithmetic that assume that
  9530. arguments and results are not NaNs or +-Infs.
  9531. This option is not turned on by any '-O' option since it can result
  9532. in incorrect output for programs that depend on an exact
  9533. implementation of IEEE or ISO rules/specifications for math
  9534. functions. It may, however, yield faster code for programs that do
  9535. not require the guarantees of these specifications.
  9536. The default is '-fno-finite-math-only'.
  9537. '-fno-signed-zeros'
  9538. Allow optimizations for floating-point arithmetic that ignore the
  9539. signedness of zero. IEEE arithmetic specifies the behavior of
  9540. distinct +0.0 and -0.0 values, which then prohibits simplification
  9541. of expressions such as x+0.0 or 0.0*x (even with
  9542. '-ffinite-math-only'). This option implies that the sign of a zero
  9543. result isn't significant.
  9544. The default is '-fsigned-zeros'.
  9545. '-fno-trapping-math'
  9546. Compile code assuming that floating-point operations cannot
  9547. generate user-visible traps. These traps include division by zero,
  9548. overflow, underflow, inexact result and invalid operation. This
  9549. option requires that '-fno-signaling-nans' be in effect. Setting
  9550. this option may allow faster code if one relies on "non-stop" IEEE
  9551. arithmetic, for example.
  9552. This option should never be turned on by any '-O' option since it
  9553. can result in incorrect output for programs that depend on an exact
  9554. implementation of IEEE or ISO rules/specifications for math
  9555. functions.
  9556. The default is '-ftrapping-math'.
  9557. '-frounding-math'
  9558. Disable transformations and optimizations that assume default
  9559. floating-point rounding behavior. This is round-to-zero for all
  9560. floating point to integer conversions, and round-to-nearest for all
  9561. other arithmetic truncations. This option should be specified for
  9562. programs that change the FP rounding mode dynamically, or that may
  9563. be executed with a non-default rounding mode. This option disables
  9564. constant folding of floating-point expressions at compile time
  9565. (which may be affected by rounding mode) and arithmetic
  9566. transformations that are unsafe in the presence of sign-dependent
  9567. rounding modes.
  9568. The default is '-fno-rounding-math'.
  9569. This option is experimental and does not currently guarantee to
  9570. disable all GCC optimizations that are affected by rounding mode.
  9571. Future versions of GCC may provide finer control of this setting
  9572. using C99's 'FENV_ACCESS' pragma. This command-line option will be
  9573. used to specify the default state for 'FENV_ACCESS'.
  9574. '-fsignaling-nans'
  9575. Compile code assuming that IEEE signaling NaNs may generate
  9576. user-visible traps during floating-point operations. Setting this
  9577. option disables optimizations that may change the number of
  9578. exceptions visible with signaling NaNs. This option implies
  9579. '-ftrapping-math'.
  9580. This option causes the preprocessor macro '__SUPPORT_SNAN__' to be
  9581. defined.
  9582. The default is '-fno-signaling-nans'.
  9583. This option is experimental and does not currently guarantee to
  9584. disable all GCC optimizations that affect signaling NaN behavior.
  9585. '-fno-fp-int-builtin-inexact'
  9586. Do not allow the built-in functions 'ceil', 'floor', 'round' and
  9587. 'trunc', and their 'float' and 'long double' variants, to generate
  9588. code that raises the "inexact" floating-point exception for
  9589. noninteger arguments. ISO C99 and C11 allow these functions to
  9590. raise the "inexact" exception, but ISO/IEC TS 18661-1:2014, the C
  9591. bindings to IEEE 754-2008, as integrated into ISO C2X, does not
  9592. allow these functions to do so.
  9593. The default is '-ffp-int-builtin-inexact', allowing the exception
  9594. to be raised, unless C2X or a later C standard is selected. This
  9595. option does nothing unless '-ftrapping-math' is in effect.
  9596. Even if '-fno-fp-int-builtin-inexact' is used, if the functions
  9597. generate a call to a library function then the "inexact" exception
  9598. may be raised if the library implementation does not follow TS
  9599. 18661.
  9600. '-fsingle-precision-constant'
  9601. Treat floating-point constants as single precision instead of
  9602. implicitly converting them to double-precision constants.
  9603. '-fcx-limited-range'
  9604. When enabled, this option states that a range reduction step is not
  9605. needed when performing complex division. Also, there is no
  9606. checking whether the result of a complex multiplication or division
  9607. is 'NaN + I*NaN', with an attempt to rescue the situation in that
  9608. case. The default is '-fno-cx-limited-range', but is enabled by
  9609. '-ffast-math'.
  9610. This option controls the default setting of the ISO C99
  9611. 'CX_LIMITED_RANGE' pragma. Nevertheless, the option applies to all
  9612. languages.
  9613. '-fcx-fortran-rules'
  9614. Complex multiplication and division follow Fortran rules. Range
  9615. reduction is done as part of complex division, but there is no
  9616. checking whether the result of a complex multiplication or division
  9617. is 'NaN + I*NaN', with an attempt to rescue the situation in that
  9618. case.
  9619. The default is '-fno-cx-fortran-rules'.
  9620. The following options control optimizations that may improve
  9621. performance, but are not enabled by any '-O' options. This section
  9622. includes experimental options that may produce broken code.
  9623. '-fbranch-probabilities'
  9624. After running a program compiled with '-fprofile-arcs' (*note
  9625. Instrumentation Options::), you can compile it a second time using
  9626. '-fbranch-probabilities', to improve optimizations based on the
  9627. number of times each branch was taken. When a program compiled
  9628. with '-fprofile-arcs' exits, it saves arc execution counts to a
  9629. file called 'SOURCENAME.gcda' for each source file. The
  9630. information in this data file is very dependent on the structure of
  9631. the generated code, so you must use the same source code and the
  9632. same optimization options for both compilations.
  9633. With '-fbranch-probabilities', GCC puts a 'REG_BR_PROB' note on
  9634. each 'JUMP_INSN' and 'CALL_INSN'. These can be used to improve
  9635. optimization. Currently, they are only used in one place: in
  9636. 'reorg.c', instead of guessing which path a branch is most likely
  9637. to take, the 'REG_BR_PROB' values are used to exactly determine
  9638. which path is taken more often.
  9639. Enabled by '-fprofile-use' and '-fauto-profile'.
  9640. '-fprofile-values'
  9641. If combined with '-fprofile-arcs', it adds code so that some data
  9642. about values of expressions in the program is gathered.
  9643. With '-fbranch-probabilities', it reads back the data gathered from
  9644. profiling values of expressions for usage in optimizations.
  9645. Enabled by '-fprofile-generate', '-fprofile-use', and
  9646. '-fauto-profile'.
  9647. '-fprofile-reorder-functions'
  9648. Function reordering based on profile instrumentation collects first
  9649. time of execution of a function and orders these functions in
  9650. ascending order.
  9651. Enabled with '-fprofile-use'.
  9652. '-fvpt'
  9653. If combined with '-fprofile-arcs', this option instructs the
  9654. compiler to add code to gather information about values of
  9655. expressions.
  9656. With '-fbranch-probabilities', it reads back the data gathered and
  9657. actually performs the optimizations based on them. Currently the
  9658. optimizations include specialization of division operations using
  9659. the knowledge about the value of the denominator.
  9660. Enabled with '-fprofile-use' and '-fauto-profile'.
  9661. '-frename-registers'
  9662. Attempt to avoid false dependencies in scheduled code by making use
  9663. of registers left over after register allocation. This
  9664. optimization most benefits processors with lots of registers.
  9665. Depending on the debug information format adopted by the target,
  9666. however, it can make debugging impossible, since variables no
  9667. longer stay in a "home register".
  9668. Enabled by default with '-funroll-loops'.
  9669. '-fschedule-fusion'
  9670. Performs a target dependent pass over the instruction stream to
  9671. schedule instructions of same type together because target machine
  9672. can execute them more efficiently if they are adjacent to each
  9673. other in the instruction flow.
  9674. Enabled at levels '-O2', '-O3', '-Os'.
  9675. '-ftracer'
  9676. Perform tail duplication to enlarge superblock size. This
  9677. transformation simplifies the control flow of the function allowing
  9678. other optimizations to do a better job.
  9679. Enabled by '-fprofile-use' and '-fauto-profile'.
  9680. '-funroll-loops'
  9681. Unroll loops whose number of iterations can be determined at
  9682. compile time or upon entry to the loop. '-funroll-loops' implies
  9683. '-frerun-cse-after-loop', '-fweb' and '-frename-registers'. It
  9684. also turns on complete loop peeling (i.e. complete removal of loops
  9685. with a small constant number of iterations). This option makes
  9686. code larger, and may or may not make it run faster.
  9687. Enabled by '-fprofile-use' and '-fauto-profile'.
  9688. '-funroll-all-loops'
  9689. Unroll all loops, even if their number of iterations is uncertain
  9690. when the loop is entered. This usually makes programs run more
  9691. slowly. '-funroll-all-loops' implies the same options as
  9692. '-funroll-loops'.
  9693. '-fpeel-loops'
  9694. Peels loops for which there is enough information that they do not
  9695. roll much (from profile feedback or static analysis). It also
  9696. turns on complete loop peeling (i.e. complete removal of loops with
  9697. small constant number of iterations).
  9698. Enabled by '-O3', '-fprofile-use', and '-fauto-profile'.
  9699. '-fmove-loop-invariants'
  9700. Enables the loop invariant motion pass in the RTL loop optimizer.
  9701. Enabled at level '-O1' and higher, except for '-Og'.
  9702. '-fsplit-loops'
  9703. Split a loop into two if it contains a condition that's always true
  9704. for one side of the iteration space and false for the other.
  9705. Enabled by '-fprofile-use' and '-fauto-profile'.
  9706. '-funswitch-loops'
  9707. Move branches with loop invariant conditions out of the loop, with
  9708. duplicates of the loop on both branches (modified according to
  9709. result of the condition).
  9710. Enabled by '-fprofile-use' and '-fauto-profile'.
  9711. '-fversion-loops-for-strides'
  9712. If a loop iterates over an array with a variable stride, create
  9713. another version of the loop that assumes the stride is always one.
  9714. For example:
  9715. for (int i = 0; i < n; ++i)
  9716. x[i * stride] = ...;
  9717. becomes:
  9718. if (stride == 1)
  9719. for (int i = 0; i < n; ++i)
  9720. x[i] = ...;
  9721. else
  9722. for (int i = 0; i < n; ++i)
  9723. x[i * stride] = ...;
  9724. This is particularly useful for assumed-shape arrays in Fortran
  9725. where (for example) it allows better vectorization assuming
  9726. contiguous accesses. This flag is enabled by default at '-O3'. It
  9727. is also enabled by '-fprofile-use' and '-fauto-profile'.
  9728. '-ffunction-sections'
  9729. '-fdata-sections'
  9730. Place each function or data item into its own section in the output
  9731. file if the target supports arbitrary sections. The name of the
  9732. function or the name of the data item determines the section's name
  9733. in the output file.
  9734. Use these options on systems where the linker can perform
  9735. optimizations to improve locality of reference in the instruction
  9736. space. Most systems using the ELF object format have linkers with
  9737. such optimizations. On AIX, the linker rearranges sections
  9738. (CSECTs) based on the call graph. The performance impact varies.
  9739. Together with a linker garbage collection (linker '--gc-sections'
  9740. option) these options may lead to smaller statically-linked
  9741. executables (after stripping).
  9742. On ELF/DWARF systems these options do not degenerate the quality of
  9743. the debug information. There could be issues with other object
  9744. files/debug info formats.
  9745. Only use these options when there are significant benefits from
  9746. doing so. When you specify these options, the assembler and linker
  9747. create larger object and executable files and are also slower.
  9748. These options affect code generation. They prevent optimizations
  9749. by the compiler and assembler using relative locations inside a
  9750. translation unit since the locations are unknown until link time.
  9751. An example of such an optimization is relaxing calls to short call
  9752. instructions.
  9753. '-fstdarg-opt'
  9754. Optimize the prologue of variadic argument functions with respect
  9755. to usage of those arguments.
  9756. '-fsection-anchors'
  9757. Try to reduce the number of symbolic address calculations by using
  9758. shared "anchor" symbols to address nearby objects. This
  9759. transformation can help to reduce the number of GOT entries and GOT
  9760. accesses on some targets.
  9761. For example, the implementation of the following function 'foo':
  9762. static int a, b, c;
  9763. int foo (void) { return a + b + c; }
  9764. usually calculates the addresses of all three variables, but if you
  9765. compile it with '-fsection-anchors', it accesses the variables from
  9766. a common anchor point instead. The effect is similar to the
  9767. following pseudocode (which isn't valid C):
  9768. int foo (void)
  9769. {
  9770. register int *xr = &x;
  9771. return xr[&a - &x] + xr[&b - &x] + xr[&c - &x];
  9772. }
  9773. Not all targets support this option.
  9774. '-fzero-call-used-regs=CHOICE'
  9775. Zero call-used registers at function return to increase program
  9776. security by either mitigating Return-Oriented Programming (ROP)
  9777. attacks or preventing information leakage through registers.
  9778. The possible values of CHOICE are the same as for the
  9779. 'zero_call_used_regs' attribute (*note Function Attributes::). The
  9780. default is 'skip'.
  9781. You can control this behavior for a specific function by using the
  9782. function attribute 'zero_call_used_regs' (*note Function
  9783. Attributes::).
  9784. '--param NAME=VALUE'
  9785. In some places, GCC uses various constants to control the amount of
  9786. optimization that is done. For example, GCC does not inline
  9787. functions that contain more than a certain number of instructions.
  9788. You can control some of these constants on the command line using
  9789. the '--param' option.
  9790. The names of specific parameters, and the meaning of the values,
  9791. are tied to the internals of the compiler, and are subject to
  9792. change without notice in future releases.
  9793. In order to get minimal, maximal and default value of a parameter,
  9794. one can use '--help=param -Q' options.
  9795. In each case, the VALUE is an integer. The following choices of
  9796. NAME are recognized for all targets:
  9797. 'predictable-branch-outcome'
  9798. When branch is predicted to be taken with probability lower
  9799. than this threshold (in percent), then it is considered well
  9800. predictable.
  9801. 'max-rtl-if-conversion-insns'
  9802. RTL if-conversion tries to remove conditional branches around
  9803. a block and replace them with conditionally executed
  9804. instructions. This parameter gives the maximum number of
  9805. instructions in a block which should be considered for
  9806. if-conversion. The compiler will also use other heuristics to
  9807. decide whether if-conversion is likely to be profitable.
  9808. 'max-rtl-if-conversion-predictable-cost'
  9809. RTL if-conversion will try to remove conditional branches
  9810. around a block and replace them with conditionally executed
  9811. instructions. These parameters give the maximum permissible
  9812. cost for the sequence that would be generated by if-conversion
  9813. depending on whether the branch is statically determined to be
  9814. predictable or not. The units for this parameter are the same
  9815. as those for the GCC internal seq_cost metric. The compiler
  9816. will try to provide a reasonable default for this parameter
  9817. using the BRANCH_COST target macro.
  9818. 'max-crossjump-edges'
  9819. The maximum number of incoming edges to consider for
  9820. cross-jumping. The algorithm used by '-fcrossjumping' is
  9821. O(N^2) in the number of edges incoming to each block.
  9822. Increasing values mean more aggressive optimization, making
  9823. the compilation time increase with probably small improvement
  9824. in executable size.
  9825. 'min-crossjump-insns'
  9826. The minimum number of instructions that must be matched at the
  9827. end of two blocks before cross-jumping is performed on them.
  9828. This value is ignored in the case where all instructions in
  9829. the block being cross-jumped from are matched.
  9830. 'max-grow-copy-bb-insns'
  9831. The maximum code size expansion factor when copying basic
  9832. blocks instead of jumping. The expansion is relative to a
  9833. jump instruction.
  9834. 'max-goto-duplication-insns'
  9835. The maximum number of instructions to duplicate to a block
  9836. that jumps to a computed goto. To avoid O(N^2) behavior in a
  9837. number of passes, GCC factors computed gotos early in the
  9838. compilation process, and unfactors them as late as possible.
  9839. Only computed jumps at the end of a basic blocks with no more
  9840. than max-goto-duplication-insns are unfactored.
  9841. 'max-delay-slot-insn-search'
  9842. The maximum number of instructions to consider when looking
  9843. for an instruction to fill a delay slot. If more than this
  9844. arbitrary number of instructions are searched, the time
  9845. savings from filling the delay slot are minimal, so stop
  9846. searching. Increasing values mean more aggressive
  9847. optimization, making the compilation time increase with
  9848. probably small improvement in execution time.
  9849. 'max-delay-slot-live-search'
  9850. When trying to fill delay slots, the maximum number of
  9851. instructions to consider when searching for a block with valid
  9852. live register information. Increasing this arbitrarily chosen
  9853. value means more aggressive optimization, increasing the
  9854. compilation time. This parameter should be removed when the
  9855. delay slot code is rewritten to maintain the control-flow
  9856. graph.
  9857. 'max-gcse-memory'
  9858. The approximate maximum amount of memory in 'kB' that can be
  9859. allocated in order to perform the global common subexpression
  9860. elimination optimization. If more memory than specified is
  9861. required, the optimization is not done.
  9862. 'max-gcse-insertion-ratio'
  9863. If the ratio of expression insertions to deletions is larger
  9864. than this value for any expression, then RTL PRE inserts or
  9865. removes the expression and thus leaves partially redundant
  9866. computations in the instruction stream.
  9867. 'max-pending-list-length'
  9868. The maximum number of pending dependencies scheduling allows
  9869. before flushing the current state and starting over. Large
  9870. functions with few branches or calls can create excessively
  9871. large lists which needlessly consume memory and resources.
  9872. 'max-modulo-backtrack-attempts'
  9873. The maximum number of backtrack attempts the scheduler should
  9874. make when modulo scheduling a loop. Larger values can
  9875. exponentially increase compilation time.
  9876. 'max-inline-insns-single'
  9877. Several parameters control the tree inliner used in GCC. This
  9878. number sets the maximum number of instructions (counted in
  9879. GCC's internal representation) in a single function that the
  9880. tree inliner considers for inlining. This only affects
  9881. functions declared inline and methods implemented in a class
  9882. declaration (C++).
  9883. 'max-inline-insns-auto'
  9884. When you use '-finline-functions' (included in '-O3'), a lot
  9885. of functions that would otherwise not be considered for
  9886. inlining by the compiler are investigated. To those
  9887. functions, a different (more restrictive) limit compared to
  9888. functions declared inline can be applied ('--param
  9889. max-inline-insns-auto').
  9890. 'max-inline-insns-small'
  9891. This is bound applied to calls which are considered relevant
  9892. with '-finline-small-functions'.
  9893. 'max-inline-insns-size'
  9894. This is bound applied to calls which are optimized for size.
  9895. Small growth may be desirable to anticipate optimization
  9896. oppurtunities exposed by inlining.
  9897. 'uninlined-function-insns'
  9898. Number of instructions accounted by inliner for function
  9899. overhead such as function prologue and epilogue.
  9900. 'uninlined-function-time'
  9901. Extra time accounted by inliner for function overhead such as
  9902. time needed to execute function prologue and epilogue
  9903. 'inline-heuristics-hint-percent'
  9904. The scale (in percents) applied to 'inline-insns-single',
  9905. 'inline-insns-single-O2', 'inline-insns-auto' when inline
  9906. heuristics hints that inlining is very profitable (will enable
  9907. later optimizations).
  9908. 'uninlined-thunk-insns'
  9909. 'uninlined-thunk-time'
  9910. Same as '--param uninlined-function-insns' and '--param
  9911. uninlined-function-time' but applied to function thunks
  9912. 'inline-min-speedup'
  9913. When estimated performance improvement of caller + callee
  9914. runtime exceeds this threshold (in percent), the function can
  9915. be inlined regardless of the limit on '--param
  9916. max-inline-insns-single' and '--param max-inline-insns-auto'.
  9917. 'large-function-insns'
  9918. The limit specifying really large functions. For functions
  9919. larger than this limit after inlining, inlining is constrained
  9920. by '--param large-function-growth'. This parameter is useful
  9921. primarily to avoid extreme compilation time caused by
  9922. non-linear algorithms used by the back end.
  9923. 'large-function-growth'
  9924. Specifies maximal growth of large function caused by inlining
  9925. in percents. For example, parameter value 100 limits large
  9926. function growth to 2.0 times the original size.
  9927. 'large-unit-insns'
  9928. The limit specifying large translation unit. Growth caused by
  9929. inlining of units larger than this limit is limited by
  9930. '--param inline-unit-growth'. For small units this might be
  9931. too tight. For example, consider a unit consisting of
  9932. function A that is inline and B that just calls A three times.
  9933. If B is small relative to A, the growth of unit is 300\% and
  9934. yet such inlining is very sane. For very large units
  9935. consisting of small inlineable functions, however, the overall
  9936. unit growth limit is needed to avoid exponential explosion of
  9937. code size. Thus for smaller units, the size is increased to
  9938. '--param large-unit-insns' before applying '--param
  9939. inline-unit-growth'.
  9940. 'lazy-modules'
  9941. Maximum number of concurrently open C++ module files when lazy
  9942. loading.
  9943. 'inline-unit-growth'
  9944. Specifies maximal overall growth of the compilation unit
  9945. caused by inlining. For example, parameter value 20 limits
  9946. unit growth to 1.2 times the original size. Cold functions
  9947. (either marked cold via an attribute or by profile feedback)
  9948. are not accounted into the unit size.
  9949. 'ipa-cp-unit-growth'
  9950. Specifies maximal overall growth of the compilation unit
  9951. caused by interprocedural constant propagation. For example,
  9952. parameter value 10 limits unit growth to 1.1 times the
  9953. original size.
  9954. 'ipa-cp-large-unit-insns'
  9955. The size of translation unit that IPA-CP pass considers large.
  9956. 'large-stack-frame'
  9957. The limit specifying large stack frames. While inlining the
  9958. algorithm is trying to not grow past this limit too much.
  9959. 'large-stack-frame-growth'
  9960. Specifies maximal growth of large stack frames caused by
  9961. inlining in percents. For example, parameter value 1000
  9962. limits large stack frame growth to 11 times the original size.
  9963. 'max-inline-insns-recursive'
  9964. 'max-inline-insns-recursive-auto'
  9965. Specifies the maximum number of instructions an out-of-line
  9966. copy of a self-recursive inline function can grow into by
  9967. performing recursive inlining.
  9968. '--param max-inline-insns-recursive' applies to functions
  9969. declared inline. For functions not declared inline, recursive
  9970. inlining happens only when '-finline-functions' (included in
  9971. '-O3') is enabled; '--param max-inline-insns-recursive-auto'
  9972. applies instead.
  9973. 'max-inline-recursive-depth'
  9974. 'max-inline-recursive-depth-auto'
  9975. Specifies the maximum recursion depth used for recursive
  9976. inlining.
  9977. '--param max-inline-recursive-depth' applies to functions
  9978. declared inline. For functions not declared inline, recursive
  9979. inlining happens only when '-finline-functions' (included in
  9980. '-O3') is enabled; '--param max-inline-recursive-depth-auto'
  9981. applies instead.
  9982. 'min-inline-recursive-probability'
  9983. Recursive inlining is profitable only for function having deep
  9984. recursion in average and can hurt for function having little
  9985. recursion depth by increasing the prologue size or complexity
  9986. of function body to other optimizers.
  9987. When profile feedback is available (see '-fprofile-generate')
  9988. the actual recursion depth can be guessed from the probability
  9989. that function recurses via a given call expression. This
  9990. parameter limits inlining only to call expressions whose
  9991. probability exceeds the given threshold (in percents).
  9992. 'early-inlining-insns'
  9993. Specify growth that the early inliner can make. In effect it
  9994. increases the amount of inlining for code having a large
  9995. abstraction penalty.
  9996. 'max-early-inliner-iterations'
  9997. Limit of iterations of the early inliner. This basically
  9998. bounds the number of nested indirect calls the early inliner
  9999. can resolve. Deeper chains are still handled by late
  10000. inlining.
  10001. 'comdat-sharing-probability'
  10002. Probability (in percent) that C++ inline function with comdat
  10003. visibility are shared across multiple compilation units.
  10004. 'modref-max-bases'
  10005. 'modref-max-refs'
  10006. 'modref-max-accesses'
  10007. Specifies the maximal number of base pointers, references and
  10008. accesses stored for a single function by mod/ref analysis.
  10009. 'modref-max-tests'
  10010. Specifies the maxmal number of tests alias oracle can perform
  10011. to disambiguate memory locations using the mod/ref
  10012. information. This parameter ought to be bigger than '--param
  10013. modref-max-bases' and '--param modref-max-refs'.
  10014. 'modref-max-depth'
  10015. Specifies the maximum depth of DFS walk used by modref escape
  10016. analysis. Setting to 0 disables the analysis completely.
  10017. 'modref-max-escape-points'
  10018. Specifies the maximum number of escape points tracked by
  10019. modref per SSA-name.
  10020. 'profile-func-internal-id'
  10021. A parameter to control whether to use function internal id in
  10022. profile database lookup. If the value is 0, the compiler uses
  10023. an id that is based on function assembler name and filename,
  10024. which makes old profile data more tolerant to source changes
  10025. such as function reordering etc.
  10026. 'min-vect-loop-bound'
  10027. The minimum number of iterations under which loops are not
  10028. vectorized when '-ftree-vectorize' is used. The number of
  10029. iterations after vectorization needs to be greater than the
  10030. value specified by this option to allow vectorization.
  10031. 'gcse-cost-distance-ratio'
  10032. Scaling factor in calculation of maximum distance an
  10033. expression can be moved by GCSE optimizations. This is
  10034. currently supported only in the code hoisting pass. The
  10035. bigger the ratio, the more aggressive code hoisting is with
  10036. simple expressions, i.e., the expressions that have cost less
  10037. than 'gcse-unrestricted-cost'. Specifying 0 disables hoisting
  10038. of simple expressions.
  10039. 'gcse-unrestricted-cost'
  10040. Cost, roughly measured as the cost of a single typical machine
  10041. instruction, at which GCSE optimizations do not constrain the
  10042. distance an expression can travel. This is currently
  10043. supported only in the code hoisting pass. The lesser the
  10044. cost, the more aggressive code hoisting is. Specifying 0
  10045. allows all expressions to travel unrestricted distances.
  10046. 'max-hoist-depth'
  10047. The depth of search in the dominator tree for expressions to
  10048. hoist. This is used to avoid quadratic behavior in hoisting
  10049. algorithm. The value of 0 does not limit on the search, but
  10050. may slow down compilation of huge functions.
  10051. 'max-tail-merge-comparisons'
  10052. The maximum amount of similar bbs to compare a bb with. This
  10053. is used to avoid quadratic behavior in tree tail merging.
  10054. 'max-tail-merge-iterations'
  10055. The maximum amount of iterations of the pass over the
  10056. function. This is used to limit compilation time in tree tail
  10057. merging.
  10058. 'store-merging-allow-unaligned'
  10059. Allow the store merging pass to introduce unaligned stores if
  10060. it is legal to do so.
  10061. 'max-stores-to-merge'
  10062. The maximum number of stores to attempt to merge into wider
  10063. stores in the store merging pass.
  10064. 'max-store-chains-to-track'
  10065. The maximum number of store chains to track at the same time
  10066. in the attempt to merge them into wider stores in the store
  10067. merging pass.
  10068. 'max-stores-to-track'
  10069. The maximum number of stores to track at the same time in the
  10070. attemt to to merge them into wider stores in the store merging
  10071. pass.
  10072. 'max-unrolled-insns'
  10073. The maximum number of instructions that a loop may have to be
  10074. unrolled. If a loop is unrolled, this parameter also
  10075. determines how many times the loop code is unrolled.
  10076. 'max-average-unrolled-insns'
  10077. The maximum number of instructions biased by probabilities of
  10078. their execution that a loop may have to be unrolled. If a
  10079. loop is unrolled, this parameter also determines how many
  10080. times the loop code is unrolled.
  10081. 'max-unroll-times'
  10082. The maximum number of unrollings of a single loop.
  10083. 'max-peeled-insns'
  10084. The maximum number of instructions that a loop may have to be
  10085. peeled. If a loop is peeled, this parameter also determines
  10086. how many times the loop code is peeled.
  10087. 'max-peel-times'
  10088. The maximum number of peelings of a single loop.
  10089. 'max-peel-branches'
  10090. The maximum number of branches on the hot path through the
  10091. peeled sequence.
  10092. 'max-completely-peeled-insns'
  10093. The maximum number of insns of a completely peeled loop.
  10094. 'max-completely-peel-times'
  10095. The maximum number of iterations of a loop to be suitable for
  10096. complete peeling.
  10097. 'max-completely-peel-loop-nest-depth'
  10098. The maximum depth of a loop nest suitable for complete
  10099. peeling.
  10100. 'max-unswitch-insns'
  10101. The maximum number of insns of an unswitched loop.
  10102. 'max-unswitch-level'
  10103. The maximum number of branches unswitched in a single loop.
  10104. 'lim-expensive'
  10105. The minimum cost of an expensive expression in the loop
  10106. invariant motion.
  10107. 'min-loop-cond-split-prob'
  10108. When FDO profile information is available,
  10109. 'min-loop-cond-split-prob' specifies minimum threshold for
  10110. probability of semi-invariant condition statement to trigger
  10111. loop split.
  10112. 'iv-consider-all-candidates-bound'
  10113. Bound on number of candidates for induction variables, below
  10114. which all candidates are considered for each use in induction
  10115. variable optimizations. If there are more candidates than
  10116. this, only the most relevant ones are considered to avoid
  10117. quadratic time complexity.
  10118. 'iv-max-considered-uses'
  10119. The induction variable optimizations give up on loops that
  10120. contain more induction variable uses.
  10121. 'iv-always-prune-cand-set-bound'
  10122. If the number of candidates in the set is smaller than this
  10123. value, always try to remove unnecessary ivs from the set when
  10124. adding a new one.
  10125. 'avg-loop-niter'
  10126. Average number of iterations of a loop.
  10127. 'dse-max-object-size'
  10128. Maximum size (in bytes) of objects tracked bytewise by dead
  10129. store elimination. Larger values may result in larger
  10130. compilation times.
  10131. 'dse-max-alias-queries-per-store'
  10132. Maximum number of queries into the alias oracle per store.
  10133. Larger values result in larger compilation times and may
  10134. result in more removed dead stores.
  10135. 'scev-max-expr-size'
  10136. Bound on size of expressions used in the scalar evolutions
  10137. analyzer. Large expressions slow the analyzer.
  10138. 'scev-max-expr-complexity'
  10139. Bound on the complexity of the expressions in the scalar
  10140. evolutions analyzer. Complex expressions slow the analyzer.
  10141. 'max-tree-if-conversion-phi-args'
  10142. Maximum number of arguments in a PHI supported by TREE if
  10143. conversion unless the loop is marked with simd pragma.
  10144. 'vect-max-version-for-alignment-checks'
  10145. The maximum number of run-time checks that can be performed
  10146. when doing loop versioning for alignment in the vectorizer.
  10147. 'vect-max-version-for-alias-checks'
  10148. The maximum number of run-time checks that can be performed
  10149. when doing loop versioning for alias in the vectorizer.
  10150. 'vect-max-peeling-for-alignment'
  10151. The maximum number of loop peels to enhance access alignment
  10152. for vectorizer. Value -1 means no limit.
  10153. 'max-iterations-to-track'
  10154. The maximum number of iterations of a loop the brute-force
  10155. algorithm for analysis of the number of iterations of the loop
  10156. tries to evaluate.
  10157. 'hot-bb-count-fraction'
  10158. The denominator n of fraction 1/n of the maximal execution
  10159. count of a basic block in the entire program that a basic
  10160. block needs to at least have in order to be considered hot.
  10161. The default is 10000, which means that a basic block is
  10162. considered hot if its execution count is greater than 1/10000
  10163. of the maximal execution count. 0 means that it is never
  10164. considered hot. Used in non-LTO mode.
  10165. 'hot-bb-count-ws-permille'
  10166. The number of most executed permilles, ranging from 0 to 1000,
  10167. of the profiled execution of the entire program to which the
  10168. execution count of a basic block must be part of in order to
  10169. be considered hot. The default is 990, which means that a
  10170. basic block is considered hot if its execution count
  10171. contributes to the upper 990 permilles, or 99.0%, of the
  10172. profiled execution of the entire program. 0 means that it is
  10173. never considered hot. Used in LTO mode.
  10174. 'hot-bb-frequency-fraction'
  10175. The denominator n of fraction 1/n of the execution frequency
  10176. of the entry block of a function that a basic block of this
  10177. function needs to at least have in order to be considered hot.
  10178. The default is 1000, which means that a basic block is
  10179. considered hot in a function if it is executed more frequently
  10180. than 1/1000 of the frequency of the entry block of the
  10181. function. 0 means that it is never considered hot.
  10182. 'unlikely-bb-count-fraction'
  10183. The denominator n of fraction 1/n of the number of profiled
  10184. runs of the entire program below which the execution count of
  10185. a basic block must be in order for the basic block to be
  10186. considered unlikely executed. The default is 20, which means
  10187. that a basic block is considered unlikely executed if it is
  10188. executed in fewer than 1/20, or 5%, of the runs of the
  10189. program. 0 means that it is always considered unlikely
  10190. executed.
  10191. 'max-predicted-iterations'
  10192. The maximum number of loop iterations we predict statically.
  10193. This is useful in cases where a function contains a single
  10194. loop with known bound and another loop with unknown bound.
  10195. The known number of iterations is predicted correctly, while
  10196. the unknown number of iterations average to roughly 10. This
  10197. means that the loop without bounds appears artificially cold
  10198. relative to the other one.
  10199. 'builtin-expect-probability'
  10200. Control the probability of the expression having the specified
  10201. value. This parameter takes a percentage (i.e. 0 ... 100) as
  10202. input.
  10203. 'builtin-string-cmp-inline-length'
  10204. The maximum length of a constant string for a builtin string
  10205. cmp call eligible for inlining.
  10206. 'align-threshold'
  10207. Select fraction of the maximal frequency of executions of a
  10208. basic block in a function to align the basic block.
  10209. 'align-loop-iterations'
  10210. A loop expected to iterate at least the selected number of
  10211. iterations is aligned.
  10212. 'tracer-dynamic-coverage'
  10213. 'tracer-dynamic-coverage-feedback'
  10214. This value is used to limit superblock formation once the
  10215. given percentage of executed instructions is covered. This
  10216. limits unnecessary code size expansion.
  10217. The 'tracer-dynamic-coverage-feedback' parameter is used only
  10218. when profile feedback is available. The real profiles (as
  10219. opposed to statically estimated ones) are much less balanced
  10220. allowing the threshold to be larger value.
  10221. 'tracer-max-code-growth'
  10222. Stop tail duplication once code growth has reached given
  10223. percentage. This is a rather artificial limit, as most of the
  10224. duplicates are eliminated later in cross jumping, so it may be
  10225. set to much higher values than is the desired code growth.
  10226. 'tracer-min-branch-ratio'
  10227. Stop reverse growth when the reverse probability of best edge
  10228. is less than this threshold (in percent).
  10229. 'tracer-min-branch-probability'
  10230. 'tracer-min-branch-probability-feedback'
  10231. Stop forward growth if the best edge has probability lower
  10232. than this threshold.
  10233. Similarly to 'tracer-dynamic-coverage' two parameters are
  10234. provided. 'tracer-min-branch-probability-feedback' is used
  10235. for compilation with profile feedback and
  10236. 'tracer-min-branch-probability' compilation without. The
  10237. value for compilation with profile feedback needs to be more
  10238. conservative (higher) in order to make tracer effective.
  10239. 'stack-clash-protection-guard-size'
  10240. Specify the size of the operating system provided stack guard
  10241. as 2 raised to NUM bytes. Higher values may reduce the number
  10242. of explicit probes, but a value larger than the operating
  10243. system provided guard will leave code vulnerable to stack
  10244. clash style attacks.
  10245. 'stack-clash-protection-probe-interval'
  10246. Stack clash protection involves probing stack space as it is
  10247. allocated. This param controls the maximum distance between
  10248. probes into the stack as 2 raised to NUM bytes. Higher values
  10249. may reduce the number of explicit probes, but a value larger
  10250. than the operating system provided guard will leave code
  10251. vulnerable to stack clash style attacks.
  10252. 'max-cse-path-length'
  10253. The maximum number of basic blocks on path that CSE considers.
  10254. 'max-cse-insns'
  10255. The maximum number of instructions CSE processes before
  10256. flushing.
  10257. 'ggc-min-expand'
  10258. GCC uses a garbage collector to manage its own memory
  10259. allocation. This parameter specifies the minimum percentage
  10260. by which the garbage collector's heap should be allowed to
  10261. expand between collections. Tuning this may improve
  10262. compilation speed; it has no effect on code generation.
  10263. The default is 30% + 70% * (RAM/1GB) with an upper bound of
  10264. 100% when RAM >= 1GB. If 'getrlimit' is available, the notion
  10265. of "RAM" is the smallest of actual RAM and 'RLIMIT_DATA' or
  10266. 'RLIMIT_AS'. If GCC is not able to calculate RAM on a
  10267. particular platform, the lower bound of 30% is used. Setting
  10268. this parameter and 'ggc-min-heapsize' to zero causes a full
  10269. collection to occur at every opportunity. This is extremely
  10270. slow, but can be useful for debugging.
  10271. 'ggc-min-heapsize'
  10272. Minimum size of the garbage collector's heap before it begins
  10273. bothering to collect garbage. The first collection occurs
  10274. after the heap expands by 'ggc-min-expand'% beyond
  10275. 'ggc-min-heapsize'. Again, tuning this may improve
  10276. compilation speed, and has no effect on code generation.
  10277. The default is the smaller of RAM/8, RLIMIT_RSS, or a limit
  10278. that tries to ensure that RLIMIT_DATA or RLIMIT_AS are not
  10279. exceeded, but with a lower bound of 4096 (four megabytes) and
  10280. an upper bound of 131072 (128 megabytes). If GCC is not able
  10281. to calculate RAM on a particular platform, the lower bound is
  10282. used. Setting this parameter very large effectively disables
  10283. garbage collection. Setting this parameter and
  10284. 'ggc-min-expand' to zero causes a full collection to occur at
  10285. every opportunity.
  10286. 'max-reload-search-insns'
  10287. The maximum number of instruction reload should look backward
  10288. for equivalent register. Increasing values mean more
  10289. aggressive optimization, making the compilation time increase
  10290. with probably slightly better performance.
  10291. 'max-cselib-memory-locations'
  10292. The maximum number of memory locations cselib should take into
  10293. account. Increasing values mean more aggressive optimization,
  10294. making the compilation time increase with probably slightly
  10295. better performance.
  10296. 'max-sched-ready-insns'
  10297. The maximum number of instructions ready to be issued the
  10298. scheduler should consider at any given time during the first
  10299. scheduling pass. Increasing values mean more thorough
  10300. searches, making the compilation time increase with probably
  10301. little benefit.
  10302. 'max-sched-region-blocks'
  10303. The maximum number of blocks in a region to be considered for
  10304. interblock scheduling.
  10305. 'max-pipeline-region-blocks'
  10306. The maximum number of blocks in a region to be considered for
  10307. pipelining in the selective scheduler.
  10308. 'max-sched-region-insns'
  10309. The maximum number of insns in a region to be considered for
  10310. interblock scheduling.
  10311. 'max-pipeline-region-insns'
  10312. The maximum number of insns in a region to be considered for
  10313. pipelining in the selective scheduler.
  10314. 'min-spec-prob'
  10315. The minimum probability (in percents) of reaching a source
  10316. block for interblock speculative scheduling.
  10317. 'max-sched-extend-regions-iters'
  10318. The maximum number of iterations through CFG to extend
  10319. regions. A value of 0 disables region extensions.
  10320. 'max-sched-insn-conflict-delay'
  10321. The maximum conflict delay for an insn to be considered for
  10322. speculative motion.
  10323. 'sched-spec-prob-cutoff'
  10324. The minimal probability of speculation success (in percents),
  10325. so that speculative insns are scheduled.
  10326. 'sched-state-edge-prob-cutoff'
  10327. The minimum probability an edge must have for the scheduler to
  10328. save its state across it.
  10329. 'sched-mem-true-dep-cost'
  10330. Minimal distance (in CPU cycles) between store and load
  10331. targeting same memory locations.
  10332. 'selsched-max-lookahead'
  10333. The maximum size of the lookahead window of selective
  10334. scheduling. It is a depth of search for available
  10335. instructions.
  10336. 'selsched-max-sched-times'
  10337. The maximum number of times that an instruction is scheduled
  10338. during selective scheduling. This is the limit on the number
  10339. of iterations through which the instruction may be pipelined.
  10340. 'selsched-insns-to-rename'
  10341. The maximum number of best instructions in the ready list that
  10342. are considered for renaming in the selective scheduler.
  10343. 'sms-min-sc'
  10344. The minimum value of stage count that swing modulo scheduler
  10345. generates.
  10346. 'max-last-value-rtl'
  10347. The maximum size measured as number of RTLs that can be
  10348. recorded in an expression in combiner for a pseudo register as
  10349. last known value of that register.
  10350. 'max-combine-insns'
  10351. The maximum number of instructions the RTL combiner tries to
  10352. combine.
  10353. 'integer-share-limit'
  10354. Small integer constants can use a shared data structure,
  10355. reducing the compiler's memory usage and increasing its speed.
  10356. This sets the maximum value of a shared integer constant.
  10357. 'ssp-buffer-size'
  10358. The minimum size of buffers (i.e. arrays) that receive stack
  10359. smashing protection when '-fstack-protection' is used.
  10360. 'min-size-for-stack-sharing'
  10361. The minimum size of variables taking part in stack slot
  10362. sharing when not optimizing.
  10363. 'max-jump-thread-duplication-stmts'
  10364. Maximum number of statements allowed in a block that needs to
  10365. be duplicated when threading jumps.
  10366. 'max-fields-for-field-sensitive'
  10367. Maximum number of fields in a structure treated in a field
  10368. sensitive manner during pointer analysis.
  10369. 'prefetch-latency'
  10370. Estimate on average number of instructions that are executed
  10371. before prefetch finishes. The distance prefetched ahead is
  10372. proportional to this constant. Increasing this number may
  10373. also lead to less streams being prefetched (see
  10374. 'simultaneous-prefetches').
  10375. 'simultaneous-prefetches'
  10376. Maximum number of prefetches that can run at the same time.
  10377. 'l1-cache-line-size'
  10378. The size of cache line in L1 data cache, in bytes.
  10379. 'l1-cache-size'
  10380. The size of L1 data cache, in kilobytes.
  10381. 'l2-cache-size'
  10382. The size of L2 data cache, in kilobytes.
  10383. 'prefetch-dynamic-strides'
  10384. Whether the loop array prefetch pass should issue software
  10385. prefetch hints for strides that are non-constant. In some
  10386. cases this may be beneficial, though the fact the stride is
  10387. non-constant may make it hard to predict when there is clear
  10388. benefit to issuing these hints.
  10389. Set to 1 if the prefetch hints should be issued for
  10390. non-constant strides. Set to 0 if prefetch hints should be
  10391. issued only for strides that are known to be constant and
  10392. below 'prefetch-minimum-stride'.
  10393. 'prefetch-minimum-stride'
  10394. Minimum constant stride, in bytes, to start using prefetch
  10395. hints for. If the stride is less than this threshold,
  10396. prefetch hints will not be issued.
  10397. This setting is useful for processors that have hardware
  10398. prefetchers, in which case there may be conflicts between the
  10399. hardware prefetchers and the software prefetchers. If the
  10400. hardware prefetchers have a maximum stride they can handle, it
  10401. should be used here to improve the use of software
  10402. prefetchers.
  10403. A value of -1 means we don't have a threshold and therefore
  10404. prefetch hints can be issued for any constant stride.
  10405. This setting is only useful for strides that are known and
  10406. constant.
  10407. 'loop-interchange-max-num-stmts'
  10408. The maximum number of stmts in a loop to be interchanged.
  10409. 'loop-interchange-stride-ratio'
  10410. The minimum ratio between stride of two loops for interchange
  10411. to be profitable.
  10412. 'min-insn-to-prefetch-ratio'
  10413. The minimum ratio between the number of instructions and the
  10414. number of prefetches to enable prefetching in a loop.
  10415. 'prefetch-min-insn-to-mem-ratio'
  10416. The minimum ratio between the number of instructions and the
  10417. number of memory references to enable prefetching in a loop.
  10418. 'use-canonical-types'
  10419. Whether the compiler should use the "canonical" type system.
  10420. Should always be 1, which uses a more efficient internal
  10421. mechanism for comparing types in C++ and Objective-C++.
  10422. However, if bugs in the canonical type system are causing
  10423. compilation failures, set this value to 0 to disable canonical
  10424. types.
  10425. 'switch-conversion-max-branch-ratio'
  10426. Switch initialization conversion refuses to create arrays that
  10427. are bigger than 'switch-conversion-max-branch-ratio' times the
  10428. number of branches in the switch.
  10429. 'max-partial-antic-length'
  10430. Maximum length of the partial antic set computed during the
  10431. tree partial redundancy elimination optimization
  10432. ('-ftree-pre') when optimizing at '-O3' and above. For some
  10433. sorts of source code the enhanced partial redundancy
  10434. elimination optimization can run away, consuming all of the
  10435. memory available on the host machine. This parameter sets a
  10436. limit on the length of the sets that are computed, which
  10437. prevents the runaway behavior. Setting a value of 0 for this
  10438. parameter allows an unlimited set length.
  10439. 'rpo-vn-max-loop-depth'
  10440. Maximum loop depth that is value-numbered optimistically.
  10441. When the limit hits the innermost RPO-VN-MAX-LOOP-DEPTH loops
  10442. and the outermost loop in the loop nest are value-numbered
  10443. optimistically and the remaining ones not.
  10444. 'sccvn-max-alias-queries-per-access'
  10445. Maximum number of alias-oracle queries we perform when looking
  10446. for redundancies for loads and stores. If this limit is hit
  10447. the search is aborted and the load or store is not considered
  10448. redundant. The number of queries is algorithmically limited
  10449. to the number of stores on all paths from the load to the
  10450. function entry.
  10451. 'ira-max-loops-num'
  10452. IRA uses regional register allocation by default. If a
  10453. function contains more loops than the number given by this
  10454. parameter, only at most the given number of the most
  10455. frequently-executed loops form regions for regional register
  10456. allocation.
  10457. 'ira-max-conflict-table-size'
  10458. Although IRA uses a sophisticated algorithm to compress the
  10459. conflict table, the table can still require excessive amounts
  10460. of memory for huge functions. If the conflict table for a
  10461. function could be more than the size in MB given by this
  10462. parameter, the register allocator instead uses a faster,
  10463. simpler, and lower-quality algorithm that does not require
  10464. building a pseudo-register conflict table.
  10465. 'ira-loop-reserved-regs'
  10466. IRA can be used to evaluate more accurate register pressure in
  10467. loops for decisions to move loop invariants (see '-O3'). The
  10468. number of available registers reserved for some other purposes
  10469. is given by this parameter. Default of the parameter is the
  10470. best found from numerous experiments.
  10471. 'lra-inheritance-ebb-probability-cutoff'
  10472. LRA tries to reuse values reloaded in registers in subsequent
  10473. insns. This optimization is called inheritance. EBB is used
  10474. as a region to do this optimization. The parameter defines a
  10475. minimal fall-through edge probability in percentage used to
  10476. add BB to inheritance EBB in LRA. The default value was chosen
  10477. from numerous runs of SPEC2000 on x86-64.
  10478. 'loop-invariant-max-bbs-in-loop'
  10479. Loop invariant motion can be very expensive, both in
  10480. compilation time and in amount of needed compile-time memory,
  10481. with very large loops. Loops with more basic blocks than this
  10482. parameter won't have loop invariant motion optimization
  10483. performed on them.
  10484. 'loop-max-datarefs-for-datadeps'
  10485. Building data dependencies is expensive for very large loops.
  10486. This parameter limits the number of data references in loops
  10487. that are considered for data dependence analysis. These large
  10488. loops are no handled by the optimizations using loop data
  10489. dependencies.
  10490. 'max-vartrack-size'
  10491. Sets a maximum number of hash table slots to use during
  10492. variable tracking dataflow analysis of any function. If this
  10493. limit is exceeded with variable tracking at assignments
  10494. enabled, analysis for that function is retried without it,
  10495. after removing all debug insns from the function. If the
  10496. limit is exceeded even without debug insns, var tracking
  10497. analysis is completely disabled for the function. Setting the
  10498. parameter to zero makes it unlimited.
  10499. 'max-vartrack-expr-depth'
  10500. Sets a maximum number of recursion levels when attempting to
  10501. map variable names or debug temporaries to value expressions.
  10502. This trades compilation time for more complete debug
  10503. information. If this is set too low, value expressions that
  10504. are available and could be represented in debug information
  10505. may end up not being used; setting this higher may enable the
  10506. compiler to find more complex debug expressions, but compile
  10507. time and memory use may grow.
  10508. 'max-debug-marker-count'
  10509. Sets a threshold on the number of debug markers (e.g. begin
  10510. stmt markers) to avoid complexity explosion at inlining or
  10511. expanding to RTL. If a function has more such gimple stmts
  10512. than the set limit, such stmts will be dropped from the
  10513. inlined copy of a function, and from its RTL expansion.
  10514. 'min-nondebug-insn-uid'
  10515. Use uids starting at this parameter for nondebug insns. The
  10516. range below the parameter is reserved exclusively for debug
  10517. insns created by '-fvar-tracking-assignments', but debug insns
  10518. may get (non-overlapping) uids above it if the reserved range
  10519. is exhausted.
  10520. 'ipa-sra-ptr-growth-factor'
  10521. IPA-SRA replaces a pointer to an aggregate with one or more
  10522. new parameters only when their cumulative size is less or
  10523. equal to 'ipa-sra-ptr-growth-factor' times the size of the
  10524. original pointer parameter.
  10525. 'ipa-sra-max-replacements'
  10526. Maximum pieces of an aggregate that IPA-SRA tracks. As a
  10527. consequence, it is also the maximum number of replacements of
  10528. a formal parameter.
  10529. 'sra-max-scalarization-size-Ospeed'
  10530. 'sra-max-scalarization-size-Osize'
  10531. The two Scalar Reduction of Aggregates passes (SRA and
  10532. IPA-SRA) aim to replace scalar parts of aggregates with uses
  10533. of independent scalar variables. These parameters control the
  10534. maximum size, in storage units, of aggregate which is
  10535. considered for replacement when compiling for speed
  10536. ('sra-max-scalarization-size-Ospeed') or size
  10537. ('sra-max-scalarization-size-Osize') respectively.
  10538. 'sra-max-propagations'
  10539. The maximum number of artificial accesses that Scalar
  10540. Replacement of Aggregates (SRA) will track, per one local
  10541. variable, in order to facilitate copy propagation.
  10542. 'tm-max-aggregate-size'
  10543. When making copies of thread-local variables in a transaction,
  10544. this parameter specifies the size in bytes after which
  10545. variables are saved with the logging functions as opposed to
  10546. save/restore code sequence pairs. This option only applies
  10547. when using '-fgnu-tm'.
  10548. 'graphite-max-nb-scop-params'
  10549. To avoid exponential effects in the Graphite loop transforms,
  10550. the number of parameters in a Static Control Part (SCoP) is
  10551. bounded. A value of zero can be used to lift the bound. A
  10552. variable whose value is unknown at compilation time and
  10553. defined outside a SCoP is a parameter of the SCoP.
  10554. 'loop-block-tile-size'
  10555. Loop blocking or strip mining transforms, enabled with
  10556. '-floop-block' or '-floop-strip-mine', strip mine each loop in
  10557. the loop nest by a given number of iterations. The strip
  10558. length can be changed using the 'loop-block-tile-size'
  10559. parameter.
  10560. 'ipa-jump-function-lookups'
  10561. Specifies number of statements visited during jump function
  10562. offset discovery.
  10563. 'ipa-cp-value-list-size'
  10564. IPA-CP attempts to track all possible values and types passed
  10565. to a function's parameter in order to propagate them and
  10566. perform devirtualization. 'ipa-cp-value-list-size' is the
  10567. maximum number of values and types it stores per one formal
  10568. parameter of a function.
  10569. 'ipa-cp-eval-threshold'
  10570. IPA-CP calculates its own score of cloning profitability
  10571. heuristics and performs those cloning opportunities with
  10572. scores that exceed 'ipa-cp-eval-threshold'.
  10573. 'ipa-cp-max-recursive-depth'
  10574. Maximum depth of recursive cloning for self-recursive
  10575. function.
  10576. 'ipa-cp-min-recursive-probability'
  10577. Recursive cloning only when the probability of call being
  10578. executed exceeds the parameter.
  10579. 'ipa-cp-recursion-penalty'
  10580. Percentage penalty the recursive functions will receive when
  10581. they are evaluated for cloning.
  10582. 'ipa-cp-single-call-penalty'
  10583. Percentage penalty functions containing a single call to
  10584. another function will receive when they are evaluated for
  10585. cloning.
  10586. 'ipa-max-agg-items'
  10587. IPA-CP is also capable to propagate a number of scalar values
  10588. passed in an aggregate. 'ipa-max-agg-items' controls the
  10589. maximum number of such values per one parameter.
  10590. 'ipa-cp-loop-hint-bonus'
  10591. When IPA-CP determines that a cloning candidate would make the
  10592. number of iterations of a loop known, it adds a bonus of
  10593. 'ipa-cp-loop-hint-bonus' to the profitability score of the
  10594. candidate.
  10595. 'ipa-max-loop-predicates'
  10596. The maximum number of different predicates IPA will use to
  10597. describe when loops in a function have known properties.
  10598. 'ipa-max-aa-steps'
  10599. During its analysis of function bodies, IPA-CP employs alias
  10600. analysis in order to track values pointed to by function
  10601. parameters. In order not spend too much time analyzing huge
  10602. functions, it gives up and consider all memory clobbered after
  10603. examining 'ipa-max-aa-steps' statements modifying memory.
  10604. 'ipa-max-switch-predicate-bounds'
  10605. Maximal number of boundary endpoints of case ranges of switch
  10606. statement. For switch exceeding this limit, IPA-CP will not
  10607. construct cloning cost predicate, which is used to estimate
  10608. cloning benefit, for default case of the switch statement.
  10609. 'ipa-max-param-expr-ops'
  10610. IPA-CP will analyze conditional statement that references some
  10611. function parameter to estimate benefit for cloning upon
  10612. certain constant value. But if number of operations in a
  10613. parameter expression exceeds 'ipa-max-param-expr-ops', the
  10614. expression is treated as complicated one, and is not handled
  10615. by IPA analysis.
  10616. 'lto-partitions'
  10617. Specify desired number of partitions produced during WHOPR
  10618. compilation. The number of partitions should exceed the
  10619. number of CPUs used for compilation.
  10620. 'lto-min-partition'
  10621. Size of minimal partition for WHOPR (in estimated
  10622. instructions). This prevents expenses of splitting very small
  10623. programs into too many partitions.
  10624. 'lto-max-partition'
  10625. Size of max partition for WHOPR (in estimated instructions).
  10626. to provide an upper bound for individual size of partition.
  10627. Meant to be used only with balanced partitioning.
  10628. 'lto-max-streaming-parallelism'
  10629. Maximal number of parallel processes used for LTO streaming.
  10630. 'cxx-max-namespaces-for-diagnostic-help'
  10631. The maximum number of namespaces to consult for suggestions
  10632. when C++ name lookup fails for an identifier.
  10633. 'sink-frequency-threshold'
  10634. The maximum relative execution frequency (in percents) of the
  10635. target block relative to a statement's original block to allow
  10636. statement sinking of a statement. Larger numbers result in
  10637. more aggressive statement sinking. A small positive
  10638. adjustment is applied for statements with memory operands as
  10639. those are even more profitable so sink.
  10640. 'max-stores-to-sink'
  10641. The maximum number of conditional store pairs that can be
  10642. sunk. Set to 0 if either vectorization ('-ftree-vectorize')
  10643. or if-conversion ('-ftree-loop-if-convert') is disabled.
  10644. 'case-values-threshold'
  10645. The smallest number of different values for which it is best
  10646. to use a jump-table instead of a tree of conditional branches.
  10647. If the value is 0, use the default for the machine.
  10648. 'jump-table-max-growth-ratio-for-size'
  10649. The maximum code size growth ratio when expanding into a jump
  10650. table (in percent). The parameter is used when optimizing for
  10651. size.
  10652. 'jump-table-max-growth-ratio-for-speed'
  10653. The maximum code size growth ratio when expanding into a jump
  10654. table (in percent). The parameter is used when optimizing for
  10655. speed.
  10656. 'tree-reassoc-width'
  10657. Set the maximum number of instructions executed in parallel in
  10658. reassociated tree. This parameter overrides target dependent
  10659. heuristics used by default if has non zero value.
  10660. 'sched-pressure-algorithm'
  10661. Choose between the two available implementations of
  10662. '-fsched-pressure'. Algorithm 1 is the original
  10663. implementation and is the more likely to prevent instructions
  10664. from being reordered. Algorithm 2 was designed to be a
  10665. compromise between the relatively conservative approach taken
  10666. by algorithm 1 and the rather aggressive approach taken by the
  10667. default scheduler. It relies more heavily on having a regular
  10668. register file and accurate register pressure classes. See
  10669. 'haifa-sched.c' in the GCC sources for more details.
  10670. The default choice depends on the target.
  10671. 'max-slsr-cand-scan'
  10672. Set the maximum number of existing candidates that are
  10673. considered when seeking a basis for a new straight-line
  10674. strength reduction candidate.
  10675. 'asan-globals'
  10676. Enable buffer overflow detection for global objects. This
  10677. kind of protection is enabled by default if you are using
  10678. '-fsanitize=address' option. To disable global objects
  10679. protection use '--param asan-globals=0'.
  10680. 'asan-stack'
  10681. Enable buffer overflow detection for stack objects. This kind
  10682. of protection is enabled by default when using
  10683. '-fsanitize=address'. To disable stack protection use
  10684. '--param asan-stack=0' option.
  10685. 'asan-instrument-reads'
  10686. Enable buffer overflow detection for memory reads. This kind
  10687. of protection is enabled by default when using
  10688. '-fsanitize=address'. To disable memory reads protection use
  10689. '--param asan-instrument-reads=0'.
  10690. 'asan-instrument-writes'
  10691. Enable buffer overflow detection for memory writes. This kind
  10692. of protection is enabled by default when using
  10693. '-fsanitize=address'. To disable memory writes protection use
  10694. '--param asan-instrument-writes=0' option.
  10695. 'asan-memintrin'
  10696. Enable detection for built-in functions. This kind of
  10697. protection is enabled by default when using
  10698. '-fsanitize=address'. To disable built-in functions
  10699. protection use '--param asan-memintrin=0'.
  10700. 'asan-use-after-return'
  10701. Enable detection of use-after-return. This kind of protection
  10702. is enabled by default when using the '-fsanitize=address'
  10703. option. To disable it use '--param asan-use-after-return=0'.
  10704. Note: By default the check is disabled at run time. To enable
  10705. it, add 'detect_stack_use_after_return=1' to the environment
  10706. variable 'ASAN_OPTIONS'.
  10707. 'asan-instrumentation-with-call-threshold'
  10708. If number of memory accesses in function being instrumented is
  10709. greater or equal to this number, use callbacks instead of
  10710. inline checks. E.g. to disable inline code use '--param
  10711. asan-instrumentation-with-call-threshold=0'.
  10712. 'hwasan-instrument-stack'
  10713. Enable hwasan instrumentation of statically sized
  10714. stack-allocated variables. This kind of instrumentation is
  10715. enabled by default when using '-fsanitize=hwaddress' and
  10716. disabled by default when using '-fsanitize=kernel-hwaddress'.
  10717. To disable stack instrumentation use '--param
  10718. hwasan-instrument-stack=0', and to enable it use '--param
  10719. hwasan-instrument-stack=1'.
  10720. 'hwasan-random-frame-tag'
  10721. When using stack instrumentation, decide tags for stack
  10722. variables using a deterministic sequence beginning at a random
  10723. tag for each frame. With this parameter unset tags are chosen
  10724. using the same sequence but beginning from 1. This is enabled
  10725. by default for '-fsanitize=hwaddress' and unavailable for
  10726. '-fsanitize=kernel-hwaddress'. To disable it use '--param
  10727. hwasan-random-frame-tag=0'.
  10728. 'hwasan-instrument-allocas'
  10729. Enable hwasan instrumentation of dynamically sized
  10730. stack-allocated variables. This kind of instrumentation is
  10731. enabled by default when using '-fsanitize=hwaddress' and
  10732. disabled by default when using '-fsanitize=kernel-hwaddress'.
  10733. To disable instrumentation of such variables use '--param
  10734. hwasan-instrument-allocas=0', and to enable it use '--param
  10735. hwasan-instrument-allocas=1'.
  10736. 'hwasan-instrument-reads'
  10737. Enable hwasan checks on memory reads. Instrumentation of
  10738. reads is enabled by default for both '-fsanitize=hwaddress'
  10739. and '-fsanitize=kernel-hwaddress'. To disable checking memory
  10740. reads use '--param hwasan-instrument-reads=0'.
  10741. 'hwasan-instrument-writes'
  10742. Enable hwasan checks on memory writes. Instrumentation of
  10743. writes is enabled by default for both '-fsanitize=hwaddress'
  10744. and '-fsanitize=kernel-hwaddress'. To disable checking memory
  10745. writes use '--param hwasan-instrument-writes=0'.
  10746. 'hwasan-instrument-mem-intrinsics'
  10747. Enable hwasan instrumentation of builtin functions.
  10748. Instrumentation of these builtin functions is enabled by
  10749. default for both '-fsanitize=hwaddress' and
  10750. '-fsanitize=kernel-hwaddress'. To disable instrumentation of
  10751. builtin functions use '--param
  10752. hwasan-instrument-mem-intrinsics=0'.
  10753. 'use-after-scope-direct-emission-threshold'
  10754. If the size of a local variable in bytes is smaller or equal
  10755. to this number, directly poison (or unpoison) shadow memory
  10756. instead of using run-time callbacks.
  10757. 'tsan-distinguish-volatile'
  10758. Emit special instrumentation for accesses to volatiles.
  10759. 'tsan-instrument-func-entry-exit'
  10760. Emit instrumentation calls to __tsan_func_entry() and
  10761. __tsan_func_exit().
  10762. 'max-fsm-thread-path-insns'
  10763. Maximum number of instructions to copy when duplicating blocks
  10764. on a finite state automaton jump thread path.
  10765. 'max-fsm-thread-length'
  10766. Maximum number of basic blocks on a finite state automaton
  10767. jump thread path.
  10768. 'max-fsm-thread-paths'
  10769. Maximum number of new jump thread paths to create for a finite
  10770. state automaton.
  10771. 'parloops-chunk-size'
  10772. Chunk size of omp schedule for loops parallelized by parloops.
  10773. 'parloops-schedule'
  10774. Schedule type of omp schedule for loops parallelized by
  10775. parloops (static, dynamic, guided, auto, runtime).
  10776. 'parloops-min-per-thread'
  10777. The minimum number of iterations per thread of an innermost
  10778. parallelized loop for which the parallelized variant is
  10779. preferred over the single threaded one. Note that for a
  10780. parallelized loop nest the minimum number of iterations of the
  10781. outermost loop per thread is two.
  10782. 'max-ssa-name-query-depth'
  10783. Maximum depth of recursion when querying properties of SSA
  10784. names in things like fold routines. One level of recursion
  10785. corresponds to following a use-def chain.
  10786. 'max-speculative-devirt-maydefs'
  10787. The maximum number of may-defs we analyze when looking for a
  10788. must-def specifying the dynamic type of an object that invokes
  10789. a virtual call we may be able to devirtualize speculatively.
  10790. 'max-vrp-switch-assertions'
  10791. The maximum number of assertions to add along the default edge
  10792. of a switch statement during VRP.
  10793. 'evrp-mode'
  10794. Specifies the mode Early VRP should operate in.
  10795. 'unroll-jam-min-percent'
  10796. The minimum percentage of memory references that must be
  10797. optimized away for the unroll-and-jam transformation to be
  10798. considered profitable.
  10799. 'unroll-jam-max-unroll'
  10800. The maximum number of times the outer loop should be unrolled
  10801. by the unroll-and-jam transformation.
  10802. 'max-rtl-if-conversion-unpredictable-cost'
  10803. Maximum permissible cost for the sequence that would be
  10804. generated by the RTL if-conversion pass for a branch that is
  10805. considered unpredictable.
  10806. 'max-variable-expansions-in-unroller'
  10807. If '-fvariable-expansion-in-unroller' is used, the maximum
  10808. number of times that an individual variable will be expanded
  10809. during loop unrolling.
  10810. 'tracer-min-branch-probability-feedback'
  10811. Stop forward growth if the probability of best edge is less
  10812. than this threshold (in percent). Used when profile feedback
  10813. is available.
  10814. 'partial-inlining-entry-probability'
  10815. Maximum probability of the entry BB of split region (in
  10816. percent relative to entry BB of the function) to make partial
  10817. inlining happen.
  10818. 'max-tracked-strlens'
  10819. Maximum number of strings for which strlen optimization pass
  10820. will track string lengths.
  10821. 'gcse-after-reload-partial-fraction'
  10822. The threshold ratio for performing partial redundancy
  10823. elimination after reload.
  10824. 'gcse-after-reload-critical-fraction'
  10825. The threshold ratio of critical edges execution count that
  10826. permit performing redundancy elimination after reload.
  10827. 'max-loop-header-insns'
  10828. The maximum number of insns in loop header duplicated by the
  10829. copy loop headers pass.
  10830. 'vect-epilogues-nomask'
  10831. Enable loop epilogue vectorization using smaller vector size.
  10832. 'vect-partial-vector-usage'
  10833. Controls when the loop vectorizer considers using partial
  10834. vector loads and stores as an alternative to falling back to
  10835. scalar code. 0 stops the vectorizer from ever using partial
  10836. vector loads and stores. 1 allows partial vector loads and
  10837. stores if vectorization removes the need for the code to
  10838. iterate. 2 allows partial vector loads and stores in all
  10839. loops. The parameter only has an effect on targets that
  10840. support partial vector loads and stores.
  10841. 'avoid-fma-max-bits'
  10842. Maximum number of bits for which we avoid creating FMAs.
  10843. 'sms-loop-average-count-threshold'
  10844. A threshold on the average loop count considered by the swing
  10845. modulo scheduler.
  10846. 'sms-dfa-history'
  10847. The number of cycles the swing modulo scheduler considers when
  10848. checking conflicts using DFA.
  10849. 'max-inline-insns-recursive-auto'
  10850. The maximum number of instructions non-inline function can
  10851. grow to via recursive inlining.
  10852. 'graphite-allow-codegen-errors'
  10853. Whether codegen errors should be ICEs when '-fchecking'.
  10854. 'sms-max-ii-factor'
  10855. A factor for tuning the upper bound that swing modulo
  10856. scheduler uses for scheduling a loop.
  10857. 'lra-max-considered-reload-pseudos'
  10858. The max number of reload pseudos which are considered during
  10859. spilling a non-reload pseudo.
  10860. 'max-pow-sqrt-depth'
  10861. Maximum depth of sqrt chains to use when synthesizing
  10862. exponentiation by a real constant.
  10863. 'max-dse-active-local-stores'
  10864. Maximum number of active local stores in RTL dead store
  10865. elimination.
  10866. 'asan-instrument-allocas'
  10867. Enable asan allocas/VLAs protection.
  10868. 'max-iterations-computation-cost'
  10869. Bound on the cost of an expression to compute the number of
  10870. iterations.
  10871. 'max-isl-operations'
  10872. Maximum number of isl operations, 0 means unlimited.
  10873. 'graphite-max-arrays-per-scop'
  10874. Maximum number of arrays per scop.
  10875. 'max-vartrack-reverse-op-size'
  10876. Max. size of loc list for which reverse ops should be added.
  10877. 'tracer-dynamic-coverage-feedback'
  10878. The percentage of function, weighted by execution frequency,
  10879. that must be covered by trace formation. Used when profile
  10880. feedback is available.
  10881. 'max-inline-recursive-depth-auto'
  10882. The maximum depth of recursive inlining for non-inline
  10883. functions.
  10884. 'fsm-scale-path-stmts'
  10885. Scale factor to apply to the number of statements in a
  10886. threading path when comparing to the number of (scaled)
  10887. blocks.
  10888. 'fsm-maximum-phi-arguments'
  10889. Maximum number of arguments a PHI may have before the FSM
  10890. threader will not try to thread through its block.
  10891. 'uninit-control-dep-attempts'
  10892. Maximum number of nested calls to search for control
  10893. dependencies during uninitialized variable analysis.
  10894. 'sra-max-scalarization-size-Osize'
  10895. Maximum size, in storage units, of an aggregate which should
  10896. be considered for scalarization when compiling for size.
  10897. 'fsm-scale-path-blocks'
  10898. Scale factor to apply to the number of blocks in a threading
  10899. path when comparing to the number of (scaled) statements.
  10900. 'sched-autopref-queue-depth'
  10901. Hardware autoprefetcher scheduler model control flag. Number
  10902. of lookahead cycles the model looks into; at ' ' only enable
  10903. instruction sorting heuristic.
  10904. 'loop-versioning-max-inner-insns'
  10905. The maximum number of instructions that an inner loop can have
  10906. before the loop versioning pass considers it too big to copy.
  10907. 'loop-versioning-max-outer-insns'
  10908. The maximum number of instructions that an outer loop can have
  10909. before the loop versioning pass considers it too big to copy,
  10910. discounting any instructions in inner loops that directly
  10911. benefit from versioning.
  10912. 'ssa-name-def-chain-limit'
  10913. The maximum number of SSA_NAME assignments to follow in
  10914. determining a property of a variable such as its value. This
  10915. limits the number of iterations or recursive calls GCC
  10916. performs when optimizing certain statements or when
  10917. determining their validity prior to issuing diagnostics.
  10918. 'store-merging-max-size'
  10919. Maximum size of a single store merging region in bytes.
  10920. 'hash-table-verification-limit'
  10921. The number of elements for which hash table verification is
  10922. done for each searched element.
  10923. 'max-find-base-term-values'
  10924. Maximum number of VALUEs handled during a single
  10925. find_base_term call.
  10926. 'analyzer-max-enodes-per-program-point'
  10927. The maximum number of exploded nodes per program point within
  10928. the analyzer, before terminating analysis of that point.
  10929. 'analyzer-max-constraints'
  10930. The maximum number of constraints per state.
  10931. 'analyzer-min-snodes-for-call-summary'
  10932. The minimum number of supernodes within a function for the
  10933. analyzer to consider summarizing its effects at call sites.
  10934. 'analyzer-max-enodes-for-full-dump'
  10935. The maximum depth of exploded nodes that should appear in a
  10936. dot dump before switching to a less verbose format.
  10937. 'analyzer-max-recursion-depth'
  10938. The maximum number of times a callsite can appear in a call
  10939. stack within the analyzer, before terminating analysis of a
  10940. call that would recurse deeper.
  10941. 'analyzer-max-svalue-depth'
  10942. The maximum depth of a symbolic value, before approximating
  10943. the value as unknown.
  10944. 'analyzer-max-infeasible-edges'
  10945. The maximum number of infeasible edges to reject before
  10946. declaring a diagnostic as infeasible.
  10947. 'gimple-fe-computed-hot-bb-threshold'
  10948. The number of executions of a basic block which is considered
  10949. hot. The parameter is used only in GIMPLE FE.
  10950. 'analyzer-bb-explosion-factor'
  10951. The maximum number of 'after supernode' exploded nodes within
  10952. the analyzer per supernode, before terminating analysis.
  10953. 'ranger-logical-depth'
  10954. Maximum depth of logical expression evaluation ranger will
  10955. look through when evaluating outgoing edge ranges.
  10956. 'openacc-kernels'
  10957. Specify mode of OpenACC 'kernels' constructs handling. With
  10958. '--param=openacc-kernels=decompose', OpenACC 'kernels'
  10959. constructs are decomposed into parts, a sequence of compute
  10960. constructs, each then handled individually. This is work in
  10961. progress. With '--param=openacc-kernels=parloops', OpenACC
  10962. 'kernels' constructs are handled by the 'parloops' pass, en
  10963. bloc. This is the current default.
  10964. The following choices of NAME are available on AArch64 targets:
  10965. 'aarch64-sve-compare-costs'
  10966. When vectorizing for SVE, consider using "unpacked" vectors
  10967. for smaller elements and use the cost model to pick the
  10968. cheapest approach. Also use the cost model to choose between
  10969. SVE and Advanced SIMD vectorization.
  10970. Using unpacked vectors includes storing smaller elements in
  10971. larger containers and accessing elements with extending loads
  10972. and truncating stores.
  10973. 'aarch64-float-recp-precision'
  10974. The number of Newton iterations for calculating the reciprocal
  10975. for float type. The precision of division is proportional to
  10976. this param when division approximation is enabled. The
  10977. default value is 1.
  10978. 'aarch64-double-recp-precision'
  10979. The number of Newton iterations for calculating the reciprocal
  10980. for double type. The precision of division is propotional to
  10981. this param when division approximation is enabled. The
  10982. default value is 2.
  10983. 'aarch64-autovec-preference'
  10984. Force an ISA selection strategy for auto-vectorization.
  10985. Accepts values from 0 to 4, inclusive.
  10986. '0'
  10987. Use the default heuristics.
  10988. '1'
  10989. Use only Advanced SIMD for auto-vectorization.
  10990. '2'
  10991. Use only SVE for auto-vectorization.
  10992. '3'
  10993. Use both Advanced SIMD and SVE. Prefer Advanced SIMD when
  10994. the costs are deemed equal.
  10995. '4'
  10996. Use both Advanced SIMD and SVE. Prefer SVE when the costs
  10997. are deemed equal.
  10998. The default value is 0.
  10999. 'aarch64-loop-vect-issue-rate-niters'
  11000. The tuning for some AArch64 CPUs tries to take both latencies
  11001. and issue rates into account when deciding whether a loop
  11002. should be vectorized using SVE, vectorized using Advanced
  11003. SIMD, or not vectorized at all. If this parameter is set to
  11004. N, GCC will not use this heuristic for loops that are known to
  11005. execute in fewer than N Advanced SIMD iterations.
  11006. 
  11007. File: gcc.info, Node: Instrumentation Options, Next: Preprocessor Options, Prev: Optimize Options, Up: Invoking GCC
  11008. 3.12 Program Instrumentation Options
  11009. ====================================
  11010. GCC supports a number of command-line options that control adding
  11011. run-time instrumentation to the code it normally generates. For
  11012. example, one purpose of instrumentation is collect profiling statistics
  11013. for use in finding program hot spots, code coverage analysis, or
  11014. profile-guided optimizations. Another class of program instrumentation
  11015. is adding run-time checking to detect programming errors like invalid
  11016. pointer dereferences or out-of-bounds array accesses, as well as
  11017. deliberately hostile attacks such as stack smashing or C++ vtable
  11018. hijacking. There is also a general hook which can be used to implement
  11019. other forms of tracing or function-level instrumentation for debug or
  11020. program analysis purposes.
  11021. '-p'
  11022. '-pg'
  11023. Generate extra code to write profile information suitable for the
  11024. analysis program 'prof' (for '-p') or 'gprof' (for '-pg'). You
  11025. must use this option when compiling the source files you want data
  11026. about, and you must also use it when linking.
  11027. You can use the function attribute 'no_instrument_function' to
  11028. suppress profiling of individual functions when compiling with
  11029. these options. *Note Common Function Attributes::.
  11030. '-fprofile-arcs'
  11031. Add code so that program flow "arcs" are instrumented. During
  11032. execution the program records how many times each branch and call
  11033. is executed and how many times it is taken or returns. On targets
  11034. that support constructors with priority support, profiling properly
  11035. handles constructors, destructors and C++ constructors (and
  11036. destructors) of classes which are used as a type of a global
  11037. variable.
  11038. When the compiled program exits it saves this data to a file called
  11039. 'AUXNAME.gcda' for each source file. The data may be used for
  11040. profile-directed optimizations ('-fbranch-probabilities'), or for
  11041. test coverage analysis ('-ftest-coverage'). Each object file's
  11042. AUXNAME is generated from the name of the output file, if
  11043. explicitly specified and it is not the final executable, otherwise
  11044. it is the basename of the source file. In both cases any suffix is
  11045. removed (e.g. 'foo.gcda' for input file 'dir/foo.c', or
  11046. 'dir/foo.gcda' for output file specified as '-o dir/foo.o'). *Note
  11047. Cross-profiling::.
  11048. '--coverage'
  11049. This option is used to compile and link code instrumented for
  11050. coverage analysis. The option is a synonym for '-fprofile-arcs'
  11051. '-ftest-coverage' (when compiling) and '-lgcov' (when linking).
  11052. See the documentation for those options for more details.
  11053. * Compile the source files with '-fprofile-arcs' plus
  11054. optimization and code generation options. For test coverage
  11055. analysis, use the additional '-ftest-coverage' option. You do
  11056. not need to profile every source file in a program.
  11057. * Compile the source files additionally with
  11058. '-fprofile-abs-path' to create absolute path names in the
  11059. '.gcno' files. This allows 'gcov' to find the correct sources
  11060. in projects where compilations occur with different working
  11061. directories.
  11062. * Link your object files with '-lgcov' or '-fprofile-arcs' (the
  11063. latter implies the former).
  11064. * Run the program on a representative workload to generate the
  11065. arc profile information. This may be repeated any number of
  11066. times. You can run concurrent instances of your program, and
  11067. provided that the file system supports locking, the data files
  11068. will be correctly updated. Unless a strict ISO C dialect
  11069. option is in effect, 'fork' calls are detected and correctly
  11070. handled without double counting.
  11071. * For profile-directed optimizations, compile the source files
  11072. again with the same optimization and code generation options
  11073. plus '-fbranch-probabilities' (*note Options that Control
  11074. Optimization: Optimize Options.).
  11075. * For test coverage analysis, use 'gcov' to produce human
  11076. readable information from the '.gcno' and '.gcda' files.
  11077. Refer to the 'gcov' documentation for further information.
  11078. With '-fprofile-arcs', for each function of your program GCC
  11079. creates a program flow graph, then finds a spanning tree for the
  11080. graph. Only arcs that are not on the spanning tree have to be
  11081. instrumented: the compiler adds code to count the number of times
  11082. that these arcs are executed. When an arc is the only exit or only
  11083. entrance to a block, the instrumentation code can be added to the
  11084. block; otherwise, a new basic block must be created to hold the
  11085. instrumentation code.
  11086. '-ftest-coverage'
  11087. Produce a notes file that the 'gcov' code-coverage utility (*note
  11088. 'gcov'--a Test Coverage Program: Gcov.) can use to show program
  11089. coverage. Each source file's note file is called 'AUXNAME.gcno'.
  11090. Refer to the '-fprofile-arcs' option above for a description of
  11091. AUXNAME and instructions on how to generate test coverage data.
  11092. Coverage data matches the source files more closely if you do not
  11093. optimize.
  11094. '-fprofile-abs-path'
  11095. Automatically convert relative source file names to absolute path
  11096. names in the '.gcno' files. This allows 'gcov' to find the correct
  11097. sources in projects where compilations occur with different working
  11098. directories.
  11099. '-fprofile-dir=PATH'
  11100. Set the directory to search for the profile data files in to PATH.
  11101. This option affects only the profile data generated by
  11102. '-fprofile-generate', '-ftest-coverage', '-fprofile-arcs' and used
  11103. by '-fprofile-use' and '-fbranch-probabilities' and its related
  11104. options. Both absolute and relative paths can be used. By
  11105. default, GCC uses the current directory as PATH, thus the profile
  11106. data file appears in the same directory as the object file. In
  11107. order to prevent the file name clashing, if the object file name is
  11108. not an absolute path, we mangle the absolute path of the
  11109. 'SOURCENAME.gcda' file and use it as the file name of a '.gcda'
  11110. file. See similar option '-fprofile-note'.
  11111. When an executable is run in a massive parallel environment, it is
  11112. recommended to save profile to different folders. That can be done
  11113. with variables in PATH that are exported during run-time:
  11114. '%p'
  11115. process ID.
  11116. '%q{VAR}'
  11117. value of environment variable VAR
  11118. '-fprofile-generate'
  11119. '-fprofile-generate=PATH'
  11120. Enable options usually used for instrumenting application to
  11121. produce profile useful for later recompilation with profile
  11122. feedback based optimization. You must use '-fprofile-generate'
  11123. both when compiling and when linking your program.
  11124. The following options are enabled: '-fprofile-arcs',
  11125. '-fprofile-values', '-finline-functions', and '-fipa-bit-cp'.
  11126. If PATH is specified, GCC looks at the PATH to find the profile
  11127. feedback data files. See '-fprofile-dir'.
  11128. To optimize the program based on the collected profile information,
  11129. use '-fprofile-use'. *Note Optimize Options::, for more
  11130. information.
  11131. '-fprofile-info-section'
  11132. '-fprofile-info-section=NAME'
  11133. Register the profile information in the specified section instead
  11134. of using a constructor/destructor. The section name is NAME if it
  11135. is specified, otherwise the section name defaults to '.gcov_info'.
  11136. A pointer to the profile information generated by '-fprofile-arcs'
  11137. or '-ftest-coverage' is placed in the specified section for each
  11138. translation unit. This option disables the profile information
  11139. registration through a constructor and it disables the profile
  11140. information processing through a destructor. This option is not
  11141. intended to be used in hosted environments such as GNU/Linux. It
  11142. targets systems with limited resources which do not support
  11143. constructors and destructors. The linker could collect the input
  11144. sections in a continuous memory block and define start and end
  11145. symbols. The runtime support could dump the profiling information
  11146. registered in this linker set during program termination to a
  11147. serial line for example. A GNU linker script example which defines
  11148. a linker output section follows:
  11149. .gcov_info :
  11150. {
  11151. PROVIDE (__gcov_info_start = .);
  11152. KEEP (*(.gcov_info))
  11153. PROVIDE (__gcov_info_end = .);
  11154. }
  11155. '-fprofile-note=PATH'
  11156. If PATH is specified, GCC saves '.gcno' file into PATH location.
  11157. If you combine the option with multiple source files, the '.gcno'
  11158. file will be overwritten.
  11159. '-fprofile-prefix-path=PATH'
  11160. This option can be used in combination with
  11161. 'profile-generate='PROFILE_DIR and 'profile-use='PROFILE_DIR to
  11162. inform GCC where is the base directory of built source tree. By
  11163. default PROFILE_DIR will contain files with mangled absolute paths
  11164. of all object files in the built project. This is not desirable
  11165. when directory used to build the instrumented binary differs from
  11166. the directory used to build the binary optimized with profile
  11167. feedback because the profile data will not be found during the
  11168. optimized build. In such setups '-fprofile-prefix-path='PATH with
  11169. PATH pointing to the base directory of the build can be used to
  11170. strip the irrelevant part of the path and keep all file names
  11171. relative to the main build directory.
  11172. '-fprofile-update=METHOD'
  11173. Alter the update method for an application instrumented for profile
  11174. feedback based optimization. The METHOD argument should be one of
  11175. 'single', 'atomic' or 'prefer-atomic'. The first one is useful for
  11176. single-threaded applications, while the second one prevents profile
  11177. corruption by emitting thread-safe code.
  11178. *Warning:* When an application does not properly join all threads
  11179. (or creates an detached thread), a profile file can be still
  11180. corrupted.
  11181. Using 'prefer-atomic' would be transformed either to 'atomic', when
  11182. supported by a target, or to 'single' otherwise. The GCC driver
  11183. automatically selects 'prefer-atomic' when '-pthread' is present in
  11184. the command line.
  11185. '-fprofile-filter-files=REGEX'
  11186. Instrument only functions from files whose name matches any of the
  11187. regular expressions (separated by semi-colons).
  11188. For example, '-fprofile-filter-files=main\.c;module.*\.c' will
  11189. instrument only 'main.c' and all C files starting with 'module'.
  11190. '-fprofile-exclude-files=REGEX'
  11191. Instrument only functions from files whose name does not match any
  11192. of the regular expressions (separated by semi-colons).
  11193. For example, '-fprofile-exclude-files=/usr/.*' will prevent
  11194. instrumentation of all files that are located in the '/usr/'
  11195. folder.
  11196. '-fprofile-reproducible=[multithreaded|parallel-runs|serial]'
  11197. Control level of reproducibility of profile gathered by
  11198. '-fprofile-generate'. This makes it possible to rebuild program
  11199. with same outcome which is useful, for example, for distribution
  11200. packages.
  11201. With '-fprofile-reproducible=serial' the profile gathered by
  11202. '-fprofile-generate' is reproducible provided the trained program
  11203. behaves the same at each invocation of the train run, it is not
  11204. multi-threaded and profile data streaming is always done in the
  11205. same order. Note that profile streaming happens at the end of
  11206. program run but also before 'fork' function is invoked.
  11207. Note that it is quite common that execution counts of some part of
  11208. programs depends, for example, on length of temporary file names or
  11209. memory space randomization (that may affect hash-table collision
  11210. rate). Such non-reproducible part of programs may be annotated by
  11211. 'no_instrument_function' function attribute. 'gcov-dump' with '-l'
  11212. can be used to dump gathered data and verify that they are indeed
  11213. reproducible.
  11214. With '-fprofile-reproducible=parallel-runs' collected profile stays
  11215. reproducible regardless the order of streaming of the data into
  11216. gcda files. This setting makes it possible to run multiple
  11217. instances of instrumented program in parallel (such as with 'make
  11218. -j'). This reduces quality of gathered data, in particular of
  11219. indirect call profiling.
  11220. '-fsanitize=address'
  11221. Enable AddressSanitizer, a fast memory error detector. Memory
  11222. access instructions are instrumented to detect out-of-bounds and
  11223. use-after-free bugs. The option enables
  11224. '-fsanitize-address-use-after-scope'. See
  11225. <https://github.com/google/sanitizers/wiki/AddressSanitizer> for
  11226. more details. The run-time behavior can be influenced using the
  11227. 'ASAN_OPTIONS' environment variable. When set to 'help=1', the
  11228. available options are shown at startup of the instrumented program.
  11229. See
  11230. <https://github.com/google/sanitizers/wiki/AddressSanitizerFlags#run-time-flags>
  11231. for a list of supported options. The option cannot be combined
  11232. with '-fsanitize=thread' or '-fsanitize=hwaddress'. Note that the
  11233. only target '-fsanitize=hwaddress' is currently supported on is
  11234. AArch64.
  11235. '-fsanitize=kernel-address'
  11236. Enable AddressSanitizer for Linux kernel. See
  11237. <https://github.com/google/kasan> for more details.
  11238. '-fsanitize=hwaddress'
  11239. Enable Hardware-assisted AddressSanitizer, which uses a hardware
  11240. ability to ignore the top byte of a pointer to allow the detection
  11241. of memory errors with a low memory overhead. Memory access
  11242. instructions are instrumented to detect out-of-bounds and
  11243. use-after-free bugs. The option enables
  11244. '-fsanitize-address-use-after-scope'. See
  11245. <https://clang.llvm.org/docs/HardwareAssistedAddressSanitizerDesign.html>
  11246. for more details. The run-time behavior can be influenced using
  11247. the 'HWASAN_OPTIONS' environment variable. When set to 'help=1',
  11248. the available options are shown at startup of the instrumented
  11249. program. The option cannot be combined with '-fsanitize=thread' or
  11250. '-fsanitize=address', and is currently only available on AArch64.
  11251. '-fsanitize=kernel-hwaddress'
  11252. Enable Hardware-assisted AddressSanitizer for compilation of the
  11253. Linux kernel. Similar to '-fsanitize=kernel-address' but using an
  11254. alternate instrumentation method, and similar to
  11255. '-fsanitize=hwaddress' but with instrumentation differences
  11256. necessary for compiling the Linux kernel. These differences are to
  11257. avoid hwasan library initialization calls and to account for the
  11258. stack pointer having a different value in its top byte.
  11259. _Note:_ This option has different defaults to the
  11260. '-fsanitize=hwaddress'. Instrumenting the stack and alloca calls
  11261. are not on by default but are still possible by specifying the
  11262. command-line options '--param hwasan-instrument-stack=1' and
  11263. '--param hwasan-instrument-allocas=1' respectively. Using a random
  11264. frame tag is not implemented for kernel instrumentation.
  11265. '-fsanitize=pointer-compare'
  11266. Instrument comparison operation (<, <=, >, >=) with pointer
  11267. operands. The option must be combined with either
  11268. '-fsanitize=kernel-address' or '-fsanitize=address' The option
  11269. cannot be combined with '-fsanitize=thread'. Note: By default the
  11270. check is disabled at run time. To enable it, add
  11271. 'detect_invalid_pointer_pairs=2' to the environment variable
  11272. 'ASAN_OPTIONS'. Using 'detect_invalid_pointer_pairs=1' detects
  11273. invalid operation only when both pointers are non-null.
  11274. '-fsanitize=pointer-subtract'
  11275. Instrument subtraction with pointer operands. The option must be
  11276. combined with either '-fsanitize=kernel-address' or
  11277. '-fsanitize=address' The option cannot be combined with
  11278. '-fsanitize=thread'. Note: By default the check is disabled at run
  11279. time. To enable it, add 'detect_invalid_pointer_pairs=2' to the
  11280. environment variable 'ASAN_OPTIONS'. Using
  11281. 'detect_invalid_pointer_pairs=1' detects invalid operation only
  11282. when both pointers are non-null.
  11283. '-fsanitize=thread'
  11284. Enable ThreadSanitizer, a fast data race detector. Memory access
  11285. instructions are instrumented to detect data race bugs. See
  11286. <https://github.com/google/sanitizers/wiki#threadsanitizer> for
  11287. more details. The run-time behavior can be influenced using the
  11288. 'TSAN_OPTIONS' environment variable; see
  11289. <https://github.com/google/sanitizers/wiki/ThreadSanitizerFlags>
  11290. for a list of supported options. The option cannot be combined
  11291. with '-fsanitize=address', '-fsanitize=leak'.
  11292. Note that sanitized atomic builtins cannot throw exceptions when
  11293. operating on invalid memory addresses with non-call exceptions
  11294. ('-fnon-call-exceptions').
  11295. '-fsanitize=leak'
  11296. Enable LeakSanitizer, a memory leak detector. This option only
  11297. matters for linking of executables and the executable is linked
  11298. against a library that overrides 'malloc' and other allocator
  11299. functions. See
  11300. <https://github.com/google/sanitizers/wiki/AddressSanitizerLeakSanitizer>
  11301. for more details. The run-time behavior can be influenced using
  11302. the 'LSAN_OPTIONS' environment variable. The option cannot be
  11303. combined with '-fsanitize=thread'.
  11304. '-fsanitize=undefined'
  11305. Enable UndefinedBehaviorSanitizer, a fast undefined behavior
  11306. detector. Various computations are instrumented to detect
  11307. undefined behavior at runtime. Current suboptions are:
  11308. '-fsanitize=shift'
  11309. This option enables checking that the result of a shift
  11310. operation is not undefined. Note that what exactly is
  11311. considered undefined differs slightly between C and C++, as
  11312. well as between ISO C90 and C99, etc. This option has two
  11313. suboptions, '-fsanitize=shift-base' and
  11314. '-fsanitize=shift-exponent'.
  11315. '-fsanitize=shift-exponent'
  11316. This option enables checking that the second argument of a
  11317. shift operation is not negative and is smaller than the
  11318. precision of the promoted first argument.
  11319. '-fsanitize=shift-base'
  11320. If the second argument of a shift operation is within range,
  11321. check that the result of a shift operation is not undefined.
  11322. Note that what exactly is considered undefined differs
  11323. slightly between C and C++, as well as between ISO C90 and
  11324. C99, etc.
  11325. '-fsanitize=integer-divide-by-zero'
  11326. Detect integer division by zero as well as 'INT_MIN / -1'
  11327. division.
  11328. '-fsanitize=unreachable'
  11329. With this option, the compiler turns the
  11330. '__builtin_unreachable' call into a diagnostics message call
  11331. instead. When reaching the '__builtin_unreachable' call, the
  11332. behavior is undefined.
  11333. '-fsanitize=vla-bound'
  11334. This option instructs the compiler to check that the size of a
  11335. variable length array is positive.
  11336. '-fsanitize=null'
  11337. This option enables pointer checking. Particularly, the
  11338. application built with this option turned on will issue an
  11339. error message when it tries to dereference a NULL pointer, or
  11340. if a reference (possibly an rvalue reference) is bound to a
  11341. NULL pointer, or if a method is invoked on an object pointed
  11342. by a NULL pointer.
  11343. '-fsanitize=return'
  11344. This option enables return statement checking. Programs built
  11345. with this option turned on will issue an error message when
  11346. the end of a non-void function is reached without actually
  11347. returning a value. This option works in C++ only.
  11348. '-fsanitize=signed-integer-overflow'
  11349. This option enables signed integer overflow checking. We
  11350. check that the result of '+', '*', and both unary and binary
  11351. '-' does not overflow in the signed arithmetics. Note,
  11352. integer promotion rules must be taken into account. That is,
  11353. the following is not an overflow:
  11354. signed char a = SCHAR_MAX;
  11355. a++;
  11356. '-fsanitize=bounds'
  11357. This option enables instrumentation of array bounds. Various
  11358. out of bounds accesses are detected. Flexible array members,
  11359. flexible array member-like arrays, and initializers of
  11360. variables with static storage are not instrumented.
  11361. '-fsanitize=bounds-strict'
  11362. This option enables strict instrumentation of array bounds.
  11363. Most out of bounds accesses are detected, including flexible
  11364. array members and flexible array member-like arrays.
  11365. Initializers of variables with static storage are not
  11366. instrumented.
  11367. '-fsanitize=alignment'
  11368. This option enables checking of alignment of pointers when
  11369. they are dereferenced, or when a reference is bound to
  11370. insufficiently aligned target, or when a method or constructor
  11371. is invoked on insufficiently aligned object.
  11372. '-fsanitize=object-size'
  11373. This option enables instrumentation of memory references using
  11374. the '__builtin_object_size' function. Various out of bounds
  11375. pointer accesses are detected.
  11376. '-fsanitize=float-divide-by-zero'
  11377. Detect floating-point division by zero. Unlike other similar
  11378. options, '-fsanitize=float-divide-by-zero' is not enabled by
  11379. '-fsanitize=undefined', since floating-point division by zero
  11380. can be a legitimate way of obtaining infinities and NaNs.
  11381. '-fsanitize=float-cast-overflow'
  11382. This option enables floating-point type to integer conversion
  11383. checking. We check that the result of the conversion does not
  11384. overflow. Unlike other similar options,
  11385. '-fsanitize=float-cast-overflow' is not enabled by
  11386. '-fsanitize=undefined'. This option does not work well with
  11387. 'FE_INVALID' exceptions enabled.
  11388. '-fsanitize=nonnull-attribute'
  11389. This option enables instrumentation of calls, checking whether
  11390. null values are not passed to arguments marked as requiring a
  11391. non-null value by the 'nonnull' function attribute.
  11392. '-fsanitize=returns-nonnull-attribute'
  11393. This option enables instrumentation of return statements in
  11394. functions marked with 'returns_nonnull' function attribute, to
  11395. detect returning of null values from such functions.
  11396. '-fsanitize=bool'
  11397. This option enables instrumentation of loads from bool. If a
  11398. value other than 0/1 is loaded, a run-time error is issued.
  11399. '-fsanitize=enum'
  11400. This option enables instrumentation of loads from an enum
  11401. type. If a value outside the range of values for the enum
  11402. type is loaded, a run-time error is issued.
  11403. '-fsanitize=vptr'
  11404. This option enables instrumentation of C++ member function
  11405. calls, member accesses and some conversions between pointers
  11406. to base and derived classes, to verify the referenced object
  11407. has the correct dynamic type.
  11408. '-fsanitize=pointer-overflow'
  11409. This option enables instrumentation of pointer arithmetics.
  11410. If the pointer arithmetics overflows, a run-time error is
  11411. issued.
  11412. '-fsanitize=builtin'
  11413. This option enables instrumentation of arguments to selected
  11414. builtin functions. If an invalid value is passed to such
  11415. arguments, a run-time error is issued. E.g. passing 0 as the
  11416. argument to '__builtin_ctz' or '__builtin_clz' invokes
  11417. undefined behavior and is diagnosed by this option.
  11418. While '-ftrapv' causes traps for signed overflows to be emitted,
  11419. '-fsanitize=undefined' gives a diagnostic message. This currently
  11420. works only for the C family of languages.
  11421. '-fno-sanitize=all'
  11422. This option disables all previously enabled sanitizers.
  11423. '-fsanitize=all' is not allowed, as some sanitizers cannot be used
  11424. together.
  11425. '-fasan-shadow-offset=NUMBER'
  11426. This option forces GCC to use custom shadow offset in
  11427. AddressSanitizer checks. It is useful for experimenting with
  11428. different shadow memory layouts in Kernel AddressSanitizer.
  11429. '-fsanitize-sections=S1,S2,...'
  11430. Sanitize global variables in selected user-defined sections. SI
  11431. may contain wildcards.
  11432. '-fsanitize-recover[=OPTS]'
  11433. '-fsanitize-recover=' controls error recovery mode for sanitizers
  11434. mentioned in comma-separated list of OPTS. Enabling this option
  11435. for a sanitizer component causes it to attempt to continue running
  11436. the program as if no error happened. This means multiple runtime
  11437. errors can be reported in a single program run, and the exit code
  11438. of the program may indicate success even when errors have been
  11439. reported. The '-fno-sanitize-recover=' option can be used to alter
  11440. this behavior: only the first detected error is reported and
  11441. program then exits with a non-zero exit code.
  11442. Currently this feature only works for '-fsanitize=undefined' (and
  11443. its suboptions except for '-fsanitize=unreachable' and
  11444. '-fsanitize=return'), '-fsanitize=float-cast-overflow',
  11445. '-fsanitize=float-divide-by-zero', '-fsanitize=bounds-strict',
  11446. '-fsanitize=kernel-address' and '-fsanitize=address'. For these
  11447. sanitizers error recovery is turned on by default, except
  11448. '-fsanitize=address', for which this feature is experimental.
  11449. '-fsanitize-recover=all' and '-fno-sanitize-recover=all' is also
  11450. accepted, the former enables recovery for all sanitizers that
  11451. support it, the latter disables recovery for all sanitizers that
  11452. support it.
  11453. Even if a recovery mode is turned on the compiler side, it needs to
  11454. be also enabled on the runtime library side, otherwise the failures
  11455. are still fatal. The runtime library defaults to 'halt_on_error=0'
  11456. for ThreadSanitizer and UndefinedBehaviorSanitizer, while default
  11457. value for AddressSanitizer is 'halt_on_error=1'. This can be
  11458. overridden through setting the 'halt_on_error' flag in the
  11459. corresponding environment variable.
  11460. Syntax without an explicit OPTS parameter is deprecated. It is
  11461. equivalent to specifying an OPTS list of:
  11462. undefined,float-cast-overflow,float-divide-by-zero,bounds-strict
  11463. '-fsanitize-address-use-after-scope'
  11464. Enable sanitization of local variables to detect use-after-scope
  11465. bugs. The option sets '-fstack-reuse' to 'none'.
  11466. '-fsanitize-undefined-trap-on-error'
  11467. The '-fsanitize-undefined-trap-on-error' option instructs the
  11468. compiler to report undefined behavior using '__builtin_trap' rather
  11469. than a 'libubsan' library routine. The advantage of this is that
  11470. the 'libubsan' library is not needed and is not linked in, so this
  11471. is usable even in freestanding environments.
  11472. '-fsanitize-coverage=trace-pc'
  11473. Enable coverage-guided fuzzing code instrumentation. Inserts a
  11474. call to '__sanitizer_cov_trace_pc' into every basic block.
  11475. '-fsanitize-coverage=trace-cmp'
  11476. Enable dataflow guided fuzzing code instrumentation. Inserts a
  11477. call to '__sanitizer_cov_trace_cmp1', '__sanitizer_cov_trace_cmp2',
  11478. '__sanitizer_cov_trace_cmp4' or '__sanitizer_cov_trace_cmp8' for
  11479. integral comparison with both operands variable or
  11480. '__sanitizer_cov_trace_const_cmp1',
  11481. '__sanitizer_cov_trace_const_cmp2',
  11482. '__sanitizer_cov_trace_const_cmp4' or
  11483. '__sanitizer_cov_trace_const_cmp8' for integral comparison with one
  11484. operand constant, '__sanitizer_cov_trace_cmpf' or
  11485. '__sanitizer_cov_trace_cmpd' for float or double comparisons and
  11486. '__sanitizer_cov_trace_switch' for switch statements.
  11487. '-fcf-protection=[full|branch|return|none|check]'
  11488. Enable code instrumentation of control-flow transfers to increase
  11489. program security by checking that target addresses of control-flow
  11490. transfer instructions (such as indirect function call, function
  11491. return, indirect jump) are valid. This prevents diverting the flow
  11492. of control to an unexpected target. This is intended to protect
  11493. against such threats as Return-oriented Programming (ROP), and
  11494. similarly call/jmp-oriented programming (COP/JOP).
  11495. The value 'branch' tells the compiler to implement checking of
  11496. validity of control-flow transfer at the point of indirect branch
  11497. instructions, i.e. call/jmp instructions. The value 'return'
  11498. implements checking of validity at the point of returning from a
  11499. function. The value 'full' is an alias for specifying both
  11500. 'branch' and 'return'. The value 'none' turns off instrumentation.
  11501. The value 'check' is used for the final link with link-time
  11502. optimization (LTO). An error is issued if LTO object files are
  11503. compiled with different '-fcf-protection' values. The value
  11504. 'check' is ignored at the compile time.
  11505. The macro '__CET__' is defined when '-fcf-protection' is used. The
  11506. first bit of '__CET__' is set to 1 for the value 'branch' and the
  11507. second bit of '__CET__' is set to 1 for the 'return'.
  11508. You can also use the 'nocf_check' attribute to identify which
  11509. functions and calls should be skipped from instrumentation (*note
  11510. Function Attributes::).
  11511. Currently the x86 GNU/Linux target provides an implementation based
  11512. on Intel Control-flow Enforcement Technology (CET).
  11513. '-fstack-protector'
  11514. Emit extra code to check for buffer overflows, such as stack
  11515. smashing attacks. This is done by adding a guard variable to
  11516. functions with vulnerable objects. This includes functions that
  11517. call 'alloca', and functions with buffers larger than or equal to 8
  11518. bytes. The guards are initialized when a function is entered and
  11519. then checked when the function exits. If a guard check fails, an
  11520. error message is printed and the program exits. Only variables
  11521. that are actually allocated on the stack are considered, optimized
  11522. away variables or variables allocated in registers don't count.
  11523. '-fstack-protector-all'
  11524. Like '-fstack-protector' except that all functions are protected.
  11525. '-fstack-protector-strong'
  11526. Like '-fstack-protector' but includes additional functions to be
  11527. protected -- those that have local array definitions, or have
  11528. references to local frame addresses. Only variables that are
  11529. actually allocated on the stack are considered, optimized away
  11530. variables or variables allocated in registers don't count.
  11531. '-fstack-protector-explicit'
  11532. Like '-fstack-protector' but only protects those functions which
  11533. have the 'stack_protect' attribute.
  11534. '-fstack-check'
  11535. Generate code to verify that you do not go beyond the boundary of
  11536. the stack. You should specify this flag if you are running in an
  11537. environment with multiple threads, but you only rarely need to
  11538. specify it in a single-threaded environment since stack overflow is
  11539. automatically detected on nearly all systems if there is only one
  11540. stack.
  11541. Note that this switch does not actually cause checking to be done;
  11542. the operating system or the language runtime must do that. The
  11543. switch causes generation of code to ensure that they see the stack
  11544. being extended.
  11545. You can additionally specify a string parameter: 'no' means no
  11546. checking, 'generic' means force the use of old-style checking,
  11547. 'specific' means use the best checking method and is equivalent to
  11548. bare '-fstack-check'.
  11549. Old-style checking is a generic mechanism that requires no specific
  11550. target support in the compiler but comes with the following
  11551. drawbacks:
  11552. 1. Modified allocation strategy for large objects: they are
  11553. always allocated dynamically if their size exceeds a fixed
  11554. threshold. Note this may change the semantics of some code.
  11555. 2. Fixed limit on the size of the static frame of functions: when
  11556. it is topped by a particular function, stack checking is not
  11557. reliable and a warning is issued by the compiler.
  11558. 3. Inefficiency: because of both the modified allocation strategy
  11559. and the generic implementation, code performance is hampered.
  11560. Note that old-style stack checking is also the fallback method for
  11561. 'specific' if no target support has been added in the compiler.
  11562. '-fstack-check=' is designed for Ada's needs to detect infinite
  11563. recursion and stack overflows. 'specific' is an excellent choice
  11564. when compiling Ada code. It is not generally sufficient to protect
  11565. against stack-clash attacks. To protect against those you want
  11566. '-fstack-clash-protection'.
  11567. '-fstack-clash-protection'
  11568. Generate code to prevent stack clash style attacks. When this
  11569. option is enabled, the compiler will only allocate one page of
  11570. stack space at a time and each page is accessed immediately after
  11571. allocation. Thus, it prevents allocations from jumping over any
  11572. stack guard page provided by the operating system.
  11573. Most targets do not fully support stack clash protection. However,
  11574. on those targets '-fstack-clash-protection' will protect dynamic
  11575. stack allocations. '-fstack-clash-protection' may also provide
  11576. limited protection for static stack allocations if the target
  11577. supports '-fstack-check=specific'.
  11578. '-fstack-limit-register=REG'
  11579. '-fstack-limit-symbol=SYM'
  11580. '-fno-stack-limit'
  11581. Generate code to ensure that the stack does not grow beyond a
  11582. certain value, either the value of a register or the address of a
  11583. symbol. If a larger stack is required, a signal is raised at run
  11584. time. For most targets, the signal is raised before the stack
  11585. overruns the boundary, so it is possible to catch the signal
  11586. without taking special precautions.
  11587. For instance, if the stack starts at absolute address '0x80000000'
  11588. and grows downwards, you can use the flags
  11589. '-fstack-limit-symbol=__stack_limit' and
  11590. '-Wl,--defsym,__stack_limit=0x7ffe0000' to enforce a stack limit of
  11591. 128KB. Note that this may only work with the GNU linker.
  11592. You can locally override stack limit checking by using the
  11593. 'no_stack_limit' function attribute (*note Function Attributes::).
  11594. '-fsplit-stack'
  11595. Generate code to automatically split the stack before it overflows.
  11596. The resulting program has a discontiguous stack which can only
  11597. overflow if the program is unable to allocate any more memory.
  11598. This is most useful when running threaded programs, as it is no
  11599. longer necessary to calculate a good stack size to use for each
  11600. thread. This is currently only implemented for the x86 targets
  11601. running GNU/Linux.
  11602. When code compiled with '-fsplit-stack' calls code compiled without
  11603. '-fsplit-stack', there may not be much stack space available for
  11604. the latter code to run. If compiling all code, including library
  11605. code, with '-fsplit-stack' is not an option, then the linker can
  11606. fix up these calls so that the code compiled without
  11607. '-fsplit-stack' always has a large stack. Support for this is
  11608. implemented in the gold linker in GNU binutils release 2.21 and
  11609. later.
  11610. '-fvtable-verify=[std|preinit|none]'
  11611. This option is only available when compiling C++ code. It turns on
  11612. (or off, if using '-fvtable-verify=none') the security feature that
  11613. verifies at run time, for every virtual call, that the vtable
  11614. pointer through which the call is made is valid for the type of the
  11615. object, and has not been corrupted or overwritten. If an invalid
  11616. vtable pointer is detected at run time, an error is reported and
  11617. execution of the program is immediately halted.
  11618. This option causes run-time data structures to be built at program
  11619. startup, which are used for verifying the vtable pointers. The
  11620. options 'std' and 'preinit' control the timing of when these data
  11621. structures are built. In both cases the data structures are built
  11622. before execution reaches 'main'. Using '-fvtable-verify=std'
  11623. causes the data structures to be built after shared libraries have
  11624. been loaded and initialized. '-fvtable-verify=preinit' causes them
  11625. to be built before shared libraries have been loaded and
  11626. initialized.
  11627. If this option appears multiple times in the command line with
  11628. different values specified, 'none' takes highest priority over both
  11629. 'std' and 'preinit'; 'preinit' takes priority over 'std'.
  11630. '-fvtv-debug'
  11631. When used in conjunction with '-fvtable-verify=std' or
  11632. '-fvtable-verify=preinit', causes debug versions of the runtime
  11633. functions for the vtable verification feature to be called. This
  11634. flag also causes the compiler to log information about which vtable
  11635. pointers it finds for each class. This information is written to a
  11636. file named 'vtv_set_ptr_data.log' in the directory named by the
  11637. environment variable 'VTV_LOGS_DIR' if that is defined or the
  11638. current working directory otherwise.
  11639. Note: This feature _appends_ data to the log file. If you want a
  11640. fresh log file, be sure to delete any existing one.
  11641. '-fvtv-counts'
  11642. This is a debugging flag. When used in conjunction with
  11643. '-fvtable-verify=std' or '-fvtable-verify=preinit', this causes the
  11644. compiler to keep track of the total number of virtual calls it
  11645. encounters and the number of verifications it inserts. It also
  11646. counts the number of calls to certain run-time library functions
  11647. that it inserts and logs this information for each compilation
  11648. unit. The compiler writes this information to a file named
  11649. 'vtv_count_data.log' in the directory named by the environment
  11650. variable 'VTV_LOGS_DIR' if that is defined or the current working
  11651. directory otherwise. It also counts the size of the vtable pointer
  11652. sets for each class, and writes this information to
  11653. 'vtv_class_set_sizes.log' in the same directory.
  11654. Note: This feature _appends_ data to the log files. To get fresh
  11655. log files, be sure to delete any existing ones.
  11656. '-finstrument-functions'
  11657. Generate instrumentation calls for entry and exit to functions.
  11658. Just after function entry and just before function exit, the
  11659. following profiling functions are called with the address of the
  11660. current function and its call site. (On some platforms,
  11661. '__builtin_return_address' does not work beyond the current
  11662. function, so the call site information may not be available to the
  11663. profiling functions otherwise.)
  11664. void __cyg_profile_func_enter (void *this_fn,
  11665. void *call_site);
  11666. void __cyg_profile_func_exit (void *this_fn,
  11667. void *call_site);
  11668. The first argument is the address of the start of the current
  11669. function, which may be looked up exactly in the symbol table.
  11670. This instrumentation is also done for functions expanded inline in
  11671. other functions. The profiling calls indicate where, conceptually,
  11672. the inline function is entered and exited. This means that
  11673. addressable versions of such functions must be available. If all
  11674. your uses of a function are expanded inline, this may mean an
  11675. additional expansion of code size. If you use 'extern inline' in
  11676. your C code, an addressable version of such functions must be
  11677. provided. (This is normally the case anyway, but if you get lucky
  11678. and the optimizer always expands the functions inline, you might
  11679. have gotten away without providing static copies.)
  11680. A function may be given the attribute 'no_instrument_function', in
  11681. which case this instrumentation is not done. This can be used, for
  11682. example, for the profiling functions listed above, high-priority
  11683. interrupt routines, and any functions from which the profiling
  11684. functions cannot safely be called (perhaps signal handlers, if the
  11685. profiling routines generate output or allocate memory). *Note
  11686. Common Function Attributes::.
  11687. '-finstrument-functions-exclude-file-list=FILE,FILE,...'
  11688. Set the list of functions that are excluded from instrumentation
  11689. (see the description of '-finstrument-functions'). If the file
  11690. that contains a function definition matches with one of FILE, then
  11691. that function is not instrumented. The match is done on
  11692. substrings: if the FILE parameter is a substring of the file name,
  11693. it is considered to be a match.
  11694. For example:
  11695. -finstrument-functions-exclude-file-list=/bits/stl,include/sys
  11696. excludes any inline function defined in files whose pathnames
  11697. contain '/bits/stl' or 'include/sys'.
  11698. If, for some reason, you want to include letter ',' in one of SYM,
  11699. write '\,'. For example,
  11700. '-finstrument-functions-exclude-file-list='\,\,tmp'' (note the
  11701. single quote surrounding the option).
  11702. '-finstrument-functions-exclude-function-list=SYM,SYM,...'
  11703. This is similar to '-finstrument-functions-exclude-file-list', but
  11704. this option sets the list of function names to be excluded from
  11705. instrumentation. The function name to be matched is its
  11706. user-visible name, such as 'vector<int> blah(const vector<int> &)',
  11707. not the internal mangled name (e.g., '_Z4blahRSt6vectorIiSaIiEE').
  11708. The match is done on substrings: if the SYM parameter is a
  11709. substring of the function name, it is considered to be a match.
  11710. For C99 and C++ extended identifiers, the function name must be
  11711. given in UTF-8, not using universal character names.
  11712. '-fpatchable-function-entry=N[,M]'
  11713. Generate N NOPs right at the beginning of each function, with the
  11714. function entry point before the Mth NOP. If M is omitted, it
  11715. defaults to '0' so the function entry points to the address just at
  11716. the first NOP. The NOP instructions reserve extra space which can
  11717. be used to patch in any desired instrumentation at run time,
  11718. provided that the code segment is writable. The amount of space is
  11719. controllable indirectly via the number of NOPs; the NOP instruction
  11720. used corresponds to the instruction emitted by the internal GCC
  11721. back-end interface 'gen_nop'. This behavior is target-specific and
  11722. may also depend on the architecture variant and/or other
  11723. compilation options.
  11724. For run-time identification, the starting addresses of these areas,
  11725. which correspond to their respective function entries minus M, are
  11726. additionally collected in the '__patchable_function_entries'
  11727. section of the resulting binary.
  11728. Note that the value of '__attribute__ ((patchable_function_entry
  11729. (N,M)))' takes precedence over command-line option
  11730. '-fpatchable-function-entry=N,M'. This can be used to increase the
  11731. area size or to remove it completely on a single function. If
  11732. 'N=0', no pad location is recorded.
  11733. The NOP instructions are inserted at--and maybe before, depending
  11734. on M--the function entry address, even before the prologue.
  11735. The maximum value of N and M is 65535.
  11736. 
  11737. File: gcc.info, Node: Preprocessor Options, Next: Assembler Options, Prev: Instrumentation Options, Up: Invoking GCC
  11738. 3.13 Options Controlling the Preprocessor
  11739. =========================================
  11740. These options control the C preprocessor, which is run on each C source
  11741. file before actual compilation.
  11742. If you use the '-E' option, nothing is done except preprocessing. Some
  11743. of these options make sense only together with '-E' because they cause
  11744. the preprocessor output to be unsuitable for actual compilation.
  11745. In addition to the options listed here, there are a number of options
  11746. to control search paths for include files documented in *note Directory
  11747. Options::. Options to control preprocessor diagnostics are listed in
  11748. *note Warning Options::.
  11749. '-D NAME'
  11750. Predefine NAME as a macro, with definition '1'.
  11751. '-D NAME=DEFINITION'
  11752. The contents of DEFINITION are tokenized and processed as if they
  11753. appeared during translation phase three in a '#define' directive.
  11754. In particular, the definition is truncated by embedded newline
  11755. characters.
  11756. If you are invoking the preprocessor from a shell or shell-like
  11757. program you may need to use the shell's quoting syntax to protect
  11758. characters such as spaces that have a meaning in the shell syntax.
  11759. If you wish to define a function-like macro on the command line,
  11760. write its argument list with surrounding parentheses before the
  11761. equals sign (if any). Parentheses are meaningful to most shells,
  11762. so you should quote the option. With 'sh' and 'csh',
  11763. '-D'NAME(ARGS...)=DEFINITION'' works.
  11764. '-D' and '-U' options are processed in the order they are given on
  11765. the command line. All '-imacros FILE' and '-include FILE' options
  11766. are processed after all '-D' and '-U' options.
  11767. '-U NAME'
  11768. Cancel any previous definition of NAME, either built in or provided
  11769. with a '-D' option.
  11770. '-include FILE'
  11771. Process FILE as if '#include "file"' appeared as the first line of
  11772. the primary source file. However, the first directory searched for
  11773. FILE is the preprocessor's working directory _instead of_ the
  11774. directory containing the main source file. If not found there, it
  11775. is searched for in the remainder of the '#include "..."' search
  11776. chain as normal.
  11777. If multiple '-include' options are given, the files are included in
  11778. the order they appear on the command line.
  11779. '-imacros FILE'
  11780. Exactly like '-include', except that any output produced by
  11781. scanning FILE is thrown away. Macros it defines remain defined.
  11782. This allows you to acquire all the macros from a header without
  11783. also processing its declarations.
  11784. All files specified by '-imacros' are processed before all files
  11785. specified by '-include'.
  11786. '-undef'
  11787. Do not predefine any system-specific or GCC-specific macros. The
  11788. standard predefined macros remain defined.
  11789. '-pthread'
  11790. Define additional macros required for using the POSIX threads
  11791. library. You should use this option consistently for both
  11792. compilation and linking. This option is supported on GNU/Linux
  11793. targets, most other Unix derivatives, and also on x86 Cygwin and
  11794. MinGW targets.
  11795. '-M'
  11796. Instead of outputting the result of preprocessing, output a rule
  11797. suitable for 'make' describing the dependencies of the main source
  11798. file. The preprocessor outputs one 'make' rule containing the
  11799. object file name for that source file, a colon, and the names of
  11800. all the included files, including those coming from '-include' or
  11801. '-imacros' command-line options.
  11802. Unless specified explicitly (with '-MT' or '-MQ'), the object file
  11803. name consists of the name of the source file with any suffix
  11804. replaced with object file suffix and with any leading directory
  11805. parts removed. If there are many included files then the rule is
  11806. split into several lines using '\'-newline. The rule has no
  11807. commands.
  11808. This option does not suppress the preprocessor's debug output, such
  11809. as '-dM'. To avoid mixing such debug output with the dependency
  11810. rules you should explicitly specify the dependency output file with
  11811. '-MF', or use an environment variable like 'DEPENDENCIES_OUTPUT'
  11812. (*note Environment Variables::). Debug output is still sent to the
  11813. regular output stream as normal.
  11814. Passing '-M' to the driver implies '-E', and suppresses warnings
  11815. with an implicit '-w'.
  11816. '-MM'
  11817. Like '-M' but do not mention header files that are found in system
  11818. header directories, nor header files that are included, directly or
  11819. indirectly, from such a header.
  11820. This implies that the choice of angle brackets or double quotes in
  11821. an '#include' directive does not in itself determine whether that
  11822. header appears in '-MM' dependency output.
  11823. '-MF FILE'
  11824. When used with '-M' or '-MM', specifies a file to write the
  11825. dependencies to. If no '-MF' switch is given the preprocessor
  11826. sends the rules to the same place it would send preprocessed
  11827. output.
  11828. When used with the driver options '-MD' or '-MMD', '-MF' overrides
  11829. the default dependency output file.
  11830. If FILE is '-', then the dependencies are written to 'stdout'.
  11831. '-MG'
  11832. In conjunction with an option such as '-M' requesting dependency
  11833. generation, '-MG' assumes missing header files are generated files
  11834. and adds them to the dependency list without raising an error. The
  11835. dependency filename is taken directly from the '#include' directive
  11836. without prepending any path. '-MG' also suppresses preprocessed
  11837. output, as a missing header file renders this useless.
  11838. This feature is used in automatic updating of makefiles.
  11839. '-Mno-modules'
  11840. Disable dependency generation for compiled module interfaces.
  11841. '-MP'
  11842. This option instructs CPP to add a phony target for each dependency
  11843. other than the main file, causing each to depend on nothing. These
  11844. dummy rules work around errors 'make' gives if you remove header
  11845. files without updating the 'Makefile' to match.
  11846. This is typical output:
  11847. test.o: test.c test.h
  11848. test.h:
  11849. '-MT TARGET'
  11850. Change the target of the rule emitted by dependency generation. By
  11851. default CPP takes the name of the main input file, deletes any
  11852. directory components and any file suffix such as '.c', and appends
  11853. the platform's usual object suffix. The result is the target.
  11854. An '-MT' option sets the target to be exactly the string you
  11855. specify. If you want multiple targets, you can specify them as a
  11856. single argument to '-MT', or use multiple '-MT' options.
  11857. For example, '-MT '$(objpfx)foo.o'' might give
  11858. $(objpfx)foo.o: foo.c
  11859. '-MQ TARGET'
  11860. Same as '-MT', but it quotes any characters which are special to
  11861. Make. '-MQ '$(objpfx)foo.o'' gives
  11862. $$(objpfx)foo.o: foo.c
  11863. The default target is automatically quoted, as if it were given
  11864. with '-MQ'.
  11865. '-MD'
  11866. '-MD' is equivalent to '-M -MF FILE', except that '-E' is not
  11867. implied. The driver determines FILE based on whether an '-o'
  11868. option is given. If it is, the driver uses its argument but with a
  11869. suffix of '.d', otherwise it takes the name of the input file,
  11870. removes any directory components and suffix, and applies a '.d'
  11871. suffix.
  11872. If '-MD' is used in conjunction with '-E', any '-o' switch is
  11873. understood to specify the dependency output file (*note -MF:
  11874. dashMF.), but if used without '-E', each '-o' is understood to
  11875. specify a target object file.
  11876. Since '-E' is not implied, '-MD' can be used to generate a
  11877. dependency output file as a side effect of the compilation process.
  11878. '-MMD'
  11879. Like '-MD' except mention only user header files, not system header
  11880. files.
  11881. '-fpreprocessed'
  11882. Indicate to the preprocessor that the input file has already been
  11883. preprocessed. This suppresses things like macro expansion,
  11884. trigraph conversion, escaped newline splicing, and processing of
  11885. most directives. The preprocessor still recognizes and removes
  11886. comments, so that you can pass a file preprocessed with '-C' to the
  11887. compiler without problems. In this mode the integrated
  11888. preprocessor is little more than a tokenizer for the front ends.
  11889. '-fpreprocessed' is implicit if the input file has one of the
  11890. extensions '.i', '.ii' or '.mi'. These are the extensions that GCC
  11891. uses for preprocessed files created by '-save-temps'.
  11892. '-fdirectives-only'
  11893. When preprocessing, handle directives, but do not expand macros.
  11894. The option's behavior depends on the '-E' and '-fpreprocessed'
  11895. options.
  11896. With '-E', preprocessing is limited to the handling of directives
  11897. such as '#define', '#ifdef', and '#error'. Other preprocessor
  11898. operations, such as macro expansion and trigraph conversion are not
  11899. performed. In addition, the '-dD' option is implicitly enabled.
  11900. With '-fpreprocessed', predefinition of command line and most
  11901. builtin macros is disabled. Macros such as '__LINE__', which are
  11902. contextually dependent, are handled normally. This enables
  11903. compilation of files previously preprocessed with '-E
  11904. -fdirectives-only'.
  11905. With both '-E' and '-fpreprocessed', the rules for '-fpreprocessed'
  11906. take precedence. This enables full preprocessing of files
  11907. previously preprocessed with '-E -fdirectives-only'.
  11908. '-fdollars-in-identifiers'
  11909. Accept '$' in identifiers.
  11910. '-fextended-identifiers'
  11911. Accept universal character names and extended characters in
  11912. identifiers. This option is enabled by default for C99 (and later
  11913. C standard versions) and C++.
  11914. '-fno-canonical-system-headers'
  11915. When preprocessing, do not shorten system header paths with
  11916. canonicalization.
  11917. '-fmax-include-depth=DEPTH'
  11918. Set the maximum depth of the nested #include. The default is 200.
  11919. '-ftabstop=WIDTH'
  11920. Set the distance between tab stops. This helps the preprocessor
  11921. report correct column numbers in warnings or errors, even if tabs
  11922. appear on the line. If the value is less than 1 or greater than
  11923. 100, the option is ignored. The default is 8.
  11924. '-ftrack-macro-expansion[=LEVEL]'
  11925. Track locations of tokens across macro expansions. This allows the
  11926. compiler to emit diagnostic about the current macro expansion stack
  11927. when a compilation error occurs in a macro expansion. Using this
  11928. option makes the preprocessor and the compiler consume more memory.
  11929. The LEVEL parameter can be used to choose the level of precision of
  11930. token location tracking thus decreasing the memory consumption if
  11931. necessary. Value '0' of LEVEL de-activates this option. Value '1'
  11932. tracks tokens locations in a degraded mode for the sake of minimal
  11933. memory overhead. In this mode all tokens resulting from the
  11934. expansion of an argument of a function-like macro have the same
  11935. location. Value '2' tracks tokens locations completely. This
  11936. value is the most memory hungry. When this option is given no
  11937. argument, the default parameter value is '2'.
  11938. Note that '-ftrack-macro-expansion=2' is activated by default.
  11939. '-fmacro-prefix-map=OLD=NEW'
  11940. When preprocessing files residing in directory 'OLD', expand the
  11941. '__FILE__' and '__BASE_FILE__' macros as if the files resided in
  11942. directory 'NEW' instead. This can be used to change an absolute
  11943. path to a relative path by using '.' for NEW which can result in
  11944. more reproducible builds that are location independent. This
  11945. option also affects '__builtin_FILE()' during compilation. See
  11946. also '-ffile-prefix-map'.
  11947. '-fexec-charset=CHARSET'
  11948. Set the execution character set, used for string and character
  11949. constants. The default is UTF-8. CHARSET can be any encoding
  11950. supported by the system's 'iconv' library routine.
  11951. '-fwide-exec-charset=CHARSET'
  11952. Set the wide execution character set, used for wide string and
  11953. character constants. The default is UTF-32 or UTF-16, whichever
  11954. corresponds to the width of 'wchar_t'. As with '-fexec-charset',
  11955. CHARSET can be any encoding supported by the system's 'iconv'
  11956. library routine; however, you will have problems with encodings
  11957. that do not fit exactly in 'wchar_t'.
  11958. '-finput-charset=CHARSET'
  11959. Set the input character set, used for translation from the
  11960. character set of the input file to the source character set used by
  11961. GCC. If the locale does not specify, or GCC cannot get this
  11962. information from the locale, the default is UTF-8. This can be
  11963. overridden by either the locale or this command-line option.
  11964. Currently the command-line option takes precedence if there's a
  11965. conflict. CHARSET can be any encoding supported by the system's
  11966. 'iconv' library routine.
  11967. '-fpch-deps'
  11968. When using precompiled headers (*note Precompiled Headers::), this
  11969. flag causes the dependency-output flags to also list the files from
  11970. the precompiled header's dependencies. If not specified, only the
  11971. precompiled header are listed and not the files that were used to
  11972. create it, because those files are not consulted when a precompiled
  11973. header is used.
  11974. '-fpch-preprocess'
  11975. This option allows use of a precompiled header (*note Precompiled
  11976. Headers::) together with '-E'. It inserts a special '#pragma',
  11977. '#pragma GCC pch_preprocess "FILENAME"' in the output to mark the
  11978. place where the precompiled header was found, and its FILENAME.
  11979. When '-fpreprocessed' is in use, GCC recognizes this '#pragma' and
  11980. loads the PCH.
  11981. This option is off by default, because the resulting preprocessed
  11982. output is only really suitable as input to GCC. It is switched on
  11983. by '-save-temps'.
  11984. You should not write this '#pragma' in your own code, but it is
  11985. safe to edit the filename if the PCH file is available in a
  11986. different location. The filename may be absolute or it may be
  11987. relative to GCC's current directory.
  11988. '-fworking-directory'
  11989. Enable generation of linemarkers in the preprocessor output that
  11990. let the compiler know the current working directory at the time of
  11991. preprocessing. When this option is enabled, the preprocessor
  11992. emits, after the initial linemarker, a second linemarker with the
  11993. current working directory followed by two slashes. GCC uses this
  11994. directory, when it's present in the preprocessed input, as the
  11995. directory emitted as the current working directory in some
  11996. debugging information formats. This option is implicitly enabled
  11997. if debugging information is enabled, but this can be inhibited with
  11998. the negated form '-fno-working-directory'. If the '-P' flag is
  11999. present in the command line, this option has no effect, since no
  12000. '#line' directives are emitted whatsoever.
  12001. '-A PREDICATE=ANSWER'
  12002. Make an assertion with the predicate PREDICATE and answer ANSWER.
  12003. This form is preferred to the older form '-A PREDICATE(ANSWER)',
  12004. which is still supported, because it does not use shell special
  12005. characters.
  12006. '-A -PREDICATE=ANSWER'
  12007. Cancel an assertion with the predicate PREDICATE and answer ANSWER.
  12008. '-C'
  12009. Do not discard comments. All comments are passed through to the
  12010. output file, except for comments in processed directives, which are
  12011. deleted along with the directive.
  12012. You should be prepared for side effects when using '-C'; it causes
  12013. the preprocessor to treat comments as tokens in their own right.
  12014. For example, comments appearing at the start of what would be a
  12015. directive line have the effect of turning that line into an
  12016. ordinary source line, since the first token on the line is no
  12017. longer a '#'.
  12018. '-CC'
  12019. Do not discard comments, including during macro expansion. This is
  12020. like '-C', except that comments contained within macros are also
  12021. passed through to the output file where the macro is expanded.
  12022. In addition to the side effects of the '-C' option, the '-CC'
  12023. option causes all C++-style comments inside a macro to be converted
  12024. to C-style comments. This is to prevent later use of that macro
  12025. from inadvertently commenting out the remainder of the source line.
  12026. The '-CC' option is generally used to support lint comments.
  12027. '-P'
  12028. Inhibit generation of linemarkers in the output from the
  12029. preprocessor. This might be useful when running the preprocessor
  12030. on something that is not C code, and will be sent to a program
  12031. which might be confused by the linemarkers.
  12032. '-traditional'
  12033. '-traditional-cpp'
  12034. Try to imitate the behavior of pre-standard C preprocessors, as
  12035. opposed to ISO C preprocessors. See the GNU CPP manual for
  12036. details.
  12037. Note that GCC does not otherwise attempt to emulate a pre-standard
  12038. C compiler, and these options are only supported with the '-E'
  12039. switch, or when invoking CPP explicitly.
  12040. '-trigraphs'
  12041. Support ISO C trigraphs. These are three-character sequences, all
  12042. starting with '??', that are defined by ISO C to stand for single
  12043. characters. For example, '??/' stands for '\', so ''??/n'' is a
  12044. character constant for a newline.
  12045. The nine trigraphs and their replacements are
  12046. Trigraph: ??( ??) ??< ??> ??= ??/ ??' ??! ??-
  12047. Replacement: [ ] { } # \ ^ | ~
  12048. By default, GCC ignores trigraphs, but in standard-conforming modes
  12049. it converts them. See the '-std' and '-ansi' options.
  12050. '-remap'
  12051. Enable special code to work around file systems which only permit
  12052. very short file names, such as MS-DOS.
  12053. '-H'
  12054. Print the name of each header file used, in addition to other
  12055. normal activities. Each name is indented to show how deep in the
  12056. '#include' stack it is. Precompiled header files are also printed,
  12057. even if they are found to be invalid; an invalid precompiled header
  12058. file is printed with '...x' and a valid one with '...!' .
  12059. '-dLETTERS'
  12060. Says to make debugging dumps during compilation as specified by
  12061. LETTERS. The flags documented here are those relevant to the
  12062. preprocessor. Other LETTERS are interpreted by the compiler
  12063. proper, or reserved for future versions of GCC, and so are silently
  12064. ignored. If you specify LETTERS whose behavior conflicts, the
  12065. result is undefined. *Note Developer Options::, for more
  12066. information.
  12067. '-dM'
  12068. Instead of the normal output, generate a list of '#define'
  12069. directives for all the macros defined during the execution of
  12070. the preprocessor, including predefined macros. This gives you
  12071. a way of finding out what is predefined in your version of the
  12072. preprocessor. Assuming you have no file 'foo.h', the command
  12073. touch foo.h; cpp -dM foo.h
  12074. shows all the predefined macros.
  12075. If you use '-dM' without the '-E' option, '-dM' is interpreted
  12076. as a synonym for '-fdump-rtl-mach'. *Note (gcc)Developer
  12077. Options::.
  12078. '-dD'
  12079. Like '-dM' except in two respects: it does _not_ include the
  12080. predefined macros, and it outputs _both_ the '#define'
  12081. directives and the result of preprocessing. Both kinds of
  12082. output go to the standard output file.
  12083. '-dN'
  12084. Like '-dD', but emit only the macro names, not their
  12085. expansions.
  12086. '-dI'
  12087. Output '#include' directives in addition to the result of
  12088. preprocessing.
  12089. '-dU'
  12090. Like '-dD' except that only macros that are expanded, or whose
  12091. definedness is tested in preprocessor directives, are output;
  12092. the output is delayed until the use or test of the macro; and
  12093. '#undef' directives are also output for macros tested but
  12094. undefined at the time.
  12095. '-fdebug-cpp'
  12096. This option is only useful for debugging GCC. When used from CPP or
  12097. with '-E', it dumps debugging information about location maps.
  12098. Every token in the output is preceded by the dump of the map its
  12099. location belongs to.
  12100. When used from GCC without '-E', this option has no effect.
  12101. '-Wp,OPTION'
  12102. You can use '-Wp,OPTION' to bypass the compiler driver and pass
  12103. OPTION directly through to the preprocessor. If OPTION contains
  12104. commas, it is split into multiple options at the commas. However,
  12105. many options are modified, translated or interpreted by the
  12106. compiler driver before being passed to the preprocessor, and '-Wp'
  12107. forcibly bypasses this phase. The preprocessor's direct interface
  12108. is undocumented and subject to change, so whenever possible you
  12109. should avoid using '-Wp' and let the driver handle the options
  12110. instead.
  12111. '-Xpreprocessor OPTION'
  12112. Pass OPTION as an option to the preprocessor. You can use this to
  12113. supply system-specific preprocessor options that GCC does not
  12114. recognize.
  12115. If you want to pass an option that takes an argument, you must use
  12116. '-Xpreprocessor' twice, once for the option and once for the
  12117. argument.
  12118. '-no-integrated-cpp'
  12119. Perform preprocessing as a separate pass before compilation. By
  12120. default, GCC performs preprocessing as an integrated part of input
  12121. tokenization and parsing. If this option is provided, the
  12122. appropriate language front end ('cc1', 'cc1plus', or 'cc1obj' for
  12123. C, C++, and Objective-C, respectively) is instead invoked twice,
  12124. once for preprocessing only and once for actual compilation of the
  12125. preprocessed input. This option may be useful in conjunction with
  12126. the '-B' or '-wrapper' options to specify an alternate preprocessor
  12127. or perform additional processing of the program source between
  12128. normal preprocessing and compilation.
  12129. '-flarge-source-files'
  12130. Adjust GCC to expect large source files, at the expense of slower
  12131. compilation and higher memory usage.
  12132. Specifically, GCC normally tracks both column numbers and line
  12133. numbers within source files and it normally prints both of these
  12134. numbers in diagnostics. However, once it has processed a certain
  12135. number of source lines, it stops tracking column numbers and only
  12136. tracks line numbers. This means that diagnostics for later lines
  12137. do not include column numbers. It also means that options like
  12138. '-Wmisleading-indentation' cease to work at that point, although
  12139. the compiler prints a note if this happens. Passing
  12140. '-flarge-source-files' significantly increases the number of source
  12141. lines that GCC can process before it stops tracking columns.
  12142. 
  12143. File: gcc.info, Node: Assembler Options, Next: Link Options, Prev: Preprocessor Options, Up: Invoking GCC
  12144. 3.14 Passing Options to the Assembler
  12145. =====================================
  12146. You can pass options to the assembler.
  12147. '-Wa,OPTION'
  12148. Pass OPTION as an option to the assembler. If OPTION contains
  12149. commas, it is split into multiple options at the commas.
  12150. '-Xassembler OPTION'
  12151. Pass OPTION as an option to the assembler. You can use this to
  12152. supply system-specific assembler options that GCC does not
  12153. recognize.
  12154. If you want to pass an option that takes an argument, you must use
  12155. '-Xassembler' twice, once for the option and once for the argument.
  12156. 
  12157. File: gcc.info, Node: Link Options, Next: Directory Options, Prev: Assembler Options, Up: Invoking GCC
  12158. 3.15 Options for Linking
  12159. ========================
  12160. These options come into play when the compiler links object files into
  12161. an executable output file. They are meaningless if the compiler is not
  12162. doing a link step.
  12163. 'OBJECT-FILE-NAME'
  12164. A file name that does not end in a special recognized suffix is
  12165. considered to name an object file or library. (Object files are
  12166. distinguished from libraries by the linker according to the file
  12167. contents.) If linking is done, these object files are used as
  12168. input to the linker.
  12169. '-c'
  12170. '-S'
  12171. '-E'
  12172. If any of these options is used, then the linker is not run, and
  12173. object file names should not be used as arguments. *Note Overall
  12174. Options::.
  12175. '-flinker-output=TYPE'
  12176. This option controls code generation of the link-time optimizer.
  12177. By default the linker output is automatically determined by the
  12178. linker plugin. For debugging the compiler and if incremental
  12179. linking with a non-LTO object file is desired, it may be useful to
  12180. control the type manually.
  12181. If TYPE is 'exec', code generation produces a static binary. In
  12182. this case '-fpic' and '-fpie' are both disabled.
  12183. If TYPE is 'dyn', code generation produces a shared library. In
  12184. this case '-fpic' or '-fPIC' is preserved, but not enabled
  12185. automatically. This allows to build shared libraries without
  12186. position-independent code on architectures where this is possible,
  12187. i.e. on x86.
  12188. If TYPE is 'pie', code generation produces an '-fpie' executable.
  12189. This results in similar optimizations as 'exec' except that '-fpie'
  12190. is not disabled if specified at compilation time.
  12191. If TYPE is 'rel', the compiler assumes that incremental linking is
  12192. done. The sections containing intermediate code for link-time
  12193. optimization are merged, pre-optimized, and output to the resulting
  12194. object file. In addition, if '-ffat-lto-objects' is specified,
  12195. binary code is produced for future non-LTO linking. The object
  12196. file produced by incremental linking is smaller than a static
  12197. library produced from the same object files. At link time the
  12198. result of incremental linking also loads faster than a static
  12199. library assuming that the majority of objects in the library are
  12200. used.
  12201. Finally 'nolto-rel' configures the compiler for incremental linking
  12202. where code generation is forced, a final binary is produced, and
  12203. the intermediate code for later link-time optimization is stripped.
  12204. When multiple object files are linked together the resulting code
  12205. is better optimized than with link-time optimizations disabled (for
  12206. example, cross-module inlining happens), but most of benefits of
  12207. whole program optimizations are lost.
  12208. During the incremental link (by '-r') the linker plugin defaults to
  12209. 'rel'. With current interfaces to GNU Binutils it is however not
  12210. possible to incrementally link LTO objects and non-LTO objects into
  12211. a single mixed object file. If any of object files in incremental
  12212. link cannot be used for link-time optimization, the linker plugin
  12213. issues a warning and uses 'nolto-rel'. To maintain whole program
  12214. optimization, it is recommended to link such objects into static
  12215. library instead. Alternatively it is possible to use H.J. Lu's
  12216. binutils with support for mixed objects.
  12217. '-fuse-ld=bfd'
  12218. Use the 'bfd' linker instead of the default linker.
  12219. '-fuse-ld=gold'
  12220. Use the 'gold' linker instead of the default linker.
  12221. '-fuse-ld=lld'
  12222. Use the LLVM 'lld' linker instead of the default linker.
  12223. '-lLIBRARY'
  12224. '-l LIBRARY'
  12225. Search the library named LIBRARY when linking. (The second
  12226. alternative with the library as a separate argument is only for
  12227. POSIX compliance and is not recommended.)
  12228. The '-l' option is passed directly to the linker by GCC. Refer to
  12229. your linker documentation for exact details. The general
  12230. description below applies to the GNU linker.
  12231. The linker searches a standard list of directories for the library.
  12232. The directories searched include several standard system
  12233. directories plus any that you specify with '-L'.
  12234. Static libraries are archives of object files, and have file names
  12235. like 'libLIBRARY.a'. Some targets also support shared libraries,
  12236. which typically have names like 'libLIBRARY.so'. If both static
  12237. and shared libraries are found, the linker gives preference to
  12238. linking with the shared library unless the '-static' option is
  12239. used.
  12240. It makes a difference where in the command you write this option;
  12241. the linker searches and processes libraries and object files in the
  12242. order they are specified. Thus, 'foo.o -lz bar.o' searches library
  12243. 'z' after file 'foo.o' but before 'bar.o'. If 'bar.o' refers to
  12244. functions in 'z', those functions may not be loaded.
  12245. '-lobjc'
  12246. You need this special case of the '-l' option in order to link an
  12247. Objective-C or Objective-C++ program.
  12248. '-nostartfiles'
  12249. Do not use the standard system startup files when linking. The
  12250. standard system libraries are used normally, unless '-nostdlib',
  12251. '-nolibc', or '-nodefaultlibs' is used.
  12252. '-nodefaultlibs'
  12253. Do not use the standard system libraries when linking. Only the
  12254. libraries you specify are passed to the linker, and options
  12255. specifying linkage of the system libraries, such as
  12256. '-static-libgcc' or '-shared-libgcc', are ignored. The standard
  12257. startup files are used normally, unless '-nostartfiles' is used.
  12258. The compiler may generate calls to 'memcmp', 'memset', 'memcpy' and
  12259. 'memmove'. These entries are usually resolved by entries in libc.
  12260. These entry points should be supplied through some other mechanism
  12261. when this option is specified.
  12262. '-nolibc'
  12263. Do not use the C library or system libraries tightly coupled with
  12264. it when linking. Still link with the startup files, 'libgcc' or
  12265. toolchain provided language support libraries such as 'libgnat',
  12266. 'libgfortran' or 'libstdc++' unless options preventing their
  12267. inclusion are used as well. This typically removes '-lc' from the
  12268. link command line, as well as system libraries that normally go
  12269. with it and become meaningless when absence of a C library is
  12270. assumed, for example '-lpthread' or '-lm' in some configurations.
  12271. This is intended for bare-board targets when there is indeed no C
  12272. library available.
  12273. '-nostdlib'
  12274. Do not use the standard system startup files or libraries when
  12275. linking. No startup files and only the libraries you specify are
  12276. passed to the linker, and options specifying linkage of the system
  12277. libraries, such as '-static-libgcc' or '-shared-libgcc', are
  12278. ignored.
  12279. The compiler may generate calls to 'memcmp', 'memset', 'memcpy' and
  12280. 'memmove'. These entries are usually resolved by entries in libc.
  12281. These entry points should be supplied through some other mechanism
  12282. when this option is specified.
  12283. One of the standard libraries bypassed by '-nostdlib' and
  12284. '-nodefaultlibs' is 'libgcc.a', a library of internal subroutines
  12285. which GCC uses to overcome shortcomings of particular machines, or
  12286. special needs for some languages. (*Note Interfacing to GCC
  12287. Output: (gccint)Interface, for more discussion of 'libgcc.a'.) In
  12288. most cases, you need 'libgcc.a' even when you want to avoid other
  12289. standard libraries. In other words, when you specify '-nostdlib'
  12290. or '-nodefaultlibs' you should usually specify '-lgcc' as well.
  12291. This ensures that you have no unresolved references to internal GCC
  12292. library subroutines. (An example of such an internal subroutine is
  12293. '__main', used to ensure C++ constructors are called; *note
  12294. 'collect2': (gccint)Collect2.)
  12295. '-e ENTRY'
  12296. '--entry=ENTRY'
  12297. Specify that the program entry point is ENTRY. The argument is
  12298. interpreted by the linker; the GNU linker accepts either a symbol
  12299. name or an address.
  12300. '-pie'
  12301. Produce a dynamically linked position independent executable on
  12302. targets that support it. For predictable results, you must also
  12303. specify the same set of options used for compilation ('-fpie',
  12304. '-fPIE', or model suboptions) when you specify this linker option.
  12305. '-no-pie'
  12306. Don't produce a dynamically linked position independent executable.
  12307. '-static-pie'
  12308. Produce a static position independent executable on targets that
  12309. support it. A static position independent executable is similar to
  12310. a static executable, but can be loaded at any address without a
  12311. dynamic linker. For predictable results, you must also specify the
  12312. same set of options used for compilation ('-fpie', '-fPIE', or
  12313. model suboptions) when you specify this linker option.
  12314. '-pthread'
  12315. Link with the POSIX threads library. This option is supported on
  12316. GNU/Linux targets, most other Unix derivatives, and also on x86
  12317. Cygwin and MinGW targets. On some targets this option also sets
  12318. flags for the preprocessor, so it should be used consistently for
  12319. both compilation and linking.
  12320. '-r'
  12321. Produce a relocatable object as output. This is also known as
  12322. partial linking.
  12323. '-rdynamic'
  12324. Pass the flag '-export-dynamic' to the ELF linker, on targets that
  12325. support it. This instructs the linker to add all symbols, not only
  12326. used ones, to the dynamic symbol table. This option is needed for
  12327. some uses of 'dlopen' or to allow obtaining backtraces from within
  12328. a program.
  12329. '-s'
  12330. Remove all symbol table and relocation information from the
  12331. executable.
  12332. '-static'
  12333. On systems that support dynamic linking, this overrides '-pie' and
  12334. prevents linking with the shared libraries. On other systems, this
  12335. option has no effect.
  12336. '-shared'
  12337. Produce a shared object which can then be linked with other objects
  12338. to form an executable. Not all systems support this option. For
  12339. predictable results, you must also specify the same set of options
  12340. used for compilation ('-fpic', '-fPIC', or model suboptions) when
  12341. you specify this linker option.(1)
  12342. '-shared-libgcc'
  12343. '-static-libgcc'
  12344. On systems that provide 'libgcc' as a shared library, these options
  12345. force the use of either the shared or static version, respectively.
  12346. If no shared version of 'libgcc' was built when the compiler was
  12347. configured, these options have no effect.
  12348. There are several situations in which an application should use the
  12349. shared 'libgcc' instead of the static version. The most common of
  12350. these is when the application wishes to throw and catch exceptions
  12351. across different shared libraries. In that case, each of the
  12352. libraries as well as the application itself should use the shared
  12353. 'libgcc'.
  12354. Therefore, the G++ driver automatically adds '-shared-libgcc'
  12355. whenever you build a shared library or a main executable, because
  12356. C++ programs typically use exceptions, so this is the right thing
  12357. to do.
  12358. If, instead, you use the GCC driver to create shared libraries, you
  12359. may find that they are not always linked with the shared 'libgcc'.
  12360. If GCC finds, at its configuration time, that you have a non-GNU
  12361. linker or a GNU linker that does not support option
  12362. '--eh-frame-hdr', it links the shared version of 'libgcc' into
  12363. shared libraries by default. Otherwise, it takes advantage of the
  12364. linker and optimizes away the linking with the shared version of
  12365. 'libgcc', linking with the static version of libgcc by default.
  12366. This allows exceptions to propagate through such shared libraries,
  12367. without incurring relocation costs at library load time.
  12368. However, if a library or main executable is supposed to throw or
  12369. catch exceptions, you must link it using the G++ driver, or using
  12370. the option '-shared-libgcc', such that it is linked with the shared
  12371. 'libgcc'.
  12372. '-static-libasan'
  12373. When the '-fsanitize=address' option is used to link a program, the
  12374. GCC driver automatically links against 'libasan'. If 'libasan' is
  12375. available as a shared library, and the '-static' option is not
  12376. used, then this links against the shared version of 'libasan'. The
  12377. '-static-libasan' option directs the GCC driver to link 'libasan'
  12378. statically, without necessarily linking other libraries statically.
  12379. '-static-libtsan'
  12380. When the '-fsanitize=thread' option is used to link a program, the
  12381. GCC driver automatically links against 'libtsan'. If 'libtsan' is
  12382. available as a shared library, and the '-static' option is not
  12383. used, then this links against the shared version of 'libtsan'. The
  12384. '-static-libtsan' option directs the GCC driver to link 'libtsan'
  12385. statically, without necessarily linking other libraries statically.
  12386. '-static-liblsan'
  12387. When the '-fsanitize=leak' option is used to link a program, the
  12388. GCC driver automatically links against 'liblsan'. If 'liblsan' is
  12389. available as a shared library, and the '-static' option is not
  12390. used, then this links against the shared version of 'liblsan'. The
  12391. '-static-liblsan' option directs the GCC driver to link 'liblsan'
  12392. statically, without necessarily linking other libraries statically.
  12393. '-static-libubsan'
  12394. When the '-fsanitize=undefined' option is used to link a program,
  12395. the GCC driver automatically links against 'libubsan'. If
  12396. 'libubsan' is available as a shared library, and the '-static'
  12397. option is not used, then this links against the shared version of
  12398. 'libubsan'. The '-static-libubsan' option directs the GCC driver
  12399. to link 'libubsan' statically, without necessarily linking other
  12400. libraries statically.
  12401. '-static-libstdc++'
  12402. When the 'g++' program is used to link a C++ program, it normally
  12403. automatically links against 'libstdc++'. If 'libstdc++' is
  12404. available as a shared library, and the '-static' option is not
  12405. used, then this links against the shared version of 'libstdc++'.
  12406. That is normally fine. However, it is sometimes useful to freeze
  12407. the version of 'libstdc++' used by the program without going all
  12408. the way to a fully static link. The '-static-libstdc++' option
  12409. directs the 'g++' driver to link 'libstdc++' statically, without
  12410. necessarily linking other libraries statically.
  12411. '-symbolic'
  12412. Bind references to global symbols when building a shared object.
  12413. Warn about any unresolved references (unless overridden by the link
  12414. editor option '-Xlinker -z -Xlinker defs'). Only a few systems
  12415. support this option.
  12416. '-T SCRIPT'
  12417. Use SCRIPT as the linker script. This option is supported by most
  12418. systems using the GNU linker. On some targets, such as bare-board
  12419. targets without an operating system, the '-T' option may be
  12420. required when linking to avoid references to undefined symbols.
  12421. '-Xlinker OPTION'
  12422. Pass OPTION as an option to the linker. You can use this to supply
  12423. system-specific linker options that GCC does not recognize.
  12424. If you want to pass an option that takes a separate argument, you
  12425. must use '-Xlinker' twice, once for the option and once for the
  12426. argument. For example, to pass '-assert definitions', you must
  12427. write '-Xlinker -assert -Xlinker definitions'. It does not work to
  12428. write '-Xlinker "-assert definitions"', because this passes the
  12429. entire string as a single argument, which is not what the linker
  12430. expects.
  12431. When using the GNU linker, it is usually more convenient to pass
  12432. arguments to linker options using the 'OPTION=VALUE' syntax than as
  12433. separate arguments. For example, you can specify '-Xlinker
  12434. -Map=output.map' rather than '-Xlinker -Map -Xlinker output.map'.
  12435. Other linkers may not support this syntax for command-line options.
  12436. '-Wl,OPTION'
  12437. Pass OPTION as an option to the linker. If OPTION contains commas,
  12438. it is split into multiple options at the commas. You can use this
  12439. syntax to pass an argument to the option. For example,
  12440. '-Wl,-Map,output.map' passes '-Map output.map' to the linker. When
  12441. using the GNU linker, you can also get the same effect with
  12442. '-Wl,-Map=output.map'.
  12443. '-u SYMBOL'
  12444. Pretend the symbol SYMBOL is undefined, to force linking of library
  12445. modules to define it. You can use '-u' multiple times with
  12446. different symbols to force loading of additional library modules.
  12447. '-z KEYWORD'
  12448. '-z' is passed directly on to the linker along with the keyword
  12449. KEYWORD. See the section in the documentation of your linker for
  12450. permitted values and their meanings.
  12451. ---------- Footnotes ----------
  12452. (1) On some systems, 'gcc -shared' needs to build supplementary stub
  12453. code for constructors to work. On multi-libbed systems, 'gcc -shared'
  12454. must select the correct support libraries to link against. Failing to
  12455. supply the correct flags may lead to subtle defects. Supplying them in
  12456. cases where they are not necessary is innocuous.
  12457. 
  12458. File: gcc.info, Node: Directory Options, Next: Code Gen Options, Prev: Link Options, Up: Invoking GCC
  12459. 3.16 Options for Directory Search
  12460. =================================
  12461. These options specify directories to search for header files, for
  12462. libraries and for parts of the compiler:
  12463. '-I DIR'
  12464. '-iquote DIR'
  12465. '-isystem DIR'
  12466. '-idirafter DIR'
  12467. Add the directory DIR to the list of directories to be searched for
  12468. header files during preprocessing. If DIR begins with '=' or
  12469. '$SYSROOT', then the '=' or '$SYSROOT' is replaced by the sysroot
  12470. prefix; see '--sysroot' and '-isysroot'.
  12471. Directories specified with '-iquote' apply only to the quote form
  12472. of the directive, '#include "FILE"'. Directories specified with
  12473. '-I', '-isystem', or '-idirafter' apply to lookup for both the
  12474. '#include "FILE"' and '#include <FILE>' directives.
  12475. You can specify any number or combination of these options on the
  12476. command line to search for header files in several directories.
  12477. The lookup order is as follows:
  12478. 1. For the quote form of the include directive, the directory of
  12479. the current file is searched first.
  12480. 2. For the quote form of the include directive, the directories
  12481. specified by '-iquote' options are searched in left-to-right
  12482. order, as they appear on the command line.
  12483. 3. Directories specified with '-I' options are scanned in
  12484. left-to-right order.
  12485. 4. Directories specified with '-isystem' options are scanned in
  12486. left-to-right order.
  12487. 5. Standard system directories are scanned.
  12488. 6. Directories specified with '-idirafter' options are scanned in
  12489. left-to-right order.
  12490. You can use '-I' to override a system header file, substituting
  12491. your own version, since these directories are searched before the
  12492. standard system header file directories. However, you should not
  12493. use this option to add directories that contain vendor-supplied
  12494. system header files; use '-isystem' for that.
  12495. The '-isystem' and '-idirafter' options also mark the directory as
  12496. a system directory, so that it gets the same special treatment that
  12497. is applied to the standard system directories.
  12498. If a standard system include directory, or a directory specified
  12499. with '-isystem', is also specified with '-I', the '-I' option is
  12500. ignored. The directory is still searched but as a system directory
  12501. at its normal position in the system include chain. This is to
  12502. ensure that GCC's procedure to fix buggy system headers and the
  12503. ordering for the '#include_next' directive are not inadvertently
  12504. changed. If you really need to change the search order for system
  12505. directories, use the '-nostdinc' and/or '-isystem' options.
  12506. '-I-'
  12507. Split the include path. This option has been deprecated. Please
  12508. use '-iquote' instead for '-I' directories before the '-I-' and
  12509. remove the '-I-' option.
  12510. Any directories specified with '-I' options before '-I-' are
  12511. searched only for headers requested with '#include "FILE"'; they
  12512. are not searched for '#include <FILE>'. If additional directories
  12513. are specified with '-I' options after the '-I-', those directories
  12514. are searched for all '#include' directives.
  12515. In addition, '-I-' inhibits the use of the directory of the current
  12516. file directory as the first search directory for '#include "FILE"'.
  12517. There is no way to override this effect of '-I-'.
  12518. '-iprefix PREFIX'
  12519. Specify PREFIX as the prefix for subsequent '-iwithprefix' options.
  12520. If the prefix represents a directory, you should include the final
  12521. '/'.
  12522. '-iwithprefix DIR'
  12523. '-iwithprefixbefore DIR'
  12524. Append DIR to the prefix specified previously with '-iprefix', and
  12525. add the resulting directory to the include search path.
  12526. '-iwithprefixbefore' puts it in the same place '-I' would;
  12527. '-iwithprefix' puts it where '-idirafter' would.
  12528. '-isysroot DIR'
  12529. This option is like the '--sysroot' option, but applies only to
  12530. header files (except for Darwin targets, where it applies to both
  12531. header files and libraries). See the '--sysroot' option for more
  12532. information.
  12533. '-imultilib DIR'
  12534. Use DIR as a subdirectory of the directory containing
  12535. target-specific C++ headers.
  12536. '-nostdinc'
  12537. Do not search the standard system directories for header files.
  12538. Only the directories explicitly specified with '-I', '-iquote',
  12539. '-isystem', and/or '-idirafter' options (and the directory of the
  12540. current file, if appropriate) are searched.
  12541. '-nostdinc++'
  12542. Do not search for header files in the C++-specific standard
  12543. directories, but do still search the other standard directories.
  12544. (This option is used when building the C++ library.)
  12545. '-iplugindir=DIR'
  12546. Set the directory to search for plugins that are passed by
  12547. '-fplugin=NAME' instead of '-fplugin=PATH/NAME.so'. This option is
  12548. not meant to be used by the user, but only passed by the driver.
  12549. '-LDIR'
  12550. Add directory DIR to the list of directories to be searched for
  12551. '-l'.
  12552. '-BPREFIX'
  12553. This option specifies where to find the executables, libraries,
  12554. include files, and data files of the compiler itself.
  12555. The compiler driver program runs one or more of the subprograms
  12556. 'cpp', 'cc1', 'as' and 'ld'. It tries PREFIX as a prefix for each
  12557. program it tries to run, both with and without 'MACHINE/VERSION/'
  12558. for the corresponding target machine and compiler version.
  12559. For each subprogram to be run, the compiler driver first tries the
  12560. '-B' prefix, if any. If that name is not found, or if '-B' is not
  12561. specified, the driver tries two standard prefixes, '/usr/lib/gcc/'
  12562. and '/usr/local/lib/gcc/'. If neither of those results in a file
  12563. name that is found, the unmodified program name is searched for
  12564. using the directories specified in your 'PATH' environment
  12565. variable.
  12566. The compiler checks to see if the path provided by '-B' refers to a
  12567. directory, and if necessary it adds a directory separator character
  12568. at the end of the path.
  12569. '-B' prefixes that effectively specify directory names also apply
  12570. to libraries in the linker, because the compiler translates these
  12571. options into '-L' options for the linker. They also apply to
  12572. include files in the preprocessor, because the compiler translates
  12573. these options into '-isystem' options for the preprocessor. In
  12574. this case, the compiler appends 'include' to the prefix.
  12575. The runtime support file 'libgcc.a' can also be searched for using
  12576. the '-B' prefix, if needed. If it is not found there, the two
  12577. standard prefixes above are tried, and that is all. The file is
  12578. left out of the link if it is not found by those means.
  12579. Another way to specify a prefix much like the '-B' prefix is to use
  12580. the environment variable 'GCC_EXEC_PREFIX'. *Note Environment
  12581. Variables::.
  12582. As a special kludge, if the path provided by '-B' is
  12583. '[dir/]stageN/', where N is a number in the range 0 to 9, then it
  12584. is replaced by '[dir/]include'. This is to help with
  12585. boot-strapping the compiler.
  12586. '-no-canonical-prefixes'
  12587. Do not expand any symbolic links, resolve references to '/../' or
  12588. '/./', or make the path absolute when generating a relative prefix.
  12589. '--sysroot=DIR'
  12590. Use DIR as the logical root directory for headers and libraries.
  12591. For example, if the compiler normally searches for headers in
  12592. '/usr/include' and libraries in '/usr/lib', it instead searches
  12593. 'DIR/usr/include' and 'DIR/usr/lib'.
  12594. If you use both this option and the '-isysroot' option, then the
  12595. '--sysroot' option applies to libraries, but the '-isysroot' option
  12596. applies to header files.
  12597. The GNU linker (beginning with version 2.16) has the necessary
  12598. support for this option. If your linker does not support this
  12599. option, the header file aspect of '--sysroot' still works, but the
  12600. library aspect does not.
  12601. '--no-sysroot-suffix'
  12602. For some targets, a suffix is added to the root directory specified
  12603. with '--sysroot', depending on the other options used, so that
  12604. headers may for example be found in 'DIR/SUFFIX/usr/include'
  12605. instead of 'DIR/usr/include'. This option disables the addition of
  12606. such a suffix.
  12607. 
  12608. File: gcc.info, Node: Code Gen Options, Next: Developer Options, Prev: Directory Options, Up: Invoking GCC
  12609. 3.17 Options for Code Generation Conventions
  12610. ============================================
  12611. These machine-independent options control the interface conventions used
  12612. in code generation.
  12613. Most of them have both positive and negative forms; the negative form
  12614. of '-ffoo' is '-fno-foo'. In the table below, only one of the forms is
  12615. listed--the one that is not the default. You can figure out the other
  12616. form by either removing 'no-' or adding it.
  12617. '-fstack-reuse=REUSE-LEVEL'
  12618. This option controls stack space reuse for user declared local/auto
  12619. variables and compiler generated temporaries. REUSE_LEVEL can be
  12620. 'all', 'named_vars', or 'none'. 'all' enables stack reuse for all
  12621. local variables and temporaries, 'named_vars' enables the reuse
  12622. only for user defined local variables with names, and 'none'
  12623. disables stack reuse completely. The default value is 'all'. The
  12624. option is needed when the program extends the lifetime of a scoped
  12625. local variable or a compiler generated temporary beyond the end
  12626. point defined by the language. When a lifetime of a variable ends,
  12627. and if the variable lives in memory, the optimizing compiler has
  12628. the freedom to reuse its stack space with other temporaries or
  12629. scoped local variables whose live range does not overlap with it.
  12630. Legacy code extending local lifetime is likely to break with the
  12631. stack reuse optimization.
  12632. For example,
  12633. int *p;
  12634. {
  12635. int local1;
  12636. p = &local1;
  12637. local1 = 10;
  12638. ....
  12639. }
  12640. {
  12641. int local2;
  12642. local2 = 20;
  12643. ...
  12644. }
  12645. if (*p == 10) // out of scope use of local1
  12646. {
  12647. }
  12648. Another example:
  12649. struct A
  12650. {
  12651. A(int k) : i(k), j(k) { }
  12652. int i;
  12653. int j;
  12654. };
  12655. A *ap;
  12656. void foo(const A& ar)
  12657. {
  12658. ap = &ar;
  12659. }
  12660. void bar()
  12661. {
  12662. foo(A(10)); // temp object's lifetime ends when foo returns
  12663. {
  12664. A a(20);
  12665. ....
  12666. }
  12667. ap->i+= 10; // ap references out of scope temp whose space
  12668. // is reused with a. What is the value of ap->i?
  12669. }
  12670. The lifetime of a compiler generated temporary is well defined by
  12671. the C++ standard. When a lifetime of a temporary ends, and if the
  12672. temporary lives in memory, the optimizing compiler has the freedom
  12673. to reuse its stack space with other temporaries or scoped local
  12674. variables whose live range does not overlap with it. However some
  12675. of the legacy code relies on the behavior of older compilers in
  12676. which temporaries' stack space is not reused, the aggressive stack
  12677. reuse can lead to runtime errors. This option is used to control
  12678. the temporary stack reuse optimization.
  12679. '-ftrapv'
  12680. This option generates traps for signed overflow on addition,
  12681. subtraction, multiplication operations. The options '-ftrapv' and
  12682. '-fwrapv' override each other, so using '-ftrapv' '-fwrapv' on the
  12683. command-line results in '-fwrapv' being effective. Note that only
  12684. active options override, so using '-ftrapv' '-fwrapv' '-fno-wrapv'
  12685. on the command-line results in '-ftrapv' being effective.
  12686. '-fwrapv'
  12687. This option instructs the compiler to assume that signed arithmetic
  12688. overflow of addition, subtraction and multiplication wraps around
  12689. using twos-complement representation. This flag enables some
  12690. optimizations and disables others. The options '-ftrapv' and
  12691. '-fwrapv' override each other, so using '-ftrapv' '-fwrapv' on the
  12692. command-line results in '-fwrapv' being effective. Note that only
  12693. active options override, so using '-ftrapv' '-fwrapv' '-fno-wrapv'
  12694. on the command-line results in '-ftrapv' being effective.
  12695. '-fwrapv-pointer'
  12696. This option instructs the compiler to assume that pointer
  12697. arithmetic overflow on addition and subtraction wraps around using
  12698. twos-complement representation. This flag disables some
  12699. optimizations which assume pointer overflow is invalid.
  12700. '-fstrict-overflow'
  12701. This option implies '-fno-wrapv' '-fno-wrapv-pointer' and when
  12702. negated implies '-fwrapv' '-fwrapv-pointer'.
  12703. '-fexceptions'
  12704. Enable exception handling. Generates extra code needed to
  12705. propagate exceptions. For some targets, this implies GCC generates
  12706. frame unwind information for all functions, which can produce
  12707. significant data size overhead, although it does not affect
  12708. execution. If you do not specify this option, GCC enables it by
  12709. default for languages like C++ that normally require exception
  12710. handling, and disables it for languages like C that do not normally
  12711. require it. However, you may need to enable this option when
  12712. compiling C code that needs to interoperate properly with exception
  12713. handlers written in C++. You may also wish to disable this option
  12714. if you are compiling older C++ programs that don't use exception
  12715. handling.
  12716. '-fnon-call-exceptions'
  12717. Generate code that allows trapping instructions to throw
  12718. exceptions. Note that this requires platform-specific runtime
  12719. support that does not exist everywhere. Moreover, it only allows
  12720. _trapping_ instructions to throw exceptions, i.e. memory references
  12721. or floating-point instructions. It does not allow exceptions to be
  12722. thrown from arbitrary signal handlers such as 'SIGALRM'.
  12723. '-fdelete-dead-exceptions'
  12724. Consider that instructions that may throw exceptions but don't
  12725. otherwise contribute to the execution of the program can be
  12726. optimized away. This option is enabled by default for the Ada
  12727. compiler, as permitted by the Ada language specification.
  12728. Optimization passes that cause dead exceptions to be removed are
  12729. enabled independently at different optimization levels.
  12730. '-funwind-tables'
  12731. Similar to '-fexceptions', except that it just generates any needed
  12732. static data, but does not affect the generated code in any other
  12733. way. You normally do not need to enable this option; instead, a
  12734. language processor that needs this handling enables it on your
  12735. behalf.
  12736. '-fasynchronous-unwind-tables'
  12737. Generate unwind table in DWARF format, if supported by target
  12738. machine. The table is exact at each instruction boundary, so it
  12739. can be used for stack unwinding from asynchronous events (such as
  12740. debugger or garbage collector).
  12741. '-fno-gnu-unique'
  12742. On systems with recent GNU assembler and C library, the C++
  12743. compiler uses the 'STB_GNU_UNIQUE' binding to make sure that
  12744. definitions of template static data members and static local
  12745. variables in inline functions are unique even in the presence of
  12746. 'RTLD_LOCAL'; this is necessary to avoid problems with a library
  12747. used by two different 'RTLD_LOCAL' plugins depending on a
  12748. definition in one of them and therefore disagreeing with the other
  12749. one about the binding of the symbol. But this causes 'dlclose' to
  12750. be ignored for affected DSOs; if your program relies on
  12751. reinitialization of a DSO via 'dlclose' and 'dlopen', you can use
  12752. '-fno-gnu-unique'.
  12753. '-fpcc-struct-return'
  12754. Return "short" 'struct' and 'union' values in memory like longer
  12755. ones, rather than in registers. This convention is less efficient,
  12756. but it has the advantage of allowing intercallability between
  12757. GCC-compiled files and files compiled with other compilers,
  12758. particularly the Portable C Compiler (pcc).
  12759. The precise convention for returning structures in memory depends
  12760. on the target configuration macros.
  12761. Short structures and unions are those whose size and alignment
  12762. match that of some integer type.
  12763. *Warning:* code compiled with the '-fpcc-struct-return' switch is
  12764. not binary compatible with code compiled with the
  12765. '-freg-struct-return' switch. Use it to conform to a non-default
  12766. application binary interface.
  12767. '-freg-struct-return'
  12768. Return 'struct' and 'union' values in registers when possible.
  12769. This is more efficient for small structures than
  12770. '-fpcc-struct-return'.
  12771. If you specify neither '-fpcc-struct-return' nor
  12772. '-freg-struct-return', GCC defaults to whichever convention is
  12773. standard for the target. If there is no standard convention, GCC
  12774. defaults to '-fpcc-struct-return', except on targets where GCC is
  12775. the principal compiler. In those cases, we can choose the
  12776. standard, and we chose the more efficient register return
  12777. alternative.
  12778. *Warning:* code compiled with the '-freg-struct-return' switch is
  12779. not binary compatible with code compiled with the
  12780. '-fpcc-struct-return' switch. Use it to conform to a non-default
  12781. application binary interface.
  12782. '-fshort-enums'
  12783. Allocate to an 'enum' type only as many bytes as it needs for the
  12784. declared range of possible values. Specifically, the 'enum' type
  12785. is equivalent to the smallest integer type that has enough room.
  12786. *Warning:* the '-fshort-enums' switch causes GCC to generate code
  12787. that is not binary compatible with code generated without that
  12788. switch. Use it to conform to a non-default application binary
  12789. interface.
  12790. '-fshort-wchar'
  12791. Override the underlying type for 'wchar_t' to be 'short unsigned
  12792. int' instead of the default for the target. This option is useful
  12793. for building programs to run under WINE.
  12794. *Warning:* the '-fshort-wchar' switch causes GCC to generate code
  12795. that is not binary compatible with code generated without that
  12796. switch. Use it to conform to a non-default application binary
  12797. interface.
  12798. '-fcommon'
  12799. In C code, this option controls the placement of global variables
  12800. defined without an initializer, known as "tentative definitions" in
  12801. the C standard. Tentative definitions are distinct from
  12802. declarations of a variable with the 'extern' keyword, which do not
  12803. allocate storage.
  12804. The default is '-fno-common', which specifies that the compiler
  12805. places uninitialized global variables in the BSS section of the
  12806. object file. This inhibits the merging of tentative definitions by
  12807. the linker so you get a multiple-definition error if the same
  12808. variable is accidentally defined in more than one compilation unit.
  12809. The '-fcommon' places uninitialized global variables in a common
  12810. block. This allows the linker to resolve all tentative definitions
  12811. of the same variable in different compilation units to the same
  12812. object, or to a non-tentative definition. This behavior is
  12813. inconsistent with C++, and on many targets implies a speed and code
  12814. size penalty on global variable references. It is mainly useful to
  12815. enable legacy code to link without errors.
  12816. '-fno-ident'
  12817. Ignore the '#ident' directive.
  12818. '-finhibit-size-directive'
  12819. Don't output a '.size' assembler directive, or anything else that
  12820. would cause trouble if the function is split in the middle, and the
  12821. two halves are placed at locations far apart in memory. This
  12822. option is used when compiling 'crtstuff.c'; you should not need to
  12823. use it for anything else.
  12824. '-fverbose-asm'
  12825. Put extra commentary information in the generated assembly code to
  12826. make it more readable. This option is generally only of use to
  12827. those who actually need to read the generated assembly code
  12828. (perhaps while debugging the compiler itself).
  12829. '-fno-verbose-asm', the default, causes the extra information to be
  12830. omitted and is useful when comparing two assembler files.
  12831. The added comments include:
  12832. * information on the compiler version and command-line options,
  12833. * the source code lines associated with the assembly
  12834. instructions, in the form FILENAME:LINENUMBER:CONTENT OF LINE,
  12835. * hints on which high-level expressions correspond to the
  12836. various assembly instruction operands.
  12837. For example, given this C source file:
  12838. int test (int n)
  12839. {
  12840. int i;
  12841. int total = 0;
  12842. for (i = 0; i < n; i++)
  12843. total += i * i;
  12844. return total;
  12845. }
  12846. compiling to (x86_64) assembly via '-S' and emitting the result
  12847. direct to stdout via '-o' '-'
  12848. gcc -S test.c -fverbose-asm -Os -o -
  12849. gives output similar to this:
  12850. .file "test.c"
  12851. # GNU C11 (GCC) version 7.0.0 20160809 (experimental) (x86_64-pc-linux-gnu)
  12852. [...snip...]
  12853. # options passed:
  12854. [...snip...]
  12855. .text
  12856. .globl test
  12857. .type test, @function
  12858. test:
  12859. .LFB0:
  12860. .cfi_startproc
  12861. # test.c:4: int total = 0;
  12862. xorl %eax, %eax # <retval>
  12863. # test.c:6: for (i = 0; i < n; i++)
  12864. xorl %edx, %edx # i
  12865. .L2:
  12866. # test.c:6: for (i = 0; i < n; i++)
  12867. cmpl %edi, %edx # n, i
  12868. jge .L5 #,
  12869. # test.c:7: total += i * i;
  12870. movl %edx, %ecx # i, tmp92
  12871. imull %edx, %ecx # i, tmp92
  12872. # test.c:6: for (i = 0; i < n; i++)
  12873. incl %edx # i
  12874. # test.c:7: total += i * i;
  12875. addl %ecx, %eax # tmp92, <retval>
  12876. jmp .L2 #
  12877. .L5:
  12878. # test.c:10: }
  12879. ret
  12880. .cfi_endproc
  12881. .LFE0:
  12882. .size test, .-test
  12883. .ident "GCC: (GNU) 7.0.0 20160809 (experimental)"
  12884. .section .note.GNU-stack,"",@progbits
  12885. The comments are intended for humans rather than machines and hence
  12886. the precise format of the comments is subject to change.
  12887. '-frecord-gcc-switches'
  12888. This switch causes the command line used to invoke the compiler to
  12889. be recorded into the object file that is being created. This
  12890. switch is only implemented on some targets and the exact format of
  12891. the recording is target and binary file format dependent, but it
  12892. usually takes the form of a section containing ASCII text. This
  12893. switch is related to the '-fverbose-asm' switch, but that switch
  12894. only records information in the assembler output file as comments,
  12895. so it never reaches the object file. See also
  12896. '-grecord-gcc-switches' for another way of storing compiler options
  12897. into the object file.
  12898. '-fpic'
  12899. Generate position-independent code (PIC) suitable for use in a
  12900. shared library, if supported for the target machine. Such code
  12901. accesses all constant addresses through a global offset table
  12902. (GOT). The dynamic loader resolves the GOT entries when the
  12903. program starts (the dynamic loader is not part of GCC; it is part
  12904. of the operating system). If the GOT size for the linked
  12905. executable exceeds a machine-specific maximum size, you get an
  12906. error message from the linker indicating that '-fpic' does not
  12907. work; in that case, recompile with '-fPIC' instead. (These
  12908. maximums are 8k on the SPARC, 28k on AArch64 and 32k on the m68k
  12909. and RS/6000. The x86 has no such limit.)
  12910. Position-independent code requires special support, and therefore
  12911. works only on certain machines. For the x86, GCC supports PIC for
  12912. System V but not for the Sun 386i. Code generated for the IBM
  12913. RS/6000 is always position-independent.
  12914. When this flag is set, the macros '__pic__' and '__PIC__' are
  12915. defined to 1.
  12916. '-fPIC'
  12917. If supported for the target machine, emit position-independent
  12918. code, suitable for dynamic linking and avoiding any limit on the
  12919. size of the global offset table. This option makes a difference on
  12920. AArch64, m68k, PowerPC and SPARC.
  12921. Position-independent code requires special support, and therefore
  12922. works only on certain machines.
  12923. When this flag is set, the macros '__pic__' and '__PIC__' are
  12924. defined to 2.
  12925. '-fpie'
  12926. '-fPIE'
  12927. These options are similar to '-fpic' and '-fPIC', but the generated
  12928. position-independent code can be only linked into executables.
  12929. Usually these options are used to compile code that will be linked
  12930. using the '-pie' GCC option.
  12931. '-fpie' and '-fPIE' both define the macros '__pie__' and '__PIE__'.
  12932. The macros have the value 1 for '-fpie' and 2 for '-fPIE'.
  12933. '-fno-plt'
  12934. Do not use the PLT for external function calls in
  12935. position-independent code. Instead, load the callee address at
  12936. call sites from the GOT and branch to it. This leads to more
  12937. efficient code by eliminating PLT stubs and exposing GOT loads to
  12938. optimizations. On architectures such as 32-bit x86 where PLT stubs
  12939. expect the GOT pointer in a specific register, this gives more
  12940. register allocation freedom to the compiler. Lazy binding requires
  12941. use of the PLT; with '-fno-plt' all external symbols are resolved
  12942. at load time.
  12943. Alternatively, the function attribute 'noplt' can be used to avoid
  12944. calls through the PLT for specific external functions.
  12945. In position-dependent code, a few targets also convert calls to
  12946. functions that are marked to not use the PLT to use the GOT
  12947. instead.
  12948. '-fno-jump-tables'
  12949. Do not use jump tables for switch statements even where it would be
  12950. more efficient than other code generation strategies. This option
  12951. is of use in conjunction with '-fpic' or '-fPIC' for building code
  12952. that forms part of a dynamic linker and cannot reference the
  12953. address of a jump table. On some targets, jump tables do not
  12954. require a GOT and this option is not needed.
  12955. '-fno-bit-tests'
  12956. Do not use bit tests for switch statements even where it would be
  12957. more efficient than other code generation strategies.
  12958. '-ffixed-REG'
  12959. Treat the register named REG as a fixed register; generated code
  12960. should never refer to it (except perhaps as a stack pointer, frame
  12961. pointer or in some other fixed role).
  12962. REG must be the name of a register. The register names accepted
  12963. are machine-specific and are defined in the 'REGISTER_NAMES' macro
  12964. in the machine description macro file.
  12965. This flag does not have a negative form, because it specifies a
  12966. three-way choice.
  12967. '-fcall-used-REG'
  12968. Treat the register named REG as an allocable register that is
  12969. clobbered by function calls. It may be allocated for temporaries
  12970. or variables that do not live across a call. Functions compiled
  12971. this way do not save and restore the register REG.
  12972. It is an error to use this flag with the frame pointer or stack
  12973. pointer. Use of this flag for other registers that have fixed
  12974. pervasive roles in the machine's execution model produces
  12975. disastrous results.
  12976. This flag does not have a negative form, because it specifies a
  12977. three-way choice.
  12978. '-fcall-saved-REG'
  12979. Treat the register named REG as an allocable register saved by
  12980. functions. It may be allocated even for temporaries or variables
  12981. that live across a call. Functions compiled this way save and
  12982. restore the register REG if they use it.
  12983. It is an error to use this flag with the frame pointer or stack
  12984. pointer. Use of this flag for other registers that have fixed
  12985. pervasive roles in the machine's execution model produces
  12986. disastrous results.
  12987. A different sort of disaster results from the use of this flag for
  12988. a register in which function values may be returned.
  12989. This flag does not have a negative form, because it specifies a
  12990. three-way choice.
  12991. '-fpack-struct[=N]'
  12992. Without a value specified, pack all structure members together
  12993. without holes. When a value is specified (which must be a small
  12994. power of two), pack structure members according to this value,
  12995. representing the maximum alignment (that is, objects with default
  12996. alignment requirements larger than this are output potentially
  12997. unaligned at the next fitting location.
  12998. *Warning:* the '-fpack-struct' switch causes GCC to generate code
  12999. that is not binary compatible with code generated without that
  13000. switch. Additionally, it makes the code suboptimal. Use it to
  13001. conform to a non-default application binary interface.
  13002. '-fleading-underscore'
  13003. This option and its counterpart, '-fno-leading-underscore',
  13004. forcibly change the way C symbols are represented in the object
  13005. file. One use is to help link with legacy assembly code.
  13006. *Warning:* the '-fleading-underscore' switch causes GCC to generate
  13007. code that is not binary compatible with code generated without that
  13008. switch. Use it to conform to a non-default application binary
  13009. interface. Not all targets provide complete support for this
  13010. switch.
  13011. '-ftls-model=MODEL'
  13012. Alter the thread-local storage model to be used (*note
  13013. Thread-Local::). The MODEL argument should be one of
  13014. 'global-dynamic', 'local-dynamic', 'initial-exec' or 'local-exec'.
  13015. Note that the choice is subject to optimization: the compiler may
  13016. use a more efficient model for symbols not visible outside of the
  13017. translation unit, or if '-fpic' is not given on the command line.
  13018. The default without '-fpic' is 'initial-exec'; with '-fpic' the
  13019. default is 'global-dynamic'.
  13020. '-ftrampolines'
  13021. For targets that normally need trampolines for nested functions,
  13022. always generate them instead of using descriptors. Otherwise, for
  13023. targets that do not need them, like for example HP-PA or IA-64, do
  13024. nothing.
  13025. A trampoline is a small piece of code that is created at run time
  13026. on the stack when the address of a nested function is taken, and is
  13027. used to call the nested function indirectly. Therefore, it
  13028. requires the stack to be made executable in order for the program
  13029. to work properly.
  13030. '-fno-trampolines' is enabled by default on a language by language
  13031. basis to let the compiler avoid generating them, if it computes
  13032. that this is safe, and replace them with descriptors. Descriptors
  13033. are made up of data only, but the generated code must be prepared
  13034. to deal with them. As of this writing, '-fno-trampolines' is
  13035. enabled by default only for Ada.
  13036. Moreover, code compiled with '-ftrampolines' and code compiled with
  13037. '-fno-trampolines' are not binary compatible if nested functions
  13038. are present. This option must therefore be used on a program-wide
  13039. basis and be manipulated with extreme care.
  13040. '-fvisibility=[default|internal|hidden|protected]'
  13041. Set the default ELF image symbol visibility to the specified
  13042. option--all symbols are marked with this unless overridden within
  13043. the code. Using this feature can very substantially improve
  13044. linking and load times of shared object libraries, produce more
  13045. optimized code, provide near-perfect API export and prevent symbol
  13046. clashes. It is *strongly* recommended that you use this in any
  13047. shared objects you distribute.
  13048. Despite the nomenclature, 'default' always means public; i.e.,
  13049. available to be linked against from outside the shared object.
  13050. 'protected' and 'internal' are pretty useless in real-world usage
  13051. so the only other commonly used option is 'hidden'. The default if
  13052. '-fvisibility' isn't specified is 'default', i.e., make every
  13053. symbol public.
  13054. A good explanation of the benefits offered by ensuring ELF symbols
  13055. have the correct visibility is given by "How To Write Shared
  13056. Libraries" by Ulrich Drepper (which can be found at
  13057. <https://www.akkadia.org/drepper/>)--however a superior solution
  13058. made possible by this option to marking things hidden when the
  13059. default is public is to make the default hidden and mark things
  13060. public. This is the norm with DLLs on Windows and with
  13061. '-fvisibility=hidden' and '__attribute__ ((visibility("default")))'
  13062. instead of '__declspec(dllexport)' you get almost identical
  13063. semantics with identical syntax. This is a great boon to those
  13064. working with cross-platform projects.
  13065. For those adding visibility support to existing code, you may find
  13066. '#pragma GCC visibility' of use. This works by you enclosing the
  13067. declarations you wish to set visibility for with (for example)
  13068. '#pragma GCC visibility push(hidden)' and '#pragma GCC visibility
  13069. pop'. Bear in mind that symbol visibility should be viewed *as
  13070. part of the API interface contract* and thus all new code should
  13071. always specify visibility when it is not the default; i.e.,
  13072. declarations only for use within the local DSO should *always* be
  13073. marked explicitly as hidden as so to avoid PLT indirection
  13074. overheads--making this abundantly clear also aids readability and
  13075. self-documentation of the code. Note that due to ISO C++
  13076. specification requirements, 'operator new' and 'operator delete'
  13077. must always be of default visibility.
  13078. Be aware that headers from outside your project, in particular
  13079. system headers and headers from any other library you use, may not
  13080. be expecting to be compiled with visibility other than the default.
  13081. You may need to explicitly say '#pragma GCC visibility
  13082. push(default)' before including any such headers.
  13083. 'extern' declarations are not affected by '-fvisibility', so a lot
  13084. of code can be recompiled with '-fvisibility=hidden' with no
  13085. modifications. However, this means that calls to 'extern'
  13086. functions with no explicit visibility use the PLT, so it is more
  13087. effective to use '__attribute ((visibility))' and/or '#pragma GCC
  13088. visibility' to tell the compiler which 'extern' declarations should
  13089. be treated as hidden.
  13090. Note that '-fvisibility' does affect C++ vague linkage entities.
  13091. This means that, for instance, an exception class that is be thrown
  13092. between DSOs must be explicitly marked with default visibility so
  13093. that the 'type_info' nodes are unified between the DSOs.
  13094. An overview of these techniques, their benefits and how to use them
  13095. is at <http://gcc.gnu.org/wiki/Visibility>.
  13096. '-fstrict-volatile-bitfields'
  13097. This option should be used if accesses to volatile bit-fields (or
  13098. other structure fields, although the compiler usually honors those
  13099. types anyway) should use a single access of the width of the
  13100. field's type, aligned to a natural alignment if possible. For
  13101. example, targets with memory-mapped peripheral registers might
  13102. require all such accesses to be 16 bits wide; with this flag you
  13103. can declare all peripheral bit-fields as 'unsigned short' (assuming
  13104. short is 16 bits on these targets) to force GCC to use 16-bit
  13105. accesses instead of, perhaps, a more efficient 32-bit access.
  13106. If this option is disabled, the compiler uses the most efficient
  13107. instruction. In the previous example, that might be a 32-bit load
  13108. instruction, even though that accesses bytes that do not contain
  13109. any portion of the bit-field, or memory-mapped registers unrelated
  13110. to the one being updated.
  13111. In some cases, such as when the 'packed' attribute is applied to a
  13112. structure field, it may not be possible to access the field with a
  13113. single read or write that is correctly aligned for the target
  13114. machine. In this case GCC falls back to generating multiple
  13115. accesses rather than code that will fault or truncate the result at
  13116. run time.
  13117. Note: Due to restrictions of the C/C++11 memory model, write
  13118. accesses are not allowed to touch non bit-field members. It is
  13119. therefore recommended to define all bits of the field's type as
  13120. bit-field members.
  13121. The default value of this option is determined by the application
  13122. binary interface for the target processor.
  13123. '-fsync-libcalls'
  13124. This option controls whether any out-of-line instance of the
  13125. '__sync' family of functions may be used to implement the C++11
  13126. '__atomic' family of functions.
  13127. The default value of this option is enabled, thus the only useful
  13128. form of the option is '-fno-sync-libcalls'. This option is used in
  13129. the implementation of the 'libatomic' runtime library.
  13130. 
  13131. File: gcc.info, Node: Developer Options, Next: Submodel Options, Prev: Code Gen Options, Up: Invoking GCC
  13132. 3.18 GCC Developer Options
  13133. ==========================
  13134. This section describes command-line options that are primarily of
  13135. interest to GCC developers, including options to support compiler
  13136. testing and investigation of compiler bugs and compile-time performance
  13137. problems. This includes options that produce debug dumps at various
  13138. points in the compilation; that print statistics such as memory use and
  13139. execution time; and that print information about GCC's configuration,
  13140. such as where it searches for libraries. You should rarely need to use
  13141. any of these options for ordinary compilation and linking tasks.
  13142. Many developer options that cause GCC to dump output to a file take an
  13143. optional '=FILENAME' suffix. You can specify 'stdout' or '-' to dump to
  13144. standard output, and 'stderr' for standard error.
  13145. If '=FILENAME' is omitted, a default dump file name is constructed by
  13146. concatenating the base dump file name, a pass number, phase letter, and
  13147. pass name. The base dump file name is the name of output file produced
  13148. by the compiler if explicitly specified and not an executable; otherwise
  13149. it is the source file name. The pass number is determined by the order
  13150. passes are registered with the compiler's pass manager. This is
  13151. generally the same as the order of execution, but passes registered by
  13152. plugins, target-specific passes, or passes that are otherwise registered
  13153. late are numbered higher than the pass named 'final', even if they are
  13154. executed earlier. The phase letter is one of 'i' (inter-procedural
  13155. analysis), 'l' (language-specific), 'r' (RTL), or 't' (tree). The files
  13156. are created in the directory of the output file.
  13157. '-fcallgraph-info'
  13158. '-fcallgraph-info=MARKERS'
  13159. Makes the compiler output callgraph information for the program, on
  13160. a per-object-file basis. The information is generated in the
  13161. common VCG format. It can be decorated with additional, per-node
  13162. and/or per-edge information, if a list of comma-separated markers
  13163. is additionally specified. When the 'su' marker is specified, the
  13164. callgraph is decorated with stack usage information; it is
  13165. equivalent to '-fstack-usage'. When the 'da' marker is specified,
  13166. the callgraph is decorated with information about dynamically
  13167. allocated objects.
  13168. When compiling with '-flto', no callgraph information is output
  13169. along with the object file. At LTO link time, '-fcallgraph-info'
  13170. may generate multiple callgraph information files next to
  13171. intermediate LTO output files.
  13172. '-dLETTERS'
  13173. '-fdump-rtl-PASS'
  13174. '-fdump-rtl-PASS=FILENAME'
  13175. Says to make debugging dumps during compilation at times specified
  13176. by LETTERS. This is used for debugging the RTL-based passes of the
  13177. compiler.
  13178. Some '-dLETTERS' switches have different meaning when '-E' is used
  13179. for preprocessing. *Note Preprocessor Options::, for information
  13180. about preprocessor-specific dump options.
  13181. Debug dumps can be enabled with a '-fdump-rtl' switch or some '-d'
  13182. option LETTERS. Here are the possible letters for use in PASS and
  13183. LETTERS, and their meanings:
  13184. '-fdump-rtl-alignments'
  13185. Dump after branch alignments have been computed.
  13186. '-fdump-rtl-asmcons'
  13187. Dump after fixing rtl statements that have unsatisfied in/out
  13188. constraints.
  13189. '-fdump-rtl-auto_inc_dec'
  13190. Dump after auto-inc-dec discovery. This pass is only run on
  13191. architectures that have auto inc or auto dec instructions.
  13192. '-fdump-rtl-barriers'
  13193. Dump after cleaning up the barrier instructions.
  13194. '-fdump-rtl-bbpart'
  13195. Dump after partitioning hot and cold basic blocks.
  13196. '-fdump-rtl-bbro'
  13197. Dump after block reordering.
  13198. '-fdump-rtl-btl1'
  13199. '-fdump-rtl-btl2'
  13200. '-fdump-rtl-btl1' and '-fdump-rtl-btl2' enable dumping after
  13201. the two branch target load optimization passes.
  13202. '-fdump-rtl-bypass'
  13203. Dump after jump bypassing and control flow optimizations.
  13204. '-fdump-rtl-combine'
  13205. Dump after the RTL instruction combination pass.
  13206. '-fdump-rtl-compgotos'
  13207. Dump after duplicating the computed gotos.
  13208. '-fdump-rtl-ce1'
  13209. '-fdump-rtl-ce2'
  13210. '-fdump-rtl-ce3'
  13211. '-fdump-rtl-ce1', '-fdump-rtl-ce2', and '-fdump-rtl-ce3'
  13212. enable dumping after the three if conversion passes.
  13213. '-fdump-rtl-cprop_hardreg'
  13214. Dump after hard register copy propagation.
  13215. '-fdump-rtl-csa'
  13216. Dump after combining stack adjustments.
  13217. '-fdump-rtl-cse1'
  13218. '-fdump-rtl-cse2'
  13219. '-fdump-rtl-cse1' and '-fdump-rtl-cse2' enable dumping after
  13220. the two common subexpression elimination passes.
  13221. '-fdump-rtl-dce'
  13222. Dump after the standalone dead code elimination passes.
  13223. '-fdump-rtl-dbr'
  13224. Dump after delayed branch scheduling.
  13225. '-fdump-rtl-dce1'
  13226. '-fdump-rtl-dce2'
  13227. '-fdump-rtl-dce1' and '-fdump-rtl-dce2' enable dumping after
  13228. the two dead store elimination passes.
  13229. '-fdump-rtl-eh'
  13230. Dump after finalization of EH handling code.
  13231. '-fdump-rtl-eh_ranges'
  13232. Dump after conversion of EH handling range regions.
  13233. '-fdump-rtl-expand'
  13234. Dump after RTL generation.
  13235. '-fdump-rtl-fwprop1'
  13236. '-fdump-rtl-fwprop2'
  13237. '-fdump-rtl-fwprop1' and '-fdump-rtl-fwprop2' enable dumping
  13238. after the two forward propagation passes.
  13239. '-fdump-rtl-gcse1'
  13240. '-fdump-rtl-gcse2'
  13241. '-fdump-rtl-gcse1' and '-fdump-rtl-gcse2' enable dumping after
  13242. global common subexpression elimination.
  13243. '-fdump-rtl-init-regs'
  13244. Dump after the initialization of the registers.
  13245. '-fdump-rtl-initvals'
  13246. Dump after the computation of the initial value sets.
  13247. '-fdump-rtl-into_cfglayout'
  13248. Dump after converting to cfglayout mode.
  13249. '-fdump-rtl-ira'
  13250. Dump after iterated register allocation.
  13251. '-fdump-rtl-jump'
  13252. Dump after the second jump optimization.
  13253. '-fdump-rtl-loop2'
  13254. '-fdump-rtl-loop2' enables dumping after the rtl loop
  13255. optimization passes.
  13256. '-fdump-rtl-mach'
  13257. Dump after performing the machine dependent reorganization
  13258. pass, if that pass exists.
  13259. '-fdump-rtl-mode_sw'
  13260. Dump after removing redundant mode switches.
  13261. '-fdump-rtl-rnreg'
  13262. Dump after register renumbering.
  13263. '-fdump-rtl-outof_cfglayout'
  13264. Dump after converting from cfglayout mode.
  13265. '-fdump-rtl-peephole2'
  13266. Dump after the peephole pass.
  13267. '-fdump-rtl-postreload'
  13268. Dump after post-reload optimizations.
  13269. '-fdump-rtl-pro_and_epilogue'
  13270. Dump after generating the function prologues and epilogues.
  13271. '-fdump-rtl-sched1'
  13272. '-fdump-rtl-sched2'
  13273. '-fdump-rtl-sched1' and '-fdump-rtl-sched2' enable dumping
  13274. after the basic block scheduling passes.
  13275. '-fdump-rtl-ree'
  13276. Dump after sign/zero extension elimination.
  13277. '-fdump-rtl-seqabstr'
  13278. Dump after common sequence discovery.
  13279. '-fdump-rtl-shorten'
  13280. Dump after shortening branches.
  13281. '-fdump-rtl-sibling'
  13282. Dump after sibling call optimizations.
  13283. '-fdump-rtl-split1'
  13284. '-fdump-rtl-split2'
  13285. '-fdump-rtl-split3'
  13286. '-fdump-rtl-split4'
  13287. '-fdump-rtl-split5'
  13288. These options enable dumping after five rounds of instruction
  13289. splitting.
  13290. '-fdump-rtl-sms'
  13291. Dump after modulo scheduling. This pass is only run on some
  13292. architectures.
  13293. '-fdump-rtl-stack'
  13294. Dump after conversion from GCC's "flat register file"
  13295. registers to the x87's stack-like registers. This pass is
  13296. only run on x86 variants.
  13297. '-fdump-rtl-subreg1'
  13298. '-fdump-rtl-subreg2'
  13299. '-fdump-rtl-subreg1' and '-fdump-rtl-subreg2' enable dumping
  13300. after the two subreg expansion passes.
  13301. '-fdump-rtl-unshare'
  13302. Dump after all rtl has been unshared.
  13303. '-fdump-rtl-vartrack'
  13304. Dump after variable tracking.
  13305. '-fdump-rtl-vregs'
  13306. Dump after converting virtual registers to hard registers.
  13307. '-fdump-rtl-web'
  13308. Dump after live range splitting.
  13309. '-fdump-rtl-regclass'
  13310. '-fdump-rtl-subregs_of_mode_init'
  13311. '-fdump-rtl-subregs_of_mode_finish'
  13312. '-fdump-rtl-dfinit'
  13313. '-fdump-rtl-dfinish'
  13314. These dumps are defined but always produce empty files.
  13315. '-da'
  13316. '-fdump-rtl-all'
  13317. Produce all the dumps listed above.
  13318. '-dA'
  13319. Annotate the assembler output with miscellaneous debugging
  13320. information.
  13321. '-dD'
  13322. Dump all macro definitions, at the end of preprocessing, in
  13323. addition to normal output.
  13324. '-dH'
  13325. Produce a core dump whenever an error occurs.
  13326. '-dp'
  13327. Annotate the assembler output with a comment indicating which
  13328. pattern and alternative is used. The length and cost of each
  13329. instruction are also printed.
  13330. '-dP'
  13331. Dump the RTL in the assembler output as a comment before each
  13332. instruction. Also turns on '-dp' annotation.
  13333. '-dx'
  13334. Just generate RTL for a function instead of compiling it.
  13335. Usually used with '-fdump-rtl-expand'.
  13336. '-fdump-debug'
  13337. Dump debugging information generated during the debug generation
  13338. phase.
  13339. '-fdump-earlydebug'
  13340. Dump debugging information generated during the early debug
  13341. generation phase.
  13342. '-fdump-noaddr'
  13343. When doing debugging dumps, suppress address output. This makes it
  13344. more feasible to use diff on debugging dumps for compiler
  13345. invocations with different compiler binaries and/or different text
  13346. / bss / data / heap / stack / dso start locations.
  13347. '-freport-bug'
  13348. Collect and dump debug information into a temporary file if an
  13349. internal compiler error (ICE) occurs.
  13350. '-fdump-unnumbered'
  13351. When doing debugging dumps, suppress instruction numbers and
  13352. address output. This makes it more feasible to use diff on
  13353. debugging dumps for compiler invocations with different options, in
  13354. particular with and without '-g'.
  13355. '-fdump-unnumbered-links'
  13356. When doing debugging dumps (see '-d' option above), suppress
  13357. instruction numbers for the links to the previous and next
  13358. instructions in a sequence.
  13359. '-fdump-ipa-SWITCH'
  13360. '-fdump-ipa-SWITCH-OPTIONS'
  13361. Control the dumping at various stages of inter-procedural analysis
  13362. language tree to a file. The file name is generated by appending a
  13363. switch specific suffix to the source file name, and the file is
  13364. created in the same directory as the output file. The following
  13365. dumps are possible:
  13366. 'all'
  13367. Enables all inter-procedural analysis dumps.
  13368. 'cgraph'
  13369. Dumps information about call-graph optimization, unused
  13370. function removal, and inlining decisions.
  13371. 'inline'
  13372. Dump after function inlining.
  13373. Additionally, the options '-optimized', '-missed', '-note', and
  13374. '-all' can be provided, with the same meaning as for '-fopt-info',
  13375. defaulting to '-optimized'.
  13376. For example, '-fdump-ipa-inline-optimized-missed' will emit
  13377. information on callsites that were inlined, along with callsites
  13378. that were not inlined.
  13379. By default, the dump will contain messages about successful
  13380. optimizations (equivalent to '-optimized') together with low-level
  13381. details about the analysis.
  13382. '-fdump-lang'
  13383. Dump language-specific information. The file name is made by
  13384. appending '.lang' to the source file name.
  13385. '-fdump-lang-all'
  13386. '-fdump-lang-SWITCH'
  13387. '-fdump-lang-SWITCH-OPTIONS'
  13388. '-fdump-lang-SWITCH-OPTIONS=FILENAME'
  13389. Control the dumping of language-specific information. The OPTIONS
  13390. and FILENAME portions behave as described in the '-fdump-tree'
  13391. option. The following SWITCH values are accepted:
  13392. 'all'
  13393. Enable all language-specific dumps.
  13394. 'class'
  13395. Dump class hierarchy information. Virtual table information
  13396. is emitted unless ''slim'' is specified. This option is
  13397. applicable to C++ only.
  13398. 'module'
  13399. Dump module information. Options 'lineno' (locations),
  13400. 'graph' (reachability), 'blocks' (clusters), 'uid'
  13401. (serialization), 'alias' (mergeable), 'asmname' (Elrond), 'eh'
  13402. (mapper) & 'vops' (macros) may provide additional information.
  13403. This option is applicable to C++ only.
  13404. 'raw'
  13405. Dump the raw internal tree data. This option is applicable to
  13406. C++ only.
  13407. '-fdump-passes'
  13408. Print on 'stderr' the list of optimization passes that are turned
  13409. on and off by the current command-line options.
  13410. '-fdump-statistics-OPTION'
  13411. Enable and control dumping of pass statistics in a separate file.
  13412. The file name is generated by appending a suffix ending in
  13413. '.statistics' to the source file name, and the file is created in
  13414. the same directory as the output file. If the '-OPTION' form is
  13415. used, '-stats' causes counters to be summed over the whole
  13416. compilation unit while '-details' dumps every event as the passes
  13417. generate them. The default with no option is to sum counters for
  13418. each function compiled.
  13419. '-fdump-tree-all'
  13420. '-fdump-tree-SWITCH'
  13421. '-fdump-tree-SWITCH-OPTIONS'
  13422. '-fdump-tree-SWITCH-OPTIONS=FILENAME'
  13423. Control the dumping at various stages of processing the
  13424. intermediate language tree to a file. If the '-OPTIONS' form is
  13425. used, OPTIONS is a list of '-' separated options which control the
  13426. details of the dump. Not all options are applicable to all dumps;
  13427. those that are not meaningful are ignored. The following options
  13428. are available
  13429. 'address'
  13430. Print the address of each node. Usually this is not
  13431. meaningful as it changes according to the environment and
  13432. source file. Its primary use is for tying up a dump file with
  13433. a debug environment.
  13434. 'asmname'
  13435. If 'DECL_ASSEMBLER_NAME' has been set for a given decl, use
  13436. that in the dump instead of 'DECL_NAME'. Its primary use is
  13437. ease of use working backward from mangled names in the
  13438. assembly file.
  13439. 'slim'
  13440. When dumping front-end intermediate representations, inhibit
  13441. dumping of members of a scope or body of a function merely
  13442. because that scope has been reached. Only dump such items
  13443. when they are directly reachable by some other path.
  13444. When dumping pretty-printed trees, this option inhibits
  13445. dumping the bodies of control structures.
  13446. When dumping RTL, print the RTL in slim (condensed) form
  13447. instead of the default LISP-like representation.
  13448. 'raw'
  13449. Print a raw representation of the tree. By default, trees are
  13450. pretty-printed into a C-like representation.
  13451. 'details'
  13452. Enable more detailed dumps (not honored by every dump option).
  13453. Also include information from the optimization passes.
  13454. 'stats'
  13455. Enable dumping various statistics about the pass (not honored
  13456. by every dump option).
  13457. 'blocks'
  13458. Enable showing basic block boundaries (disabled in raw dumps).
  13459. 'graph'
  13460. For each of the other indicated dump files
  13461. ('-fdump-rtl-PASS'), dump a representation of the control flow
  13462. graph suitable for viewing with GraphViz to
  13463. 'FILE.PASSID.PASS.dot'. Each function in the file is
  13464. pretty-printed as a subgraph, so that GraphViz can render them
  13465. all in a single plot.
  13466. This option currently only works for RTL dumps, and the RTL is
  13467. always dumped in slim form.
  13468. 'vops'
  13469. Enable showing virtual operands for every statement.
  13470. 'lineno'
  13471. Enable showing line numbers for statements.
  13472. 'uid'
  13473. Enable showing the unique ID ('DECL_UID') for each variable.
  13474. 'verbose'
  13475. Enable showing the tree dump for each statement.
  13476. 'eh'
  13477. Enable showing the EH region number holding each statement.
  13478. 'scev'
  13479. Enable showing scalar evolution analysis details.
  13480. 'optimized'
  13481. Enable showing optimization information (only available in
  13482. certain passes).
  13483. 'missed'
  13484. Enable showing missed optimization information (only available
  13485. in certain passes).
  13486. 'note'
  13487. Enable other detailed optimization information (only available
  13488. in certain passes).
  13489. 'all'
  13490. Turn on all options, except 'raw', 'slim', 'verbose' and
  13491. 'lineno'.
  13492. 'optall'
  13493. Turn on all optimization options, i.e., 'optimized', 'missed',
  13494. and 'note'.
  13495. To determine what tree dumps are available or find the dump for a
  13496. pass of interest follow the steps below.
  13497. 1. Invoke GCC with '-fdump-passes' and in the 'stderr' output
  13498. look for a code that corresponds to the pass you are
  13499. interested in. For example, the codes 'tree-evrp',
  13500. 'tree-vrp1', and 'tree-vrp2' correspond to the three Value
  13501. Range Propagation passes. The number at the end distinguishes
  13502. distinct invocations of the same pass.
  13503. 2. To enable the creation of the dump file, append the pass code
  13504. to the '-fdump-' option prefix and invoke GCC with it. For
  13505. example, to enable the dump from the Early Value Range
  13506. Propagation pass, invoke GCC with the '-fdump-tree-evrp'
  13507. option. Optionally, you may specify the name of the dump
  13508. file. If you don't specify one, GCC creates as described
  13509. below.
  13510. 3. Find the pass dump in a file whose name is composed of three
  13511. components separated by a period: the name of the source file
  13512. GCC was invoked to compile, a numeric suffix indicating the
  13513. pass number followed by the letter 't' for tree passes (and
  13514. the letter 'r' for RTL passes), and finally the pass code.
  13515. For example, the Early VRP pass dump might be in a file named
  13516. 'myfile.c.038t.evrp' in the current working directory. Note
  13517. that the numeric codes are not stable and may change from one
  13518. version of GCC to another.
  13519. '-fopt-info'
  13520. '-fopt-info-OPTIONS'
  13521. '-fopt-info-OPTIONS=FILENAME'
  13522. Controls optimization dumps from various optimization passes. If
  13523. the '-OPTIONS' form is used, OPTIONS is a list of '-' separated
  13524. option keywords to select the dump details and optimizations.
  13525. The OPTIONS can be divided into three groups:
  13526. 1. options describing what kinds of messages should be emitted,
  13527. 2. options describing the verbosity of the dump, and
  13528. 3. options describing which optimizations should be included.
  13529. The options from each group can be freely mixed as they are
  13530. non-overlapping. However, in case of any conflicts, the later
  13531. options override the earlier options on the command line.
  13532. The following options control which kinds of messages should be
  13533. emitted:
  13534. 'optimized'
  13535. Print information when an optimization is successfully
  13536. applied. It is up to a pass to decide which information is
  13537. relevant. For example, the vectorizer passes print the source
  13538. location of loops which are successfully vectorized.
  13539. 'missed'
  13540. Print information about missed optimizations. Individual
  13541. passes control which information to include in the output.
  13542. 'note'
  13543. Print verbose information about optimizations, such as certain
  13544. transformations, more detailed messages about decisions etc.
  13545. 'all'
  13546. Print detailed optimization information. This includes
  13547. 'optimized', 'missed', and 'note'.
  13548. The following option controls the dump verbosity:
  13549. 'internals'
  13550. By default, only "high-level" messages are emitted. This
  13551. option enables additional, more detailed, messages, which are
  13552. likely to only be of interest to GCC developers.
  13553. One or more of the following option keywords can be used to
  13554. describe a group of optimizations:
  13555. 'ipa'
  13556. Enable dumps from all interprocedural optimizations.
  13557. 'loop'
  13558. Enable dumps from all loop optimizations.
  13559. 'inline'
  13560. Enable dumps from all inlining optimizations.
  13561. 'omp'
  13562. Enable dumps from all OMP (Offloading and Multi Processing)
  13563. optimizations.
  13564. 'vec'
  13565. Enable dumps from all vectorization optimizations.
  13566. 'optall'
  13567. Enable dumps from all optimizations. This is a superset of
  13568. the optimization groups listed above.
  13569. If OPTIONS is omitted, it defaults to 'optimized-optall', which
  13570. means to dump messages about successful optimizations from all the
  13571. passes, omitting messages that are treated as "internals".
  13572. If the FILENAME is provided, then the dumps from all the applicable
  13573. optimizations are concatenated into the FILENAME. Otherwise the
  13574. dump is output onto 'stderr'. Though multiple '-fopt-info' options
  13575. are accepted, only one of them can include a FILENAME. If other
  13576. filenames are provided then all but the first such option are
  13577. ignored.
  13578. Note that the output FILENAME is overwritten in case of multiple
  13579. translation units. If a combined output from multiple translation
  13580. units is desired, 'stderr' should be used instead.
  13581. In the following example, the optimization info is output to
  13582. 'stderr':
  13583. gcc -O3 -fopt-info
  13584. This example:
  13585. gcc -O3 -fopt-info-missed=missed.all
  13586. outputs missed optimization report from all the passes into
  13587. 'missed.all', and this one:
  13588. gcc -O2 -ftree-vectorize -fopt-info-vec-missed
  13589. prints information about missed optimization opportunities from
  13590. vectorization passes on 'stderr'. Note that
  13591. '-fopt-info-vec-missed' is equivalent to '-fopt-info-missed-vec'.
  13592. The order of the optimization group names and message types listed
  13593. after '-fopt-info' does not matter.
  13594. As another example,
  13595. gcc -O3 -fopt-info-inline-optimized-missed=inline.txt
  13596. outputs information about missed optimizations as well as optimized
  13597. locations from all the inlining passes into 'inline.txt'.
  13598. Finally, consider:
  13599. gcc -fopt-info-vec-missed=vec.miss -fopt-info-loop-optimized=loop.opt
  13600. Here the two output filenames 'vec.miss' and 'loop.opt' are in
  13601. conflict since only one output file is allowed. In this case, only
  13602. the first option takes effect and the subsequent options are
  13603. ignored. Thus only 'vec.miss' is produced which contains dumps
  13604. from the vectorizer about missed opportunities.
  13605. '-fsave-optimization-record'
  13606. Write a SRCFILE.opt-record.json.gz file detailing what
  13607. optimizations were performed, for those optimizations that support
  13608. '-fopt-info'.
  13609. This option is experimental and the format of the data within the
  13610. compressed JSON file is subject to change.
  13611. It is roughly equivalent to a machine-readable version of
  13612. '-fopt-info-all', as a collection of messages with source file,
  13613. line number and column number, with the following additional data
  13614. for each message:
  13615. * the execution count of the code being optimized, along with
  13616. metadata about whether this was from actual profile data, or
  13617. just an estimate, allowing consumers to prioritize messages by
  13618. code hotness,
  13619. * the function name of the code being optimized, where
  13620. applicable,
  13621. * the "inlining chain" for the code being optimized, so that
  13622. when a function is inlined into several different places
  13623. (which might themselves be inlined), the reader can
  13624. distinguish between the copies,
  13625. * objects identifying those parts of the message that refer to
  13626. expressions, statements or symbol-table nodes, which of these
  13627. categories they are, and, when available, their source code
  13628. location,
  13629. * the GCC pass that emitted the message, and
  13630. * the location in GCC's own code from which the message was
  13631. emitted
  13632. Additionally, some messages are logically nested within other
  13633. messages, reflecting implementation details of the optimization
  13634. passes.
  13635. '-fsched-verbose=N'
  13636. On targets that use instruction scheduling, this option controls
  13637. the amount of debugging output the scheduler prints to the dump
  13638. files.
  13639. For N greater than zero, '-fsched-verbose' outputs the same
  13640. information as '-fdump-rtl-sched1' and '-fdump-rtl-sched2'. For N
  13641. greater than one, it also output basic block probabilities,
  13642. detailed ready list information and unit/insn info. For N greater
  13643. than two, it includes RTL at abort point, control-flow and regions
  13644. info. And for N over four, '-fsched-verbose' also includes
  13645. dependence info.
  13646. '-fenable-KIND-PASS'
  13647. '-fdisable-KIND-PASS=RANGE-LIST'
  13648. This is a set of options that are used to explicitly disable/enable
  13649. optimization passes. These options are intended for use for
  13650. debugging GCC. Compiler users should use regular options for
  13651. enabling/disabling passes instead.
  13652. '-fdisable-ipa-PASS'
  13653. Disable IPA pass PASS. PASS is the pass name. If the same
  13654. pass is statically invoked in the compiler multiple times, the
  13655. pass name should be appended with a sequential number starting
  13656. from 1.
  13657. '-fdisable-rtl-PASS'
  13658. '-fdisable-rtl-PASS=RANGE-LIST'
  13659. Disable RTL pass PASS. PASS is the pass name. If the same
  13660. pass is statically invoked in the compiler multiple times, the
  13661. pass name should be appended with a sequential number starting
  13662. from 1. RANGE-LIST is a comma-separated list of function
  13663. ranges or assembler names. Each range is a number pair
  13664. separated by a colon. The range is inclusive in both ends.
  13665. If the range is trivial, the number pair can be simplified as
  13666. a single number. If the function's call graph node's UID
  13667. falls within one of the specified ranges, the PASS is disabled
  13668. for that function. The UID is shown in the function header of
  13669. a dump file, and the pass names can be dumped by using option
  13670. '-fdump-passes'.
  13671. '-fdisable-tree-PASS'
  13672. '-fdisable-tree-PASS=RANGE-LIST'
  13673. Disable tree pass PASS. See '-fdisable-rtl' for the
  13674. description of option arguments.
  13675. '-fenable-ipa-PASS'
  13676. Enable IPA pass PASS. PASS is the pass name. If the same
  13677. pass is statically invoked in the compiler multiple times, the
  13678. pass name should be appended with a sequential number starting
  13679. from 1.
  13680. '-fenable-rtl-PASS'
  13681. '-fenable-rtl-PASS=RANGE-LIST'
  13682. Enable RTL pass PASS. See '-fdisable-rtl' for option argument
  13683. description and examples.
  13684. '-fenable-tree-PASS'
  13685. '-fenable-tree-PASS=RANGE-LIST'
  13686. Enable tree pass PASS. See '-fdisable-rtl' for the
  13687. description of option arguments.
  13688. Here are some examples showing uses of these options.
  13689. # disable ccp1 for all functions
  13690. -fdisable-tree-ccp1
  13691. # disable complete unroll for function whose cgraph node uid is 1
  13692. -fenable-tree-cunroll=1
  13693. # disable gcse2 for functions at the following ranges [1,1],
  13694. # [300,400], and [400,1000]
  13695. # disable gcse2 for functions foo and foo2
  13696. -fdisable-rtl-gcse2=foo,foo2
  13697. # disable early inlining
  13698. -fdisable-tree-einline
  13699. # disable ipa inlining
  13700. -fdisable-ipa-inline
  13701. # enable tree full unroll
  13702. -fenable-tree-unroll
  13703. '-fchecking'
  13704. '-fchecking=N'
  13705. Enable internal consistency checking. The default depends on the
  13706. compiler configuration. '-fchecking=2' enables further internal
  13707. consistency checking that might affect code generation.
  13708. '-frandom-seed=STRING'
  13709. This option provides a seed that GCC uses in place of random
  13710. numbers in generating certain symbol names that have to be
  13711. different in every compiled file. It is also used to place unique
  13712. stamps in coverage data files and the object files that produce
  13713. them. You can use the '-frandom-seed' option to produce
  13714. reproducibly identical object files.
  13715. The STRING can either be a number (decimal, octal or hex) or an
  13716. arbitrary string (in which case it's converted to a number by
  13717. computing CRC32).
  13718. The STRING should be different for every file you compile.
  13719. '-save-temps'
  13720. Store the usual "temporary" intermediate files permanently; name
  13721. them as auxiliary output files, as specified described under
  13722. '-dumpbase' and '-dumpdir'.
  13723. When used in combination with the '-x' command-line option,
  13724. '-save-temps' is sensible enough to avoid overwriting an input
  13725. source file with the same extension as an intermediate file. The
  13726. corresponding intermediate file may be obtained by renaming the
  13727. source file before using '-save-temps'.
  13728. '-save-temps=cwd'
  13729. Equivalent to '-save-temps -dumpdir ./'.
  13730. '-save-temps=obj'
  13731. Equivalent to '-save-temps -dumpdir outdir/', where 'outdir/' is
  13732. the directory of the output file specified after the '-o' option,
  13733. including any directory separators. If the '-o' option is not
  13734. used, the '-save-temps=obj' switch behaves like '-save-temps=cwd'.
  13735. '-time[=FILE]'
  13736. Report the CPU time taken by each subprocess in the compilation
  13737. sequence. For C source files, this is the compiler proper and
  13738. assembler (plus the linker if linking is done).
  13739. Without the specification of an output file, the output looks like
  13740. this:
  13741. # cc1 0.12 0.01
  13742. # as 0.00 0.01
  13743. The first number on each line is the "user time", that is time
  13744. spent executing the program itself. The second number is "system
  13745. time", time spent executing operating system routines on behalf of
  13746. the program. Both numbers are in seconds.
  13747. With the specification of an output file, the output is appended to
  13748. the named file, and it looks like this:
  13749. 0.12 0.01 cc1 OPTIONS
  13750. 0.00 0.01 as OPTIONS
  13751. The "user time" and the "system time" are moved before the program
  13752. name, and the options passed to the program are displayed, so that
  13753. one can later tell what file was being compiled, and with which
  13754. options.
  13755. '-fdump-final-insns[=FILE]'
  13756. Dump the final internal representation (RTL) to FILE. If the
  13757. optional argument is omitted (or if FILE is '.'), the name of the
  13758. dump file is determined by appending '.gkd' to the dump base name,
  13759. see '-dumpbase'.
  13760. '-fcompare-debug[=OPTS]'
  13761. If no error occurs during compilation, run the compiler a second
  13762. time, adding OPTS and '-fcompare-debug-second' to the arguments
  13763. passed to the second compilation. Dump the final internal
  13764. representation in both compilations, and print an error if they
  13765. differ.
  13766. If the equal sign is omitted, the default '-gtoggle' is used.
  13767. The environment variable 'GCC_COMPARE_DEBUG', if defined, non-empty
  13768. and nonzero, implicitly enables '-fcompare-debug'. If
  13769. 'GCC_COMPARE_DEBUG' is defined to a string starting with a dash,
  13770. then it is used for OPTS, otherwise the default '-gtoggle' is used.
  13771. '-fcompare-debug=', with the equal sign but without OPTS, is
  13772. equivalent to '-fno-compare-debug', which disables the dumping of
  13773. the final representation and the second compilation, preventing
  13774. even 'GCC_COMPARE_DEBUG' from taking effect.
  13775. To verify full coverage during '-fcompare-debug' testing, set
  13776. 'GCC_COMPARE_DEBUG' to say '-fcompare-debug-not-overridden', which
  13777. GCC rejects as an invalid option in any actual compilation (rather
  13778. than preprocessing, assembly or linking). To get just a warning,
  13779. setting 'GCC_COMPARE_DEBUG' to '-w%n-fcompare-debug not overridden'
  13780. will do.
  13781. '-fcompare-debug-second'
  13782. This option is implicitly passed to the compiler for the second
  13783. compilation requested by '-fcompare-debug', along with options to
  13784. silence warnings, and omitting other options that would cause the
  13785. compiler to produce output to files or to standard output as a side
  13786. effect. Dump files and preserved temporary files are renamed so as
  13787. to contain the '.gk' additional extension during the second
  13788. compilation, to avoid overwriting those generated by the first.
  13789. When this option is passed to the compiler driver, it causes the
  13790. _first_ compilation to be skipped, which makes it useful for little
  13791. other than debugging the compiler proper.
  13792. '-gtoggle'
  13793. Turn off generation of debug info, if leaving out this option
  13794. generates it, or turn it on at level 2 otherwise. The position of
  13795. this argument in the command line does not matter; it takes effect
  13796. after all other options are processed, and it does so only once, no
  13797. matter how many times it is given. This is mainly intended to be
  13798. used with '-fcompare-debug'.
  13799. '-fvar-tracking-assignments-toggle'
  13800. Toggle '-fvar-tracking-assignments', in the same way that
  13801. '-gtoggle' toggles '-g'.
  13802. '-Q'
  13803. Makes the compiler print out each function name as it is compiled,
  13804. and print some statistics about each pass when it finishes.
  13805. '-ftime-report'
  13806. Makes the compiler print some statistics about the time consumed by
  13807. each pass when it finishes.
  13808. '-ftime-report-details'
  13809. Record the time consumed by infrastructure parts separately for
  13810. each pass.
  13811. '-fira-verbose=N'
  13812. Control the verbosity of the dump file for the integrated register
  13813. allocator. The default value is 5. If the value N is greater or
  13814. equal to 10, the dump output is sent to stderr using the same
  13815. format as N minus 10.
  13816. '-flto-report'
  13817. Prints a report with internal details on the workings of the
  13818. link-time optimizer. The contents of this report vary from version
  13819. to version. It is meant to be useful to GCC developers when
  13820. processing object files in LTO mode (via '-flto').
  13821. Disabled by default.
  13822. '-flto-report-wpa'
  13823. Like '-flto-report', but only print for the WPA phase of link-time
  13824. optimization.
  13825. '-fmem-report'
  13826. Makes the compiler print some statistics about permanent memory
  13827. allocation when it finishes.
  13828. '-fmem-report-wpa'
  13829. Makes the compiler print some statistics about permanent memory
  13830. allocation for the WPA phase only.
  13831. '-fpre-ipa-mem-report'
  13832. '-fpost-ipa-mem-report'
  13833. Makes the compiler print some statistics about permanent memory
  13834. allocation before or after interprocedural optimization.
  13835. '-fprofile-report'
  13836. Makes the compiler print some statistics about consistency of the
  13837. (estimated) profile and effect of individual passes.
  13838. '-fstack-usage'
  13839. Makes the compiler output stack usage information for the program,
  13840. on a per-function basis. The filename for the dump is made by
  13841. appending '.su' to the AUXNAME. AUXNAME is generated from the name
  13842. of the output file, if explicitly specified and it is not an
  13843. executable, otherwise it is the basename of the source file. An
  13844. entry is made up of three fields:
  13845. * The name of the function.
  13846. * A number of bytes.
  13847. * One or more qualifiers: 'static', 'dynamic', 'bounded'.
  13848. The qualifier 'static' means that the function manipulates the
  13849. stack statically: a fixed number of bytes are allocated for the
  13850. frame on function entry and released on function exit; no stack
  13851. adjustments are otherwise made in the function. The second field
  13852. is this fixed number of bytes.
  13853. The qualifier 'dynamic' means that the function manipulates the
  13854. stack dynamically: in addition to the static allocation described
  13855. above, stack adjustments are made in the body of the function, for
  13856. example to push/pop arguments around function calls. If the
  13857. qualifier 'bounded' is also present, the amount of these
  13858. adjustments is bounded at compile time and the second field is an
  13859. upper bound of the total amount of stack used by the function. If
  13860. it is not present, the amount of these adjustments is not bounded
  13861. at compile time and the second field only represents the bounded
  13862. part.
  13863. '-fstats'
  13864. Emit statistics about front-end processing at the end of the
  13865. compilation. This option is supported only by the C++ front end,
  13866. and the information is generally only useful to the G++ development
  13867. team.
  13868. '-fdbg-cnt-list'
  13869. Print the name and the counter upper bound for all debug counters.
  13870. '-fdbg-cnt=COUNTER-VALUE-LIST'
  13871. Set the internal debug counter lower and upper bound.
  13872. COUNTER-VALUE-LIST is a comma-separated list of
  13873. NAME:LOWER_BOUND1-UPPER_BOUND1 [:LOWER_BOUND2-UPPER_BOUND2...]
  13874. tuples which sets the name of the counter and list of closed
  13875. intervals. The LOWER_BOUND is optional and is zero initialized if
  13876. not set. For example, with '-fdbg-cnt=dce:2-4:10-11,tail_call:10',
  13877. 'dbg_cnt(dce)' returns true only for second, third, fourth, tenth
  13878. and eleventh invocation. For 'dbg_cnt(tail_call)' true is returned
  13879. for first 10 invocations.
  13880. '-print-file-name=LIBRARY'
  13881. Print the full absolute name of the library file LIBRARY that would
  13882. be used when linking--and don't do anything else. With this
  13883. option, GCC does not compile or link anything; it just prints the
  13884. file name.
  13885. '-print-multi-directory'
  13886. Print the directory name corresponding to the multilib selected by
  13887. any other switches present in the command line. This directory is
  13888. supposed to exist in 'GCC_EXEC_PREFIX'.
  13889. '-print-multi-lib'
  13890. Print the mapping from multilib directory names to compiler
  13891. switches that enable them. The directory name is separated from
  13892. the switches by ';', and each switch starts with an '@' instead of
  13893. the '-', without spaces between multiple switches. This is
  13894. supposed to ease shell processing.
  13895. '-print-multi-os-directory'
  13896. Print the path to OS libraries for the selected multilib, relative
  13897. to some 'lib' subdirectory. If OS libraries are present in the
  13898. 'lib' subdirectory and no multilibs are used, this is usually just
  13899. '.', if OS libraries are present in 'libSUFFIX' sibling directories
  13900. this prints e.g. '../lib64', '../lib' or '../lib32', or if OS
  13901. libraries are present in 'lib/SUBDIR' subdirectories it prints e.g.
  13902. 'amd64', 'sparcv9' or 'ev6'.
  13903. '-print-multiarch'
  13904. Print the path to OS libraries for the selected multiarch, relative
  13905. to some 'lib' subdirectory.
  13906. '-print-prog-name=PROGRAM'
  13907. Like '-print-file-name', but searches for a program such as 'cpp'.
  13908. '-print-libgcc-file-name'
  13909. Same as '-print-file-name=libgcc.a'.
  13910. This is useful when you use '-nostdlib' or '-nodefaultlibs' but you
  13911. do want to link with 'libgcc.a'. You can do:
  13912. gcc -nostdlib FILES... `gcc -print-libgcc-file-name`
  13913. '-print-search-dirs'
  13914. Print the name of the configured installation directory and a list
  13915. of program and library directories 'gcc' searches--and don't do
  13916. anything else.
  13917. This is useful when 'gcc' prints the error message 'installation
  13918. problem, cannot exec cpp0: No such file or directory'. To resolve
  13919. this you either need to put 'cpp0' and the other compiler
  13920. components where 'gcc' expects to find them, or you can set the
  13921. environment variable 'GCC_EXEC_PREFIX' to the directory where you
  13922. installed them. Don't forget the trailing '/'. *Note Environment
  13923. Variables::.
  13924. '-print-sysroot'
  13925. Print the target sysroot directory that is used during compilation.
  13926. This is the target sysroot specified either at configure time or
  13927. using the '--sysroot' option, possibly with an extra suffix that
  13928. depends on compilation options. If no target sysroot is specified,
  13929. the option prints nothing.
  13930. '-print-sysroot-headers-suffix'
  13931. Print the suffix added to the target sysroot when searching for
  13932. headers, or give an error if the compiler is not configured with
  13933. such a suffix--and don't do anything else.
  13934. '-dumpmachine'
  13935. Print the compiler's target machine (for example,
  13936. 'i686-pc-linux-gnu')--and don't do anything else.
  13937. '-dumpversion'
  13938. Print the compiler version (for example, '3.0', '6.3.0' or
  13939. '7')--and don't do anything else. This is the compiler version
  13940. used in filesystem paths and specs. Depending on how the compiler
  13941. has been configured it can be just a single number (major version),
  13942. two numbers separated by a dot (major and minor version) or three
  13943. numbers separated by dots (major, minor and patchlevel version).
  13944. '-dumpfullversion'
  13945. Print the full compiler version--and don't do anything else. The
  13946. output is always three numbers separated by dots, major, minor and
  13947. patchlevel version.
  13948. '-dumpspecs'
  13949. Print the compiler's built-in specs--and don't do anything else.
  13950. (This is used when GCC itself is being built.) *Note Spec Files::.
  13951. 
  13952. File: gcc.info, Node: Submodel Options, Next: Spec Files, Prev: Developer Options, Up: Invoking GCC
  13953. 3.19 Machine-Dependent Options
  13954. ==============================
  13955. Each target machine supported by GCC can have its own options--for
  13956. example, to allow you to compile for a particular processor variant or
  13957. ABI, or to control optimizations specific to that machine. By
  13958. convention, the names of machine-specific options start with '-m'.
  13959. Some configurations of the compiler also support additional
  13960. target-specific options, usually for compatibility with other compilers
  13961. on the same platform.
  13962. * Menu:
  13963. * AArch64 Options::
  13964. * Adapteva Epiphany Options::
  13965. * AMD GCN Options::
  13966. * ARC Options::
  13967. * ARM Options::
  13968. * AVR Options::
  13969. * Blackfin Options::
  13970. * C6X Options::
  13971. * CRIS Options::
  13972. * CR16 Options::
  13973. * C-SKY Options::
  13974. * Darwin Options::
  13975. * DEC Alpha Options::
  13976. * eBPF Options::
  13977. * FR30 Options::
  13978. * FT32 Options::
  13979. * FRV Options::
  13980. * GNU/Linux Options::
  13981. * H8/300 Options::
  13982. * HPPA Options::
  13983. * IA-64 Options::
  13984. * LM32 Options::
  13985. * M32C Options::
  13986. * M32R/D Options::
  13987. * M680x0 Options::
  13988. * MCore Options::
  13989. * MeP Options::
  13990. * MicroBlaze Options::
  13991. * MIPS Options::
  13992. * MMIX Options::
  13993. * MN10300 Options::
  13994. * Moxie Options::
  13995. * MSP430 Options::
  13996. * NDS32 Options::
  13997. * Nios II Options::
  13998. * Nvidia PTX Options::
  13999. * OpenRISC Options::
  14000. * PDP-11 Options::
  14001. * picoChip Options::
  14002. * PowerPC Options::
  14003. * PRU Options::
  14004. * RISC-V Options::
  14005. * RL78 Options::
  14006. * RS/6000 and PowerPC Options::
  14007. * RX Options::
  14008. * S/390 and zSeries Options::
  14009. * Score Options::
  14010. * SH Options::
  14011. * Solaris 2 Options::
  14012. * SPARC Options::
  14013. * System V Options::
  14014. * TILE-Gx Options::
  14015. * TILEPro Options::
  14016. * V850 Options::
  14017. * VAX Options::
  14018. * Visium Options::
  14019. * VMS Options::
  14020. * VxWorks Options::
  14021. * x86 Options::
  14022. * x86 Windows Options::
  14023. * Xstormy16 Options::
  14024. * Xtensa Options::
  14025. * zSeries Options::
  14026. 
  14027. File: gcc.info, Node: AArch64 Options, Next: Adapteva Epiphany Options, Up: Submodel Options
  14028. 3.19.1 AArch64 Options
  14029. ----------------------
  14030. These options are defined for AArch64 implementations:
  14031. '-mabi=NAME'
  14032. Generate code for the specified data model. Permissible values are
  14033. 'ilp32' for SysV-like data model where int, long int and pointers
  14034. are 32 bits, and 'lp64' for SysV-like data model where int is 32
  14035. bits, but long int and pointers are 64 bits.
  14036. The default depends on the specific target configuration. Note
  14037. that the LP64 and ILP32 ABIs are not link-compatible; you must
  14038. compile your entire program with the same ABI, and link with a
  14039. compatible set of libraries.
  14040. '-mbig-endian'
  14041. Generate big-endian code. This is the default when GCC is
  14042. configured for an 'aarch64_be-*-*' target.
  14043. '-mgeneral-regs-only'
  14044. Generate code which uses only the general-purpose registers. This
  14045. will prevent the compiler from using floating-point and Advanced
  14046. SIMD registers but will not impose any restrictions on the
  14047. assembler.
  14048. '-mlittle-endian'
  14049. Generate little-endian code. This is the default when GCC is
  14050. configured for an 'aarch64-*-*' but not an 'aarch64_be-*-*' target.
  14051. '-mcmodel=tiny'
  14052. Generate code for the tiny code model. The program and its
  14053. statically defined symbols must be within 1MB of each other.
  14054. Programs can be statically or dynamically linked.
  14055. '-mcmodel=small'
  14056. Generate code for the small code model. The program and its
  14057. statically defined symbols must be within 4GB of each other.
  14058. Programs can be statically or dynamically linked. This is the
  14059. default code model.
  14060. '-mcmodel=large'
  14061. Generate code for the large code model. This makes no assumptions
  14062. about addresses and sizes of sections. Programs can be statically
  14063. linked only. The '-mcmodel=large' option is incompatible with
  14064. '-mabi=ilp32', '-fpic' and '-fPIC'.
  14065. '-mstrict-align'
  14066. '-mno-strict-align'
  14067. Avoid or allow generating memory accesses that may not be aligned
  14068. on a natural object boundary as described in the architecture
  14069. specification.
  14070. '-momit-leaf-frame-pointer'
  14071. '-mno-omit-leaf-frame-pointer'
  14072. Omit or keep the frame pointer in leaf functions. The former
  14073. behavior is the default.
  14074. '-mstack-protector-guard=GUARD'
  14075. '-mstack-protector-guard-reg=REG'
  14076. '-mstack-protector-guard-offset=OFFSET'
  14077. Generate stack protection code using canary at GUARD. Supported
  14078. locations are 'global' for a global canary or 'sysreg' for a canary
  14079. in an appropriate system register.
  14080. With the latter choice the options
  14081. '-mstack-protector-guard-reg=REG' and
  14082. '-mstack-protector-guard-offset=OFFSET' furthermore specify which
  14083. system register to use as base register for reading the canary, and
  14084. from what offset from that base register. There is no default
  14085. register or offset as this is entirely for use within the Linux
  14086. kernel.
  14087. '-mtls-dialect=desc'
  14088. Use TLS descriptors as the thread-local storage mechanism for
  14089. dynamic accesses of TLS variables. This is the default.
  14090. '-mtls-dialect=traditional'
  14091. Use traditional TLS as the thread-local storage mechanism for
  14092. dynamic accesses of TLS variables.
  14093. '-mtls-size=SIZE'
  14094. Specify bit size of immediate TLS offsets. Valid values are 12,
  14095. 24, 32, 48. This option requires binutils 2.26 or newer.
  14096. '-mfix-cortex-a53-835769'
  14097. '-mno-fix-cortex-a53-835769'
  14098. Enable or disable the workaround for the ARM Cortex-A53 erratum
  14099. number 835769. This involves inserting a NOP instruction between
  14100. memory instructions and 64-bit integer multiply-accumulate
  14101. instructions.
  14102. '-mfix-cortex-a53-843419'
  14103. '-mno-fix-cortex-a53-843419'
  14104. Enable or disable the workaround for the ARM Cortex-A53 erratum
  14105. number 843419. This erratum workaround is made at link time and
  14106. this will only pass the corresponding flag to the linker.
  14107. '-mlow-precision-recip-sqrt'
  14108. '-mno-low-precision-recip-sqrt'
  14109. Enable or disable the reciprocal square root approximation. This
  14110. option only has an effect if '-ffast-math' or
  14111. '-funsafe-math-optimizations' is used as well. Enabling this
  14112. reduces precision of reciprocal square root results to about 16
  14113. bits for single precision and to 32 bits for double precision.
  14114. '-mlow-precision-sqrt'
  14115. '-mno-low-precision-sqrt'
  14116. Enable or disable the square root approximation. This option only
  14117. has an effect if '-ffast-math' or '-funsafe-math-optimizations' is
  14118. used as well. Enabling this reduces precision of square root
  14119. results to about 16 bits for single precision and to 32 bits for
  14120. double precision. If enabled, it implies
  14121. '-mlow-precision-recip-sqrt'.
  14122. '-mlow-precision-div'
  14123. '-mno-low-precision-div'
  14124. Enable or disable the division approximation. This option only has
  14125. an effect if '-ffast-math' or '-funsafe-math-optimizations' is used
  14126. as well. Enabling this reduces precision of division results to
  14127. about 16 bits for single precision and to 32 bits for double
  14128. precision.
  14129. '-mtrack-speculation'
  14130. '-mno-track-speculation'
  14131. Enable or disable generation of additional code to track
  14132. speculative execution through conditional branches. The tracking
  14133. state can then be used by the compiler when expanding calls to
  14134. '__builtin_speculation_safe_copy' to permit a more efficient code
  14135. sequence to be generated.
  14136. '-moutline-atomics'
  14137. '-mno-outline-atomics'
  14138. Enable or disable calls to out-of-line helpers to implement atomic
  14139. operations. These helpers will, at runtime, determine if the LSE
  14140. instructions from ARMv8.1-A can be used; if not, they will use the
  14141. load/store-exclusive instructions that are present in the base
  14142. ARMv8.0 ISA.
  14143. This option is only applicable when compiling for the base ARMv8.0
  14144. instruction set. If using a later revision, e.g.
  14145. '-march=armv8.1-a' or '-march=armv8-a+lse', the ARMv8.1-Atomics
  14146. instructions will be used directly. The same applies when using
  14147. '-mcpu=' when the selected cpu supports the 'lse' feature. This
  14148. option is on by default.
  14149. '-march=NAME'
  14150. Specify the name of the target architecture and, optionally, one or
  14151. more feature modifiers. This option has the form
  14152. '-march=ARCH{+[no]FEATURE}*'.
  14153. The table below summarizes the permissible values for ARCH and the
  14154. features that they enable by default:
  14155. ARCH value Architecture Includes by default
  14156. --------------------------------------------------------------------------
  14157. 'armv8-a' Armv8-A '+fp', '+simd'
  14158. 'armv8.1-a' Armv8.1-A 'armv8-a', '+crc', '+lse', '+rdma'
  14159. 'armv8.2-a' Armv8.2-A 'armv8.1-a'
  14160. 'armv8.3-a' Armv8.3-A 'armv8.2-a', '+pauth'
  14161. 'armv8.4-a' Armv8.4-A 'armv8.3-a', '+flagm', '+fp16fml',
  14162. '+dotprod'
  14163. 'armv8.5-a' Armv8.5-A 'armv8.4-a', '+sb', '+ssbs', '+predres'
  14164. 'armv8.6-a' Armv8.6-A 'armv8.5-a', '+bf16', '+i8mm'
  14165. 'armv8-r' Armv8-R 'armv8-r'
  14166. The value 'native' is available on native AArch64 GNU/Linux and
  14167. causes the compiler to pick the architecture of the host system.
  14168. This option has no effect if the compiler is unable to recognize
  14169. the architecture of the host system,
  14170. The permissible values for FEATURE are listed in the sub-section on
  14171. *note '-march' and '-mcpu' Feature Modifiers:
  14172. aarch64-feature-modifiers. Where conflicting feature modifiers are
  14173. specified, the right-most feature is used.
  14174. GCC uses NAME to determine what kind of instructions it can emit
  14175. when generating assembly code. If '-march' is specified without
  14176. either of '-mtune' or '-mcpu' also being specified, the code is
  14177. tuned to perform well across a range of target processors
  14178. implementing the target architecture.
  14179. '-mtune=NAME'
  14180. Specify the name of the target processor for which GCC should tune
  14181. the performance of the code. Permissible values for this option
  14182. are: 'generic', 'cortex-a35', 'cortex-a53', 'cortex-a55',
  14183. 'cortex-a57', 'cortex-a72', 'cortex-a73', 'cortex-a75',
  14184. 'cortex-a76', 'cortex-a76ae', 'cortex-a77', 'cortex-a65',
  14185. 'cortex-a65ae', 'cortex-a34', 'cortex-a78', 'cortex-a78ae',
  14186. 'cortex-a78c', 'ares', 'exynos-m1', 'emag', 'falkor',
  14187. 'neoverse-e1', 'neoverse-n1', 'neoverse-n2', 'neoverse-v1',
  14188. 'qdf24xx', 'saphira', 'phecda', 'xgene1', 'vulcan', 'octeontx',
  14189. 'octeontx81', 'octeontx83', 'octeontx2', 'octeontx2t98',
  14190. 'octeontx2t96' 'octeontx2t93', 'octeontx2f95', 'octeontx2f95n',
  14191. 'octeontx2f95mm', 'a64fx', 'thunderx', 'thunderxt88',
  14192. 'thunderxt88p1', 'thunderxt81', 'tsv110', 'thunderxt83',
  14193. 'thunderx2t99', 'thunderx3t110', 'zeus', 'cortex-a57.cortex-a53',
  14194. 'cortex-a72.cortex-a53', 'cortex-a73.cortex-a35',
  14195. 'cortex-a73.cortex-a53', 'cortex-a75.cortex-a55',
  14196. 'cortex-a76.cortex-a55', 'cortex-r82', 'cortex-x1', 'native'.
  14197. The values 'cortex-a57.cortex-a53', 'cortex-a72.cortex-a53',
  14198. 'cortex-a73.cortex-a35', 'cortex-a73.cortex-a53',
  14199. 'cortex-a75.cortex-a55', 'cortex-a76.cortex-a55' specify that GCC
  14200. should tune for a big.LITTLE system.
  14201. Additionally on native AArch64 GNU/Linux systems the value 'native'
  14202. tunes performance to the host system. This option has no effect if
  14203. the compiler is unable to recognize the processor of the host
  14204. system.
  14205. Where none of '-mtune=', '-mcpu=' or '-march=' are specified, the
  14206. code is tuned to perform well across a range of target processors.
  14207. This option cannot be suffixed by feature modifiers.
  14208. '-mcpu=NAME'
  14209. Specify the name of the target processor, optionally suffixed by
  14210. one or more feature modifiers. This option has the form
  14211. '-mcpu=CPU{+[no]FEATURE}*', where the permissible values for CPU
  14212. are the same as those available for '-mtune'. The permissible
  14213. values for FEATURE are documented in the sub-section on *note
  14214. '-march' and '-mcpu' Feature Modifiers: aarch64-feature-modifiers.
  14215. Where conflicting feature modifiers are specified, the right-most
  14216. feature is used.
  14217. GCC uses NAME to determine what kind of instructions it can emit
  14218. when generating assembly code (as if by '-march') and to determine
  14219. the target processor for which to tune for performance (as if by
  14220. '-mtune'). Where this option is used in conjunction with '-march'
  14221. or '-mtune', those options take precedence over the appropriate
  14222. part of this option.
  14223. '-moverride=STRING'
  14224. Override tuning decisions made by the back-end in response to a
  14225. '-mtune=' switch. The syntax, semantics, and accepted values for
  14226. STRING in this option are not guaranteed to be consistent across
  14227. releases.
  14228. This option is only intended to be useful when developing GCC.
  14229. '-mverbose-cost-dump'
  14230. Enable verbose cost model dumping in the debug dump files. This
  14231. option is provided for use in debugging the compiler.
  14232. '-mpc-relative-literal-loads'
  14233. '-mno-pc-relative-literal-loads'
  14234. Enable or disable PC-relative literal loads. With this option
  14235. literal pools are accessed using a single instruction and emitted
  14236. after each function. This limits the maximum size of functions to
  14237. 1MB. This is enabled by default for '-mcmodel=tiny'.
  14238. '-msign-return-address=SCOPE'
  14239. Select the function scope on which return address signing will be
  14240. applied. Permissible values are 'none', which disables return
  14241. address signing, 'non-leaf', which enables pointer signing for
  14242. functions which are not leaf functions, and 'all', which enables
  14243. pointer signing for all functions. The default value is 'none'.
  14244. This option has been deprecated by -mbranch-protection.
  14245. '-mbranch-protection=NONE|STANDARD|PAC-RET[+LEAF+B-KEY]|BTI'
  14246. Select the branch protection features to use. 'none' is the
  14247. default and turns off all types of branch protection. 'standard'
  14248. turns on all types of branch protection features. If a feature has
  14249. additional tuning options, then 'standard' sets it to its standard
  14250. level. 'pac-ret[+LEAF]' turns on return address signing to its
  14251. standard level: signing functions that save the return address to
  14252. memory (non-leaf functions will practically always do this) using
  14253. the a-key. The optional argument 'leaf' can be used to extend the
  14254. signing to include leaf functions. The optional argument 'b-key'
  14255. can be used to sign the functions with the B-key instead of the
  14256. A-key. 'bti' turns on branch target identification mechanism.
  14257. '-mharden-sls=OPTS'
  14258. Enable compiler hardening against straight line speculation (SLS).
  14259. OPTS is a comma-separated list of the following options:
  14260. 'retbr'
  14261. 'blr'
  14262. In addition, '-mharden-sls=all' enables all SLS hardening while
  14263. '-mharden-sls=none' disables all SLS hardening.
  14264. '-msve-vector-bits=BITS'
  14265. Specify the number of bits in an SVE vector register. This option
  14266. only has an effect when SVE is enabled.
  14267. GCC supports two forms of SVE code generation: "vector-length
  14268. agnostic" output that works with any size of vector register and
  14269. "vector-length specific" output that allows GCC to make assumptions
  14270. about the vector length when it is useful for optimization reasons.
  14271. The possible values of 'bits' are: 'scalable', '128', '256', '512',
  14272. '1024' and '2048'. Specifying 'scalable' selects vector-length
  14273. agnostic output. At present '-msve-vector-bits=128' also generates
  14274. vector-length agnostic output for big-endian targets. All other
  14275. values generate vector-length specific code. The behavior of these
  14276. values may change in future releases and no value except 'scalable'
  14277. should be relied on for producing code that is portable across
  14278. different hardware SVE vector lengths.
  14279. The default is '-msve-vector-bits=scalable', which produces
  14280. vector-length agnostic code.
  14281. 3.19.1.1 '-march' and '-mcpu' Feature Modifiers
  14282. ...............................................
  14283. Feature modifiers used with '-march' and '-mcpu' can be any of the
  14284. following and their inverses 'noFEATURE':
  14285. 'crc'
  14286. Enable CRC extension. This is on by default for
  14287. '-march=armv8.1-a'.
  14288. 'crypto'
  14289. Enable Crypto extension. This also enables Advanced SIMD and
  14290. floating-point instructions.
  14291. 'fp'
  14292. Enable floating-point instructions. This is on by default for all
  14293. possible values for options '-march' and '-mcpu'.
  14294. 'simd'
  14295. Enable Advanced SIMD instructions. This also enables
  14296. floating-point instructions. This is on by default for all
  14297. possible values for options '-march' and '-mcpu'.
  14298. 'sve'
  14299. Enable Scalable Vector Extension instructions. This also enables
  14300. Advanced SIMD and floating-point instructions.
  14301. 'lse'
  14302. Enable Large System Extension instructions. This is on by default
  14303. for '-march=armv8.1-a'.
  14304. 'rdma'
  14305. Enable Round Double Multiply Accumulate instructions. This is on
  14306. by default for '-march=armv8.1-a'.
  14307. 'fp16'
  14308. Enable FP16 extension. This also enables floating-point
  14309. instructions.
  14310. 'fp16fml'
  14311. Enable FP16 fmla extension. This also enables FP16 extensions and
  14312. floating-point instructions. This option is enabled by default for
  14313. '-march=armv8.4-a'. Use of this option with architectures prior to
  14314. Armv8.2-A is not supported.
  14315. 'rcpc'
  14316. Enable the RcPc extension. This does not change code generation
  14317. from GCC, but is passed on to the assembler, enabling inline asm
  14318. statements to use instructions from the RcPc extension.
  14319. 'dotprod'
  14320. Enable the Dot Product extension. This also enables Advanced SIMD
  14321. instructions.
  14322. 'aes'
  14323. Enable the Armv8-a aes and pmull crypto extension. This also
  14324. enables Advanced SIMD instructions.
  14325. 'sha2'
  14326. Enable the Armv8-a sha2 crypto extension. This also enables
  14327. Advanced SIMD instructions.
  14328. 'sha3'
  14329. Enable the sha512 and sha3 crypto extension. This also enables
  14330. Advanced SIMD instructions. Use of this option with architectures
  14331. prior to Armv8.2-A is not supported.
  14332. 'sm4'
  14333. Enable the sm3 and sm4 crypto extension. This also enables
  14334. Advanced SIMD instructions. Use of this option with architectures
  14335. prior to Armv8.2-A is not supported.
  14336. 'profile'
  14337. Enable the Statistical Profiling extension. This option is only to
  14338. enable the extension at the assembler level and does not affect
  14339. code generation.
  14340. 'rng'
  14341. Enable the Armv8.5-a Random Number instructions. This option is
  14342. only to enable the extension at the assembler level and does not
  14343. affect code generation.
  14344. 'memtag'
  14345. Enable the Armv8.5-a Memory Tagging Extensions. Use of this option
  14346. with architectures prior to Armv8.5-A is not supported.
  14347. 'sb'
  14348. Enable the Armv8-a Speculation Barrier instruction. This option is
  14349. only to enable the extension at the assembler level and does not
  14350. affect code generation. This option is enabled by default for
  14351. '-march=armv8.5-a'.
  14352. 'ssbs'
  14353. Enable the Armv8-a Speculative Store Bypass Safe instruction. This
  14354. option is only to enable the extension at the assembler level and
  14355. does not affect code generation. This option is enabled by default
  14356. for '-march=armv8.5-a'.
  14357. 'predres'
  14358. Enable the Armv8-a Execution and Data Prediction Restriction
  14359. instructions. This option is only to enable the extension at the
  14360. assembler level and does not affect code generation. This option
  14361. is enabled by default for '-march=armv8.5-a'.
  14362. 'sve2'
  14363. Enable the Armv8-a Scalable Vector Extension 2. This also enables
  14364. SVE instructions.
  14365. 'sve2-bitperm'
  14366. Enable SVE2 bitperm instructions. This also enables SVE2
  14367. instructions.
  14368. 'sve2-sm4'
  14369. Enable SVE2 sm4 instructions. This also enables SVE2 instructions.
  14370. 'sve2-aes'
  14371. Enable SVE2 aes instructions. This also enables SVE2 instructions.
  14372. 'sve2-sha3'
  14373. Enable SVE2 sha3 instructions. This also enables SVE2
  14374. instructions.
  14375. 'tme'
  14376. Enable the Transactional Memory Extension.
  14377. 'i8mm'
  14378. Enable 8-bit Integer Matrix Multiply instructions. This also
  14379. enables Advanced SIMD and floating-point instructions. This option
  14380. is enabled by default for '-march=armv8.6-a'. Use of this option
  14381. with architectures prior to Armv8.2-A is not supported.
  14382. 'f32mm'
  14383. Enable 32-bit Floating point Matrix Multiply instructions. This
  14384. also enables SVE instructions. Use of this option with
  14385. architectures prior to Armv8.2-A is not supported.
  14386. 'f64mm'
  14387. Enable 64-bit Floating point Matrix Multiply instructions. This
  14388. also enables SVE instructions. Use of this option with
  14389. architectures prior to Armv8.2-A is not supported.
  14390. 'bf16'
  14391. Enable brain half-precision floating-point instructions. This also
  14392. enables Advanced SIMD and floating-point instructions. This option
  14393. is enabled by default for '-march=armv8.6-a'. Use of this option
  14394. with architectures prior to Armv8.2-A is not supported.
  14395. 'flagm'
  14396. Enable the Flag Manipulation instructions Extension.
  14397. 'pauth'
  14398. Enable the Pointer Authentication Extension.
  14399. Feature 'crypto' implies 'aes', 'sha2', and 'simd', which implies 'fp'.
  14400. Conversely, 'nofp' implies 'nosimd', which implies 'nocrypto', 'noaes'
  14401. and 'nosha2'.
  14402. 
  14403. File: gcc.info, Node: Adapteva Epiphany Options, Next: AMD GCN Options, Prev: AArch64 Options, Up: Submodel Options
  14404. 3.19.2 Adapteva Epiphany Options
  14405. --------------------------------
  14406. These '-m' options are defined for Adapteva Epiphany:
  14407. '-mhalf-reg-file'
  14408. Don't allocate any register in the range 'r32'...'r63'. That
  14409. allows code to run on hardware variants that lack these registers.
  14410. '-mprefer-short-insn-regs'
  14411. Preferentially allocate registers that allow short instruction
  14412. generation. This can result in increased instruction count, so
  14413. this may either reduce or increase overall code size.
  14414. '-mbranch-cost=NUM'
  14415. Set the cost of branches to roughly NUM "simple" instructions.
  14416. This cost is only a heuristic and is not guaranteed to produce
  14417. consistent results across releases.
  14418. '-mcmove'
  14419. Enable the generation of conditional moves.
  14420. '-mnops=NUM'
  14421. Emit NUM NOPs before every other generated instruction.
  14422. '-mno-soft-cmpsf'
  14423. For single-precision floating-point comparisons, emit an 'fsub'
  14424. instruction and test the flags. This is faster than a software
  14425. comparison, but can get incorrect results in the presence of NaNs,
  14426. or when two different small numbers are compared such that their
  14427. difference is calculated as zero. The default is '-msoft-cmpsf',
  14428. which uses slower, but IEEE-compliant, software comparisons.
  14429. '-mstack-offset=NUM'
  14430. Set the offset between the top of the stack and the stack pointer.
  14431. E.g., a value of 8 means that the eight bytes in the range
  14432. 'sp+0...sp+7' can be used by leaf functions without stack
  14433. allocation. Values other than '8' or '16' are untested and
  14434. unlikely to work. Note also that this option changes the ABI;
  14435. compiling a program with a different stack offset than the
  14436. libraries have been compiled with generally does not work. This
  14437. option can be useful if you want to evaluate if a different stack
  14438. offset would give you better code, but to actually use a different
  14439. stack offset to build working programs, it is recommended to
  14440. configure the toolchain with the appropriate
  14441. '--with-stack-offset=NUM' option.
  14442. '-mno-round-nearest'
  14443. Make the scheduler assume that the rounding mode has been set to
  14444. truncating. The default is '-mround-nearest'.
  14445. '-mlong-calls'
  14446. If not otherwise specified by an attribute, assume all calls might
  14447. be beyond the offset range of the 'b' / 'bl' instructions, and
  14448. therefore load the function address into a register before
  14449. performing a (otherwise direct) call. This is the default.
  14450. '-mshort-calls'
  14451. If not otherwise specified by an attribute, assume all direct calls
  14452. are in the range of the 'b' / 'bl' instructions, so use these
  14453. instructions for direct calls. The default is '-mlong-calls'.
  14454. '-msmall16'
  14455. Assume addresses can be loaded as 16-bit unsigned values. This
  14456. does not apply to function addresses for which '-mlong-calls'
  14457. semantics are in effect.
  14458. '-mfp-mode=MODE'
  14459. Set the prevailing mode of the floating-point unit. This
  14460. determines the floating-point mode that is provided and expected at
  14461. function call and return time. Making this mode match the mode you
  14462. predominantly need at function start can make your programs smaller
  14463. and faster by avoiding unnecessary mode switches.
  14464. MODE can be set to one the following values:
  14465. 'caller'
  14466. Any mode at function entry is valid, and retained or restored
  14467. when the function returns, and when it calls other functions.
  14468. This mode is useful for compiling libraries or other
  14469. compilation units you might want to incorporate into different
  14470. programs with different prevailing FPU modes, and the
  14471. convenience of being able to use a single object file
  14472. outweighs the size and speed overhead for any extra mode
  14473. switching that might be needed, compared with what would be
  14474. needed with a more specific choice of prevailing FPU mode.
  14475. 'truncate'
  14476. This is the mode used for floating-point calculations with
  14477. truncating (i.e. round towards zero) rounding mode. That
  14478. includes conversion from floating point to integer.
  14479. 'round-nearest'
  14480. This is the mode used for floating-point calculations with
  14481. round-to-nearest-or-even rounding mode.
  14482. 'int'
  14483. This is the mode used to perform integer calculations in the
  14484. FPU, e.g. integer multiply, or integer
  14485. multiply-and-accumulate.
  14486. The default is '-mfp-mode=caller'
  14487. '-mno-split-lohi'
  14488. '-mno-postinc'
  14489. '-mno-postmodify'
  14490. Code generation tweaks that disable, respectively, splitting of
  14491. 32-bit loads, generation of post-increment addresses, and
  14492. generation of post-modify addresses. The defaults are
  14493. 'msplit-lohi', '-mpost-inc', and '-mpost-modify'.
  14494. '-mnovect-double'
  14495. Change the preferred SIMD mode to SImode. The default is
  14496. '-mvect-double', which uses DImode as preferred SIMD mode.
  14497. '-max-vect-align=NUM'
  14498. The maximum alignment for SIMD vector mode types. NUM may be 4 or
  14499. 8. The default is 8. Note that this is an ABI change, even though
  14500. many library function interfaces are unaffected if they don't use
  14501. SIMD vector modes in places that affect size and/or alignment of
  14502. relevant types.
  14503. '-msplit-vecmove-early'
  14504. Split vector moves into single word moves before reload. In theory
  14505. this can give better register allocation, but so far the reverse
  14506. seems to be generally the case.
  14507. '-m1reg-REG'
  14508. Specify a register to hold the constant -1, which makes loading
  14509. small negative constants and certain bitmasks faster. Allowable
  14510. values for REG are 'r43' and 'r63', which specify use of that
  14511. register as a fixed register, and 'none', which means that no
  14512. register is used for this purpose. The default is '-m1reg-none'.
  14513. 
  14514. File: gcc.info, Node: AMD GCN Options, Next: ARC Options, Prev: Adapteva Epiphany Options, Up: Submodel Options
  14515. 3.19.3 AMD GCN Options
  14516. ----------------------
  14517. These options are defined specifically for the AMD GCN port.
  14518. '-march=GPU'
  14519. '-mtune=GPU'
  14520. Set architecture type or tuning for GPU. Supported values for GPU
  14521. are
  14522. 'fiji'
  14523. Compile for GCN3 Fiji devices (gfx803).
  14524. 'gfx900'
  14525. Compile for GCN5 Vega 10 devices (gfx900).
  14526. 'gfx906'
  14527. Compile for GCN5 Vega 20 devices (gfx906).
  14528. '-mstack-size=BYTES'
  14529. Specify how many BYTES of stack space will be requested for each
  14530. GPU thread (wave-front). Beware that there may be many threads and
  14531. limited memory available. The size of the stack allocation may
  14532. also have an impact on run-time performance. The default is 32KB
  14533. when using OpenACC or OpenMP, and 1MB otherwise.
  14534. 
  14535. File: gcc.info, Node: ARC Options, Next: ARM Options, Prev: AMD GCN Options, Up: Submodel Options
  14536. 3.19.4 ARC Options
  14537. ------------------
  14538. The following options control the architecture variant for which code is
  14539. being compiled:
  14540. '-mbarrel-shifter'
  14541. Generate instructions supported by barrel shifter. This is the
  14542. default unless '-mcpu=ARC601' or '-mcpu=ARCEM' is in effect.
  14543. '-mjli-always'
  14544. Force to call a function using jli_s instruction. This option is
  14545. valid only for ARCv2 architecture.
  14546. '-mcpu=CPU'
  14547. Set architecture type, register usage, and instruction scheduling
  14548. parameters for CPU. There are also shortcut alias options
  14549. available for backward compatibility and convenience. Supported
  14550. values for CPU are
  14551. 'arc600'
  14552. Compile for ARC600. Aliases: '-mA6', '-mARC600'.
  14553. 'arc601'
  14554. Compile for ARC601. Alias: '-mARC601'.
  14555. 'arc700'
  14556. Compile for ARC700. Aliases: '-mA7', '-mARC700'. This is the
  14557. default when configured with '--with-cpu=arc700'.
  14558. 'arcem'
  14559. Compile for ARC EM.
  14560. 'archs'
  14561. Compile for ARC HS.
  14562. 'em'
  14563. Compile for ARC EM CPU with no hardware extensions.
  14564. 'em4'
  14565. Compile for ARC EM4 CPU.
  14566. 'em4_dmips'
  14567. Compile for ARC EM4 DMIPS CPU.
  14568. 'em4_fpus'
  14569. Compile for ARC EM4 DMIPS CPU with the single-precision
  14570. floating-point extension.
  14571. 'em4_fpuda'
  14572. Compile for ARC EM4 DMIPS CPU with single-precision
  14573. floating-point and double assist instructions.
  14574. 'hs'
  14575. Compile for ARC HS CPU with no hardware extensions except the
  14576. atomic instructions.
  14577. 'hs34'
  14578. Compile for ARC HS34 CPU.
  14579. 'hs38'
  14580. Compile for ARC HS38 CPU.
  14581. 'hs38_linux'
  14582. Compile for ARC HS38 CPU with all hardware extensions on.
  14583. 'arc600_norm'
  14584. Compile for ARC 600 CPU with 'norm' instructions enabled.
  14585. 'arc600_mul32x16'
  14586. Compile for ARC 600 CPU with 'norm' and 32x16-bit multiply
  14587. instructions enabled.
  14588. 'arc600_mul64'
  14589. Compile for ARC 600 CPU with 'norm' and 'mul64'-family
  14590. instructions enabled.
  14591. 'arc601_norm'
  14592. Compile for ARC 601 CPU with 'norm' instructions enabled.
  14593. 'arc601_mul32x16'
  14594. Compile for ARC 601 CPU with 'norm' and 32x16-bit multiply
  14595. instructions enabled.
  14596. 'arc601_mul64'
  14597. Compile for ARC 601 CPU with 'norm' and 'mul64'-family
  14598. instructions enabled.
  14599. 'nps400'
  14600. Compile for ARC 700 on NPS400 chip.
  14601. 'em_mini'
  14602. Compile for ARC EM minimalist configuration featuring reduced
  14603. register set.
  14604. '-mdpfp'
  14605. '-mdpfp-compact'
  14606. Generate double-precision FPX instructions, tuned for the compact
  14607. implementation.
  14608. '-mdpfp-fast'
  14609. Generate double-precision FPX instructions, tuned for the fast
  14610. implementation.
  14611. '-mno-dpfp-lrsr'
  14612. Disable 'lr' and 'sr' instructions from using FPX extension aux
  14613. registers.
  14614. '-mea'
  14615. Generate extended arithmetic instructions. Currently only 'divaw',
  14616. 'adds', 'subs', and 'sat16' are supported. Only valid for
  14617. '-mcpu=ARC700'.
  14618. '-mno-mpy'
  14619. Do not generate 'mpy'-family instructions for ARC700. This option
  14620. is deprecated.
  14621. '-mmul32x16'
  14622. Generate 32x16-bit multiply and multiply-accumulate instructions.
  14623. '-mmul64'
  14624. Generate 'mul64' and 'mulu64' instructions. Only valid for
  14625. '-mcpu=ARC600'.
  14626. '-mnorm'
  14627. Generate 'norm' instructions. This is the default if
  14628. '-mcpu=ARC700' is in effect.
  14629. '-mspfp'
  14630. '-mspfp-compact'
  14631. Generate single-precision FPX instructions, tuned for the compact
  14632. implementation.
  14633. '-mspfp-fast'
  14634. Generate single-precision FPX instructions, tuned for the fast
  14635. implementation.
  14636. '-msimd'
  14637. Enable generation of ARC SIMD instructions via target-specific
  14638. builtins. Only valid for '-mcpu=ARC700'.
  14639. '-msoft-float'
  14640. This option ignored; it is provided for compatibility purposes
  14641. only. Software floating-point code is emitted by default, and this
  14642. default can overridden by FPX options; '-mspfp', '-mspfp-compact',
  14643. or '-mspfp-fast' for single precision, and '-mdpfp',
  14644. '-mdpfp-compact', or '-mdpfp-fast' for double precision.
  14645. '-mswap'
  14646. Generate 'swap' instructions.
  14647. '-matomic'
  14648. This enables use of the locked load/store conditional extension to
  14649. implement atomic memory built-in functions. Not available for ARC
  14650. 6xx or ARC EM cores.
  14651. '-mdiv-rem'
  14652. Enable 'div' and 'rem' instructions for ARCv2 cores.
  14653. '-mcode-density'
  14654. Enable code density instructions for ARC EM. This option is on by
  14655. default for ARC HS.
  14656. '-mll64'
  14657. Enable double load/store operations for ARC HS cores.
  14658. '-mtp-regno=REGNO'
  14659. Specify thread pointer register number.
  14660. '-mmpy-option=MULTO'
  14661. Compile ARCv2 code with a multiplier design option. You can
  14662. specify the option using either a string or numeric value for
  14663. MULTO. 'wlh1' is the default value. The recognized values are:
  14664. '0'
  14665. 'none'
  14666. No multiplier available.
  14667. '1'
  14668. 'w'
  14669. 16x16 multiplier, fully pipelined. The following instructions
  14670. are enabled: 'mpyw' and 'mpyuw'.
  14671. '2'
  14672. 'wlh1'
  14673. 32x32 multiplier, fully pipelined (1 stage). The following
  14674. instructions are additionally enabled: 'mpy', 'mpyu', 'mpym',
  14675. 'mpymu', and 'mpy_s'.
  14676. '3'
  14677. 'wlh2'
  14678. 32x32 multiplier, fully pipelined (2 stages). The following
  14679. instructions are additionally enabled: 'mpy', 'mpyu', 'mpym',
  14680. 'mpymu', and 'mpy_s'.
  14681. '4'
  14682. 'wlh3'
  14683. Two 16x16 multipliers, blocking, sequential. The following
  14684. instructions are additionally enabled: 'mpy', 'mpyu', 'mpym',
  14685. 'mpymu', and 'mpy_s'.
  14686. '5'
  14687. 'wlh4'
  14688. One 16x16 multiplier, blocking, sequential. The following
  14689. instructions are additionally enabled: 'mpy', 'mpyu', 'mpym',
  14690. 'mpymu', and 'mpy_s'.
  14691. '6'
  14692. 'wlh5'
  14693. One 32x4 multiplier, blocking, sequential. The following
  14694. instructions are additionally enabled: 'mpy', 'mpyu', 'mpym',
  14695. 'mpymu', and 'mpy_s'.
  14696. '7'
  14697. 'plus_dmpy'
  14698. ARC HS SIMD support.
  14699. '8'
  14700. 'plus_macd'
  14701. ARC HS SIMD support.
  14702. '9'
  14703. 'plus_qmacw'
  14704. ARC HS SIMD support.
  14705. This option is only available for ARCv2 cores.
  14706. '-mfpu=FPU'
  14707. Enables support for specific floating-point hardware extensions for
  14708. ARCv2 cores. Supported values for FPU are:
  14709. 'fpus'
  14710. Enables support for single-precision floating-point hardware
  14711. extensions.
  14712. 'fpud'
  14713. Enables support for double-precision floating-point hardware
  14714. extensions. The single-precision floating-point extension is
  14715. also enabled. Not available for ARC EM.
  14716. 'fpuda'
  14717. Enables support for double-precision floating-point hardware
  14718. extensions using double-precision assist instructions. The
  14719. single-precision floating-point extension is also enabled.
  14720. This option is only available for ARC EM.
  14721. 'fpuda_div'
  14722. Enables support for double-precision floating-point hardware
  14723. extensions using double-precision assist instructions. The
  14724. single-precision floating-point, square-root, and divide
  14725. extensions are also enabled. This option is only available
  14726. for ARC EM.
  14727. 'fpuda_fma'
  14728. Enables support for double-precision floating-point hardware
  14729. extensions using double-precision assist instructions. The
  14730. single-precision floating-point and fused multiply and add
  14731. hardware extensions are also enabled. This option is only
  14732. available for ARC EM.
  14733. 'fpuda_all'
  14734. Enables support for double-precision floating-point hardware
  14735. extensions using double-precision assist instructions. All
  14736. single-precision floating-point hardware extensions are also
  14737. enabled. This option is only available for ARC EM.
  14738. 'fpus_div'
  14739. Enables support for single-precision floating-point,
  14740. square-root and divide hardware extensions.
  14741. 'fpud_div'
  14742. Enables support for double-precision floating-point,
  14743. square-root and divide hardware extensions. This option
  14744. includes option 'fpus_div'. Not available for ARC EM.
  14745. 'fpus_fma'
  14746. Enables support for single-precision floating-point and fused
  14747. multiply and add hardware extensions.
  14748. 'fpud_fma'
  14749. Enables support for double-precision floating-point and fused
  14750. multiply and add hardware extensions. This option includes
  14751. option 'fpus_fma'. Not available for ARC EM.
  14752. 'fpus_all'
  14753. Enables support for all single-precision floating-point
  14754. hardware extensions.
  14755. 'fpud_all'
  14756. Enables support for all single- and double-precision
  14757. floating-point hardware extensions. Not available for ARC EM.
  14758. '-mirq-ctrl-saved=REGISTER-RANGE, BLINK, LP_COUNT'
  14759. Specifies general-purposes registers that the processor
  14760. automatically saves/restores on interrupt entry and exit.
  14761. REGISTER-RANGE is specified as two registers separated by a dash.
  14762. The register range always starts with 'r0', the upper limit is 'fp'
  14763. register. BLINK and LP_COUNT are optional. This option is only
  14764. valid for ARC EM and ARC HS cores.
  14765. '-mrgf-banked-regs=NUMBER'
  14766. Specifies the number of registers replicated in second register
  14767. bank on entry to fast interrupt. Fast interrupts are interrupts
  14768. with the highest priority level P0. These interrupts save only PC
  14769. and STATUS32 registers to avoid memory transactions during
  14770. interrupt entry and exit sequences. Use this option when you are
  14771. using fast interrupts in an ARC V2 family processor. Permitted
  14772. values are 4, 8, 16, and 32.
  14773. '-mlpc-width=WIDTH'
  14774. Specify the width of the 'lp_count' register. Valid values for
  14775. WIDTH are 8, 16, 20, 24, 28 and 32 bits. The default width is
  14776. fixed to 32 bits. If the width is less than 32, the compiler does
  14777. not attempt to transform loops in your program to use the
  14778. zero-delay loop mechanism unless it is known that the 'lp_count'
  14779. register can hold the required loop-counter value. Depending on
  14780. the width specified, the compiler and run-time library might
  14781. continue to use the loop mechanism for various needs. This option
  14782. defines macro '__ARC_LPC_WIDTH__' with the value of WIDTH.
  14783. '-mrf16'
  14784. This option instructs the compiler to generate code for a 16-entry
  14785. register file. This option defines the '__ARC_RF16__' preprocessor
  14786. macro.
  14787. '-mbranch-index'
  14788. Enable use of 'bi' or 'bih' instructions to implement jump tables.
  14789. The following options are passed through to the assembler, and also
  14790. define preprocessor macro symbols.
  14791. '-mdsp-packa'
  14792. Passed down to the assembler to enable the DSP Pack A extensions.
  14793. Also sets the preprocessor symbol '__Xdsp_packa'. This option is
  14794. deprecated.
  14795. '-mdvbf'
  14796. Passed down to the assembler to enable the dual Viterbi butterfly
  14797. extension. Also sets the preprocessor symbol '__Xdvbf'. This
  14798. option is deprecated.
  14799. '-mlock'
  14800. Passed down to the assembler to enable the locked load/store
  14801. conditional extension. Also sets the preprocessor symbol
  14802. '__Xlock'.
  14803. '-mmac-d16'
  14804. Passed down to the assembler. Also sets the preprocessor symbol
  14805. '__Xxmac_d16'. This option is deprecated.
  14806. '-mmac-24'
  14807. Passed down to the assembler. Also sets the preprocessor symbol
  14808. '__Xxmac_24'. This option is deprecated.
  14809. '-mrtsc'
  14810. Passed down to the assembler to enable the 64-bit time-stamp
  14811. counter extension instruction. Also sets the preprocessor symbol
  14812. '__Xrtsc'. This option is deprecated.
  14813. '-mswape'
  14814. Passed down to the assembler to enable the swap byte ordering
  14815. extension instruction. Also sets the preprocessor symbol
  14816. '__Xswape'.
  14817. '-mtelephony'
  14818. Passed down to the assembler to enable dual- and single-operand
  14819. instructions for telephony. Also sets the preprocessor symbol
  14820. '__Xtelephony'. This option is deprecated.
  14821. '-mxy'
  14822. Passed down to the assembler to enable the XY memory extension.
  14823. Also sets the preprocessor symbol '__Xxy'.
  14824. The following options control how the assembly code is annotated:
  14825. '-misize'
  14826. Annotate assembler instructions with estimated addresses.
  14827. '-mannotate-align'
  14828. Explain what alignment considerations lead to the decision to make
  14829. an instruction short or long.
  14830. The following options are passed through to the linker:
  14831. '-marclinux'
  14832. Passed through to the linker, to specify use of the 'arclinux'
  14833. emulation. This option is enabled by default in tool chains built
  14834. for 'arc-linux-uclibc' and 'arceb-linux-uclibc' targets when
  14835. profiling is not requested.
  14836. '-marclinux_prof'
  14837. Passed through to the linker, to specify use of the 'arclinux_prof'
  14838. emulation. This option is enabled by default in tool chains built
  14839. for 'arc-linux-uclibc' and 'arceb-linux-uclibc' targets when
  14840. profiling is requested.
  14841. The following options control the semantics of generated code:
  14842. '-mlong-calls'
  14843. Generate calls as register indirect calls, thus providing access to
  14844. the full 32-bit address range.
  14845. '-mmedium-calls'
  14846. Don't use less than 25-bit addressing range for calls, which is the
  14847. offset available for an unconditional branch-and-link instruction.
  14848. Conditional execution of function calls is suppressed, to allow use
  14849. of the 25-bit range, rather than the 21-bit range with conditional
  14850. branch-and-link. This is the default for tool chains built for
  14851. 'arc-linux-uclibc' and 'arceb-linux-uclibc' targets.
  14852. '-G NUM'
  14853. Put definitions of externally-visible data in a small data section
  14854. if that data is no bigger than NUM bytes. The default value of NUM
  14855. is 4 for any ARC configuration, or 8 when we have double load/store
  14856. operations.
  14857. '-mno-sdata'
  14858. Do not generate sdata references. This is the default for tool
  14859. chains built for 'arc-linux-uclibc' and 'arceb-linux-uclibc'
  14860. targets.
  14861. '-mvolatile-cache'
  14862. Use ordinarily cached memory accesses for volatile references.
  14863. This is the default.
  14864. '-mno-volatile-cache'
  14865. Enable cache bypass for volatile references.
  14866. The following options fine tune code generation:
  14867. '-malign-call'
  14868. Do alignment optimizations for call instructions.
  14869. '-mauto-modify-reg'
  14870. Enable the use of pre/post modify with register displacement.
  14871. '-mbbit-peephole'
  14872. Enable bbit peephole2.
  14873. '-mno-brcc'
  14874. This option disables a target-specific pass in 'arc_reorg' to
  14875. generate compare-and-branch ('brCC') instructions. It has no
  14876. effect on generation of these instructions driven by the combiner
  14877. pass.
  14878. '-mcase-vector-pcrel'
  14879. Use PC-relative switch case tables to enable case table shortening.
  14880. This is the default for '-Os'.
  14881. '-mcompact-casesi'
  14882. Enable compact 'casesi' pattern. This is the default for '-Os',
  14883. and only available for ARCv1 cores. This option is deprecated.
  14884. '-mno-cond-exec'
  14885. Disable the ARCompact-specific pass to generate conditional
  14886. execution instructions.
  14887. Due to delay slot scheduling and interactions between operand
  14888. numbers, literal sizes, instruction lengths, and the support for
  14889. conditional execution, the target-independent pass to generate
  14890. conditional execution is often lacking, so the ARC port has kept a
  14891. special pass around that tries to find more conditional execution
  14892. generation opportunities after register allocation, branch
  14893. shortening, and delay slot scheduling have been done. This pass
  14894. generally, but not always, improves performance and code size, at
  14895. the cost of extra compilation time, which is why there is an option
  14896. to switch it off. If you have a problem with call instructions
  14897. exceeding their allowable offset range because they are
  14898. conditionalized, you should consider using '-mmedium-calls'
  14899. instead.
  14900. '-mearly-cbranchsi'
  14901. Enable pre-reload use of the 'cbranchsi' pattern.
  14902. '-mexpand-adddi'
  14903. Expand 'adddi3' and 'subdi3' at RTL generation time into 'add.f',
  14904. 'adc' etc. This option is deprecated.
  14905. '-mindexed-loads'
  14906. Enable the use of indexed loads. This can be problematic because
  14907. some optimizers then assume that indexed stores exist, which is not
  14908. the case.
  14909. '-mlra'
  14910. Enable Local Register Allocation. This is still experimental for
  14911. ARC, so by default the compiler uses standard reload (i.e.
  14912. '-mno-lra').
  14913. '-mlra-priority-none'
  14914. Don't indicate any priority for target registers.
  14915. '-mlra-priority-compact'
  14916. Indicate target register priority for r0..r3 / r12..r15.
  14917. '-mlra-priority-noncompact'
  14918. Reduce target register priority for r0..r3 / r12..r15.
  14919. '-mmillicode'
  14920. When optimizing for size (using '-Os'), prologues and epilogues
  14921. that have to save or restore a large number of registers are often
  14922. shortened by using call to a special function in libgcc; this is
  14923. referred to as a _millicode_ call. As these calls can pose
  14924. performance issues, and/or cause linking issues when linking in a
  14925. nonstandard way, this option is provided to turn on or off
  14926. millicode call generation.
  14927. '-mcode-density-frame'
  14928. This option enable the compiler to emit 'enter' and 'leave'
  14929. instructions. These instructions are only valid for CPUs with
  14930. code-density feature.
  14931. '-mmixed-code'
  14932. Tweak register allocation to help 16-bit instruction generation.
  14933. This generally has the effect of decreasing the average instruction
  14934. size while increasing the instruction count.
  14935. '-mq-class'
  14936. Ths option is deprecated. Enable 'q' instruction alternatives.
  14937. This is the default for '-Os'.
  14938. '-mRcq'
  14939. Enable 'Rcq' constraint handling. Most short code generation
  14940. depends on this. This is the default.
  14941. '-mRcw'
  14942. Enable 'Rcw' constraint handling. Most ccfsm condexec mostly
  14943. depends on this. This is the default.
  14944. '-msize-level=LEVEL'
  14945. Fine-tune size optimization with regards to instruction lengths and
  14946. alignment. The recognized values for LEVEL are:
  14947. '0'
  14948. No size optimization. This level is deprecated and treated
  14949. like '1'.
  14950. '1'
  14951. Short instructions are used opportunistically.
  14952. '2'
  14953. In addition, alignment of loops and of code after barriers are
  14954. dropped.
  14955. '3'
  14956. In addition, optional data alignment is dropped, and the
  14957. option 'Os' is enabled.
  14958. This defaults to '3' when '-Os' is in effect. Otherwise, the
  14959. behavior when this is not set is equivalent to level '1'.
  14960. '-mtune=CPU'
  14961. Set instruction scheduling parameters for CPU, overriding any
  14962. implied by '-mcpu='.
  14963. Supported values for CPU are
  14964. 'ARC600'
  14965. Tune for ARC600 CPU.
  14966. 'ARC601'
  14967. Tune for ARC601 CPU.
  14968. 'ARC700'
  14969. Tune for ARC700 CPU with standard multiplier block.
  14970. 'ARC700-xmac'
  14971. Tune for ARC700 CPU with XMAC block.
  14972. 'ARC725D'
  14973. Tune for ARC725D CPU.
  14974. 'ARC750D'
  14975. Tune for ARC750D CPU.
  14976. '-mmultcost=NUM'
  14977. Cost to assume for a multiply instruction, with '4' being equal to
  14978. a normal instruction.
  14979. '-munalign-prob-threshold=PROBABILITY'
  14980. Set probability threshold for unaligning branches. When tuning for
  14981. 'ARC700' and optimizing for speed, branches without filled delay
  14982. slot are preferably emitted unaligned and long, unless profiling
  14983. indicates that the probability for the branch to be taken is below
  14984. PROBABILITY. *Note Cross-profiling::. The default is
  14985. (REG_BR_PROB_BASE/2), i.e. 5000.
  14986. The following options are maintained for backward compatibility, but
  14987. are now deprecated and will be removed in a future release:
  14988. '-margonaut'
  14989. Obsolete FPX.
  14990. '-mbig-endian'
  14991. '-EB'
  14992. Compile code for big-endian targets. Use of these options is now
  14993. deprecated. Big-endian code is supported by configuring GCC to
  14994. build 'arceb-elf32' and 'arceb-linux-uclibc' targets, for which big
  14995. endian is the default.
  14996. '-mlittle-endian'
  14997. '-EL'
  14998. Compile code for little-endian targets. Use of these options is
  14999. now deprecated. Little-endian code is supported by configuring GCC
  15000. to build 'arc-elf32' and 'arc-linux-uclibc' targets, for which
  15001. little endian is the default.
  15002. '-mbarrel_shifter'
  15003. Replaced by '-mbarrel-shifter'.
  15004. '-mdpfp_compact'
  15005. Replaced by '-mdpfp-compact'.
  15006. '-mdpfp_fast'
  15007. Replaced by '-mdpfp-fast'.
  15008. '-mdsp_packa'
  15009. Replaced by '-mdsp-packa'.
  15010. '-mEA'
  15011. Replaced by '-mea'.
  15012. '-mmac_24'
  15013. Replaced by '-mmac-24'.
  15014. '-mmac_d16'
  15015. Replaced by '-mmac-d16'.
  15016. '-mspfp_compact'
  15017. Replaced by '-mspfp-compact'.
  15018. '-mspfp_fast'
  15019. Replaced by '-mspfp-fast'.
  15020. '-mtune=CPU'
  15021. Values 'arc600', 'arc601', 'arc700' and 'arc700-xmac' for CPU are
  15022. replaced by 'ARC600', 'ARC601', 'ARC700' and 'ARC700-xmac'
  15023. respectively.
  15024. '-multcost=NUM'
  15025. Replaced by '-mmultcost'.
  15026. 
  15027. File: gcc.info, Node: ARM Options, Next: AVR Options, Prev: ARC Options, Up: Submodel Options
  15028. 3.19.5 ARM Options
  15029. ------------------
  15030. These '-m' options are defined for the ARM port:
  15031. '-mabi=NAME'
  15032. Generate code for the specified ABI. Permissible values are:
  15033. 'apcs-gnu', 'atpcs', 'aapcs', 'aapcs-linux' and 'iwmmxt'.
  15034. '-mapcs-frame'
  15035. Generate a stack frame that is compliant with the ARM Procedure
  15036. Call Standard for all functions, even if this is not strictly
  15037. necessary for correct execution of the code. Specifying
  15038. '-fomit-frame-pointer' with this option causes the stack frames not
  15039. to be generated for leaf functions. The default is
  15040. '-mno-apcs-frame'. This option is deprecated.
  15041. '-mapcs'
  15042. This is a synonym for '-mapcs-frame' and is deprecated.
  15043. '-mthumb-interwork'
  15044. Generate code that supports calling between the ARM and Thumb
  15045. instruction sets. Without this option, on pre-v5 architectures,
  15046. the two instruction sets cannot be reliably used inside one
  15047. program. The default is '-mno-thumb-interwork', since slightly
  15048. larger code is generated when '-mthumb-interwork' is specified. In
  15049. AAPCS configurations this option is meaningless.
  15050. '-mno-sched-prolog'
  15051. Prevent the reordering of instructions in the function prologue, or
  15052. the merging of those instruction with the instructions in the
  15053. function's body. This means that all functions start with a
  15054. recognizable set of instructions (or in fact one of a choice from a
  15055. small set of different function prologues), and this information
  15056. can be used to locate the start of functions inside an executable
  15057. piece of code. The default is '-msched-prolog'.
  15058. '-mfloat-abi=NAME'
  15059. Specifies which floating-point ABI to use. Permissible values are:
  15060. 'soft', 'softfp' and 'hard'.
  15061. Specifying 'soft' causes GCC to generate output containing library
  15062. calls for floating-point operations. 'softfp' allows the
  15063. generation of code using hardware floating-point instructions, but
  15064. still uses the soft-float calling conventions. 'hard' allows
  15065. generation of floating-point instructions and uses FPU-specific
  15066. calling conventions.
  15067. The default depends on the specific target configuration. Note
  15068. that the hard-float and soft-float ABIs are not link-compatible;
  15069. you must compile your entire program with the same ABI, and link
  15070. with a compatible set of libraries.
  15071. '-mgeneral-regs-only'
  15072. Generate code which uses only the general-purpose registers. This
  15073. will prevent the compiler from using floating-point and Advanced
  15074. SIMD registers but will not impose any restrictions on the
  15075. assembler.
  15076. '-mlittle-endian'
  15077. Generate code for a processor running in little-endian mode. This
  15078. is the default for all standard configurations.
  15079. '-mbig-endian'
  15080. Generate code for a processor running in big-endian mode; the
  15081. default is to compile code for a little-endian processor.
  15082. '-mbe8'
  15083. '-mbe32'
  15084. When linking a big-endian image select between BE8 and BE32
  15085. formats. The option has no effect for little-endian images and is
  15086. ignored. The default is dependent on the selected target
  15087. architecture. For ARMv6 and later architectures the default is
  15088. BE8, for older architectures the default is BE32. BE32 format has
  15089. been deprecated by ARM.
  15090. '-march=NAME[+extension...]'
  15091. This specifies the name of the target ARM architecture. GCC uses
  15092. this name to determine what kind of instructions it can emit when
  15093. generating assembly code. This option can be used in conjunction
  15094. with or instead of the '-mcpu=' option.
  15095. Permissible names are: 'armv4t', 'armv5t', 'armv5te', 'armv6',
  15096. 'armv6j', 'armv6k', 'armv6kz', 'armv6t2', 'armv6z', 'armv6zk',
  15097. 'armv7', 'armv7-a', 'armv7ve', 'armv8-a', 'armv8.1-a', 'armv8.2-a',
  15098. 'armv8.3-a', 'armv8.4-a', 'armv8.5-a', 'armv8.6-a', 'armv7-r',
  15099. 'armv8-r', 'armv6-m', 'armv6s-m', 'armv7-m', 'armv7e-m',
  15100. 'armv8-m.base', 'armv8-m.main', 'armv8.1-m.main', 'iwmmxt' and
  15101. 'iwmmxt2'.
  15102. Additionally, the following architectures, which lack support for
  15103. the Thumb execution state, are recognized but support is
  15104. deprecated: 'armv4'.
  15105. Many of the architectures support extensions. These can be added
  15106. by appending '+EXTENSION' to the architecture name. Extension
  15107. options are processed in order and capabilities accumulate. An
  15108. extension will also enable any necessary base extensions upon which
  15109. it depends. For example, the '+crypto' extension will always
  15110. enable the '+simd' extension. The exception to the additive
  15111. construction is for extensions that are prefixed with '+no...':
  15112. these extensions disable the specified option and any other
  15113. extensions that may depend on the presence of that extension.
  15114. For example, '-march=armv7-a+simd+nofp+vfpv4' is equivalent to
  15115. writing '-march=armv7-a+vfpv4' since the '+simd' option is entirely
  15116. disabled by the '+nofp' option that follows it.
  15117. Most extension names are generically named, but have an effect that
  15118. is dependent upon the architecture to which it is applied. For
  15119. example, the '+simd' option can be applied to both 'armv7-a' and
  15120. 'armv8-a' architectures, but will enable the original ARMv7-A
  15121. Advanced SIMD (Neon) extensions for 'armv7-a' and the ARMv8-A
  15122. variant for 'armv8-a'.
  15123. The table below lists the supported extensions for each
  15124. architecture. Architectures not mentioned do not support any
  15125. extensions.
  15126. 'armv5te'
  15127. 'armv6'
  15128. 'armv6j'
  15129. 'armv6k'
  15130. 'armv6kz'
  15131. 'armv6t2'
  15132. 'armv6z'
  15133. 'armv6zk'
  15134. '+fp'
  15135. The VFPv2 floating-point instructions. The extension
  15136. '+vfpv2' can be used as an alias for this extension.
  15137. '+nofp'
  15138. Disable the floating-point instructions.
  15139. 'armv7'
  15140. The common subset of the ARMv7-A, ARMv7-R and ARMv7-M
  15141. architectures.
  15142. '+fp'
  15143. The VFPv3 floating-point instructions, with 16
  15144. double-precision registers. The extension '+vfpv3-d16'
  15145. can be used as an alias for this extension. Note that
  15146. floating-point is not supported by the base ARMv7-M
  15147. architecture, but is compatible with both the ARMv7-A and
  15148. ARMv7-R architectures.
  15149. '+nofp'
  15150. Disable the floating-point instructions.
  15151. 'armv7-a'
  15152. '+mp'
  15153. The multiprocessing extension.
  15154. '+sec'
  15155. The security extension.
  15156. '+fp'
  15157. The VFPv3 floating-point instructions, with 16
  15158. double-precision registers. The extension '+vfpv3-d16'
  15159. can be used as an alias for this extension.
  15160. '+simd'
  15161. The Advanced SIMD (Neon) v1 and the VFPv3 floating-point
  15162. instructions. The extensions '+neon' and '+neon-vfpv3'
  15163. can be used as aliases for this extension.
  15164. '+vfpv3'
  15165. The VFPv3 floating-point instructions, with 32
  15166. double-precision registers.
  15167. '+vfpv3-d16-fp16'
  15168. The VFPv3 floating-point instructions, with 16
  15169. double-precision registers and the half-precision
  15170. floating-point conversion operations.
  15171. '+vfpv3-fp16'
  15172. The VFPv3 floating-point instructions, with 32
  15173. double-precision registers and the half-precision
  15174. floating-point conversion operations.
  15175. '+vfpv4-d16'
  15176. The VFPv4 floating-point instructions, with 16
  15177. double-precision registers.
  15178. '+vfpv4'
  15179. The VFPv4 floating-point instructions, with 32
  15180. double-precision registers.
  15181. '+neon-fp16'
  15182. The Advanced SIMD (Neon) v1 and the VFPv3 floating-point
  15183. instructions, with the half-precision floating-point
  15184. conversion operations.
  15185. '+neon-vfpv4'
  15186. The Advanced SIMD (Neon) v2 and the VFPv4 floating-point
  15187. instructions.
  15188. '+nosimd'
  15189. Disable the Advanced SIMD instructions (does not disable
  15190. floating point).
  15191. '+nofp'
  15192. Disable the floating-point and Advanced SIMD
  15193. instructions.
  15194. 'armv7ve'
  15195. The extended version of the ARMv7-A architecture with support
  15196. for virtualization.
  15197. '+fp'
  15198. The VFPv4 floating-point instructions, with 16
  15199. double-precision registers. The extension '+vfpv4-d16'
  15200. can be used as an alias for this extension.
  15201. '+simd'
  15202. The Advanced SIMD (Neon) v2 and the VFPv4 floating-point
  15203. instructions. The extension '+neon-vfpv4' can be used as
  15204. an alias for this extension.
  15205. '+vfpv3-d16'
  15206. The VFPv3 floating-point instructions, with 16
  15207. double-precision registers.
  15208. '+vfpv3'
  15209. The VFPv3 floating-point instructions, with 32
  15210. double-precision registers.
  15211. '+vfpv3-d16-fp16'
  15212. The VFPv3 floating-point instructions, with 16
  15213. double-precision registers and the half-precision
  15214. floating-point conversion operations.
  15215. '+vfpv3-fp16'
  15216. The VFPv3 floating-point instructions, with 32
  15217. double-precision registers and the half-precision
  15218. floating-point conversion operations.
  15219. '+vfpv4-d16'
  15220. The VFPv4 floating-point instructions, with 16
  15221. double-precision registers.
  15222. '+vfpv4'
  15223. The VFPv4 floating-point instructions, with 32
  15224. double-precision registers.
  15225. '+neon'
  15226. The Advanced SIMD (Neon) v1 and the VFPv3 floating-point
  15227. instructions. The extension '+neon-vfpv3' can be used as
  15228. an alias for this extension.
  15229. '+neon-fp16'
  15230. The Advanced SIMD (Neon) v1 and the VFPv3 floating-point
  15231. instructions, with the half-precision floating-point
  15232. conversion operations.
  15233. '+nosimd'
  15234. Disable the Advanced SIMD instructions (does not disable
  15235. floating point).
  15236. '+nofp'
  15237. Disable the floating-point and Advanced SIMD
  15238. instructions.
  15239. 'armv8-a'
  15240. '+crc'
  15241. The Cyclic Redundancy Check (CRC) instructions.
  15242. '+simd'
  15243. The ARMv8-A Advanced SIMD and floating-point
  15244. instructions.
  15245. '+crypto'
  15246. The cryptographic instructions.
  15247. '+nocrypto'
  15248. Disable the cryptographic instructions.
  15249. '+nofp'
  15250. Disable the floating-point, Advanced SIMD and
  15251. cryptographic instructions.
  15252. '+sb'
  15253. Speculation Barrier Instruction.
  15254. '+predres'
  15255. Execution and Data Prediction Restriction Instructions.
  15256. 'armv8.1-a'
  15257. '+simd'
  15258. The ARMv8.1-A Advanced SIMD and floating-point
  15259. instructions.
  15260. '+crypto'
  15261. The cryptographic instructions. This also enables the
  15262. Advanced SIMD and floating-point instructions.
  15263. '+nocrypto'
  15264. Disable the cryptographic instructions.
  15265. '+nofp'
  15266. Disable the floating-point, Advanced SIMD and
  15267. cryptographic instructions.
  15268. '+sb'
  15269. Speculation Barrier Instruction.
  15270. '+predres'
  15271. Execution and Data Prediction Restriction Instructions.
  15272. 'armv8.2-a'
  15273. 'armv8.3-a'
  15274. '+fp16'
  15275. The half-precision floating-point data processing
  15276. instructions. This also enables the Advanced SIMD and
  15277. floating-point instructions.
  15278. '+fp16fml'
  15279. The half-precision floating-point fmla extension. This
  15280. also enables the half-precision floating-point extension
  15281. and Advanced SIMD and floating-point instructions.
  15282. '+simd'
  15283. The ARMv8.1-A Advanced SIMD and floating-point
  15284. instructions.
  15285. '+crypto'
  15286. The cryptographic instructions. This also enables the
  15287. Advanced SIMD and floating-point instructions.
  15288. '+dotprod'
  15289. Enable the Dot Product extension. This also enables
  15290. Advanced SIMD instructions.
  15291. '+nocrypto'
  15292. Disable the cryptographic extension.
  15293. '+nofp'
  15294. Disable the floating-point, Advanced SIMD and
  15295. cryptographic instructions.
  15296. '+sb'
  15297. Speculation Barrier Instruction.
  15298. '+predres'
  15299. Execution and Data Prediction Restriction Instructions.
  15300. '+i8mm'
  15301. 8-bit Integer Matrix Multiply instructions. This also
  15302. enables Advanced SIMD and floating-point instructions.
  15303. '+bf16'
  15304. Brain half-precision floating-point instructions. This
  15305. also enables Advanced SIMD and floating-point
  15306. instructions.
  15307. 'armv8.4-a'
  15308. '+fp16'
  15309. The half-precision floating-point data processing
  15310. instructions. This also enables the Advanced SIMD and
  15311. floating-point instructions as well as the Dot Product
  15312. extension and the half-precision floating-point fmla
  15313. extension.
  15314. '+simd'
  15315. The ARMv8.3-A Advanced SIMD and floating-point
  15316. instructions as well as the Dot Product extension.
  15317. '+crypto'
  15318. The cryptographic instructions. This also enables the
  15319. Advanced SIMD and floating-point instructions as well as
  15320. the Dot Product extension.
  15321. '+nocrypto'
  15322. Disable the cryptographic extension.
  15323. '+nofp'
  15324. Disable the floating-point, Advanced SIMD and
  15325. cryptographic instructions.
  15326. '+sb'
  15327. Speculation Barrier Instruction.
  15328. '+predres'
  15329. Execution and Data Prediction Restriction Instructions.
  15330. '+i8mm'
  15331. 8-bit Integer Matrix Multiply instructions. This also
  15332. enables Advanced SIMD and floating-point instructions.
  15333. '+bf16'
  15334. Brain half-precision floating-point instructions. This
  15335. also enables Advanced SIMD and floating-point
  15336. instructions.
  15337. 'armv8.5-a'
  15338. '+fp16'
  15339. The half-precision floating-point data processing
  15340. instructions. This also enables the Advanced SIMD and
  15341. floating-point instructions as well as the Dot Product
  15342. extension and the half-precision floating-point fmla
  15343. extension.
  15344. '+simd'
  15345. The ARMv8.3-A Advanced SIMD and floating-point
  15346. instructions as well as the Dot Product extension.
  15347. '+crypto'
  15348. The cryptographic instructions. This also enables the
  15349. Advanced SIMD and floating-point instructions as well as
  15350. the Dot Product extension.
  15351. '+nocrypto'
  15352. Disable the cryptographic extension.
  15353. '+nofp'
  15354. Disable the floating-point, Advanced SIMD and
  15355. cryptographic instructions.
  15356. '+i8mm'
  15357. 8-bit Integer Matrix Multiply instructions. This also
  15358. enables Advanced SIMD and floating-point instructions.
  15359. '+bf16'
  15360. Brain half-precision floating-point instructions. This
  15361. also enables Advanced SIMD and floating-point
  15362. instructions.
  15363. 'armv8.6-a'
  15364. '+fp16'
  15365. The half-precision floating-point data processing
  15366. instructions. This also enables the Advanced SIMD and
  15367. floating-point instructions as well as the Dot Product
  15368. extension and the half-precision floating-point fmla
  15369. extension.
  15370. '+simd'
  15371. The ARMv8.3-A Advanced SIMD and floating-point
  15372. instructions as well as the Dot Product extension.
  15373. '+crypto'
  15374. The cryptographic instructions. This also enables the
  15375. Advanced SIMD and floating-point instructions as well as
  15376. the Dot Product extension.
  15377. '+nocrypto'
  15378. Disable the cryptographic extension.
  15379. '+nofp'
  15380. Disable the floating-point, Advanced SIMD and
  15381. cryptographic instructions.
  15382. '+i8mm'
  15383. 8-bit Integer Matrix Multiply instructions. This also
  15384. enables Advanced SIMD and floating-point instructions.
  15385. '+bf16'
  15386. Brain half-precision floating-point instructions. This
  15387. also enables Advanced SIMD and floating-point
  15388. instructions.
  15389. 'armv7-r'
  15390. '+fp.sp'
  15391. The single-precision VFPv3 floating-point instructions.
  15392. The extension '+vfpv3xd' can be used as an alias for this
  15393. extension.
  15394. '+fp'
  15395. The VFPv3 floating-point instructions with 16
  15396. double-precision registers. The extension +vfpv3-d16 can
  15397. be used as an alias for this extension.
  15398. '+vfpv3xd-d16-fp16'
  15399. The single-precision VFPv3 floating-point instructions
  15400. with 16 double-precision registers and the half-precision
  15401. floating-point conversion operations.
  15402. '+vfpv3-d16-fp16'
  15403. The VFPv3 floating-point instructions with 16
  15404. double-precision registers and the half-precision
  15405. floating-point conversion operations.
  15406. '+nofp'
  15407. Disable the floating-point extension.
  15408. '+idiv'
  15409. The ARM-state integer division instructions.
  15410. '+noidiv'
  15411. Disable the ARM-state integer division extension.
  15412. 'armv7e-m'
  15413. '+fp'
  15414. The single-precision VFPv4 floating-point instructions.
  15415. '+fpv5'
  15416. The single-precision FPv5 floating-point instructions.
  15417. '+fp.dp'
  15418. The single- and double-precision FPv5 floating-point
  15419. instructions.
  15420. '+nofp'
  15421. Disable the floating-point extensions.
  15422. 'armv8.1-m.main'
  15423. '+dsp'
  15424. The DSP instructions.
  15425. '+mve'
  15426. The M-Profile Vector Extension (MVE) integer
  15427. instructions.
  15428. '+mve.fp'
  15429. The M-Profile Vector Extension (MVE) integer and single
  15430. precision floating-point instructions.
  15431. '+fp'
  15432. The single-precision floating-point instructions.
  15433. '+fp.dp'
  15434. The single- and double-precision floating-point
  15435. instructions.
  15436. '+nofp'
  15437. Disable the floating-point extension.
  15438. '+cdecp0, +cdecp1, ... , +cdecp7'
  15439. Enable the Custom Datapath Extension (CDE) on selected
  15440. coprocessors according to the numbers given in the
  15441. options in the range 0 to 7.
  15442. 'armv8-m.main'
  15443. '+dsp'
  15444. The DSP instructions.
  15445. '+nodsp'
  15446. Disable the DSP extension.
  15447. '+fp'
  15448. The single-precision floating-point instructions.
  15449. '+fp.dp'
  15450. The single- and double-precision floating-point
  15451. instructions.
  15452. '+nofp'
  15453. Disable the floating-point extension.
  15454. '+cdecp0, +cdecp1, ... , +cdecp7'
  15455. Enable the Custom Datapath Extension (CDE) on selected
  15456. coprocessors according to the numbers given in the
  15457. options in the range 0 to 7.
  15458. 'armv8-r'
  15459. '+crc'
  15460. The Cyclic Redundancy Check (CRC) instructions.
  15461. '+fp.sp'
  15462. The single-precision FPv5 floating-point instructions.
  15463. '+simd'
  15464. The ARMv8-A Advanced SIMD and floating-point
  15465. instructions.
  15466. '+crypto'
  15467. The cryptographic instructions.
  15468. '+nocrypto'
  15469. Disable the cryptographic instructions.
  15470. '+nofp'
  15471. Disable the floating-point, Advanced SIMD and
  15472. cryptographic instructions.
  15473. '-march=native' causes the compiler to auto-detect the architecture
  15474. of the build computer. At present, this feature is only supported
  15475. on GNU/Linux, and not all architectures are recognized. If the
  15476. auto-detect is unsuccessful the option has no effect.
  15477. '-mtune=NAME'
  15478. This option specifies the name of the target ARM processor for
  15479. which GCC should tune the performance of the code. For some ARM
  15480. implementations better performance can be obtained by using this
  15481. option. Permissible names are: 'arm7tdmi', 'arm7tdmi-s',
  15482. 'arm710t', 'arm720t', 'arm740t', 'strongarm', 'strongarm110',
  15483. 'strongarm1100', 0'strongarm1110', 'arm8', 'arm810', 'arm9',
  15484. 'arm9e', 'arm920', 'arm920t', 'arm922t', 'arm946e-s', 'arm966e-s',
  15485. 'arm968e-s', 'arm926ej-s', 'arm940t', 'arm9tdmi', 'arm10tdmi',
  15486. 'arm1020t', 'arm1026ej-s', 'arm10e', 'arm1020e', 'arm1022e',
  15487. 'arm1136j-s', 'arm1136jf-s', 'mpcore', 'mpcorenovfp',
  15488. 'arm1156t2-s', 'arm1156t2f-s', 'arm1176jz-s', 'arm1176jzf-s',
  15489. 'generic-armv7-a', 'cortex-a5', 'cortex-a7', 'cortex-a8',
  15490. 'cortex-a9', 'cortex-a12', 'cortex-a15', 'cortex-a17',
  15491. 'cortex-a32', 'cortex-a35', 'cortex-a53', 'cortex-a55',
  15492. 'cortex-a57', 'cortex-a72', 'cortex-a73', 'cortex-a75',
  15493. 'cortex-a76', 'cortex-a76ae', 'cortex-a77', 'cortex-a78',
  15494. 'cortex-a78ae', 'cortex-a78c', 'ares', 'cortex-r4', 'cortex-r4f',
  15495. 'cortex-r5', 'cortex-r7', 'cortex-r8', 'cortex-r52', 'cortex-m0',
  15496. 'cortex-m0plus', 'cortex-m1', 'cortex-m3', 'cortex-m4',
  15497. 'cortex-m7', 'cortex-m23', 'cortex-m33', 'cortex-m35p',
  15498. 'cortex-m55', 'cortex-x1', 'cortex-m1.small-multiply',
  15499. 'cortex-m0.small-multiply', 'cortex-m0plus.small-multiply',
  15500. 'exynos-m1', 'marvell-pj4', 'neoverse-n1', 'neoverse-n2',
  15501. 'neoverse-v1', 'xscale', 'iwmmxt', 'iwmmxt2', 'ep9312', 'fa526',
  15502. 'fa626', 'fa606te', 'fa626te', 'fmp626', 'fa726te', 'xgene1'.
  15503. Additionally, this option can specify that GCC should tune the
  15504. performance of the code for a big.LITTLE system. Permissible names
  15505. are: 'cortex-a15.cortex-a7', 'cortex-a17.cortex-a7',
  15506. 'cortex-a57.cortex-a53', 'cortex-a72.cortex-a53',
  15507. 'cortex-a72.cortex-a35', 'cortex-a73.cortex-a53',
  15508. 'cortex-a75.cortex-a55', 'cortex-a76.cortex-a55'.
  15509. '-mtune=generic-ARCH' specifies that GCC should tune the
  15510. performance for a blend of processors within architecture ARCH.
  15511. The aim is to generate code that run well on the current most
  15512. popular processors, balancing between optimizations that benefit
  15513. some CPUs in the range, and avoiding performance pitfalls of other
  15514. CPUs. The effects of this option may change in future GCC versions
  15515. as CPU models come and go.
  15516. '-mtune' permits the same extension options as '-mcpu', but the
  15517. extension options do not affect the tuning of the generated code.
  15518. '-mtune=native' causes the compiler to auto-detect the CPU of the
  15519. build computer. At present, this feature is only supported on
  15520. GNU/Linux, and not all architectures are recognized. If the
  15521. auto-detect is unsuccessful the option has no effect.
  15522. '-mcpu=NAME[+extension...]'
  15523. This specifies the name of the target ARM processor. GCC uses this
  15524. name to derive the name of the target ARM architecture (as if
  15525. specified by '-march') and the ARM processor type for which to tune
  15526. for performance (as if specified by '-mtune'). Where this option
  15527. is used in conjunction with '-march' or '-mtune', those options
  15528. take precedence over the appropriate part of this option.
  15529. Many of the supported CPUs implement optional architectural
  15530. extensions. Where this is so the architectural extensions are
  15531. normally enabled by default. If implementations that lack the
  15532. extension exist, then the extension syntax can be used to disable
  15533. those extensions that have been omitted. For floating-point and
  15534. Advanced SIMD (Neon) instructions, the settings of the options
  15535. '-mfloat-abi' and '-mfpu' must also be considered: floating-point
  15536. and Advanced SIMD instructions will only be used if '-mfloat-abi'
  15537. is not set to 'soft'; and any setting of '-mfpu' other than 'auto'
  15538. will override the available floating-point and SIMD extension
  15539. instructions.
  15540. For example, 'cortex-a9' can be found in three major
  15541. configurations: integer only, with just a floating-point unit or
  15542. with floating-point and Advanced SIMD. The default is to enable all
  15543. the instructions, but the extensions '+nosimd' and '+nofp' can be
  15544. used to disable just the SIMD or both the SIMD and floating-point
  15545. instructions respectively.
  15546. Permissible names for this option are the same as those for
  15547. '-mtune'.
  15548. The following extension options are common to the listed CPUs:
  15549. '+nodsp'
  15550. Disable the DSP instructions on 'cortex-m33', 'cortex-m35p'.
  15551. '+nofp'
  15552. Disables the floating-point instructions on 'arm9e',
  15553. 'arm946e-s', 'arm966e-s', 'arm968e-s', 'arm10e', 'arm1020e',
  15554. 'arm1022e', 'arm926ej-s', 'arm1026ej-s', 'cortex-r5',
  15555. 'cortex-r7', 'cortex-r8', 'cortex-m4', 'cortex-m7',
  15556. 'cortex-m33' and 'cortex-m35p'. Disables the floating-point
  15557. and SIMD instructions on 'generic-armv7-a', 'cortex-a5',
  15558. 'cortex-a7', 'cortex-a8', 'cortex-a9', 'cortex-a12',
  15559. 'cortex-a15', 'cortex-a17', 'cortex-a15.cortex-a7',
  15560. 'cortex-a17.cortex-a7', 'cortex-a32', 'cortex-a35',
  15561. 'cortex-a53' and 'cortex-a55'.
  15562. '+nofp.dp'
  15563. Disables the double-precision component of the floating-point
  15564. instructions on 'cortex-r5', 'cortex-r7', 'cortex-r8',
  15565. 'cortex-r52' and 'cortex-m7'.
  15566. '+nosimd'
  15567. Disables the SIMD (but not floating-point) instructions on
  15568. 'generic-armv7-a', 'cortex-a5', 'cortex-a7' and 'cortex-a9'.
  15569. '+crypto'
  15570. Enables the cryptographic instructions on 'cortex-a32',
  15571. 'cortex-a35', 'cortex-a53', 'cortex-a55', 'cortex-a57',
  15572. 'cortex-a72', 'cortex-a73', 'cortex-a75', 'exynos-m1',
  15573. 'xgene1', 'cortex-a57.cortex-a53', 'cortex-a72.cortex-a53',
  15574. 'cortex-a73.cortex-a35', 'cortex-a73.cortex-a53' and
  15575. 'cortex-a75.cortex-a55'.
  15576. Additionally the 'generic-armv7-a' pseudo target defaults to VFPv3
  15577. with 16 double-precision registers. It supports the following
  15578. extension options: 'mp', 'sec', 'vfpv3-d16', 'vfpv3',
  15579. 'vfpv3-d16-fp16', 'vfpv3-fp16', 'vfpv4-d16', 'vfpv4', 'neon',
  15580. 'neon-vfpv3', 'neon-fp16', 'neon-vfpv4'. The meanings are the same
  15581. as for the extensions to '-march=armv7-a'.
  15582. '-mcpu=generic-ARCH' is also permissible, and is equivalent to
  15583. '-march=ARCH -mtune=generic-ARCH'. See '-mtune' for more
  15584. information.
  15585. '-mcpu=native' causes the compiler to auto-detect the CPU of the
  15586. build computer. At present, this feature is only supported on
  15587. GNU/Linux, and not all architectures are recognized. If the
  15588. auto-detect is unsuccessful the option has no effect.
  15589. '-mfpu=NAME'
  15590. This specifies what floating-point hardware (or hardware emulation)
  15591. is available on the target. Permissible names are: 'auto',
  15592. 'vfpv2', 'vfpv3', 'vfpv3-fp16', 'vfpv3-d16', 'vfpv3-d16-fp16',
  15593. 'vfpv3xd', 'vfpv3xd-fp16', 'neon-vfpv3', 'neon-fp16', 'vfpv4',
  15594. 'vfpv4-d16', 'fpv4-sp-d16', 'neon-vfpv4', 'fpv5-d16',
  15595. 'fpv5-sp-d16', 'fp-armv8', 'neon-fp-armv8' and
  15596. 'crypto-neon-fp-armv8'. Note that 'neon' is an alias for
  15597. 'neon-vfpv3' and 'vfp' is an alias for 'vfpv2'.
  15598. The setting 'auto' is the default and is special. It causes the
  15599. compiler to select the floating-point and Advanced SIMD
  15600. instructions based on the settings of '-mcpu' and '-march'.
  15601. If the selected floating-point hardware includes the NEON extension
  15602. (e.g. '-mfpu=neon'), note that floating-point operations are not
  15603. generated by GCC's auto-vectorization pass unless
  15604. '-funsafe-math-optimizations' is also specified. This is because
  15605. NEON hardware does not fully implement the IEEE 754 standard for
  15606. floating-point arithmetic (in particular denormal values are
  15607. treated as zero), so the use of NEON instructions may lead to a
  15608. loss of precision.
  15609. You can also set the fpu name at function level by using the
  15610. 'target("fpu=")' function attributes (*note ARM Function
  15611. Attributes::) or pragmas (*note Function Specific Option
  15612. Pragmas::).
  15613. '-mfp16-format=NAME'
  15614. Specify the format of the '__fp16' half-precision floating-point
  15615. type. Permissible names are 'none', 'ieee', and 'alternative'; the
  15616. default is 'none', in which case the '__fp16' type is not defined.
  15617. *Note Half-Precision::, for more information.
  15618. '-mstructure-size-boundary=N'
  15619. The sizes of all structures and unions are rounded up to a multiple
  15620. of the number of bits set by this option. Permissible values are
  15621. 8, 32 and 64. The default value varies for different toolchains.
  15622. For the COFF targeted toolchain the default value is 8. A value of
  15623. 64 is only allowed if the underlying ABI supports it.
  15624. Specifying a larger number can produce faster, more efficient code,
  15625. but can also increase the size of the program. Different values
  15626. are potentially incompatible. Code compiled with one value cannot
  15627. necessarily expect to work with code or libraries compiled with
  15628. another value, if they exchange information using structures or
  15629. unions.
  15630. This option is deprecated.
  15631. '-mabort-on-noreturn'
  15632. Generate a call to the function 'abort' at the end of a 'noreturn'
  15633. function. It is executed if the function tries to return.
  15634. '-mlong-calls'
  15635. '-mno-long-calls'
  15636. Tells the compiler to perform function calls by first loading the
  15637. address of the function into a register and then performing a
  15638. subroutine call on this register. This switch is needed if the
  15639. target function lies outside of the 64-megabyte addressing range of
  15640. the offset-based version of subroutine call instruction.
  15641. Even if this switch is enabled, not all function calls are turned
  15642. into long calls. The heuristic is that static functions, functions
  15643. that have the 'short_call' attribute, functions that are inside the
  15644. scope of a '#pragma no_long_calls' directive, and functions whose
  15645. definitions have already been compiled within the current
  15646. compilation unit are not turned into long calls. The exceptions to
  15647. this rule are that weak function definitions, functions with the
  15648. 'long_call' attribute or the 'section' attribute, and functions
  15649. that are within the scope of a '#pragma long_calls' directive are
  15650. always turned into long calls.
  15651. This feature is not enabled by default. Specifying
  15652. '-mno-long-calls' restores the default behavior, as does placing
  15653. the function calls within the scope of a '#pragma long_calls_off'
  15654. directive. Note these switches have no effect on how the compiler
  15655. generates code to handle function calls via function pointers.
  15656. '-msingle-pic-base'
  15657. Treat the register used for PIC addressing as read-only, rather
  15658. than loading it in the prologue for each function. The runtime
  15659. system is responsible for initializing this register with an
  15660. appropriate value before execution begins.
  15661. '-mpic-register=REG'
  15662. Specify the register to be used for PIC addressing. For standard
  15663. PIC base case, the default is any suitable register determined by
  15664. compiler. For single PIC base case, the default is 'R9' if target
  15665. is EABI based or stack-checking is enabled, otherwise the default
  15666. is 'R10'.
  15667. '-mpic-data-is-text-relative'
  15668. Assume that the displacement between the text and data segments is
  15669. fixed at static link time. This permits using PC-relative
  15670. addressing operations to access data known to be in the data
  15671. segment. For non-VxWorks RTP targets, this option is enabled by
  15672. default. When disabled on such targets, it will enable
  15673. '-msingle-pic-base' by default.
  15674. '-mpoke-function-name'
  15675. Write the name of each function into the text section, directly
  15676. preceding the function prologue. The generated code is similar to
  15677. this:
  15678. t0
  15679. .ascii "arm_poke_function_name", 0
  15680. .align
  15681. t1
  15682. .word 0xff000000 + (t1 - t0)
  15683. arm_poke_function_name
  15684. mov ip, sp
  15685. stmfd sp!, {fp, ip, lr, pc}
  15686. sub fp, ip, #4
  15687. When performing a stack backtrace, code can inspect the value of
  15688. 'pc' stored at 'fp + 0'. If the trace function then looks at
  15689. location 'pc - 12' and the top 8 bits are set, then we know that
  15690. there is a function name embedded immediately preceding this
  15691. location and has length '((pc[-3]) & 0xff000000)'.
  15692. '-mthumb'
  15693. '-marm'
  15694. Select between generating code that executes in ARM and Thumb
  15695. states. The default for most configurations is to generate code
  15696. that executes in ARM state, but the default can be changed by
  15697. configuring GCC with the '--with-mode='STATE configure option.
  15698. You can also override the ARM and Thumb mode for each function by
  15699. using the 'target("thumb")' and 'target("arm")' function attributes
  15700. (*note ARM Function Attributes::) or pragmas (*note Function
  15701. Specific Option Pragmas::).
  15702. '-mflip-thumb'
  15703. Switch ARM/Thumb modes on alternating functions. This option is
  15704. provided for regression testing of mixed Thumb/ARM code generation,
  15705. and is not intended for ordinary use in compiling code.
  15706. '-mtpcs-frame'
  15707. Generate a stack frame that is compliant with the Thumb Procedure
  15708. Call Standard for all non-leaf functions. (A leaf function is one
  15709. that does not call any other functions.) The default is
  15710. '-mno-tpcs-frame'.
  15711. '-mtpcs-leaf-frame'
  15712. Generate a stack frame that is compliant with the Thumb Procedure
  15713. Call Standard for all leaf functions. (A leaf function is one that
  15714. does not call any other functions.) The default is
  15715. '-mno-apcs-leaf-frame'.
  15716. '-mcallee-super-interworking'
  15717. Gives all externally visible functions in the file being compiled
  15718. an ARM instruction set header which switches to Thumb mode before
  15719. executing the rest of the function. This allows these functions to
  15720. be called from non-interworking code. This option is not valid in
  15721. AAPCS configurations because interworking is enabled by default.
  15722. '-mcaller-super-interworking'
  15723. Allows calls via function pointers (including virtual functions) to
  15724. execute correctly regardless of whether the target code has been
  15725. compiled for interworking or not. There is a small overhead in the
  15726. cost of executing a function pointer if this option is enabled.
  15727. This option is not valid in AAPCS configurations because
  15728. interworking is enabled by default.
  15729. '-mtp=NAME'
  15730. Specify the access model for the thread local storage pointer. The
  15731. valid models are 'soft', which generates calls to
  15732. '__aeabi_read_tp', 'cp15', which fetches the thread pointer from
  15733. 'cp15' directly (supported in the arm6k architecture), and 'auto',
  15734. which uses the best available method for the selected processor.
  15735. The default setting is 'auto'.
  15736. '-mtls-dialect=DIALECT'
  15737. Specify the dialect to use for accessing thread local storage. Two
  15738. DIALECTs are supported--'gnu' and 'gnu2'. The 'gnu' dialect
  15739. selects the original GNU scheme for supporting local and global
  15740. dynamic TLS models. The 'gnu2' dialect selects the GNU descriptor
  15741. scheme, which provides better performance for shared libraries.
  15742. The GNU descriptor scheme is compatible with the original scheme,
  15743. but does require new assembler, linker and library support.
  15744. Initial and local exec TLS models are unaffected by this option and
  15745. always use the original scheme.
  15746. '-mword-relocations'
  15747. Only generate absolute relocations on word-sized values (i.e.
  15748. R_ARM_ABS32). This is enabled by default on targets (uClinux,
  15749. SymbianOS) where the runtime loader imposes this restriction, and
  15750. when '-fpic' or '-fPIC' is specified. This option conflicts with
  15751. '-mslow-flash-data'.
  15752. '-mfix-cortex-m3-ldrd'
  15753. Some Cortex-M3 cores can cause data corruption when 'ldrd'
  15754. instructions with overlapping destination and base registers are
  15755. used. This option avoids generating these instructions. This
  15756. option is enabled by default when '-mcpu=cortex-m3' is specified.
  15757. '-munaligned-access'
  15758. '-mno-unaligned-access'
  15759. Enables (or disables) reading and writing of 16- and 32- bit values
  15760. from addresses that are not 16- or 32- bit aligned. By default
  15761. unaligned access is disabled for all pre-ARMv6, all ARMv6-M and for
  15762. ARMv8-M Baseline architectures, and enabled for all other
  15763. architectures. If unaligned access is not enabled then words in
  15764. packed data structures are accessed a byte at a time.
  15765. The ARM attribute 'Tag_CPU_unaligned_access' is set in the
  15766. generated object file to either true or false, depending upon the
  15767. setting of this option. If unaligned access is enabled then the
  15768. preprocessor symbol '__ARM_FEATURE_UNALIGNED' is also defined.
  15769. '-mneon-for-64bits'
  15770. This option is deprecated and has no effect.
  15771. '-mslow-flash-data'
  15772. Assume loading data from flash is slower than fetching instruction.
  15773. Therefore literal load is minimized for better performance. This
  15774. option is only supported when compiling for ARMv7 M-profile and off
  15775. by default. It conflicts with '-mword-relocations'.
  15776. '-masm-syntax-unified'
  15777. Assume inline assembler is using unified asm syntax. The default
  15778. is currently off which implies divided syntax. This option has no
  15779. impact on Thumb2. However, this may change in future releases of
  15780. GCC. Divided syntax should be considered deprecated.
  15781. '-mrestrict-it'
  15782. Restricts generation of IT blocks to conform to the rules of
  15783. ARMv8-A. IT blocks can only contain a single 16-bit instruction
  15784. from a select set of instructions. This option is on by default
  15785. for ARMv8-A Thumb mode.
  15786. '-mprint-tune-info'
  15787. Print CPU tuning information as comment in assembler file. This is
  15788. an option used only for regression testing of the compiler and not
  15789. intended for ordinary use in compiling code. This option is
  15790. disabled by default.
  15791. '-mverbose-cost-dump'
  15792. Enable verbose cost model dumping in the debug dump files. This
  15793. option is provided for use in debugging the compiler.
  15794. '-mpure-code'
  15795. Do not allow constant data to be placed in code sections.
  15796. Additionally, when compiling for ELF object format give all text
  15797. sections the ELF processor-specific section attribute
  15798. 'SHF_ARM_PURECODE'. This option is only available when generating
  15799. non-pic code for M-profile targets.
  15800. '-mcmse'
  15801. Generate secure code as per the "ARMv8-M Security Extensions:
  15802. Requirements on Development Tools Engineering Specification", which
  15803. can be found on
  15804. <https://developer.arm.com/documentation/ecm0359818/latest/>.
  15805. '-mfdpic'
  15806. '-mno-fdpic'
  15807. Select the FDPIC ABI, which uses 64-bit function descriptors to
  15808. represent pointers to functions. When the compiler is configured
  15809. for 'arm-*-uclinuxfdpiceabi' targets, this option is on by default
  15810. and implies '-fPIE' if none of the PIC/PIE-related options is
  15811. provided. On other targets, it only enables the FDPIC-specific
  15812. code generation features, and the user should explicitly provide
  15813. the PIC/PIE-related options as needed.
  15814. Note that static linking is not supported because it would still
  15815. involve the dynamic linker when the program self-relocates. If
  15816. such behavior is acceptable, use -static and -Wl,-dynamic-linker
  15817. options.
  15818. The opposite '-mno-fdpic' option is useful (and required) to build
  15819. the Linux kernel using the same ('arm-*-uclinuxfdpiceabi')
  15820. toolchain as the one used to build the userland programs.
  15821. 
  15822. File: gcc.info, Node: AVR Options, Next: Blackfin Options, Prev: ARM Options, Up: Submodel Options
  15823. 3.19.6 AVR Options
  15824. ------------------
  15825. These options are defined for AVR implementations:
  15826. '-mmcu=MCU'
  15827. Specify Atmel AVR instruction set architectures (ISA) or MCU type.
  15828. The default for this option is 'avr2'.
  15829. GCC supports the following AVR devices and ISAs:
  15830. 'avr2'
  15831. "Classic" devices with up to 8 KiB of program memory.
  15832. MCU = 'attiny22', 'attiny26', 'at90s2313', 'at90s2323',
  15833. 'at90s2333', 'at90s2343', 'at90s4414', 'at90s4433',
  15834. 'at90s4434', 'at90c8534', 'at90s8515', 'at90s8535'.
  15835. 'avr25'
  15836. "Classic" devices with up to 8 KiB of program memory and with
  15837. the 'MOVW' instruction.
  15838. MCU = 'attiny13', 'attiny13a', 'attiny24', 'attiny24a',
  15839. 'attiny25', 'attiny261', 'attiny261a', 'attiny2313',
  15840. 'attiny2313a', 'attiny43u', 'attiny44', 'attiny44a',
  15841. 'attiny45', 'attiny48', 'attiny441', 'attiny461',
  15842. 'attiny461a', 'attiny4313', 'attiny84', 'attiny84a',
  15843. 'attiny85', 'attiny87', 'attiny88', 'attiny828', 'attiny841',
  15844. 'attiny861', 'attiny861a', 'ata5272', 'ata6616c', 'at86rf401'.
  15845. 'avr3'
  15846. "Classic" devices with 16 KiB up to 64 KiB of program memory.
  15847. MCU = 'at76c711', 'at43usb355'.
  15848. 'avr31'
  15849. "Classic" devices with 128 KiB of program memory.
  15850. MCU = 'atmega103', 'at43usb320'.
  15851. 'avr35'
  15852. "Classic" devices with 16 KiB up to 64 KiB of program memory
  15853. and with the 'MOVW' instruction.
  15854. MCU = 'attiny167', 'attiny1634', 'atmega8u2', 'atmega16u2',
  15855. 'atmega32u2', 'ata5505', 'ata6617c', 'ata664251', 'at90usb82',
  15856. 'at90usb162'.
  15857. 'avr4'
  15858. "Enhanced" devices with up to 8 KiB of program memory.
  15859. MCU = 'atmega48', 'atmega48a', 'atmega48p', 'atmega48pa',
  15860. 'atmega48pb', 'atmega8', 'atmega8a', 'atmega8hva', 'atmega88',
  15861. 'atmega88a', 'atmega88p', 'atmega88pa', 'atmega88pb',
  15862. 'atmega8515', 'atmega8535', 'ata6285', 'ata6286', 'ata6289',
  15863. 'ata6612c', 'at90pwm1', 'at90pwm2', 'at90pwm2b', 'at90pwm3',
  15864. 'at90pwm3b', 'at90pwm81'.
  15865. 'avr5'
  15866. "Enhanced" devices with 16 KiB up to 64 KiB of program memory.
  15867. MCU = 'atmega16', 'atmega16a', 'atmega16hva', 'atmega16hva2',
  15868. 'atmega16hvb', 'atmega16hvbrevb', 'atmega16m1', 'atmega16u4',
  15869. 'atmega161', 'atmega162', 'atmega163', 'atmega164a',
  15870. 'atmega164p', 'atmega164pa', 'atmega165', 'atmega165a',
  15871. 'atmega165p', 'atmega165pa', 'atmega168', 'atmega168a',
  15872. 'atmega168p', 'atmega168pa', 'atmega168pb', 'atmega169',
  15873. 'atmega169a', 'atmega169p', 'atmega169pa', 'atmega32',
  15874. 'atmega32a', 'atmega32c1', 'atmega32hvb', 'atmega32hvbrevb',
  15875. 'atmega32m1', 'atmega32u4', 'atmega32u6', 'atmega323',
  15876. 'atmega324a', 'atmega324p', 'atmega324pa', 'atmega325',
  15877. 'atmega325a', 'atmega325p', 'atmega325pa', 'atmega328',
  15878. 'atmega328p', 'atmega328pb', 'atmega329', 'atmega329a',
  15879. 'atmega329p', 'atmega329pa', 'atmega3250', 'atmega3250a',
  15880. 'atmega3250p', 'atmega3250pa', 'atmega3290', 'atmega3290a',
  15881. 'atmega3290p', 'atmega3290pa', 'atmega406', 'atmega64',
  15882. 'atmega64a', 'atmega64c1', 'atmega64hve', 'atmega64hve2',
  15883. 'atmega64m1', 'atmega64rfr2', 'atmega640', 'atmega644',
  15884. 'atmega644a', 'atmega644p', 'atmega644pa', 'atmega644rfr2',
  15885. 'atmega645', 'atmega645a', 'atmega645p', 'atmega649',
  15886. 'atmega649a', 'atmega649p', 'atmega6450', 'atmega6450a',
  15887. 'atmega6450p', 'atmega6490', 'atmega6490a', 'atmega6490p',
  15888. 'ata5795', 'ata5790', 'ata5790n', 'ata5791', 'ata6613c',
  15889. 'ata6614q', 'ata5782', 'ata5831', 'ata8210', 'ata8510',
  15890. 'ata5702m322', 'at90pwm161', 'at90pwm216', 'at90pwm316',
  15891. 'at90can32', 'at90can64', 'at90scr100', 'at90usb646',
  15892. 'at90usb647', 'at94k', 'm3000'.
  15893. 'avr51'
  15894. "Enhanced" devices with 128 KiB of program memory.
  15895. MCU = 'atmega128', 'atmega128a', 'atmega128rfa1',
  15896. 'atmega128rfr2', 'atmega1280', 'atmega1281', 'atmega1284',
  15897. 'atmega1284p', 'atmega1284rfr2', 'at90can128', 'at90usb1286',
  15898. 'at90usb1287'.
  15899. 'avr6'
  15900. "Enhanced" devices with 3-byte PC, i.e. with more than 128 KiB
  15901. of program memory.
  15902. MCU = 'atmega256rfr2', 'atmega2560', 'atmega2561',
  15903. 'atmega2564rfr2'.
  15904. 'avrxmega2'
  15905. "XMEGA" devices with more than 8 KiB and up to 64 KiB of
  15906. program memory.
  15907. MCU = 'atxmega8e5', 'atxmega16a4', 'atxmega16a4u',
  15908. 'atxmega16c4', 'atxmega16d4', 'atxmega16e5', 'atxmega32a4',
  15909. 'atxmega32a4u', 'atxmega32c3', 'atxmega32c4', 'atxmega32d3',
  15910. 'atxmega32d4', 'atxmega32e5'.
  15911. 'avrxmega3'
  15912. "XMEGA" devices with up to 64 KiB of combined program memory
  15913. and RAM, and with program memory visible in the RAM address
  15914. space.
  15915. MCU = 'attiny202', 'attiny204', 'attiny212', 'attiny214',
  15916. 'attiny402', 'attiny404', 'attiny406', 'attiny412',
  15917. 'attiny414', 'attiny416', 'attiny417', 'attiny804',
  15918. 'attiny806', 'attiny807', 'attiny814', 'attiny816',
  15919. 'attiny817', 'attiny1604', 'attiny1606', 'attiny1607',
  15920. 'attiny1614', 'attiny1616', 'attiny1617', 'attiny3214',
  15921. 'attiny3216', 'attiny3217', 'atmega808', 'atmega809',
  15922. 'atmega1608', 'atmega1609', 'atmega3208', 'atmega3209',
  15923. 'atmega4808', 'atmega4809'.
  15924. 'avrxmega4'
  15925. "XMEGA" devices with more than 64 KiB and up to 128 KiB of
  15926. program memory.
  15927. MCU = 'atxmega64a3', 'atxmega64a3u', 'atxmega64a4u',
  15928. 'atxmega64b1', 'atxmega64b3', 'atxmega64c3', 'atxmega64d3',
  15929. 'atxmega64d4'.
  15930. 'avrxmega5'
  15931. "XMEGA" devices with more than 64 KiB and up to 128 KiB of
  15932. program memory and more than 64 KiB of RAM.
  15933. MCU = 'atxmega64a1', 'atxmega64a1u'.
  15934. 'avrxmega6'
  15935. "XMEGA" devices with more than 128 KiB of program memory.
  15936. MCU = 'atxmega128a3', 'atxmega128a3u', 'atxmega128b1',
  15937. 'atxmega128b3', 'atxmega128c3', 'atxmega128d3',
  15938. 'atxmega128d4', 'atxmega192a3', 'atxmega192a3u',
  15939. 'atxmega192c3', 'atxmega192d3', 'atxmega256a3',
  15940. 'atxmega256a3b', 'atxmega256a3bu', 'atxmega256a3u',
  15941. 'atxmega256c3', 'atxmega256d3', 'atxmega384c3',
  15942. 'atxmega384d3'.
  15943. 'avrxmega7'
  15944. "XMEGA" devices with more than 128 KiB of program memory and
  15945. more than 64 KiB of RAM.
  15946. MCU = 'atxmega128a1', 'atxmega128a1u', 'atxmega128a4u'.
  15947. 'avrtiny'
  15948. "TINY" Tiny core devices with 512 B up to 4 KiB of program
  15949. memory.
  15950. MCU = 'attiny4', 'attiny5', 'attiny9', 'attiny10', 'attiny20',
  15951. 'attiny40'.
  15952. 'avr1'
  15953. This ISA is implemented by the minimal AVR core and supported
  15954. for assembler only.
  15955. MCU = 'attiny11', 'attiny12', 'attiny15', 'attiny28',
  15956. 'at90s1200'.
  15957. '-mabsdata'
  15958. Assume that all data in static storage can be accessed by LDS / STS
  15959. instructions. This option has only an effect on reduced Tiny
  15960. devices like ATtiny40. See also the 'absdata' *note variable
  15961. attribute: AVR Variable Attributes.
  15962. '-maccumulate-args'
  15963. Accumulate outgoing function arguments and acquire/release the
  15964. needed stack space for outgoing function arguments once in function
  15965. prologue/epilogue. Without this option, outgoing arguments are
  15966. pushed before calling a function and popped afterwards.
  15967. Popping the arguments after the function call can be expensive on
  15968. AVR so that accumulating the stack space might lead to smaller
  15969. executables because arguments need not be removed from the stack
  15970. after such a function call.
  15971. This option can lead to reduced code size for functions that
  15972. perform several calls to functions that get their arguments on the
  15973. stack like calls to printf-like functions.
  15974. '-mbranch-cost=COST'
  15975. Set the branch costs for conditional branch instructions to COST.
  15976. Reasonable values for COST are small, non-negative integers. The
  15977. default branch cost is 0.
  15978. '-mcall-prologues'
  15979. Functions prologues/epilogues are expanded as calls to appropriate
  15980. subroutines. Code size is smaller.
  15981. '-mdouble=BITS'
  15982. '-mlong-double=BITS'
  15983. Set the size (in bits) of the 'double' or 'long double' type,
  15984. respectively. Possible values for BITS are 32 and 64. Whether or
  15985. not a specific value for BITS is allowed depends on the
  15986. '--with-double=' and '--with-long-double='
  15987. configure options (https://gcc.gnu.org/install/configure.html#avr),
  15988. and the same applies for the default values of the options.
  15989. '-mgas-isr-prologues'
  15990. Interrupt service routines (ISRs) may use the '__gcc_isr' pseudo
  15991. instruction supported by GNU Binutils. If this option is on, the
  15992. feature can still be disabled for individual ISRs by means of the
  15993. *note 'no_gccisr': AVR Function Attributes. function attribute.
  15994. This feature is activated per default if optimization is on (but
  15995. not with '-Og', *note Optimize Options::), and if GNU Binutils
  15996. support PR21683 (https://sourceware.org/PR21683).
  15997. '-mint8'
  15998. Assume 'int' to be 8-bit integer. This affects the sizes of all
  15999. types: a 'char' is 1 byte, an 'int' is 1 byte, a 'long' is 2 bytes,
  16000. and 'long long' is 4 bytes. Please note that this option does not
  16001. conform to the C standards, but it results in smaller code size.
  16002. '-mmain-is-OS_task'
  16003. Do not save registers in 'main'. The effect is the same like
  16004. attaching attribute *note 'OS_task': AVR Function Attributes. to
  16005. 'main'. It is activated per default if optimization is on.
  16006. '-mn-flash=NUM'
  16007. Assume that the flash memory has a size of NUM times 64 KiB.
  16008. '-mno-interrupts'
  16009. Generated code is not compatible with hardware interrupts. Code
  16010. size is smaller.
  16011. '-mrelax'
  16012. Try to replace 'CALL' resp. 'JMP' instruction by the shorter
  16013. 'RCALL' resp. 'RJMP' instruction if applicable. Setting '-mrelax'
  16014. just adds the '--mlink-relax' option to the assembler's command
  16015. line and the '--relax' option to the linker's command line.
  16016. Jump relaxing is performed by the linker because jump offsets are
  16017. not known before code is located. Therefore, the assembler code
  16018. generated by the compiler is the same, but the instructions in the
  16019. executable may differ from instructions in the assembler code.
  16020. Relaxing must be turned on if linker stubs are needed, see the
  16021. section on 'EIND' and linker stubs below.
  16022. '-mrmw'
  16023. Assume that the device supports the Read-Modify-Write instructions
  16024. 'XCH', 'LAC', 'LAS' and 'LAT'.
  16025. '-mshort-calls'
  16026. Assume that 'RJMP' and 'RCALL' can target the whole program memory.
  16027. This option is used internally for multilib selection. It is not
  16028. an optimization option, and you don't need to set it by hand.
  16029. '-msp8'
  16030. Treat the stack pointer register as an 8-bit register, i.e. assume
  16031. the high byte of the stack pointer is zero. In general, you don't
  16032. need to set this option by hand.
  16033. This option is used internally by the compiler to select and build
  16034. multilibs for architectures 'avr2' and 'avr25'. These
  16035. architectures mix devices with and without 'SPH'. For any setting
  16036. other than '-mmcu=avr2' or '-mmcu=avr25' the compiler driver adds
  16037. or removes this option from the compiler proper's command line,
  16038. because the compiler then knows if the device or architecture has
  16039. an 8-bit stack pointer and thus no 'SPH' register or not.
  16040. '-mstrict-X'
  16041. Use address register 'X' in a way proposed by the hardware. This
  16042. means that 'X' is only used in indirect, post-increment or
  16043. pre-decrement addressing.
  16044. Without this option, the 'X' register may be used in the same way
  16045. as 'Y' or 'Z' which then is emulated by additional instructions.
  16046. For example, loading a value with 'X+const' addressing with a small
  16047. non-negative 'const < 64' to a register RN is performed as
  16048. adiw r26, const ; X += const
  16049. ld RN, X ; RN = *X
  16050. sbiw r26, const ; X -= const
  16051. '-mtiny-stack'
  16052. Only change the lower 8 bits of the stack pointer.
  16053. '-mfract-convert-truncate'
  16054. Allow to use truncation instead of rounding towards zero for
  16055. fractional fixed-point types.
  16056. '-nodevicelib'
  16057. Don't link against AVR-LibC's device specific library 'lib<mcu>.a'.
  16058. '-nodevicespecs'
  16059. Don't add '-specs=device-specs/specs-MCU' to the compiler driver's
  16060. command line. The user takes responsibility for supplying the
  16061. sub-processes like compiler proper, assembler and linker with
  16062. appropriate command line options. This means that the user has to
  16063. supply her private device specs file by means of
  16064. '-specs=PATH-TO-SPECS-FILE'. There is no more need for option
  16065. '-mmcu=MCU'.
  16066. This option can also serve as a replacement for the older way of
  16067. specifying custom device-specs files that needed '-B SOME-PATH' to
  16068. point to a directory which contains a folder named 'device-specs'
  16069. which contains a specs file named 'specs-MCU', where MCU was
  16070. specified by '-mmcu=MCU'.
  16071. '-Waddr-space-convert'
  16072. Warn about conversions between address spaces in the case where the
  16073. resulting address space is not contained in the incoming address
  16074. space.
  16075. '-Wmisspelled-isr'
  16076. Warn if the ISR is misspelled, i.e. without __vector prefix.
  16077. Enabled by default.
  16078. 3.19.6.1 'EIND' and Devices with More Than 128 Ki Bytes of Flash
  16079. ................................................................
  16080. Pointers in the implementation are 16 bits wide. The address of a
  16081. function or label is represented as word address so that indirect jumps
  16082. and calls can target any code address in the range of 64 Ki words.
  16083. In order to facilitate indirect jump on devices with more than 128 Ki
  16084. bytes of program memory space, there is a special function register
  16085. called 'EIND' that serves as most significant part of the target address
  16086. when 'EICALL' or 'EIJMP' instructions are used.
  16087. Indirect jumps and calls on these devices are handled as follows by the
  16088. compiler and are subject to some limitations:
  16089. * The compiler never sets 'EIND'.
  16090. * The compiler uses 'EIND' implicitly in 'EICALL'/'EIJMP'
  16091. instructions or might read 'EIND' directly in order to emulate an
  16092. indirect call/jump by means of a 'RET' instruction.
  16093. * The compiler assumes that 'EIND' never changes during the startup
  16094. code or during the application. In particular, 'EIND' is not
  16095. saved/restored in function or interrupt service routine
  16096. prologue/epilogue.
  16097. * For indirect calls to functions and computed goto, the linker
  16098. generates _stubs_. Stubs are jump pads sometimes also called
  16099. _trampolines_. Thus, the indirect call/jump jumps to such a stub.
  16100. The stub contains a direct jump to the desired address.
  16101. * Linker relaxation must be turned on so that the linker generates
  16102. the stubs correctly in all situations. See the compiler option
  16103. '-mrelax' and the linker option '--relax'. There are corner cases
  16104. where the linker is supposed to generate stubs but aborts without
  16105. relaxation and without a helpful error message.
  16106. * The default linker script is arranged for code with 'EIND = 0'. If
  16107. code is supposed to work for a setup with 'EIND != 0', a custom
  16108. linker script has to be used in order to place the sections whose
  16109. name start with '.trampolines' into the segment where 'EIND' points
  16110. to.
  16111. * The startup code from libgcc never sets 'EIND'. Notice that
  16112. startup code is a blend of code from libgcc and AVR-LibC. For the
  16113. impact of AVR-LibC on 'EIND', see the
  16114. AVR-LibC user manual (http://nongnu.org/avr-libc/user-manual/).
  16115. * It is legitimate for user-specific startup code to set up 'EIND'
  16116. early, for example by means of initialization code located in
  16117. section '.init3'. Such code runs prior to general startup code
  16118. that initializes RAM and calls constructors, but after the bit of
  16119. startup code from AVR-LibC that sets 'EIND' to the segment where
  16120. the vector table is located.
  16121. #include <avr/io.h>
  16122. static void
  16123. __attribute__((section(".init3"),naked,used,no_instrument_function))
  16124. init3_set_eind (void)
  16125. {
  16126. __asm volatile ("ldi r24,pm_hh8(__trampolines_start)\n\t"
  16127. "out %i0,r24" :: "n" (&EIND) : "r24","memory");
  16128. }
  16129. The '__trampolines_start' symbol is defined in the linker script.
  16130. * Stubs are generated automatically by the linker if the following
  16131. two conditions are met:
  16132. - The address of a label is taken by means of the 'gs' modifier
  16133. (short for _generate stubs_) like so:
  16134. LDI r24, lo8(gs(FUNC))
  16135. LDI r25, hi8(gs(FUNC))
  16136. - The final location of that label is in a code segment
  16137. _outside_ the segment where the stubs are located.
  16138. * The compiler emits such 'gs' modifiers for code labels in the
  16139. following situations:
  16140. - Taking address of a function or code label.
  16141. - Computed goto.
  16142. - If prologue-save function is used, see '-mcall-prologues'
  16143. command-line option.
  16144. - Switch/case dispatch tables. If you do not want such dispatch
  16145. tables you can specify the '-fno-jump-tables' command-line
  16146. option.
  16147. - C and C++ constructors/destructors called during
  16148. startup/shutdown.
  16149. - If the tools hit a 'gs()' modifier explained above.
  16150. * Jumping to non-symbolic addresses like so is _not_ supported:
  16151. int main (void)
  16152. {
  16153. /* Call function at word address 0x2 */
  16154. return ((int(*)(void)) 0x2)();
  16155. }
  16156. Instead, a stub has to be set up, i.e. the function has to be
  16157. called through a symbol ('func_4' in the example):
  16158. int main (void)
  16159. {
  16160. extern int func_4 (void);
  16161. /* Call function at byte address 0x4 */
  16162. return func_4();
  16163. }
  16164. and the application be linked with '-Wl,--defsym,func_4=0x4'.
  16165. Alternatively, 'func_4' can be defined in the linker script.
  16166. 3.19.6.2 Handling of the 'RAMPD', 'RAMPX', 'RAMPY' and 'RAMPZ' Special Function Registers
  16167. .........................................................................................
  16168. Some AVR devices support memories larger than the 64 KiB range that can
  16169. be accessed with 16-bit pointers. To access memory locations outside
  16170. this 64 KiB range, the content of a 'RAMP' register is used as high part
  16171. of the address: The 'X', 'Y', 'Z' address register is concatenated with
  16172. the 'RAMPX', 'RAMPY', 'RAMPZ' special function register, respectively,
  16173. to get a wide address. Similarly, 'RAMPD' is used together with direct
  16174. addressing.
  16175. * The startup code initializes the 'RAMP' special function registers
  16176. with zero.
  16177. * If a *note named address space: AVR Named Address Spaces. other
  16178. than generic or '__flash' is used, then 'RAMPZ' is set as needed
  16179. before the operation.
  16180. * If the device supports RAM larger than 64 KiB and the compiler
  16181. needs to change 'RAMPZ' to accomplish an operation, 'RAMPZ' is
  16182. reset to zero after the operation.
  16183. * If the device comes with a specific 'RAMP' register, the ISR
  16184. prologue/epilogue saves/restores that SFR and initializes it with
  16185. zero in case the ISR code might (implicitly) use it.
  16186. * RAM larger than 64 KiB is not supported by GCC for AVR targets. If
  16187. you use inline assembler to read from locations outside the 16-bit
  16188. address range and change one of the 'RAMP' registers, you must
  16189. reset it to zero after the access.
  16190. 3.19.6.3 AVR Built-in Macros
  16191. ............................
  16192. GCC defines several built-in macros so that the user code can test for
  16193. the presence or absence of features. Almost any of the following
  16194. built-in macros are deduced from device capabilities and thus triggered
  16195. by the '-mmcu=' command-line option.
  16196. For even more AVR-specific built-in macros see *note AVR Named Address
  16197. Spaces:: and *note AVR Built-in Functions::.
  16198. '__AVR_ARCH__'
  16199. Build-in macro that resolves to a decimal number that identifies
  16200. the architecture and depends on the '-mmcu=MCU' option. Possible
  16201. values are:
  16202. '2', '25', '3', '31', '35', '4', '5', '51', '6'
  16203. for MCU='avr2', 'avr25', 'avr3', 'avr31', 'avr35', 'avr4', 'avr5',
  16204. 'avr51', 'avr6',
  16205. respectively and
  16206. '100', '102', '103', '104', '105', '106', '107'
  16207. for MCU='avrtiny', 'avrxmega2', 'avrxmega3', 'avrxmega4',
  16208. 'avrxmega5', 'avrxmega6', 'avrxmega7', respectively. If MCU
  16209. specifies a device, this built-in macro is set accordingly. For
  16210. example, with '-mmcu=atmega8' the macro is defined to '4'.
  16211. '__AVR_DEVICE__'
  16212. Setting '-mmcu=DEVICE' defines this built-in macro which reflects
  16213. the device's name. For example, '-mmcu=atmega8' defines the
  16214. built-in macro '__AVR_ATmega8__', '-mmcu=attiny261a' defines
  16215. '__AVR_ATtiny261A__', etc.
  16216. The built-in macros' names follow the scheme '__AVR_DEVICE__' where
  16217. DEVICE is the device name as from the AVR user manual. The
  16218. difference between DEVICE in the built-in macro and DEVICE in
  16219. '-mmcu=DEVICE' is that the latter is always lowercase.
  16220. If DEVICE is not a device but only a core architecture like
  16221. 'avr51', this macro is not defined.
  16222. '__AVR_DEVICE_NAME__'
  16223. Setting '-mmcu=DEVICE' defines this built-in macro to the device's
  16224. name. For example, with '-mmcu=atmega8' the macro is defined to
  16225. 'atmega8'.
  16226. If DEVICE is not a device but only a core architecture like
  16227. 'avr51', this macro is not defined.
  16228. '__AVR_XMEGA__'
  16229. The device / architecture belongs to the XMEGA family of devices.
  16230. '__AVR_HAVE_ELPM__'
  16231. The device has the 'ELPM' instruction.
  16232. '__AVR_HAVE_ELPMX__'
  16233. The device has the 'ELPM RN,Z' and 'ELPM RN,Z+' instructions.
  16234. '__AVR_HAVE_MOVW__'
  16235. The device has the 'MOVW' instruction to perform 16-bit
  16236. register-register moves.
  16237. '__AVR_HAVE_LPMX__'
  16238. The device has the 'LPM RN,Z' and 'LPM RN,Z+' instructions.
  16239. '__AVR_HAVE_MUL__'
  16240. The device has a hardware multiplier.
  16241. '__AVR_HAVE_JMP_CALL__'
  16242. The device has the 'JMP' and 'CALL' instructions. This is the case
  16243. for devices with more than 8 KiB of program memory.
  16244. '__AVR_HAVE_EIJMP_EICALL__'
  16245. '__AVR_3_BYTE_PC__'
  16246. The device has the 'EIJMP' and 'EICALL' instructions. This is the
  16247. case for devices with more than 128 KiB of program memory. This
  16248. also means that the program counter (PC) is 3 bytes wide.
  16249. '__AVR_2_BYTE_PC__'
  16250. The program counter (PC) is 2 bytes wide. This is the case for
  16251. devices with up to 128 KiB of program memory.
  16252. '__AVR_HAVE_8BIT_SP__'
  16253. '__AVR_HAVE_16BIT_SP__'
  16254. The stack pointer (SP) register is treated as 8-bit respectively
  16255. 16-bit register by the compiler. The definition of these macros is
  16256. affected by '-mtiny-stack'.
  16257. '__AVR_HAVE_SPH__'
  16258. '__AVR_SP8__'
  16259. The device has the SPH (high part of stack pointer) special
  16260. function register or has an 8-bit stack pointer, respectively. The
  16261. definition of these macros is affected by '-mmcu=' and in the cases
  16262. of '-mmcu=avr2' and '-mmcu=avr25' also by '-msp8'.
  16263. '__AVR_HAVE_RAMPD__'
  16264. '__AVR_HAVE_RAMPX__'
  16265. '__AVR_HAVE_RAMPY__'
  16266. '__AVR_HAVE_RAMPZ__'
  16267. The device has the 'RAMPD', 'RAMPX', 'RAMPY', 'RAMPZ' special
  16268. function register, respectively.
  16269. '__NO_INTERRUPTS__'
  16270. This macro reflects the '-mno-interrupts' command-line option.
  16271. '__AVR_ERRATA_SKIP__'
  16272. '__AVR_ERRATA_SKIP_JMP_CALL__'
  16273. Some AVR devices (AT90S8515, ATmega103) must not skip 32-bit
  16274. instructions because of a hardware erratum. Skip instructions are
  16275. 'SBRS', 'SBRC', 'SBIS', 'SBIC' and 'CPSE'. The second macro is
  16276. only defined if '__AVR_HAVE_JMP_CALL__' is also set.
  16277. '__AVR_ISA_RMW__'
  16278. The device has Read-Modify-Write instructions (XCH, LAC, LAS and
  16279. LAT).
  16280. '__AVR_SFR_OFFSET__=OFFSET'
  16281. Instructions that can address I/O special function registers
  16282. directly like 'IN', 'OUT', 'SBI', etc. may use a different address
  16283. as if addressed by an instruction to access RAM like 'LD' or 'STS'.
  16284. This offset depends on the device architecture and has to be
  16285. subtracted from the RAM address in order to get the respective
  16286. I/O address.
  16287. '__AVR_SHORT_CALLS__'
  16288. The '-mshort-calls' command line option is set.
  16289. '__AVR_PM_BASE_ADDRESS__=ADDR'
  16290. Some devices support reading from flash memory by means of 'LD*'
  16291. instructions. The flash memory is seen in the data address space
  16292. at an offset of '__AVR_PM_BASE_ADDRESS__'. If this macro is not
  16293. defined, this feature is not available. If defined, the address
  16294. space is linear and there is no need to put '.rodata' into RAM.
  16295. This is handled by the default linker description file, and is
  16296. currently available for 'avrtiny' and 'avrxmega3'. Even more
  16297. convenient, there is no need to use address spaces like '__flash'
  16298. or features like attribute 'progmem' and 'pgm_read_*'.
  16299. '__WITH_AVRLIBC__'
  16300. The compiler is configured to be used together with AVR-Libc. See
  16301. the '--with-avrlibc' configure option.
  16302. '__HAVE_DOUBLE_MULTILIB__'
  16303. Defined if '-mdouble=' acts as a multilib option.
  16304. '__HAVE_DOUBLE32__'
  16305. '__HAVE_DOUBLE64__'
  16306. Defined if the compiler supports 32-bit double resp. 64-bit
  16307. double. The actual layout is specified by option '-mdouble='.
  16308. '__DEFAULT_DOUBLE__'
  16309. The size in bits of 'double' if '-mdouble=' is not set. To test
  16310. the layout of 'double' in a program, use the built-in macro
  16311. '__SIZEOF_DOUBLE__'.
  16312. '__HAVE_LONG_DOUBLE32__'
  16313. '__HAVE_LONG_DOUBLE64__'
  16314. '__HAVE_LONG_DOUBLE_MULTILIB__'
  16315. '__DEFAULT_LONG_DOUBLE__'
  16316. Same as above, but for 'long double' instead of 'double'.
  16317. '__WITH_DOUBLE_COMPARISON__'
  16318. Reflects the '--with-double-comparison={tristate|bool|libf7}'
  16319. configure option (https://gcc.gnu.org/install/configure.html#avr)
  16320. and is defined to '2' or '3'.
  16321. '__WITH_LIBF7_LIBGCC__'
  16322. '__WITH_LIBF7_MATH__'
  16323. '__WITH_LIBF7_MATH_SYMBOLS__'
  16324. Reflects the '--with-libf7={libgcc|math|math-symbols}'
  16325. configure option (https://gcc.gnu.org/install/configure.html#avr).
  16326. 
  16327. File: gcc.info, Node: Blackfin Options, Next: C6X Options, Prev: AVR Options, Up: Submodel Options
  16328. 3.19.7 Blackfin Options
  16329. -----------------------
  16330. '-mcpu=CPU[-SIREVISION]'
  16331. Specifies the name of the target Blackfin processor. Currently,
  16332. CPU can be one of 'bf512', 'bf514', 'bf516', 'bf518', 'bf522',
  16333. 'bf523', 'bf524', 'bf525', 'bf526', 'bf527', 'bf531', 'bf532',
  16334. 'bf533', 'bf534', 'bf536', 'bf537', 'bf538', 'bf539', 'bf542',
  16335. 'bf544', 'bf547', 'bf548', 'bf549', 'bf542m', 'bf544m', 'bf547m',
  16336. 'bf548m', 'bf549m', 'bf561', 'bf592'.
  16337. The optional SIREVISION specifies the silicon revision of the
  16338. target Blackfin processor. Any workarounds available for the
  16339. targeted silicon revision are enabled. If SIREVISION is 'none', no
  16340. workarounds are enabled. If SIREVISION is 'any', all workarounds
  16341. for the targeted processor are enabled. The '__SILICON_REVISION__'
  16342. macro is defined to two hexadecimal digits representing the major
  16343. and minor numbers in the silicon revision. If SIREVISION is
  16344. 'none', the '__SILICON_REVISION__' is not defined. If SIREVISION
  16345. is 'any', the '__SILICON_REVISION__' is defined to be '0xffff'. If
  16346. this optional SIREVISION is not used, GCC assumes the latest known
  16347. silicon revision of the targeted Blackfin processor.
  16348. GCC defines a preprocessor macro for the specified CPU. For the
  16349. 'bfin-elf' toolchain, this option causes the hardware BSP provided
  16350. by libgloss to be linked in if '-msim' is not given.
  16351. Without this option, 'bf532' is used as the processor by default.
  16352. Note that support for 'bf561' is incomplete. For 'bf561', only the
  16353. preprocessor macro is defined.
  16354. '-msim'
  16355. Specifies that the program will be run on the simulator. This
  16356. causes the simulator BSP provided by libgloss to be linked in.
  16357. This option has effect only for 'bfin-elf' toolchain. Certain
  16358. other options, such as '-mid-shared-library' and '-mfdpic', imply
  16359. '-msim'.
  16360. '-momit-leaf-frame-pointer'
  16361. Don't keep the frame pointer in a register for leaf functions.
  16362. This avoids the instructions to save, set up and restore frame
  16363. pointers and makes an extra register available in leaf functions.
  16364. '-mspecld-anomaly'
  16365. When enabled, the compiler ensures that the generated code does not
  16366. contain speculative loads after jump instructions. If this option
  16367. is used, '__WORKAROUND_SPECULATIVE_LOADS' is defined.
  16368. '-mno-specld-anomaly'
  16369. Don't generate extra code to prevent speculative loads from
  16370. occurring.
  16371. '-mcsync-anomaly'
  16372. When enabled, the compiler ensures that the generated code does not
  16373. contain CSYNC or SSYNC instructions too soon after conditional
  16374. branches. If this option is used, '__WORKAROUND_SPECULATIVE_SYNCS'
  16375. is defined.
  16376. '-mno-csync-anomaly'
  16377. Don't generate extra code to prevent CSYNC or SSYNC instructions
  16378. from occurring too soon after a conditional branch.
  16379. '-mlow64k'
  16380. When enabled, the compiler is free to take advantage of the
  16381. knowledge that the entire program fits into the low 64k of memory.
  16382. '-mno-low64k'
  16383. Assume that the program is arbitrarily large. This is the default.
  16384. '-mstack-check-l1'
  16385. Do stack checking using information placed into L1 scratchpad
  16386. memory by the uClinux kernel.
  16387. '-mid-shared-library'
  16388. Generate code that supports shared libraries via the library ID
  16389. method. This allows for execute in place and shared libraries in
  16390. an environment without virtual memory management. This option
  16391. implies '-fPIC'. With a 'bfin-elf' target, this option implies
  16392. '-msim'.
  16393. '-mno-id-shared-library'
  16394. Generate code that doesn't assume ID-based shared libraries are
  16395. being used. This is the default.
  16396. '-mleaf-id-shared-library'
  16397. Generate code that supports shared libraries via the library ID
  16398. method, but assumes that this library or executable won't link
  16399. against any other ID shared libraries. That allows the compiler to
  16400. use faster code for jumps and calls.
  16401. '-mno-leaf-id-shared-library'
  16402. Do not assume that the code being compiled won't link against any
  16403. ID shared libraries. Slower code is generated for jump and call
  16404. insns.
  16405. '-mshared-library-id=n'
  16406. Specifies the identification number of the ID-based shared library
  16407. being compiled. Specifying a value of 0 generates more compact
  16408. code; specifying other values forces the allocation of that number
  16409. to the current library but is no more space- or time-efficient than
  16410. omitting this option.
  16411. '-msep-data'
  16412. Generate code that allows the data segment to be located in a
  16413. different area of memory from the text segment. This allows for
  16414. execute in place in an environment without virtual memory
  16415. management by eliminating relocations against the text section.
  16416. '-mno-sep-data'
  16417. Generate code that assumes that the data segment follows the text
  16418. segment. This is the default.
  16419. '-mlong-calls'
  16420. '-mno-long-calls'
  16421. Tells the compiler to perform function calls by first loading the
  16422. address of the function into a register and then performing a
  16423. subroutine call on this register. This switch is needed if the
  16424. target function lies outside of the 24-bit addressing range of the
  16425. offset-based version of subroutine call instruction.
  16426. This feature is not enabled by default. Specifying
  16427. '-mno-long-calls' restores the default behavior. Note these
  16428. switches have no effect on how the compiler generates code to
  16429. handle function calls via function pointers.
  16430. '-mfast-fp'
  16431. Link with the fast floating-point library. This library relaxes
  16432. some of the IEEE floating-point standard's rules for checking
  16433. inputs against Not-a-Number (NAN), in the interest of performance.
  16434. '-minline-plt'
  16435. Enable inlining of PLT entries in function calls to functions that
  16436. are not known to bind locally. It has no effect without '-mfdpic'.
  16437. '-mmulticore'
  16438. Build a standalone application for multicore Blackfin processors.
  16439. This option causes proper start files and link scripts supporting
  16440. multicore to be used, and defines the macro '__BFIN_MULTICORE'. It
  16441. can only be used with '-mcpu=bf561[-SIREVISION]'.
  16442. This option can be used with '-mcorea' or '-mcoreb', which selects
  16443. the one-application-per-core programming model. Without '-mcorea'
  16444. or '-mcoreb', the single-application/dual-core programming model is
  16445. used. In this model, the main function of Core B should be named
  16446. as 'coreb_main'.
  16447. If this option is not used, the single-core application programming
  16448. model is used.
  16449. '-mcorea'
  16450. Build a standalone application for Core A of BF561 when using the
  16451. one-application-per-core programming model. Proper start files and
  16452. link scripts are used to support Core A, and the macro
  16453. '__BFIN_COREA' is defined. This option can only be used in
  16454. conjunction with '-mmulticore'.
  16455. '-mcoreb'
  16456. Build a standalone application for Core B of BF561 when using the
  16457. one-application-per-core programming model. Proper start files and
  16458. link scripts are used to support Core B, and the macro
  16459. '__BFIN_COREB' is defined. When this option is used, 'coreb_main'
  16460. should be used instead of 'main'. This option can only be used in
  16461. conjunction with '-mmulticore'.
  16462. '-msdram'
  16463. Build a standalone application for SDRAM. Proper start files and
  16464. link scripts are used to put the application into SDRAM, and the
  16465. macro '__BFIN_SDRAM' is defined. The loader should initialize
  16466. SDRAM before loading the application.
  16467. '-micplb'
  16468. Assume that ICPLBs are enabled at run time. This has an effect on
  16469. certain anomaly workarounds. For Linux targets, the default is to
  16470. assume ICPLBs are enabled; for standalone applications the default
  16471. is off.
  16472. 
  16473. File: gcc.info, Node: C6X Options, Next: CRIS Options, Prev: Blackfin Options, Up: Submodel Options
  16474. 3.19.8 C6X Options
  16475. ------------------
  16476. '-march=NAME'
  16477. This specifies the name of the target architecture. GCC uses this
  16478. name to determine what kind of instructions it can emit when
  16479. generating assembly code. Permissible names are: 'c62x', 'c64x',
  16480. 'c64x+', 'c67x', 'c67x+', 'c674x'.
  16481. '-mbig-endian'
  16482. Generate code for a big-endian target.
  16483. '-mlittle-endian'
  16484. Generate code for a little-endian target. This is the default.
  16485. '-msim'
  16486. Choose startup files and linker script suitable for the simulator.
  16487. '-msdata=default'
  16488. Put small global and static data in the '.neardata' section, which
  16489. is pointed to by register 'B14'. Put small uninitialized global
  16490. and static data in the '.bss' section, which is adjacent to the
  16491. '.neardata' section. Put small read-only data into the '.rodata'
  16492. section. The corresponding sections used for large pieces of data
  16493. are '.fardata', '.far' and '.const'.
  16494. '-msdata=all'
  16495. Put all data, not just small objects, into the sections reserved
  16496. for small data, and use addressing relative to the 'B14' register
  16497. to access them.
  16498. '-msdata=none'
  16499. Make no use of the sections reserved for small data, and use
  16500. absolute addresses to access all data. Put all initialized global
  16501. and static data in the '.fardata' section, and all uninitialized
  16502. data in the '.far' section. Put all constant data into the
  16503. '.const' section.
  16504. 
  16505. File: gcc.info, Node: CRIS Options, Next: CR16 Options, Prev: C6X Options, Up: Submodel Options
  16506. 3.19.9 CRIS Options
  16507. -------------------
  16508. These options are defined specifically for the CRIS ports.
  16509. '-march=ARCHITECTURE-TYPE'
  16510. '-mcpu=ARCHITECTURE-TYPE'
  16511. Generate code for the specified architecture. The choices for
  16512. ARCHITECTURE-TYPE are 'v3', 'v8' and 'v10' for respectively
  16513. ETRAX 4, ETRAX 100, and ETRAX 100 LX. Default is 'v0' except for
  16514. cris-axis-linux-gnu, where the default is 'v10'.
  16515. '-mtune=ARCHITECTURE-TYPE'
  16516. Tune to ARCHITECTURE-TYPE everything applicable about the generated
  16517. code, except for the ABI and the set of available instructions.
  16518. The choices for ARCHITECTURE-TYPE are the same as for
  16519. '-march=ARCHITECTURE-TYPE'.
  16520. '-mmax-stack-frame=N'
  16521. Warn when the stack frame of a function exceeds N bytes.
  16522. '-metrax4'
  16523. '-metrax100'
  16524. The options '-metrax4' and '-metrax100' are synonyms for
  16525. '-march=v3' and '-march=v8' respectively.
  16526. '-mmul-bug-workaround'
  16527. '-mno-mul-bug-workaround'
  16528. Work around a bug in the 'muls' and 'mulu' instructions for CPU
  16529. models where it applies. This option is active by default.
  16530. '-mpdebug'
  16531. Enable CRIS-specific verbose debug-related information in the
  16532. assembly code. This option also has the effect of turning off the
  16533. '#NO_APP' formatted-code indicator to the assembler at the
  16534. beginning of the assembly file.
  16535. '-mcc-init'
  16536. Do not use condition-code results from previous instruction; always
  16537. emit compare and test instructions before use of condition codes.
  16538. '-mno-side-effects'
  16539. Do not emit instructions with side effects in addressing modes
  16540. other than post-increment.
  16541. '-mstack-align'
  16542. '-mno-stack-align'
  16543. '-mdata-align'
  16544. '-mno-data-align'
  16545. '-mconst-align'
  16546. '-mno-const-align'
  16547. These options ('no-' options) arrange (eliminate arrangements) for
  16548. the stack frame, individual data and constants to be aligned for
  16549. the maximum single data access size for the chosen CPU model. The
  16550. default is to arrange for 32-bit alignment. ABI details such as
  16551. structure layout are not affected by these options.
  16552. '-m32-bit'
  16553. '-m16-bit'
  16554. '-m8-bit'
  16555. Similar to the stack- data- and const-align options above, these
  16556. options arrange for stack frame, writable data and constants to all
  16557. be 32-bit, 16-bit or 8-bit aligned. The default is 32-bit
  16558. alignment.
  16559. '-mno-prologue-epilogue'
  16560. '-mprologue-epilogue'
  16561. With '-mno-prologue-epilogue', the normal function prologue and
  16562. epilogue which set up the stack frame are omitted and no return
  16563. instructions or return sequences are generated in the code. Use
  16564. this option only together with visual inspection of the compiled
  16565. code: no warnings or errors are generated when call-saved registers
  16566. must be saved, or storage for local variables needs to be
  16567. allocated.
  16568. '-mno-gotplt'
  16569. '-mgotplt'
  16570. With '-fpic' and '-fPIC', don't generate (do generate) instruction
  16571. sequences that load addresses for functions from the PLT part of
  16572. the GOT rather than (traditional on other architectures) calls to
  16573. the PLT. The default is '-mgotplt'.
  16574. '-melf'
  16575. Legacy no-op option only recognized with the cris-axis-elf and
  16576. cris-axis-linux-gnu targets.
  16577. '-mlinux'
  16578. Legacy no-op option only recognized with the cris-axis-linux-gnu
  16579. target.
  16580. '-sim'
  16581. This option, recognized for the cris-axis-elf, arranges to link
  16582. with input-output functions from a simulator library. Code,
  16583. initialized data and zero-initialized data are allocated
  16584. consecutively.
  16585. '-sim2'
  16586. Like '-sim', but pass linker options to locate initialized data at
  16587. 0x40000000 and zero-initialized data at 0x80000000.
  16588. 
  16589. File: gcc.info, Node: CR16 Options, Next: C-SKY Options, Prev: CRIS Options, Up: Submodel Options
  16590. 3.19.10 CR16 Options
  16591. --------------------
  16592. These options are defined specifically for the CR16 ports.
  16593. '-mmac'
  16594. Enable the use of multiply-accumulate instructions. Disabled by
  16595. default.
  16596. '-mcr16cplus'
  16597. '-mcr16c'
  16598. Generate code for CR16C or CR16C+ architecture. CR16C+
  16599. architecture is default.
  16600. '-msim'
  16601. Links the library libsim.a which is in compatible with simulator.
  16602. Applicable to ELF compiler only.
  16603. '-mint32'
  16604. Choose integer type as 32-bit wide.
  16605. '-mbit-ops'
  16606. Generates 'sbit'/'cbit' instructions for bit manipulations.
  16607. '-mdata-model=MODEL'
  16608. Choose a data model. The choices for MODEL are 'near', 'far' or
  16609. 'medium'. 'medium' is default. However, 'far' is not valid with
  16610. '-mcr16c', as the CR16C architecture does not support the far data
  16611. model.
  16612. 
  16613. File: gcc.info, Node: C-SKY Options, Next: Darwin Options, Prev: CR16 Options, Up: Submodel Options
  16614. 3.19.11 C-SKY Options
  16615. ---------------------
  16616. GCC supports these options when compiling for C-SKY V2 processors.
  16617. '-march=ARCH'
  16618. Specify the C-SKY target architecture. Valid values for ARCH are:
  16619. 'ck801', 'ck802', 'ck803', 'ck807', and 'ck810'. The default is
  16620. 'ck810'.
  16621. '-mcpu=CPU'
  16622. Specify the C-SKY target processor. Valid values for CPU are:
  16623. 'ck801', 'ck801t', 'ck802', 'ck802t', 'ck802j', 'ck803', 'ck803h',
  16624. 'ck803t', 'ck803ht', 'ck803f', 'ck803fh', 'ck803e', 'ck803eh',
  16625. 'ck803et', 'ck803eht', 'ck803ef', 'ck803efh', 'ck803ft',
  16626. 'ck803eft', 'ck803efht', 'ck803r1', 'ck803hr1', 'ck803tr1',
  16627. 'ck803htr1', 'ck803fr1', 'ck803fhr1', 'ck803er1', 'ck803ehr1',
  16628. 'ck803etr1', 'ck803ehtr1', 'ck803efr1', 'ck803efhr1', 'ck803ftr1',
  16629. 'ck803eftr1', 'ck803efhtr1', 'ck803s', 'ck803st', 'ck803se',
  16630. 'ck803sf', 'ck803sef', 'ck803seft', 'ck807e', 'ck807ef', 'ck807',
  16631. 'ck807f', 'ck810e', 'ck810et', 'ck810ef', 'ck810eft', 'ck810',
  16632. 'ck810v', 'ck810f', 'ck810t', 'ck810fv', 'ck810tv', 'ck810ft', and
  16633. 'ck810ftv'.
  16634. '-mbig-endian'
  16635. '-EB'
  16636. '-mlittle-endian'
  16637. '-EL'
  16638. Select big- or little-endian code. The default is little-endian.
  16639. '-mfloat-abi=NAME'
  16640. Specifies which floating-point ABI to use. Permissible values are:
  16641. 'soft', 'softfp' and 'hard'.
  16642. Specifying 'soft' causes GCC to generate output containing library
  16643. calls for floating-point operations. 'softfp' allows the
  16644. generation of code using hardware floating-point instructions, but
  16645. still uses the soft-float calling conventions. 'hard' allows
  16646. generation of floating-point instructions and uses FPU-specific
  16647. calling conventions.
  16648. The default depends on the specific target configuration. Note
  16649. that the hard-float and soft-float ABIs are not link-compatible;
  16650. you must compile your entire program with the same ABI, and link
  16651. with a compatible set of libraries.
  16652. '-mhard-float'
  16653. '-msoft-float'
  16654. Select hardware or software floating-point implementations. The
  16655. default is soft float.
  16656. '-mdouble-float'
  16657. '-mno-double-float'
  16658. When '-mhard-float' is in effect, enable generation of
  16659. double-precision float instructions. This is the default except
  16660. when compiling for CK803.
  16661. '-mfdivdu'
  16662. '-mno-fdivdu'
  16663. When '-mhard-float' is in effect, enable generation of 'frecipd',
  16664. 'fsqrtd', and 'fdivd' instructions. This is the default except
  16665. when compiling for CK803.
  16666. '-mfpu=FPU'
  16667. Select the floating-point processor. This option can only be used
  16668. with '-mhard-float'. Values for FPU are 'fpv2_sf' (equivalent to
  16669. '-mno-double-float -mno-fdivdu'), 'fpv2' ('-mdouble-float
  16670. -mno-divdu'), and 'fpv2_divd' ('-mdouble-float -mdivdu').
  16671. '-melrw'
  16672. '-mno-elrw'
  16673. Enable the extended 'lrw' instruction. This option defaults to on
  16674. for CK801 and off otherwise.
  16675. '-mistack'
  16676. '-mno-istack'
  16677. Enable interrupt stack instructions; the default is off.
  16678. The '-mistack' option is required to handle the 'interrupt' and
  16679. 'isr' function attributes (*note C-SKY Function Attributes::).
  16680. '-mmp'
  16681. Enable multiprocessor instructions; the default is off.
  16682. '-mcp'
  16683. Enable coprocessor instructions; the default is off.
  16684. '-mcache'
  16685. Enable coprocessor instructions; the default is off.
  16686. '-msecurity'
  16687. Enable C-SKY security instructions; the default is off.
  16688. '-mtrust'
  16689. Enable C-SKY trust instructions; the default is off.
  16690. '-mdsp'
  16691. '-medsp'
  16692. '-mvdsp'
  16693. Enable C-SKY DSP, Enhanced DSP, or Vector DSP instructions,
  16694. respectively. All of these options default to off.
  16695. '-mdiv'
  16696. '-mno-div'
  16697. Generate divide instructions. Default is off.
  16698. '-msmart'
  16699. '-mno-smart'
  16700. Generate code for Smart Mode, using only registers numbered 0-7 to
  16701. allow use of 16-bit instructions. This option is ignored for CK801
  16702. where this is the required behavior, and it defaults to on for
  16703. CK802. For other targets, the default is off.
  16704. '-mhigh-registers'
  16705. '-mno-high-registers'
  16706. Generate code using the high registers numbered 16-31. This option
  16707. is not supported on CK801, CK802, or CK803, and is enabled by
  16708. default for other processors.
  16709. '-manchor'
  16710. '-mno-anchor'
  16711. Generate code using global anchor symbol addresses.
  16712. '-mpushpop'
  16713. '-mno-pushpop'
  16714. Generate code using 'push' and 'pop' instructions. This option
  16715. defaults to on.
  16716. '-mmultiple-stld'
  16717. '-mstm'
  16718. '-mno-multiple-stld'
  16719. '-mno-stm'
  16720. Generate code using 'stm' and 'ldm' instructions. This option
  16721. isn't supported on CK801 but is enabled by default on other
  16722. processors.
  16723. '-mconstpool'
  16724. '-mno-constpool'
  16725. Create constant pools in the compiler instead of deferring it to
  16726. the assembler. This option is the default and required for correct
  16727. code generation on CK801 and CK802, and is optional on other
  16728. processors.
  16729. '-mstack-size'
  16730. '-mno-stack-size'
  16731. Emit '.stack_size' directives for each function in the assembly
  16732. output. This option defaults to off.
  16733. '-mccrt'
  16734. '-mno-ccrt'
  16735. Generate code for the C-SKY compiler runtime instead of libgcc.
  16736. This option defaults to off.
  16737. '-mbranch-cost=N'
  16738. Set the branch costs to roughly 'n' instructions. The default is
  16739. 1.
  16740. '-msched-prolog'
  16741. '-mno-sched-prolog'
  16742. Permit scheduling of function prologue and epilogue sequences.
  16743. Using this option can result in code that is not compliant with the
  16744. C-SKY V2 ABI prologue requirements and that cannot be debugged or
  16745. backtraced. It is disabled by default.
  16746. '-msim'
  16747. Links the library libsemi.a which is in compatible with simulator.
  16748. Applicable to ELF compiler only.
  16749. 
  16750. File: gcc.info, Node: Darwin Options, Next: DEC Alpha Options, Prev: C-SKY Options, Up: Submodel Options
  16751. 3.19.12 Darwin Options
  16752. ----------------------
  16753. These options are defined for all architectures running the Darwin
  16754. operating system.
  16755. FSF GCC on Darwin does not create "fat" object files; it creates an
  16756. object file for the single architecture that GCC was built to target.
  16757. Apple's GCC on Darwin does create "fat" files if multiple '-arch'
  16758. options are used; it does so by running the compiler or linker multiple
  16759. times and joining the results together with 'lipo'.
  16760. The subtype of the file created (like 'ppc7400' or 'ppc970' or 'i686')
  16761. is determined by the flags that specify the ISA that GCC is targeting,
  16762. like '-mcpu' or '-march'. The '-force_cpusubtype_ALL' option can be
  16763. used to override this.
  16764. The Darwin tools vary in their behavior when presented with an ISA
  16765. mismatch. The assembler, 'as', only permits instructions to be used
  16766. that are valid for the subtype of the file it is generating, so you
  16767. cannot put 64-bit instructions in a 'ppc750' object file. The linker
  16768. for shared libraries, '/usr/bin/libtool', fails and prints an error if
  16769. asked to create a shared library with a less restrictive subtype than
  16770. its input files (for instance, trying to put a 'ppc970' object file in a
  16771. 'ppc7400' library). The linker for executables, 'ld', quietly gives the
  16772. executable the most restrictive subtype of any of its input files.
  16773. '-FDIR'
  16774. Add the framework directory DIR to the head of the list of
  16775. directories to be searched for header files. These directories are
  16776. interleaved with those specified by '-I' options and are scanned in
  16777. a left-to-right order.
  16778. A framework directory is a directory with frameworks in it. A
  16779. framework is a directory with a 'Headers' and/or 'PrivateHeaders'
  16780. directory contained directly in it that ends in '.framework'. The
  16781. name of a framework is the name of this directory excluding the
  16782. '.framework'. Headers associated with the framework are found in
  16783. one of those two directories, with 'Headers' being searched first.
  16784. A subframework is a framework directory that is in a framework's
  16785. 'Frameworks' directory. Includes of subframework headers can only
  16786. appear in a header of a framework that contains the subframework,
  16787. or in a sibling subframework header. Two subframeworks are
  16788. siblings if they occur in the same framework. A subframework
  16789. should not have the same name as a framework; a warning is issued
  16790. if this is violated. Currently a subframework cannot have
  16791. subframeworks; in the future, the mechanism may be extended to
  16792. support this. The standard frameworks can be found in
  16793. '/System/Library/Frameworks' and '/Library/Frameworks'. An example
  16794. include looks like '#include <Framework/header.h>', where
  16795. 'Framework' denotes the name of the framework and 'header.h' is
  16796. found in the 'PrivateHeaders' or 'Headers' directory.
  16797. '-iframeworkDIR'
  16798. Like '-F' except the directory is a treated as a system directory.
  16799. The main difference between this '-iframework' and '-F' is that
  16800. with '-iframework' the compiler does not warn about constructs
  16801. contained within header files found via DIR. This option is valid
  16802. only for the C family of languages.
  16803. '-gused'
  16804. Emit debugging information for symbols that are used. For stabs
  16805. debugging format, this enables '-feliminate-unused-debug-symbols'.
  16806. This is by default ON.
  16807. '-gfull'
  16808. Emit debugging information for all symbols and types.
  16809. '-mmacosx-version-min=VERSION'
  16810. The earliest version of MacOS X that this executable will run on is
  16811. VERSION. Typical values of VERSION include '10.1', '10.2', and
  16812. '10.3.9'.
  16813. If the compiler was built to use the system's headers by default,
  16814. then the default for this option is the system version on which the
  16815. compiler is running, otherwise the default is to make choices that
  16816. are compatible with as many systems and code bases as possible.
  16817. '-mkernel'
  16818. Enable kernel development mode. The '-mkernel' option sets
  16819. '-static', '-fno-common', '-fno-use-cxa-atexit', '-fno-exceptions',
  16820. '-fno-non-call-exceptions', '-fapple-kext', '-fno-weak' and
  16821. '-fno-rtti' where applicable. This mode also sets '-mno-altivec',
  16822. '-msoft-float', '-fno-builtin' and '-mlong-branch' for PowerPC
  16823. targets.
  16824. '-mone-byte-bool'
  16825. Override the defaults for 'bool' so that 'sizeof(bool)==1'. By
  16826. default 'sizeof(bool)' is '4' when compiling for Darwin/PowerPC and
  16827. '1' when compiling for Darwin/x86, so this option has no effect on
  16828. x86.
  16829. *Warning:* The '-mone-byte-bool' switch causes GCC to generate code
  16830. that is not binary compatible with code generated without that
  16831. switch. Using this switch may require recompiling all other
  16832. modules in a program, including system libraries. Use this switch
  16833. to conform to a non-default data model.
  16834. '-mfix-and-continue'
  16835. '-ffix-and-continue'
  16836. '-findirect-data'
  16837. Generate code suitable for fast turnaround development, such as to
  16838. allow GDB to dynamically load '.o' files into already-running
  16839. programs. '-findirect-data' and '-ffix-and-continue' are provided
  16840. for backwards compatibility.
  16841. '-all_load'
  16842. Loads all members of static archive libraries. See man ld(1) for
  16843. more information.
  16844. '-arch_errors_fatal'
  16845. Cause the errors having to do with files that have the wrong
  16846. architecture to be fatal.
  16847. '-bind_at_load'
  16848. Causes the output file to be marked such that the dynamic linker
  16849. will bind all undefined references when the file is loaded or
  16850. launched.
  16851. '-bundle'
  16852. Produce a Mach-o bundle format file. See man ld(1) for more
  16853. information.
  16854. '-bundle_loader EXECUTABLE'
  16855. This option specifies the EXECUTABLE that will load the build
  16856. output file being linked. See man ld(1) for more information.
  16857. '-dynamiclib'
  16858. When passed this option, GCC produces a dynamic library instead of
  16859. an executable when linking, using the Darwin 'libtool' command.
  16860. '-force_cpusubtype_ALL'
  16861. This causes GCC's output file to have the 'ALL' subtype, instead of
  16862. one controlled by the '-mcpu' or '-march' option.
  16863. '-allowable_client CLIENT_NAME'
  16864. '-client_name'
  16865. '-compatibility_version'
  16866. '-current_version'
  16867. '-dead_strip'
  16868. '-dependency-file'
  16869. '-dylib_file'
  16870. '-dylinker_install_name'
  16871. '-dynamic'
  16872. '-exported_symbols_list'
  16873. '-filelist'
  16874. '-flat_namespace'
  16875. '-force_flat_namespace'
  16876. '-headerpad_max_install_names'
  16877. '-image_base'
  16878. '-init'
  16879. '-install_name'
  16880. '-keep_private_externs'
  16881. '-multi_module'
  16882. '-multiply_defined'
  16883. '-multiply_defined_unused'
  16884. '-noall_load'
  16885. '-no_dead_strip_inits_and_terms'
  16886. '-nofixprebinding'
  16887. '-nomultidefs'
  16888. '-noprebind'
  16889. '-noseglinkedit'
  16890. '-pagezero_size'
  16891. '-prebind'
  16892. '-prebind_all_twolevel_modules'
  16893. '-private_bundle'
  16894. '-read_only_relocs'
  16895. '-sectalign'
  16896. '-sectobjectsymbols'
  16897. '-whyload'
  16898. '-seg1addr'
  16899. '-sectcreate'
  16900. '-sectobjectsymbols'
  16901. '-sectorder'
  16902. '-segaddr'
  16903. '-segs_read_only_addr'
  16904. '-segs_read_write_addr'
  16905. '-seg_addr_table'
  16906. '-seg_addr_table_filename'
  16907. '-seglinkedit'
  16908. '-segprot'
  16909. '-segs_read_only_addr'
  16910. '-segs_read_write_addr'
  16911. '-single_module'
  16912. '-static'
  16913. '-sub_library'
  16914. '-sub_umbrella'
  16915. '-twolevel_namespace'
  16916. '-umbrella'
  16917. '-undefined'
  16918. '-unexported_symbols_list'
  16919. '-weak_reference_mismatches'
  16920. '-whatsloaded'
  16921. These options are passed to the Darwin linker. The Darwin linker
  16922. man page describes them in detail.
  16923. 
  16924. File: gcc.info, Node: DEC Alpha Options, Next: eBPF Options, Prev: Darwin Options, Up: Submodel Options
  16925. 3.19.13 DEC Alpha Options
  16926. -------------------------
  16927. These '-m' options are defined for the DEC Alpha implementations:
  16928. '-mno-soft-float'
  16929. '-msoft-float'
  16930. Use (do not use) the hardware floating-point instructions for
  16931. floating-point operations. When '-msoft-float' is specified,
  16932. functions in 'libgcc.a' are used to perform floating-point
  16933. operations. Unless they are replaced by routines that emulate the
  16934. floating-point operations, or compiled in such a way as to call
  16935. such emulations routines, these routines issue floating-point
  16936. operations. If you are compiling for an Alpha without
  16937. floating-point operations, you must ensure that the library is
  16938. built so as not to call them.
  16939. Note that Alpha implementations without floating-point operations
  16940. are required to have floating-point registers.
  16941. '-mfp-reg'
  16942. '-mno-fp-regs'
  16943. Generate code that uses (does not use) the floating-point register
  16944. set. '-mno-fp-regs' implies '-msoft-float'. If the floating-point
  16945. register set is not used, floating-point operands are passed in
  16946. integer registers as if they were integers and floating-point
  16947. results are passed in '$0' instead of '$f0'. This is a
  16948. non-standard calling sequence, so any function with a
  16949. floating-point argument or return value called by code compiled
  16950. with '-mno-fp-regs' must also be compiled with that option.
  16951. A typical use of this option is building a kernel that does not
  16952. use, and hence need not save and restore, any floating-point
  16953. registers.
  16954. '-mieee'
  16955. The Alpha architecture implements floating-point hardware optimized
  16956. for maximum performance. It is mostly compliant with the IEEE
  16957. floating-point standard. However, for full compliance, software
  16958. assistance is required. This option generates code fully
  16959. IEEE-compliant code _except_ that the INEXACT-FLAG is not
  16960. maintained (see below). If this option is turned on, the
  16961. preprocessor macro '_IEEE_FP' is defined during compilation. The
  16962. resulting code is less efficient but is able to correctly support
  16963. denormalized numbers and exceptional IEEE values such as
  16964. not-a-number and plus/minus infinity. Other Alpha compilers call
  16965. this option '-ieee_with_no_inexact'.
  16966. '-mieee-with-inexact'
  16967. This is like '-mieee' except the generated code also maintains the
  16968. IEEE INEXACT-FLAG. Turning on this option causes the generated
  16969. code to implement fully-compliant IEEE math. In addition to
  16970. '_IEEE_FP', '_IEEE_FP_EXACT' is defined as a preprocessor macro.
  16971. On some Alpha implementations the resulting code may execute
  16972. significantly slower than the code generated by default. Since
  16973. there is very little code that depends on the INEXACT-FLAG, you
  16974. should normally not specify this option. Other Alpha compilers
  16975. call this option '-ieee_with_inexact'.
  16976. '-mfp-trap-mode=TRAP-MODE'
  16977. This option controls what floating-point related traps are enabled.
  16978. Other Alpha compilers call this option '-fptm TRAP-MODE'. The trap
  16979. mode can be set to one of four values:
  16980. 'n'
  16981. This is the default (normal) setting. The only traps that are
  16982. enabled are the ones that cannot be disabled in software
  16983. (e.g., division by zero trap).
  16984. 'u'
  16985. In addition to the traps enabled by 'n', underflow traps are
  16986. enabled as well.
  16987. 'su'
  16988. Like 'u', but the instructions are marked to be safe for
  16989. software completion (see Alpha architecture manual for
  16990. details).
  16991. 'sui'
  16992. Like 'su', but inexact traps are enabled as well.
  16993. '-mfp-rounding-mode=ROUNDING-MODE'
  16994. Selects the IEEE rounding mode. Other Alpha compilers call this
  16995. option '-fprm ROUNDING-MODE'. The ROUNDING-MODE can be one of:
  16996. 'n'
  16997. Normal IEEE rounding mode. Floating-point numbers are rounded
  16998. towards the nearest machine number or towards the even machine
  16999. number in case of a tie.
  17000. 'm'
  17001. Round towards minus infinity.
  17002. 'c'
  17003. Chopped rounding mode. Floating-point numbers are rounded
  17004. towards zero.
  17005. 'd'
  17006. Dynamic rounding mode. A field in the floating-point control
  17007. register (FPCR, see Alpha architecture reference manual)
  17008. controls the rounding mode in effect. The C library
  17009. initializes this register for rounding towards plus infinity.
  17010. Thus, unless your program modifies the FPCR, 'd' corresponds
  17011. to round towards plus infinity.
  17012. '-mtrap-precision=TRAP-PRECISION'
  17013. In the Alpha architecture, floating-point traps are imprecise.
  17014. This means without software assistance it is impossible to recover
  17015. from a floating trap and program execution normally needs to be
  17016. terminated. GCC can generate code that can assist operating system
  17017. trap handlers in determining the exact location that caused a
  17018. floating-point trap. Depending on the requirements of an
  17019. application, different levels of precisions can be selected:
  17020. 'p'
  17021. Program precision. This option is the default and means a
  17022. trap handler can only identify which program caused a
  17023. floating-point exception.
  17024. 'f'
  17025. Function precision. The trap handler can determine the
  17026. function that caused a floating-point exception.
  17027. 'i'
  17028. Instruction precision. The trap handler can determine the
  17029. exact instruction that caused a floating-point exception.
  17030. Other Alpha compilers provide the equivalent options called
  17031. '-scope_safe' and '-resumption_safe'.
  17032. '-mieee-conformant'
  17033. This option marks the generated code as IEEE conformant. You must
  17034. not use this option unless you also specify '-mtrap-precision=i'
  17035. and either '-mfp-trap-mode=su' or '-mfp-trap-mode=sui'. Its only
  17036. effect is to emit the line '.eflag 48' in the function prologue of
  17037. the generated assembly file.
  17038. '-mbuild-constants'
  17039. Normally GCC examines a 32- or 64-bit integer constant to see if it
  17040. can construct it from smaller constants in two or three
  17041. instructions. If it cannot, it outputs the constant as a literal
  17042. and generates code to load it from the data segment at run time.
  17043. Use this option to require GCC to construct _all_ integer constants
  17044. using code, even if it takes more instructions (the maximum is
  17045. six).
  17046. You typically use this option to build a shared library dynamic
  17047. loader. Itself a shared library, it must relocate itself in memory
  17048. before it can find the variables and constants in its own data
  17049. segment.
  17050. '-mbwx'
  17051. '-mno-bwx'
  17052. '-mcix'
  17053. '-mno-cix'
  17054. '-mfix'
  17055. '-mno-fix'
  17056. '-mmax'
  17057. '-mno-max'
  17058. Indicate whether GCC should generate code to use the optional BWX,
  17059. CIX, FIX and MAX instruction sets. The default is to use the
  17060. instruction sets supported by the CPU type specified via '-mcpu='
  17061. option or that of the CPU on which GCC was built if none is
  17062. specified.
  17063. '-mfloat-vax'
  17064. '-mfloat-ieee'
  17065. Generate code that uses (does not use) VAX F and G floating-point
  17066. arithmetic instead of IEEE single and double precision.
  17067. '-mexplicit-relocs'
  17068. '-mno-explicit-relocs'
  17069. Older Alpha assemblers provided no way to generate symbol
  17070. relocations except via assembler macros. Use of these macros does
  17071. not allow optimal instruction scheduling. GNU binutils as of
  17072. version 2.12 supports a new syntax that allows the compiler to
  17073. explicitly mark which relocations should apply to which
  17074. instructions. This option is mostly useful for debugging, as GCC
  17075. detects the capabilities of the assembler when it is built and sets
  17076. the default accordingly.
  17077. '-msmall-data'
  17078. '-mlarge-data'
  17079. When '-mexplicit-relocs' is in effect, static data is accessed via
  17080. "gp-relative" relocations. When '-msmall-data' is used, objects 8
  17081. bytes long or smaller are placed in a "small data area" (the
  17082. '.sdata' and '.sbss' sections) and are accessed via 16-bit
  17083. relocations off of the '$gp' register. This limits the size of the
  17084. small data area to 64KB, but allows the variables to be directly
  17085. accessed via a single instruction.
  17086. The default is '-mlarge-data'. With this option the data area is
  17087. limited to just below 2GB. Programs that require more than 2GB of
  17088. data must use 'malloc' or 'mmap' to allocate the data in the heap
  17089. instead of in the program's data segment.
  17090. When generating code for shared libraries, '-fpic' implies
  17091. '-msmall-data' and '-fPIC' implies '-mlarge-data'.
  17092. '-msmall-text'
  17093. '-mlarge-text'
  17094. When '-msmall-text' is used, the compiler assumes that the code of
  17095. the entire program (or shared library) fits in 4MB, and is thus
  17096. reachable with a branch instruction. When '-msmall-data' is used,
  17097. the compiler can assume that all local symbols share the same '$gp'
  17098. value, and thus reduce the number of instructions required for a
  17099. function call from 4 to 1.
  17100. The default is '-mlarge-text'.
  17101. '-mcpu=CPU_TYPE'
  17102. Set the instruction set and instruction scheduling parameters for
  17103. machine type CPU_TYPE. You can specify either the 'EV' style name
  17104. or the corresponding chip number. GCC supports scheduling
  17105. parameters for the EV4, EV5 and EV6 family of processors and
  17106. chooses the default values for the instruction set from the
  17107. processor you specify. If you do not specify a processor type, GCC
  17108. defaults to the processor on which the compiler was built.
  17109. Supported values for CPU_TYPE are
  17110. 'ev4'
  17111. 'ev45'
  17112. '21064'
  17113. Schedules as an EV4 and has no instruction set extensions.
  17114. 'ev5'
  17115. '21164'
  17116. Schedules as an EV5 and has no instruction set extensions.
  17117. 'ev56'
  17118. '21164a'
  17119. Schedules as an EV5 and supports the BWX extension.
  17120. 'pca56'
  17121. '21164pc'
  17122. '21164PC'
  17123. Schedules as an EV5 and supports the BWX and MAX extensions.
  17124. 'ev6'
  17125. '21264'
  17126. Schedules as an EV6 and supports the BWX, FIX, and MAX
  17127. extensions.
  17128. 'ev67'
  17129. '21264a'
  17130. Schedules as an EV6 and supports the BWX, CIX, FIX, and MAX
  17131. extensions.
  17132. Native toolchains also support the value 'native', which selects
  17133. the best architecture option for the host processor.
  17134. '-mcpu=native' has no effect if GCC does not recognize the
  17135. processor.
  17136. '-mtune=CPU_TYPE'
  17137. Set only the instruction scheduling parameters for machine type
  17138. CPU_TYPE. The instruction set is not changed.
  17139. Native toolchains also support the value 'native', which selects
  17140. the best architecture option for the host processor.
  17141. '-mtune=native' has no effect if GCC does not recognize the
  17142. processor.
  17143. '-mmemory-latency=TIME'
  17144. Sets the latency the scheduler should assume for typical memory
  17145. references as seen by the application. This number is highly
  17146. dependent on the memory access patterns used by the application and
  17147. the size of the external cache on the machine.
  17148. Valid options for TIME are
  17149. 'NUMBER'
  17150. A decimal number representing clock cycles.
  17151. 'L1'
  17152. 'L2'
  17153. 'L3'
  17154. 'main'
  17155. The compiler contains estimates of the number of clock cycles
  17156. for "typical" EV4 & EV5 hardware for the Level 1, 2 & 3 caches
  17157. (also called Dcache, Scache, and Bcache), as well as to main
  17158. memory. Note that L3 is only valid for EV5.
  17159. 
  17160. File: gcc.info, Node: eBPF Options, Next: FR30 Options, Prev: DEC Alpha Options, Up: Submodel Options
  17161. 3.19.14 eBPF Options
  17162. --------------------
  17163. '-mframe-limit=BYTES'
  17164. This specifies the hard limit for frame sizes, in bytes.
  17165. Currently, the value that can be specified should be less than or
  17166. equal to '32767'. Defaults to whatever limit is imposed by the
  17167. version of the Linux kernel targeted.
  17168. '-mkernel=VERSION'
  17169. This specifies the minimum version of the kernel that will run the
  17170. compiled program. GCC uses this version to determine which
  17171. instructions to use, what kernel helpers to allow, etc. Currently,
  17172. VERSION can be one of '4.0', '4.1', '4.2', '4.3', '4.4', '4.5',
  17173. '4.6', '4.7', '4.8', '4.9', '4.10', '4.11', '4.12', '4.13', '4.14',
  17174. '4.15', '4.16', '4.17', '4.18', '4.19', '4.20', '5.0', '5.1',
  17175. '5.2', 'latest' and 'native'.
  17176. '-mbig-endian'
  17177. Generate code for a big-endian target.
  17178. '-mlittle-endian'
  17179. Generate code for a little-endian target. This is the default.
  17180. '-mxbpf'
  17181. Generate code for an expanded version of BPF, which relaxes some of
  17182. the restrictions imposed by the BPF architecture:
  17183. - Save and restore callee-saved registers at function entry and
  17184. exit, respectively.
  17185. 
  17186. File: gcc.info, Node: FR30 Options, Next: FT32 Options, Prev: eBPF Options, Up: Submodel Options
  17187. 3.19.15 FR30 Options
  17188. --------------------
  17189. These options are defined specifically for the FR30 port.
  17190. '-msmall-model'
  17191. Use the small address space model. This can produce smaller code,
  17192. but it does assume that all symbolic values and addresses fit into
  17193. a 20-bit range.
  17194. '-mno-lsim'
  17195. Assume that runtime support has been provided and so there is no
  17196. need to include the simulator library ('libsim.a') on the linker
  17197. command line.
  17198. 
  17199. File: gcc.info, Node: FT32 Options, Next: FRV Options, Prev: FR30 Options, Up: Submodel Options
  17200. 3.19.16 FT32 Options
  17201. --------------------
  17202. These options are defined specifically for the FT32 port.
  17203. '-msim'
  17204. Specifies that the program will be run on the simulator. This
  17205. causes an alternate runtime startup and library to be linked. You
  17206. must not use this option when generating programs that will run on
  17207. real hardware; you must provide your own runtime library for
  17208. whatever I/O functions are needed.
  17209. '-mlra'
  17210. Enable Local Register Allocation. This is still experimental for
  17211. FT32, so by default the compiler uses standard reload.
  17212. '-mnodiv'
  17213. Do not use div and mod instructions.
  17214. '-mft32b'
  17215. Enable use of the extended instructions of the FT32B processor.
  17216. '-mcompress'
  17217. Compress all code using the Ft32B code compression scheme.
  17218. '-mnopm'
  17219. Do not generate code that reads program memory.
  17220. 
  17221. File: gcc.info, Node: FRV Options, Next: GNU/Linux Options, Prev: FT32 Options, Up: Submodel Options
  17222. 3.19.17 FRV Options
  17223. -------------------
  17224. '-mgpr-32'
  17225. Only use the first 32 general-purpose registers.
  17226. '-mgpr-64'
  17227. Use all 64 general-purpose registers.
  17228. '-mfpr-32'
  17229. Use only the first 32 floating-point registers.
  17230. '-mfpr-64'
  17231. Use all 64 floating-point registers.
  17232. '-mhard-float'
  17233. Use hardware instructions for floating-point operations.
  17234. '-msoft-float'
  17235. Use library routines for floating-point operations.
  17236. '-malloc-cc'
  17237. Dynamically allocate condition code registers.
  17238. '-mfixed-cc'
  17239. Do not try to dynamically allocate condition code registers, only
  17240. use 'icc0' and 'fcc0'.
  17241. '-mdword'
  17242. Change ABI to use double word insns.
  17243. '-mno-dword'
  17244. Do not use double word instructions.
  17245. '-mdouble'
  17246. Use floating-point double instructions.
  17247. '-mno-double'
  17248. Do not use floating-point double instructions.
  17249. '-mmedia'
  17250. Use media instructions.
  17251. '-mno-media'
  17252. Do not use media instructions.
  17253. '-mmuladd'
  17254. Use multiply and add/subtract instructions.
  17255. '-mno-muladd'
  17256. Do not use multiply and add/subtract instructions.
  17257. '-mfdpic'
  17258. Select the FDPIC ABI, which uses function descriptors to represent
  17259. pointers to functions. Without any PIC/PIE-related options, it
  17260. implies '-fPIE'. With '-fpic' or '-fpie', it assumes GOT entries
  17261. and small data are within a 12-bit range from the GOT base address;
  17262. with '-fPIC' or '-fPIE', GOT offsets are computed with 32 bits.
  17263. With a 'bfin-elf' target, this option implies '-msim'.
  17264. '-minline-plt'
  17265. Enable inlining of PLT entries in function calls to functions that
  17266. are not known to bind locally. It has no effect without '-mfdpic'.
  17267. It's enabled by default if optimizing for speed and compiling for
  17268. shared libraries (i.e., '-fPIC' or '-fpic'), or when an
  17269. optimization option such as '-O3' or above is present in the
  17270. command line.
  17271. '-mTLS'
  17272. Assume a large TLS segment when generating thread-local code.
  17273. '-mtls'
  17274. Do not assume a large TLS segment when generating thread-local
  17275. code.
  17276. '-mgprel-ro'
  17277. Enable the use of 'GPREL' relocations in the FDPIC ABI for data
  17278. that is known to be in read-only sections. It's enabled by
  17279. default, except for '-fpic' or '-fpie': even though it may help
  17280. make the global offset table smaller, it trades 1 instruction for
  17281. 4. With '-fPIC' or '-fPIE', it trades 3 instructions for 4, one of
  17282. which may be shared by multiple symbols, and it avoids the need for
  17283. a GOT entry for the referenced symbol, so it's more likely to be a
  17284. win. If it is not, '-mno-gprel-ro' can be used to disable it.
  17285. '-multilib-library-pic'
  17286. Link with the (library, not FD) pic libraries. It's implied by
  17287. '-mlibrary-pic', as well as by '-fPIC' and '-fpic' without
  17288. '-mfdpic'. You should never have to use it explicitly.
  17289. '-mlinked-fp'
  17290. Follow the EABI requirement of always creating a frame pointer
  17291. whenever a stack frame is allocated. This option is enabled by
  17292. default and can be disabled with '-mno-linked-fp'.
  17293. '-mlong-calls'
  17294. Use indirect addressing to call functions outside the current
  17295. compilation unit. This allows the functions to be placed anywhere
  17296. within the 32-bit address space.
  17297. '-malign-labels'
  17298. Try to align labels to an 8-byte boundary by inserting NOPs into
  17299. the previous packet. This option only has an effect when VLIW
  17300. packing is enabled. It doesn't create new packets; it merely adds
  17301. NOPs to existing ones.
  17302. '-mlibrary-pic'
  17303. Generate position-independent EABI code.
  17304. '-macc-4'
  17305. Use only the first four media accumulator registers.
  17306. '-macc-8'
  17307. Use all eight media accumulator registers.
  17308. '-mpack'
  17309. Pack VLIW instructions.
  17310. '-mno-pack'
  17311. Do not pack VLIW instructions.
  17312. '-mno-eflags'
  17313. Do not mark ABI switches in e_flags.
  17314. '-mcond-move'
  17315. Enable the use of conditional-move instructions (default).
  17316. This switch is mainly for debugging the compiler and will likely be
  17317. removed in a future version.
  17318. '-mno-cond-move'
  17319. Disable the use of conditional-move instructions.
  17320. This switch is mainly for debugging the compiler and will likely be
  17321. removed in a future version.
  17322. '-mscc'
  17323. Enable the use of conditional set instructions (default).
  17324. This switch is mainly for debugging the compiler and will likely be
  17325. removed in a future version.
  17326. '-mno-scc'
  17327. Disable the use of conditional set instructions.
  17328. This switch is mainly for debugging the compiler and will likely be
  17329. removed in a future version.
  17330. '-mcond-exec'
  17331. Enable the use of conditional execution (default).
  17332. This switch is mainly for debugging the compiler and will likely be
  17333. removed in a future version.
  17334. '-mno-cond-exec'
  17335. Disable the use of conditional execution.
  17336. This switch is mainly for debugging the compiler and will likely be
  17337. removed in a future version.
  17338. '-mvliw-branch'
  17339. Run a pass to pack branches into VLIW instructions (default).
  17340. This switch is mainly for debugging the compiler and will likely be
  17341. removed in a future version.
  17342. '-mno-vliw-branch'
  17343. Do not run a pass to pack branches into VLIW instructions.
  17344. This switch is mainly for debugging the compiler and will likely be
  17345. removed in a future version.
  17346. '-mmulti-cond-exec'
  17347. Enable optimization of '&&' and '||' in conditional execution
  17348. (default).
  17349. This switch is mainly for debugging the compiler and will likely be
  17350. removed in a future version.
  17351. '-mno-multi-cond-exec'
  17352. Disable optimization of '&&' and '||' in conditional execution.
  17353. This switch is mainly for debugging the compiler and will likely be
  17354. removed in a future version.
  17355. '-mnested-cond-exec'
  17356. Enable nested conditional execution optimizations (default).
  17357. This switch is mainly for debugging the compiler and will likely be
  17358. removed in a future version.
  17359. '-mno-nested-cond-exec'
  17360. Disable nested conditional execution optimizations.
  17361. This switch is mainly for debugging the compiler and will likely be
  17362. removed in a future version.
  17363. '-moptimize-membar'
  17364. This switch removes redundant 'membar' instructions from the
  17365. compiler-generated code. It is enabled by default.
  17366. '-mno-optimize-membar'
  17367. This switch disables the automatic removal of redundant 'membar'
  17368. instructions from the generated code.
  17369. '-mtomcat-stats'
  17370. Cause gas to print out tomcat statistics.
  17371. '-mcpu=CPU'
  17372. Select the processor type for which to generate code. Possible
  17373. values are 'frv', 'fr550', 'tomcat', 'fr500', 'fr450', 'fr405',
  17374. 'fr400', 'fr300' and 'simple'.
  17375. 
  17376. File: gcc.info, Node: GNU/Linux Options, Next: H8/300 Options, Prev: FRV Options, Up: Submodel Options
  17377. 3.19.18 GNU/Linux Options
  17378. -------------------------
  17379. These '-m' options are defined for GNU/Linux targets:
  17380. '-mglibc'
  17381. Use the GNU C library. This is the default except on
  17382. '*-*-linux-*uclibc*', '*-*-linux-*musl*' and '*-*-linux-*android*'
  17383. targets.
  17384. '-muclibc'
  17385. Use uClibc C library. This is the default on '*-*-linux-*uclibc*'
  17386. targets.
  17387. '-mmusl'
  17388. Use the musl C library. This is the default on '*-*-linux-*musl*'
  17389. targets.
  17390. '-mbionic'
  17391. Use Bionic C library. This is the default on '*-*-linux-*android*'
  17392. targets.
  17393. '-mandroid'
  17394. Compile code compatible with Android platform. This is the default
  17395. on '*-*-linux-*android*' targets.
  17396. When compiling, this option enables '-mbionic', '-fPIC',
  17397. '-fno-exceptions' and '-fno-rtti' by default. When linking, this
  17398. option makes the GCC driver pass Android-specific options to the
  17399. linker. Finally, this option causes the preprocessor macro
  17400. '__ANDROID__' to be defined.
  17401. '-tno-android-cc'
  17402. Disable compilation effects of '-mandroid', i.e., do not enable
  17403. '-mbionic', '-fPIC', '-fno-exceptions' and '-fno-rtti' by default.
  17404. '-tno-android-ld'
  17405. Disable linking effects of '-mandroid', i.e., pass standard Linux
  17406. linking options to the linker.
  17407. 
  17408. File: gcc.info, Node: H8/300 Options, Next: HPPA Options, Prev: GNU/Linux Options, Up: Submodel Options
  17409. 3.19.19 H8/300 Options
  17410. ----------------------
  17411. These '-m' options are defined for the H8/300 implementations:
  17412. '-mrelax'
  17413. Shorten some address references at link time, when possible; uses
  17414. the linker option '-relax'. *Note 'ld' and the H8/300: (ld)H8/300,
  17415. for a fuller description.
  17416. '-mh'
  17417. Generate code for the H8/300H.
  17418. '-ms'
  17419. Generate code for the H8S.
  17420. '-mn'
  17421. Generate code for the H8S and H8/300H in the normal mode. This
  17422. switch must be used either with '-mh' or '-ms'.
  17423. '-ms2600'
  17424. Generate code for the H8S/2600. This switch must be used with
  17425. '-ms'.
  17426. '-mexr'
  17427. Extended registers are stored on stack before execution of function
  17428. with monitor attribute. Default option is '-mexr'. This option is
  17429. valid only for H8S targets.
  17430. '-mno-exr'
  17431. Extended registers are not stored on stack before execution of
  17432. function with monitor attribute. Default option is '-mno-exr'.
  17433. This option is valid only for H8S targets.
  17434. '-mint32'
  17435. Make 'int' data 32 bits by default.
  17436. '-malign-300'
  17437. On the H8/300H and H8S, use the same alignment rules as for the
  17438. H8/300. The default for the H8/300H and H8S is to align longs and
  17439. floats on 4-byte boundaries. '-malign-300' causes them to be
  17440. aligned on 2-byte boundaries. This option has no effect on the
  17441. H8/300.
  17442. 
  17443. File: gcc.info, Node: HPPA Options, Next: IA-64 Options, Prev: H8/300 Options, Up: Submodel Options
  17444. 3.19.20 HPPA Options
  17445. --------------------
  17446. These '-m' options are defined for the HPPA family of computers:
  17447. '-march=ARCHITECTURE-TYPE'
  17448. Generate code for the specified architecture. The choices for
  17449. ARCHITECTURE-TYPE are '1.0' for PA 1.0, '1.1' for PA 1.1, and '2.0'
  17450. for PA 2.0 processors. Refer to '/usr/lib/sched.models' on an
  17451. HP-UX system to determine the proper architecture option for your
  17452. machine. Code compiled for lower numbered architectures runs on
  17453. higher numbered architectures, but not the other way around.
  17454. '-mpa-risc-1-0'
  17455. '-mpa-risc-1-1'
  17456. '-mpa-risc-2-0'
  17457. Synonyms for '-march=1.0', '-march=1.1', and '-march=2.0'
  17458. respectively.
  17459. '-mcaller-copies'
  17460. The caller copies function arguments passed by hidden reference.
  17461. This option should be used with care as it is not compatible with
  17462. the default 32-bit runtime. However, only aggregates larger than
  17463. eight bytes are passed by hidden reference and the option provides
  17464. better compatibility with OpenMP.
  17465. '-mjump-in-delay'
  17466. This option is ignored and provided for compatibility purposes
  17467. only.
  17468. '-mdisable-fpregs'
  17469. Prevent floating-point registers from being used in any manner.
  17470. This is necessary for compiling kernels that perform lazy context
  17471. switching of floating-point registers. If you use this option and
  17472. attempt to perform floating-point operations, the compiler aborts.
  17473. '-mdisable-indexing'
  17474. Prevent the compiler from using indexing address modes. This
  17475. avoids some rather obscure problems when compiling MIG generated
  17476. code under MACH.
  17477. '-mno-space-regs'
  17478. Generate code that assumes the target has no space registers. This
  17479. allows GCC to generate faster indirect calls and use unscaled index
  17480. address modes.
  17481. Such code is suitable for level 0 PA systems and kernels.
  17482. '-mfast-indirect-calls'
  17483. Generate code that assumes calls never cross space boundaries.
  17484. This allows GCC to emit code that performs faster indirect calls.
  17485. This option does not work in the presence of shared libraries or
  17486. nested functions.
  17487. '-mfixed-range=REGISTER-RANGE'
  17488. Generate code treating the given register range as fixed registers.
  17489. A fixed register is one that the register allocator cannot use.
  17490. This is useful when compiling kernel code. A register range is
  17491. specified as two registers separated by a dash. Multiple register
  17492. ranges can be specified separated by a comma.
  17493. '-mlong-load-store'
  17494. Generate 3-instruction load and store sequences as sometimes
  17495. required by the HP-UX 10 linker. This is equivalent to the '+k'
  17496. option to the HP compilers.
  17497. '-mportable-runtime'
  17498. Use the portable calling conventions proposed by HP for ELF
  17499. systems.
  17500. '-mgas'
  17501. Enable the use of assembler directives only GAS understands.
  17502. '-mschedule=CPU-TYPE'
  17503. Schedule code according to the constraints for the machine type
  17504. CPU-TYPE. The choices for CPU-TYPE are '700' '7100', '7100LC',
  17505. '7200', '7300' and '8000'. Refer to '/usr/lib/sched.models' on an
  17506. HP-UX system to determine the proper scheduling option for your
  17507. machine. The default scheduling is '8000'.
  17508. '-mlinker-opt'
  17509. Enable the optimization pass in the HP-UX linker. Note this makes
  17510. symbolic debugging impossible. It also triggers a bug in the HP-UX
  17511. 8 and HP-UX 9 linkers in which they give bogus error messages when
  17512. linking some programs.
  17513. '-msoft-float'
  17514. Generate output containing library calls for floating point.
  17515. *Warning:* the requisite libraries are not available for all HPPA
  17516. targets. Normally the facilities of the machine's usual C compiler
  17517. are used, but this cannot be done directly in cross-compilation.
  17518. You must make your own arrangements to provide suitable library
  17519. functions for cross-compilation.
  17520. '-msoft-float' changes the calling convention in the output file;
  17521. therefore, it is only useful if you compile _all_ of a program with
  17522. this option. In particular, you need to compile 'libgcc.a', the
  17523. library that comes with GCC, with '-msoft-float' in order for this
  17524. to work.
  17525. '-msio'
  17526. Generate the predefine, '_SIO', for server IO. The default is
  17527. '-mwsio'. This generates the predefines, '__hp9000s700',
  17528. '__hp9000s700__' and '_WSIO', for workstation IO. These options
  17529. are available under HP-UX and HI-UX.
  17530. '-mgnu-ld'
  17531. Use options specific to GNU 'ld'. This passes '-shared' to 'ld'
  17532. when building a shared library. It is the default when GCC is
  17533. configured, explicitly or implicitly, with the GNU linker. This
  17534. option does not affect which 'ld' is called; it only changes what
  17535. parameters are passed to that 'ld'. The 'ld' that is called is
  17536. determined by the '--with-ld' configure option, GCC's program
  17537. search path, and finally by the user's 'PATH'. The linker used by
  17538. GCC can be printed using 'which `gcc -print-prog-name=ld`'. This
  17539. option is only available on the 64-bit HP-UX GCC, i.e. configured
  17540. with 'hppa*64*-*-hpux*'.
  17541. '-mhp-ld'
  17542. Use options specific to HP 'ld'. This passes '-b' to 'ld' when
  17543. building a shared library and passes '+Accept TypeMismatch' to 'ld'
  17544. on all links. It is the default when GCC is configured, explicitly
  17545. or implicitly, with the HP linker. This option does not affect
  17546. which 'ld' is called; it only changes what parameters are passed to
  17547. that 'ld'. The 'ld' that is called is determined by the
  17548. '--with-ld' configure option, GCC's program search path, and
  17549. finally by the user's 'PATH'. The linker used by GCC can be
  17550. printed using 'which `gcc -print-prog-name=ld`'. This option is
  17551. only available on the 64-bit HP-UX GCC, i.e. configured with
  17552. 'hppa*64*-*-hpux*'.
  17553. '-mlong-calls'
  17554. Generate code that uses long call sequences. This ensures that a
  17555. call is always able to reach linker generated stubs. The default
  17556. is to generate long calls only when the distance from the call site
  17557. to the beginning of the function or translation unit, as the case
  17558. may be, exceeds a predefined limit set by the branch type being
  17559. used. The limits for normal calls are 7,600,000 and 240,000 bytes,
  17560. respectively for the PA 2.0 and PA 1.X architectures. Sibcalls are
  17561. always limited at 240,000 bytes.
  17562. Distances are measured from the beginning of functions when using
  17563. the '-ffunction-sections' option, or when using the '-mgas' and
  17564. '-mno-portable-runtime' options together under HP-UX with the SOM
  17565. linker.
  17566. It is normally not desirable to use this option as it degrades
  17567. performance. However, it may be useful in large applications,
  17568. particularly when partial linking is used to build the application.
  17569. The types of long calls used depends on the capabilities of the
  17570. assembler and linker, and the type of code being generated. The
  17571. impact on systems that support long absolute calls, and long pic
  17572. symbol-difference or pc-relative calls should be relatively small.
  17573. However, an indirect call is used on 32-bit ELF systems in pic code
  17574. and it is quite long.
  17575. '-munix=UNIX-STD'
  17576. Generate compiler predefines and select a startfile for the
  17577. specified UNIX standard. The choices for UNIX-STD are '93', '95'
  17578. and '98'. '93' is supported on all HP-UX versions. '95' is
  17579. available on HP-UX 10.10 and later. '98' is available on HP-UX
  17580. 11.11 and later. The default values are '93' for HP-UX 10.00, '95'
  17581. for HP-UX 10.10 though to 11.00, and '98' for HP-UX 11.11 and
  17582. later.
  17583. '-munix=93' provides the same predefines as GCC 3.3 and 3.4.
  17584. '-munix=95' provides additional predefines for 'XOPEN_UNIX' and
  17585. '_XOPEN_SOURCE_EXTENDED', and the startfile 'unix95.o'.
  17586. '-munix=98' provides additional predefines for '_XOPEN_UNIX',
  17587. '_XOPEN_SOURCE_EXTENDED', '_INCLUDE__STDC_A1_SOURCE' and
  17588. '_INCLUDE_XOPEN_SOURCE_500', and the startfile 'unix98.o'.
  17589. It is _important_ to note that this option changes the interfaces
  17590. for various library routines. It also affects the operational
  17591. behavior of the C library. Thus, _extreme_ care is needed in using
  17592. this option.
  17593. Library code that is intended to operate with more than one UNIX
  17594. standard must test, set and restore the variable
  17595. '__xpg4_extended_mask' as appropriate. Most GNU software doesn't
  17596. provide this capability.
  17597. '-nolibdld'
  17598. Suppress the generation of link options to search libdld.sl when
  17599. the '-static' option is specified on HP-UX 10 and later.
  17600. '-static'
  17601. The HP-UX implementation of setlocale in libc has a dependency on
  17602. libdld.sl. There isn't an archive version of libdld.sl. Thus,
  17603. when the '-static' option is specified, special link options are
  17604. needed to resolve this dependency.
  17605. On HP-UX 10 and later, the GCC driver adds the necessary options to
  17606. link with libdld.sl when the '-static' option is specified. This
  17607. causes the resulting binary to be dynamic. On the 64-bit port, the
  17608. linkers generate dynamic binaries by default in any case. The
  17609. '-nolibdld' option can be used to prevent the GCC driver from
  17610. adding these link options.
  17611. '-threads'
  17612. Add support for multithreading with the "dce thread" library under
  17613. HP-UX. This option sets flags for both the preprocessor and
  17614. linker.
  17615. 
  17616. File: gcc.info, Node: IA-64 Options, Next: LM32 Options, Prev: HPPA Options, Up: Submodel Options
  17617. 3.19.21 IA-64 Options
  17618. ---------------------
  17619. These are the '-m' options defined for the Intel IA-64 architecture.
  17620. '-mbig-endian'
  17621. Generate code for a big-endian target. This is the default for
  17622. HP-UX.
  17623. '-mlittle-endian'
  17624. Generate code for a little-endian target. This is the default for
  17625. AIX5 and GNU/Linux.
  17626. '-mgnu-as'
  17627. '-mno-gnu-as'
  17628. Generate (or don't) code for the GNU assembler. This is the
  17629. default.
  17630. '-mgnu-ld'
  17631. '-mno-gnu-ld'
  17632. Generate (or don't) code for the GNU linker. This is the default.
  17633. '-mno-pic'
  17634. Generate code that does not use a global pointer register. The
  17635. result is not position independent code, and violates the IA-64
  17636. ABI.
  17637. '-mvolatile-asm-stop'
  17638. '-mno-volatile-asm-stop'
  17639. Generate (or don't) a stop bit immediately before and after
  17640. volatile asm statements.
  17641. '-mregister-names'
  17642. '-mno-register-names'
  17643. Generate (or don't) 'in', 'loc', and 'out' register names for the
  17644. stacked registers. This may make assembler output more readable.
  17645. '-mno-sdata'
  17646. '-msdata'
  17647. Disable (or enable) optimizations that use the small data section.
  17648. This may be useful for working around optimizer bugs.
  17649. '-mconstant-gp'
  17650. Generate code that uses a single constant global pointer value.
  17651. This is useful when compiling kernel code.
  17652. '-mauto-pic'
  17653. Generate code that is self-relocatable. This implies
  17654. '-mconstant-gp'. This is useful when compiling firmware code.
  17655. '-minline-float-divide-min-latency'
  17656. Generate code for inline divides of floating-point values using the
  17657. minimum latency algorithm.
  17658. '-minline-float-divide-max-throughput'
  17659. Generate code for inline divides of floating-point values using the
  17660. maximum throughput algorithm.
  17661. '-mno-inline-float-divide'
  17662. Do not generate inline code for divides of floating-point values.
  17663. '-minline-int-divide-min-latency'
  17664. Generate code for inline divides of integer values using the
  17665. minimum latency algorithm.
  17666. '-minline-int-divide-max-throughput'
  17667. Generate code for inline divides of integer values using the
  17668. maximum throughput algorithm.
  17669. '-mno-inline-int-divide'
  17670. Do not generate inline code for divides of integer values.
  17671. '-minline-sqrt-min-latency'
  17672. Generate code for inline square roots using the minimum latency
  17673. algorithm.
  17674. '-minline-sqrt-max-throughput'
  17675. Generate code for inline square roots using the maximum throughput
  17676. algorithm.
  17677. '-mno-inline-sqrt'
  17678. Do not generate inline code for 'sqrt'.
  17679. '-mfused-madd'
  17680. '-mno-fused-madd'
  17681. Do (don't) generate code that uses the fused multiply/add or
  17682. multiply/subtract instructions. The default is to use these
  17683. instructions.
  17684. '-mno-dwarf2-asm'
  17685. '-mdwarf2-asm'
  17686. Don't (or do) generate assembler code for the DWARF line number
  17687. debugging info. This may be useful when not using the GNU
  17688. assembler.
  17689. '-mearly-stop-bits'
  17690. '-mno-early-stop-bits'
  17691. Allow stop bits to be placed earlier than immediately preceding the
  17692. instruction that triggered the stop bit. This can improve
  17693. instruction scheduling, but does not always do so.
  17694. '-mfixed-range=REGISTER-RANGE'
  17695. Generate code treating the given register range as fixed registers.
  17696. A fixed register is one that the register allocator cannot use.
  17697. This is useful when compiling kernel code. A register range is
  17698. specified as two registers separated by a dash. Multiple register
  17699. ranges can be specified separated by a comma.
  17700. '-mtls-size=TLS-SIZE'
  17701. Specify bit size of immediate TLS offsets. Valid values are 14,
  17702. 22, and 64.
  17703. '-mtune=CPU-TYPE'
  17704. Tune the instruction scheduling for a particular CPU, Valid values
  17705. are 'itanium', 'itanium1', 'merced', 'itanium2', and 'mckinley'.
  17706. '-milp32'
  17707. '-mlp64'
  17708. Generate code for a 32-bit or 64-bit environment. The 32-bit
  17709. environment sets int, long and pointer to 32 bits. The 64-bit
  17710. environment sets int to 32 bits and long and pointer to 64 bits.
  17711. These are HP-UX specific flags.
  17712. '-mno-sched-br-data-spec'
  17713. '-msched-br-data-spec'
  17714. (Dis/En)able data speculative scheduling before reload. This
  17715. results in generation of 'ld.a' instructions and the corresponding
  17716. check instructions ('ld.c' / 'chk.a'). The default setting is
  17717. disabled.
  17718. '-msched-ar-data-spec'
  17719. '-mno-sched-ar-data-spec'
  17720. (En/Dis)able data speculative scheduling after reload. This
  17721. results in generation of 'ld.a' instructions and the corresponding
  17722. check instructions ('ld.c' / 'chk.a'). The default setting is
  17723. enabled.
  17724. '-mno-sched-control-spec'
  17725. '-msched-control-spec'
  17726. (Dis/En)able control speculative scheduling. This feature is
  17727. available only during region scheduling (i.e. before reload). This
  17728. results in generation of the 'ld.s' instructions and the
  17729. corresponding check instructions 'chk.s'. The default setting is
  17730. disabled.
  17731. '-msched-br-in-data-spec'
  17732. '-mno-sched-br-in-data-spec'
  17733. (En/Dis)able speculative scheduling of the instructions that are
  17734. dependent on the data speculative loads before reload. This is
  17735. effective only with '-msched-br-data-spec' enabled. The default
  17736. setting is enabled.
  17737. '-msched-ar-in-data-spec'
  17738. '-mno-sched-ar-in-data-spec'
  17739. (En/Dis)able speculative scheduling of the instructions that are
  17740. dependent on the data speculative loads after reload. This is
  17741. effective only with '-msched-ar-data-spec' enabled. The default
  17742. setting is enabled.
  17743. '-msched-in-control-spec'
  17744. '-mno-sched-in-control-spec'
  17745. (En/Dis)able speculative scheduling of the instructions that are
  17746. dependent on the control speculative loads. This is effective only
  17747. with '-msched-control-spec' enabled. The default setting is
  17748. enabled.
  17749. '-mno-sched-prefer-non-data-spec-insns'
  17750. '-msched-prefer-non-data-spec-insns'
  17751. If enabled, data-speculative instructions are chosen for schedule
  17752. only if there are no other choices at the moment. This makes the
  17753. use of the data speculation much more conservative. The default
  17754. setting is disabled.
  17755. '-mno-sched-prefer-non-control-spec-insns'
  17756. '-msched-prefer-non-control-spec-insns'
  17757. If enabled, control-speculative instructions are chosen for
  17758. schedule only if there are no other choices at the moment. This
  17759. makes the use of the control speculation much more conservative.
  17760. The default setting is disabled.
  17761. '-mno-sched-count-spec-in-critical-path'
  17762. '-msched-count-spec-in-critical-path'
  17763. If enabled, speculative dependencies are considered during
  17764. computation of the instructions priorities. This makes the use of
  17765. the speculation a bit more conservative. The default setting is
  17766. disabled.
  17767. '-msched-spec-ldc'
  17768. Use a simple data speculation check. This option is on by default.
  17769. '-msched-control-spec-ldc'
  17770. Use a simple check for control speculation. This option is on by
  17771. default.
  17772. '-msched-stop-bits-after-every-cycle'
  17773. Place a stop bit after every cycle when scheduling. This option is
  17774. on by default.
  17775. '-msched-fp-mem-deps-zero-cost'
  17776. Assume that floating-point stores and loads are not likely to cause
  17777. a conflict when placed into the same instruction group. This
  17778. option is disabled by default.
  17779. '-msel-sched-dont-check-control-spec'
  17780. Generate checks for control speculation in selective scheduling.
  17781. This flag is disabled by default.
  17782. '-msched-max-memory-insns=MAX-INSNS'
  17783. Limit on the number of memory insns per instruction group, giving
  17784. lower priority to subsequent memory insns attempting to schedule in
  17785. the same instruction group. Frequently useful to prevent cache
  17786. bank conflicts. The default value is 1.
  17787. '-msched-max-memory-insns-hard-limit'
  17788. Makes the limit specified by 'msched-max-memory-insns' a hard
  17789. limit, disallowing more than that number in an instruction group.
  17790. Otherwise, the limit is "soft", meaning that non-memory operations
  17791. are preferred when the limit is reached, but memory operations may
  17792. still be scheduled.
  17793. 
  17794. File: gcc.info, Node: LM32 Options, Next: M32C Options, Prev: IA-64 Options, Up: Submodel Options
  17795. 3.19.22 LM32 Options
  17796. --------------------
  17797. These '-m' options are defined for the LatticeMico32 architecture:
  17798. '-mbarrel-shift-enabled'
  17799. Enable barrel-shift instructions.
  17800. '-mdivide-enabled'
  17801. Enable divide and modulus instructions.
  17802. '-mmultiply-enabled'
  17803. Enable multiply instructions.
  17804. '-msign-extend-enabled'
  17805. Enable sign extend instructions.
  17806. '-muser-enabled'
  17807. Enable user-defined instructions.
  17808. 
  17809. File: gcc.info, Node: M32C Options, Next: M32R/D Options, Prev: LM32 Options, Up: Submodel Options
  17810. 3.19.23 M32C Options
  17811. --------------------
  17812. '-mcpu=NAME'
  17813. Select the CPU for which code is generated. NAME may be one of
  17814. 'r8c' for the R8C/Tiny series, 'm16c' for the M16C (up to /60)
  17815. series, 'm32cm' for the M16C/80 series, or 'm32c' for the M32C/80
  17816. series.
  17817. '-msim'
  17818. Specifies that the program will be run on the simulator. This
  17819. causes an alternate runtime library to be linked in which supports,
  17820. for example, file I/O. You must not use this option when
  17821. generating programs that will run on real hardware; you must
  17822. provide your own runtime library for whatever I/O functions are
  17823. needed.
  17824. '-memregs=NUMBER'
  17825. Specifies the number of memory-based pseudo-registers GCC uses
  17826. during code generation. These pseudo-registers are used like real
  17827. registers, so there is a tradeoff between GCC's ability to fit the
  17828. code into available registers, and the performance penalty of using
  17829. memory instead of registers. Note that all modules in a program
  17830. must be compiled with the same value for this option. Because of
  17831. that, you must not use this option with GCC's default runtime
  17832. libraries.
  17833. 
  17834. File: gcc.info, Node: M32R/D Options, Next: M680x0 Options, Prev: M32C Options, Up: Submodel Options
  17835. 3.19.24 M32R/D Options
  17836. ----------------------
  17837. These '-m' options are defined for Renesas M32R/D architectures:
  17838. '-m32r2'
  17839. Generate code for the M32R/2.
  17840. '-m32rx'
  17841. Generate code for the M32R/X.
  17842. '-m32r'
  17843. Generate code for the M32R. This is the default.
  17844. '-mmodel=small'
  17845. Assume all objects live in the lower 16MB of memory (so that their
  17846. addresses can be loaded with the 'ld24' instruction), and assume
  17847. all subroutines are reachable with the 'bl' instruction. This is
  17848. the default.
  17849. The addressability of a particular object can be set with the
  17850. 'model' attribute.
  17851. '-mmodel=medium'
  17852. Assume objects may be anywhere in the 32-bit address space (the
  17853. compiler generates 'seth/add3' instructions to load their
  17854. addresses), and assume all subroutines are reachable with the 'bl'
  17855. instruction.
  17856. '-mmodel=large'
  17857. Assume objects may be anywhere in the 32-bit address space (the
  17858. compiler generates 'seth/add3' instructions to load their
  17859. addresses), and assume subroutines may not be reachable with the
  17860. 'bl' instruction (the compiler generates the much slower
  17861. 'seth/add3/jl' instruction sequence).
  17862. '-msdata=none'
  17863. Disable use of the small data area. Variables are put into one of
  17864. '.data', '.bss', or '.rodata' (unless the 'section' attribute has
  17865. been specified). This is the default.
  17866. The small data area consists of sections '.sdata' and '.sbss'.
  17867. Objects may be explicitly put in the small data area with the
  17868. 'section' attribute using one of these sections.
  17869. '-msdata=sdata'
  17870. Put small global and static data in the small data area, but do not
  17871. generate special code to reference them.
  17872. '-msdata=use'
  17873. Put small global and static data in the small data area, and
  17874. generate special instructions to reference them.
  17875. '-G NUM'
  17876. Put global and static objects less than or equal to NUM bytes into
  17877. the small data or BSS sections instead of the normal data or BSS
  17878. sections. The default value of NUM is 8. The '-msdata' option
  17879. must be set to one of 'sdata' or 'use' for this option to have any
  17880. effect.
  17881. All modules should be compiled with the same '-G NUM' value.
  17882. Compiling with different values of NUM may or may not work; if it
  17883. doesn't the linker gives an error message--incorrect code is not
  17884. generated.
  17885. '-mdebug'
  17886. Makes the M32R-specific code in the compiler display some
  17887. statistics that might help in debugging programs.
  17888. '-malign-loops'
  17889. Align all loops to a 32-byte boundary.
  17890. '-mno-align-loops'
  17891. Do not enforce a 32-byte alignment for loops. This is the default.
  17892. '-missue-rate=NUMBER'
  17893. Issue NUMBER instructions per cycle. NUMBER can only be 1 or 2.
  17894. '-mbranch-cost=NUMBER'
  17895. NUMBER can only be 1 or 2. If it is 1 then branches are preferred
  17896. over conditional code, if it is 2, then the opposite applies.
  17897. '-mflush-trap=NUMBER'
  17898. Specifies the trap number to use to flush the cache. The default
  17899. is 12. Valid numbers are between 0 and 15 inclusive.
  17900. '-mno-flush-trap'
  17901. Specifies that the cache cannot be flushed by using a trap.
  17902. '-mflush-func=NAME'
  17903. Specifies the name of the operating system function to call to
  17904. flush the cache. The default is '_flush_cache', but a function
  17905. call is only used if a trap is not available.
  17906. '-mno-flush-func'
  17907. Indicates that there is no OS function for flushing the cache.
  17908. 
  17909. File: gcc.info, Node: M680x0 Options, Next: MCore Options, Prev: M32R/D Options, Up: Submodel Options
  17910. 3.19.25 M680x0 Options
  17911. ----------------------
  17912. These are the '-m' options defined for M680x0 and ColdFire processors.
  17913. The default settings depend on which architecture was selected when the
  17914. compiler was configured; the defaults for the most common choices are
  17915. given below.
  17916. '-march=ARCH'
  17917. Generate code for a specific M680x0 or ColdFire instruction set
  17918. architecture. Permissible values of ARCH for M680x0 architectures
  17919. are: '68000', '68010', '68020', '68030', '68040', '68060' and
  17920. 'cpu32'. ColdFire architectures are selected according to
  17921. Freescale's ISA classification and the permissible values are:
  17922. 'isaa', 'isaaplus', 'isab' and 'isac'.
  17923. GCC defines a macro '__mcfARCH__' whenever it is generating code
  17924. for a ColdFire target. The ARCH in this macro is one of the
  17925. '-march' arguments given above.
  17926. When used together, '-march' and '-mtune' select code that runs on
  17927. a family of similar processors but that is optimized for a
  17928. particular microarchitecture.
  17929. '-mcpu=CPU'
  17930. Generate code for a specific M680x0 or ColdFire processor. The
  17931. M680x0 CPUs are: '68000', '68010', '68020', '68030', '68040',
  17932. '68060', '68302', '68332' and 'cpu32'. The ColdFire CPUs are given
  17933. by the table below, which also classifies the CPUs into families:
  17934. *Family* *'-mcpu' arguments*
  17935. '51' '51' '51ac' '51ag' '51cn' '51em' '51je' '51jf' '51jg'
  17936. '51jm' '51mm' '51qe' '51qm'
  17937. '5206' '5202' '5204' '5206'
  17938. '5206e' '5206e'
  17939. '5208' '5207' '5208'
  17940. '5211a' '5210a' '5211a'
  17941. '5213' '5211' '5212' '5213'
  17942. '5216' '5214' '5216'
  17943. '52235' '52230' '52231' '52232' '52233' '52234' '52235'
  17944. '5225' '5224' '5225'
  17945. '52259' '52252' '52254' '52255' '52256' '52258' '52259'
  17946. '5235' '5232' '5233' '5234' '5235' '523x'
  17947. '5249' '5249'
  17948. '5250' '5250'
  17949. '5271' '5270' '5271'
  17950. '5272' '5272'
  17951. '5275' '5274' '5275'
  17952. '5282' '5280' '5281' '5282' '528x'
  17953. '53017' '53011' '53012' '53013' '53014' '53015' '53016' '53017'
  17954. '5307' '5307'
  17955. '5329' '5327' '5328' '5329' '532x'
  17956. '5373' '5372' '5373' '537x'
  17957. '5407' '5407'
  17958. '5475' '5470' '5471' '5472' '5473' '5474' '5475' '547x' '5480'
  17959. '5481' '5482' '5483' '5484' '5485'
  17960. '-mcpu=CPU' overrides '-march=ARCH' if ARCH is compatible with CPU.
  17961. Other combinations of '-mcpu' and '-march' are rejected.
  17962. GCC defines the macro '__mcf_cpu_CPU' when ColdFire target CPU is
  17963. selected. It also defines '__mcf_family_FAMILY', where the value
  17964. of FAMILY is given by the table above.
  17965. '-mtune=TUNE'
  17966. Tune the code for a particular microarchitecture within the
  17967. constraints set by '-march' and '-mcpu'. The M680x0
  17968. microarchitectures are: '68000', '68010', '68020', '68030',
  17969. '68040', '68060' and 'cpu32'. The ColdFire microarchitectures are:
  17970. 'cfv1', 'cfv2', 'cfv3', 'cfv4' and 'cfv4e'.
  17971. You can also use '-mtune=68020-40' for code that needs to run
  17972. relatively well on 68020, 68030 and 68040 targets.
  17973. '-mtune=68020-60' is similar but includes 68060 targets as well.
  17974. These two options select the same tuning decisions as '-m68020-40'
  17975. and '-m68020-60' respectively.
  17976. GCC defines the macros '__mcARCH' and '__mcARCH__' when tuning for
  17977. 680x0 architecture ARCH. It also defines 'mcARCH' unless either
  17978. '-ansi' or a non-GNU '-std' option is used. If GCC is tuning for a
  17979. range of architectures, as selected by '-mtune=68020-40' or
  17980. '-mtune=68020-60', it defines the macros for every architecture in
  17981. the range.
  17982. GCC also defines the macro '__mUARCH__' when tuning for ColdFire
  17983. microarchitecture UARCH, where UARCH is one of the arguments given
  17984. above.
  17985. '-m68000'
  17986. '-mc68000'
  17987. Generate output for a 68000. This is the default when the compiler
  17988. is configured for 68000-based systems. It is equivalent to
  17989. '-march=68000'.
  17990. Use this option for microcontrollers with a 68000 or EC000 core,
  17991. including the 68008, 68302, 68306, 68307, 68322, 68328 and 68356.
  17992. '-m68010'
  17993. Generate output for a 68010. This is the default when the compiler
  17994. is configured for 68010-based systems. It is equivalent to
  17995. '-march=68010'.
  17996. '-m68020'
  17997. '-mc68020'
  17998. Generate output for a 68020. This is the default when the compiler
  17999. is configured for 68020-based systems. It is equivalent to
  18000. '-march=68020'.
  18001. '-m68030'
  18002. Generate output for a 68030. This is the default when the compiler
  18003. is configured for 68030-based systems. It is equivalent to
  18004. '-march=68030'.
  18005. '-m68040'
  18006. Generate output for a 68040. This is the default when the compiler
  18007. is configured for 68040-based systems. It is equivalent to
  18008. '-march=68040'.
  18009. This option inhibits the use of 68881/68882 instructions that have
  18010. to be emulated by software on the 68040. Use this option if your
  18011. 68040 does not have code to emulate those instructions.
  18012. '-m68060'
  18013. Generate output for a 68060. This is the default when the compiler
  18014. is configured for 68060-based systems. It is equivalent to
  18015. '-march=68060'.
  18016. This option inhibits the use of 68020 and 68881/68882 instructions
  18017. that have to be emulated by software on the 68060. Use this option
  18018. if your 68060 does not have code to emulate those instructions.
  18019. '-mcpu32'
  18020. Generate output for a CPU32. This is the default when the compiler
  18021. is configured for CPU32-based systems. It is equivalent to
  18022. '-march=cpu32'.
  18023. Use this option for microcontrollers with a CPU32 or CPU32+ core,
  18024. including the 68330, 68331, 68332, 68333, 68334, 68336, 68340,
  18025. 68341, 68349 and 68360.
  18026. '-m5200'
  18027. Generate output for a 520X ColdFire CPU. This is the default when
  18028. the compiler is configured for 520X-based systems. It is
  18029. equivalent to '-mcpu=5206', and is now deprecated in favor of that
  18030. option.
  18031. Use this option for microcontroller with a 5200 core, including the
  18032. MCF5202, MCF5203, MCF5204 and MCF5206.
  18033. '-m5206e'
  18034. Generate output for a 5206e ColdFire CPU. The option is now
  18035. deprecated in favor of the equivalent '-mcpu=5206e'.
  18036. '-m528x'
  18037. Generate output for a member of the ColdFire 528X family. The
  18038. option is now deprecated in favor of the equivalent '-mcpu=528x'.
  18039. '-m5307'
  18040. Generate output for a ColdFire 5307 CPU. The option is now
  18041. deprecated in favor of the equivalent '-mcpu=5307'.
  18042. '-m5407'
  18043. Generate output for a ColdFire 5407 CPU. The option is now
  18044. deprecated in favor of the equivalent '-mcpu=5407'.
  18045. '-mcfv4e'
  18046. Generate output for a ColdFire V4e family CPU (e.g. 547x/548x).
  18047. This includes use of hardware floating-point instructions. The
  18048. option is equivalent to '-mcpu=547x', and is now deprecated in
  18049. favor of that option.
  18050. '-m68020-40'
  18051. Generate output for a 68040, without using any of the new
  18052. instructions. This results in code that can run relatively
  18053. efficiently on either a 68020/68881 or a 68030 or a 68040. The
  18054. generated code does use the 68881 instructions that are emulated on
  18055. the 68040.
  18056. The option is equivalent to '-march=68020' '-mtune=68020-40'.
  18057. '-m68020-60'
  18058. Generate output for a 68060, without using any of the new
  18059. instructions. This results in code that can run relatively
  18060. efficiently on either a 68020/68881 or a 68030 or a 68040. The
  18061. generated code does use the 68881 instructions that are emulated on
  18062. the 68060.
  18063. The option is equivalent to '-march=68020' '-mtune=68020-60'.
  18064. '-mhard-float'
  18065. '-m68881'
  18066. Generate floating-point instructions. This is the default for
  18067. 68020 and above, and for ColdFire devices that have an FPU. It
  18068. defines the macro '__HAVE_68881__' on M680x0 targets and
  18069. '__mcffpu__' on ColdFire targets.
  18070. '-msoft-float'
  18071. Do not generate floating-point instructions; use library calls
  18072. instead. This is the default for 68000, 68010, and 68832 targets.
  18073. It is also the default for ColdFire devices that have no FPU.
  18074. '-mdiv'
  18075. '-mno-div'
  18076. Generate (do not generate) ColdFire hardware divide and remainder
  18077. instructions. If '-march' is used without '-mcpu', the default is
  18078. "on" for ColdFire architectures and "off" for M680x0 architectures.
  18079. Otherwise, the default is taken from the target CPU (either the
  18080. default CPU, or the one specified by '-mcpu'). For example, the
  18081. default is "off" for '-mcpu=5206' and "on" for '-mcpu=5206e'.
  18082. GCC defines the macro '__mcfhwdiv__' when this option is enabled.
  18083. '-mshort'
  18084. Consider type 'int' to be 16 bits wide, like 'short int'.
  18085. Additionally, parameters passed on the stack are also aligned to a
  18086. 16-bit boundary even on targets whose API mandates promotion to
  18087. 32-bit.
  18088. '-mno-short'
  18089. Do not consider type 'int' to be 16 bits wide. This is the
  18090. default.
  18091. '-mnobitfield'
  18092. '-mno-bitfield'
  18093. Do not use the bit-field instructions. The '-m68000', '-mcpu32'
  18094. and '-m5200' options imply '-mnobitfield'.
  18095. '-mbitfield'
  18096. Do use the bit-field instructions. The '-m68020' option implies
  18097. '-mbitfield'. This is the default if you use a configuration
  18098. designed for a 68020.
  18099. '-mrtd'
  18100. Use a different function-calling convention, in which functions
  18101. that take a fixed number of arguments return with the 'rtd'
  18102. instruction, which pops their arguments while returning. This
  18103. saves one instruction in the caller since there is no need to pop
  18104. the arguments there.
  18105. This calling convention is incompatible with the one normally used
  18106. on Unix, so you cannot use it if you need to call libraries
  18107. compiled with the Unix compiler.
  18108. Also, you must provide function prototypes for all functions that
  18109. take variable numbers of arguments (including 'printf'); otherwise
  18110. incorrect code is generated for calls to those functions.
  18111. In addition, seriously incorrect code results if you call a
  18112. function with too many arguments. (Normally, extra arguments are
  18113. harmlessly ignored.)
  18114. The 'rtd' instruction is supported by the 68010, 68020, 68030,
  18115. 68040, 68060 and CPU32 processors, but not by the 68000 or 5200.
  18116. The default is '-mno-rtd'.
  18117. '-malign-int'
  18118. '-mno-align-int'
  18119. Control whether GCC aligns 'int', 'long', 'long long', 'float',
  18120. 'double', and 'long double' variables on a 32-bit boundary
  18121. ('-malign-int') or a 16-bit boundary ('-mno-align-int'). Aligning
  18122. variables on 32-bit boundaries produces code that runs somewhat
  18123. faster on processors with 32-bit busses at the expense of more
  18124. memory.
  18125. *Warning:* if you use the '-malign-int' switch, GCC aligns
  18126. structures containing the above types differently than most
  18127. published application binary interface specifications for the m68k.
  18128. Use the pc-relative addressing mode of the 68000 directly, instead
  18129. of using a global offset table. At present, this option implies
  18130. '-fpic', allowing at most a 16-bit offset for pc-relative
  18131. addressing. '-fPIC' is not presently supported with '-mpcrel',
  18132. though this could be supported for 68020 and higher processors.
  18133. '-mno-strict-align'
  18134. '-mstrict-align'
  18135. Do not (do) assume that unaligned memory references are handled by
  18136. the system.
  18137. '-msep-data'
  18138. Generate code that allows the data segment to be located in a
  18139. different area of memory from the text segment. This allows for
  18140. execute-in-place in an environment without virtual memory
  18141. management. This option implies '-fPIC'.
  18142. '-mno-sep-data'
  18143. Generate code that assumes that the data segment follows the text
  18144. segment. This is the default.
  18145. '-mid-shared-library'
  18146. Generate code that supports shared libraries via the library ID
  18147. method. This allows for execute-in-place and shared libraries in
  18148. an environment without virtual memory management. This option
  18149. implies '-fPIC'.
  18150. '-mno-id-shared-library'
  18151. Generate code that doesn't assume ID-based shared libraries are
  18152. being used. This is the default.
  18153. '-mshared-library-id=n'
  18154. Specifies the identification number of the ID-based shared library
  18155. being compiled. Specifying a value of 0 generates more compact
  18156. code; specifying other values forces the allocation of that number
  18157. to the current library, but is no more space- or time-efficient
  18158. than omitting this option.
  18159. '-mxgot'
  18160. '-mno-xgot'
  18161. When generating position-independent code for ColdFire, generate
  18162. code that works if the GOT has more than 8192 entries. This code
  18163. is larger and slower than code generated without this option. On
  18164. M680x0 processors, this option is not needed; '-fPIC' suffices.
  18165. GCC normally uses a single instruction to load values from the GOT.
  18166. While this is relatively efficient, it only works if the GOT is
  18167. smaller than about 64k. Anything larger causes the linker to
  18168. report an error such as:
  18169. relocation truncated to fit: R_68K_GOT16O foobar
  18170. If this happens, you should recompile your code with '-mxgot'. It
  18171. should then work with very large GOTs. However, code generated
  18172. with '-mxgot' is less efficient, since it takes 4 instructions to
  18173. fetch the value of a global symbol.
  18174. Note that some linkers, including newer versions of the GNU linker,
  18175. can create multiple GOTs and sort GOT entries. If you have such a
  18176. linker, you should only need to use '-mxgot' when compiling a
  18177. single object file that accesses more than 8192 GOT entries. Very
  18178. few do.
  18179. These options have no effect unless GCC is generating
  18180. position-independent code.
  18181. '-mlong-jump-table-offsets'
  18182. Use 32-bit offsets in 'switch' tables. The default is to use
  18183. 16-bit offsets.
  18184. 
  18185. File: gcc.info, Node: MCore Options, Next: MeP Options, Prev: M680x0 Options, Up: Submodel Options
  18186. 3.19.26 MCore Options
  18187. ---------------------
  18188. These are the '-m' options defined for the Motorola M*Core processors.
  18189. '-mhardlit'
  18190. '-mno-hardlit'
  18191. Inline constants into the code stream if it can be done in two
  18192. instructions or less.
  18193. '-mdiv'
  18194. '-mno-div'
  18195. Use the divide instruction. (Enabled by default).
  18196. '-mrelax-immediate'
  18197. '-mno-relax-immediate'
  18198. Allow arbitrary-sized immediates in bit operations.
  18199. '-mwide-bitfields'
  18200. '-mno-wide-bitfields'
  18201. Always treat bit-fields as 'int'-sized.
  18202. '-m4byte-functions'
  18203. '-mno-4byte-functions'
  18204. Force all functions to be aligned to a 4-byte boundary.
  18205. '-mcallgraph-data'
  18206. '-mno-callgraph-data'
  18207. Emit callgraph information.
  18208. '-mslow-bytes'
  18209. '-mno-slow-bytes'
  18210. Prefer word access when reading byte quantities.
  18211. '-mlittle-endian'
  18212. '-mbig-endian'
  18213. Generate code for a little-endian target.
  18214. '-m210'
  18215. '-m340'
  18216. Generate code for the 210 processor.
  18217. '-mno-lsim'
  18218. Assume that runtime support has been provided and so omit the
  18219. simulator library ('libsim.a)' from the linker command line.
  18220. '-mstack-increment=SIZE'
  18221. Set the maximum amount for a single stack increment operation.
  18222. Large values can increase the speed of programs that contain
  18223. functions that need a large amount of stack space, but they can
  18224. also trigger a segmentation fault if the stack is extended too
  18225. much. The default value is 0x1000.
  18226. 
  18227. File: gcc.info, Node: MeP Options, Next: MicroBlaze Options, Prev: MCore Options, Up: Submodel Options
  18228. 3.19.27 MeP Options
  18229. -------------------
  18230. '-mabsdiff'
  18231. Enables the 'abs' instruction, which is the absolute difference
  18232. between two registers.
  18233. '-mall-opts'
  18234. Enables all the optional instructions--average, multiply, divide,
  18235. bit operations, leading zero, absolute difference, min/max, clip,
  18236. and saturation.
  18237. '-maverage'
  18238. Enables the 'ave' instruction, which computes the average of two
  18239. registers.
  18240. '-mbased=N'
  18241. Variables of size N bytes or smaller are placed in the '.based'
  18242. section by default. Based variables use the '$tp' register as a
  18243. base register, and there is a 128-byte limit to the '.based'
  18244. section.
  18245. '-mbitops'
  18246. Enables the bit operation instructions--bit test ('btstm'), set
  18247. ('bsetm'), clear ('bclrm'), invert ('bnotm'), and test-and-set
  18248. ('tas').
  18249. '-mc=NAME'
  18250. Selects which section constant data is placed in. NAME may be
  18251. 'tiny', 'near', or 'far'.
  18252. '-mclip'
  18253. Enables the 'clip' instruction. Note that '-mclip' is not useful
  18254. unless you also provide '-mminmax'.
  18255. '-mconfig=NAME'
  18256. Selects one of the built-in core configurations. Each MeP chip has
  18257. one or more modules in it; each module has a core CPU and a variety
  18258. of coprocessors, optional instructions, and peripherals. The
  18259. 'MeP-Integrator' tool, not part of GCC, provides these
  18260. configurations through this option; using this option is the same
  18261. as using all the corresponding command-line options. The default
  18262. configuration is 'default'.
  18263. '-mcop'
  18264. Enables the coprocessor instructions. By default, this is a 32-bit
  18265. coprocessor. Note that the coprocessor is normally enabled via the
  18266. '-mconfig=' option.
  18267. '-mcop32'
  18268. Enables the 32-bit coprocessor's instructions.
  18269. '-mcop64'
  18270. Enables the 64-bit coprocessor's instructions.
  18271. '-mivc2'
  18272. Enables IVC2 scheduling. IVC2 is a 64-bit VLIW coprocessor.
  18273. '-mdc'
  18274. Causes constant variables to be placed in the '.near' section.
  18275. '-mdiv'
  18276. Enables the 'div' and 'divu' instructions.
  18277. '-meb'
  18278. Generate big-endian code.
  18279. '-mel'
  18280. Generate little-endian code.
  18281. '-mio-volatile'
  18282. Tells the compiler that any variable marked with the 'io' attribute
  18283. is to be considered volatile.
  18284. '-ml'
  18285. Causes variables to be assigned to the '.far' section by default.
  18286. '-mleadz'
  18287. Enables the 'leadz' (leading zero) instruction.
  18288. '-mm'
  18289. Causes variables to be assigned to the '.near' section by default.
  18290. '-mminmax'
  18291. Enables the 'min' and 'max' instructions.
  18292. '-mmult'
  18293. Enables the multiplication and multiply-accumulate instructions.
  18294. '-mno-opts'
  18295. Disables all the optional instructions enabled by '-mall-opts'.
  18296. '-mrepeat'
  18297. Enables the 'repeat' and 'erepeat' instructions, used for
  18298. low-overhead looping.
  18299. '-ms'
  18300. Causes all variables to default to the '.tiny' section. Note that
  18301. there is a 65536-byte limit to this section. Accesses to these
  18302. variables use the '%gp' base register.
  18303. '-msatur'
  18304. Enables the saturation instructions. Note that the compiler does
  18305. not currently generate these itself, but this option is included
  18306. for compatibility with other tools, like 'as'.
  18307. '-msdram'
  18308. Link the SDRAM-based runtime instead of the default ROM-based
  18309. runtime.
  18310. '-msim'
  18311. Link the simulator run-time libraries.
  18312. '-msimnovec'
  18313. Link the simulator runtime libraries, excluding built-in support
  18314. for reset and exception vectors and tables.
  18315. '-mtf'
  18316. Causes all functions to default to the '.far' section. Without
  18317. this option, functions default to the '.near' section.
  18318. '-mtiny=N'
  18319. Variables that are N bytes or smaller are allocated to the '.tiny'
  18320. section. These variables use the '$gp' base register. The default
  18321. for this option is 4, but note that there's a 65536-byte limit to
  18322. the '.tiny' section.
  18323. 
  18324. File: gcc.info, Node: MicroBlaze Options, Next: MIPS Options, Prev: MeP Options, Up: Submodel Options
  18325. 3.19.28 MicroBlaze Options
  18326. --------------------------
  18327. '-msoft-float'
  18328. Use software emulation for floating point (default).
  18329. '-mhard-float'
  18330. Use hardware floating-point instructions.
  18331. '-mmemcpy'
  18332. Do not optimize block moves, use 'memcpy'.
  18333. '-mno-clearbss'
  18334. This option is deprecated. Use '-fno-zero-initialized-in-bss'
  18335. instead.
  18336. '-mcpu=CPU-TYPE'
  18337. Use features of, and schedule code for, the given CPU. Supported
  18338. values are in the format 'vX.YY.Z', where X is a major version, YY
  18339. is the minor version, and Z is compatibility code. Example values
  18340. are 'v3.00.a', 'v4.00.b', 'v5.00.a', 'v5.00.b', 'v6.00.a'.
  18341. '-mxl-soft-mul'
  18342. Use software multiply emulation (default).
  18343. '-mxl-soft-div'
  18344. Use software emulation for divides (default).
  18345. '-mxl-barrel-shift'
  18346. Use the hardware barrel shifter.
  18347. '-mxl-pattern-compare'
  18348. Use pattern compare instructions.
  18349. '-msmall-divides'
  18350. Use table lookup optimization for small signed integer divisions.
  18351. '-mxl-stack-check'
  18352. This option is deprecated. Use '-fstack-check' instead.
  18353. '-mxl-gp-opt'
  18354. Use GP-relative '.sdata'/'.sbss' sections.
  18355. '-mxl-multiply-high'
  18356. Use multiply high instructions for high part of 32x32 multiply.
  18357. '-mxl-float-convert'
  18358. Use hardware floating-point conversion instructions.
  18359. '-mxl-float-sqrt'
  18360. Use hardware floating-point square root instruction.
  18361. '-mbig-endian'
  18362. Generate code for a big-endian target.
  18363. '-mlittle-endian'
  18364. Generate code for a little-endian target.
  18365. '-mxl-reorder'
  18366. Use reorder instructions (swap and byte reversed load/store).
  18367. '-mxl-mode-APP-MODEL'
  18368. Select application model APP-MODEL. Valid models are
  18369. 'executable'
  18370. normal executable (default), uses startup code 'crt0.o'.
  18371. '-mpic-data-is-text-relative'
  18372. Assume that the displacement between the text and data
  18373. segments is fixed at static link time. This allows data to be
  18374. referenced by offset from start of text address instead of GOT
  18375. since PC-relative addressing is not supported.
  18376. 'xmdstub'
  18377. for use with Xilinx Microprocessor Debugger (XMD) based
  18378. software intrusive debug agent called xmdstub. This uses
  18379. startup file 'crt1.o' and sets the start address of the
  18380. program to 0x800.
  18381. 'bootstrap'
  18382. for applications that are loaded using a bootloader. This
  18383. model uses startup file 'crt2.o' which does not contain a
  18384. processor reset vector handler. This is suitable for
  18385. transferring control on a processor reset to the bootloader
  18386. rather than the application.
  18387. 'novectors'
  18388. for applications that do not require any of the MicroBlaze
  18389. vectors. This option may be useful for applications running
  18390. within a monitoring application. This model uses 'crt3.o' as
  18391. a startup file.
  18392. Option '-xl-mode-APP-MODEL' is a deprecated alias for
  18393. '-mxl-mode-APP-MODEL'.
  18394. 
  18395. File: gcc.info, Node: MIPS Options, Next: MMIX Options, Prev: MicroBlaze Options, Up: Submodel Options
  18396. 3.19.29 MIPS Options
  18397. --------------------
  18398. '-EB'
  18399. Generate big-endian code.
  18400. '-EL'
  18401. Generate little-endian code. This is the default for 'mips*el-*-*'
  18402. configurations.
  18403. '-march=ARCH'
  18404. Generate code that runs on ARCH, which can be the name of a generic
  18405. MIPS ISA, or the name of a particular processor. The ISA names
  18406. are: 'mips1', 'mips2', 'mips3', 'mips4', 'mips32', 'mips32r2',
  18407. 'mips32r3', 'mips32r5', 'mips32r6', 'mips64', 'mips64r2',
  18408. 'mips64r3', 'mips64r5' and 'mips64r6'. The processor names are:
  18409. '4kc', '4km', '4kp', '4ksc', '4kec', '4kem', '4kep', '4ksd', '5kc',
  18410. '5kf', '20kc', '24kc', '24kf2_1', '24kf1_1', '24kec', '24kef2_1',
  18411. '24kef1_1', '34kc', '34kf2_1', '34kf1_1', '34kn', '74kc',
  18412. '74kf2_1', '74kf1_1', '74kf3_2', '1004kc', '1004kf2_1',
  18413. '1004kf1_1', 'i6400', 'i6500', 'interaptiv', 'loongson2e',
  18414. 'loongson2f', 'loongson3a', 'gs464', 'gs464e', 'gs264e', 'm4k',
  18415. 'm14k', 'm14kc', 'm14ke', 'm14kec', 'm5100', 'm5101', 'octeon',
  18416. 'octeon+', 'octeon2', 'octeon3', 'orion', 'p5600', 'p6600',
  18417. 'r2000', 'r3000', 'r3900', 'r4000', 'r4400', 'r4600', 'r4650',
  18418. 'r4700', 'r5900', 'r6000', 'r8000', 'rm7000', 'rm9000', 'r10000',
  18419. 'r12000', 'r14000', 'r16000', 'sb1', 'sr71000', 'vr4100', 'vr4111',
  18420. 'vr4120', 'vr4130', 'vr4300', 'vr5000', 'vr5400', 'vr5500', 'xlr'
  18421. and 'xlp'. The special value 'from-abi' selects the most
  18422. compatible architecture for the selected ABI (that is, 'mips1' for
  18423. 32-bit ABIs and 'mips3' for 64-bit ABIs).
  18424. The native Linux/GNU toolchain also supports the value 'native',
  18425. which selects the best architecture option for the host processor.
  18426. '-march=native' has no effect if GCC does not recognize the
  18427. processor.
  18428. In processor names, a final '000' can be abbreviated as 'k' (for
  18429. example, '-march=r2k'). Prefixes are optional, and 'vr' may be
  18430. written 'r'.
  18431. Names of the form 'Nf2_1' refer to processors with FPUs clocked at
  18432. half the rate of the core, names of the form 'Nf1_1' refer to
  18433. processors with FPUs clocked at the same rate as the core, and
  18434. names of the form 'Nf3_2' refer to processors with FPUs clocked a
  18435. ratio of 3:2 with respect to the core. For compatibility reasons,
  18436. 'Nf' is accepted as a synonym for 'Nf2_1' while 'Nx' and 'Bfx' are
  18437. accepted as synonyms for 'Nf1_1'.
  18438. GCC defines two macros based on the value of this option. The
  18439. first is '_MIPS_ARCH', which gives the name of target architecture,
  18440. as a string. The second has the form '_MIPS_ARCH_FOO', where FOO
  18441. is the capitalized value of '_MIPS_ARCH'. For example,
  18442. '-march=r2000' sets '_MIPS_ARCH' to '"r2000"' and defines the macro
  18443. '_MIPS_ARCH_R2000'.
  18444. Note that the '_MIPS_ARCH' macro uses the processor names given
  18445. above. In other words, it has the full prefix and does not
  18446. abbreviate '000' as 'k'. In the case of 'from-abi', the macro
  18447. names the resolved architecture (either '"mips1"' or '"mips3"').
  18448. It names the default architecture when no '-march' option is given.
  18449. '-mtune=ARCH'
  18450. Optimize for ARCH. Among other things, this option controls the
  18451. way instructions are scheduled, and the perceived cost of
  18452. arithmetic operations. The list of ARCH values is the same as for
  18453. '-march'.
  18454. When this option is not used, GCC optimizes for the processor
  18455. specified by '-march'. By using '-march' and '-mtune' together, it
  18456. is possible to generate code that runs on a family of processors,
  18457. but optimize the code for one particular member of that family.
  18458. '-mtune' defines the macros '_MIPS_TUNE' and '_MIPS_TUNE_FOO',
  18459. which work in the same way as the '-march' ones described above.
  18460. '-mips1'
  18461. Equivalent to '-march=mips1'.
  18462. '-mips2'
  18463. Equivalent to '-march=mips2'.
  18464. '-mips3'
  18465. Equivalent to '-march=mips3'.
  18466. '-mips4'
  18467. Equivalent to '-march=mips4'.
  18468. '-mips32'
  18469. Equivalent to '-march=mips32'.
  18470. '-mips32r3'
  18471. Equivalent to '-march=mips32r3'.
  18472. '-mips32r5'
  18473. Equivalent to '-march=mips32r5'.
  18474. '-mips32r6'
  18475. Equivalent to '-march=mips32r6'.
  18476. '-mips64'
  18477. Equivalent to '-march=mips64'.
  18478. '-mips64r2'
  18479. Equivalent to '-march=mips64r2'.
  18480. '-mips64r3'
  18481. Equivalent to '-march=mips64r3'.
  18482. '-mips64r5'
  18483. Equivalent to '-march=mips64r5'.
  18484. '-mips64r6'
  18485. Equivalent to '-march=mips64r6'.
  18486. '-mips16'
  18487. '-mno-mips16'
  18488. Generate (do not generate) MIPS16 code. If GCC is targeting a
  18489. MIPS32 or MIPS64 architecture, it makes use of the MIPS16e ASE.
  18490. MIPS16 code generation can also be controlled on a per-function
  18491. basis by means of 'mips16' and 'nomips16' attributes. *Note
  18492. Function Attributes::, for more information.
  18493. '-mflip-mips16'
  18494. Generate MIPS16 code on alternating functions. This option is
  18495. provided for regression testing of mixed MIPS16/non-MIPS16 code
  18496. generation, and is not intended for ordinary use in compiling user
  18497. code.
  18498. '-minterlink-compressed'
  18499. '-mno-interlink-compressed'
  18500. Require (do not require) that code using the standard
  18501. (uncompressed) MIPS ISA be link-compatible with MIPS16 and
  18502. microMIPS code, and vice versa.
  18503. For example, code using the standard ISA encoding cannot jump
  18504. directly to MIPS16 or microMIPS code; it must either use a call or
  18505. an indirect jump. '-minterlink-compressed' therefore disables
  18506. direct jumps unless GCC knows that the target of the jump is not
  18507. compressed.
  18508. '-minterlink-mips16'
  18509. '-mno-interlink-mips16'
  18510. Aliases of '-minterlink-compressed' and
  18511. '-mno-interlink-compressed'. These options predate the microMIPS
  18512. ASE and are retained for backwards compatibility.
  18513. '-mabi=32'
  18514. '-mabi=o64'
  18515. '-mabi=n32'
  18516. '-mabi=64'
  18517. '-mabi=eabi'
  18518. Generate code for the given ABI.
  18519. Note that the EABI has a 32-bit and a 64-bit variant. GCC normally
  18520. generates 64-bit code when you select a 64-bit architecture, but
  18521. you can use '-mgp32' to get 32-bit code instead.
  18522. For information about the O64 ABI, see
  18523. <http://gcc.gnu.org/projects/mipso64-abi.html>.
  18524. GCC supports a variant of the o32 ABI in which floating-point
  18525. registers are 64 rather than 32 bits wide. You can select this
  18526. combination with '-mabi=32' '-mfp64'. This ABI relies on the
  18527. 'mthc1' and 'mfhc1' instructions and is therefore only supported
  18528. for MIPS32R2, MIPS32R3 and MIPS32R5 processors.
  18529. The register assignments for arguments and return values remain the
  18530. same, but each scalar value is passed in a single 64-bit register
  18531. rather than a pair of 32-bit registers. For example, scalar
  18532. floating-point values are returned in '$f0' only, not a '$f0'/'$f1'
  18533. pair. The set of call-saved registers also remains the same in
  18534. that the even-numbered double-precision registers are saved.
  18535. Two additional variants of the o32 ABI are supported to enable a
  18536. transition from 32-bit to 64-bit registers. These are FPXX
  18537. ('-mfpxx') and FP64A ('-mfp64' '-mno-odd-spreg'). The FPXX
  18538. extension mandates that all code must execute correctly when run
  18539. using 32-bit or 64-bit registers. The code can be interlinked with
  18540. either FP32 or FP64, but not both. The FP64A extension is similar
  18541. to the FP64 extension but forbids the use of odd-numbered
  18542. single-precision registers. This can be used in conjunction with
  18543. the 'FRE' mode of FPUs in MIPS32R5 processors and allows both FP32
  18544. and FP64A code to interlink and run in the same process without
  18545. changing FPU modes.
  18546. '-mabicalls'
  18547. '-mno-abicalls'
  18548. Generate (do not generate) code that is suitable for SVR4-style
  18549. dynamic objects. '-mabicalls' is the default for SVR4-based
  18550. systems.
  18551. '-mshared'
  18552. '-mno-shared'
  18553. Generate (do not generate) code that is fully position-independent,
  18554. and that can therefore be linked into shared libraries. This
  18555. option only affects '-mabicalls'.
  18556. All '-mabicalls' code has traditionally been position-independent,
  18557. regardless of options like '-fPIC' and '-fpic'. However, as an
  18558. extension, the GNU toolchain allows executables to use absolute
  18559. accesses for locally-binding symbols. It can also use shorter GP
  18560. initialization sequences and generate direct calls to
  18561. locally-defined functions. This mode is selected by '-mno-shared'.
  18562. '-mno-shared' depends on binutils 2.16 or higher and generates
  18563. objects that can only be linked by the GNU linker. However, the
  18564. option does not affect the ABI of the final executable; it only
  18565. affects the ABI of relocatable objects. Using '-mno-shared'
  18566. generally makes executables both smaller and quicker.
  18567. '-mshared' is the default.
  18568. '-mplt'
  18569. '-mno-plt'
  18570. Assume (do not assume) that the static and dynamic linkers support
  18571. PLTs and copy relocations. This option only affects '-mno-shared
  18572. -mabicalls'. For the n64 ABI, this option has no effect without
  18573. '-msym32'.
  18574. You can make '-mplt' the default by configuring GCC with
  18575. '--with-mips-plt'. The default is '-mno-plt' otherwise.
  18576. '-mxgot'
  18577. '-mno-xgot'
  18578. Lift (do not lift) the usual restrictions on the size of the global
  18579. offset table.
  18580. GCC normally uses a single instruction to load values from the GOT.
  18581. While this is relatively efficient, it only works if the GOT is
  18582. smaller than about 64k. Anything larger causes the linker to
  18583. report an error such as:
  18584. relocation truncated to fit: R_MIPS_GOT16 foobar
  18585. If this happens, you should recompile your code with '-mxgot'.
  18586. This works with very large GOTs, although the code is also less
  18587. efficient, since it takes three instructions to fetch the value of
  18588. a global symbol.
  18589. Note that some linkers can create multiple GOTs. If you have such
  18590. a linker, you should only need to use '-mxgot' when a single object
  18591. file accesses more than 64k's worth of GOT entries. Very few do.
  18592. These options have no effect unless GCC is generating position
  18593. independent code.
  18594. '-mgp32'
  18595. Assume that general-purpose registers are 32 bits wide.
  18596. '-mgp64'
  18597. Assume that general-purpose registers are 64 bits wide.
  18598. '-mfp32'
  18599. Assume that floating-point registers are 32 bits wide.
  18600. '-mfp64'
  18601. Assume that floating-point registers are 64 bits wide.
  18602. '-mfpxx'
  18603. Do not assume the width of floating-point registers.
  18604. '-mhard-float'
  18605. Use floating-point coprocessor instructions.
  18606. '-msoft-float'
  18607. Do not use floating-point coprocessor instructions. Implement
  18608. floating-point calculations using library calls instead.
  18609. '-mno-float'
  18610. Equivalent to '-msoft-float', but additionally asserts that the
  18611. program being compiled does not perform any floating-point
  18612. operations. This option is presently supported only by some
  18613. bare-metal MIPS configurations, where it may select a special set
  18614. of libraries that lack all floating-point support (including, for
  18615. example, the floating-point 'printf' formats). If code compiled
  18616. with '-mno-float' accidentally contains floating-point operations,
  18617. it is likely to suffer a link-time or run-time failure.
  18618. '-msingle-float'
  18619. Assume that the floating-point coprocessor only supports
  18620. single-precision operations.
  18621. '-mdouble-float'
  18622. Assume that the floating-point coprocessor supports
  18623. double-precision operations. This is the default.
  18624. '-modd-spreg'
  18625. '-mno-odd-spreg'
  18626. Enable the use of odd-numbered single-precision floating-point
  18627. registers for the o32 ABI. This is the default for processors that
  18628. are known to support these registers. When using the o32 FPXX ABI,
  18629. '-mno-odd-spreg' is set by default.
  18630. '-mabs=2008'
  18631. '-mabs=legacy'
  18632. These options control the treatment of the special not-a-number
  18633. (NaN) IEEE 754 floating-point data with the 'abs.fmt' and 'neg.fmt'
  18634. machine instructions.
  18635. By default or when '-mabs=legacy' is used the legacy treatment is
  18636. selected. In this case these instructions are considered
  18637. arithmetic and avoided where correct operation is required and the
  18638. input operand might be a NaN. A longer sequence of instructions
  18639. that manipulate the sign bit of floating-point datum manually is
  18640. used instead unless the '-ffinite-math-only' option has also been
  18641. specified.
  18642. The '-mabs=2008' option selects the IEEE 754-2008 treatment. In
  18643. this case these instructions are considered non-arithmetic and
  18644. therefore operating correctly in all cases, including in particular
  18645. where the input operand is a NaN. These instructions are therefore
  18646. always used for the respective operations.
  18647. '-mnan=2008'
  18648. '-mnan=legacy'
  18649. These options control the encoding of the special not-a-number
  18650. (NaN) IEEE 754 floating-point data.
  18651. The '-mnan=legacy' option selects the legacy encoding. In this
  18652. case quiet NaNs (qNaNs) are denoted by the first bit of their
  18653. trailing significand field being 0, whereas signaling NaNs (sNaNs)
  18654. are denoted by the first bit of their trailing significand field
  18655. being 1.
  18656. The '-mnan=2008' option selects the IEEE 754-2008 encoding. In
  18657. this case qNaNs are denoted by the first bit of their trailing
  18658. significand field being 1, whereas sNaNs are denoted by the first
  18659. bit of their trailing significand field being 0.
  18660. The default is '-mnan=legacy' unless GCC has been configured with
  18661. '--with-nan=2008'.
  18662. '-mllsc'
  18663. '-mno-llsc'
  18664. Use (do not use) 'll', 'sc', and 'sync' instructions to implement
  18665. atomic memory built-in functions. When neither option is
  18666. specified, GCC uses the instructions if the target architecture
  18667. supports them.
  18668. '-mllsc' is useful if the runtime environment can emulate the
  18669. instructions and '-mno-llsc' can be useful when compiling for
  18670. nonstandard ISAs. You can make either option the default by
  18671. configuring GCC with '--with-llsc' and '--without-llsc'
  18672. respectively. '--with-llsc' is the default for some
  18673. configurations; see the installation documentation for details.
  18674. '-mdsp'
  18675. '-mno-dsp'
  18676. Use (do not use) revision 1 of the MIPS DSP ASE. *Note MIPS DSP
  18677. Built-in Functions::. This option defines the preprocessor macro
  18678. '__mips_dsp'. It also defines '__mips_dsp_rev' to 1.
  18679. '-mdspr2'
  18680. '-mno-dspr2'
  18681. Use (do not use) revision 2 of the MIPS DSP ASE. *Note MIPS DSP
  18682. Built-in Functions::. This option defines the preprocessor macros
  18683. '__mips_dsp' and '__mips_dspr2'. It also defines '__mips_dsp_rev'
  18684. to 2.
  18685. '-msmartmips'
  18686. '-mno-smartmips'
  18687. Use (do not use) the MIPS SmartMIPS ASE.
  18688. '-mpaired-single'
  18689. '-mno-paired-single'
  18690. Use (do not use) paired-single floating-point instructions. *Note
  18691. MIPS Paired-Single Support::. This option requires hardware
  18692. floating-point support to be enabled.
  18693. '-mdmx'
  18694. '-mno-mdmx'
  18695. Use (do not use) MIPS Digital Media Extension instructions. This
  18696. option can only be used when generating 64-bit code and requires
  18697. hardware floating-point support to be enabled.
  18698. '-mips3d'
  18699. '-mno-mips3d'
  18700. Use (do not use) the MIPS-3D ASE. *Note MIPS-3D Built-in
  18701. Functions::. The option '-mips3d' implies '-mpaired-single'.
  18702. '-mmicromips'
  18703. '-mno-micromips'
  18704. Generate (do not generate) microMIPS code.
  18705. MicroMIPS code generation can also be controlled on a per-function
  18706. basis by means of 'micromips' and 'nomicromips' attributes. *Note
  18707. Function Attributes::, for more information.
  18708. '-mmt'
  18709. '-mno-mt'
  18710. Use (do not use) MT Multithreading instructions.
  18711. '-mmcu'
  18712. '-mno-mcu'
  18713. Use (do not use) the MIPS MCU ASE instructions.
  18714. '-meva'
  18715. '-mno-eva'
  18716. Use (do not use) the MIPS Enhanced Virtual Addressing instructions.
  18717. '-mvirt'
  18718. '-mno-virt'
  18719. Use (do not use) the MIPS Virtualization (VZ) instructions.
  18720. '-mxpa'
  18721. '-mno-xpa'
  18722. Use (do not use) the MIPS eXtended Physical Address (XPA)
  18723. instructions.
  18724. '-mcrc'
  18725. '-mno-crc'
  18726. Use (do not use) the MIPS Cyclic Redundancy Check (CRC)
  18727. instructions.
  18728. '-mginv'
  18729. '-mno-ginv'
  18730. Use (do not use) the MIPS Global INValidate (GINV) instructions.
  18731. '-mloongson-mmi'
  18732. '-mno-loongson-mmi'
  18733. Use (do not use) the MIPS Loongson MultiMedia extensions
  18734. Instructions (MMI).
  18735. '-mloongson-ext'
  18736. '-mno-loongson-ext'
  18737. Use (do not use) the MIPS Loongson EXTensions (EXT) instructions.
  18738. '-mloongson-ext2'
  18739. '-mno-loongson-ext2'
  18740. Use (do not use) the MIPS Loongson EXTensions r2 (EXT2)
  18741. instructions.
  18742. '-mlong64'
  18743. Force 'long' types to be 64 bits wide. See '-mlong32' for an
  18744. explanation of the default and the way that the pointer size is
  18745. determined.
  18746. '-mlong32'
  18747. Force 'long', 'int', and pointer types to be 32 bits wide.
  18748. The default size of 'int's, 'long's and pointers depends on the
  18749. ABI. All the supported ABIs use 32-bit 'int's. The n64 ABI uses
  18750. 64-bit 'long's, as does the 64-bit EABI; the others use 32-bit
  18751. 'long's. Pointers are the same size as 'long's, or the same size
  18752. as integer registers, whichever is smaller.
  18753. '-msym32'
  18754. '-mno-sym32'
  18755. Assume (do not assume) that all symbols have 32-bit values,
  18756. regardless of the selected ABI. This option is useful in
  18757. combination with '-mabi=64' and '-mno-abicalls' because it allows
  18758. GCC to generate shorter and faster references to symbolic
  18759. addresses.
  18760. '-G NUM'
  18761. Put definitions of externally-visible data in a small data section
  18762. if that data is no bigger than NUM bytes. GCC can then generate
  18763. more efficient accesses to the data; see '-mgpopt' for details.
  18764. The default '-G' option depends on the configuration.
  18765. '-mlocal-sdata'
  18766. '-mno-local-sdata'
  18767. Extend (do not extend) the '-G' behavior to local data too, such as
  18768. to static variables in C. '-mlocal-sdata' is the default for all
  18769. configurations.
  18770. If the linker complains that an application is using too much small
  18771. data, you might want to try rebuilding the less
  18772. performance-critical parts with '-mno-local-sdata'. You might also
  18773. want to build large libraries with '-mno-local-sdata', so that the
  18774. libraries leave more room for the main program.
  18775. '-mextern-sdata'
  18776. '-mno-extern-sdata'
  18777. Assume (do not assume) that externally-defined data is in a small
  18778. data section if the size of that data is within the '-G' limit.
  18779. '-mextern-sdata' is the default for all configurations.
  18780. If you compile a module MOD with '-mextern-sdata' '-G NUM'
  18781. '-mgpopt', and MOD references a variable VAR that is no bigger than
  18782. NUM bytes, you must make sure that VAR is placed in a small data
  18783. section. If VAR is defined by another module, you must either
  18784. compile that module with a high-enough '-G' setting or attach a
  18785. 'section' attribute to VAR's definition. If VAR is common, you
  18786. must link the application with a high-enough '-G' setting.
  18787. The easiest way of satisfying these restrictions is to compile and
  18788. link every module with the same '-G' option. However, you may wish
  18789. to build a library that supports several different small data
  18790. limits. You can do this by compiling the library with the highest
  18791. supported '-G' setting and additionally using '-mno-extern-sdata'
  18792. to stop the library from making assumptions about
  18793. externally-defined data.
  18794. '-mgpopt'
  18795. '-mno-gpopt'
  18796. Use (do not use) GP-relative accesses for symbols that are known to
  18797. be in a small data section; see '-G', '-mlocal-sdata' and
  18798. '-mextern-sdata'. '-mgpopt' is the default for all configurations.
  18799. '-mno-gpopt' is useful for cases where the '$gp' register might not
  18800. hold the value of '_gp'. For example, if the code is part of a
  18801. library that might be used in a boot monitor, programs that call
  18802. boot monitor routines pass an unknown value in '$gp'. (In such
  18803. situations, the boot monitor itself is usually compiled with
  18804. '-G0'.)
  18805. '-mno-gpopt' implies '-mno-local-sdata' and '-mno-extern-sdata'.
  18806. '-membedded-data'
  18807. '-mno-embedded-data'
  18808. Allocate variables to the read-only data section first if possible,
  18809. then next in the small data section if possible, otherwise in data.
  18810. This gives slightly slower code than the default, but reduces the
  18811. amount of RAM required when executing, and thus may be preferred
  18812. for some embedded systems.
  18813. '-muninit-const-in-rodata'
  18814. '-mno-uninit-const-in-rodata'
  18815. Put uninitialized 'const' variables in the read-only data section.
  18816. This option is only meaningful in conjunction with
  18817. '-membedded-data'.
  18818. '-mcode-readable=SETTING'
  18819. Specify whether GCC may generate code that reads from executable
  18820. sections. There are three possible settings:
  18821. '-mcode-readable=yes'
  18822. Instructions may freely access executable sections. This is
  18823. the default setting.
  18824. '-mcode-readable=pcrel'
  18825. MIPS16 PC-relative load instructions can access executable
  18826. sections, but other instructions must not do so. This option
  18827. is useful on 4KSc and 4KSd processors when the code TLBs have
  18828. the Read Inhibit bit set. It is also useful on processors
  18829. that can be configured to have a dual instruction/data SRAM
  18830. interface and that, like the M4K, automatically redirect
  18831. PC-relative loads to the instruction RAM.
  18832. '-mcode-readable=no'
  18833. Instructions must not access executable sections. This option
  18834. can be useful on targets that are configured to have a dual
  18835. instruction/data SRAM interface but that (unlike the M4K) do
  18836. not automatically redirect PC-relative loads to the
  18837. instruction RAM.
  18838. '-msplit-addresses'
  18839. '-mno-split-addresses'
  18840. Enable (disable) use of the '%hi()' and '%lo()' assembler
  18841. relocation operators. This option has been superseded by
  18842. '-mexplicit-relocs' but is retained for backwards compatibility.
  18843. '-mexplicit-relocs'
  18844. '-mno-explicit-relocs'
  18845. Use (do not use) assembler relocation operators when dealing with
  18846. symbolic addresses. The alternative, selected by
  18847. '-mno-explicit-relocs', is to use assembler macros instead.
  18848. '-mexplicit-relocs' is the default if GCC was configured to use an
  18849. assembler that supports relocation operators.
  18850. '-mcheck-zero-division'
  18851. '-mno-check-zero-division'
  18852. Trap (do not trap) on integer division by zero.
  18853. The default is '-mcheck-zero-division'.
  18854. '-mdivide-traps'
  18855. '-mdivide-breaks'
  18856. MIPS systems check for division by zero by generating either a
  18857. conditional trap or a break instruction. Using traps results in
  18858. smaller code, but is only supported on MIPS II and later. Also,
  18859. some versions of the Linux kernel have a bug that prevents trap
  18860. from generating the proper signal ('SIGFPE'). Use '-mdivide-traps'
  18861. to allow conditional traps on architectures that support them and
  18862. '-mdivide-breaks' to force the use of breaks.
  18863. The default is usually '-mdivide-traps', but this can be overridden
  18864. at configure time using '--with-divide=breaks'. Divide-by-zero
  18865. checks can be completely disabled using '-mno-check-zero-division'.
  18866. '-mload-store-pairs'
  18867. '-mno-load-store-pairs'
  18868. Enable (disable) an optimization that pairs consecutive load or
  18869. store instructions to enable load/store bonding. This option is
  18870. enabled by default but only takes effect when the selected
  18871. architecture is known to support bonding.
  18872. '-mmemcpy'
  18873. '-mno-memcpy'
  18874. Force (do not force) the use of 'memcpy' for non-trivial block
  18875. moves. The default is '-mno-memcpy', which allows GCC to inline
  18876. most constant-sized copies.
  18877. '-mlong-calls'
  18878. '-mno-long-calls'
  18879. Disable (do not disable) use of the 'jal' instruction. Calling
  18880. functions using 'jal' is more efficient but requires the caller and
  18881. callee to be in the same 256 megabyte segment.
  18882. This option has no effect on abicalls code. The default is
  18883. '-mno-long-calls'.
  18884. '-mmad'
  18885. '-mno-mad'
  18886. Enable (disable) use of the 'mad', 'madu' and 'mul' instructions,
  18887. as provided by the R4650 ISA.
  18888. '-mimadd'
  18889. '-mno-imadd'
  18890. Enable (disable) use of the 'madd' and 'msub' integer instructions.
  18891. The default is '-mimadd' on architectures that support 'madd' and
  18892. 'msub' except for the 74k architecture where it was found to
  18893. generate slower code.
  18894. '-mfused-madd'
  18895. '-mno-fused-madd'
  18896. Enable (disable) use of the floating-point multiply-accumulate
  18897. instructions, when they are available. The default is
  18898. '-mfused-madd'.
  18899. On the R8000 CPU when multiply-accumulate instructions are used,
  18900. the intermediate product is calculated to infinite precision and is
  18901. not subject to the FCSR Flush to Zero bit. This may be undesirable
  18902. in some circumstances. On other processors the result is
  18903. numerically identical to the equivalent computation using separate
  18904. multiply, add, subtract and negate instructions.
  18905. '-nocpp'
  18906. Tell the MIPS assembler to not run its preprocessor over user
  18907. assembler files (with a '.s' suffix) when assembling them.
  18908. '-mfix-24k'
  18909. '-mno-fix-24k'
  18910. Work around the 24K E48 (lost data on stores during refill) errata.
  18911. The workarounds are implemented by the assembler rather than by
  18912. GCC.
  18913. '-mfix-r4000'
  18914. '-mno-fix-r4000'
  18915. Work around certain R4000 CPU errata:
  18916. - A double-word or a variable shift may give an incorrect result
  18917. if executed immediately after starting an integer division.
  18918. - A double-word or a variable shift may give an incorrect result
  18919. if executed while an integer multiplication is in progress.
  18920. - An integer division may give an incorrect result if started in
  18921. a delay slot of a taken branch or a jump.
  18922. '-mfix-r4400'
  18923. '-mno-fix-r4400'
  18924. Work around certain R4400 CPU errata:
  18925. - A double-word or a variable shift may give an incorrect result
  18926. if executed immediately after starting an integer division.
  18927. '-mfix-r10000'
  18928. '-mno-fix-r10000'
  18929. Work around certain R10000 errata:
  18930. - 'll'/'sc' sequences may not behave atomically on revisions
  18931. prior to 3.0. They may deadlock on revisions 2.6 and earlier.
  18932. This option can only be used if the target architecture supports
  18933. branch-likely instructions. '-mfix-r10000' is the default when
  18934. '-march=r10000' is used; '-mno-fix-r10000' is the default
  18935. otherwise.
  18936. '-mfix-r5900'
  18937. '-mno-fix-r5900'
  18938. Do not attempt to schedule the preceding instruction into the delay
  18939. slot of a branch instruction placed at the end of a short loop of
  18940. six instructions or fewer and always schedule a 'nop' instruction
  18941. there instead. The short loop bug under certain conditions causes
  18942. loops to execute only once or twice, due to a hardware bug in the
  18943. R5900 chip. The workaround is implemented by the assembler rather
  18944. than by GCC.
  18945. '-mfix-rm7000'
  18946. '-mno-fix-rm7000'
  18947. Work around the RM7000 'dmult'/'dmultu' errata. The workarounds
  18948. are implemented by the assembler rather than by GCC.
  18949. '-mfix-vr4120'
  18950. '-mno-fix-vr4120'
  18951. Work around certain VR4120 errata:
  18952. - 'dmultu' does not always produce the correct result.
  18953. - 'div' and 'ddiv' do not always produce the correct result if
  18954. one of the operands is negative.
  18955. The workarounds for the division errata rely on special functions
  18956. in 'libgcc.a'. At present, these functions are only provided by
  18957. the 'mips64vr*-elf' configurations.
  18958. Other VR4120 errata require a NOP to be inserted between certain
  18959. pairs of instructions. These errata are handled by the assembler,
  18960. not by GCC itself.
  18961. '-mfix-vr4130'
  18962. Work around the VR4130 'mflo'/'mfhi' errata. The workarounds are
  18963. implemented by the assembler rather than by GCC, although GCC
  18964. avoids using 'mflo' and 'mfhi' if the VR4130 'macc', 'macchi',
  18965. 'dmacc' and 'dmacchi' instructions are available instead.
  18966. '-mfix-sb1'
  18967. '-mno-fix-sb1'
  18968. Work around certain SB-1 CPU core errata. (This flag currently
  18969. works around the SB-1 revision 2 "F1" and "F2" floating-point
  18970. errata.)
  18971. '-mr10k-cache-barrier=SETTING'
  18972. Specify whether GCC should insert cache barriers to avoid the side
  18973. effects of speculation on R10K processors.
  18974. In common with many processors, the R10K tries to predict the
  18975. outcome of a conditional branch and speculatively executes
  18976. instructions from the "taken" branch. It later aborts these
  18977. instructions if the predicted outcome is wrong. However, on the
  18978. R10K, even aborted instructions can have side effects.
  18979. This problem only affects kernel stores and, depending on the
  18980. system, kernel loads. As an example, a speculatively-executed
  18981. store may load the target memory into cache and mark the cache line
  18982. as dirty, even if the store itself is later aborted. If a DMA
  18983. operation writes to the same area of memory before the "dirty" line
  18984. is flushed, the cached data overwrites the DMA-ed data. See the
  18985. R10K processor manual for a full description, including other
  18986. potential problems.
  18987. One workaround is to insert cache barrier instructions before every
  18988. memory access that might be speculatively executed and that might
  18989. have side effects even if aborted. '-mr10k-cache-barrier=SETTING'
  18990. controls GCC's implementation of this workaround. It assumes that
  18991. aborted accesses to any byte in the following regions does not have
  18992. side effects:
  18993. 1. the memory occupied by the current function's stack frame;
  18994. 2. the memory occupied by an incoming stack argument;
  18995. 3. the memory occupied by an object with a link-time-constant
  18996. address.
  18997. It is the kernel's responsibility to ensure that speculative
  18998. accesses to these regions are indeed safe.
  18999. If the input program contains a function declaration such as:
  19000. void foo (void);
  19001. then the implementation of 'foo' must allow 'j foo' and 'jal foo'
  19002. to be executed speculatively. GCC honors this restriction for
  19003. functions it compiles itself. It expects non-GCC functions (such
  19004. as hand-written assembly code) to do the same.
  19005. The option has three forms:
  19006. '-mr10k-cache-barrier=load-store'
  19007. Insert a cache barrier before a load or store that might be
  19008. speculatively executed and that might have side effects even
  19009. if aborted.
  19010. '-mr10k-cache-barrier=store'
  19011. Insert a cache barrier before a store that might be
  19012. speculatively executed and that might have side effects even
  19013. if aborted.
  19014. '-mr10k-cache-barrier=none'
  19015. Disable the insertion of cache barriers. This is the default
  19016. setting.
  19017. '-mflush-func=FUNC'
  19018. '-mno-flush-func'
  19019. Specifies the function to call to flush the I and D caches, or to
  19020. not call any such function. If called, the function must take the
  19021. same arguments as the common '_flush_func', that is, the address of
  19022. the memory range for which the cache is being flushed, the size of
  19023. the memory range, and the number 3 (to flush both caches). The
  19024. default depends on the target GCC was configured for, but commonly
  19025. is either '_flush_func' or '__cpu_flush'.
  19026. 'mbranch-cost=NUM'
  19027. Set the cost of branches to roughly NUM "simple" instructions.
  19028. This cost is only a heuristic and is not guaranteed to produce
  19029. consistent results across releases. A zero cost redundantly
  19030. selects the default, which is based on the '-mtune' setting.
  19031. '-mbranch-likely'
  19032. '-mno-branch-likely'
  19033. Enable or disable use of Branch Likely instructions, regardless of
  19034. the default for the selected architecture. By default, Branch
  19035. Likely instructions may be generated if they are supported by the
  19036. selected architecture. An exception is for the MIPS32 and MIPS64
  19037. architectures and processors that implement those architectures;
  19038. for those, Branch Likely instructions are not be generated by
  19039. default because the MIPS32 and MIPS64 architectures specifically
  19040. deprecate their use.
  19041. '-mcompact-branches=never'
  19042. '-mcompact-branches=optimal'
  19043. '-mcompact-branches=always'
  19044. These options control which form of branches will be generated.
  19045. The default is '-mcompact-branches=optimal'.
  19046. The '-mcompact-branches=never' option ensures that compact branch
  19047. instructions will never be generated.
  19048. The '-mcompact-branches=always' option ensures that a compact
  19049. branch instruction will be generated if available. If a compact
  19050. branch instruction is not available, a delay slot form of the
  19051. branch will be used instead.
  19052. This option is supported from MIPS Release 6 onwards.
  19053. The '-mcompact-branches=optimal' option will cause a delay slot
  19054. branch to be used if one is available in the current ISA and the
  19055. delay slot is successfully filled. If the delay slot is not
  19056. filled, a compact branch will be chosen if one is available.
  19057. '-mfp-exceptions'
  19058. '-mno-fp-exceptions'
  19059. Specifies whether FP exceptions are enabled. This affects how FP
  19060. instructions are scheduled for some processors. The default is
  19061. that FP exceptions are enabled.
  19062. For instance, on the SB-1, if FP exceptions are disabled, and we
  19063. are emitting 64-bit code, then we can use both FP pipes.
  19064. Otherwise, we can only use one FP pipe.
  19065. '-mvr4130-align'
  19066. '-mno-vr4130-align'
  19067. The VR4130 pipeline is two-way superscalar, but can only issue two
  19068. instructions together if the first one is 8-byte aligned. When
  19069. this option is enabled, GCC aligns pairs of instructions that it
  19070. thinks should execute in parallel.
  19071. This option only has an effect when optimizing for the VR4130. It
  19072. normally makes code faster, but at the expense of making it bigger.
  19073. It is enabled by default at optimization level '-O3'.
  19074. '-msynci'
  19075. '-mno-synci'
  19076. Enable (disable) generation of 'synci' instructions on
  19077. architectures that support it. The 'synci' instructions (if
  19078. enabled) are generated when '__builtin___clear_cache' is compiled.
  19079. This option defaults to '-mno-synci', but the default can be
  19080. overridden by configuring GCC with '--with-synci'.
  19081. When compiling code for single processor systems, it is generally
  19082. safe to use 'synci'. However, on many multi-core (SMP) systems, it
  19083. does not invalidate the instruction caches on all cores and may
  19084. lead to undefined behavior.
  19085. '-mrelax-pic-calls'
  19086. '-mno-relax-pic-calls'
  19087. Try to turn PIC calls that are normally dispatched via register
  19088. '$25' into direct calls. This is only possible if the linker can
  19089. resolve the destination at link time and if the destination is
  19090. within range for a direct call.
  19091. '-mrelax-pic-calls' is the default if GCC was configured to use an
  19092. assembler and a linker that support the '.reloc' assembly directive
  19093. and '-mexplicit-relocs' is in effect. With '-mno-explicit-relocs',
  19094. this optimization can be performed by the assembler and the linker
  19095. alone without help from the compiler.
  19096. '-mmcount-ra-address'
  19097. '-mno-mcount-ra-address'
  19098. Emit (do not emit) code that allows '_mcount' to modify the calling
  19099. function's return address. When enabled, this option extends the
  19100. usual '_mcount' interface with a new RA-ADDRESS parameter, which
  19101. has type 'intptr_t *' and is passed in register '$12'. '_mcount'
  19102. can then modify the return address by doing both of the following:
  19103. * Returning the new address in register '$31'.
  19104. * Storing the new address in '*RA-ADDRESS', if RA-ADDRESS is
  19105. nonnull.
  19106. The default is '-mno-mcount-ra-address'.
  19107. '-mframe-header-opt'
  19108. '-mno-frame-header-opt'
  19109. Enable (disable) frame header optimization in the o32 ABI. When
  19110. using the o32 ABI, calling functions will allocate 16 bytes on the
  19111. stack for the called function to write out register arguments.
  19112. When enabled, this optimization will suppress the allocation of the
  19113. frame header if it can be determined that it is unused.
  19114. This optimization is off by default at all optimization levels.
  19115. '-mlxc1-sxc1'
  19116. '-mno-lxc1-sxc1'
  19117. When applicable, enable (disable) the generation of 'lwxc1',
  19118. 'swxc1', 'ldxc1', 'sdxc1' instructions. Enabled by default.
  19119. '-mmadd4'
  19120. '-mno-madd4'
  19121. When applicable, enable (disable) the generation of 4-operand
  19122. 'madd.s', 'madd.d' and related instructions. Enabled by default.
  19123. 
  19124. File: gcc.info, Node: MMIX Options, Next: MN10300 Options, Prev: MIPS Options, Up: Submodel Options
  19125. 3.19.30 MMIX Options
  19126. --------------------
  19127. These options are defined for the MMIX:
  19128. '-mlibfuncs'
  19129. '-mno-libfuncs'
  19130. Specify that intrinsic library functions are being compiled,
  19131. passing all values in registers, no matter the size.
  19132. '-mepsilon'
  19133. '-mno-epsilon'
  19134. Generate floating-point comparison instructions that compare with
  19135. respect to the 'rE' epsilon register.
  19136. '-mabi=mmixware'
  19137. '-mabi=gnu'
  19138. Generate code that passes function parameters and return values
  19139. that (in the called function) are seen as registers '$0' and up, as
  19140. opposed to the GNU ABI which uses global registers '$231' and up.
  19141. '-mzero-extend'
  19142. '-mno-zero-extend'
  19143. When reading data from memory in sizes shorter than 64 bits, use
  19144. (do not use) zero-extending load instructions by default, rather
  19145. than sign-extending ones.
  19146. '-mknuthdiv'
  19147. '-mno-knuthdiv'
  19148. Make the result of a division yielding a remainder have the same
  19149. sign as the divisor. With the default, '-mno-knuthdiv', the sign
  19150. of the remainder follows the sign of the dividend. Both methods
  19151. are arithmetically valid, the latter being almost exclusively used.
  19152. '-mtoplevel-symbols'
  19153. '-mno-toplevel-symbols'
  19154. Prepend (do not prepend) a ':' to all global symbols, so the
  19155. assembly code can be used with the 'PREFIX' assembly directive.
  19156. '-melf'
  19157. Generate an executable in the ELF format, rather than the default
  19158. 'mmo' format used by the 'mmix' simulator.
  19159. '-mbranch-predict'
  19160. '-mno-branch-predict'
  19161. Use (do not use) the probable-branch instructions, when static
  19162. branch prediction indicates a probable branch.
  19163. '-mbase-addresses'
  19164. '-mno-base-addresses'
  19165. Generate (do not generate) code that uses _base addresses_. Using
  19166. a base address automatically generates a request (handled by the
  19167. assembler and the linker) for a constant to be set up in a global
  19168. register. The register is used for one or more base address
  19169. requests within the range 0 to 255 from the value held in the
  19170. register. The generally leads to short and fast code, but the
  19171. number of different data items that can be addressed is limited.
  19172. This means that a program that uses lots of static data may require
  19173. '-mno-base-addresses'.
  19174. '-msingle-exit'
  19175. '-mno-single-exit'
  19176. Force (do not force) generated code to have a single exit point in
  19177. each function.
  19178. 
  19179. File: gcc.info, Node: MN10300 Options, Next: Moxie Options, Prev: MMIX Options, Up: Submodel Options
  19180. 3.19.31 MN10300 Options
  19181. -----------------------
  19182. These '-m' options are defined for Matsushita MN10300 architectures:
  19183. '-mmult-bug'
  19184. Generate code to avoid bugs in the multiply instructions for the
  19185. MN10300 processors. This is the default.
  19186. '-mno-mult-bug'
  19187. Do not generate code to avoid bugs in the multiply instructions for
  19188. the MN10300 processors.
  19189. '-mam33'
  19190. Generate code using features specific to the AM33 processor.
  19191. '-mno-am33'
  19192. Do not generate code using features specific to the AM33 processor.
  19193. This is the default.
  19194. '-mam33-2'
  19195. Generate code using features specific to the AM33/2.0 processor.
  19196. '-mam34'
  19197. Generate code using features specific to the AM34 processor.
  19198. '-mtune=CPU-TYPE'
  19199. Use the timing characteristics of the indicated CPU type when
  19200. scheduling instructions. This does not change the targeted
  19201. processor type. The CPU type must be one of 'mn10300', 'am33',
  19202. 'am33-2' or 'am34'.
  19203. '-mreturn-pointer-on-d0'
  19204. When generating a function that returns a pointer, return the
  19205. pointer in both 'a0' and 'd0'. Otherwise, the pointer is returned
  19206. only in 'a0', and attempts to call such functions without a
  19207. prototype result in errors. Note that this option is on by
  19208. default; use '-mno-return-pointer-on-d0' to disable it.
  19209. '-mno-crt0'
  19210. Do not link in the C run-time initialization object file.
  19211. '-mrelax'
  19212. Indicate to the linker that it should perform a relaxation
  19213. optimization pass to shorten branches, calls and absolute memory
  19214. addresses. This option only has an effect when used on the command
  19215. line for the final link step.
  19216. This option makes symbolic debugging impossible.
  19217. '-mliw'
  19218. Allow the compiler to generate _Long Instruction Word_ instructions
  19219. if the target is the 'AM33' or later. This is the default. This
  19220. option defines the preprocessor macro '__LIW__'.
  19221. '-mno-liw'
  19222. Do not allow the compiler to generate _Long Instruction Word_
  19223. instructions. This option defines the preprocessor macro
  19224. '__NO_LIW__'.
  19225. '-msetlb'
  19226. Allow the compiler to generate the _SETLB_ and _Lcc_ instructions
  19227. if the target is the 'AM33' or later. This is the default. This
  19228. option defines the preprocessor macro '__SETLB__'.
  19229. '-mno-setlb'
  19230. Do not allow the compiler to generate _SETLB_ or _Lcc_
  19231. instructions. This option defines the preprocessor macro
  19232. '__NO_SETLB__'.
  19233. 
  19234. File: gcc.info, Node: Moxie Options, Next: MSP430 Options, Prev: MN10300 Options, Up: Submodel Options
  19235. 3.19.32 Moxie Options
  19236. ---------------------
  19237. '-meb'
  19238. Generate big-endian code. This is the default for 'moxie-*-*'
  19239. configurations.
  19240. '-mel'
  19241. Generate little-endian code.
  19242. '-mmul.x'
  19243. Generate mul.x and umul.x instructions. This is the default for
  19244. 'moxiebox-*-*' configurations.
  19245. '-mno-crt0'
  19246. Do not link in the C run-time initialization object file.
  19247. 
  19248. File: gcc.info, Node: MSP430 Options, Next: NDS32 Options, Prev: Moxie Options, Up: Submodel Options
  19249. 3.19.33 MSP430 Options
  19250. ----------------------
  19251. These options are defined for the MSP430:
  19252. '-masm-hex'
  19253. Force assembly output to always use hex constants. Normally such
  19254. constants are signed decimals, but this option is available for
  19255. testsuite and/or aesthetic purposes.
  19256. '-mmcu='
  19257. Select the MCU to target. This is used to create a C preprocessor
  19258. symbol based upon the MCU name, converted to upper case and pre-
  19259. and post-fixed with '__'. This in turn is used by the 'msp430.h'
  19260. header file to select an MCU-specific supplementary header file.
  19261. The option also sets the ISA to use. If the MCU name is one that
  19262. is known to only support the 430 ISA then that is selected,
  19263. otherwise the 430X ISA is selected. A generic MCU name of 'msp430'
  19264. can also be used to select the 430 ISA. Similarly the generic
  19265. 'msp430x' MCU name selects the 430X ISA.
  19266. In addition an MCU-specific linker script is added to the linker
  19267. command line. The script's name is the name of the MCU with '.ld'
  19268. appended. Thus specifying '-mmcu=xxx' on the 'gcc' command line
  19269. defines the C preprocessor symbol '__XXX__' and cause the linker to
  19270. search for a script called 'xxx.ld'.
  19271. The ISA and hardware multiply supported for the different MCUs is
  19272. hard-coded into GCC. However, an external 'devices.csv' file can be
  19273. used to extend device support beyond those that have been
  19274. hard-coded.
  19275. GCC searches for the 'devices.csv' file using the following methods
  19276. in the given precedence order, where the first method takes
  19277. precendence over the second which takes precedence over the third.
  19278. Include path specified with '-I' and '-L'
  19279. 'devices.csv' will be searched for in each of the directories
  19280. specified by include paths and linker library search paths.
  19281. Path specified by the environment variable 'MSP430_GCC_INCLUDE_DIR'
  19282. Define the value of the global environment variable
  19283. 'MSP430_GCC_INCLUDE_DIR' to the full path to the directory
  19284. containing devices.csv, and GCC will search this directory for
  19285. devices.csv. If devices.csv is found, this directory will
  19286. also be registered as an include path, and linker library
  19287. path. Header files and linker scripts in this directory can
  19288. therefore be used without manually specifying '-I' and '-L' on
  19289. the command line.
  19290. The 'msp430-elf{,bare}/include/devices' directory
  19291. Finally, GCC will examine 'msp430-elf{,bare}/include/devices'
  19292. from the toolchain root directory. This directory does not
  19293. exist in a default installation, but if the user has created
  19294. it and copied 'devices.csv' there, then the MCU data will be
  19295. read. As above, this directory will also be registered as an
  19296. include path, and linker library path.
  19297. If none of the above search methods find 'devices.csv', then the
  19298. hard-coded MCU data is used.
  19299. '-mwarn-mcu'
  19300. '-mno-warn-mcu'
  19301. This option enables or disables warnings about conflicts between
  19302. the MCU name specified by the '-mmcu' option and the ISA set by the
  19303. '-mcpu' option and/or the hardware multiply support set by the
  19304. '-mhwmult' option. It also toggles warnings about unrecognized MCU
  19305. names. This option is on by default.
  19306. '-mcpu='
  19307. Specifies the ISA to use. Accepted values are 'msp430', 'msp430x'
  19308. and 'msp430xv2'. This option is deprecated. The '-mmcu=' option
  19309. should be used to select the ISA.
  19310. '-msim'
  19311. Link to the simulator runtime libraries and linker script.
  19312. Overrides any scripts that would be selected by the '-mmcu='
  19313. option.
  19314. '-mlarge'
  19315. Use large-model addressing (20-bit pointers, 20-bit 'size_t').
  19316. '-msmall'
  19317. Use small-model addressing (16-bit pointers, 16-bit 'size_t').
  19318. '-mrelax'
  19319. This option is passed to the assembler and linker, and allows the
  19320. linker to perform certain optimizations that cannot be done until
  19321. the final link.
  19322. 'mhwmult='
  19323. Describes the type of hardware multiply supported by the target.
  19324. Accepted values are 'none' for no hardware multiply, '16bit' for
  19325. the original 16-bit-only multiply supported by early MCUs. '32bit'
  19326. for the 16/32-bit multiply supported by later MCUs and 'f5series'
  19327. for the 16/32-bit multiply supported by F5-series MCUs. A value of
  19328. 'auto' can also be given. This tells GCC to deduce the hardware
  19329. multiply support based upon the MCU name provided by the '-mmcu'
  19330. option. If no '-mmcu' option is specified or if the MCU name is
  19331. not recognized then no hardware multiply support is assumed.
  19332. 'auto' is the default setting.
  19333. Hardware multiplies are normally performed by calling a library
  19334. routine. This saves space in the generated code. When compiling
  19335. at '-O3' or higher however the hardware multiplier is invoked
  19336. inline. This makes for bigger, but faster code.
  19337. The hardware multiply routines disable interrupts whilst running
  19338. and restore the previous interrupt state when they finish. This
  19339. makes them safe to use inside interrupt handlers as well as in
  19340. normal code.
  19341. '-minrt'
  19342. Enable the use of a minimum runtime environment - no static
  19343. initializers or constructors. This is intended for
  19344. memory-constrained devices. The compiler includes special symbols
  19345. in some objects that tell the linker and runtime which code
  19346. fragments are required.
  19347. '-mtiny-printf'
  19348. Enable reduced code size 'printf' and 'puts' library functions.
  19349. The 'tiny' implementations of these functions are not reentrant, so
  19350. must be used with caution in multi-threaded applications.
  19351. Support for streams has been removed and the string to be printed
  19352. will always be sent to stdout via the 'write' syscall. The string
  19353. is not buffered before it is sent to write.
  19354. This option requires Newlib Nano IO, so GCC must be configured with
  19355. '--enable-newlib-nano-formatted-io'.
  19356. '-mmax-inline-shift='
  19357. This option takes an integer between 0 and 64 inclusive, and sets
  19358. the maximum number of inline shift instructions which should be
  19359. emitted to perform a shift operation by a constant amount. When
  19360. this value needs to be exceeded, an mspabi helper function is used
  19361. instead. The default value is 4.
  19362. This only affects cases where a shift by multiple positions cannot
  19363. be completed with a single instruction (e.g. all shifts >1 on the
  19364. 430 ISA).
  19365. Shifts of a 32-bit value are at least twice as costly, so the value
  19366. passed for this option is divided by 2 and the resulting value used
  19367. instead.
  19368. '-mcode-region='
  19369. '-mdata-region='
  19370. These options tell the compiler where to place functions and data
  19371. that do not have one of the 'lower', 'upper', 'either' or 'section'
  19372. attributes. Possible values are 'lower', 'upper', 'either' or
  19373. 'any'. The first three behave like the corresponding attribute.
  19374. The fourth possible value - 'any' - is the default. It leaves
  19375. placement entirely up to the linker script and how it assigns the
  19376. standard sections ('.text', '.data', etc) to the memory regions.
  19377. '-msilicon-errata='
  19378. This option passes on a request to assembler to enable the fixes
  19379. for the named silicon errata.
  19380. '-msilicon-errata-warn='
  19381. This option passes on a request to the assembler to enable warning
  19382. messages when a silicon errata might need to be applied.
  19383. '-mwarn-devices-csv'
  19384. '-mno-warn-devices-csv'
  19385. Warn if 'devices.csv' is not found or there are problem parsing it
  19386. (default: on).
  19387. 
  19388. File: gcc.info, Node: NDS32 Options, Next: Nios II Options, Prev: MSP430 Options, Up: Submodel Options
  19389. 3.19.34 NDS32 Options
  19390. ---------------------
  19391. These options are defined for NDS32 implementations:
  19392. '-mbig-endian'
  19393. Generate code in big-endian mode.
  19394. '-mlittle-endian'
  19395. Generate code in little-endian mode.
  19396. '-mreduced-regs'
  19397. Use reduced-set registers for register allocation.
  19398. '-mfull-regs'
  19399. Use full-set registers for register allocation.
  19400. '-mcmov'
  19401. Generate conditional move instructions.
  19402. '-mno-cmov'
  19403. Do not generate conditional move instructions.
  19404. '-mext-perf'
  19405. Generate performance extension instructions.
  19406. '-mno-ext-perf'
  19407. Do not generate performance extension instructions.
  19408. '-mext-perf2'
  19409. Generate performance extension 2 instructions.
  19410. '-mno-ext-perf2'
  19411. Do not generate performance extension 2 instructions.
  19412. '-mext-string'
  19413. Generate string extension instructions.
  19414. '-mno-ext-string'
  19415. Do not generate string extension instructions.
  19416. '-mv3push'
  19417. Generate v3 push25/pop25 instructions.
  19418. '-mno-v3push'
  19419. Do not generate v3 push25/pop25 instructions.
  19420. '-m16-bit'
  19421. Generate 16-bit instructions.
  19422. '-mno-16-bit'
  19423. Do not generate 16-bit instructions.
  19424. '-misr-vector-size=NUM'
  19425. Specify the size of each interrupt vector, which must be 4 or 16.
  19426. '-mcache-block-size=NUM'
  19427. Specify the size of each cache block, which must be a power of 2
  19428. between 4 and 512.
  19429. '-march=ARCH'
  19430. Specify the name of the target architecture.
  19431. '-mcmodel=CODE-MODEL'
  19432. Set the code model to one of
  19433. 'small'
  19434. All the data and read-only data segments must be within 512KB
  19435. addressing space. The text segment must be within 16MB
  19436. addressing space.
  19437. 'medium'
  19438. The data segment must be within 512KB while the read-only data
  19439. segment can be within 4GB addressing space. The text segment
  19440. should be still within 16MB addressing space.
  19441. 'large'
  19442. All the text and data segments can be within 4GB addressing
  19443. space.
  19444. '-mctor-dtor'
  19445. Enable constructor/destructor feature.
  19446. '-mrelax'
  19447. Guide linker to relax instructions.
  19448. 
  19449. File: gcc.info, Node: Nios II Options, Next: Nvidia PTX Options, Prev: NDS32 Options, Up: Submodel Options
  19450. 3.19.35 Nios II Options
  19451. -----------------------
  19452. These are the options defined for the Altera Nios II processor.
  19453. '-G NUM'
  19454. Put global and static objects less than or equal to NUM bytes into
  19455. the small data or BSS sections instead of the normal data or BSS
  19456. sections. The default value of NUM is 8.
  19457. '-mgpopt=OPTION'
  19458. '-mgpopt'
  19459. '-mno-gpopt'
  19460. Generate (do not generate) GP-relative accesses. The following
  19461. OPTION names are recognized:
  19462. 'none'
  19463. Do not generate GP-relative accesses.
  19464. 'local'
  19465. Generate GP-relative accesses for small data objects that are
  19466. not external, weak, or uninitialized common symbols. Also use
  19467. GP-relative addressing for objects that have been explicitly
  19468. placed in a small data section via a 'section' attribute.
  19469. 'global'
  19470. As for 'local', but also generate GP-relative accesses for
  19471. small data objects that are external, weak, or common. If you
  19472. use this option, you must ensure that all parts of your
  19473. program (including libraries) are compiled with the same '-G'
  19474. setting.
  19475. 'data'
  19476. Generate GP-relative accesses for all data objects in the
  19477. program. If you use this option, the entire data and BSS
  19478. segments of your program must fit in 64K of memory and you
  19479. must use an appropriate linker script to allocate them within
  19480. the addressable range of the global pointer.
  19481. 'all'
  19482. Generate GP-relative addresses for function pointers as well
  19483. as data pointers. If you use this option, the entire text,
  19484. data, and BSS segments of your program must fit in 64K of
  19485. memory and you must use an appropriate linker script to
  19486. allocate them within the addressable range of the global
  19487. pointer.
  19488. '-mgpopt' is equivalent to '-mgpopt=local', and '-mno-gpopt' is
  19489. equivalent to '-mgpopt=none'.
  19490. The default is '-mgpopt' except when '-fpic' or '-fPIC' is
  19491. specified to generate position-independent code. Note that the
  19492. Nios II ABI does not permit GP-relative accesses from shared
  19493. libraries.
  19494. You may need to specify '-mno-gpopt' explicitly when building
  19495. programs that include large amounts of small data, including large
  19496. GOT data sections. In this case, the 16-bit offset for GP-relative
  19497. addressing may not be large enough to allow access to the entire
  19498. small data section.
  19499. '-mgprel-sec=REGEXP'
  19500. This option specifies additional section names that can be accessed
  19501. via GP-relative addressing. It is most useful in conjunction with
  19502. 'section' attributes on variable declarations (*note Common
  19503. Variable Attributes::) and a custom linker script. The REGEXP is a
  19504. POSIX Extended Regular Expression.
  19505. This option does not affect the behavior of the '-G' option, and
  19506. the specified sections are in addition to the standard '.sdata' and
  19507. '.sbss' small-data sections that are recognized by '-mgpopt'.
  19508. '-mr0rel-sec=REGEXP'
  19509. This option specifies names of sections that can be accessed via a
  19510. 16-bit offset from 'r0'; that is, in the low 32K or high 32K of the
  19511. 32-bit address space. It is most useful in conjunction with
  19512. 'section' attributes on variable declarations (*note Common
  19513. Variable Attributes::) and a custom linker script. The REGEXP is a
  19514. POSIX Extended Regular Expression.
  19515. In contrast to the use of GP-relative addressing for small data,
  19516. zero-based addressing is never generated by default and there are
  19517. no conventional section names used in standard linker scripts for
  19518. sections in the low or high areas of memory.
  19519. '-mel'
  19520. '-meb'
  19521. Generate little-endian (default) or big-endian (experimental) code,
  19522. respectively.
  19523. '-march=ARCH'
  19524. This specifies the name of the target Nios II architecture. GCC
  19525. uses this name to determine what kind of instructions it can emit
  19526. when generating assembly code. Permissible names are: 'r1', 'r2'.
  19527. The preprocessor macro '__nios2_arch__' is available to programs,
  19528. with value 1 or 2, indicating the targeted ISA level.
  19529. '-mbypass-cache'
  19530. '-mno-bypass-cache'
  19531. Force all load and store instructions to always bypass cache by
  19532. using I/O variants of the instructions. The default is not to
  19533. bypass the cache.
  19534. '-mno-cache-volatile'
  19535. '-mcache-volatile'
  19536. Volatile memory access bypass the cache using the I/O variants of
  19537. the load and store instructions. The default is not to bypass the
  19538. cache.
  19539. '-mno-fast-sw-div'
  19540. '-mfast-sw-div'
  19541. Do not use table-based fast divide for small numbers. The default
  19542. is to use the fast divide at '-O3' and above.
  19543. '-mno-hw-mul'
  19544. '-mhw-mul'
  19545. '-mno-hw-mulx'
  19546. '-mhw-mulx'
  19547. '-mno-hw-div'
  19548. '-mhw-div'
  19549. Enable or disable emitting 'mul', 'mulx' and 'div' family of
  19550. instructions by the compiler. The default is to emit 'mul' and not
  19551. emit 'div' and 'mulx'.
  19552. '-mbmx'
  19553. '-mno-bmx'
  19554. '-mcdx'
  19555. '-mno-cdx'
  19556. Enable or disable generation of Nios II R2 BMX (bit manipulation)
  19557. and CDX (code density) instructions. Enabling these instructions
  19558. also requires '-march=r2'. Since these instructions are optional
  19559. extensions to the R2 architecture, the default is not to emit them.
  19560. '-mcustom-INSN=N'
  19561. '-mno-custom-INSN'
  19562. Each '-mcustom-INSN=N' option enables use of a custom instruction
  19563. with encoding N when generating code that uses INSN. For example,
  19564. '-mcustom-fadds=253' generates custom instruction 253 for
  19565. single-precision floating-point add operations instead of the
  19566. default behavior of using a library call.
  19567. The following values of INSN are supported. Except as otherwise
  19568. noted, floating-point operations are expected to be implemented
  19569. with normal IEEE 754 semantics and correspond directly to the C
  19570. operators or the equivalent GCC built-in functions (*note Other
  19571. Builtins::).
  19572. Single-precision floating point:
  19573. 'fadds', 'fsubs', 'fdivs', 'fmuls'
  19574. Binary arithmetic operations.
  19575. 'fnegs'
  19576. Unary negation.
  19577. 'fabss'
  19578. Unary absolute value.
  19579. 'fcmpeqs', 'fcmpges', 'fcmpgts', 'fcmples', 'fcmplts', 'fcmpnes'
  19580. Comparison operations.
  19581. 'fmins', 'fmaxs'
  19582. Floating-point minimum and maximum. These instructions are
  19583. only generated if '-ffinite-math-only' is specified.
  19584. 'fsqrts'
  19585. Unary square root operation.
  19586. 'fcoss', 'fsins', 'ftans', 'fatans', 'fexps', 'flogs'
  19587. Floating-point trigonometric and exponential functions. These
  19588. instructions are only generated if
  19589. '-funsafe-math-optimizations' is also specified.
  19590. Double-precision floating point:
  19591. 'faddd', 'fsubd', 'fdivd', 'fmuld'
  19592. Binary arithmetic operations.
  19593. 'fnegd'
  19594. Unary negation.
  19595. 'fabsd'
  19596. Unary absolute value.
  19597. 'fcmpeqd', 'fcmpged', 'fcmpgtd', 'fcmpled', 'fcmpltd', 'fcmpned'
  19598. Comparison operations.
  19599. 'fmind', 'fmaxd'
  19600. Double-precision minimum and maximum. These instructions are
  19601. only generated if '-ffinite-math-only' is specified.
  19602. 'fsqrtd'
  19603. Unary square root operation.
  19604. 'fcosd', 'fsind', 'ftand', 'fatand', 'fexpd', 'flogd'
  19605. Double-precision trigonometric and exponential functions.
  19606. These instructions are only generated if
  19607. '-funsafe-math-optimizations' is also specified.
  19608. Conversions:
  19609. 'fextsd'
  19610. Conversion from single precision to double precision.
  19611. 'ftruncds'
  19612. Conversion from double precision to single precision.
  19613. 'fixsi', 'fixsu', 'fixdi', 'fixdu'
  19614. Conversion from floating point to signed or unsigned integer
  19615. types, with truncation towards zero.
  19616. 'round'
  19617. Conversion from single-precision floating point to signed
  19618. integer, rounding to the nearest integer and ties away from
  19619. zero. This corresponds to the '__builtin_lroundf' function
  19620. when '-fno-math-errno' is used.
  19621. 'floatis', 'floatus', 'floatid', 'floatud'
  19622. Conversion from signed or unsigned integer types to
  19623. floating-point types.
  19624. In addition, all of the following transfer instructions for
  19625. internal registers X and Y must be provided to use any of the
  19626. double-precision floating-point instructions. Custom instructions
  19627. taking two double-precision source operands expect the first
  19628. operand in the 64-bit register X. The other operand (or only
  19629. operand of a unary operation) is given to the custom arithmetic
  19630. instruction with the least significant half in source register SRC1
  19631. and the most significant half in SRC2. A custom instruction that
  19632. returns a double-precision result returns the most significant 32
  19633. bits in the destination register and the other half in 32-bit
  19634. register Y. GCC automatically generates the necessary code
  19635. sequences to write register X and/or read register Y when
  19636. double-precision floating-point instructions are used.
  19637. 'fwrx'
  19638. Write SRC1 into the least significant half of X and SRC2 into
  19639. the most significant half of X.
  19640. 'fwry'
  19641. Write SRC1 into Y.
  19642. 'frdxhi', 'frdxlo'
  19643. Read the most or least (respectively) significant half of X
  19644. and store it in DEST.
  19645. 'frdy'
  19646. Read the value of Y and store it into DEST.
  19647. Note that you can gain more local control over generation of Nios
  19648. II custom instructions by using the 'target("custom-INSN=N")' and
  19649. 'target("no-custom-INSN")' function attributes (*note Function
  19650. Attributes::) or pragmas (*note Function Specific Option
  19651. Pragmas::).
  19652. '-mcustom-fpu-cfg=NAME'
  19653. This option enables a predefined, named set of custom instruction
  19654. encodings (see '-mcustom-INSN' above). Currently, the following
  19655. sets are defined:
  19656. '-mcustom-fpu-cfg=60-1' is equivalent to:
  19657. -mcustom-fmuls=252
  19658. -mcustom-fadds=253
  19659. -mcustom-fsubs=254
  19660. -fsingle-precision-constant
  19661. '-mcustom-fpu-cfg=60-2' is equivalent to:
  19662. -mcustom-fmuls=252
  19663. -mcustom-fadds=253
  19664. -mcustom-fsubs=254
  19665. -mcustom-fdivs=255
  19666. -fsingle-precision-constant
  19667. '-mcustom-fpu-cfg=72-3' is equivalent to:
  19668. -mcustom-floatus=243
  19669. -mcustom-fixsi=244
  19670. -mcustom-floatis=245
  19671. -mcustom-fcmpgts=246
  19672. -mcustom-fcmples=249
  19673. -mcustom-fcmpeqs=250
  19674. -mcustom-fcmpnes=251
  19675. -mcustom-fmuls=252
  19676. -mcustom-fadds=253
  19677. -mcustom-fsubs=254
  19678. -mcustom-fdivs=255
  19679. -fsingle-precision-constant
  19680. '-mcustom-fpu-cfg=fph2' is equivalent to:
  19681. -mcustom-fabss=224
  19682. -mcustom-fnegs=225
  19683. -mcustom-fcmpnes=226
  19684. -mcustom-fcmpeqs=227
  19685. -mcustom-fcmpges=228
  19686. -mcustom-fcmpgts=229
  19687. -mcustom-fcmples=230
  19688. -mcustom-fcmplts=231
  19689. -mcustom-fmaxs=232
  19690. -mcustom-fmins=233
  19691. -mcustom-round=248
  19692. -mcustom-fixsi=249
  19693. -mcustom-floatis=250
  19694. -mcustom-fsqrts=251
  19695. -mcustom-fmuls=252
  19696. -mcustom-fadds=253
  19697. -mcustom-fsubs=254
  19698. -mcustom-fdivs=255
  19699. Custom instruction assignments given by individual '-mcustom-INSN='
  19700. options override those given by '-mcustom-fpu-cfg=', regardless of
  19701. the order of the options on the command line.
  19702. Note that you can gain more local control over selection of a FPU
  19703. configuration by using the 'target("custom-fpu-cfg=NAME")' function
  19704. attribute (*note Function Attributes::) or pragma (*note Function
  19705. Specific Option Pragmas::).
  19706. The name FPH2 is an abbreviation for _Nios II Floating Point
  19707. Hardware 2 Component_. Please note that the custom instructions
  19708. enabled by '-mcustom-fmins=233' and '-mcustom-fmaxs=234' are only
  19709. generated if '-ffinite-math-only' is specified. The custom
  19710. instruction enabled by '-mcustom-round=248' is only generated if
  19711. '-fno-math-errno' is specified. In contrast to the other
  19712. configurations, '-fsingle-precision-constant' is not set.
  19713. These additional '-m' options are available for the Altera Nios II ELF
  19714. (bare-metal) target:
  19715. '-mhal'
  19716. Link with HAL BSP. This suppresses linking with the GCC-provided C
  19717. runtime startup and termination code, and is typically used in
  19718. conjunction with '-msys-crt0=' to specify the location of the
  19719. alternate startup code provided by the HAL BSP.
  19720. '-msmallc'
  19721. Link with a limited version of the C library, '-lsmallc', rather
  19722. than Newlib.
  19723. '-msys-crt0=STARTFILE'
  19724. STARTFILE is the file name of the startfile (crt0) to use when
  19725. linking. This option is only useful in conjunction with '-mhal'.
  19726. '-msys-lib=SYSTEMLIB'
  19727. SYSTEMLIB is the library name of the library that provides
  19728. low-level system calls required by the C library, e.g. 'read' and
  19729. 'write'. This option is typically used to link with a library
  19730. provided by a HAL BSP.
  19731. 
  19732. File: gcc.info, Node: Nvidia PTX Options, Next: OpenRISC Options, Prev: Nios II Options, Up: Submodel Options
  19733. 3.19.36 Nvidia PTX Options
  19734. --------------------------
  19735. These options are defined for Nvidia PTX:
  19736. '-m64'
  19737. Ignored, but preserved for backward compatibility. Only 64-bit ABI
  19738. is supported.
  19739. '-misa=ISA-STRING'
  19740. Generate code for given the specified PTX ISA (e.g. 'sm_35'). ISA
  19741. strings must be lower-case. Valid ISA strings include 'sm_30' and
  19742. 'sm_35'. The default ISA is sm_35.
  19743. '-mmainkernel'
  19744. Link in code for a __main kernel. This is for stand-alone instead
  19745. of offloading execution.
  19746. '-moptimize'
  19747. Apply partitioned execution optimizations. This is the default
  19748. when any level of optimization is selected.
  19749. '-msoft-stack'
  19750. Generate code that does not use '.local' memory directly for stack
  19751. storage. Instead, a per-warp stack pointer is maintained
  19752. explicitly. This enables variable-length stack allocation (with
  19753. variable-length arrays or 'alloca'), and when global memory is used
  19754. for underlying storage, makes it possible to access automatic
  19755. variables from other threads, or with atomic instructions. This
  19756. code generation variant is used for OpenMP offloading, but the
  19757. option is exposed on its own for the purpose of testing the
  19758. compiler; to generate code suitable for linking into programs using
  19759. OpenMP offloading, use option '-mgomp'.
  19760. '-muniform-simt'
  19761. Switch to code generation variant that allows to execute all
  19762. threads in each warp, while maintaining memory state and side
  19763. effects as if only one thread in each warp was active outside of
  19764. OpenMP SIMD regions. All atomic operations and calls to runtime
  19765. (malloc, free, vprintf) are conditionally executed (iff current
  19766. lane index equals the master lane index), and the register being
  19767. assigned is copied via a shuffle instruction from the master lane.
  19768. Outside of SIMD regions lane 0 is the master; inside, each thread
  19769. sees itself as the master. Shared memory array 'int __nvptx_uni[]'
  19770. stores all-zeros or all-ones bitmasks for each warp, indicating
  19771. current mode (0 outside of SIMD regions). Each thread can
  19772. bitwise-and the bitmask at position 'tid.y' with current lane index
  19773. to compute the master lane index.
  19774. '-mgomp'
  19775. Generate code for use in OpenMP offloading: enables '-msoft-stack'
  19776. and '-muniform-simt' options, and selects corresponding multilib
  19777. variant.
  19778. 
  19779. File: gcc.info, Node: OpenRISC Options, Next: PDP-11 Options, Prev: Nvidia PTX Options, Up: Submodel Options
  19780. 3.19.37 OpenRISC Options
  19781. ------------------------
  19782. These options are defined for OpenRISC:
  19783. '-mboard=NAME'
  19784. Configure a board specific runtime. This will be passed to the
  19785. linker for newlib board library linking. The default is 'or1ksim'.
  19786. '-mnewlib'
  19787. This option is ignored; it is for compatibility purposes only.
  19788. This used to select linker and preprocessor options for use with
  19789. newlib.
  19790. '-msoft-div'
  19791. '-mhard-div'
  19792. Select software or hardware divide ('l.div', 'l.divu')
  19793. instructions. This default is hardware divide.
  19794. '-msoft-mul'
  19795. '-mhard-mul'
  19796. Select software or hardware multiply ('l.mul', 'l.muli')
  19797. instructions. This default is hardware multiply.
  19798. '-msoft-float'
  19799. '-mhard-float'
  19800. Select software or hardware for floating point operations. The
  19801. default is software.
  19802. '-mdouble-float'
  19803. When '-mhard-float' is selected, enables generation of
  19804. double-precision floating point instructions. By default functions
  19805. from 'libgcc' are used to perform double-precision floating point
  19806. operations.
  19807. '-munordered-float'
  19808. When '-mhard-float' is selected, enables generation of unordered
  19809. floating point compare and set flag ('lf.sfun*') instructions. By
  19810. default functions from 'libgcc' are used to perform unordered
  19811. floating point compare and set flag operations.
  19812. '-mcmov'
  19813. Enable generation of conditional move ('l.cmov') instructions. By
  19814. default the equivalent will be generated using set and branch.
  19815. '-mror'
  19816. Enable generation of rotate right ('l.ror') instructions. By
  19817. default functions from 'libgcc' are used to perform rotate right
  19818. operations.
  19819. '-mrori'
  19820. Enable generation of rotate right with immediate ('l.rori')
  19821. instructions. By default functions from 'libgcc' are used to
  19822. perform rotate right with immediate operations.
  19823. '-msext'
  19824. Enable generation of sign extension ('l.ext*') instructions. By
  19825. default memory loads are used to perform sign extension.
  19826. '-msfimm'
  19827. Enable generation of compare and set flag with immediate ('l.sf*i')
  19828. instructions. By default extra instructions will be generated to
  19829. store the immediate to a register first.
  19830. '-mshftimm'
  19831. Enable generation of shift with immediate ('l.srai', 'l.srli',
  19832. 'l.slli') instructions. By default extra instructions will be
  19833. generated to store the immediate to a register first.
  19834. 
  19835. File: gcc.info, Node: PDP-11 Options, Next: picoChip Options, Prev: OpenRISC Options, Up: Submodel Options
  19836. 3.19.38 PDP-11 Options
  19837. ----------------------
  19838. These options are defined for the PDP-11:
  19839. '-mfpu'
  19840. Use hardware FPP floating point. This is the default. (FIS
  19841. floating point on the PDP-11/40 is not supported.) Implies -m45.
  19842. '-msoft-float'
  19843. Do not use hardware floating point.
  19844. '-mac0'
  19845. Return floating-point results in ac0 (fr0 in Unix assembler
  19846. syntax).
  19847. '-mno-ac0'
  19848. Return floating-point results in memory. This is the default.
  19849. '-m40'
  19850. Generate code for a PDP-11/40. Implies -msoft-float -mno-split.
  19851. '-m45'
  19852. Generate code for a PDP-11/45. This is the default.
  19853. '-m10'
  19854. Generate code for a PDP-11/10. Implies -msoft-float -mno-split.
  19855. '-mint16'
  19856. '-mno-int32'
  19857. Use 16-bit 'int'. This is the default.
  19858. '-mint32'
  19859. '-mno-int16'
  19860. Use 32-bit 'int'.
  19861. '-msplit'
  19862. Target has split instruction and data space. Implies -m45.
  19863. '-munix-asm'
  19864. Use Unix assembler syntax.
  19865. '-mdec-asm'
  19866. Use DEC assembler syntax.
  19867. '-mgnu-asm'
  19868. Use GNU assembler syntax. This is the default.
  19869. '-mlra'
  19870. Use the new LRA register allocator. By default, the old "reload"
  19871. allocator is used.
  19872. 
  19873. File: gcc.info, Node: picoChip Options, Next: PowerPC Options, Prev: PDP-11 Options, Up: Submodel Options
  19874. 3.19.39 picoChip Options
  19875. ------------------------
  19876. These '-m' options are defined for picoChip implementations:
  19877. '-mae=AE_TYPE'
  19878. Set the instruction set, register set, and instruction scheduling
  19879. parameters for array element type AE_TYPE. Supported values for
  19880. AE_TYPE are 'ANY', 'MUL', and 'MAC'.
  19881. '-mae=ANY' selects a completely generic AE type. Code generated
  19882. with this option runs on any of the other AE types. The code is
  19883. not as efficient as it would be if compiled for a specific AE type,
  19884. and some types of operation (e.g., multiplication) do not work
  19885. properly on all types of AE.
  19886. '-mae=MUL' selects a MUL AE type. This is the most useful AE type
  19887. for compiled code, and is the default.
  19888. '-mae=MAC' selects a DSP-style MAC AE. Code compiled with this
  19889. option may suffer from poor performance of byte (char)
  19890. manipulation, since the DSP AE does not provide hardware support
  19891. for byte load/stores.
  19892. '-msymbol-as-address'
  19893. Enable the compiler to directly use a symbol name as an address in
  19894. a load/store instruction, without first loading it into a register.
  19895. Typically, the use of this option generates larger programs, which
  19896. run faster than when the option isn't used. However, the results
  19897. vary from program to program, so it is left as a user option,
  19898. rather than being permanently enabled.
  19899. '-mno-inefficient-warnings'
  19900. Disables warnings about the generation of inefficient code. These
  19901. warnings can be generated, for example, when compiling code that
  19902. performs byte-level memory operations on the MAC AE type. The MAC
  19903. AE has no hardware support for byte-level memory operations, so all
  19904. byte load/stores must be synthesized from word load/store
  19905. operations. This is inefficient and a warning is generated to
  19906. indicate that you should rewrite the code to avoid byte operations,
  19907. or to target an AE type that has the necessary hardware support.
  19908. This option disables these warnings.
  19909. 
  19910. File: gcc.info, Node: PowerPC Options, Next: PRU Options, Prev: picoChip Options, Up: Submodel Options
  19911. 3.19.40 PowerPC Options
  19912. -----------------------
  19913. These are listed under *Note RS/6000 and PowerPC Options::.
  19914. 
  19915. File: gcc.info, Node: PRU Options, Next: RISC-V Options, Prev: PowerPC Options, Up: Submodel Options
  19916. 3.19.41 PRU Options
  19917. -------------------
  19918. These command-line options are defined for PRU target:
  19919. '-minrt'
  19920. Link with a minimum runtime environment, with no support for static
  19921. initializers and constructors. Using this option can significantly
  19922. reduce the size of the final ELF binary. Beware that the compiler
  19923. could still generate code with static initializers and
  19924. constructors. It is up to the programmer to ensure that the source
  19925. program will not use those features.
  19926. '-mmcu=MCU'
  19927. Specify the PRU MCU variant to use. Check Newlib for the exact
  19928. list of supported MCUs.
  19929. '-mno-relax'
  19930. Make GCC pass the '--no-relax' command-line option to the linker
  19931. instead of the '--relax' option.
  19932. '-mloop'
  19933. Allow (or do not allow) GCC to use the LOOP instruction.
  19934. '-mabi=VARIANT'
  19935. Specify the ABI variant to output code for. '-mabi=ti' selects the
  19936. unmodified TI ABI while '-mabi=gnu' selects a GNU variant that
  19937. copes more naturally with certain GCC assumptions. These are the
  19938. differences:
  19939. 'Function Pointer Size'
  19940. TI ABI specifies that function (code) pointers are 16-bit,
  19941. whereas GNU supports only 32-bit data and code pointers.
  19942. 'Optional Return Value Pointer'
  19943. Function return values larger than 64 bits are passed by using
  19944. a hidden pointer as the first argument of the function. TI
  19945. ABI, though, mandates that the pointer can be NULL in case the
  19946. caller is not using the returned value. GNU always passes and
  19947. expects a valid return value pointer.
  19948. The current '-mabi=ti' implementation simply raises a compile error
  19949. when any of the above code constructs is detected. As a
  19950. consequence the standard C library cannot be built and it is
  19951. omitted when linking with '-mabi=ti'.
  19952. Relaxation is a GNU feature and for safety reasons is disabled when
  19953. using '-mabi=ti'. The TI toolchain does not emit relocations for
  19954. QBBx instructions, so the GNU linker cannot adjust them when
  19955. shortening adjacent LDI32 pseudo instructions.
  19956. 
  19957. File: gcc.info, Node: RISC-V Options, Next: RL78 Options, Prev: PRU Options, Up: Submodel Options
  19958. 3.19.42 RISC-V Options
  19959. ----------------------
  19960. These command-line options are defined for RISC-V targets:
  19961. '-mbranch-cost=N'
  19962. Set the cost of branches to roughly N instructions.
  19963. '-mplt'
  19964. '-mno-plt'
  19965. When generating PIC code, do or don't allow the use of PLTs.
  19966. Ignored for non-PIC. The default is '-mplt'.
  19967. '-mabi=ABI-STRING'
  19968. Specify integer and floating-point calling convention. ABI-STRING
  19969. contains two parts: the size of integer types and the registers
  19970. used for floating-point types. For example '-march=rv64ifd
  19971. -mabi=lp64d' means that 'long' and pointers are 64-bit (implicitly
  19972. defining 'int' to be 32-bit), and that floating-point values up to
  19973. 64 bits wide are passed in F registers. Contrast this with
  19974. '-march=rv64ifd -mabi=lp64f', which still allows the compiler to
  19975. generate code that uses the F and D extensions but only allows
  19976. floating-point values up to 32 bits long to be passed in registers;
  19977. or '-march=rv64ifd -mabi=lp64', in which no floating-point
  19978. arguments will be passed in registers.
  19979. The default for this argument is system dependent, users who want a
  19980. specific calling convention should specify one explicitly. The
  19981. valid calling conventions are: 'ilp32', 'ilp32f', 'ilp32d', 'lp64',
  19982. 'lp64f', and 'lp64d'. Some calling conventions are impossible to
  19983. implement on some ISAs: for example, '-march=rv32if -mabi=ilp32d'
  19984. is invalid because the ABI requires 64-bit values be passed in F
  19985. registers, but F registers are only 32 bits wide. There is also
  19986. the 'ilp32e' ABI that can only be used with the 'rv32e'
  19987. architecture. This ABI is not well specified at present, and is
  19988. subject to change.
  19989. '-mfdiv'
  19990. '-mno-fdiv'
  19991. Do or don't use hardware floating-point divide and square root
  19992. instructions. This requires the F or D extensions for
  19993. floating-point registers. The default is to use them if the
  19994. specified architecture has these instructions.
  19995. '-mdiv'
  19996. '-mno-div'
  19997. Do or don't use hardware instructions for integer division. This
  19998. requires the M extension. The default is to use them if the
  19999. specified architecture has these instructions.
  20000. '-march=ISA-STRING'
  20001. Generate code for given RISC-V ISA (e.g. 'rv64im'). ISA strings
  20002. must be lower-case. Examples include 'rv64i', 'rv32g', 'rv32e',
  20003. and 'rv32imaf'.
  20004. When '-march=' is not specified, use the setting from '-mcpu'.
  20005. If both '-march' and '-mcpu=' are not specified, the default for
  20006. this argument is system dependent, users who want a specific
  20007. architecture extensions should specify one explicitly.
  20008. '-mcpu=PROCESSOR-STRING'
  20009. Use architecture of and optimize the output for the given
  20010. processor, specified by particular CPU name. Permissible values
  20011. for this option are: 'sifive-e20', 'sifive-e21', 'sifive-e24',
  20012. 'sifive-e31', 'sifive-e34', 'sifive-e76', 'sifive-s21',
  20013. 'sifive-s51', 'sifive-s54', 'sifive-s76', 'sifive-u54', and
  20014. 'sifive-u74'.
  20015. '-mtune=PROCESSOR-STRING'
  20016. Optimize the output for the given processor, specified by
  20017. microarchitecture or particular CPU name. Permissible values for
  20018. this option are: 'rocket', 'sifive-3-series', 'sifive-5-series',
  20019. 'sifive-7-series', 'size', and all valid options for '-mcpu='.
  20020. When '-mtune=' is not specified, use the setting from '-mcpu', the
  20021. default is 'rocket' if both are not specified.
  20022. The 'size' choice is not intended for use by end-users. This is
  20023. used when '-Os' is specified. It overrides the instruction cost
  20024. info provided by '-mtune=', but does not override the pipeline
  20025. info. This helps reduce code size while still giving good
  20026. performance.
  20027. '-mpreferred-stack-boundary=NUM'
  20028. Attempt to keep the stack boundary aligned to a 2 raised to NUM
  20029. byte boundary. If '-mpreferred-stack-boundary' is not specified,
  20030. the default is 4 (16 bytes or 128-bits).
  20031. *Warning:* If you use this switch, then you must build all modules
  20032. with the same value, including any libraries. This includes the
  20033. system libraries and startup modules.
  20034. '-msmall-data-limit=N'
  20035. Put global and static data smaller than N bytes into a special
  20036. section (on some targets).
  20037. '-msave-restore'
  20038. '-mno-save-restore'
  20039. Do or don't use smaller but slower prologue and epilogue code that
  20040. uses library function calls. The default is to use fast inline
  20041. prologues and epilogues.
  20042. '-mshorten-memrefs'
  20043. '-mno-shorten-memrefs'
  20044. Do or do not attempt to make more use of compressed load/store
  20045. instructions by replacing a load/store of 'base register + large
  20046. offset' with a new load/store of 'new base + small offset'. If the
  20047. new base gets stored in a compressed register, then the new
  20048. load/store can be compressed. Currently targets 32-bit integer
  20049. load/stores only.
  20050. '-mstrict-align'
  20051. '-mno-strict-align'
  20052. Do not or do generate unaligned memory accesses. The default is
  20053. set depending on whether the processor we are optimizing for
  20054. supports fast unaligned access or not.
  20055. '-mcmodel=medlow'
  20056. Generate code for the medium-low code model. The program and its
  20057. statically defined symbols must lie within a single 2 GiB address
  20058. range and must lie between absolute addresses -2 GiB and +2 GiB.
  20059. Programs can be statically or dynamically linked. This is the
  20060. default code model.
  20061. '-mcmodel=medany'
  20062. Generate code for the medium-any code model. The program and its
  20063. statically defined symbols must be within any single 2 GiB address
  20064. range. Programs can be statically or dynamically linked.
  20065. '-mexplicit-relocs'
  20066. '-mno-exlicit-relocs'
  20067. Use or do not use assembler relocation operators when dealing with
  20068. symbolic addresses. The alternative is to use assembler macros
  20069. instead, which may limit optimization.
  20070. '-mrelax'
  20071. '-mno-relax'
  20072. Take advantage of linker relaxations to reduce the number of
  20073. instructions required to materialize symbol addresses. The default
  20074. is to take advantage of linker relaxations.
  20075. '-memit-attribute'
  20076. '-mno-emit-attribute'
  20077. Emit (do not emit) RISC-V attribute to record extra information
  20078. into ELF objects. This feature requires at least binutils 2.32.
  20079. '-malign-data=TYPE'
  20080. Control how GCC aligns variables and constants of array, structure,
  20081. or union types. Supported values for TYPE are 'xlen' which uses x
  20082. register width as the alignment value, and 'natural' which uses
  20083. natural alignment. 'xlen' is the default.
  20084. '-mbig-endian'
  20085. Generate big-endian code. This is the default when GCC is
  20086. configured for a 'riscv64be-*-*' or 'riscv32be-*-*' target.
  20087. '-mlittle-endian'
  20088. Generate little-endian code. This is the default when GCC is
  20089. configured for a 'riscv64-*-*' or 'riscv32-*-*' but not a
  20090. 'riscv64be-*-*' or 'riscv32be-*-*' target.
  20091. '-mstack-protector-guard=GUARD'
  20092. '-mstack-protector-guard-reg=REG'
  20093. '-mstack-protector-guard-offset=OFFSET'
  20094. Generate stack protection code using canary at GUARD. Supported
  20095. locations are 'global' for a global canary or 'tls' for per-thread
  20096. canary in the TLS block.
  20097. With the latter choice the options
  20098. '-mstack-protector-guard-reg=REG' and
  20099. '-mstack-protector-guard-offset=OFFSET' furthermore specify which
  20100. register to use as base register for reading the canary, and from
  20101. what offset from that base register. There is no default register
  20102. or offset as this is entirely for use within the Linux kernel.
  20103. 
  20104. File: gcc.info, Node: RL78 Options, Next: RS/6000 and PowerPC Options, Prev: RISC-V Options, Up: Submodel Options
  20105. 3.19.43 RL78 Options
  20106. --------------------
  20107. '-msim'
  20108. Links in additional target libraries to support operation within a
  20109. simulator.
  20110. '-mmul=none'
  20111. '-mmul=g10'
  20112. '-mmul=g13'
  20113. '-mmul=g14'
  20114. '-mmul=rl78'
  20115. Specifies the type of hardware multiplication and division support
  20116. to be used. The simplest is 'none', which uses software for both
  20117. multiplication and division. This is the default. The 'g13' value
  20118. is for the hardware multiply/divide peripheral found on the
  20119. RL78/G13 (S2 core) targets. The 'g14' value selects the use of the
  20120. multiplication and division instructions supported by the RL78/G14
  20121. (S3 core) parts. The value 'rl78' is an alias for 'g14' and the
  20122. value 'mg10' is an alias for 'none'.
  20123. In addition a C preprocessor macro is defined, based upon the
  20124. setting of this option. Possible values are: '__RL78_MUL_NONE__',
  20125. '__RL78_MUL_G13__' or '__RL78_MUL_G14__'.
  20126. '-mcpu=g10'
  20127. '-mcpu=g13'
  20128. '-mcpu=g14'
  20129. '-mcpu=rl78'
  20130. Specifies the RL78 core to target. The default is the G14 core,
  20131. also known as an S3 core or just RL78. The G13 or S2 core does not
  20132. have multiply or divide instructions, instead it uses a hardware
  20133. peripheral for these operations. The G10 or S1 core does not have
  20134. register banks, so it uses a different calling convention.
  20135. If this option is set it also selects the type of hardware multiply
  20136. support to use, unless this is overridden by an explicit
  20137. '-mmul=none' option on the command line. Thus specifying
  20138. '-mcpu=g13' enables the use of the G13 hardware multiply peripheral
  20139. and specifying '-mcpu=g10' disables the use of hardware
  20140. multiplications altogether.
  20141. Note, although the RL78/G14 core is the default target, specifying
  20142. '-mcpu=g14' or '-mcpu=rl78' on the command line does change the
  20143. behavior of the toolchain since it also enables G14 hardware
  20144. multiply support. If these options are not specified on the
  20145. command line then software multiplication routines will be used
  20146. even though the code targets the RL78 core. This is for backwards
  20147. compatibility with older toolchains which did not have hardware
  20148. multiply and divide support.
  20149. In addition a C preprocessor macro is defined, based upon the
  20150. setting of this option. Possible values are: '__RL78_G10__',
  20151. '__RL78_G13__' or '__RL78_G14__'.
  20152. '-mg10'
  20153. '-mg13'
  20154. '-mg14'
  20155. '-mrl78'
  20156. These are aliases for the corresponding '-mcpu=' option. They are
  20157. provided for backwards compatibility.
  20158. '-mallregs'
  20159. Allow the compiler to use all of the available registers. By
  20160. default registers 'r24..r31' are reserved for use in interrupt
  20161. handlers. With this option enabled these registers can be used in
  20162. ordinary functions as well.
  20163. '-m64bit-doubles'
  20164. '-m32bit-doubles'
  20165. Make the 'double' data type be 64 bits ('-m64bit-doubles') or 32
  20166. bits ('-m32bit-doubles') in size. The default is
  20167. '-m32bit-doubles'.
  20168. '-msave-mduc-in-interrupts'
  20169. '-mno-save-mduc-in-interrupts'
  20170. Specifies that interrupt handler functions should preserve the MDUC
  20171. registers. This is only necessary if normal code might use the
  20172. MDUC registers, for example because it performs multiplication and
  20173. division operations. The default is to ignore the MDUC registers
  20174. as this makes the interrupt handlers faster. The target option
  20175. -mg13 needs to be passed for this to work as this feature is only
  20176. available on the G13 target (S2 core). The MDUC registers will
  20177. only be saved if the interrupt handler performs a multiplication or
  20178. division operation or it calls another function.
  20179. 
  20180. File: gcc.info, Node: RS/6000 and PowerPC Options, Next: RX Options, Prev: RL78 Options, Up: Submodel Options
  20181. 3.19.44 IBM RS/6000 and PowerPC Options
  20182. ---------------------------------------
  20183. These '-m' options are defined for the IBM RS/6000 and PowerPC:
  20184. '-mpowerpc-gpopt'
  20185. '-mno-powerpc-gpopt'
  20186. '-mpowerpc-gfxopt'
  20187. '-mno-powerpc-gfxopt'
  20188. '-mpowerpc64'
  20189. '-mno-powerpc64'
  20190. '-mmfcrf'
  20191. '-mno-mfcrf'
  20192. '-mpopcntb'
  20193. '-mno-popcntb'
  20194. '-mpopcntd'
  20195. '-mno-popcntd'
  20196. '-mfprnd'
  20197. '-mno-fprnd'
  20198. '-mcmpb'
  20199. '-mno-cmpb'
  20200. '-mhard-dfp'
  20201. '-mno-hard-dfp'
  20202. You use these options to specify which instructions are available
  20203. on the processor you are using. The default value of these options
  20204. is determined when configuring GCC. Specifying the
  20205. '-mcpu=CPU_TYPE' overrides the specification of these options. We
  20206. recommend you use the '-mcpu=CPU_TYPE' option rather than the
  20207. options listed above.
  20208. Specifying '-mpowerpc-gpopt' allows GCC to use the optional PowerPC
  20209. architecture instructions in the General Purpose group, including
  20210. floating-point square root. Specifying '-mpowerpc-gfxopt' allows
  20211. GCC to use the optional PowerPC architecture instructions in the
  20212. Graphics group, including floating-point select.
  20213. The '-mmfcrf' option allows GCC to generate the move from condition
  20214. register field instruction implemented on the POWER4 processor and
  20215. other processors that support the PowerPC V2.01 architecture. The
  20216. '-mpopcntb' option allows GCC to generate the popcount and
  20217. double-precision FP reciprocal estimate instruction implemented on
  20218. the POWER5 processor and other processors that support the PowerPC
  20219. V2.02 architecture. The '-mpopcntd' option allows GCC to generate
  20220. the popcount instruction implemented on the POWER7 processor and
  20221. other processors that support the PowerPC V2.06 architecture. The
  20222. '-mfprnd' option allows GCC to generate the FP round to integer
  20223. instructions implemented on the POWER5+ processor and other
  20224. processors that support the PowerPC V2.03 architecture. The
  20225. '-mcmpb' option allows GCC to generate the compare bytes
  20226. instruction implemented on the POWER6 processor and other
  20227. processors that support the PowerPC V2.05 architecture. The
  20228. '-mhard-dfp' option allows GCC to generate the decimal
  20229. floating-point instructions implemented on some POWER processors.
  20230. The '-mpowerpc64' option allows GCC to generate the additional
  20231. 64-bit instructions that are found in the full PowerPC64
  20232. architecture and to treat GPRs as 64-bit, doubleword quantities.
  20233. GCC defaults to '-mno-powerpc64'.
  20234. '-mcpu=CPU_TYPE'
  20235. Set architecture type, register usage, and instruction scheduling
  20236. parameters for machine type CPU_TYPE. Supported values for
  20237. CPU_TYPE are '401', '403', '405', '405fp', '440', '440fp', '464',
  20238. '464fp', '476', '476fp', '505', '601', '602', '603', '603e', '604',
  20239. '604e', '620', '630', '740', '7400', '7450', '750', '801', '821',
  20240. '823', '860', '970', '8540', 'a2', 'e300c2', 'e300c3', 'e500mc',
  20241. 'e500mc64', 'e5500', 'e6500', 'ec603e', 'G3', 'G4', 'G5', 'titan',
  20242. 'power3', 'power4', 'power5', 'power5+', 'power6', 'power6x',
  20243. 'power7', 'power8', 'power9', 'future', 'powerpc', 'powerpc64',
  20244. 'powerpc64le', 'rs64', and 'native'.
  20245. '-mcpu=powerpc', '-mcpu=powerpc64', and '-mcpu=powerpc64le' specify
  20246. pure 32-bit PowerPC (either endian), 64-bit big endian PowerPC and
  20247. 64-bit little endian PowerPC architecture machine types, with an
  20248. appropriate, generic processor model assumed for scheduling
  20249. purposes.
  20250. Specifying 'native' as cpu type detects and selects the
  20251. architecture option that corresponds to the host processor of the
  20252. system performing the compilation. '-mcpu=native' has no effect if
  20253. GCC does not recognize the processor.
  20254. The other options specify a specific processor. Code generated
  20255. under those options runs best on that processor, and may not run at
  20256. all on others.
  20257. The '-mcpu' options automatically enable or disable the following
  20258. options:
  20259. -maltivec -mfprnd -mhard-float -mmfcrf -mmultiple
  20260. -mpopcntb -mpopcntd -mpowerpc64
  20261. -mpowerpc-gpopt -mpowerpc-gfxopt
  20262. -mmulhw -mdlmzb -mmfpgpr -mvsx
  20263. -mcrypto -mhtm -mpower8-fusion -mpower8-vector
  20264. -mquad-memory -mquad-memory-atomic -mfloat128
  20265. -mfloat128-hardware -mprefixed -mpcrel -mmma
  20266. The particular options set for any particular CPU varies between
  20267. compiler versions, depending on what setting seems to produce
  20268. optimal code for that CPU; it doesn't necessarily reflect the
  20269. actual hardware's capabilities. If you wish to set an individual
  20270. option to a particular value, you may specify it after the '-mcpu'
  20271. option, like '-mcpu=970 -mno-altivec'.
  20272. On AIX, the '-maltivec' and '-mpowerpc64' options are not enabled
  20273. or disabled by the '-mcpu' option at present because AIX does not
  20274. have full support for these options. You may still enable or
  20275. disable them individually if you're sure it'll work in your
  20276. environment.
  20277. '-mtune=CPU_TYPE'
  20278. Set the instruction scheduling parameters for machine type
  20279. CPU_TYPE, but do not set the architecture type or register usage,
  20280. as '-mcpu=CPU_TYPE' does. The same values for CPU_TYPE are used
  20281. for '-mtune' as for '-mcpu'. If both are specified, the code
  20282. generated uses the architecture and registers set by '-mcpu', but
  20283. the scheduling parameters set by '-mtune'.
  20284. '-mcmodel=small'
  20285. Generate PowerPC64 code for the small model: The TOC is limited to
  20286. 64k.
  20287. '-mcmodel=medium'
  20288. Generate PowerPC64 code for the medium model: The TOC and other
  20289. static data may be up to a total of 4G in size. This is the
  20290. default for 64-bit Linux.
  20291. '-mcmodel=large'
  20292. Generate PowerPC64 code for the large model: The TOC may be up to
  20293. 4G in size. Other data and code is only limited by the 64-bit
  20294. address space.
  20295. '-maltivec'
  20296. '-mno-altivec'
  20297. Generate code that uses (does not use) AltiVec instructions, and
  20298. also enable the use of built-in functions that allow more direct
  20299. access to the AltiVec instruction set. You may also need to set
  20300. '-mabi=altivec' to adjust the current ABI with AltiVec ABI
  20301. enhancements.
  20302. When '-maltivec' is used, the element order for AltiVec intrinsics
  20303. such as 'vec_splat', 'vec_extract', and 'vec_insert' match array
  20304. element order corresponding to the endianness of the target. That
  20305. is, element zero identifies the leftmost element in a vector
  20306. register when targeting a big-endian platform, and identifies the
  20307. rightmost element in a vector register when targeting a
  20308. little-endian platform.
  20309. '-mvrsave'
  20310. '-mno-vrsave'
  20311. Generate VRSAVE instructions when generating AltiVec code.
  20312. '-msecure-plt'
  20313. Generate code that allows 'ld' and 'ld.so' to build executables and
  20314. shared libraries with non-executable '.plt' and '.got' sections.
  20315. This is a PowerPC 32-bit SYSV ABI option.
  20316. '-mbss-plt'
  20317. Generate code that uses a BSS '.plt' section that 'ld.so' fills in,
  20318. and requires '.plt' and '.got' sections that are both writable and
  20319. executable. This is a PowerPC 32-bit SYSV ABI option.
  20320. '-misel'
  20321. '-mno-isel'
  20322. This switch enables or disables the generation of ISEL
  20323. instructions.
  20324. '-mvsx'
  20325. '-mno-vsx'
  20326. Generate code that uses (does not use) vector/scalar (VSX)
  20327. instructions, and also enable the use of built-in functions that
  20328. allow more direct access to the VSX instruction set.
  20329. '-mcrypto'
  20330. '-mno-crypto'
  20331. Enable the use (disable) of the built-in functions that allow
  20332. direct access to the cryptographic instructions that were added in
  20333. version 2.07 of the PowerPC ISA.
  20334. '-mhtm'
  20335. '-mno-htm'
  20336. Enable (disable) the use of the built-in functions that allow
  20337. direct access to the Hardware Transactional Memory (HTM)
  20338. instructions that were added in version 2.07 of the PowerPC ISA.
  20339. '-mpower8-fusion'
  20340. '-mno-power8-fusion'
  20341. Generate code that keeps (does not keeps) some integer operations
  20342. adjacent so that the instructions can be fused together on power8
  20343. and later processors.
  20344. '-mpower8-vector'
  20345. '-mno-power8-vector'
  20346. Generate code that uses (does not use) the vector and scalar
  20347. instructions that were added in version 2.07 of the PowerPC ISA.
  20348. Also enable the use of built-in functions that allow more direct
  20349. access to the vector instructions.
  20350. '-mquad-memory'
  20351. '-mno-quad-memory'
  20352. Generate code that uses (does not use) the non-atomic quad word
  20353. memory instructions. The '-mquad-memory' option requires use of
  20354. 64-bit mode.
  20355. '-mquad-memory-atomic'
  20356. '-mno-quad-memory-atomic'
  20357. Generate code that uses (does not use) the atomic quad word memory
  20358. instructions. The '-mquad-memory-atomic' option requires use of
  20359. 64-bit mode.
  20360. '-mfloat128'
  20361. '-mno-float128'
  20362. Enable/disable the __FLOAT128 keyword for IEEE 128-bit floating
  20363. point and use either software emulation for IEEE 128-bit floating
  20364. point or hardware instructions.
  20365. The VSX instruction set ('-mvsx', '-mcpu=power7', '-mcpu=power8'),
  20366. or '-mcpu=power9' must be enabled to use the IEEE 128-bit floating
  20367. point support. The IEEE 128-bit floating point support only works
  20368. on PowerPC Linux systems.
  20369. The default for '-mfloat128' is enabled on PowerPC Linux systems
  20370. using the VSX instruction set, and disabled on other systems.
  20371. If you use the ISA 3.0 instruction set ('-mpower9-vector' or
  20372. '-mcpu=power9') on a 64-bit system, the IEEE 128-bit floating point
  20373. support will also enable the generation of ISA 3.0 IEEE 128-bit
  20374. floating point instructions. Otherwise, if you do not specify to
  20375. generate ISA 3.0 instructions or you are targeting a 32-bit big
  20376. endian system, IEEE 128-bit floating point will be done with
  20377. software emulation.
  20378. '-mfloat128-hardware'
  20379. '-mno-float128-hardware'
  20380. Enable/disable using ISA 3.0 hardware instructions to support the
  20381. __FLOAT128 data type.
  20382. The default for '-mfloat128-hardware' is enabled on PowerPC Linux
  20383. systems using the ISA 3.0 instruction set, and disabled on other
  20384. systems.
  20385. '-m32'
  20386. '-m64'
  20387. Generate code for 32-bit or 64-bit environments of Darwin and SVR4
  20388. targets (including GNU/Linux). The 32-bit environment sets int,
  20389. long and pointer to 32 bits and generates code that runs on any
  20390. PowerPC variant. The 64-bit environment sets int to 32 bits and
  20391. long and pointer to 64 bits, and generates code for PowerPC64, as
  20392. for '-mpowerpc64'.
  20393. '-mfull-toc'
  20394. '-mno-fp-in-toc'
  20395. '-mno-sum-in-toc'
  20396. '-mminimal-toc'
  20397. Modify generation of the TOC (Table Of Contents), which is created
  20398. for every executable file. The '-mfull-toc' option is selected by
  20399. default. In that case, GCC allocates at least one TOC entry for
  20400. each unique non-automatic variable reference in your program. GCC
  20401. also places floating-point constants in the TOC. However, only
  20402. 16,384 entries are available in the TOC.
  20403. If you receive a linker error message that saying you have
  20404. overflowed the available TOC space, you can reduce the amount of
  20405. TOC space used with the '-mno-fp-in-toc' and '-mno-sum-in-toc'
  20406. options. '-mno-fp-in-toc' prevents GCC from putting floating-point
  20407. constants in the TOC and '-mno-sum-in-toc' forces GCC to generate
  20408. code to calculate the sum of an address and a constant at run time
  20409. instead of putting that sum into the TOC. You may specify one or
  20410. both of these options. Each causes GCC to produce very slightly
  20411. slower and larger code at the expense of conserving TOC space.
  20412. If you still run out of space in the TOC even when you specify both
  20413. of these options, specify '-mminimal-toc' instead. This option
  20414. causes GCC to make only one TOC entry for every file. When you
  20415. specify this option, GCC produces code that is slower and larger
  20416. but which uses extremely little TOC space. You may wish to use
  20417. this option only on files that contain less frequently-executed
  20418. code.
  20419. '-maix64'
  20420. '-maix32'
  20421. Enable 64-bit AIX ABI and calling convention: 64-bit pointers,
  20422. 64-bit 'long' type, and the infrastructure needed to support them.
  20423. Specifying '-maix64' implies '-mpowerpc64', while '-maix32'
  20424. disables the 64-bit ABI and implies '-mno-powerpc64'. GCC defaults
  20425. to '-maix32'.
  20426. '-mxl-compat'
  20427. '-mno-xl-compat'
  20428. Produce code that conforms more closely to IBM XL compiler
  20429. semantics when using AIX-compatible ABI. Pass floating-point
  20430. arguments to prototyped functions beyond the register save area
  20431. (RSA) on the stack in addition to argument FPRs. Do not assume
  20432. that most significant double in 128-bit long double value is
  20433. properly rounded when comparing values and converting to double.
  20434. Use XL symbol names for long double support routines.
  20435. The AIX calling convention was extended but not initially
  20436. documented to handle an obscure K&R C case of calling a function
  20437. that takes the address of its arguments with fewer arguments than
  20438. declared. IBM XL compilers access floating-point arguments that do
  20439. not fit in the RSA from the stack when a subroutine is compiled
  20440. without optimization. Because always storing floating-point
  20441. arguments on the stack is inefficient and rarely needed, this
  20442. option is not enabled by default and only is necessary when calling
  20443. subroutines compiled by IBM XL compilers without optimization.
  20444. '-mpe'
  20445. Support "IBM RS/6000 SP" "Parallel Environment" (PE). Link an
  20446. application written to use message passing with special startup
  20447. code to enable the application to run. The system must have PE
  20448. installed in the standard location ('/usr/lpp/ppe.poe/'), or the
  20449. 'specs' file must be overridden with the '-specs=' option to
  20450. specify the appropriate directory location. The Parallel
  20451. Environment does not support threads, so the '-mpe' option and the
  20452. '-pthread' option are incompatible.
  20453. '-malign-natural'
  20454. '-malign-power'
  20455. On AIX, 32-bit Darwin, and 64-bit PowerPC GNU/Linux, the option
  20456. '-malign-natural' overrides the ABI-defined alignment of larger
  20457. types, such as floating-point doubles, on their natural size-based
  20458. boundary. The option '-malign-power' instructs GCC to follow the
  20459. ABI-specified alignment rules. GCC defaults to the standard
  20460. alignment defined in the ABI.
  20461. On 64-bit Darwin, natural alignment is the default, and
  20462. '-malign-power' is not supported.
  20463. '-msoft-float'
  20464. '-mhard-float'
  20465. Generate code that does not use (uses) the floating-point register
  20466. set. Software floating-point emulation is provided if you use the
  20467. '-msoft-float' option, and pass the option to GCC when linking.
  20468. '-mmultiple'
  20469. '-mno-multiple'
  20470. Generate code that uses (does not use) the load multiple word
  20471. instructions and the store multiple word instructions. These
  20472. instructions are generated by default on POWER systems, and not
  20473. generated on PowerPC systems. Do not use '-mmultiple' on
  20474. little-endian PowerPC systems, since those instructions do not work
  20475. when the processor is in little-endian mode. The exceptions are
  20476. PPC740 and PPC750 which permit these instructions in little-endian
  20477. mode.
  20478. '-mupdate'
  20479. '-mno-update'
  20480. Generate code that uses (does not use) the load or store
  20481. instructions that update the base register to the address of the
  20482. calculated memory location. These instructions are generated by
  20483. default. If you use '-mno-update', there is a small window between
  20484. the time that the stack pointer is updated and the address of the
  20485. previous frame is stored, which means code that walks the stack
  20486. frame across interrupts or signals may get corrupted data.
  20487. '-mavoid-indexed-addresses'
  20488. '-mno-avoid-indexed-addresses'
  20489. Generate code that tries to avoid (not avoid) the use of indexed
  20490. load or store instructions. These instructions can incur a
  20491. performance penalty on Power6 processors in certain situations,
  20492. such as when stepping through large arrays that cross a 16M
  20493. boundary. This option is enabled by default when targeting Power6
  20494. and disabled otherwise.
  20495. '-mfused-madd'
  20496. '-mno-fused-madd'
  20497. Generate code that uses (does not use) the floating-point multiply
  20498. and accumulate instructions. These instructions are generated by
  20499. default if hardware floating point is used. The machine-dependent
  20500. '-mfused-madd' option is now mapped to the machine-independent
  20501. '-ffp-contract=fast' option, and '-mno-fused-madd' is mapped to
  20502. '-ffp-contract=off'.
  20503. '-mmulhw'
  20504. '-mno-mulhw'
  20505. Generate code that uses (does not use) the half-word multiply and
  20506. multiply-accumulate instructions on the IBM 405, 440, 464 and 476
  20507. processors. These instructions are generated by default when
  20508. targeting those processors.
  20509. '-mdlmzb'
  20510. '-mno-dlmzb'
  20511. Generate code that uses (does not use) the string-search 'dlmzb'
  20512. instruction on the IBM 405, 440, 464 and 476 processors. This
  20513. instruction is generated by default when targeting those
  20514. processors.
  20515. '-mno-bit-align'
  20516. '-mbit-align'
  20517. On System V.4 and embedded PowerPC systems do not (do) force
  20518. structures and unions that contain bit-fields to be aligned to the
  20519. base type of the bit-field.
  20520. For example, by default a structure containing nothing but 8
  20521. 'unsigned' bit-fields of length 1 is aligned to a 4-byte boundary
  20522. and has a size of 4 bytes. By using '-mno-bit-align', the
  20523. structure is aligned to a 1-byte boundary and is 1 byte in size.
  20524. '-mno-strict-align'
  20525. '-mstrict-align'
  20526. On System V.4 and embedded PowerPC systems do not (do) assume that
  20527. unaligned memory references are handled by the system.
  20528. '-mrelocatable'
  20529. '-mno-relocatable'
  20530. Generate code that allows (does not allow) a static executable to
  20531. be relocated to a different address at run time. A simple embedded
  20532. PowerPC system loader should relocate the entire contents of
  20533. '.got2' and 4-byte locations listed in the '.fixup' section, a
  20534. table of 32-bit addresses generated by this option. For this to
  20535. work, all objects linked together must be compiled with
  20536. '-mrelocatable' or '-mrelocatable-lib'. '-mrelocatable' code
  20537. aligns the stack to an 8-byte boundary.
  20538. '-mrelocatable-lib'
  20539. '-mno-relocatable-lib'
  20540. Like '-mrelocatable', '-mrelocatable-lib' generates a '.fixup'
  20541. section to allow static executables to be relocated at run time,
  20542. but '-mrelocatable-lib' does not use the smaller stack alignment of
  20543. '-mrelocatable'. Objects compiled with '-mrelocatable-lib' may be
  20544. linked with objects compiled with any combination of the
  20545. '-mrelocatable' options.
  20546. '-mno-toc'
  20547. '-mtoc'
  20548. On System V.4 and embedded PowerPC systems do not (do) assume that
  20549. register 2 contains a pointer to a global area pointing to the
  20550. addresses used in the program.
  20551. '-mlittle'
  20552. '-mlittle-endian'
  20553. On System V.4 and embedded PowerPC systems compile code for the
  20554. processor in little-endian mode. The '-mlittle-endian' option is
  20555. the same as '-mlittle'.
  20556. '-mbig'
  20557. '-mbig-endian'
  20558. On System V.4 and embedded PowerPC systems compile code for the
  20559. processor in big-endian mode. The '-mbig-endian' option is the
  20560. same as '-mbig'.
  20561. '-mdynamic-no-pic'
  20562. On Darwin and Mac OS X systems, compile code so that it is not
  20563. relocatable, but that its external references are relocatable. The
  20564. resulting code is suitable for applications, but not shared
  20565. libraries.
  20566. '-msingle-pic-base'
  20567. Treat the register used for PIC addressing as read-only, rather
  20568. than loading it in the prologue for each function. The runtime
  20569. system is responsible for initializing this register with an
  20570. appropriate value before execution begins.
  20571. '-mprioritize-restricted-insns=PRIORITY'
  20572. This option controls the priority that is assigned to dispatch-slot
  20573. restricted instructions during the second scheduling pass. The
  20574. argument PRIORITY takes the value '0', '1', or '2' to assign no,
  20575. highest, or second-highest (respectively) priority to dispatch-slot
  20576. restricted instructions.
  20577. '-msched-costly-dep=DEPENDENCE_TYPE'
  20578. This option controls which dependences are considered costly by the
  20579. target during instruction scheduling. The argument DEPENDENCE_TYPE
  20580. takes one of the following values:
  20581. 'no'
  20582. No dependence is costly.
  20583. 'all'
  20584. All dependences are costly.
  20585. 'true_store_to_load'
  20586. A true dependence from store to load is costly.
  20587. 'store_to_load'
  20588. Any dependence from store to load is costly.
  20589. NUMBER
  20590. Any dependence for which the latency is greater than or equal
  20591. to NUMBER is costly.
  20592. '-minsert-sched-nops=SCHEME'
  20593. This option controls which NOP insertion scheme is used during the
  20594. second scheduling pass. The argument SCHEME takes one of the
  20595. following values:
  20596. 'no'
  20597. Don't insert NOPs.
  20598. 'pad'
  20599. Pad with NOPs any dispatch group that has vacant issue slots,
  20600. according to the scheduler's grouping.
  20601. 'regroup_exact'
  20602. Insert NOPs to force costly dependent insns into separate
  20603. groups. Insert exactly as many NOPs as needed to force an
  20604. insn to a new group, according to the estimated processor
  20605. grouping.
  20606. NUMBER
  20607. Insert NOPs to force costly dependent insns into separate
  20608. groups. Insert NUMBER NOPs to force an insn to a new group.
  20609. '-mcall-sysv'
  20610. On System V.4 and embedded PowerPC systems compile code using
  20611. calling conventions that adhere to the March 1995 draft of the
  20612. System V Application Binary Interface, PowerPC processor
  20613. supplement. This is the default unless you configured GCC using
  20614. 'powerpc-*-eabiaix'.
  20615. '-mcall-sysv-eabi'
  20616. '-mcall-eabi'
  20617. Specify both '-mcall-sysv' and '-meabi' options.
  20618. '-mcall-sysv-noeabi'
  20619. Specify both '-mcall-sysv' and '-mno-eabi' options.
  20620. '-mcall-aixdesc'
  20621. On System V.4 and embedded PowerPC systems compile code for the AIX
  20622. operating system.
  20623. '-mcall-linux'
  20624. On System V.4 and embedded PowerPC systems compile code for the
  20625. Linux-based GNU system.
  20626. '-mcall-freebsd'
  20627. On System V.4 and embedded PowerPC systems compile code for the
  20628. FreeBSD operating system.
  20629. '-mcall-netbsd'
  20630. On System V.4 and embedded PowerPC systems compile code for the
  20631. NetBSD operating system.
  20632. '-mcall-openbsd'
  20633. On System V.4 and embedded PowerPC systems compile code for the
  20634. OpenBSD operating system.
  20635. '-mtraceback=TRACEBACK_TYPE'
  20636. Select the type of traceback table. Valid values for
  20637. TRACEBACK_TYPE are 'full', 'part', and 'no'.
  20638. '-maix-struct-return'
  20639. Return all structures in memory (as specified by the AIX ABI).
  20640. '-msvr4-struct-return'
  20641. Return structures smaller than 8 bytes in registers (as specified
  20642. by the SVR4 ABI).
  20643. '-mabi=ABI-TYPE'
  20644. Extend the current ABI with a particular extension, or remove such
  20645. extension. Valid values are: 'altivec', 'no-altivec',
  20646. 'ibmlongdouble', 'ieeelongdouble', 'elfv1', 'elfv2', and for AIX:
  20647. 'vec-extabi', 'vec-default'.
  20648. '-mabi=ibmlongdouble'
  20649. Change the current ABI to use IBM extended-precision long double.
  20650. This is not likely to work if your system defaults to using IEEE
  20651. extended-precision long double. If you change the long double type
  20652. from IEEE extended-precision, the compiler will issue a warning
  20653. unless you use the '-Wno-psabi' option. Requires
  20654. '-mlong-double-128' to be enabled.
  20655. '-mabi=ieeelongdouble'
  20656. Change the current ABI to use IEEE extended-precision long double.
  20657. This is not likely to work if your system defaults to using IBM
  20658. extended-precision long double. If you change the long double type
  20659. from IBM extended-precision, the compiler will issue a warning
  20660. unless you use the '-Wno-psabi' option. Requires
  20661. '-mlong-double-128' to be enabled.
  20662. '-mabi=elfv1'
  20663. Change the current ABI to use the ELFv1 ABI. This is the default
  20664. ABI for big-endian PowerPC 64-bit Linux. Overriding the default
  20665. ABI requires special system support and is likely to fail in
  20666. spectacular ways.
  20667. '-mabi=elfv2'
  20668. Change the current ABI to use the ELFv2 ABI. This is the default
  20669. ABI for little-endian PowerPC 64-bit Linux. Overriding the default
  20670. ABI requires special system support and is likely to fail in
  20671. spectacular ways.
  20672. '-mgnu-attribute'
  20673. '-mno-gnu-attribute'
  20674. Emit .gnu_attribute assembly directives to set tag/value pairs in a
  20675. .gnu.attributes section that specify ABI variations in function
  20676. parameters or return values.
  20677. '-mprototype'
  20678. '-mno-prototype'
  20679. On System V.4 and embedded PowerPC systems assume that all calls to
  20680. variable argument functions are properly prototyped. Otherwise,
  20681. the compiler must insert an instruction before every non-prototyped
  20682. call to set or clear bit 6 of the condition code register ('CR') to
  20683. indicate whether floating-point values are passed in the
  20684. floating-point registers in case the function takes variable
  20685. arguments. With '-mprototype', only calls to prototyped variable
  20686. argument functions set or clear the bit.
  20687. '-msim'
  20688. On embedded PowerPC systems, assume that the startup module is
  20689. called 'sim-crt0.o' and that the standard C libraries are
  20690. 'libsim.a' and 'libc.a'. This is the default for
  20691. 'powerpc-*-eabisim' configurations.
  20692. '-mmvme'
  20693. On embedded PowerPC systems, assume that the startup module is
  20694. called 'crt0.o' and the standard C libraries are 'libmvme.a' and
  20695. 'libc.a'.
  20696. '-mads'
  20697. On embedded PowerPC systems, assume that the startup module is
  20698. called 'crt0.o' and the standard C libraries are 'libads.a' and
  20699. 'libc.a'.
  20700. '-myellowknife'
  20701. On embedded PowerPC systems, assume that the startup module is
  20702. called 'crt0.o' and the standard C libraries are 'libyk.a' and
  20703. 'libc.a'.
  20704. '-mvxworks'
  20705. On System V.4 and embedded PowerPC systems, specify that you are
  20706. compiling for a VxWorks system.
  20707. '-memb'
  20708. On embedded PowerPC systems, set the 'PPC_EMB' bit in the ELF flags
  20709. header to indicate that 'eabi' extended relocations are used.
  20710. '-meabi'
  20711. '-mno-eabi'
  20712. On System V.4 and embedded PowerPC systems do (do not) adhere to
  20713. the Embedded Applications Binary Interface (EABI), which is a set
  20714. of modifications to the System V.4 specifications. Selecting
  20715. '-meabi' means that the stack is aligned to an 8-byte boundary, a
  20716. function '__eabi' is called from 'main' to set up the EABI
  20717. environment, and the '-msdata' option can use both 'r2' and 'r13'
  20718. to point to two separate small data areas. Selecting '-mno-eabi'
  20719. means that the stack is aligned to a 16-byte boundary, no EABI
  20720. initialization function is called from 'main', and the '-msdata'
  20721. option only uses 'r13' to point to a single small data area. The
  20722. '-meabi' option is on by default if you configured GCC using one of
  20723. the 'powerpc*-*-eabi*' options.
  20724. '-msdata=eabi'
  20725. On System V.4 and embedded PowerPC systems, put small initialized
  20726. 'const' global and static data in the '.sdata2' section, which is
  20727. pointed to by register 'r2'. Put small initialized non-'const'
  20728. global and static data in the '.sdata' section, which is pointed to
  20729. by register 'r13'. Put small uninitialized global and static data
  20730. in the '.sbss' section, which is adjacent to the '.sdata' section.
  20731. The '-msdata=eabi' option is incompatible with the '-mrelocatable'
  20732. option. The '-msdata=eabi' option also sets the '-memb' option.
  20733. '-msdata=sysv'
  20734. On System V.4 and embedded PowerPC systems, put small global and
  20735. static data in the '.sdata' section, which is pointed to by
  20736. register 'r13'. Put small uninitialized global and static data in
  20737. the '.sbss' section, which is adjacent to the '.sdata' section.
  20738. The '-msdata=sysv' option is incompatible with the '-mrelocatable'
  20739. option.
  20740. '-msdata=default'
  20741. '-msdata'
  20742. On System V.4 and embedded PowerPC systems, if '-meabi' is used,
  20743. compile code the same as '-msdata=eabi', otherwise compile code the
  20744. same as '-msdata=sysv'.
  20745. '-msdata=data'
  20746. On System V.4 and embedded PowerPC systems, put small global data
  20747. in the '.sdata' section. Put small uninitialized global data in
  20748. the '.sbss' section. Do not use register 'r13' to address small
  20749. data however. This is the default behavior unless other '-msdata'
  20750. options are used.
  20751. '-msdata=none'
  20752. '-mno-sdata'
  20753. On embedded PowerPC systems, put all initialized global and static
  20754. data in the '.data' section, and all uninitialized data in the
  20755. '.bss' section.
  20756. '-mreadonly-in-sdata'
  20757. Put read-only objects in the '.sdata' section as well. This is the
  20758. default.
  20759. '-mblock-move-inline-limit=NUM'
  20760. Inline all block moves (such as calls to 'memcpy' or structure
  20761. copies) less than or equal to NUM bytes. The minimum value for NUM
  20762. is 32 bytes on 32-bit targets and 64 bytes on 64-bit targets. The
  20763. default value is target-specific.
  20764. '-mblock-compare-inline-limit=NUM'
  20765. Generate non-looping inline code for all block compares (such as
  20766. calls to 'memcmp' or structure compares) less than or equal to NUM
  20767. bytes. If NUM is 0, all inline expansion (non-loop and loop) of
  20768. block compare is disabled. The default value is target-specific.
  20769. '-mblock-compare-inline-loop-limit=NUM'
  20770. Generate an inline expansion using loop code for all block compares
  20771. that are less than or equal to NUM bytes, but greater than the
  20772. limit for non-loop inline block compare expansion. If the block
  20773. length is not constant, at most NUM bytes will be compared before
  20774. 'memcmp' is called to compare the remainder of the block. The
  20775. default value is target-specific.
  20776. '-mstring-compare-inline-limit=NUM'
  20777. Compare at most NUM string bytes with inline code. If the
  20778. difference or end of string is not found at the end of the inline
  20779. compare a call to 'strcmp' or 'strncmp' will take care of the rest
  20780. of the comparison. The default is 64 bytes.
  20781. '-G NUM'
  20782. On embedded PowerPC systems, put global and static items less than
  20783. or equal to NUM bytes into the small data or BSS sections instead
  20784. of the normal data or BSS section. By default, NUM is 8. The '-G
  20785. NUM' switch is also passed to the linker. All modules should be
  20786. compiled with the same '-G NUM' value.
  20787. '-mregnames'
  20788. '-mno-regnames'
  20789. On System V.4 and embedded PowerPC systems do (do not) emit
  20790. register names in the assembly language output using symbolic
  20791. forms.
  20792. '-mlongcall'
  20793. '-mno-longcall'
  20794. By default assume that all calls are far away so that a longer and
  20795. more expensive calling sequence is required. This is required for
  20796. calls farther than 32 megabytes (33,554,432 bytes) from the current
  20797. location. A short call is generated if the compiler knows the call
  20798. cannot be that far away. This setting can be overridden by the
  20799. 'shortcall' function attribute, or by '#pragma longcall(0)'.
  20800. Some linkers are capable of detecting out-of-range calls and
  20801. generating glue code on the fly. On these systems, long calls are
  20802. unnecessary and generate slower code. As of this writing, the AIX
  20803. linker can do this, as can the GNU linker for PowerPC/64. It is
  20804. planned to add this feature to the GNU linker for 32-bit PowerPC
  20805. systems as well.
  20806. On PowerPC64 ELFv2 and 32-bit PowerPC systems with newer GNU
  20807. linkers, GCC can generate long calls using an inline PLT call
  20808. sequence (see '-mpltseq'). PowerPC with '-mbss-plt' and PowerPC64
  20809. ELFv1 (big-endian) do not support inline PLT calls.
  20810. On Darwin/PPC systems, '#pragma longcall' generates 'jbsr callee,
  20811. L42', plus a "branch island" (glue code). The two target addresses
  20812. represent the callee and the branch island. The Darwin/PPC linker
  20813. prefers the first address and generates a 'bl callee' if the PPC
  20814. 'bl' instruction reaches the callee directly; otherwise, the linker
  20815. generates 'bl L42' to call the branch island. The branch island is
  20816. appended to the body of the calling function; it computes the full
  20817. 32-bit address of the callee and jumps to it.
  20818. On Mach-O (Darwin) systems, this option directs the compiler emit
  20819. to the glue for every direct call, and the Darwin linker decides
  20820. whether to use or discard it.
  20821. In the future, GCC may ignore all longcall specifications when the
  20822. linker is known to generate glue.
  20823. '-mpltseq'
  20824. '-mno-pltseq'
  20825. Implement (do not implement) -fno-plt and long calls using an
  20826. inline PLT call sequence that supports lazy linking and long calls
  20827. to functions in dlopen'd shared libraries. Inline PLT calls are
  20828. only supported on PowerPC64 ELFv2 and 32-bit PowerPC systems with
  20829. newer GNU linkers, and are enabled by default if the support is
  20830. detected when configuring GCC, and, in the case of 32-bit PowerPC,
  20831. if GCC is configured with '--enable-secureplt'. '-mpltseq' code
  20832. and '-mbss-plt' 32-bit PowerPC relocatable objects may not be
  20833. linked together.
  20834. '-mtls-markers'
  20835. '-mno-tls-markers'
  20836. Mark (do not mark) calls to '__tls_get_addr' with a relocation
  20837. specifying the function argument. The relocation allows the linker
  20838. to reliably associate function call with argument setup
  20839. instructions for TLS optimization, which in turn allows GCC to
  20840. better schedule the sequence.
  20841. '-mrecip'
  20842. '-mno-recip'
  20843. This option enables use of the reciprocal estimate and reciprocal
  20844. square root estimate instructions with additional Newton-Raphson
  20845. steps to increase precision instead of doing a divide or square
  20846. root and divide for floating-point arguments. You should use the
  20847. '-ffast-math' option when using '-mrecip' (or at least
  20848. '-funsafe-math-optimizations', '-ffinite-math-only',
  20849. '-freciprocal-math' and '-fno-trapping-math'). Note that while the
  20850. throughput of the sequence is generally higher than the throughput
  20851. of the non-reciprocal instruction, the precision of the sequence
  20852. can be decreased by up to 2 ulp (i.e. the inverse of 1.0 equals
  20853. 0.99999994) for reciprocal square roots.
  20854. '-mrecip=OPT'
  20855. This option controls which reciprocal estimate instructions may be
  20856. used. OPT is a comma-separated list of options, which may be
  20857. preceded by a '!' to invert the option:
  20858. 'all'
  20859. Enable all estimate instructions.
  20860. 'default'
  20861. Enable the default instructions, equivalent to '-mrecip'.
  20862. 'none'
  20863. Disable all estimate instructions, equivalent to '-mno-recip'.
  20864. 'div'
  20865. Enable the reciprocal approximation instructions for both
  20866. single and double precision.
  20867. 'divf'
  20868. Enable the single-precision reciprocal approximation
  20869. instructions.
  20870. 'divd'
  20871. Enable the double-precision reciprocal approximation
  20872. instructions.
  20873. 'rsqrt'
  20874. Enable the reciprocal square root approximation instructions
  20875. for both single and double precision.
  20876. 'rsqrtf'
  20877. Enable the single-precision reciprocal square root
  20878. approximation instructions.
  20879. 'rsqrtd'
  20880. Enable the double-precision reciprocal square root
  20881. approximation instructions.
  20882. So, for example, '-mrecip=all,!rsqrtd' enables all of the
  20883. reciprocal estimate instructions, except for the 'FRSQRTE',
  20884. 'XSRSQRTEDP', and 'XVRSQRTEDP' instructions which handle the
  20885. double-precision reciprocal square root calculations.
  20886. '-mrecip-precision'
  20887. '-mno-recip-precision'
  20888. Assume (do not assume) that the reciprocal estimate instructions
  20889. provide higher-precision estimates than is mandated by the PowerPC
  20890. ABI. Selecting '-mcpu=power6', '-mcpu=power7' or '-mcpu=power8'
  20891. automatically selects '-mrecip-precision'. The double-precision
  20892. square root estimate instructions are not generated by default on
  20893. low-precision machines, since they do not provide an estimate that
  20894. converges after three steps.
  20895. '-mveclibabi=TYPE'
  20896. Specifies the ABI type to use for vectorizing intrinsics using an
  20897. external library. The only type supported at present is 'mass',
  20898. which specifies to use IBM's Mathematical Acceleration Subsystem
  20899. (MASS) libraries for vectorizing intrinsics using external
  20900. libraries. GCC currently emits calls to 'acosd2', 'acosf4',
  20901. 'acoshd2', 'acoshf4', 'asind2', 'asinf4', 'asinhd2', 'asinhf4',
  20902. 'atan2d2', 'atan2f4', 'atand2', 'atanf4', 'atanhd2', 'atanhf4',
  20903. 'cbrtd2', 'cbrtf4', 'cosd2', 'cosf4', 'coshd2', 'coshf4', 'erfcd2',
  20904. 'erfcf4', 'erfd2', 'erff4', 'exp2d2', 'exp2f4', 'expd2', 'expf4',
  20905. 'expm1d2', 'expm1f4', 'hypotd2', 'hypotf4', 'lgammad2', 'lgammaf4',
  20906. 'log10d2', 'log10f4', 'log1pd2', 'log1pf4', 'log2d2', 'log2f4',
  20907. 'logd2', 'logf4', 'powd2', 'powf4', 'sind2', 'sinf4', 'sinhd2',
  20908. 'sinhf4', 'sqrtd2', 'sqrtf4', 'tand2', 'tanf4', 'tanhd2', and
  20909. 'tanhf4' when generating code for power7. Both '-ftree-vectorize'
  20910. and '-funsafe-math-optimizations' must also be enabled. The MASS
  20911. libraries must be specified at link time.
  20912. '-mfriz'
  20913. '-mno-friz'
  20914. Generate (do not generate) the 'friz' instruction when the
  20915. '-funsafe-math-optimizations' option is used to optimize rounding
  20916. of floating-point values to 64-bit integer and back to floating
  20917. point. The 'friz' instruction does not return the same value if
  20918. the floating-point number is too large to fit in an integer.
  20919. '-mpointers-to-nested-functions'
  20920. '-mno-pointers-to-nested-functions'
  20921. Generate (do not generate) code to load up the static chain
  20922. register ('r11') when calling through a pointer on AIX and 64-bit
  20923. Linux systems where a function pointer points to a 3-word
  20924. descriptor giving the function address, TOC value to be loaded in
  20925. register 'r2', and static chain value to be loaded in register
  20926. 'r11'. The '-mpointers-to-nested-functions' is on by default. You
  20927. cannot call through pointers to nested functions or pointers to
  20928. functions compiled in other languages that use the static chain if
  20929. you use '-mno-pointers-to-nested-functions'.
  20930. '-msave-toc-indirect'
  20931. '-mno-save-toc-indirect'
  20932. Generate (do not generate) code to save the TOC value in the
  20933. reserved stack location in the function prologue if the function
  20934. calls through a pointer on AIX and 64-bit Linux systems. If the
  20935. TOC value is not saved in the prologue, it is saved just before the
  20936. call through the pointer. The '-mno-save-toc-indirect' option is
  20937. the default.
  20938. '-mcompat-align-parm'
  20939. '-mno-compat-align-parm'
  20940. Generate (do not generate) code to pass structure parameters with a
  20941. maximum alignment of 64 bits, for compatibility with older versions
  20942. of GCC.
  20943. Older versions of GCC (prior to 4.9.0) incorrectly did not align a
  20944. structure parameter on a 128-bit boundary when that structure
  20945. contained a member requiring 128-bit alignment. This is corrected
  20946. in more recent versions of GCC. This option may be used to generate
  20947. code that is compatible with functions compiled with older versions
  20948. of GCC.
  20949. The '-mno-compat-align-parm' option is the default.
  20950. '-mstack-protector-guard=GUARD'
  20951. '-mstack-protector-guard-reg=REG'
  20952. '-mstack-protector-guard-offset=OFFSET'
  20953. '-mstack-protector-guard-symbol=SYMBOL'
  20954. Generate stack protection code using canary at GUARD. Supported
  20955. locations are 'global' for global canary or 'tls' for per-thread
  20956. canary in the TLS block (the default with GNU libc version 2.4 or
  20957. later).
  20958. With the latter choice the options
  20959. '-mstack-protector-guard-reg=REG' and
  20960. '-mstack-protector-guard-offset=OFFSET' furthermore specify which
  20961. register to use as base register for reading the canary, and from
  20962. what offset from that base register. The default for those is as
  20963. specified in the relevant ABI.
  20964. '-mstack-protector-guard-symbol=SYMBOL' overrides the offset with a
  20965. symbol reference to a canary in the TLS block.
  20966. '-mpcrel'
  20967. '-mno-pcrel'
  20968. Generate (do not generate) pc-relative addressing when the option
  20969. '-mcpu=future' is used. The '-mpcrel' option requires that the
  20970. medium code model ('-mcmodel=medium') and prefixed addressing
  20971. ('-mprefixed') options are enabled.
  20972. '-mprefixed'
  20973. '-mno-prefixed'
  20974. Generate (do not generate) addressing modes using prefixed load and
  20975. store instructions when the option '-mcpu=future' is used.
  20976. '-mmma'
  20977. '-mno-mma'
  20978. Generate (do not generate) the MMA instructions when the option
  20979. '-mcpu=future' is used.
  20980. '-mblock-ops-unaligned-vsx'
  20981. '-mno-block-ops-unaligned-vsx'
  20982. Generate (do not generate) unaligned vsx loads and stores for
  20983. inline expansion of 'memcpy' and 'memmove'.
  20984. 
  20985. File: gcc.info, Node: RX Options, Next: S/390 and zSeries Options, Prev: RS/6000 and PowerPC Options, Up: Submodel Options
  20986. 3.19.45 RX Options
  20987. ------------------
  20988. These command-line options are defined for RX targets:
  20989. '-m64bit-doubles'
  20990. '-m32bit-doubles'
  20991. Make the 'double' data type be 64 bits ('-m64bit-doubles') or 32
  20992. bits ('-m32bit-doubles') in size. The default is
  20993. '-m32bit-doubles'. _Note_ RX floating-point hardware only works on
  20994. 32-bit values, which is why the default is '-m32bit-doubles'.
  20995. '-fpu'
  20996. '-nofpu'
  20997. Enables ('-fpu') or disables ('-nofpu') the use of RX
  20998. floating-point hardware. The default is enabled for the RX600
  20999. series and disabled for the RX200 series.
  21000. Floating-point instructions are only generated for 32-bit
  21001. floating-point values, however, so the FPU hardware is not used for
  21002. doubles if the '-m64bit-doubles' option is used.
  21003. _Note_ If the '-fpu' option is enabled then
  21004. '-funsafe-math-optimizations' is also enabled automatically. This
  21005. is because the RX FPU instructions are themselves unsafe.
  21006. '-mcpu=NAME'
  21007. Selects the type of RX CPU to be targeted. Currently three types
  21008. are supported, the generic 'RX600' and 'RX200' series hardware and
  21009. the specific 'RX610' CPU. The default is 'RX600'.
  21010. The only difference between 'RX600' and 'RX610' is that the 'RX610'
  21011. does not support the 'MVTIPL' instruction.
  21012. The 'RX200' series does not have a hardware floating-point unit and
  21013. so '-nofpu' is enabled by default when this type is selected.
  21014. '-mbig-endian-data'
  21015. '-mlittle-endian-data'
  21016. Store data (but not code) in the big-endian format. The default is
  21017. '-mlittle-endian-data', i.e. to store data in the little-endian
  21018. format.
  21019. '-msmall-data-limit=N'
  21020. Specifies the maximum size in bytes of global and static variables
  21021. which can be placed into the small data area. Using the small data
  21022. area can lead to smaller and faster code, but the size of area is
  21023. limited and it is up to the programmer to ensure that the area does
  21024. not overflow. Also when the small data area is used one of the
  21025. RX's registers (usually 'r13') is reserved for use pointing to this
  21026. area, so it is no longer available for use by the compiler. This
  21027. could result in slower and/or larger code if variables are pushed
  21028. onto the stack instead of being held in this register.
  21029. Note, common variables (variables that have not been initialized)
  21030. and constants are not placed into the small data area as they are
  21031. assigned to other sections in the output executable.
  21032. The default value is zero, which disables this feature. Note, this
  21033. feature is not enabled by default with higher optimization levels
  21034. ('-O2' etc) because of the potentially detrimental effects of
  21035. reserving a register. It is up to the programmer to experiment and
  21036. discover whether this feature is of benefit to their program. See
  21037. the description of the '-mpid' option for a description of how the
  21038. actual register to hold the small data area pointer is chosen.
  21039. '-msim'
  21040. '-mno-sim'
  21041. Use the simulator runtime. The default is to use the libgloss
  21042. board-specific runtime.
  21043. '-mas100-syntax'
  21044. '-mno-as100-syntax'
  21045. When generating assembler output use a syntax that is compatible
  21046. with Renesas's AS100 assembler. This syntax can also be handled by
  21047. the GAS assembler, but it has some restrictions so it is not
  21048. generated by default.
  21049. '-mmax-constant-size=N'
  21050. Specifies the maximum size, in bytes, of a constant that can be
  21051. used as an operand in a RX instruction. Although the RX
  21052. instruction set does allow constants of up to 4 bytes in length to
  21053. be used in instructions, a longer value equates to a longer
  21054. instruction. Thus in some circumstances it can be beneficial to
  21055. restrict the size of constants that are used in instructions.
  21056. Constants that are too big are instead placed into a constant pool
  21057. and referenced via register indirection.
  21058. The value N can be between 0 and 4. A value of 0 (the default) or
  21059. 4 means that constants of any size are allowed.
  21060. '-mrelax'
  21061. Enable linker relaxation. Linker relaxation is a process whereby
  21062. the linker attempts to reduce the size of a program by finding
  21063. shorter versions of various instructions. Disabled by default.
  21064. '-mint-register=N'
  21065. Specify the number of registers to reserve for fast interrupt
  21066. handler functions. The value N can be between 0 and 4. A value of
  21067. 1 means that register 'r13' is reserved for the exclusive use of
  21068. fast interrupt handlers. A value of 2 reserves 'r13' and 'r12'. A
  21069. value of 3 reserves 'r13', 'r12' and 'r11', and a value of 4
  21070. reserves 'r13' through 'r10'. A value of 0, the default, does not
  21071. reserve any registers.
  21072. '-msave-acc-in-interrupts'
  21073. Specifies that interrupt handler functions should preserve the
  21074. accumulator register. This is only necessary if normal code might
  21075. use the accumulator register, for example because it performs
  21076. 64-bit multiplications. The default is to ignore the accumulator
  21077. as this makes the interrupt handlers faster.
  21078. '-mpid'
  21079. '-mno-pid'
  21080. Enables the generation of position independent data. When enabled
  21081. any access to constant data is done via an offset from a base
  21082. address held in a register. This allows the location of constant
  21083. data to be determined at run time without requiring the executable
  21084. to be relocated, which is a benefit to embedded applications with
  21085. tight memory constraints. Data that can be modified is not
  21086. affected by this option.
  21087. Note, using this feature reserves a register, usually 'r13', for
  21088. the constant data base address. This can result in slower and/or
  21089. larger code, especially in complicated functions.
  21090. The actual register chosen to hold the constant data base address
  21091. depends upon whether the '-msmall-data-limit' and/or the
  21092. '-mint-register' command-line options are enabled. Starting with
  21093. register 'r13' and proceeding downwards, registers are allocated
  21094. first to satisfy the requirements of '-mint-register', then '-mpid'
  21095. and finally '-msmall-data-limit'. Thus it is possible for the
  21096. small data area register to be 'r8' if both '-mint-register=4' and
  21097. '-mpid' are specified on the command line.
  21098. By default this feature is not enabled. The default can be
  21099. restored via the '-mno-pid' command-line option.
  21100. '-mno-warn-multiple-fast-interrupts'
  21101. '-mwarn-multiple-fast-interrupts'
  21102. Prevents GCC from issuing a warning message if it finds more than
  21103. one fast interrupt handler when it is compiling a file. The
  21104. default is to issue a warning for each extra fast interrupt handler
  21105. found, as the RX only supports one such interrupt.
  21106. '-mallow-string-insns'
  21107. '-mno-allow-string-insns'
  21108. Enables or disables the use of the string manipulation instructions
  21109. 'SMOVF', 'SCMPU', 'SMOVB', 'SMOVU', 'SUNTIL' 'SWHILE' and also the
  21110. 'RMPA' instruction. These instructions may prefetch data, which is
  21111. not safe to do if accessing an I/O register. (See section 12.2.7
  21112. of the RX62N Group User's Manual for more information).
  21113. The default is to allow these instructions, but it is not possible
  21114. for GCC to reliably detect all circumstances where a string
  21115. instruction might be used to access an I/O register, so their use
  21116. cannot be disabled automatically. Instead it is reliant upon the
  21117. programmer to use the '-mno-allow-string-insns' option if their
  21118. program accesses I/O space.
  21119. When the instructions are enabled GCC defines the C preprocessor
  21120. symbol '__RX_ALLOW_STRING_INSNS__', otherwise it defines the symbol
  21121. '__RX_DISALLOW_STRING_INSNS__'.
  21122. '-mjsr'
  21123. '-mno-jsr'
  21124. Use only (or not only) 'JSR' instructions to access functions.
  21125. This option can be used when code size exceeds the range of 'BSR'
  21126. instructions. Note that '-mno-jsr' does not mean to not use 'JSR'
  21127. but instead means that any type of branch may be used.
  21128. _Note:_ The generic GCC command-line option '-ffixed-REG' has special
  21129. significance to the RX port when used with the 'interrupt' function
  21130. attribute. This attribute indicates a function intended to process fast
  21131. interrupts. GCC ensures that it only uses the registers 'r10', 'r11',
  21132. 'r12' and/or 'r13' and only provided that the normal use of the
  21133. corresponding registers have been restricted via the '-ffixed-REG' or
  21134. '-mint-register' command-line options.
  21135. 
  21136. File: gcc.info, Node: S/390 and zSeries Options, Next: Score Options, Prev: RX Options, Up: Submodel Options
  21137. 3.19.46 S/390 and zSeries Options
  21138. ---------------------------------
  21139. These are the '-m' options defined for the S/390 and zSeries
  21140. architecture.
  21141. '-mhard-float'
  21142. '-msoft-float'
  21143. Use (do not use) the hardware floating-point instructions and
  21144. registers for floating-point operations. When '-msoft-float' is
  21145. specified, functions in 'libgcc.a' are used to perform
  21146. floating-point operations. When '-mhard-float' is specified, the
  21147. compiler generates IEEE floating-point instructions. This is the
  21148. default.
  21149. '-mhard-dfp'
  21150. '-mno-hard-dfp'
  21151. Use (do not use) the hardware decimal-floating-point instructions
  21152. for decimal-floating-point operations. When '-mno-hard-dfp' is
  21153. specified, functions in 'libgcc.a' are used to perform
  21154. decimal-floating-point operations. When '-mhard-dfp' is specified,
  21155. the compiler generates decimal-floating-point hardware
  21156. instructions. This is the default for '-march=z9-ec' or higher.
  21157. '-mlong-double-64'
  21158. '-mlong-double-128'
  21159. These switches control the size of 'long double' type. A size of
  21160. 64 bits makes the 'long double' type equivalent to the 'double'
  21161. type. This is the default.
  21162. '-mbackchain'
  21163. '-mno-backchain'
  21164. Store (do not store) the address of the caller's frame as backchain
  21165. pointer into the callee's stack frame. A backchain may be needed
  21166. to allow debugging using tools that do not understand DWARF call
  21167. frame information. When '-mno-packed-stack' is in effect, the
  21168. backchain pointer is stored at the bottom of the stack frame; when
  21169. '-mpacked-stack' is in effect, the backchain is placed into the
  21170. topmost word of the 96/160 byte register save area.
  21171. In general, code compiled with '-mbackchain' is call-compatible
  21172. with code compiled with '-mno-backchain'; however, use of the
  21173. backchain for debugging purposes usually requires that the whole
  21174. binary is built with '-mbackchain'. Note that the combination of
  21175. '-mbackchain', '-mpacked-stack' and '-mhard-float' is not
  21176. supported. In order to build a linux kernel use '-msoft-float'.
  21177. The default is to not maintain the backchain.
  21178. '-mpacked-stack'
  21179. '-mno-packed-stack'
  21180. Use (do not use) the packed stack layout. When '-mno-packed-stack'
  21181. is specified, the compiler uses the all fields of the 96/160 byte
  21182. register save area only for their default purpose; unused fields
  21183. still take up stack space. When '-mpacked-stack' is specified,
  21184. register save slots are densely packed at the top of the register
  21185. save area; unused space is reused for other purposes, allowing for
  21186. more efficient use of the available stack space. However, when
  21187. '-mbackchain' is also in effect, the topmost word of the save area
  21188. is always used to store the backchain, and the return address
  21189. register is always saved two words below the backchain.
  21190. As long as the stack frame backchain is not used, code generated
  21191. with '-mpacked-stack' is call-compatible with code generated with
  21192. '-mno-packed-stack'. Note that some non-FSF releases of GCC 2.95
  21193. for S/390 or zSeries generated code that uses the stack frame
  21194. backchain at run time, not just for debugging purposes. Such code
  21195. is not call-compatible with code compiled with '-mpacked-stack'.
  21196. Also, note that the combination of '-mbackchain', '-mpacked-stack'
  21197. and '-mhard-float' is not supported. In order to build a linux
  21198. kernel use '-msoft-float'.
  21199. The default is to not use the packed stack layout.
  21200. '-msmall-exec'
  21201. '-mno-small-exec'
  21202. Generate (or do not generate) code using the 'bras' instruction to
  21203. do subroutine calls. This only works reliably if the total
  21204. executable size does not exceed 64k. The default is to use the
  21205. 'basr' instruction instead, which does not have this limitation.
  21206. '-m64'
  21207. '-m31'
  21208. When '-m31' is specified, generate code compliant to the GNU/Linux
  21209. for S/390 ABI. When '-m64' is specified, generate code compliant
  21210. to the GNU/Linux for zSeries ABI. This allows GCC in particular to
  21211. generate 64-bit instructions. For the 's390' targets, the default
  21212. is '-m31', while the 's390x' targets default to '-m64'.
  21213. '-mzarch'
  21214. '-mesa'
  21215. When '-mzarch' is specified, generate code using the instructions
  21216. available on z/Architecture. When '-mesa' is specified, generate
  21217. code using the instructions available on ESA/390. Note that
  21218. '-mesa' is not possible with '-m64'. When generating code
  21219. compliant to the GNU/Linux for S/390 ABI, the default is '-mesa'.
  21220. When generating code compliant to the GNU/Linux for zSeries ABI,
  21221. the default is '-mzarch'.
  21222. '-mhtm'
  21223. '-mno-htm'
  21224. The '-mhtm' option enables a set of builtins making use of
  21225. instructions available with the transactional execution facility
  21226. introduced with the IBM zEnterprise EC12 machine generation *note
  21227. S/390 System z Built-in Functions::. '-mhtm' is enabled by default
  21228. when using '-march=zEC12'.
  21229. '-mvx'
  21230. '-mno-vx'
  21231. When '-mvx' is specified, generate code using the instructions
  21232. available with the vector extension facility introduced with the
  21233. IBM z13 machine generation. This option changes the ABI for some
  21234. vector type values with regard to alignment and calling
  21235. conventions. In case vector type values are being used in an
  21236. ABI-relevant context a GAS '.gnu_attribute' command will be added
  21237. to mark the resulting binary with the ABI used. '-mvx' is enabled
  21238. by default when using '-march=z13'.
  21239. '-mzvector'
  21240. '-mno-zvector'
  21241. The '-mzvector' option enables vector language extensions and
  21242. builtins using instructions available with the vector extension
  21243. facility introduced with the IBM z13 machine generation. This
  21244. option adds support for 'vector' to be used as a keyword to define
  21245. vector type variables and arguments. 'vector' is only available
  21246. when GNU extensions are enabled. It will not be expanded when
  21247. requesting strict standard compliance e.g. with '-std=c99'. In
  21248. addition to the GCC low-level builtins '-mzvector' enables a set of
  21249. builtins added for compatibility with AltiVec-style implementations
  21250. like Power and Cell. In order to make use of these builtins the
  21251. header file 'vecintrin.h' needs to be included. '-mzvector' is
  21252. disabled by default.
  21253. '-mmvcle'
  21254. '-mno-mvcle'
  21255. Generate (or do not generate) code using the 'mvcle' instruction to
  21256. perform block moves. When '-mno-mvcle' is specified, use a 'mvc'
  21257. loop instead. This is the default unless optimizing for size.
  21258. '-mdebug'
  21259. '-mno-debug'
  21260. Print (or do not print) additional debug information when
  21261. compiling. The default is to not print debug information.
  21262. '-march=CPU-TYPE'
  21263. Generate code that runs on CPU-TYPE, which is the name of a system
  21264. representing a certain processor type. Possible values for
  21265. CPU-TYPE are 'z900'/'arch5', 'z990'/'arch6', 'z9-109',
  21266. 'z9-ec'/'arch7', 'z10'/'arch8', 'z196'/'arch9', 'zEC12',
  21267. 'z13'/'arch11', 'z14'/'arch12', 'z15'/'arch13', and 'native'.
  21268. The default is '-march=z900'.
  21269. Specifying 'native' as cpu type can be used to select the best
  21270. architecture option for the host processor. '-march=native' has no
  21271. effect if GCC does not recognize the processor.
  21272. '-mtune=CPU-TYPE'
  21273. Tune to CPU-TYPE everything applicable about the generated code,
  21274. except for the ABI and the set of available instructions. The list
  21275. of CPU-TYPE values is the same as for '-march'. The default is the
  21276. value used for '-march'.
  21277. '-mtpf-trace'
  21278. '-mno-tpf-trace'
  21279. Generate code that adds (does not add) in TPF OS specific branches
  21280. to trace routines in the operating system. This option is off by
  21281. default, even when compiling for the TPF OS.
  21282. '-mtpf-trace-skip'
  21283. '-mno-tpf-trace-skip'
  21284. Generate code that changes (does not change) the default branch
  21285. targets enabled by '-mtpf-trace' to point to specialized trace
  21286. routines providing the ability of selectively skipping function
  21287. trace entries for the TPF OS. This option is off by default, even
  21288. when compiling for the TPF OS and specifying '-mtpf-trace'.
  21289. '-mfused-madd'
  21290. '-mno-fused-madd'
  21291. Generate code that uses (does not use) the floating-point multiply
  21292. and accumulate instructions. These instructions are generated by
  21293. default if hardware floating point is used.
  21294. '-mwarn-framesize=FRAMESIZE'
  21295. Emit a warning if the current function exceeds the given frame
  21296. size. Because this is a compile-time check it doesn't need to be a
  21297. real problem when the program runs. It is intended to identify
  21298. functions that most probably cause a stack overflow. It is useful
  21299. to be used in an environment with limited stack size e.g. the linux
  21300. kernel.
  21301. '-mwarn-dynamicstack'
  21302. Emit a warning if the function calls 'alloca' or uses
  21303. dynamically-sized arrays. This is generally a bad idea with a
  21304. limited stack size.
  21305. '-mstack-guard=STACK-GUARD'
  21306. '-mstack-size=STACK-SIZE'
  21307. If these options are provided the S/390 back end emits additional
  21308. instructions in the function prologue that trigger a trap if the
  21309. stack size is STACK-GUARD bytes above the STACK-SIZE (remember that
  21310. the stack on S/390 grows downward). If the STACK-GUARD option is
  21311. omitted the smallest power of 2 larger than the frame size of the
  21312. compiled function is chosen. These options are intended to be used
  21313. to help debugging stack overflow problems. The additionally
  21314. emitted code causes only little overhead and hence can also be used
  21315. in production-like systems without greater performance degradation.
  21316. The given values have to be exact powers of 2 and STACK-SIZE has to
  21317. be greater than STACK-GUARD without exceeding 64k. In order to be
  21318. efficient the extra code makes the assumption that the stack starts
  21319. at an address aligned to the value given by STACK-SIZE. The
  21320. STACK-GUARD option can only be used in conjunction with STACK-SIZE.
  21321. '-mhotpatch=PRE-HALFWORDS,POST-HALFWORDS'
  21322. If the hotpatch option is enabled, a "hot-patching" function
  21323. prologue is generated for all functions in the compilation unit.
  21324. The funtion label is prepended with the given number of two-byte
  21325. NOP instructions (PRE-HALFWORDS, maximum 1000000). After the
  21326. label, 2 * POST-HALFWORDS bytes are appended, using the largest NOP
  21327. like instructions the architecture allows (maximum 1000000).
  21328. If both arguments are zero, hotpatching is disabled.
  21329. This option can be overridden for individual functions with the
  21330. 'hotpatch' attribute.
  21331. 
  21332. File: gcc.info, Node: Score Options, Next: SH Options, Prev: S/390 and zSeries Options, Up: Submodel Options
  21333. 3.19.47 Score Options
  21334. ---------------------
  21335. These options are defined for Score implementations:
  21336. '-meb'
  21337. Compile code for big-endian mode. This is the default.
  21338. '-mel'
  21339. Compile code for little-endian mode.
  21340. '-mnhwloop'
  21341. Disable generation of 'bcnz' instructions.
  21342. '-muls'
  21343. Enable generation of unaligned load and store instructions.
  21344. '-mmac'
  21345. Enable the use of multiply-accumulate instructions. Disabled by
  21346. default.
  21347. '-mscore5'
  21348. Specify the SCORE5 as the target architecture.
  21349. '-mscore5u'
  21350. Specify the SCORE5U of the target architecture.
  21351. '-mscore7'
  21352. Specify the SCORE7 as the target architecture. This is the
  21353. default.
  21354. '-mscore7d'
  21355. Specify the SCORE7D as the target architecture.
  21356. 
  21357. File: gcc.info, Node: SH Options, Next: Solaris 2 Options, Prev: Score Options, Up: Submodel Options
  21358. 3.19.48 SH Options
  21359. ------------------
  21360. These '-m' options are defined for the SH implementations:
  21361. '-m1'
  21362. Generate code for the SH1.
  21363. '-m2'
  21364. Generate code for the SH2.
  21365. '-m2e'
  21366. Generate code for the SH2e.
  21367. '-m2a-nofpu'
  21368. Generate code for the SH2a without FPU, or for a SH2a-FPU in such a
  21369. way that the floating-point unit is not used.
  21370. '-m2a-single-only'
  21371. Generate code for the SH2a-FPU, in such a way that no
  21372. double-precision floating-point operations are used.
  21373. '-m2a-single'
  21374. Generate code for the SH2a-FPU assuming the floating-point unit is
  21375. in single-precision mode by default.
  21376. '-m2a'
  21377. Generate code for the SH2a-FPU assuming the floating-point unit is
  21378. in double-precision mode by default.
  21379. '-m3'
  21380. Generate code for the SH3.
  21381. '-m3e'
  21382. Generate code for the SH3e.
  21383. '-m4-nofpu'
  21384. Generate code for the SH4 without a floating-point unit.
  21385. '-m4-single-only'
  21386. Generate code for the SH4 with a floating-point unit that only
  21387. supports single-precision arithmetic.
  21388. '-m4-single'
  21389. Generate code for the SH4 assuming the floating-point unit is in
  21390. single-precision mode by default.
  21391. '-m4'
  21392. Generate code for the SH4.
  21393. '-m4-100'
  21394. Generate code for SH4-100.
  21395. '-m4-100-nofpu'
  21396. Generate code for SH4-100 in such a way that the floating-point
  21397. unit is not used.
  21398. '-m4-100-single'
  21399. Generate code for SH4-100 assuming the floating-point unit is in
  21400. single-precision mode by default.
  21401. '-m4-100-single-only'
  21402. Generate code for SH4-100 in such a way that no double-precision
  21403. floating-point operations are used.
  21404. '-m4-200'
  21405. Generate code for SH4-200.
  21406. '-m4-200-nofpu'
  21407. Generate code for SH4-200 without in such a way that the
  21408. floating-point unit is not used.
  21409. '-m4-200-single'
  21410. Generate code for SH4-200 assuming the floating-point unit is in
  21411. single-precision mode by default.
  21412. '-m4-200-single-only'
  21413. Generate code for SH4-200 in such a way that no double-precision
  21414. floating-point operations are used.
  21415. '-m4-300'
  21416. Generate code for SH4-300.
  21417. '-m4-300-nofpu'
  21418. Generate code for SH4-300 without in such a way that the
  21419. floating-point unit is not used.
  21420. '-m4-300-single'
  21421. Generate code for SH4-300 in such a way that no double-precision
  21422. floating-point operations are used.
  21423. '-m4-300-single-only'
  21424. Generate code for SH4-300 in such a way that no double-precision
  21425. floating-point operations are used.
  21426. '-m4-340'
  21427. Generate code for SH4-340 (no MMU, no FPU).
  21428. '-m4-500'
  21429. Generate code for SH4-500 (no FPU). Passes '-isa=sh4-nofpu' to the
  21430. assembler.
  21431. '-m4a-nofpu'
  21432. Generate code for the SH4al-dsp, or for a SH4a in such a way that
  21433. the floating-point unit is not used.
  21434. '-m4a-single-only'
  21435. Generate code for the SH4a, in such a way that no double-precision
  21436. floating-point operations are used.
  21437. '-m4a-single'
  21438. Generate code for the SH4a assuming the floating-point unit is in
  21439. single-precision mode by default.
  21440. '-m4a'
  21441. Generate code for the SH4a.
  21442. '-m4al'
  21443. Same as '-m4a-nofpu', except that it implicitly passes '-dsp' to
  21444. the assembler. GCC doesn't generate any DSP instructions at the
  21445. moment.
  21446. '-mb'
  21447. Compile code for the processor in big-endian mode.
  21448. '-ml'
  21449. Compile code for the processor in little-endian mode.
  21450. '-mdalign'
  21451. Align doubles at 64-bit boundaries. Note that this changes the
  21452. calling conventions, and thus some functions from the standard C
  21453. library do not work unless you recompile it first with '-mdalign'.
  21454. '-mrelax'
  21455. Shorten some address references at link time, when possible; uses
  21456. the linker option '-relax'.
  21457. '-mbigtable'
  21458. Use 32-bit offsets in 'switch' tables. The default is to use
  21459. 16-bit offsets.
  21460. '-mbitops'
  21461. Enable the use of bit manipulation instructions on SH2A.
  21462. '-mfmovd'
  21463. Enable the use of the instruction 'fmovd'. Check '-mdalign' for
  21464. alignment constraints.
  21465. '-mrenesas'
  21466. Comply with the calling conventions defined by Renesas.
  21467. '-mno-renesas'
  21468. Comply with the calling conventions defined for GCC before the
  21469. Renesas conventions were available. This option is the default for
  21470. all targets of the SH toolchain.
  21471. '-mnomacsave'
  21472. Mark the 'MAC' register as call-clobbered, even if '-mrenesas' is
  21473. given.
  21474. '-mieee'
  21475. '-mno-ieee'
  21476. Control the IEEE compliance of floating-point comparisons, which
  21477. affects the handling of cases where the result of a comparison is
  21478. unordered. By default '-mieee' is implicitly enabled. If
  21479. '-ffinite-math-only' is enabled '-mno-ieee' is implicitly set,
  21480. which results in faster floating-point greater-equal and less-equal
  21481. comparisons. The implicit settings can be overridden by specifying
  21482. either '-mieee' or '-mno-ieee'.
  21483. '-minline-ic_invalidate'
  21484. Inline code to invalidate instruction cache entries after setting
  21485. up nested function trampolines. This option has no effect if
  21486. '-musermode' is in effect and the selected code generation option
  21487. (e.g. '-m4') does not allow the use of the 'icbi' instruction. If
  21488. the selected code generation option does not allow the use of the
  21489. 'icbi' instruction, and '-musermode' is not in effect, the inlined
  21490. code manipulates the instruction cache address array directly with
  21491. an associative write. This not only requires privileged mode at
  21492. run time, but it also fails if the cache line had been mapped via
  21493. the TLB and has become unmapped.
  21494. '-misize'
  21495. Dump instruction size and location in the assembly code.
  21496. '-mpadstruct'
  21497. This option is deprecated. It pads structures to multiple of 4
  21498. bytes, which is incompatible with the SH ABI.
  21499. '-matomic-model=MODEL'
  21500. Sets the model of atomic operations and additional parameters as a
  21501. comma separated list. For details on the atomic built-in functions
  21502. see *note __atomic Builtins::. The following models and parameters
  21503. are supported:
  21504. 'none'
  21505. Disable compiler generated atomic sequences and emit library
  21506. calls for atomic operations. This is the default if the
  21507. target is not 'sh*-*-linux*'.
  21508. 'soft-gusa'
  21509. Generate GNU/Linux compatible gUSA software atomic sequences
  21510. for the atomic built-in functions. The generated atomic
  21511. sequences require additional support from the
  21512. interrupt/exception handling code of the system and are only
  21513. suitable for SH3* and SH4* single-core systems. This option
  21514. is enabled by default when the target is 'sh*-*-linux*' and
  21515. SH3* or SH4*. When the target is SH4A, this option also
  21516. partially utilizes the hardware atomic instructions 'movli.l'
  21517. and 'movco.l' to create more efficient code, unless 'strict'
  21518. is specified.
  21519. 'soft-tcb'
  21520. Generate software atomic sequences that use a variable in the
  21521. thread control block. This is a variation of the gUSA
  21522. sequences which can also be used on SH1* and SH2* targets.
  21523. The generated atomic sequences require additional support from
  21524. the interrupt/exception handling code of the system and are
  21525. only suitable for single-core systems. When using this model,
  21526. the 'gbr-offset=' parameter has to be specified as well.
  21527. 'soft-imask'
  21528. Generate software atomic sequences that temporarily disable
  21529. interrupts by setting 'SR.IMASK = 1111'. This model works
  21530. only when the program runs in privileged mode and is only
  21531. suitable for single-core systems. Additional support from the
  21532. interrupt/exception handling code of the system is not
  21533. required. This model is enabled by default when the target is
  21534. 'sh*-*-linux*' and SH1* or SH2*.
  21535. 'hard-llcs'
  21536. Generate hardware atomic sequences using the 'movli.l' and
  21537. 'movco.l' instructions only. This is only available on SH4A
  21538. and is suitable for multi-core systems. Since the hardware
  21539. instructions support only 32 bit atomic variables access to 8
  21540. or 16 bit variables is emulated with 32 bit accesses. Code
  21541. compiled with this option is also compatible with other
  21542. software atomic model interrupt/exception handling systems if
  21543. executed on an SH4A system. Additional support from the
  21544. interrupt/exception handling code of the system is not
  21545. required for this model.
  21546. 'gbr-offset='
  21547. This parameter specifies the offset in bytes of the variable
  21548. in the thread control block structure that should be used by
  21549. the generated atomic sequences when the 'soft-tcb' model has
  21550. been selected. For other models this parameter is ignored.
  21551. The specified value must be an integer multiple of four and in
  21552. the range 0-1020.
  21553. 'strict'
  21554. This parameter prevents mixed usage of multiple atomic models,
  21555. even if they are compatible, and makes the compiler generate
  21556. atomic sequences of the specified model only.
  21557. '-mtas'
  21558. Generate the 'tas.b' opcode for '__atomic_test_and_set'. Notice
  21559. that depending on the particular hardware and software
  21560. configuration this can degrade overall performance due to the
  21561. operand cache line flushes that are implied by the 'tas.b'
  21562. instruction. On multi-core SH4A processors the 'tas.b' instruction
  21563. must be used with caution since it can result in data corruption
  21564. for certain cache configurations.
  21565. '-mprefergot'
  21566. When generating position-independent code, emit function calls
  21567. using the Global Offset Table instead of the Procedure Linkage
  21568. Table.
  21569. '-musermode'
  21570. '-mno-usermode'
  21571. Don't allow (allow) the compiler generating privileged mode code.
  21572. Specifying '-musermode' also implies '-mno-inline-ic_invalidate' if
  21573. the inlined code would not work in user mode. '-musermode' is the
  21574. default when the target is 'sh*-*-linux*'. If the target is SH1*
  21575. or SH2* '-musermode' has no effect, since there is no user mode.
  21576. '-multcost=NUMBER'
  21577. Set the cost to assume for a multiply insn.
  21578. '-mdiv=STRATEGY'
  21579. Set the division strategy to be used for integer division
  21580. operations. STRATEGY can be one of:
  21581. 'call-div1'
  21582. Calls a library function that uses the single-step division
  21583. instruction 'div1' to perform the operation. Division by zero
  21584. calculates an unspecified result and does not trap. This is
  21585. the default except for SH4, SH2A and SHcompact.
  21586. 'call-fp'
  21587. Calls a library function that performs the operation in double
  21588. precision floating point. Division by zero causes a
  21589. floating-point exception. This is the default for SHcompact
  21590. with FPU. Specifying this for targets that do not have a
  21591. double precision FPU defaults to 'call-div1'.
  21592. 'call-table'
  21593. Calls a library function that uses a lookup table for small
  21594. divisors and the 'div1' instruction with case distinction for
  21595. larger divisors. Division by zero calculates an unspecified
  21596. result and does not trap. This is the default for SH4.
  21597. Specifying this for targets that do not have dynamic shift
  21598. instructions defaults to 'call-div1'.
  21599. When a division strategy has not been specified the default
  21600. strategy is selected based on the current target. For SH2A the
  21601. default strategy is to use the 'divs' and 'divu' instructions
  21602. instead of library function calls.
  21603. '-maccumulate-outgoing-args'
  21604. Reserve space once for outgoing arguments in the function prologue
  21605. rather than around each call. Generally beneficial for performance
  21606. and size. Also needed for unwinding to avoid changing the stack
  21607. frame around conditional code.
  21608. '-mdivsi3_libfunc=NAME'
  21609. Set the name of the library function used for 32-bit signed
  21610. division to NAME. This only affects the name used in the 'call'
  21611. division strategies, and the compiler still expects the same sets
  21612. of input/output/clobbered registers as if this option were not
  21613. present.
  21614. '-mfixed-range=REGISTER-RANGE'
  21615. Generate code treating the given register range as fixed registers.
  21616. A fixed register is one that the register allocator cannot use.
  21617. This is useful when compiling kernel code. A register range is
  21618. specified as two registers separated by a dash. Multiple register
  21619. ranges can be specified separated by a comma.
  21620. '-mbranch-cost=NUM'
  21621. Assume NUM to be the cost for a branch instruction. Higher numbers
  21622. make the compiler try to generate more branch-free code if
  21623. possible. If not specified the value is selected depending on the
  21624. processor type that is being compiled for.
  21625. '-mzdcbranch'
  21626. '-mno-zdcbranch'
  21627. Assume (do not assume) that zero displacement conditional branch
  21628. instructions 'bt' and 'bf' are fast. If '-mzdcbranch' is
  21629. specified, the compiler prefers zero displacement branch code
  21630. sequences. This is enabled by default when generating code for SH4
  21631. and SH4A. It can be explicitly disabled by specifying
  21632. '-mno-zdcbranch'.
  21633. '-mcbranch-force-delay-slot'
  21634. Force the usage of delay slots for conditional branches, which
  21635. stuffs the delay slot with a 'nop' if a suitable instruction cannot
  21636. be found. By default this option is disabled. It can be enabled
  21637. to work around hardware bugs as found in the original SH7055.
  21638. '-mfused-madd'
  21639. '-mno-fused-madd'
  21640. Generate code that uses (does not use) the floating-point multiply
  21641. and accumulate instructions. These instructions are generated by
  21642. default if hardware floating point is used. The machine-dependent
  21643. '-mfused-madd' option is now mapped to the machine-independent
  21644. '-ffp-contract=fast' option, and '-mno-fused-madd' is mapped to
  21645. '-ffp-contract=off'.
  21646. '-mfsca'
  21647. '-mno-fsca'
  21648. Allow or disallow the compiler to emit the 'fsca' instruction for
  21649. sine and cosine approximations. The option '-mfsca' must be used
  21650. in combination with '-funsafe-math-optimizations'. It is enabled
  21651. by default when generating code for SH4A. Using '-mno-fsca'
  21652. disables sine and cosine approximations even if
  21653. '-funsafe-math-optimizations' is in effect.
  21654. '-mfsrra'
  21655. '-mno-fsrra'
  21656. Allow or disallow the compiler to emit the 'fsrra' instruction for
  21657. reciprocal square root approximations. The option '-mfsrra' must
  21658. be used in combination with '-funsafe-math-optimizations' and
  21659. '-ffinite-math-only'. It is enabled by default when generating
  21660. code for SH4A. Using '-mno-fsrra' disables reciprocal square root
  21661. approximations even if '-funsafe-math-optimizations' and
  21662. '-ffinite-math-only' are in effect.
  21663. '-mpretend-cmove'
  21664. Prefer zero-displacement conditional branches for conditional move
  21665. instruction patterns. This can result in faster code on the SH4
  21666. processor.
  21667. '-mfdpic'
  21668. Generate code using the FDPIC ABI.
  21669. 
  21670. File: gcc.info, Node: Solaris 2 Options, Next: SPARC Options, Prev: SH Options, Up: Submodel Options
  21671. 3.19.49 Solaris 2 Options
  21672. -------------------------
  21673. These '-m' options are supported on Solaris 2:
  21674. '-mclear-hwcap'
  21675. '-mclear-hwcap' tells the compiler to remove the hardware
  21676. capabilities generated by the Solaris assembler. This is only
  21677. necessary when object files use ISA extensions not supported by the
  21678. current machine, but check at runtime whether or not to use them.
  21679. '-mimpure-text'
  21680. '-mimpure-text', used in addition to '-shared', tells the compiler
  21681. to not pass '-z text' to the linker when linking a shared object.
  21682. Using this option, you can link position-dependent code into a
  21683. shared object.
  21684. '-mimpure-text' suppresses the "relocations remain against
  21685. allocatable but non-writable sections" linker error message.
  21686. However, the necessary relocations trigger copy-on-write, and the
  21687. shared object is not actually shared across processes. Instead of
  21688. using '-mimpure-text', you should compile all source code with
  21689. '-fpic' or '-fPIC'.
  21690. These switches are supported in addition to the above on Solaris 2:
  21691. '-pthreads'
  21692. This is a synonym for '-pthread'.
  21693. 
  21694. File: gcc.info, Node: SPARC Options, Next: System V Options, Prev: Solaris 2 Options, Up: Submodel Options
  21695. 3.19.50 SPARC Options
  21696. ---------------------
  21697. These '-m' options are supported on the SPARC:
  21698. '-mno-app-regs'
  21699. '-mapp-regs'
  21700. Specify '-mapp-regs' to generate output using the global registers
  21701. 2 through 4, which the SPARC SVR4 ABI reserves for applications.
  21702. Like the global register 1, each global register 2 through 4 is
  21703. then treated as an allocable register that is clobbered by function
  21704. calls. This is the default.
  21705. To be fully SVR4 ABI-compliant at the cost of some performance
  21706. loss, specify '-mno-app-regs'. You should compile libraries and
  21707. system software with this option.
  21708. '-mflat'
  21709. '-mno-flat'
  21710. With '-mflat', the compiler does not generate save/restore
  21711. instructions and uses a "flat" or single register window model.
  21712. This model is compatible with the regular register window model.
  21713. The local registers and the input registers (0-5) are still treated
  21714. as "call-saved" registers and are saved on the stack as needed.
  21715. With '-mno-flat' (the default), the compiler generates save/restore
  21716. instructions (except for leaf functions). This is the normal
  21717. operating mode.
  21718. '-mfpu'
  21719. '-mhard-float'
  21720. Generate output containing floating-point instructions. This is
  21721. the default.
  21722. '-mno-fpu'
  21723. '-msoft-float'
  21724. Generate output containing library calls for floating point.
  21725. *Warning:* the requisite libraries are not available for all SPARC
  21726. targets. Normally the facilities of the machine's usual C compiler
  21727. are used, but this cannot be done directly in cross-compilation.
  21728. You must make your own arrangements to provide suitable library
  21729. functions for cross-compilation. The embedded targets
  21730. 'sparc-*-aout' and 'sparclite-*-*' do provide software
  21731. floating-point support.
  21732. '-msoft-float' changes the calling convention in the output file;
  21733. therefore, it is only useful if you compile _all_ of a program with
  21734. this option. In particular, you need to compile 'libgcc.a', the
  21735. library that comes with GCC, with '-msoft-float' in order for this
  21736. to work.
  21737. '-mhard-quad-float'
  21738. Generate output containing quad-word (long double) floating-point
  21739. instructions.
  21740. '-msoft-quad-float'
  21741. Generate output containing library calls for quad-word (long
  21742. double) floating-point instructions. The functions called are
  21743. those specified in the SPARC ABI. This is the default.
  21744. As of this writing, there are no SPARC implementations that have
  21745. hardware support for the quad-word floating-point instructions.
  21746. They all invoke a trap handler for one of these instructions, and
  21747. then the trap handler emulates the effect of the instruction.
  21748. Because of the trap handler overhead, this is much slower than
  21749. calling the ABI library routines. Thus the '-msoft-quad-float'
  21750. option is the default.
  21751. '-mno-unaligned-doubles'
  21752. '-munaligned-doubles'
  21753. Assume that doubles have 8-byte alignment. This is the default.
  21754. With '-munaligned-doubles', GCC assumes that doubles have 8-byte
  21755. alignment only if they are contained in another type, or if they
  21756. have an absolute address. Otherwise, it assumes they have 4-byte
  21757. alignment. Specifying this option avoids some rare compatibility
  21758. problems with code generated by other compilers. It is not the
  21759. default because it results in a performance loss, especially for
  21760. floating-point code.
  21761. '-muser-mode'
  21762. '-mno-user-mode'
  21763. Do not generate code that can only run in supervisor mode. This is
  21764. relevant only for the 'casa' instruction emitted for the LEON3
  21765. processor. This is the default.
  21766. '-mfaster-structs'
  21767. '-mno-faster-structs'
  21768. With '-mfaster-structs', the compiler assumes that structures
  21769. should have 8-byte alignment. This enables the use of pairs of
  21770. 'ldd' and 'std' instructions for copies in structure assignment, in
  21771. place of twice as many 'ld' and 'st' pairs. However, the use of
  21772. this changed alignment directly violates the SPARC ABI. Thus, it's
  21773. intended only for use on targets where the developer acknowledges
  21774. that their resulting code is not directly in line with the rules of
  21775. the ABI.
  21776. '-mstd-struct-return'
  21777. '-mno-std-struct-return'
  21778. With '-mstd-struct-return', the compiler generates checking code in
  21779. functions returning structures or unions to detect size mismatches
  21780. between the two sides of function calls, as per the 32-bit ABI.
  21781. The default is '-mno-std-struct-return'. This option has no effect
  21782. in 64-bit mode.
  21783. '-mlra'
  21784. '-mno-lra'
  21785. Enable Local Register Allocation. This is the default for SPARC
  21786. since GCC 7 so '-mno-lra' needs to be passed to get old Reload.
  21787. '-mcpu=CPU_TYPE'
  21788. Set the instruction set, register set, and instruction scheduling
  21789. parameters for machine type CPU_TYPE. Supported values for
  21790. CPU_TYPE are 'v7', 'cypress', 'v8', 'supersparc', 'hypersparc',
  21791. 'leon', 'leon3', 'leon3v7', 'sparclite', 'f930', 'f934',
  21792. 'sparclite86x', 'sparclet', 'tsc701', 'v9', 'ultrasparc',
  21793. 'ultrasparc3', 'niagara', 'niagara2', 'niagara3', 'niagara4',
  21794. 'niagara7' and 'm8'.
  21795. Native Solaris and GNU/Linux toolchains also support the value
  21796. 'native', which selects the best architecture option for the host
  21797. processor. '-mcpu=native' has no effect if GCC does not recognize
  21798. the processor.
  21799. Default instruction scheduling parameters are used for values that
  21800. select an architecture and not an implementation. These are 'v7',
  21801. 'v8', 'sparclite', 'sparclet', 'v9'.
  21802. Here is a list of each supported architecture and their supported
  21803. implementations.
  21804. v7
  21805. cypress, leon3v7
  21806. v8
  21807. supersparc, hypersparc, leon, leon3
  21808. sparclite
  21809. f930, f934, sparclite86x
  21810. sparclet
  21811. tsc701
  21812. v9
  21813. ultrasparc, ultrasparc3, niagara, niagara2, niagara3,
  21814. niagara4, niagara7, m8
  21815. By default (unless configured otherwise), GCC generates code for
  21816. the V7 variant of the SPARC architecture. With '-mcpu=cypress',
  21817. the compiler additionally optimizes it for the Cypress CY7C602
  21818. chip, as used in the SPARCStation/SPARCServer 3xx series. This is
  21819. also appropriate for the older SPARCStation 1, 2, IPX etc.
  21820. With '-mcpu=v8', GCC generates code for the V8 variant of the SPARC
  21821. architecture. The only difference from V7 code is that the
  21822. compiler emits the integer multiply and integer divide instructions
  21823. which exist in SPARC-V8 but not in SPARC-V7. With
  21824. '-mcpu=supersparc', the compiler additionally optimizes it for the
  21825. SuperSPARC chip, as used in the SPARCStation 10, 1000 and 2000
  21826. series.
  21827. With '-mcpu=sparclite', GCC generates code for the SPARClite
  21828. variant of the SPARC architecture. This adds the integer multiply,
  21829. integer divide step and scan ('ffs') instructions which exist in
  21830. SPARClite but not in SPARC-V7. With '-mcpu=f930', the compiler
  21831. additionally optimizes it for the Fujitsu MB86930 chip, which is
  21832. the original SPARClite, with no FPU. With '-mcpu=f934', the
  21833. compiler additionally optimizes it for the Fujitsu MB86934 chip,
  21834. which is the more recent SPARClite with FPU.
  21835. With '-mcpu=sparclet', GCC generates code for the SPARClet variant
  21836. of the SPARC architecture. This adds the integer multiply,
  21837. multiply/accumulate, integer divide step and scan ('ffs')
  21838. instructions which exist in SPARClet but not in SPARC-V7. With
  21839. '-mcpu=tsc701', the compiler additionally optimizes it for the
  21840. TEMIC SPARClet chip.
  21841. With '-mcpu=v9', GCC generates code for the V9 variant of the SPARC
  21842. architecture. This adds 64-bit integer and floating-point move
  21843. instructions, 3 additional floating-point condition code registers
  21844. and conditional move instructions. With '-mcpu=ultrasparc', the
  21845. compiler additionally optimizes it for the Sun UltraSPARC I/II/IIi
  21846. chips. With '-mcpu=ultrasparc3', the compiler additionally
  21847. optimizes it for the Sun UltraSPARC III/III+/IIIi/IIIi+/IV/IV+
  21848. chips. With '-mcpu=niagara', the compiler additionally optimizes
  21849. it for Sun UltraSPARC T1 chips. With '-mcpu=niagara2', the
  21850. compiler additionally optimizes it for Sun UltraSPARC T2 chips.
  21851. With '-mcpu=niagara3', the compiler additionally optimizes it for
  21852. Sun UltraSPARC T3 chips. With '-mcpu=niagara4', the compiler
  21853. additionally optimizes it for Sun UltraSPARC T4 chips. With
  21854. '-mcpu=niagara7', the compiler additionally optimizes it for Oracle
  21855. SPARC M7 chips. With '-mcpu=m8', the compiler additionally
  21856. optimizes it for Oracle M8 chips.
  21857. '-mtune=CPU_TYPE'
  21858. Set the instruction scheduling parameters for machine type
  21859. CPU_TYPE, but do not set the instruction set or register set that
  21860. the option '-mcpu=CPU_TYPE' does.
  21861. The same values for '-mcpu=CPU_TYPE' can be used for
  21862. '-mtune=CPU_TYPE', but the only useful values are those that select
  21863. a particular CPU implementation. Those are 'cypress',
  21864. 'supersparc', 'hypersparc', 'leon', 'leon3', 'leon3v7', 'f930',
  21865. 'f934', 'sparclite86x', 'tsc701', 'ultrasparc', 'ultrasparc3',
  21866. 'niagara', 'niagara2', 'niagara3', 'niagara4', 'niagara7' and 'm8'.
  21867. With native Solaris and GNU/Linux toolchains, 'native' can also be
  21868. used.
  21869. '-mv8plus'
  21870. '-mno-v8plus'
  21871. With '-mv8plus', GCC generates code for the SPARC-V8+ ABI. The
  21872. difference from the V8 ABI is that the global and out registers are
  21873. considered 64 bits wide. This is enabled by default on Solaris in
  21874. 32-bit mode for all SPARC-V9 processors.
  21875. '-mvis'
  21876. '-mno-vis'
  21877. With '-mvis', GCC generates code that takes advantage of the
  21878. UltraSPARC Visual Instruction Set extensions. The default is
  21879. '-mno-vis'.
  21880. '-mvis2'
  21881. '-mno-vis2'
  21882. With '-mvis2', GCC generates code that takes advantage of version
  21883. 2.0 of the UltraSPARC Visual Instruction Set extensions. The
  21884. default is '-mvis2' when targeting a cpu that supports such
  21885. instructions, such as UltraSPARC-III and later. Setting '-mvis2'
  21886. also sets '-mvis'.
  21887. '-mvis3'
  21888. '-mno-vis3'
  21889. With '-mvis3', GCC generates code that takes advantage of version
  21890. 3.0 of the UltraSPARC Visual Instruction Set extensions. The
  21891. default is '-mvis3' when targeting a cpu that supports such
  21892. instructions, such as niagara-3 and later. Setting '-mvis3' also
  21893. sets '-mvis2' and '-mvis'.
  21894. '-mvis4'
  21895. '-mno-vis4'
  21896. With '-mvis4', GCC generates code that takes advantage of version
  21897. 4.0 of the UltraSPARC Visual Instruction Set extensions. The
  21898. default is '-mvis4' when targeting a cpu that supports such
  21899. instructions, such as niagara-7 and later. Setting '-mvis4' also
  21900. sets '-mvis3', '-mvis2' and '-mvis'.
  21901. '-mvis4b'
  21902. '-mno-vis4b'
  21903. With '-mvis4b', GCC generates code that takes advantage of version
  21904. 4.0 of the UltraSPARC Visual Instruction Set extensions, plus the
  21905. additional VIS instructions introduced in the Oracle SPARC
  21906. Architecture 2017. The default is '-mvis4b' when targeting a cpu
  21907. that supports such instructions, such as m8 and later. Setting
  21908. '-mvis4b' also sets '-mvis4', '-mvis3', '-mvis2' and '-mvis'.
  21909. '-mcbcond'
  21910. '-mno-cbcond'
  21911. With '-mcbcond', GCC generates code that takes advantage of the
  21912. UltraSPARC Compare-and-Branch-on-Condition instructions. The
  21913. default is '-mcbcond' when targeting a CPU that supports such
  21914. instructions, such as Niagara-4 and later.
  21915. '-mfmaf'
  21916. '-mno-fmaf'
  21917. With '-mfmaf', GCC generates code that takes advantage of the
  21918. UltraSPARC Fused Multiply-Add Floating-point instructions. The
  21919. default is '-mfmaf' when targeting a CPU that supports such
  21920. instructions, such as Niagara-3 and later.
  21921. '-mfsmuld'
  21922. '-mno-fsmuld'
  21923. With '-mfsmuld', GCC generates code that takes advantage of the
  21924. Floating-point Multiply Single to Double (FsMULd) instruction. The
  21925. default is '-mfsmuld' when targeting a CPU supporting the
  21926. architecture versions V8 or V9 with FPU except '-mcpu=leon'.
  21927. '-mpopc'
  21928. '-mno-popc'
  21929. With '-mpopc', GCC generates code that takes advantage of the
  21930. UltraSPARC Population Count instruction. The default is '-mpopc'
  21931. when targeting a CPU that supports such an instruction, such as
  21932. Niagara-2 and later.
  21933. '-msubxc'
  21934. '-mno-subxc'
  21935. With '-msubxc', GCC generates code that takes advantage of the
  21936. UltraSPARC Subtract-Extended-with-Carry instruction. The default
  21937. is '-msubxc' when targeting a CPU that supports such an
  21938. instruction, such as Niagara-7 and later.
  21939. '-mfix-at697f'
  21940. Enable the documented workaround for the single erratum of the
  21941. Atmel AT697F processor (which corresponds to erratum #13 of the
  21942. AT697E processor).
  21943. '-mfix-ut699'
  21944. Enable the documented workarounds for the floating-point errata and
  21945. the data cache nullify errata of the UT699 processor.
  21946. '-mfix-ut700'
  21947. Enable the documented workaround for the back-to-back store errata
  21948. of the UT699E/UT700 processor.
  21949. '-mfix-gr712rc'
  21950. Enable the documented workaround for the back-to-back store errata
  21951. of the GR712RC processor.
  21952. These '-m' options are supported in addition to the above on SPARC-V9
  21953. processors in 64-bit environments:
  21954. '-m32'
  21955. '-m64'
  21956. Generate code for a 32-bit or 64-bit environment. The 32-bit
  21957. environment sets int, long and pointer to 32 bits. The 64-bit
  21958. environment sets int to 32 bits and long and pointer to 64 bits.
  21959. '-mcmodel=WHICH'
  21960. Set the code model to one of
  21961. 'medlow'
  21962. The Medium/Low code model: 64-bit addresses, programs must be
  21963. linked in the low 32 bits of memory. Programs can be
  21964. statically or dynamically linked.
  21965. 'medmid'
  21966. The Medium/Middle code model: 64-bit addresses, programs must
  21967. be linked in the low 44 bits of memory, the text and data
  21968. segments must be less than 2GB in size and the data segment
  21969. must be located within 2GB of the text segment.
  21970. 'medany'
  21971. The Medium/Anywhere code model: 64-bit addresses, programs may
  21972. be linked anywhere in memory, the text and data segments must
  21973. be less than 2GB in size and the data segment must be located
  21974. within 2GB of the text segment.
  21975. 'embmedany'
  21976. The Medium/Anywhere code model for embedded systems: 64-bit
  21977. addresses, the text and data segments must be less than 2GB in
  21978. size, both starting anywhere in memory (determined at link
  21979. time). The global register %g4 points to the base of the data
  21980. segment. Programs are statically linked and PIC is not
  21981. supported.
  21982. '-mmemory-model=MEM-MODEL'
  21983. Set the memory model in force on the processor to one of
  21984. 'default'
  21985. The default memory model for the processor and operating
  21986. system.
  21987. 'rmo'
  21988. Relaxed Memory Order
  21989. 'pso'
  21990. Partial Store Order
  21991. 'tso'
  21992. Total Store Order
  21993. 'sc'
  21994. Sequential Consistency
  21995. These memory models are formally defined in Appendix D of the
  21996. SPARC-V9 architecture manual, as set in the processor's 'PSTATE.MM'
  21997. field.
  21998. '-mstack-bias'
  21999. '-mno-stack-bias'
  22000. With '-mstack-bias', GCC assumes that the stack pointer, and frame
  22001. pointer if present, are offset by -2047 which must be added back
  22002. when making stack frame references. This is the default in 64-bit
  22003. mode. Otherwise, assume no such offset is present.
  22004. 
  22005. File: gcc.info, Node: System V Options, Next: TILE-Gx Options, Prev: SPARC Options, Up: Submodel Options
  22006. 3.19.51 Options for System V
  22007. ----------------------------
  22008. These additional options are available on System V Release 4 for
  22009. compatibility with other compilers on those systems:
  22010. '-G'
  22011. Create a shared object. It is recommended that '-symbolic' or
  22012. '-shared' be used instead.
  22013. '-Qy'
  22014. Identify the versions of each tool used by the compiler, in a
  22015. '.ident' assembler directive in the output.
  22016. '-Qn'
  22017. Refrain from adding '.ident' directives to the output file (this is
  22018. the default).
  22019. '-YP,DIRS'
  22020. Search the directories DIRS, and no others, for libraries specified
  22021. with '-l'.
  22022. '-Ym,DIR'
  22023. Look in the directory DIR to find the M4 preprocessor. The
  22024. assembler uses this option.
  22025. 
  22026. File: gcc.info, Node: TILE-Gx Options, Next: TILEPro Options, Prev: System V Options, Up: Submodel Options
  22027. 3.19.52 TILE-Gx Options
  22028. -----------------------
  22029. These '-m' options are supported on the TILE-Gx:
  22030. '-mcmodel=small'
  22031. Generate code for the small model. The distance for direct calls
  22032. is limited to 500M in either direction. PC-relative addresses are
  22033. 32 bits. Absolute addresses support the full address range.
  22034. '-mcmodel=large'
  22035. Generate code for the large model. There is no limitation on call
  22036. distance, pc-relative addresses, or absolute addresses.
  22037. '-mcpu=NAME'
  22038. Selects the type of CPU to be targeted. Currently the only
  22039. supported type is 'tilegx'.
  22040. '-m32'
  22041. '-m64'
  22042. Generate code for a 32-bit or 64-bit environment. The 32-bit
  22043. environment sets int, long, and pointer to 32 bits. The 64-bit
  22044. environment sets int to 32 bits and long and pointer to 64 bits.
  22045. '-mbig-endian'
  22046. '-mlittle-endian'
  22047. Generate code in big/little endian mode, respectively.
  22048. 
  22049. File: gcc.info, Node: TILEPro Options, Next: V850 Options, Prev: TILE-Gx Options, Up: Submodel Options
  22050. 3.19.53 TILEPro Options
  22051. -----------------------
  22052. These '-m' options are supported on the TILEPro:
  22053. '-mcpu=NAME'
  22054. Selects the type of CPU to be targeted. Currently the only
  22055. supported type is 'tilepro'.
  22056. '-m32'
  22057. Generate code for a 32-bit environment, which sets int, long, and
  22058. pointer to 32 bits. This is the only supported behavior so the
  22059. flag is essentially ignored.
  22060. 
  22061. File: gcc.info, Node: V850 Options, Next: VAX Options, Prev: TILEPro Options, Up: Submodel Options
  22062. 3.19.54 V850 Options
  22063. --------------------
  22064. These '-m' options are defined for V850 implementations:
  22065. '-mlong-calls'
  22066. '-mno-long-calls'
  22067. Treat all calls as being far away (near). If calls are assumed to
  22068. be far away, the compiler always loads the function's address into
  22069. a register, and calls indirect through the pointer.
  22070. '-mno-ep'
  22071. '-mep'
  22072. Do not optimize (do optimize) basic blocks that use the same index
  22073. pointer 4 or more times to copy pointer into the 'ep' register, and
  22074. use the shorter 'sld' and 'sst' instructions. The '-mep' option is
  22075. on by default if you optimize.
  22076. '-mno-prolog-function'
  22077. '-mprolog-function'
  22078. Do not use (do use) external functions to save and restore
  22079. registers at the prologue and epilogue of a function. The external
  22080. functions are slower, but use less code space if more than one
  22081. function saves the same number of registers. The
  22082. '-mprolog-function' option is on by default if you optimize.
  22083. '-mspace'
  22084. Try to make the code as small as possible. At present, this just
  22085. turns on the '-mep' and '-mprolog-function' options.
  22086. '-mtda=N'
  22087. Put static or global variables whose size is N bytes or less into
  22088. the tiny data area that register 'ep' points to. The tiny data
  22089. area can hold up to 256 bytes in total (128 bytes for byte
  22090. references).
  22091. '-msda=N'
  22092. Put static or global variables whose size is N bytes or less into
  22093. the small data area that register 'gp' points to. The small data
  22094. area can hold up to 64 kilobytes.
  22095. '-mzda=N'
  22096. Put static or global variables whose size is N bytes or less into
  22097. the first 32 kilobytes of memory.
  22098. '-mv850'
  22099. Specify that the target processor is the V850.
  22100. '-mv850e3v5'
  22101. Specify that the target processor is the V850E3V5. The
  22102. preprocessor constant '__v850e3v5__' is defined if this option is
  22103. used.
  22104. '-mv850e2v4'
  22105. Specify that the target processor is the V850E3V5. This is an
  22106. alias for the '-mv850e3v5' option.
  22107. '-mv850e2v3'
  22108. Specify that the target processor is the V850E2V3. The
  22109. preprocessor constant '__v850e2v3__' is defined if this option is
  22110. used.
  22111. '-mv850e2'
  22112. Specify that the target processor is the V850E2. The preprocessor
  22113. constant '__v850e2__' is defined if this option is used.
  22114. '-mv850e1'
  22115. Specify that the target processor is the V850E1. The preprocessor
  22116. constants '__v850e1__' and '__v850e__' are defined if this option
  22117. is used.
  22118. '-mv850es'
  22119. Specify that the target processor is the V850ES. This is an alias
  22120. for the '-mv850e1' option.
  22121. '-mv850e'
  22122. Specify that the target processor is the V850E. The preprocessor
  22123. constant '__v850e__' is defined if this option is used.
  22124. If neither '-mv850' nor '-mv850e' nor '-mv850e1' nor '-mv850e2' nor
  22125. '-mv850e2v3' nor '-mv850e3v5' are defined then a default target
  22126. processor is chosen and the relevant '__v850*__' preprocessor
  22127. constant is defined.
  22128. The preprocessor constants '__v850' and '__v851__' are always
  22129. defined, regardless of which processor variant is the target.
  22130. '-mdisable-callt'
  22131. '-mno-disable-callt'
  22132. This option suppresses generation of the 'CALLT' instruction for
  22133. the v850e, v850e1, v850e2, v850e2v3 and v850e3v5 flavors of the
  22134. v850 architecture.
  22135. This option is enabled by default when the RH850 ABI is in use (see
  22136. '-mrh850-abi'), and disabled by default when the GCC ABI is in use.
  22137. If 'CALLT' instructions are being generated then the C preprocessor
  22138. symbol '__V850_CALLT__' is defined.
  22139. '-mrelax'
  22140. '-mno-relax'
  22141. Pass on (or do not pass on) the '-mrelax' command-line option to
  22142. the assembler.
  22143. '-mlong-jumps'
  22144. '-mno-long-jumps'
  22145. Disable (or re-enable) the generation of PC-relative jump
  22146. instructions.
  22147. '-msoft-float'
  22148. '-mhard-float'
  22149. Disable (or re-enable) the generation of hardware floating point
  22150. instructions. This option is only significant when the target
  22151. architecture is 'V850E2V3' or higher. If hardware floating point
  22152. instructions are being generated then the C preprocessor symbol
  22153. '__FPU_OK__' is defined, otherwise the symbol '__NO_FPU__' is
  22154. defined.
  22155. '-mloop'
  22156. Enables the use of the e3v5 LOOP instruction. The use of this
  22157. instruction is not enabled by default when the e3v5 architecture is
  22158. selected because its use is still experimental.
  22159. '-mrh850-abi'
  22160. '-mghs'
  22161. Enables support for the RH850 version of the V850 ABI. This is the
  22162. default. With this version of the ABI the following rules apply:
  22163. * Integer sized structures and unions are returned via a memory
  22164. pointer rather than a register.
  22165. * Large structures and unions (more than 8 bytes in size) are
  22166. passed by value.
  22167. * Functions are aligned to 16-bit boundaries.
  22168. * The '-m8byte-align' command-line option is supported.
  22169. * The '-mdisable-callt' command-line option is enabled by
  22170. default. The '-mno-disable-callt' command-line option is not
  22171. supported.
  22172. When this version of the ABI is enabled the C preprocessor symbol
  22173. '__V850_RH850_ABI__' is defined.
  22174. '-mgcc-abi'
  22175. Enables support for the old GCC version of the V850 ABI. With this
  22176. version of the ABI the following rules apply:
  22177. * Integer sized structures and unions are returned in register
  22178. 'r10'.
  22179. * Large structures and unions (more than 8 bytes in size) are
  22180. passed by reference.
  22181. * Functions are aligned to 32-bit boundaries, unless optimizing
  22182. for size.
  22183. * The '-m8byte-align' command-line option is not supported.
  22184. * The '-mdisable-callt' command-line option is supported but not
  22185. enabled by default.
  22186. When this version of the ABI is enabled the C preprocessor symbol
  22187. '__V850_GCC_ABI__' is defined.
  22188. '-m8byte-align'
  22189. '-mno-8byte-align'
  22190. Enables support for 'double' and 'long long' types to be aligned on
  22191. 8-byte boundaries. The default is to restrict the alignment of all
  22192. objects to at most 4-bytes. When '-m8byte-align' is in effect the
  22193. C preprocessor symbol '__V850_8BYTE_ALIGN__' is defined.
  22194. '-mbig-switch'
  22195. Generate code suitable for big switch tables. Use this option only
  22196. if the assembler/linker complain about out of range branches within
  22197. a switch table.
  22198. '-mapp-regs'
  22199. This option causes r2 and r5 to be used in the code generated by
  22200. the compiler. This setting is the default.
  22201. '-mno-app-regs'
  22202. This option causes r2 and r5 to be treated as fixed registers.
  22203. 
  22204. File: gcc.info, Node: VAX Options, Next: Visium Options, Prev: V850 Options, Up: Submodel Options
  22205. 3.19.55 VAX Options
  22206. -------------------
  22207. These '-m' options are defined for the VAX:
  22208. '-munix'
  22209. Do not output certain jump instructions ('aobleq' and so on) that
  22210. the Unix assembler for the VAX cannot handle across long ranges.
  22211. '-mgnu'
  22212. Do output those jump instructions, on the assumption that the GNU
  22213. assembler is being used.
  22214. '-mg'
  22215. Output code for G-format floating-point numbers instead of
  22216. D-format.
  22217. 
  22218. File: gcc.info, Node: Visium Options, Next: VMS Options, Prev: VAX Options, Up: Submodel Options
  22219. 3.19.56 Visium Options
  22220. ----------------------
  22221. '-mdebug'
  22222. A program which performs file I/O and is destined to run on an MCM
  22223. target should be linked with this option. It causes the libraries
  22224. libc.a and libdebug.a to be linked. The program should be run on
  22225. the target under the control of the GDB remote debugging stub.
  22226. '-msim'
  22227. A program which performs file I/O and is destined to run on the
  22228. simulator should be linked with option. This causes libraries
  22229. libc.a and libsim.a to be linked.
  22230. '-mfpu'
  22231. '-mhard-float'
  22232. Generate code containing floating-point instructions. This is the
  22233. default.
  22234. '-mno-fpu'
  22235. '-msoft-float'
  22236. Generate code containing library calls for floating-point.
  22237. '-msoft-float' changes the calling convention in the output file;
  22238. therefore, it is only useful if you compile _all_ of a program with
  22239. this option. In particular, you need to compile 'libgcc.a', the
  22240. library that comes with GCC, with '-msoft-float' in order for this
  22241. to work.
  22242. '-mcpu=CPU_TYPE'
  22243. Set the instruction set, register set, and instruction scheduling
  22244. parameters for machine type CPU_TYPE. Supported values for
  22245. CPU_TYPE are 'mcm', 'gr5' and 'gr6'.
  22246. 'mcm' is a synonym of 'gr5' present for backward compatibility.
  22247. By default (unless configured otherwise), GCC generates code for
  22248. the GR5 variant of the Visium architecture.
  22249. With '-mcpu=gr6', GCC generates code for the GR6 variant of the
  22250. Visium architecture. The only difference from GR5 code is that the
  22251. compiler will generate block move instructions.
  22252. '-mtune=CPU_TYPE'
  22253. Set the instruction scheduling parameters for machine type
  22254. CPU_TYPE, but do not set the instruction set or register set that
  22255. the option '-mcpu=CPU_TYPE' would.
  22256. '-msv-mode'
  22257. Generate code for the supervisor mode, where there are no
  22258. restrictions on the access to general registers. This is the
  22259. default.
  22260. '-muser-mode'
  22261. Generate code for the user mode, where the access to some general
  22262. registers is forbidden: on the GR5, registers r24 to r31 cannot be
  22263. accessed in this mode; on the GR6, only registers r29 to r31 are
  22264. affected.
  22265. 
  22266. File: gcc.info, Node: VMS Options, Next: VxWorks Options, Prev: Visium Options, Up: Submodel Options
  22267. 3.19.57 VMS Options
  22268. -------------------
  22269. These '-m' options are defined for the VMS implementations:
  22270. '-mvms-return-codes'
  22271. Return VMS condition codes from 'main'. The default is to return
  22272. POSIX-style condition (e.g. error) codes.
  22273. '-mdebug-main=PREFIX'
  22274. Flag the first routine whose name starts with PREFIX as the main
  22275. routine for the debugger.
  22276. '-mmalloc64'
  22277. Default to 64-bit memory allocation routines.
  22278. '-mpointer-size=SIZE'
  22279. Set the default size of pointers. Possible options for SIZE are
  22280. '32' or 'short' for 32 bit pointers, '64' or 'long' for 64 bit
  22281. pointers, and 'no' for supporting only 32 bit pointers. The later
  22282. option disables 'pragma pointer_size'.
  22283. 
  22284. File: gcc.info, Node: VxWorks Options, Next: x86 Options, Prev: VMS Options, Up: Submodel Options
  22285. 3.19.58 VxWorks Options
  22286. -----------------------
  22287. The options in this section are defined for all VxWorks targets.
  22288. Options specific to the target hardware are listed with the other
  22289. options for that target.
  22290. '-mrtp'
  22291. GCC can generate code for both VxWorks kernels and real time
  22292. processes (RTPs). This option switches from the former to the
  22293. latter. It also defines the preprocessor macro '__RTP__'.
  22294. '-non-static'
  22295. Link an RTP executable against shared libraries rather than static
  22296. libraries. The options '-static' and '-shared' can also be used
  22297. for RTPs (*note Link Options::); '-static' is the default.
  22298. '-Bstatic'
  22299. '-Bdynamic'
  22300. These options are passed down to the linker. They are defined for
  22301. compatibility with Diab.
  22302. '-Xbind-lazy'
  22303. Enable lazy binding of function calls. This option is equivalent
  22304. to '-Wl,-z,now' and is defined for compatibility with Diab.
  22305. '-Xbind-now'
  22306. Disable lazy binding of function calls. This option is the default
  22307. and is defined for compatibility with Diab.
  22308. 
  22309. File: gcc.info, Node: x86 Options, Next: x86 Windows Options, Prev: VxWorks Options, Up: Submodel Options
  22310. 3.19.59 x86 Options
  22311. -------------------
  22312. These '-m' options are defined for the x86 family of computers.
  22313. '-march=CPU-TYPE'
  22314. Generate instructions for the machine type CPU-TYPE. In contrast
  22315. to '-mtune=CPU-TYPE', which merely tunes the generated code for the
  22316. specified CPU-TYPE, '-march=CPU-TYPE' allows GCC to generate code
  22317. that may not run at all on processors other than the one indicated.
  22318. Specifying '-march=CPU-TYPE' implies '-mtune=CPU-TYPE', except
  22319. where noted otherwise.
  22320. The choices for CPU-TYPE are:
  22321. 'native'
  22322. This selects the CPU to generate code for at compilation time
  22323. by determining the processor type of the compiling machine.
  22324. Using '-march=native' enables all instruction subsets
  22325. supported by the local machine (hence the result might not run
  22326. on different machines). Using '-mtune=native' produces code
  22327. optimized for the local machine under the constraints of the
  22328. selected instruction set.
  22329. 'x86-64'
  22330. A generic CPU with 64-bit extensions.
  22331. 'x86-64-v2'
  22332. 'x86-64-v3'
  22333. 'x86-64-v4'
  22334. These choices for CPU-TYPE select the corresponding
  22335. micro-architecture level from the x86-64 psABI. On ABIs other
  22336. than the x86-64 psABI they select the same CPU features as the
  22337. x86-64 psABI documents for the particular micro-architecture
  22338. level.
  22339. Since these CPU-TYPE values do not have a corresponding
  22340. '-mtune' setting, using '-march' with these values enables
  22341. generic tuning. Specific tuning can be enabled using the
  22342. '-mtune=OTHER-CPU-TYPE' option with an appropriate
  22343. OTHER-CPU-TYPE value.
  22344. 'i386'
  22345. Original Intel i386 CPU.
  22346. 'i486'
  22347. Intel i486 CPU. (No scheduling is implemented for this chip.)
  22348. 'i586'
  22349. 'pentium'
  22350. Intel Pentium CPU with no MMX support.
  22351. 'lakemont'
  22352. Intel Lakemont MCU, based on Intel Pentium CPU.
  22353. 'pentium-mmx'
  22354. Intel Pentium MMX CPU, based on Pentium core with MMX
  22355. instruction set support.
  22356. 'pentiumpro'
  22357. Intel Pentium Pro CPU.
  22358. 'i686'
  22359. When used with '-march', the Pentium Pro instruction set is
  22360. used, so the code runs on all i686 family chips. When used
  22361. with '-mtune', it has the same meaning as 'generic'.
  22362. 'pentium2'
  22363. Intel Pentium II CPU, based on Pentium Pro core with MMX
  22364. instruction set support.
  22365. 'pentium3'
  22366. 'pentium3m'
  22367. Intel Pentium III CPU, based on Pentium Pro core with MMX and
  22368. SSE instruction set support.
  22369. 'pentium-m'
  22370. Intel Pentium M; low-power version of Intel Pentium III CPU
  22371. with MMX, SSE and SSE2 instruction set support. Used by
  22372. Centrino notebooks.
  22373. 'pentium4'
  22374. 'pentium4m'
  22375. Intel Pentium 4 CPU with MMX, SSE and SSE2 instruction set
  22376. support.
  22377. 'prescott'
  22378. Improved version of Intel Pentium 4 CPU with MMX, SSE, SSE2
  22379. and SSE3 instruction set support.
  22380. 'nocona'
  22381. Improved version of Intel Pentium 4 CPU with 64-bit
  22382. extensions, MMX, SSE, SSE2 and SSE3 instruction set support.
  22383. 'core2'
  22384. Intel Core 2 CPU with 64-bit extensions, MMX, SSE, SSE2, SSE3
  22385. and SSSE3 instruction set support.
  22386. 'nehalem'
  22387. Intel Nehalem CPU with 64-bit extensions, MMX, SSE, SSE2,
  22388. SSE3, SSSE3, SSE4.1, SSE4.2 and POPCNT instruction set
  22389. support.
  22390. 'westmere'
  22391. Intel Westmere CPU with 64-bit extensions, MMX, SSE, SSE2,
  22392. SSE3, SSSE3, SSE4.1, SSE4.2, POPCNT, AES and PCLMUL
  22393. instruction set support.
  22394. 'sandybridge'
  22395. Intel Sandy Bridge CPU with 64-bit extensions, MMX, SSE, SSE2,
  22396. SSE3, SSSE3, SSE4.1, SSE4.2, POPCNT, AVX, AES and PCLMUL
  22397. instruction set support.
  22398. 'ivybridge'
  22399. Intel Ivy Bridge CPU with 64-bit extensions, MMX, SSE, SSE2,
  22400. SSE3, SSSE3, SSE4.1, SSE4.2, POPCNT, AVX, AES, PCLMUL,
  22401. FSGSBASE, RDRND and F16C instruction set support.
  22402. 'haswell'
  22403. Intel Haswell CPU with 64-bit extensions, MOVBE, MMX, SSE,
  22404. SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, POPCNT, AVX, AVX2, AES,
  22405. PCLMUL, FSGSBASE, RDRND, FMA, BMI, BMI2 and F16C instruction
  22406. set support.
  22407. 'broadwell'
  22408. Intel Broadwell CPU with 64-bit extensions, MOVBE, MMX, SSE,
  22409. SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, POPCNT, AVX, AVX2, AES,
  22410. PCLMUL, FSGSBASE, RDRND, FMA, BMI, BMI2, F16C, RDSEED ADCX and
  22411. PREFETCHW instruction set support.
  22412. 'skylake'
  22413. Intel Skylake CPU with 64-bit extensions, MOVBE, MMX, SSE,
  22414. SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, POPCNT, AVX, AVX2, AES,
  22415. PCLMUL, FSGSBASE, RDRND, FMA, BMI, BMI2, F16C, RDSEED, ADCX,
  22416. PREFETCHW, CLFLUSHOPT, XSAVEC and XSAVES instruction set
  22417. support.
  22418. 'bonnell'
  22419. Intel Bonnell CPU with 64-bit extensions, MOVBE, MMX, SSE,
  22420. SSE2, SSE3 and SSSE3 instruction set support.
  22421. 'silvermont'
  22422. Intel Silvermont CPU with 64-bit extensions, MOVBE, MMX, SSE,
  22423. SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, POPCNT, AES, PREFETCHW,
  22424. PCLMUL and RDRND instruction set support.
  22425. 'goldmont'
  22426. Intel Goldmont CPU with 64-bit extensions, MOVBE, MMX, SSE,
  22427. SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, POPCNT, AES, PREFETCHW,
  22428. PCLMUL, RDRND, XSAVE, XSAVEC, XSAVES, XSAVEOPT and FSGSBASE
  22429. instruction set support.
  22430. 'goldmont-plus'
  22431. Intel Goldmont Plus CPU with 64-bit extensions, MOVBE, MMX,
  22432. SSE, SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, POPCNT, AES,
  22433. PREFETCHW, PCLMUL, RDRND, XSAVE, XSAVEC, XSAVES, XSAVEOPT,
  22434. FSGSBASE, PTWRITE, RDPID, SGX and UMIP instruction set
  22435. support.
  22436. 'tremont'
  22437. Intel Tremont CPU with 64-bit extensions, MOVBE, MMX, SSE,
  22438. SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, POPCNT, AES, PREFETCHW,
  22439. PCLMUL, RDRND, XSAVE, XSAVEC, XSAVES, XSAVEOPT, FSGSBASE,
  22440. PTWRITE, RDPID, SGX, UMIP, GFNI-SSE, CLWB, MOVDIRI, MOVDIR64B,
  22441. CLDEMOTE and WAITPKG instruction set support.
  22442. 'knl'
  22443. Intel Knight's Landing CPU with 64-bit extensions, MOVBE, MMX,
  22444. SSE, SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, POPCNT, AVX, AVX2,
  22445. AES, PCLMUL, FSGSBASE, RDRND, FMA, BMI, BMI2, F16C, RDSEED,
  22446. ADCX, PREFETCHW, PREFETCHWT1, AVX512F, AVX512PF, AVX512ER and
  22447. AVX512CD instruction set support.
  22448. 'knm'
  22449. Intel Knights Mill CPU with 64-bit extensions, MOVBE, MMX,
  22450. SSE, SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, POPCNT, AVX, AVX2,
  22451. AES, PCLMUL, FSGSBASE, RDRND, FMA, BMI, BMI2, F16C, RDSEED,
  22452. ADCX, PREFETCHW, PREFETCHWT1, AVX512F, AVX512PF, AVX512ER,
  22453. AVX512CD, AVX5124VNNIW, AVX5124FMAPS and AVX512VPOPCNTDQ
  22454. instruction set support.
  22455. 'skylake-avx512'
  22456. Intel Skylake Server CPU with 64-bit extensions, MOVBE, MMX,
  22457. SSE, SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, POPCNT, PKU, AVX,
  22458. AVX2, AES, PCLMUL, FSGSBASE, RDRND, FMA, BMI, BMI2, F16C,
  22459. RDSEED, ADCX, PREFETCHW, CLFLUSHOPT, XSAVEC, XSAVES, AVX512F,
  22460. CLWB, AVX512VL, AVX512BW, AVX512DQ and AVX512CD instruction
  22461. set support.
  22462. 'cannonlake'
  22463. Intel Cannonlake Server CPU with 64-bit extensions, MOVBE,
  22464. MMX, SSE, SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, POPCNT, PKU, AVX,
  22465. AVX2, AES, PCLMUL, FSGSBASE, RDRND, FMA, BMI, BMI2, F16C,
  22466. RDSEED, ADCX, PREFETCHW, CLFLUSHOPT, XSAVEC, XSAVES, AVX512F,
  22467. AVX512VL, AVX512BW, AVX512DQ, AVX512CD, AVX512VBMI,
  22468. AVX512IFMA, SHA and UMIP instruction set support.
  22469. 'icelake-client'
  22470. Intel Icelake Client CPU with 64-bit extensions, MOVBE, MMX,
  22471. SSE, SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, POPCNT, PKU, AVX,
  22472. AVX2, AES, PCLMUL, FSGSBASE, RDRND, FMA, BMI, BMI2, F16C,
  22473. RDSEED, ADCX, PREFETCHW, CLFLUSHOPT, XSAVEC, XSAVES, AVX512F,
  22474. AVX512VL, AVX512BW, AVX512DQ, AVX512CD, AVX512VBMI,
  22475. AVX512IFMA, SHA, CLWB, UMIP, RDPID, GFNI, AVX512VBMI2,
  22476. AVX512VPOPCNTDQ, AVX512BITALG, AVX512VNNI, VPCLMULQDQ, VAES
  22477. instruction set support.
  22478. 'icelake-server'
  22479. Intel Icelake Server CPU with 64-bit extensions, MOVBE, MMX,
  22480. SSE, SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, POPCNT, PKU, AVX,
  22481. AVX2, AES, PCLMUL, FSGSBASE, RDRND, FMA, BMI, BMI2, F16C,
  22482. RDSEED, ADCX, PREFETCHW, CLFLUSHOPT, XSAVEC, XSAVES, AVX512F,
  22483. AVX512VL, AVX512BW, AVX512DQ, AVX512CD, AVX512VBMI,
  22484. AVX512IFMA, SHA, CLWB, UMIP, RDPID, GFNI, AVX512VBMI2,
  22485. AVX512VPOPCNTDQ, AVX512BITALG, AVX512VNNI, VPCLMULQDQ, VAES,
  22486. PCONFIG and WBNOINVD instruction set support.
  22487. 'cascadelake'
  22488. Intel Cascadelake CPU with 64-bit extensions, MOVBE, MMX, SSE,
  22489. SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, POPCNT, PKU, AVX, AVX2,
  22490. AES, PCLMUL, FSGSBASE, RDRND, FMA, BMI, BMI2, F16C, RDSEED,
  22491. ADCX, PREFETCHW, CLFLUSHOPT, XSAVEC, XSAVES, AVX512F, CLWB,
  22492. AVX512VL, AVX512BW, AVX512DQ, AVX512CD and AVX512VNNI
  22493. instruction set support.
  22494. 'cooperlake'
  22495. Intel cooperlake CPU with 64-bit extensions, MOVBE, MMX, SSE,
  22496. SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, POPCNT, PKU, AVX, AVX2,
  22497. AES, PCLMUL, FSGSBASE, RDRND, FMA, BMI, BMI2, F16C, RDSEED,
  22498. ADCX, PREFETCHW, CLFLUSHOPT, XSAVEC, XSAVES, AVX512F, CLWB,
  22499. AVX512VL, AVX512BW, AVX512DQ, AVX512CD, AVX512VNNI and
  22500. AVX512BF16 instruction set support.
  22501. 'tigerlake'
  22502. Intel Tigerlake CPU with 64-bit extensions, MOVBE, MMX, SSE,
  22503. SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, POPCNT, PKU, AVX, AVX2,
  22504. AES, PCLMUL, FSGSBASE, RDRND, FMA, BMI, BMI2, F16C, RDSEED,
  22505. ADCX, PREFETCHW, CLFLUSHOPT, XSAVEC, XSAVES, AVX512F,
  22506. AVX512VL, AVX512BW, AVX512DQ, AVX512CD, AVX512VBMI,
  22507. AVX512IFMA, SHA, CLWB, UMIP, RDPID, GFNI, AVX512VBMI2,
  22508. AVX512VPOPCNTDQ, AVX512BITALG, AVX512VNNI, VPCLMULQDQ, VAES,
  22509. PCONFIG, WBNOINVD, MOVDIRI, MOVDIR64B, AVX512VP2INTERSECT and
  22510. KEYLOCKER instruction set support.
  22511. 'sapphirerapids'
  22512. Intel sapphirerapids CPU with 64-bit extensions, MOVBE, MMX,
  22513. SSE, SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, POPCNT, PKU, AVX,
  22514. AVX2, AES, PCLMUL, FSGSBASE, RDRND, FMA, BMI, BMI2, F16C,
  22515. RDSEED, ADCX, PREFETCHW, CLFLUSHOPT, XSAVEC, XSAVES, AVX512F,
  22516. CLWB, AVX512VL, AVX512BW, AVX512DQ, AVX512CD, AVX512VNNI,
  22517. AVX512BF16, MOVDIRI, MOVDIR64B, AVX512VP2INTERSECT, ENQCMD,
  22518. CLDEMOTE, PTWRITE, WAITPKG, SERIALIZE, TSXLDTRK, UINTR,
  22519. AMX-BF16, AMX-TILE, AMX-INT8 and AVX-VNNI instruction set
  22520. support.
  22521. 'alderlake'
  22522. Intel Alderlake CPU with 64-bit extensions, MOVBE, MMX, SSE,
  22523. SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, POPCNT, AES, PREFETCHW,
  22524. PCLMUL, RDRND, XSAVE, XSAVEC, XSAVES, XSAVEOPT, FSGSBASE,
  22525. PTWRITE, RDPID, SGX, UMIP, GFNI-SSE, CLWB, MOVDIRI, MOVDIR64B,
  22526. CLDEMOTE, WAITPKG, ADCX, AVX, AVX2, BMI, BMI2, F16C, FMA,
  22527. LZCNT, PCONFIG, PKU, VAES, VPCLMULQDQ, SERIALIZE, HRESET, KL,
  22528. WIDEKL and AVX-VNNI instruction set support.
  22529. 'rocketlake'
  22530. Intel Rocketlake CPU with 64-bit extensions, MOVBE, MMX, SSE,
  22531. SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, POPCNT, PKU, AVX, AVX2,
  22532. AES, PCLMUL, FSGSBASE, RDRND, FMA, BMI, BMI2, F16C, RDSEED,
  22533. ADCX, PREFETCHW, CLFLUSHOPT, XSAVEC, XSAVES, AVX512F,
  22534. AVX512VL, AVX512BW, AVX512DQ, AVX512CD, AVX512VBMI,
  22535. AVX512IFMA, SHA, CLWB, UMIP, RDPID, GFNI, AVX512VBMI2,
  22536. AVX512VPOPCNTDQ, AVX512BITALG, AVX512VNNI, VPCLMULQDQ, VAES
  22537. instruction set support.
  22538. 'k6'
  22539. AMD K6 CPU with MMX instruction set support.
  22540. 'k6-2'
  22541. 'k6-3'
  22542. Improved versions of AMD K6 CPU with MMX and 3DNow!
  22543. instruction set support.
  22544. 'athlon'
  22545. 'athlon-tbird'
  22546. AMD Athlon CPU with MMX, 3dNOW!, enhanced 3DNow! and SSE
  22547. prefetch instructions support.
  22548. 'athlon-4'
  22549. 'athlon-xp'
  22550. 'athlon-mp'
  22551. Improved AMD Athlon CPU with MMX, 3DNow!, enhanced 3DNow! and
  22552. full SSE instruction set support.
  22553. 'k8'
  22554. 'opteron'
  22555. 'athlon64'
  22556. 'athlon-fx'
  22557. Processors based on the AMD K8 core with x86-64 instruction
  22558. set support, including the AMD Opteron, Athlon 64, and Athlon
  22559. 64 FX processors. (This supersets MMX, SSE, SSE2, 3DNow!,
  22560. enhanced 3DNow! and 64-bit instruction set extensions.)
  22561. 'k8-sse3'
  22562. 'opteron-sse3'
  22563. 'athlon64-sse3'
  22564. Improved versions of AMD K8 cores with SSE3 instruction set
  22565. support.
  22566. 'amdfam10'
  22567. 'barcelona'
  22568. CPUs based on AMD Family 10h cores with x86-64 instruction set
  22569. support. (This supersets MMX, SSE, SSE2, SSE3, SSE4A, 3DNow!,
  22570. enhanced 3DNow!, ABM and 64-bit instruction set extensions.)
  22571. 'bdver1'
  22572. CPUs based on AMD Family 15h cores with x86-64 instruction set
  22573. support. (This supersets FMA4, AVX, XOP, LWP, AES, PCLMUL,
  22574. CX16, MMX, SSE, SSE2, SSE3, SSE4A, SSSE3, SSE4.1, SSE4.2, ABM
  22575. and 64-bit instruction set extensions.)
  22576. 'bdver2'
  22577. AMD Family 15h core based CPUs with x86-64 instruction set
  22578. support. (This supersets BMI, TBM, F16C, FMA, FMA4, AVX, XOP,
  22579. LWP, AES, PCLMUL, CX16, MMX, SSE, SSE2, SSE3, SSE4A, SSSE3,
  22580. SSE4.1, SSE4.2, ABM and 64-bit instruction set extensions.)
  22581. 'bdver3'
  22582. AMD Family 15h core based CPUs with x86-64 instruction set
  22583. support. (This supersets BMI, TBM, F16C, FMA, FMA4, FSGSBASE,
  22584. AVX, XOP, LWP, AES, PCLMUL, CX16, MMX, SSE, SSE2, SSE3, SSE4A,
  22585. SSSE3, SSE4.1, SSE4.2, ABM and 64-bit instruction set
  22586. extensions.)
  22587. 'bdver4'
  22588. AMD Family 15h core based CPUs with x86-64 instruction set
  22589. support. (This supersets BMI, BMI2, TBM, F16C, FMA, FMA4,
  22590. FSGSBASE, AVX, AVX2, XOP, LWP, AES, PCLMUL, CX16, MOVBE, MMX,
  22591. SSE, SSE2, SSE3, SSE4A, SSSE3, SSE4.1, SSE4.2, ABM and 64-bit
  22592. instruction set extensions.)
  22593. 'znver1'
  22594. AMD Family 17h core based CPUs with x86-64 instruction set
  22595. support. (This supersets BMI, BMI2, F16C, FMA, FSGSBASE, AVX,
  22596. AVX2, ADCX, RDSEED, MWAITX, SHA, CLZERO, AES, PCLMUL, CX16,
  22597. MOVBE, MMX, SSE, SSE2, SSE3, SSE4A, SSSE3, SSE4.1, SSE4.2,
  22598. ABM, XSAVEC, XSAVES, CLFLUSHOPT, POPCNT, and 64-bit
  22599. instruction set extensions.)
  22600. 'znver2'
  22601. AMD Family 17h core based CPUs with x86-64 instruction set
  22602. support. (This supersets BMI, BMI2, CLWB, F16C, FMA,
  22603. FSGSBASE, AVX, AVX2, ADCX, RDSEED, MWAITX, SHA, CLZERO, AES,
  22604. PCLMUL, CX16, MOVBE, MMX, SSE, SSE2, SSE3, SSE4A, SSSE3,
  22605. SSE4.1, SSE4.2, ABM, XSAVEC, XSAVES, CLFLUSHOPT, POPCNT,
  22606. RDPID, WBNOINVD, and 64-bit instruction set extensions.)
  22607. 'znver3'
  22608. AMD Family 19h core based CPUs with x86-64 instruction set
  22609. support. (This supersets BMI, BMI2, CLWB, F16C, FMA,
  22610. FSGSBASE, AVX, AVX2, ADCX, RDSEED, MWAITX, SHA, CLZERO, AES,
  22611. PCLMUL, CX16, MOVBE, MMX, SSE, SSE2, SSE3, SSE4A, SSSE3,
  22612. SSE4.1, SSE4.2, ABM, XSAVEC, XSAVES, CLFLUSHOPT, POPCNT,
  22613. RDPID, WBNOINVD, PKU, VPCLMULQDQ, VAES, and 64-bit instruction
  22614. set extensions.)
  22615. 'btver1'
  22616. CPUs based on AMD Family 14h cores with x86-64 instruction set
  22617. support. (This supersets MMX, SSE, SSE2, SSE3, SSSE3, SSE4A,
  22618. CX16, ABM and 64-bit instruction set extensions.)
  22619. 'btver2'
  22620. CPUs based on AMD Family 16h cores with x86-64 instruction set
  22621. support. This includes MOVBE, F16C, BMI, AVX, PCLMUL, AES,
  22622. SSE4.2, SSE4.1, CX16, ABM, SSE4A, SSSE3, SSE3, SSE2, SSE, MMX
  22623. and 64-bit instruction set extensions.
  22624. 'winchip-c6'
  22625. IDT WinChip C6 CPU, dealt in same way as i486 with additional
  22626. MMX instruction set support.
  22627. 'winchip2'
  22628. IDT WinChip 2 CPU, dealt in same way as i486 with additional
  22629. MMX and 3DNow! instruction set support.
  22630. 'c3'
  22631. VIA C3 CPU with MMX and 3DNow! instruction set support. (No
  22632. scheduling is implemented for this chip.)
  22633. 'c3-2'
  22634. VIA C3-2 (Nehemiah/C5XL) CPU with MMX and SSE instruction set
  22635. support. (No scheduling is implemented for this chip.)
  22636. 'c7'
  22637. VIA C7 (Esther) CPU with MMX, SSE, SSE2 and SSE3 instruction
  22638. set support. (No scheduling is implemented for this chip.)
  22639. 'samuel-2'
  22640. VIA Eden Samuel 2 CPU with MMX and 3DNow! instruction set
  22641. support. (No scheduling is implemented for this chip.)
  22642. 'nehemiah'
  22643. VIA Eden Nehemiah CPU with MMX and SSE instruction set
  22644. support. (No scheduling is implemented for this chip.)
  22645. 'esther'
  22646. VIA Eden Esther CPU with MMX, SSE, SSE2 and SSE3 instruction
  22647. set support. (No scheduling is implemented for this chip.)
  22648. 'eden-x2'
  22649. VIA Eden X2 CPU with x86-64, MMX, SSE, SSE2 and SSE3
  22650. instruction set support. (No scheduling is implemented for
  22651. this chip.)
  22652. 'eden-x4'
  22653. VIA Eden X4 CPU with x86-64, MMX, SSE, SSE2, SSE3, SSSE3,
  22654. SSE4.1, SSE4.2, AVX and AVX2 instruction set support. (No
  22655. scheduling is implemented for this chip.)
  22656. 'nano'
  22657. Generic VIA Nano CPU with x86-64, MMX, SSE, SSE2, SSE3 and
  22658. SSSE3 instruction set support. (No scheduling is implemented
  22659. for this chip.)
  22660. 'nano-1000'
  22661. VIA Nano 1xxx CPU with x86-64, MMX, SSE, SSE2, SSE3 and SSSE3
  22662. instruction set support. (No scheduling is implemented for
  22663. this chip.)
  22664. 'nano-2000'
  22665. VIA Nano 2xxx CPU with x86-64, MMX, SSE, SSE2, SSE3 and SSSE3
  22666. instruction set support. (No scheduling is implemented for
  22667. this chip.)
  22668. 'nano-3000'
  22669. VIA Nano 3xxx CPU with x86-64, MMX, SSE, SSE2, SSE3, SSSE3 and
  22670. SSE4.1 instruction set support. (No scheduling is implemented
  22671. for this chip.)
  22672. 'nano-x2'
  22673. VIA Nano Dual Core CPU with x86-64, MMX, SSE, SSE2, SSE3,
  22674. SSSE3 and SSE4.1 instruction set support. (No scheduling is
  22675. implemented for this chip.)
  22676. 'nano-x4'
  22677. VIA Nano Quad Core CPU with x86-64, MMX, SSE, SSE2, SSE3,
  22678. SSSE3 and SSE4.1 instruction set support. (No scheduling is
  22679. implemented for this chip.)
  22680. 'geode'
  22681. AMD Geode embedded processor with MMX and 3DNow! instruction
  22682. set support.
  22683. '-mtune=CPU-TYPE'
  22684. Tune to CPU-TYPE everything applicable about the generated code,
  22685. except for the ABI and the set of available instructions. While
  22686. picking a specific CPU-TYPE schedules things appropriately for that
  22687. particular chip, the compiler does not generate any code that
  22688. cannot run on the default machine type unless you use a
  22689. '-march=CPU-TYPE' option. For example, if GCC is configured for
  22690. i686-pc-linux-gnu then '-mtune=pentium4' generates code that is
  22691. tuned for Pentium 4 but still runs on i686 machines.
  22692. The choices for CPU-TYPE are the same as for '-march'. In
  22693. addition, '-mtune' supports 2 extra choices for CPU-TYPE:
  22694. 'generic'
  22695. Produce code optimized for the most common IA32/AMD64/EM64T
  22696. processors. If you know the CPU on which your code will run,
  22697. then you should use the corresponding '-mtune' or '-march'
  22698. option instead of '-mtune=generic'. But, if you do not know
  22699. exactly what CPU users of your application will have, then you
  22700. should use this option.
  22701. As new processors are deployed in the marketplace, the
  22702. behavior of this option will change. Therefore, if you
  22703. upgrade to a newer version of GCC, code generation controlled
  22704. by this option will change to reflect the processors that are
  22705. most common at the time that version of GCC is released.
  22706. There is no '-march=generic' option because '-march' indicates
  22707. the instruction set the compiler can use, and there is no
  22708. generic instruction set applicable to all processors. In
  22709. contrast, '-mtune' indicates the processor (or, in this case,
  22710. collection of processors) for which the code is optimized.
  22711. 'intel'
  22712. Produce code optimized for the most current Intel processors,
  22713. which are Haswell and Silvermont for this version of GCC. If
  22714. you know the CPU on which your code will run, then you should
  22715. use the corresponding '-mtune' or '-march' option instead of
  22716. '-mtune=intel'. But, if you want your application performs
  22717. better on both Haswell and Silvermont, then you should use
  22718. this option.
  22719. As new Intel processors are deployed in the marketplace, the
  22720. behavior of this option will change. Therefore, if you
  22721. upgrade to a newer version of GCC, code generation controlled
  22722. by this option will change to reflect the most current Intel
  22723. processors at the time that version of GCC is released.
  22724. There is no '-march=intel' option because '-march' indicates
  22725. the instruction set the compiler can use, and there is no
  22726. common instruction set applicable to all processors. In
  22727. contrast, '-mtune' indicates the processor (or, in this case,
  22728. collection of processors) for which the code is optimized.
  22729. '-mcpu=CPU-TYPE'
  22730. A deprecated synonym for '-mtune'.
  22731. '-mfpmath=UNIT'
  22732. Generate floating-point arithmetic for selected unit UNIT. The
  22733. choices for UNIT are:
  22734. '387'
  22735. Use the standard 387 floating-point coprocessor present on the
  22736. majority of chips and emulated otherwise. Code compiled with
  22737. this option runs almost everywhere. The temporary results are
  22738. computed in 80-bit precision instead of the precision
  22739. specified by the type, resulting in slightly different results
  22740. compared to most of other chips. See '-ffloat-store' for more
  22741. detailed description.
  22742. This is the default choice for non-Darwin x86-32 targets.
  22743. 'sse'
  22744. Use scalar floating-point instructions present in the SSE
  22745. instruction set. This instruction set is supported by Pentium
  22746. III and newer chips, and in the AMD line by Athlon-4, Athlon
  22747. XP and Athlon MP chips. The earlier version of the SSE
  22748. instruction set supports only single-precision arithmetic,
  22749. thus the double and extended-precision arithmetic are still
  22750. done using 387. A later version, present only in Pentium 4
  22751. and AMD x86-64 chips, supports double-precision arithmetic
  22752. too.
  22753. For the x86-32 compiler, you must use '-march=CPU-TYPE',
  22754. '-msse' or '-msse2' switches to enable SSE extensions and make
  22755. this option effective. For the x86-64 compiler, these
  22756. extensions are enabled by default.
  22757. The resulting code should be considerably faster in the
  22758. majority of cases and avoid the numerical instability problems
  22759. of 387 code, but may break some existing code that expects
  22760. temporaries to be 80 bits.
  22761. This is the default choice for the x86-64 compiler, Darwin
  22762. x86-32 targets, and the default choice for x86-32 targets with
  22763. the SSE2 instruction set when '-ffast-math' is enabled.
  22764. 'sse,387'
  22765. 'sse+387'
  22766. 'both'
  22767. Attempt to utilize both instruction sets at once. This
  22768. effectively doubles the amount of available registers, and on
  22769. chips with separate execution units for 387 and SSE the
  22770. execution resources too. Use this option with care, as it is
  22771. still experimental, because the GCC register allocator does
  22772. not model separate functional units well, resulting in
  22773. unstable performance.
  22774. '-masm=DIALECT'
  22775. Output assembly instructions using selected DIALECT. Also affects
  22776. which dialect is used for basic 'asm' (*note Basic Asm::) and
  22777. extended 'asm' (*note Extended Asm::). Supported choices (in
  22778. dialect order) are 'att' or 'intel'. The default is 'att'. Darwin
  22779. does not support 'intel'.
  22780. '-mieee-fp'
  22781. '-mno-ieee-fp'
  22782. Control whether or not the compiler uses IEEE floating-point
  22783. comparisons. These correctly handle the case where the result of a
  22784. comparison is unordered.
  22785. '-m80387'
  22786. '-mhard-float'
  22787. Generate output containing 80387 instructions for floating point.
  22788. '-mno-80387'
  22789. '-msoft-float'
  22790. Generate output containing library calls for floating point.
  22791. *Warning:* the requisite libraries are not part of GCC. Normally
  22792. the facilities of the machine's usual C compiler are used, but this
  22793. cannot be done directly in cross-compilation. You must make your
  22794. own arrangements to provide suitable library functions for
  22795. cross-compilation.
  22796. On machines where a function returns floating-point results in the
  22797. 80387 register stack, some floating-point opcodes may be emitted
  22798. even if '-msoft-float' is used.
  22799. '-mno-fp-ret-in-387'
  22800. Do not use the FPU registers for return values of functions.
  22801. The usual calling convention has functions return values of types
  22802. 'float' and 'double' in an FPU register, even if there is no FPU.
  22803. The idea is that the operating system should emulate an FPU.
  22804. The option '-mno-fp-ret-in-387' causes such values to be returned
  22805. in ordinary CPU registers instead.
  22806. '-mno-fancy-math-387'
  22807. Some 387 emulators do not support the 'sin', 'cos' and 'sqrt'
  22808. instructions for the 387. Specify this option to avoid generating
  22809. those instructions. This option is overridden when '-march'
  22810. indicates that the target CPU always has an FPU and so the
  22811. instruction does not need emulation. These instructions are not
  22812. generated unless you also use the '-funsafe-math-optimizations'
  22813. switch.
  22814. '-malign-double'
  22815. '-mno-align-double'
  22816. Control whether GCC aligns 'double', 'long double', and 'long long'
  22817. variables on a two-word boundary or a one-word boundary. Aligning
  22818. 'double' variables on a two-word boundary produces code that runs
  22819. somewhat faster on a Pentium at the expense of more memory.
  22820. On x86-64, '-malign-double' is enabled by default.
  22821. *Warning:* if you use the '-malign-double' switch, structures
  22822. containing the above types are aligned differently than the
  22823. published application binary interface specifications for the
  22824. x86-32 and are not binary compatible with structures in code
  22825. compiled without that switch.
  22826. '-m96bit-long-double'
  22827. '-m128bit-long-double'
  22828. These switches control the size of 'long double' type. The x86-32
  22829. application binary interface specifies the size to be 96 bits, so
  22830. '-m96bit-long-double' is the default in 32-bit mode.
  22831. Modern architectures (Pentium and newer) prefer 'long double' to be
  22832. aligned to an 8- or 16-byte boundary. In arrays or structures
  22833. conforming to the ABI, this is not possible. So specifying
  22834. '-m128bit-long-double' aligns 'long double' to a 16-byte boundary
  22835. by padding the 'long double' with an additional 32-bit zero.
  22836. In the x86-64 compiler, '-m128bit-long-double' is the default
  22837. choice as its ABI specifies that 'long double' is aligned on
  22838. 16-byte boundary.
  22839. Notice that neither of these options enable any extra precision
  22840. over the x87 standard of 80 bits for a 'long double'.
  22841. *Warning:* if you override the default value for your target ABI,
  22842. this changes the size of structures and arrays containing 'long
  22843. double' variables, as well as modifying the function calling
  22844. convention for functions taking 'long double'. Hence they are not
  22845. binary-compatible with code compiled without that switch.
  22846. '-mlong-double-64'
  22847. '-mlong-double-80'
  22848. '-mlong-double-128'
  22849. These switches control the size of 'long double' type. A size of
  22850. 64 bits makes the 'long double' type equivalent to the 'double'
  22851. type. This is the default for 32-bit Bionic C library. A size of
  22852. 128 bits makes the 'long double' type equivalent to the
  22853. '__float128' type. This is the default for 64-bit Bionic C
  22854. library.
  22855. *Warning:* if you override the default value for your target ABI,
  22856. this changes the size of structures and arrays containing 'long
  22857. double' variables, as well as modifying the function calling
  22858. convention for functions taking 'long double'. Hence they are not
  22859. binary-compatible with code compiled without that switch.
  22860. '-malign-data=TYPE'
  22861. Control how GCC aligns variables. Supported values for TYPE are
  22862. 'compat' uses increased alignment value compatible uses GCC 4.8 and
  22863. earlier, 'abi' uses alignment value as specified by the psABI, and
  22864. 'cacheline' uses increased alignment value to match the cache line
  22865. size. 'compat' is the default.
  22866. '-mlarge-data-threshold=THRESHOLD'
  22867. When '-mcmodel=medium' is specified, data objects larger than
  22868. THRESHOLD are placed in the large data section. This value must be
  22869. the same across all objects linked into the binary, and defaults to
  22870. 65535.
  22871. '-mrtd'
  22872. Use a different function-calling convention, in which functions
  22873. that take a fixed number of arguments return with the 'ret NUM'
  22874. instruction, which pops their arguments while returning. This
  22875. saves one instruction in the caller since there is no need to pop
  22876. the arguments there.
  22877. You can specify that an individual function is called with this
  22878. calling sequence with the function attribute 'stdcall'. You can
  22879. also override the '-mrtd' option by using the function attribute
  22880. 'cdecl'. *Note Function Attributes::.
  22881. *Warning:* this calling convention is incompatible with the one
  22882. normally used on Unix, so you cannot use it if you need to call
  22883. libraries compiled with the Unix compiler.
  22884. Also, you must provide function prototypes for all functions that
  22885. take variable numbers of arguments (including 'printf'); otherwise
  22886. incorrect code is generated for calls to those functions.
  22887. In addition, seriously incorrect code results if you call a
  22888. function with too many arguments. (Normally, extra arguments are
  22889. harmlessly ignored.)
  22890. '-mregparm=NUM'
  22891. Control how many registers are used to pass integer arguments. By
  22892. default, no registers are used to pass arguments, and at most 3
  22893. registers can be used. You can control this behavior for a
  22894. specific function by using the function attribute 'regparm'. *Note
  22895. Function Attributes::.
  22896. *Warning:* if you use this switch, and NUM is nonzero, then you
  22897. must build all modules with the same value, including any
  22898. libraries. This includes the system libraries and startup modules.
  22899. '-msseregparm'
  22900. Use SSE register passing conventions for float and double arguments
  22901. and return values. You can control this behavior for a specific
  22902. function by using the function attribute 'sseregparm'. *Note
  22903. Function Attributes::.
  22904. *Warning:* if you use this switch then you must build all modules
  22905. with the same value, including any libraries. This includes the
  22906. system libraries and startup modules.
  22907. '-mvect8-ret-in-mem'
  22908. Return 8-byte vectors in memory instead of MMX registers. This is
  22909. the default on VxWorks to match the ABI of the Sun Studio compilers
  22910. until version 12. _Only_ use this option if you need to remain
  22911. compatible with existing code produced by those previous compiler
  22912. versions or older versions of GCC.
  22913. '-mpc32'
  22914. '-mpc64'
  22915. '-mpc80'
  22916. Set 80387 floating-point precision to 32, 64 or 80 bits. When
  22917. '-mpc32' is specified, the significands of results of
  22918. floating-point operations are rounded to 24 bits (single
  22919. precision); '-mpc64' rounds the significands of results of
  22920. floating-point operations to 53 bits (double precision) and
  22921. '-mpc80' rounds the significands of results of floating-point
  22922. operations to 64 bits (extended double precision), which is the
  22923. default. When this option is used, floating-point operations in
  22924. higher precisions are not available to the programmer without
  22925. setting the FPU control word explicitly.
  22926. Setting the rounding of floating-point operations to less than the
  22927. default 80 bits can speed some programs by 2% or more. Note that
  22928. some mathematical libraries assume that extended-precision (80-bit)
  22929. floating-point operations are enabled by default; routines in such
  22930. libraries could suffer significant loss of accuracy, typically
  22931. through so-called "catastrophic cancellation", when this option is
  22932. used to set the precision to less than extended precision.
  22933. '-mstackrealign'
  22934. Realign the stack at entry. On the x86, the '-mstackrealign'
  22935. option generates an alternate prologue and epilogue that realigns
  22936. the run-time stack if necessary. This supports mixing legacy codes
  22937. that keep 4-byte stack alignment with modern codes that keep
  22938. 16-byte stack alignment for SSE compatibility. See also the
  22939. attribute 'force_align_arg_pointer', applicable to individual
  22940. functions.
  22941. '-mpreferred-stack-boundary=NUM'
  22942. Attempt to keep the stack boundary aligned to a 2 raised to NUM
  22943. byte boundary. If '-mpreferred-stack-boundary' is not specified,
  22944. the default is 4 (16 bytes or 128 bits).
  22945. *Warning:* When generating code for the x86-64 architecture with
  22946. SSE extensions disabled, '-mpreferred-stack-boundary=3' can be used
  22947. to keep the stack boundary aligned to 8 byte boundary. Since
  22948. x86-64 ABI require 16 byte stack alignment, this is ABI
  22949. incompatible and intended to be used in controlled environment
  22950. where stack space is important limitation. This option leads to
  22951. wrong code when functions compiled with 16 byte stack alignment
  22952. (such as functions from a standard library) are called with
  22953. misaligned stack. In this case, SSE instructions may lead to
  22954. misaligned memory access traps. In addition, variable arguments
  22955. are handled incorrectly for 16 byte aligned objects (including x87
  22956. long double and __int128), leading to wrong results. You must
  22957. build all modules with '-mpreferred-stack-boundary=3', including
  22958. any libraries. This includes the system libraries and startup
  22959. modules.
  22960. '-mincoming-stack-boundary=NUM'
  22961. Assume the incoming stack is aligned to a 2 raised to NUM byte
  22962. boundary. If '-mincoming-stack-boundary' is not specified, the one
  22963. specified by '-mpreferred-stack-boundary' is used.
  22964. On Pentium and Pentium Pro, 'double' and 'long double' values
  22965. should be aligned to an 8-byte boundary (see '-malign-double') or
  22966. suffer significant run time performance penalties. On Pentium III,
  22967. the Streaming SIMD Extension (SSE) data type '__m128' may not work
  22968. properly if it is not 16-byte aligned.
  22969. To ensure proper alignment of this values on the stack, the stack
  22970. boundary must be as aligned as that required by any value stored on
  22971. the stack. Further, every function must be generated such that it
  22972. keeps the stack aligned. Thus calling a function compiled with a
  22973. higher preferred stack boundary from a function compiled with a
  22974. lower preferred stack boundary most likely misaligns the stack. It
  22975. is recommended that libraries that use callbacks always use the
  22976. default setting.
  22977. This extra alignment does consume extra stack space, and generally
  22978. increases code size. Code that is sensitive to stack space usage,
  22979. such as embedded systems and operating system kernels, may want to
  22980. reduce the preferred alignment to '-mpreferred-stack-boundary=2'.
  22981. '-mmmx'
  22982. '-msse'
  22983. '-msse2'
  22984. '-msse3'
  22985. '-mssse3'
  22986. '-msse4'
  22987. '-msse4a'
  22988. '-msse4.1'
  22989. '-msse4.2'
  22990. '-mavx'
  22991. '-mavx2'
  22992. '-mavx512f'
  22993. '-mavx512pf'
  22994. '-mavx512er'
  22995. '-mavx512cd'
  22996. '-mavx512vl'
  22997. '-mavx512bw'
  22998. '-mavx512dq'
  22999. '-mavx512ifma'
  23000. '-mavx512vbmi'
  23001. '-msha'
  23002. '-maes'
  23003. '-mpclmul'
  23004. '-mclflushopt'
  23005. '-mclwb'
  23006. '-mfsgsbase'
  23007. '-mptwrite'
  23008. '-mrdrnd'
  23009. '-mf16c'
  23010. '-mfma'
  23011. '-mpconfig'
  23012. '-mwbnoinvd'
  23013. '-mfma4'
  23014. '-mprfchw'
  23015. '-mrdpid'
  23016. '-mprefetchwt1'
  23017. '-mrdseed'
  23018. '-msgx'
  23019. '-mxop'
  23020. '-mlwp'
  23021. '-m3dnow'
  23022. '-m3dnowa'
  23023. '-mpopcnt'
  23024. '-mabm'
  23025. '-madx'
  23026. '-mbmi'
  23027. '-mbmi2'
  23028. '-mlzcnt'
  23029. '-mfxsr'
  23030. '-mxsave'
  23031. '-mxsaveopt'
  23032. '-mxsavec'
  23033. '-mxsaves'
  23034. '-mrtm'
  23035. '-mhle'
  23036. '-mtbm'
  23037. '-mmwaitx'
  23038. '-mclzero'
  23039. '-mpku'
  23040. '-mavx512vbmi2'
  23041. '-mavx512bf16'
  23042. '-mgfni'
  23043. '-mvaes'
  23044. '-mwaitpkg'
  23045. '-mvpclmulqdq'
  23046. '-mavx512bitalg'
  23047. '-mmovdiri'
  23048. '-mmovdir64b'
  23049. '-menqcmd'
  23050. '-muintr'
  23051. '-mtsxldtrk'
  23052. '-mavx512vpopcntdq'
  23053. '-mavx512vp2intersect'
  23054. '-mavx5124fmaps'
  23055. '-mavx512vnni'
  23056. '-mavxvnni'
  23057. '-mavx5124vnniw'
  23058. '-mcldemote'
  23059. '-mserialize'
  23060. '-mamx-tile'
  23061. '-mamx-int8'
  23062. '-mamx-bf16'
  23063. '-mhreset'
  23064. '-mkl'
  23065. '-mwidekl'
  23066. These switches enable the use of instructions in the MMX, SSE,
  23067. SSE2, SSE3, SSSE3, SSE4, SSE4A, SSE4.1, SSE4.2, AVX, AVX2, AVX512F,
  23068. AVX512PF, AVX512ER, AVX512CD, AVX512VL, AVX512BW, AVX512DQ,
  23069. AVX512IFMA, AVX512VBMI, SHA, AES, PCLMUL, CLFLUSHOPT, CLWB,
  23070. FSGSBASE, PTWRITE, RDRND, F16C, FMA, PCONFIG, WBNOINVD, FMA4,
  23071. PREFETCHW, RDPID, PREFETCHWT1, RDSEED, SGX, XOP, LWP, 3DNow!,
  23072. enhanced 3DNow!, POPCNT, ABM, ADX, BMI, BMI2, LZCNT, FXSR, XSAVE,
  23073. XSAVEOPT, XSAVEC, XSAVES, RTM, HLE, TBM, MWAITX, CLZERO, PKU,
  23074. AVX512VBMI2, GFNI, VAES, WAITPKG, VPCLMULQDQ, AVX512BITALG,
  23075. MOVDIRI, MOVDIR64B, AVX512BF16, ENQCMD, AVX512VPOPCNTDQ,
  23076. AVX5124FMAPS, AVX512VNNI, AVX5124VNNIW, SERIALIZE, UINTR, HRESET,
  23077. AMXTILE, AMXINT8, AMXBF16, KL, WIDEKL, AVXVNNI or CLDEMOTE extended
  23078. instruction sets. Each has a corresponding '-mno-' option to
  23079. disable use of these instructions.
  23080. These extensions are also available as built-in functions: see
  23081. *note x86 Built-in Functions::, for details of the functions
  23082. enabled and disabled by these switches.
  23083. To generate SSE/SSE2 instructions automatically from floating-point
  23084. code (as opposed to 387 instructions), see '-mfpmath=sse'.
  23085. GCC depresses SSEx instructions when '-mavx' is used. Instead, it
  23086. generates new AVX instructions or AVX equivalence for all SSEx
  23087. instructions when needed.
  23088. These options enable GCC to use these extended instructions in
  23089. generated code, even without '-mfpmath=sse'. Applications that
  23090. perform run-time CPU detection must compile separate files for each
  23091. supported architecture, using the appropriate flags. In
  23092. particular, the file containing the CPU detection code should be
  23093. compiled without these options.
  23094. '-mdump-tune-features'
  23095. This option instructs GCC to dump the names of the x86 performance
  23096. tuning features and default settings. The names can be used in
  23097. '-mtune-ctrl=FEATURE-LIST'.
  23098. '-mtune-ctrl=FEATURE-LIST'
  23099. This option is used to do fine grain control of x86 code generation
  23100. features. FEATURE-LIST is a comma separated list of FEATURE names.
  23101. See also '-mdump-tune-features'. When specified, the FEATURE is
  23102. turned on if it is not preceded with '^', otherwise, it is turned
  23103. off. '-mtune-ctrl=FEATURE-LIST' is intended to be used by GCC
  23104. developers. Using it may lead to code paths not covered by testing
  23105. and can potentially result in compiler ICEs or runtime errors.
  23106. '-mno-default'
  23107. This option instructs GCC to turn off all tunable features. See
  23108. also '-mtune-ctrl=FEATURE-LIST' and '-mdump-tune-features'.
  23109. '-mcld'
  23110. This option instructs GCC to emit a 'cld' instruction in the
  23111. prologue of functions that use string instructions. String
  23112. instructions depend on the DF flag to select between autoincrement
  23113. or autodecrement mode. While the ABI specifies the DF flag to be
  23114. cleared on function entry, some operating systems violate this
  23115. specification by not clearing the DF flag in their exception
  23116. dispatchers. The exception handler can be invoked with the DF flag
  23117. set, which leads to wrong direction mode when string instructions
  23118. are used. This option can be enabled by default on 32-bit x86
  23119. targets by configuring GCC with the '--enable-cld' configure
  23120. option. Generation of 'cld' instructions can be suppressed with
  23121. the '-mno-cld' compiler option in this case.
  23122. '-mvzeroupper'
  23123. This option instructs GCC to emit a 'vzeroupper' instruction before
  23124. a transfer of control flow out of the function to minimize the AVX
  23125. to SSE transition penalty as well as remove unnecessary 'zeroupper'
  23126. intrinsics.
  23127. '-mprefer-avx128'
  23128. This option instructs GCC to use 128-bit AVX instructions instead
  23129. of 256-bit AVX instructions in the auto-vectorizer.
  23130. '-mprefer-vector-width=OPT'
  23131. This option instructs GCC to use OPT-bit vector width in
  23132. instructions instead of default on the selected platform.
  23133. 'none'
  23134. No extra limitations applied to GCC other than defined by the
  23135. selected platform.
  23136. '128'
  23137. Prefer 128-bit vector width for instructions.
  23138. '256'
  23139. Prefer 256-bit vector width for instructions.
  23140. '512'
  23141. Prefer 512-bit vector width for instructions.
  23142. '-mcx16'
  23143. This option enables GCC to generate 'CMPXCHG16B' instructions in
  23144. 64-bit code to implement compare-and-exchange operations on 16-byte
  23145. aligned 128-bit objects. This is useful for atomic updates of data
  23146. structures exceeding one machine word in size. The compiler uses
  23147. this instruction to implement *note __sync Builtins::. However,
  23148. for *note __atomic Builtins:: operating on 128-bit integers, a
  23149. library call is always used.
  23150. '-msahf'
  23151. This option enables generation of 'SAHF' instructions in 64-bit
  23152. code. Early Intel Pentium 4 CPUs with Intel 64 support, prior to
  23153. the introduction of Pentium 4 G1 step in December 2005, lacked the
  23154. 'LAHF' and 'SAHF' instructions which are supported by AMD64. These
  23155. are load and store instructions, respectively, for certain status
  23156. flags. In 64-bit mode, the 'SAHF' instruction is used to optimize
  23157. 'fmod', 'drem', and 'remainder' built-in functions; see *note Other
  23158. Builtins:: for details.
  23159. '-mmovbe'
  23160. This option enables use of the 'movbe' instruction to implement
  23161. '__builtin_bswap32' and '__builtin_bswap64'.
  23162. '-mshstk'
  23163. The '-mshstk' option enables shadow stack built-in functions from
  23164. x86 Control-flow Enforcement Technology (CET).
  23165. '-mcrc32'
  23166. This option enables built-in functions '__builtin_ia32_crc32qi',
  23167. '__builtin_ia32_crc32hi', '__builtin_ia32_crc32si' and
  23168. '__builtin_ia32_crc32di' to generate the 'crc32' machine
  23169. instruction.
  23170. '-mrecip'
  23171. This option enables use of 'RCPSS' and 'RSQRTSS' instructions (and
  23172. their vectorized variants 'RCPPS' and 'RSQRTPS') with an additional
  23173. Newton-Raphson step to increase precision instead of 'DIVSS' and
  23174. 'SQRTSS' (and their vectorized variants) for single-precision
  23175. floating-point arguments. These instructions are generated only
  23176. when '-funsafe-math-optimizations' is enabled together with
  23177. '-ffinite-math-only' and '-fno-trapping-math'. Note that while the
  23178. throughput of the sequence is higher than the throughput of the
  23179. non-reciprocal instruction, the precision of the sequence can be
  23180. decreased by up to 2 ulp (i.e. the inverse of 1.0 equals
  23181. 0.99999994).
  23182. Note that GCC implements '1.0f/sqrtf(X)' in terms of 'RSQRTSS' (or
  23183. 'RSQRTPS') already with '-ffast-math' (or the above option
  23184. combination), and doesn't need '-mrecip'.
  23185. Also note that GCC emits the above sequence with additional
  23186. Newton-Raphson step for vectorized single-float division and
  23187. vectorized 'sqrtf(X)' already with '-ffast-math' (or the above
  23188. option combination), and doesn't need '-mrecip'.
  23189. '-mrecip=OPT'
  23190. This option controls which reciprocal estimate instructions may be
  23191. used. OPT is a comma-separated list of options, which may be
  23192. preceded by a '!' to invert the option:
  23193. 'all'
  23194. Enable all estimate instructions.
  23195. 'default'
  23196. Enable the default instructions, equivalent to '-mrecip'.
  23197. 'none'
  23198. Disable all estimate instructions, equivalent to '-mno-recip'.
  23199. 'div'
  23200. Enable the approximation for scalar division.
  23201. 'vec-div'
  23202. Enable the approximation for vectorized division.
  23203. 'sqrt'
  23204. Enable the approximation for scalar square root.
  23205. 'vec-sqrt'
  23206. Enable the approximation for vectorized square root.
  23207. So, for example, '-mrecip=all,!sqrt' enables all of the reciprocal
  23208. approximations, except for square root.
  23209. '-mveclibabi=TYPE'
  23210. Specifies the ABI type to use for vectorizing intrinsics using an
  23211. external library. Supported values for TYPE are 'svml' for the
  23212. Intel short vector math library and 'acml' for the AMD math core
  23213. library. To use this option, both '-ftree-vectorize' and
  23214. '-funsafe-math-optimizations' have to be enabled, and an SVML or
  23215. ACML ABI-compatible library must be specified at link time.
  23216. GCC currently emits calls to 'vmldExp2', 'vmldLn2', 'vmldLog102',
  23217. 'vmldPow2', 'vmldTanh2', 'vmldTan2', 'vmldAtan2', 'vmldAtanh2',
  23218. 'vmldCbrt2', 'vmldSinh2', 'vmldSin2', 'vmldAsinh2', 'vmldAsin2',
  23219. 'vmldCosh2', 'vmldCos2', 'vmldAcosh2', 'vmldAcos2', 'vmlsExp4',
  23220. 'vmlsLn4', 'vmlsLog104', 'vmlsPow4', 'vmlsTanh4', 'vmlsTan4',
  23221. 'vmlsAtan4', 'vmlsAtanh4', 'vmlsCbrt4', 'vmlsSinh4', 'vmlsSin4',
  23222. 'vmlsAsinh4', 'vmlsAsin4', 'vmlsCosh4', 'vmlsCos4', 'vmlsAcosh4'
  23223. and 'vmlsAcos4' for corresponding function type when
  23224. '-mveclibabi=svml' is used, and '__vrd2_sin', '__vrd2_cos',
  23225. '__vrd2_exp', '__vrd2_log', '__vrd2_log2', '__vrd2_log10',
  23226. '__vrs4_sinf', '__vrs4_cosf', '__vrs4_expf', '__vrs4_logf',
  23227. '__vrs4_log2f', '__vrs4_log10f' and '__vrs4_powf' for the
  23228. corresponding function type when '-mveclibabi=acml' is used.
  23229. '-mabi=NAME'
  23230. Generate code for the specified calling convention. Permissible
  23231. values are 'sysv' for the ABI used on GNU/Linux and other systems,
  23232. and 'ms' for the Microsoft ABI. The default is to use the Microsoft
  23233. ABI when targeting Microsoft Windows and the SysV ABI on all other
  23234. systems. You can control this behavior for specific functions by
  23235. using the function attributes 'ms_abi' and 'sysv_abi'. *Note
  23236. Function Attributes::.
  23237. '-mforce-indirect-call'
  23238. Force all calls to functions to be indirect. This is useful when
  23239. using Intel Processor Trace where it generates more precise timing
  23240. information for function calls.
  23241. '-mmanual-endbr'
  23242. Insert ENDBR instruction at function entry only via the 'cf_check'
  23243. function attribute. This is useful when used with the option
  23244. '-fcf-protection=branch' to control ENDBR insertion at the function
  23245. entry.
  23246. '-mcall-ms2sysv-xlogues'
  23247. Due to differences in 64-bit ABIs, any Microsoft ABI function that
  23248. calls a System V ABI function must consider RSI, RDI and XMM6-15 as
  23249. clobbered. By default, the code for saving and restoring these
  23250. registers is emitted inline, resulting in fairly lengthy prologues
  23251. and epilogues. Using '-mcall-ms2sysv-xlogues' emits prologues and
  23252. epilogues that use stubs in the static portion of libgcc to perform
  23253. these saves and restores, thus reducing function size at the cost
  23254. of a few extra instructions.
  23255. '-mtls-dialect=TYPE'
  23256. Generate code to access thread-local storage using the 'gnu' or
  23257. 'gnu2' conventions. 'gnu' is the conservative default; 'gnu2' is
  23258. more efficient, but it may add compile- and run-time requirements
  23259. that cannot be satisfied on all systems.
  23260. '-mpush-args'
  23261. '-mno-push-args'
  23262. Use PUSH operations to store outgoing parameters. This method is
  23263. shorter and usually equally fast as method using SUB/MOV operations
  23264. and is enabled by default. In some cases disabling it may improve
  23265. performance because of improved scheduling and reduced
  23266. dependencies.
  23267. '-maccumulate-outgoing-args'
  23268. If enabled, the maximum amount of space required for outgoing
  23269. arguments is computed in the function prologue. This is faster on
  23270. most modern CPUs because of reduced dependencies, improved
  23271. scheduling and reduced stack usage when the preferred stack
  23272. boundary is not equal to 2. The drawback is a notable increase in
  23273. code size. This switch implies '-mno-push-args'.
  23274. '-mthreads'
  23275. Support thread-safe exception handling on MinGW. Programs that rely
  23276. on thread-safe exception handling must compile and link all code
  23277. with the '-mthreads' option. When compiling, '-mthreads' defines
  23278. '-D_MT'; when linking, it links in a special thread helper library
  23279. '-lmingwthrd' which cleans up per-thread exception-handling data.
  23280. '-mms-bitfields'
  23281. '-mno-ms-bitfields'
  23282. Enable/disable bit-field layout compatible with the native
  23283. Microsoft Windows compiler.
  23284. If 'packed' is used on a structure, or if bit-fields are used, it
  23285. may be that the Microsoft ABI lays out the structure differently
  23286. than the way GCC normally does. Particularly when moving packed
  23287. data between functions compiled with GCC and the native Microsoft
  23288. compiler (either via function call or as data in a file), it may be
  23289. necessary to access either format.
  23290. This option is enabled by default for Microsoft Windows targets.
  23291. This behavior can also be controlled locally by use of variable or
  23292. type attributes. For more information, see *note x86 Variable
  23293. Attributes:: and *note x86 Type Attributes::.
  23294. The Microsoft structure layout algorithm is fairly simple with the
  23295. exception of the bit-field packing. The padding and alignment of
  23296. members of structures and whether a bit-field can straddle a
  23297. storage-unit boundary are determine by these rules:
  23298. 1. Structure members are stored sequentially in the order in
  23299. which they are declared: the first member has the lowest
  23300. memory address and the last member the highest.
  23301. 2. Every data object has an alignment requirement. The alignment
  23302. requirement for all data except structures, unions, and arrays
  23303. is either the size of the object or the current packing size
  23304. (specified with either the 'aligned' attribute or the 'pack'
  23305. pragma), whichever is less. For structures, unions, and
  23306. arrays, the alignment requirement is the largest alignment
  23307. requirement of its members. Every object is allocated an
  23308. offset so that:
  23309. offset % alignment_requirement == 0
  23310. 3. Adjacent bit-fields are packed into the same 1-, 2-, or 4-byte
  23311. allocation unit if the integral types are the same size and if
  23312. the next bit-field fits into the current allocation unit
  23313. without crossing the boundary imposed by the common alignment
  23314. requirements of the bit-fields.
  23315. MSVC interprets zero-length bit-fields in the following ways:
  23316. 1. If a zero-length bit-field is inserted between two bit-fields
  23317. that are normally coalesced, the bit-fields are not coalesced.
  23318. For example:
  23319. struct
  23320. {
  23321. unsigned long bf_1 : 12;
  23322. unsigned long : 0;
  23323. unsigned long bf_2 : 12;
  23324. } t1;
  23325. The size of 't1' is 8 bytes with the zero-length bit-field.
  23326. If the zero-length bit-field were removed, 't1''s size would
  23327. be 4 bytes.
  23328. 2. If a zero-length bit-field is inserted after a bit-field,
  23329. 'foo', and the alignment of the zero-length bit-field is
  23330. greater than the member that follows it, 'bar', 'bar' is
  23331. aligned as the type of the zero-length bit-field.
  23332. For example:
  23333. struct
  23334. {
  23335. char foo : 4;
  23336. short : 0;
  23337. char bar;
  23338. } t2;
  23339. struct
  23340. {
  23341. char foo : 4;
  23342. short : 0;
  23343. double bar;
  23344. } t3;
  23345. For 't2', 'bar' is placed at offset 2, rather than offset 1.
  23346. Accordingly, the size of 't2' is 4. For 't3', the zero-length
  23347. bit-field does not affect the alignment of 'bar' or, as a
  23348. result, the size of the structure.
  23349. Taking this into account, it is important to note the
  23350. following:
  23351. 1. If a zero-length bit-field follows a normal bit-field,
  23352. the type of the zero-length bit-field may affect the
  23353. alignment of the structure as whole. For example, 't2'
  23354. has a size of 4 bytes, since the zero-length bit-field
  23355. follows a normal bit-field, and is of type short.
  23356. 2. Even if a zero-length bit-field is not followed by a
  23357. normal bit-field, it may still affect the alignment of
  23358. the structure:
  23359. struct
  23360. {
  23361. char foo : 6;
  23362. long : 0;
  23363. } t4;
  23364. Here, 't4' takes up 4 bytes.
  23365. 3. Zero-length bit-fields following non-bit-field members are
  23366. ignored:
  23367. struct
  23368. {
  23369. char foo;
  23370. long : 0;
  23371. char bar;
  23372. } t5;
  23373. Here, 't5' takes up 2 bytes.
  23374. '-mno-align-stringops'
  23375. Do not align the destination of inlined string operations. This
  23376. switch reduces code size and improves performance in case the
  23377. destination is already aligned, but GCC doesn't know about it.
  23378. '-minline-all-stringops'
  23379. By default GCC inlines string operations only when the destination
  23380. is known to be aligned to least a 4-byte boundary. This enables
  23381. more inlining and increases code size, but may improve performance
  23382. of code that depends on fast 'memcpy' and 'memset' for short
  23383. lengths. The option enables inline expansion of 'strlen' for all
  23384. pointer alignments.
  23385. '-minline-stringops-dynamically'
  23386. For string operations of unknown size, use run-time checks with
  23387. inline code for small blocks and a library call for large blocks.
  23388. '-mstringop-strategy=ALG'
  23389. Override the internal decision heuristic for the particular
  23390. algorithm to use for inlining string operations. The allowed
  23391. values for ALG are:
  23392. 'rep_byte'
  23393. 'rep_4byte'
  23394. 'rep_8byte'
  23395. Expand using i386 'rep' prefix of the specified size.
  23396. 'byte_loop'
  23397. 'loop'
  23398. 'unrolled_loop'
  23399. Expand into an inline loop.
  23400. 'libcall'
  23401. Always use a library call.
  23402. '-mmemcpy-strategy=STRATEGY'
  23403. Override the internal decision heuristic to decide if
  23404. '__builtin_memcpy' should be inlined and what inline algorithm to
  23405. use when the expected size of the copy operation is known.
  23406. STRATEGY is a comma-separated list of ALG:MAX_SIZE:DEST_ALIGN
  23407. triplets. ALG is specified in '-mstringop-strategy', MAX_SIZE
  23408. specifies the max byte size with which inline algorithm ALG is
  23409. allowed. For the last triplet, the MAX_SIZE must be '-1'. The
  23410. MAX_SIZE of the triplets in the list must be specified in
  23411. increasing order. The minimal byte size for ALG is '0' for the
  23412. first triplet and 'MAX_SIZE + 1' of the preceding range.
  23413. '-mmemset-strategy=STRATEGY'
  23414. The option is similar to '-mmemcpy-strategy=' except that it is to
  23415. control '__builtin_memset' expansion.
  23416. '-momit-leaf-frame-pointer'
  23417. Don't keep the frame pointer in a register for leaf functions.
  23418. This avoids the instructions to save, set up, and restore frame
  23419. pointers and makes an extra register available in leaf functions.
  23420. The option '-fomit-leaf-frame-pointer' removes the frame pointer
  23421. for leaf functions, which might make debugging harder.
  23422. '-mtls-direct-seg-refs'
  23423. '-mno-tls-direct-seg-refs'
  23424. Controls whether TLS variables may be accessed with offsets from
  23425. the TLS segment register ('%gs' for 32-bit, '%fs' for 64-bit), or
  23426. whether the thread base pointer must be added. Whether or not this
  23427. is valid depends on the operating system, and whether it maps the
  23428. segment to cover the entire TLS area.
  23429. For systems that use the GNU C Library, the default is on.
  23430. '-msse2avx'
  23431. '-mno-sse2avx'
  23432. Specify that the assembler should encode SSE instructions with VEX
  23433. prefix. The option '-mavx' turns this on by default.
  23434. '-mfentry'
  23435. '-mno-fentry'
  23436. If profiling is active ('-pg'), put the profiling counter call
  23437. before the prologue. Note: On x86 architectures the attribute
  23438. 'ms_hook_prologue' isn't possible at the moment for '-mfentry' and
  23439. '-pg'.
  23440. '-mrecord-mcount'
  23441. '-mno-record-mcount'
  23442. If profiling is active ('-pg'), generate a __mcount_loc section
  23443. that contains pointers to each profiling call. This is useful for
  23444. automatically patching and out calls.
  23445. '-mnop-mcount'
  23446. '-mno-nop-mcount'
  23447. If profiling is active ('-pg'), generate the calls to the profiling
  23448. functions as NOPs. This is useful when they should be patched in
  23449. later dynamically. This is likely only useful together with
  23450. '-mrecord-mcount'.
  23451. '-minstrument-return=TYPE'
  23452. Instrument function exit in -pg -mfentry instrumented functions
  23453. with call to specified function. This only instruments true
  23454. returns ending with ret, but not sibling calls ending with jump.
  23455. Valid types are NONE to not instrument, CALL to generate a call to
  23456. __return__, or NOP5 to generate a 5 byte nop.
  23457. '-mrecord-return'
  23458. '-mno-record-return'
  23459. Generate a __return_loc section pointing to all return
  23460. instrumentation code.
  23461. '-mfentry-name=NAME'
  23462. Set name of __fentry__ symbol called at function entry for -pg
  23463. -mfentry functions.
  23464. '-mfentry-section=NAME'
  23465. Set name of section to record -mrecord-mcount calls (default
  23466. __mcount_loc).
  23467. '-mskip-rax-setup'
  23468. '-mno-skip-rax-setup'
  23469. When generating code for the x86-64 architecture with SSE
  23470. extensions disabled, '-mskip-rax-setup' can be used to skip setting
  23471. up RAX register when there are no variable arguments passed in
  23472. vector registers.
  23473. *Warning:* Since RAX register is used to avoid unnecessarily saving
  23474. vector registers on stack when passing variable arguments, the
  23475. impacts of this option are callees may waste some stack space,
  23476. misbehave or jump to a random location. GCC 4.4 or newer don't
  23477. have those issues, regardless the RAX register value.
  23478. '-m8bit-idiv'
  23479. '-mno-8bit-idiv'
  23480. On some processors, like Intel Atom, 8-bit unsigned integer divide
  23481. is much faster than 32-bit/64-bit integer divide. This option
  23482. generates a run-time check. If both dividend and divisor are
  23483. within range of 0 to 255, 8-bit unsigned integer divide is used
  23484. instead of 32-bit/64-bit integer divide.
  23485. '-mavx256-split-unaligned-load'
  23486. '-mavx256-split-unaligned-store'
  23487. Split 32-byte AVX unaligned load and store.
  23488. '-mstack-protector-guard=GUARD'
  23489. '-mstack-protector-guard-reg=REG'
  23490. '-mstack-protector-guard-offset=OFFSET'
  23491. Generate stack protection code using canary at GUARD. Supported
  23492. locations are 'global' for global canary or 'tls' for per-thread
  23493. canary in the TLS block (the default). This option has effect only
  23494. when '-fstack-protector' or '-fstack-protector-all' is specified.
  23495. With the latter choice the options
  23496. '-mstack-protector-guard-reg=REG' and
  23497. '-mstack-protector-guard-offset=OFFSET' furthermore specify which
  23498. segment register ('%fs' or '%gs') to use as base register for
  23499. reading the canary, and from what offset from that base register.
  23500. The default for those is as specified in the relevant ABI.
  23501. '-mgeneral-regs-only'
  23502. Generate code that uses only the general-purpose registers. This
  23503. prevents the compiler from using floating-point, vector, mask and
  23504. bound registers.
  23505. '-mindirect-branch=CHOICE'
  23506. Convert indirect call and jump with CHOICE. The default is 'keep',
  23507. which keeps indirect call and jump unmodified. 'thunk' converts
  23508. indirect call and jump to call and return thunk. 'thunk-inline'
  23509. converts indirect call and jump to inlined call and return thunk.
  23510. 'thunk-extern' converts indirect call and jump to external call and
  23511. return thunk provided in a separate object file. You can control
  23512. this behavior for a specific function by using the function
  23513. attribute 'indirect_branch'. *Note Function Attributes::.
  23514. Note that '-mcmodel=large' is incompatible with
  23515. '-mindirect-branch=thunk' and '-mindirect-branch=thunk-extern'
  23516. since the thunk function may not be reachable in the large code
  23517. model.
  23518. Note that '-mindirect-branch=thunk-extern' is compatible with
  23519. '-fcf-protection=branch' since the external thunk can be made to
  23520. enable control-flow check.
  23521. '-mfunction-return=CHOICE'
  23522. Convert function return with CHOICE. The default is 'keep', which
  23523. keeps function return unmodified. 'thunk' converts function return
  23524. to call and return thunk. 'thunk-inline' converts function return
  23525. to inlined call and return thunk. 'thunk-extern' converts function
  23526. return to external call and return thunk provided in a separate
  23527. object file. You can control this behavior for a specific function
  23528. by using the function attribute 'function_return'. *Note Function
  23529. Attributes::.
  23530. Note that '-mindirect-return=thunk-extern' is compatible with
  23531. '-fcf-protection=branch' since the external thunk can be made to
  23532. enable control-flow check.
  23533. Note that '-mcmodel=large' is incompatible with
  23534. '-mfunction-return=thunk' and '-mfunction-return=thunk-extern'
  23535. since the thunk function may not be reachable in the large code
  23536. model.
  23537. '-mindirect-branch-register'
  23538. Force indirect call and jump via register.
  23539. These '-m' switches are supported in addition to the above on x86-64
  23540. processors in 64-bit environments.
  23541. '-m32'
  23542. '-m64'
  23543. '-mx32'
  23544. '-m16'
  23545. '-miamcu'
  23546. Generate code for a 16-bit, 32-bit or 64-bit environment. The
  23547. '-m32' option sets 'int', 'long', and pointer types to 32 bits, and
  23548. generates code that runs on any i386 system.
  23549. The '-m64' option sets 'int' to 32 bits and 'long' and pointer
  23550. types to 64 bits, and generates code for the x86-64 architecture.
  23551. For Darwin only the '-m64' option also turns off the '-fno-pic' and
  23552. '-mdynamic-no-pic' options.
  23553. The '-mx32' option sets 'int', 'long', and pointer types to 32
  23554. bits, and generates code for the x86-64 architecture.
  23555. The '-m16' option is the same as '-m32', except for that it outputs
  23556. the '.code16gcc' assembly directive at the beginning of the
  23557. assembly output so that the binary can run in 16-bit mode.
  23558. The '-miamcu' option generates code which conforms to Intel MCU
  23559. psABI. It requires the '-m32' option to be turned on.
  23560. '-mno-red-zone'
  23561. Do not use a so-called "red zone" for x86-64 code. The red zone is
  23562. mandated by the x86-64 ABI; it is a 128-byte area beyond the
  23563. location of the stack pointer that is not modified by signal or
  23564. interrupt handlers and therefore can be used for temporary data
  23565. without adjusting the stack pointer. The flag '-mno-red-zone'
  23566. disables this red zone.
  23567. '-mcmodel=small'
  23568. Generate code for the small code model: the program and its symbols
  23569. must be linked in the lower 2 GB of the address space. Pointers
  23570. are 64 bits. Programs can be statically or dynamically linked.
  23571. This is the default code model.
  23572. '-mcmodel=kernel'
  23573. Generate code for the kernel code model. The kernel runs in the
  23574. negative 2 GB of the address space. This model has to be used for
  23575. Linux kernel code.
  23576. '-mcmodel=medium'
  23577. Generate code for the medium model: the program is linked in the
  23578. lower 2 GB of the address space. Small symbols are also placed
  23579. there. Symbols with sizes larger than '-mlarge-data-threshold' are
  23580. put into large data or BSS sections and can be located above 2GB.
  23581. Programs can be statically or dynamically linked.
  23582. '-mcmodel=large'
  23583. Generate code for the large model. This model makes no assumptions
  23584. about addresses and sizes of sections.
  23585. '-maddress-mode=long'
  23586. Generate code for long address mode. This is only supported for
  23587. 64-bit and x32 environments. It is the default address mode for
  23588. 64-bit environments.
  23589. '-maddress-mode=short'
  23590. Generate code for short address mode. This is only supported for
  23591. 32-bit and x32 environments. It is the default address mode for
  23592. 32-bit and x32 environments.
  23593. '-mneeded'
  23594. '-mno-needed'
  23595. Emit GNU_PROPERTY_X86_ISA_1_NEEDED GNU property for Linux target to
  23596. indicate the micro-architecture ISA level required to execute the
  23597. binary.
  23598. 
  23599. File: gcc.info, Node: x86 Windows Options, Next: Xstormy16 Options, Prev: x86 Options, Up: Submodel Options
  23600. 3.19.60 x86 Windows Options
  23601. ---------------------------
  23602. These additional options are available for Microsoft Windows targets:
  23603. '-mconsole'
  23604. This option specifies that a console application is to be
  23605. generated, by instructing the linker to set the PE header subsystem
  23606. type required for console applications. This option is available
  23607. for Cygwin and MinGW targets and is enabled by default on those
  23608. targets.
  23609. '-mdll'
  23610. This option is available for Cygwin and MinGW targets. It
  23611. specifies that a DLL--a dynamic link library--is to be generated,
  23612. enabling the selection of the required runtime startup object and
  23613. entry point.
  23614. '-mnop-fun-dllimport'
  23615. This option is available for Cygwin and MinGW targets. It
  23616. specifies that the 'dllimport' attribute should be ignored.
  23617. '-mthread'
  23618. This option is available for MinGW targets. It specifies that
  23619. MinGW-specific thread support is to be used.
  23620. '-municode'
  23621. This option is available for MinGW-w64 targets. It causes the
  23622. 'UNICODE' preprocessor macro to be predefined, and chooses
  23623. Unicode-capable runtime startup code.
  23624. '-mwin32'
  23625. This option is available for Cygwin and MinGW targets. It
  23626. specifies that the typical Microsoft Windows predefined macros are
  23627. to be set in the pre-processor, but does not influence the choice
  23628. of runtime library/startup code.
  23629. '-mwindows'
  23630. This option is available for Cygwin and MinGW targets. It
  23631. specifies that a GUI application is to be generated by instructing
  23632. the linker to set the PE header subsystem type appropriately.
  23633. '-fno-set-stack-executable'
  23634. This option is available for MinGW targets. It specifies that the
  23635. executable flag for the stack used by nested functions isn't set.
  23636. This is necessary for binaries running in kernel mode of Microsoft
  23637. Windows, as there the User32 API, which is used to set executable
  23638. privileges, isn't available.
  23639. '-fwritable-relocated-rdata'
  23640. This option is available for MinGW and Cygwin targets. It
  23641. specifies that relocated-data in read-only section is put into the
  23642. '.data' section. This is a necessary for older runtimes not
  23643. supporting modification of '.rdata' sections for pseudo-relocation.
  23644. '-mpe-aligned-commons'
  23645. This option is available for Cygwin and MinGW targets. It
  23646. specifies that the GNU extension to the PE file format that permits
  23647. the correct alignment of COMMON variables should be used when
  23648. generating code. It is enabled by default if GCC detects that the
  23649. target assembler found during configuration supports the feature.
  23650. See also under *note x86 Options:: for standard options.
  23651. 
  23652. File: gcc.info, Node: Xstormy16 Options, Next: Xtensa Options, Prev: x86 Windows Options, Up: Submodel Options
  23653. 3.19.61 Xstormy16 Options
  23654. -------------------------
  23655. These options are defined for Xstormy16:
  23656. '-msim'
  23657. Choose startup files and linker script suitable for the simulator.
  23658. 
  23659. File: gcc.info, Node: Xtensa Options, Next: zSeries Options, Prev: Xstormy16 Options, Up: Submodel Options
  23660. 3.19.62 Xtensa Options
  23661. ----------------------
  23662. These options are supported for Xtensa targets:
  23663. '-mconst16'
  23664. '-mno-const16'
  23665. Enable or disable use of 'CONST16' instructions for loading
  23666. constant values. The 'CONST16' instruction is currently not a
  23667. standard option from Tensilica. When enabled, 'CONST16'
  23668. instructions are always used in place of the standard 'L32R'
  23669. instructions. The use of 'CONST16' is enabled by default only if
  23670. the 'L32R' instruction is not available.
  23671. '-mfused-madd'
  23672. '-mno-fused-madd'
  23673. Enable or disable use of fused multiply/add and multiply/subtract
  23674. instructions in the floating-point option. This has no effect if
  23675. the floating-point option is not also enabled. Disabling fused
  23676. multiply/add and multiply/subtract instructions forces the compiler
  23677. to use separate instructions for the multiply and add/subtract
  23678. operations. This may be desirable in some cases where strict IEEE
  23679. 754-compliant results are required: the fused multiply add/subtract
  23680. instructions do not round the intermediate result, thereby
  23681. producing results with _more_ bits of precision than specified by
  23682. the IEEE standard. Disabling fused multiply add/subtract
  23683. instructions also ensures that the program output is not sensitive
  23684. to the compiler's ability to combine multiply and add/subtract
  23685. operations.
  23686. '-mserialize-volatile'
  23687. '-mno-serialize-volatile'
  23688. When this option is enabled, GCC inserts 'MEMW' instructions before
  23689. 'volatile' memory references to guarantee sequential consistency.
  23690. The default is '-mserialize-volatile'. Use
  23691. '-mno-serialize-volatile' to omit the 'MEMW' instructions.
  23692. '-mforce-no-pic'
  23693. For targets, like GNU/Linux, where all user-mode Xtensa code must
  23694. be position-independent code (PIC), this option disables PIC for
  23695. compiling kernel code.
  23696. '-mtext-section-literals'
  23697. '-mno-text-section-literals'
  23698. These options control the treatment of literal pools. The default
  23699. is '-mno-text-section-literals', which places literals in a
  23700. separate section in the output file. This allows the literal pool
  23701. to be placed in a data RAM/ROM, and it also allows the linker to
  23702. combine literal pools from separate object files to remove
  23703. redundant literals and improve code size. With
  23704. '-mtext-section-literals', the literals are interspersed in the
  23705. text section in order to keep them as close as possible to their
  23706. references. This may be necessary for large assembly files.
  23707. Literals for each function are placed right before that function.
  23708. '-mauto-litpools'
  23709. '-mno-auto-litpools'
  23710. These options control the treatment of literal pools. The default
  23711. is '-mno-auto-litpools', which places literals in a separate
  23712. section in the output file unless '-mtext-section-literals' is
  23713. used. With '-mauto-litpools' the literals are interspersed in the
  23714. text section by the assembler. Compiler does not produce explicit
  23715. '.literal' directives and loads literals into registers with 'MOVI'
  23716. instructions instead of 'L32R' to let the assembler do relaxation
  23717. and place literals as necessary. This option allows assembler to
  23718. create several literal pools per function and assemble very big
  23719. functions, which may not be possible with
  23720. '-mtext-section-literals'.
  23721. '-mtarget-align'
  23722. '-mno-target-align'
  23723. When this option is enabled, GCC instructs the assembler to
  23724. automatically align instructions to reduce branch penalties at the
  23725. expense of some code density. The assembler attempts to widen
  23726. density instructions to align branch targets and the instructions
  23727. following call instructions. If there are not enough preceding
  23728. safe density instructions to align a target, no widening is
  23729. performed. The default is '-mtarget-align'. These options do not
  23730. affect the treatment of auto-aligned instructions like 'LOOP',
  23731. which the assembler always aligns, either by widening density
  23732. instructions or by inserting NOP instructions.
  23733. '-mlongcalls'
  23734. '-mno-longcalls'
  23735. When this option is enabled, GCC instructs the assembler to
  23736. translate direct calls to indirect calls unless it can determine
  23737. that the target of a direct call is in the range allowed by the
  23738. call instruction. This translation typically occurs for calls to
  23739. functions in other source files. Specifically, the assembler
  23740. translates a direct 'CALL' instruction into an 'L32R' followed by a
  23741. 'CALLX' instruction. The default is '-mno-longcalls'. This option
  23742. should be used in programs where the call target can potentially be
  23743. out of range. This option is implemented in the assembler, not the
  23744. compiler, so the assembly code generated by GCC still shows direct
  23745. call instructions--look at the disassembled object code to see the
  23746. actual instructions. Note that the assembler uses an indirect call
  23747. for every cross-file call, not just those that really are out of
  23748. range.
  23749. '-mabi=NAME'
  23750. Generate code for the specified ABI. Permissible values are:
  23751. 'call0', 'windowed'. Default ABI is chosen by the Xtensa core
  23752. configuration.
  23753. '-mabi=call0'
  23754. When this option is enabled function parameters are passed in
  23755. registers 'a2' through 'a7', registers 'a12' through 'a15' are
  23756. caller-saved, and register 'a15' may be used as a frame pointer.
  23757. When this version of the ABI is enabled the C preprocessor symbol
  23758. '__XTENSA_CALL0_ABI__' is defined.
  23759. '-mabi=windowed'
  23760. When this option is enabled function parameters are passed in
  23761. registers 'a10' through 'a15', and called function rotates register
  23762. window by 8 registers on entry so that its arguments are found in
  23763. registers 'a2' through 'a7'. Register 'a7' may be used as a frame
  23764. pointer. Register window is rotated 8 registers back upon return.
  23765. When this version of the ABI is enabled the C preprocessor symbol
  23766. '__XTENSA_WINDOWED_ABI__' is defined.
  23767. 
  23768. File: gcc.info, Node: zSeries Options, Prev: Xtensa Options, Up: Submodel Options
  23769. 3.19.63 zSeries Options
  23770. -----------------------
  23771. These are listed under *Note S/390 and zSeries Options::.
  23772. 
  23773. File: gcc.info, Node: Spec Files, Next: Environment Variables, Prev: Submodel Options, Up: Invoking GCC
  23774. 3.20 Specifying Subprocesses and the Switches to Pass to Them
  23775. =============================================================
  23776. 'gcc' is a driver program. It performs its job by invoking a sequence
  23777. of other programs to do the work of compiling, assembling and linking.
  23778. GCC interprets its command-line parameters and uses these to deduce
  23779. which programs it should invoke, and which command-line options it ought
  23780. to place on their command lines. This behavior is controlled by "spec
  23781. strings". In most cases there is one spec string for each program that
  23782. GCC can invoke, but a few programs have multiple spec strings to control
  23783. their behavior. The spec strings built into GCC can be overridden by
  23784. using the '-specs=' command-line switch to specify a spec file.
  23785. "Spec files" are plain-text files that are used to construct spec
  23786. strings. They consist of a sequence of directives separated by blank
  23787. lines. The type of directive is determined by the first non-whitespace
  23788. character on the line, which can be one of the following:
  23789. '%COMMAND'
  23790. Issues a COMMAND to the spec file processor. The commands that can
  23791. appear here are:
  23792. '%include <FILE>'
  23793. Search for FILE and insert its text at the current point in
  23794. the specs file.
  23795. '%include_noerr <FILE>'
  23796. Just like '%include', but do not generate an error message if
  23797. the include file cannot be found.
  23798. '%rename OLD_NAME NEW_NAME'
  23799. Rename the spec string OLD_NAME to NEW_NAME.
  23800. '*[SPEC_NAME]:'
  23801. This tells the compiler to create, override or delete the named
  23802. spec string. All lines after this directive up to the next
  23803. directive or blank line are considered to be the text for the spec
  23804. string. If this results in an empty string then the spec is
  23805. deleted. (Or, if the spec did not exist, then nothing happens.)
  23806. Otherwise, if the spec does not currently exist a new spec is
  23807. created. If the spec does exist then its contents are overridden
  23808. by the text of this directive, unless the first character of that
  23809. text is the '+' character, in which case the text is appended to
  23810. the spec.
  23811. '[SUFFIX]:'
  23812. Creates a new '[SUFFIX] spec' pair. All lines after this directive
  23813. and up to the next directive or blank line are considered to make
  23814. up the spec string for the indicated suffix. When the compiler
  23815. encounters an input file with the named suffix, it processes the
  23816. spec string in order to work out how to compile that file. For
  23817. example:
  23818. .ZZ:
  23819. z-compile -input %i
  23820. This says that any input file whose name ends in '.ZZ' should be
  23821. passed to the program 'z-compile', which should be invoked with the
  23822. command-line switch '-input' and with the result of performing the
  23823. '%i' substitution. (See below.)
  23824. As an alternative to providing a spec string, the text following a
  23825. suffix directive can be one of the following:
  23826. '@LANGUAGE'
  23827. This says that the suffix is an alias for a known LANGUAGE.
  23828. This is similar to using the '-x' command-line switch to GCC
  23829. to specify a language explicitly. For example:
  23830. .ZZ:
  23831. @c++
  23832. Says that .ZZ files are, in fact, C++ source files.
  23833. '#NAME'
  23834. This causes an error messages saying:
  23835. NAME compiler not installed on this system.
  23836. GCC already has an extensive list of suffixes built into it. This
  23837. directive adds an entry to the end of the list of suffixes, but
  23838. since the list is searched from the end backwards, it is
  23839. effectively possible to override earlier entries using this
  23840. technique.
  23841. GCC has the following spec strings built into it. Spec files can
  23842. override these strings or create their own. Note that individual
  23843. targets can also add their own spec strings to this list.
  23844. asm Options to pass to the assembler
  23845. asm_final Options to pass to the assembler post-processor
  23846. cpp Options to pass to the C preprocessor
  23847. cc1 Options to pass to the C compiler
  23848. cc1plus Options to pass to the C++ compiler
  23849. endfile Object files to include at the end of the link
  23850. link Options to pass to the linker
  23851. lib Libraries to include on the command line to the linker
  23852. libgcc Decides which GCC support library to pass to the linker
  23853. linker Sets the name of the linker
  23854. predefines Defines to be passed to the C preprocessor
  23855. signed_char Defines to pass to CPP to say whether char is signed
  23856. by default
  23857. startfile Object files to include at the start of the link
  23858. Here is a small example of a spec file:
  23859. %rename lib old_lib
  23860. *lib:
  23861. --start-group -lgcc -lc -leval1 --end-group %(old_lib)
  23862. This example renames the spec called 'lib' to 'old_lib' and then
  23863. overrides the previous definition of 'lib' with a new one. The new
  23864. definition adds in some extra command-line options before including the
  23865. text of the old definition.
  23866. "Spec strings" are a list of command-line options to be passed to their
  23867. corresponding program. In addition, the spec strings can contain
  23868. '%'-prefixed sequences to substitute variable text or to conditionally
  23869. insert text into the command line. Using these constructs it is
  23870. possible to generate quite complex command lines.
  23871. Here is a table of all defined '%'-sequences for spec strings. Note
  23872. that spaces are not generated automatically around the results of
  23873. expanding these sequences. Therefore you can concatenate them together
  23874. or combine them with constant text in a single argument.
  23875. '%%'
  23876. Substitute one '%' into the program name or argument.
  23877. '%"'
  23878. Substitute an empty argument.
  23879. '%i'
  23880. Substitute the name of the input file being processed.
  23881. '%b'
  23882. Substitute the basename for outputs related with the input file
  23883. being processed. This is often the substring up to (and not
  23884. including) the last period and not including the directory but,
  23885. unless %w is active, it expands to the basename for auxiliary
  23886. outputs, which may be influenced by an explicit output name, and by
  23887. various other options that control how auxiliary outputs are named.
  23888. '%B'
  23889. This is the same as '%b', but include the file suffix (text after
  23890. the last period). Without %w, it expands to the basename for dump
  23891. outputs.
  23892. '%d'
  23893. Marks the argument containing or following the '%d' as a temporary
  23894. file name, so that that file is deleted if GCC exits successfully.
  23895. Unlike '%g', this contributes no text to the argument.
  23896. '%gSUFFIX'
  23897. Substitute a file name that has suffix SUFFIX and is chosen once
  23898. per compilation, and mark the argument in the same way as '%d'. To
  23899. reduce exposure to denial-of-service attacks, the file name is now
  23900. chosen in a way that is hard to predict even when previously chosen
  23901. file names are known. For example, '%g.s ... %g.o ... %g.s' might
  23902. turn into 'ccUVUUAU.s ccXYAXZ12.o ccUVUUAU.s'. SUFFIX matches the
  23903. regexp '[.A-Za-z]*' or the special string '%O', which is treated
  23904. exactly as if '%O' had been preprocessed. Previously, '%g' was
  23905. simply substituted with a file name chosen once per compilation,
  23906. without regard to any appended suffix (which was therefore treated
  23907. just like ordinary text), making such attacks more likely to
  23908. succeed.
  23909. '%uSUFFIX'
  23910. Like '%g', but generates a new temporary file name each time it
  23911. appears instead of once per compilation.
  23912. '%USUFFIX'
  23913. Substitutes the last file name generated with '%uSUFFIX',
  23914. generating a new one if there is no such last file name. In the
  23915. absence of any '%uSUFFIX', this is just like '%gSUFFIX', except
  23916. they don't share the same suffix _space_, so '%g.s ... %U.s ...
  23917. %g.s ... %U.s' involves the generation of two distinct file names,
  23918. one for each '%g.s' and another for each '%U.s'. Previously, '%U'
  23919. was simply substituted with a file name chosen for the previous
  23920. '%u', without regard to any appended suffix.
  23921. '%jSUFFIX'
  23922. Substitutes the name of the 'HOST_BIT_BUCKET', if any, and if it is
  23923. writable, and if '-save-temps' is not used; otherwise, substitute
  23924. the name of a temporary file, just like '%u'. This temporary file
  23925. is not meant for communication between processes, but rather as a
  23926. junk disposal mechanism.
  23927. '%|SUFFIX'
  23928. '%mSUFFIX'
  23929. Like '%g', except if '-pipe' is in effect. In that case '%|'
  23930. substitutes a single dash and '%m' substitutes nothing at all.
  23931. These are the two most common ways to instruct a program that it
  23932. should read from standard input or write to standard output. If
  23933. you need something more elaborate you can use an '%{pipe:'X'}'
  23934. construct: see for example 'gcc/fortran/lang-specs.h'.
  23935. '%.SUFFIX'
  23936. Substitutes .SUFFIX for the suffixes of a matched switch's args
  23937. when it is subsequently output with '%*'. SUFFIX is terminated by
  23938. the next space or %.
  23939. '%w'
  23940. Marks the argument containing or following the '%w' as the
  23941. designated output file of this compilation. This puts the argument
  23942. into the sequence of arguments that '%o' substitutes.
  23943. '%V'
  23944. Indicates that this compilation produces no output file.
  23945. '%o'
  23946. Substitutes the names of all the output files, with spaces
  23947. automatically placed around them. You should write spaces around
  23948. the '%o' as well or the results are undefined. '%o' is for use in
  23949. the specs for running the linker. Input files whose names have no
  23950. recognized suffix are not compiled at all, but they are included
  23951. among the output files, so they are linked.
  23952. '%O'
  23953. Substitutes the suffix for object files. Note that this is handled
  23954. specially when it immediately follows '%g, %u, or %U', because of
  23955. the need for those to form complete file names. The handling is
  23956. such that '%O' is treated exactly as if it had already been
  23957. substituted, except that '%g, %u, and %U' do not currently support
  23958. additional SUFFIX characters following '%O' as they do following,
  23959. for example, '.o'.
  23960. '%I'
  23961. Substitute any of '-iprefix' (made from 'GCC_EXEC_PREFIX'),
  23962. '-isysroot' (made from 'TARGET_SYSTEM_ROOT'), '-isystem' (made from
  23963. 'COMPILER_PATH' and '-B' options) and '-imultilib' as necessary.
  23964. '%s'
  23965. Current argument is the name of a library or startup file of some
  23966. sort. Search for that file in a standard list of directories and
  23967. substitute the full name found. The current working directory is
  23968. included in the list of directories scanned.
  23969. '%T'
  23970. Current argument is the name of a linker script. Search for that
  23971. file in the current list of directories to scan for libraries. If
  23972. the file is located insert a '--script' option into the command
  23973. line followed by the full path name found. If the file is not
  23974. found then generate an error message. Note: the current working
  23975. directory is not searched.
  23976. '%eSTR'
  23977. Print STR as an error message. STR is terminated by a newline.
  23978. Use this when inconsistent options are detected.
  23979. '%nSTR'
  23980. Print STR as a notice. STR is terminated by a newline.
  23981. '%(NAME)'
  23982. Substitute the contents of spec string NAME at this point.
  23983. '%x{OPTION}'
  23984. Accumulate an option for '%X'.
  23985. '%X'
  23986. Output the accumulated linker options specified by '-Wl' or a '%x'
  23987. spec string.
  23988. '%Y'
  23989. Output the accumulated assembler options specified by '-Wa'.
  23990. '%Z'
  23991. Output the accumulated preprocessor options specified by '-Wp'.
  23992. '%M'
  23993. Output 'multilib_os_dir'.
  23994. '%R'
  23995. Output the concatenation of 'target_system_root' and
  23996. 'target_sysroot_suffix'.
  23997. '%a'
  23998. Process the 'asm' spec. This is used to compute the switches to be
  23999. passed to the assembler.
  24000. '%A'
  24001. Process the 'asm_final' spec. This is a spec string for passing
  24002. switches to an assembler post-processor, if such a program is
  24003. needed.
  24004. '%l'
  24005. Process the 'link' spec. This is the spec for computing the
  24006. command line passed to the linker. Typically it makes use of the
  24007. '%L %G %S %D and %E' sequences.
  24008. '%D'
  24009. Dump out a '-L' option for each directory that GCC believes might
  24010. contain startup files. If the target supports multilibs then the
  24011. current multilib directory is prepended to each of these paths.
  24012. '%L'
  24013. Process the 'lib' spec. This is a spec string for deciding which
  24014. libraries are included on the command line to the linker.
  24015. '%G'
  24016. Process the 'libgcc' spec. This is a spec string for deciding
  24017. which GCC support library is included on the command line to the
  24018. linker.
  24019. '%S'
  24020. Process the 'startfile' spec. This is a spec for deciding which
  24021. object files are the first ones passed to the linker. Typically
  24022. this might be a file named 'crt0.o'.
  24023. '%E'
  24024. Process the 'endfile' spec. This is a spec string that specifies
  24025. the last object files that are passed to the linker.
  24026. '%C'
  24027. Process the 'cpp' spec. This is used to construct the arguments to
  24028. be passed to the C preprocessor.
  24029. '%1'
  24030. Process the 'cc1' spec. This is used to construct the options to
  24031. be passed to the actual C compiler ('cc1').
  24032. '%2'
  24033. Process the 'cc1plus' spec. This is used to construct the options
  24034. to be passed to the actual C++ compiler ('cc1plus').
  24035. '%*'
  24036. Substitute the variable part of a matched option. See below. Note
  24037. that each comma in the substituted string is replaced by a single
  24038. space.
  24039. '%<S'
  24040. Remove all occurrences of '-S' from the command line. Note--this
  24041. command is position dependent. '%' commands in the spec string
  24042. before this one see '-S', '%' commands in the spec string after
  24043. this one do not.
  24044. '%<S*'
  24045. Similar to '%<S', but match all switches beginning with '-S'.
  24046. '%>S'
  24047. Similar to '%<S', but keep '-S' in the GCC command line.
  24048. '%:FUNCTION(ARGS)'
  24049. Call the named function FUNCTION, passing it ARGS. ARGS is first
  24050. processed as a nested spec string, then split into an argument
  24051. vector in the usual fashion. The function returns a string which
  24052. is processed as if it had appeared literally as part of the current
  24053. spec.
  24054. The following built-in spec functions are provided:
  24055. 'getenv'
  24056. The 'getenv' spec function takes two arguments: an environment
  24057. variable name and a string. If the environment variable is
  24058. not defined, a fatal error is issued. Otherwise, the return
  24059. value is the value of the environment variable concatenated
  24060. with the string. For example, if 'TOPDIR' is defined as
  24061. '/path/to/top', then:
  24062. %:getenv(TOPDIR /include)
  24063. expands to '/path/to/top/include'.
  24064. 'if-exists'
  24065. The 'if-exists' spec function takes one argument, an absolute
  24066. pathname to a file. If the file exists, 'if-exists' returns
  24067. the pathname. Here is a small example of its usage:
  24068. *startfile:
  24069. crt0%O%s %:if-exists(crti%O%s) crtbegin%O%s
  24070. 'if-exists-else'
  24071. The 'if-exists-else' spec function is similar to the
  24072. 'if-exists' spec function, except that it takes two arguments.
  24073. The first argument is an absolute pathname to a file. If the
  24074. file exists, 'if-exists-else' returns the pathname. If it
  24075. does not exist, it returns the second argument. This way,
  24076. 'if-exists-else' can be used to select one file or another,
  24077. based on the existence of the first. Here is a small example
  24078. of its usage:
  24079. *startfile:
  24080. crt0%O%s %:if-exists(crti%O%s) \
  24081. %:if-exists-else(crtbeginT%O%s crtbegin%O%s)
  24082. 'if-exists-then-else'
  24083. The 'if-exists-then-else' spec function takes at least two
  24084. arguments and an optional third one. The first argument is an
  24085. absolute pathname to a file. If the file exists, the function
  24086. returns the second argument. If the file does not exist, the
  24087. function returns the third argument if there is one, or NULL
  24088. otherwise. This can be used to expand one text, or optionally
  24089. another, based on the existence of a file. Here is a small
  24090. example of its usage:
  24091. -l%:if-exists-then-else(%:getenv(VSB_DIR rtnet.h) rtnet net)
  24092. 'sanitize'
  24093. The 'sanitize' spec function takes no arguments. It returns
  24094. non-NULL if any address, thread or undefined behavior
  24095. sanitizers are active.
  24096. %{%:sanitize(address):-funwind-tables}
  24097. 'replace-outfile'
  24098. The 'replace-outfile' spec function takes two arguments. It
  24099. looks for the first argument in the outfiles array and
  24100. replaces it with the second argument. Here is a small example
  24101. of its usage:
  24102. %{fgnu-runtime:%:replace-outfile(-lobjc -lobjc-gnu)}
  24103. 'remove-outfile'
  24104. The 'remove-outfile' spec function takes one argument. It
  24105. looks for the first argument in the outfiles array and removes
  24106. it. Here is a small example its usage:
  24107. %:remove-outfile(-lm)
  24108. 'version-compare'
  24109. The 'version-compare' spec function takes four or five
  24110. arguments of the following form:
  24111. <comparison-op> <arg1> [<arg2>] <switch> <result>
  24112. It returns 'result' if the comparison evaluates to true, and
  24113. NULL if it doesn't. The supported 'comparison-op' values are:
  24114. '>='
  24115. True if 'switch' is a later (or same) version than 'arg1'
  24116. '!>'
  24117. Opposite of '>='
  24118. '<'
  24119. True if 'switch' is an earlier version than 'arg1'
  24120. '!<'
  24121. Opposite of '<'
  24122. '><'
  24123. True if 'switch' is 'arg1' or later, and earlier than
  24124. 'arg2'
  24125. '<>'
  24126. True if 'switch' is earlier than 'arg1', or is 'arg2' or
  24127. later
  24128. If the 'switch' is not present at all, the condition is false
  24129. unless the first character of the 'comparison-op' is '!'.
  24130. %:version-compare(>= 10.3 mmacosx-version-min= -lmx)
  24131. The above example would add '-lmx' if
  24132. '-mmacosx-version-min=10.3.9' was passed.
  24133. 'include'
  24134. The 'include' spec function behaves much like '%include', with
  24135. the advantage that it can be nested inside a spec and thus be
  24136. conditionalized. It takes one argument, the filename, and
  24137. looks for it in the startfile path. It always returns NULL.
  24138. %{static-libasan|static:%:include(libsanitizer.spec)%(link_libasan)}
  24139. 'pass-through-libs'
  24140. The 'pass-through-libs' spec function takes any number of
  24141. arguments. It finds any '-l' options and any non-options
  24142. ending in '.a' (which it assumes are the names of linker input
  24143. library archive files) and returns a result containing all the
  24144. found arguments each prepended by '-plugin-opt=-pass-through='
  24145. and joined by spaces. This list is intended to be passed to
  24146. the LTO linker plugin.
  24147. %:pass-through-libs(%G %L %G)
  24148. 'print-asm-header'
  24149. The 'print-asm-header' function takes no arguments and simply
  24150. prints a banner like:
  24151. Assembler options
  24152. =================
  24153. Use "-Wa,OPTION" to pass "OPTION" to the assembler.
  24154. It is used to separate compiler options from assembler options
  24155. in the '--target-help' output.
  24156. 'gt'
  24157. The 'gt' spec function takes two or more arguments. It
  24158. returns '""' (the empty string) if the second-to-last argument
  24159. is greater than the last argument, and NULL otherwise. The
  24160. following example inserts the 'link_gomp' spec if the last
  24161. '-ftree-parallelize-loops=' option given on the command line
  24162. is greater than 1:
  24163. %{%:gt(%{ftree-parallelize-loops=*:%*} 1):%:include(libgomp.spec)%(link_gomp)}
  24164. 'debug-level-gt'
  24165. The 'debug-level-gt' spec function takes one argument and
  24166. returns '""' (the empty string) if 'debug_info_level' is
  24167. greater than the specified number, and NULL otherwise.
  24168. %{%:debug-level-gt(0):%{gdwarf*:--gdwarf2}}
  24169. '%{S}'
  24170. Substitutes the '-S' switch, if that switch is given to GCC. If
  24171. that switch is not specified, this substitutes nothing. Note that
  24172. the leading dash is omitted when specifying this option, and it is
  24173. automatically inserted if the substitution is performed. Thus the
  24174. spec string '%{foo}' matches the command-line option '-foo' and
  24175. outputs the command-line option '-foo'.
  24176. '%W{S}'
  24177. Like %{'S'} but mark last argument supplied within as a file to be
  24178. deleted on failure.
  24179. '%@{S}'
  24180. Like %{'S'} but puts the result into a 'FILE' and substitutes
  24181. '@FILE' if an '@file' argument has been supplied.
  24182. '%{S*}'
  24183. Substitutes all the switches specified to GCC whose names start
  24184. with '-S', but which also take an argument. This is used for
  24185. switches like '-o', '-D', '-I', etc. GCC considers '-o foo' as
  24186. being one switch whose name starts with 'o'. %{o*} substitutes
  24187. this text, including the space. Thus two arguments are generated.
  24188. '%{S*&T*}'
  24189. Like %{'S'*}, but preserve order of 'S' and 'T' options (the order
  24190. of 'S' and 'T' in the spec is not significant). There can be any
  24191. number of ampersand-separated variables; for each the wild card is
  24192. optional. Useful for CPP as '%{D*&U*&A*}'.
  24193. '%{S:X}'
  24194. Substitutes 'X', if the '-S' switch is given to GCC.
  24195. '%{!S:X}'
  24196. Substitutes 'X', if the '-S' switch is _not_ given to GCC.
  24197. '%{S*:X}'
  24198. Substitutes 'X' if one or more switches whose names start with '-S'
  24199. are specified to GCC. Normally 'X' is substituted only once, no
  24200. matter how many such switches appeared. However, if '%*' appears
  24201. somewhere in 'X', then 'X' is substituted once for each matching
  24202. switch, with the '%*' replaced by the part of that switch matching
  24203. the '*'.
  24204. If '%*' appears as the last part of a spec sequence then a space is
  24205. added after the end of the last substitution. If there is more
  24206. text in the sequence, however, then a space is not generated. This
  24207. allows the '%*' substitution to be used as part of a larger string.
  24208. For example, a spec string like this:
  24209. %{mcu=*:--script=%*/memory.ld}
  24210. when matching an option like '-mcu=newchip' produces:
  24211. --script=newchip/memory.ld
  24212. '%{.S:X}'
  24213. Substitutes 'X', if processing a file with suffix 'S'.
  24214. '%{!.S:X}'
  24215. Substitutes 'X', if _not_ processing a file with suffix 'S'.
  24216. '%{,S:X}'
  24217. Substitutes 'X', if processing a file for language 'S'.
  24218. '%{!,S:X}'
  24219. Substitutes 'X', if not processing a file for language 'S'.
  24220. '%{S|P:X}'
  24221. Substitutes 'X' if either '-S' or '-P' is given to GCC. This may
  24222. be combined with '!', '.', ',', and '*' sequences as well, although
  24223. they have a stronger binding than the '|'. If '%*' appears in 'X',
  24224. all of the alternatives must be starred, and only the first
  24225. matching alternative is substituted.
  24226. For example, a spec string like this:
  24227. %{.c:-foo} %{!.c:-bar} %{.c|d:-baz} %{!.c|d:-boggle}
  24228. outputs the following command-line options from the following input
  24229. command-line options:
  24230. fred.c -foo -baz
  24231. jim.d -bar -boggle
  24232. -d fred.c -foo -baz -boggle
  24233. -d jim.d -bar -baz -boggle
  24234. '%{%:FUNCTION(ARGS):X}'
  24235. Call function named FUNCTION with args ARGS. If the function
  24236. returns non-NULL, then 'X' is substituted, if it returns NULL, it
  24237. isn't substituted.
  24238. '%{S:X; T:Y; :D}'
  24239. If 'S' is given to GCC, substitutes 'X'; else if 'T' is given to
  24240. GCC, substitutes 'Y'; else substitutes 'D'. There can be as many
  24241. clauses as you need. This may be combined with '.', ',', '!', '|',
  24242. and '*' as needed.
  24243. The switch matching text 'S' in a '%{S}', '%{S:X}' or similar construct
  24244. can use a backslash to ignore the special meaning of the character
  24245. following it, thus allowing literal matching of a character that is
  24246. otherwise specially treated. For example, '%{std=iso9899\:1999:X}'
  24247. substitutes 'X' if the '-std=iso9899:1999' option is given.
  24248. The conditional text 'X' in a '%{S:X}' or similar construct may contain
  24249. other nested '%' constructs or spaces, or even newlines. They are
  24250. processed as usual, as described above. Trailing white space in 'X' is
  24251. ignored. White space may also appear anywhere on the left side of the
  24252. colon in these constructs, except between '.' or '*' and the
  24253. corresponding word.
  24254. The '-O', '-f', '-m', and '-W' switches are handled specifically in
  24255. these constructs. If another value of '-O' or the negated form of a
  24256. '-f', '-m', or '-W' switch is found later in the command line, the
  24257. earlier switch value is ignored, except with {'S'*} where 'S' is just
  24258. one letter, which passes all matching options.
  24259. The character '|' at the beginning of the predicate text is used to
  24260. indicate that a command should be piped to the following command, but
  24261. only if '-pipe' is specified.
  24262. It is built into GCC which switches take arguments and which do not.
  24263. (You might think it would be useful to generalize this to allow each
  24264. compiler's spec to say which switches take arguments. But this cannot
  24265. be done in a consistent fashion. GCC cannot even decide which input
  24266. files have been specified without knowing which switches take arguments,
  24267. and it must know which input files to compile in order to tell which
  24268. compilers to run).
  24269. GCC also knows implicitly that arguments starting in '-l' are to be
  24270. treated as compiler output files, and passed to the linker in their
  24271. proper position among the other output files.
  24272. 
  24273. File: gcc.info, Node: Environment Variables, Next: Precompiled Headers, Prev: Spec Files, Up: Invoking GCC
  24274. 3.21 Environment Variables Affecting GCC
  24275. ========================================
  24276. This section describes several environment variables that affect how GCC
  24277. operates. Some of them work by specifying directories or prefixes to
  24278. use when searching for various kinds of files. Some are used to specify
  24279. other aspects of the compilation environment.
  24280. Note that you can also specify places to search using options such as
  24281. '-B', '-I' and '-L' (*note Directory Options::). These take precedence
  24282. over places specified using environment variables, which in turn take
  24283. precedence over those specified by the configuration of GCC. *Note
  24284. Controlling the Compilation Driver 'gcc': (gccint)Driver.
  24285. 'LANG'
  24286. 'LC_CTYPE'
  24287. 'LC_MESSAGES'
  24288. 'LC_ALL'
  24289. These environment variables control the way that GCC uses
  24290. localization information which allows GCC to work with different
  24291. national conventions. GCC inspects the locale categories
  24292. 'LC_CTYPE' and 'LC_MESSAGES' if it has been configured to do so.
  24293. These locale categories can be set to any value supported by your
  24294. installation. A typical value is 'en_GB.UTF-8' for English in the
  24295. United Kingdom encoded in UTF-8.
  24296. The 'LC_CTYPE' environment variable specifies character
  24297. classification. GCC uses it to determine the character boundaries
  24298. in a string; this is needed for some multibyte encodings that
  24299. contain quote and escape characters that are otherwise interpreted
  24300. as a string end or escape.
  24301. The 'LC_MESSAGES' environment variable specifies the language to
  24302. use in diagnostic messages.
  24303. If the 'LC_ALL' environment variable is set, it overrides the value
  24304. of 'LC_CTYPE' and 'LC_MESSAGES'; otherwise, 'LC_CTYPE' and
  24305. 'LC_MESSAGES' default to the value of the 'LANG' environment
  24306. variable. If none of these variables are set, GCC defaults to
  24307. traditional C English behavior.
  24308. 'TMPDIR'
  24309. If 'TMPDIR' is set, it specifies the directory to use for temporary
  24310. files. GCC uses temporary files to hold the output of one stage of
  24311. compilation which is to be used as input to the next stage: for
  24312. example, the output of the preprocessor, which is the input to the
  24313. compiler proper.
  24314. 'GCC_COMPARE_DEBUG'
  24315. Setting 'GCC_COMPARE_DEBUG' is nearly equivalent to passing
  24316. '-fcompare-debug' to the compiler driver. See the documentation of
  24317. this option for more details.
  24318. 'GCC_EXEC_PREFIX'
  24319. If 'GCC_EXEC_PREFIX' is set, it specifies a prefix to use in the
  24320. names of the subprograms executed by the compiler. No slash is
  24321. added when this prefix is combined with the name of a subprogram,
  24322. but you can specify a prefix that ends with a slash if you wish.
  24323. If 'GCC_EXEC_PREFIX' is not set, GCC attempts to figure out an
  24324. appropriate prefix to use based on the pathname it is invoked with.
  24325. If GCC cannot find the subprogram using the specified prefix, it
  24326. tries looking in the usual places for the subprogram.
  24327. The default value of 'GCC_EXEC_PREFIX' is 'PREFIX/lib/gcc/' where
  24328. PREFIX is the prefix to the installed compiler. In many cases
  24329. PREFIX is the value of 'prefix' when you ran the 'configure'
  24330. script.
  24331. Other prefixes specified with '-B' take precedence over this
  24332. prefix.
  24333. This prefix is also used for finding files such as 'crt0.o' that
  24334. are used for linking.
  24335. In addition, the prefix is used in an unusual way in finding the
  24336. directories to search for header files. For each of the standard
  24337. directories whose name normally begins with '/usr/local/lib/gcc'
  24338. (more precisely, with the value of 'GCC_INCLUDE_DIR'), GCC tries
  24339. replacing that beginning with the specified prefix to produce an
  24340. alternate directory name. Thus, with '-Bfoo/', GCC searches
  24341. 'foo/bar' just before it searches the standard directory
  24342. '/usr/local/lib/bar'. If a standard directory begins with the
  24343. configured PREFIX then the value of PREFIX is replaced by
  24344. 'GCC_EXEC_PREFIX' when looking for header files.
  24345. 'COMPILER_PATH'
  24346. The value of 'COMPILER_PATH' is a colon-separated list of
  24347. directories, much like 'PATH'. GCC tries the directories thus
  24348. specified when searching for subprograms, if it cannot find the
  24349. subprograms using 'GCC_EXEC_PREFIX'.
  24350. 'LIBRARY_PATH'
  24351. The value of 'LIBRARY_PATH' is a colon-separated list of
  24352. directories, much like 'PATH'. When configured as a native
  24353. compiler, GCC tries the directories thus specified when searching
  24354. for special linker files, if it cannot find them using
  24355. 'GCC_EXEC_PREFIX'. Linking using GCC also uses these directories
  24356. when searching for ordinary libraries for the '-l' option (but
  24357. directories specified with '-L' come first).
  24358. 'LANG'
  24359. This variable is used to pass locale information to the compiler.
  24360. One way in which this information is used is to determine the
  24361. character set to be used when character literals, string literals
  24362. and comments are parsed in C and C++. When the compiler is
  24363. configured to allow multibyte characters, the following values for
  24364. 'LANG' are recognized:
  24365. 'C-JIS'
  24366. Recognize JIS characters.
  24367. 'C-SJIS'
  24368. Recognize SJIS characters.
  24369. 'C-EUCJP'
  24370. Recognize EUCJP characters.
  24371. If 'LANG' is not defined, or if it has some other value, then the
  24372. compiler uses 'mblen' and 'mbtowc' as defined by the default locale
  24373. to recognize and translate multibyte characters.
  24374. 'GCC_EXTRA_DIAGNOSTIC_OUTPUT'
  24375. If 'GCC_EXTRA_DIAGNOSTIC_OUTPUT' is set to one of the following
  24376. values, then additional text will be emitted to stderr when fix-it
  24377. hints are emitted. '-fdiagnostics-parseable-fixits' and
  24378. '-fno-diagnostics-parseable-fixits' take precedence over this
  24379. environment variable.
  24380. 'fixits-v1'
  24381. Emit parseable fix-it hints, equivalent to
  24382. '-fdiagnostics-parseable-fixits'. In particular, columns are
  24383. expressed as a count of bytes, starting at byte 1 for the
  24384. initial column.
  24385. 'fixits-v2'
  24386. As 'fixits-v1', but columns are expressed as display columns,
  24387. as per '-fdiagnostics-column-unit=display'.
  24388. Some additional environment variables affect the behavior of the
  24389. preprocessor.
  24390. 'CPATH'
  24391. 'C_INCLUDE_PATH'
  24392. 'CPLUS_INCLUDE_PATH'
  24393. 'OBJC_INCLUDE_PATH'
  24394. Each variable's value is a list of directories separated by a
  24395. special character, much like 'PATH', in which to look for header
  24396. files. The special character, 'PATH_SEPARATOR', is
  24397. target-dependent and determined at GCC build time. For Microsoft
  24398. Windows-based targets it is a semicolon, and for almost all other
  24399. targets it is a colon.
  24400. 'CPATH' specifies a list of directories to be searched as if
  24401. specified with '-I', but after any paths given with '-I' options on
  24402. the command line. This environment variable is used regardless of
  24403. which language is being preprocessed.
  24404. The remaining environment variables apply only when preprocessing
  24405. the particular language indicated. Each specifies a list of
  24406. directories to be searched as if specified with '-isystem', but
  24407. after any paths given with '-isystem' options on the command line.
  24408. In all these variables, an empty element instructs the compiler to
  24409. search its current working directory. Empty elements can appear at
  24410. the beginning or end of a path. For instance, if the value of
  24411. 'CPATH' is ':/special/include', that has the same effect as
  24412. '-I. -I/special/include'.
  24413. 'DEPENDENCIES_OUTPUT'
  24414. If this variable is set, its value specifies how to output
  24415. dependencies for Make based on the non-system header files
  24416. processed by the compiler. System header files are ignored in the
  24417. dependency output.
  24418. The value of 'DEPENDENCIES_OUTPUT' can be just a file name, in
  24419. which case the Make rules are written to that file, guessing the
  24420. target name from the source file name. Or the value can have the
  24421. form 'FILE TARGET', in which case the rules are written to file
  24422. FILE using TARGET as the target name.
  24423. In other words, this environment variable is equivalent to
  24424. combining the options '-MM' and '-MF' (*note Preprocessor
  24425. Options::), with an optional '-MT' switch too.
  24426. 'SUNPRO_DEPENDENCIES'
  24427. This variable is the same as 'DEPENDENCIES_OUTPUT' (see above),
  24428. except that system header files are not ignored, so it implies '-M'
  24429. rather than '-MM'. However, the dependence on the main input file
  24430. is omitted. *Note Preprocessor Options::.
  24431. 'SOURCE_DATE_EPOCH'
  24432. If this variable is set, its value specifies a UNIX timestamp to be
  24433. used in replacement of the current date and time in the '__DATE__'
  24434. and '__TIME__' macros, so that the embedded timestamps become
  24435. reproducible.
  24436. The value of 'SOURCE_DATE_EPOCH' must be a UNIX timestamp, defined
  24437. as the number of seconds (excluding leap seconds) since 01 Jan 1970
  24438. 00:00:00 represented in ASCII; identical to the output of 'date
  24439. +%s' on GNU/Linux and other systems that support the '%s' extension
  24440. in the 'date' command.
  24441. The value should be a known timestamp such as the last modification
  24442. time of the source or package and it should be set by the build
  24443. process.
  24444. 
  24445. File: gcc.info, Node: Precompiled Headers, Next: C++ Modules, Prev: Environment Variables, Up: Invoking GCC
  24446. 3.22 Using Precompiled Headers
  24447. ==============================
  24448. Often large projects have many header files that are included in every
  24449. source file. The time the compiler takes to process these header files
  24450. over and over again can account for nearly all of the time required to
  24451. build the project. To make builds faster, GCC allows you to
  24452. "precompile" a header file.
  24453. To create a precompiled header file, simply compile it as you would any
  24454. other file, if necessary using the '-x' option to make the driver treat
  24455. it as a C or C++ header file. You may want to use a tool like 'make' to
  24456. keep the precompiled header up-to-date when the headers it contains
  24457. change.
  24458. A precompiled header file is searched for when '#include' is seen in
  24459. the compilation. As it searches for the included file (*note Search
  24460. Path: (cpp)Search Path.) the compiler looks for a precompiled header in
  24461. each directory just before it looks for the include file in that
  24462. directory. The name searched for is the name specified in the
  24463. '#include' with '.gch' appended. If the precompiled header file cannot
  24464. be used, it is ignored.
  24465. For instance, if you have '#include "all.h"', and you have 'all.h.gch'
  24466. in the same directory as 'all.h', then the precompiled header file is
  24467. used if possible, and the original header is used otherwise.
  24468. Alternatively, you might decide to put the precompiled header file in a
  24469. directory and use '-I' to ensure that directory is searched before (or
  24470. instead of) the directory containing the original header. Then, if you
  24471. want to check that the precompiled header file is always used, you can
  24472. put a file of the same name as the original header in this directory
  24473. containing an '#error' command.
  24474. This also works with '-include'. So yet another way to use precompiled
  24475. headers, good for projects not designed with precompiled header files in
  24476. mind, is to simply take most of the header files used by a project,
  24477. include them from another header file, precompile that header file, and
  24478. '-include' the precompiled header. If the header files have guards
  24479. against multiple inclusion, they are skipped because they've already
  24480. been included (in the precompiled header).
  24481. If you need to precompile the same header file for different languages,
  24482. targets, or compiler options, you can instead make a _directory_ named
  24483. like 'all.h.gch', and put each precompiled header in the directory,
  24484. perhaps using '-o'. It doesn't matter what you call the files in the
  24485. directory; every precompiled header in the directory is considered. The
  24486. first precompiled header encountered in the directory that is valid for
  24487. this compilation is used; they're searched in no particular order.
  24488. There are many other possibilities, limited only by your imagination,
  24489. good sense, and the constraints of your build system.
  24490. A precompiled header file can be used only when these conditions apply:
  24491. * Only one precompiled header can be used in a particular
  24492. compilation.
  24493. * A precompiled header cannot be used once the first C token is seen.
  24494. You can have preprocessor directives before a precompiled header;
  24495. you cannot include a precompiled header from inside another header.
  24496. * The precompiled header file must be produced for the same language
  24497. as the current compilation. You cannot use a C precompiled header
  24498. for a C++ compilation.
  24499. * The precompiled header file must have been produced by the same
  24500. compiler binary as the current compilation is using.
  24501. * Any macros defined before the precompiled header is included must
  24502. either be defined in the same way as when the precompiled header
  24503. was generated, or must not affect the precompiled header, which
  24504. usually means that they don't appear in the precompiled header at
  24505. all.
  24506. The '-D' option is one way to define a macro before a precompiled
  24507. header is included; using a '#define' can also do it. There are
  24508. also some options that define macros implicitly, like '-O' and
  24509. '-Wdeprecated'; the same rule applies to macros defined this way.
  24510. * If debugging information is output when using the precompiled
  24511. header, using '-g' or similar, the same kind of debugging
  24512. information must have been output when building the precompiled
  24513. header. However, a precompiled header built using '-g' can be used
  24514. in a compilation when no debugging information is being output.
  24515. * The same '-m' options must generally be used when building and
  24516. using the precompiled header. *Note Submodel Options::, for any
  24517. cases where this rule is relaxed.
  24518. * Each of the following options must be the same when building and
  24519. using the precompiled header:
  24520. -fexceptions
  24521. * Some other command-line options starting with '-f', '-p', or '-O'
  24522. must be defined in the same way as when the precompiled header was
  24523. generated. At present, it's not clear which options are safe to
  24524. change and which are not; the safest choice is to use exactly the
  24525. same options when generating and using the precompiled header. The
  24526. following are known to be safe:
  24527. -fmessage-length= -fpreprocessed -fsched-interblock
  24528. -fsched-spec -fsched-spec-load -fsched-spec-load-dangerous
  24529. -fsched-verbose=NUMBER -fschedule-insns -fvisibility=
  24530. -pedantic-errors
  24531. * Address space layout randomization (ASLR) can lead to not binary
  24532. identical PCH files. If you rely on stable PCH file contents
  24533. disable ASLR when generating PCH files.
  24534. For all of these except the last, the compiler automatically ignores
  24535. the precompiled header if the conditions aren't met. If you find an
  24536. option combination that doesn't work and doesn't cause the precompiled
  24537. header to be ignored, please consider filing a bug report, see *note
  24538. Bugs::.
  24539. If you do use differing options when generating and using the
  24540. precompiled header, the actual behavior is a mixture of the behavior for
  24541. the options. For instance, if you use '-g' to generate the precompiled
  24542. header but not when using it, you may or may not get debugging
  24543. information for routines in the precompiled header.
  24544. 
  24545. File: gcc.info, Node: C++ Modules, Prev: Precompiled Headers, Up: Invoking GCC
  24546. 3.23 C++ Modules
  24547. ================
  24548. Modules are a C++20 language feature. As the name suggests, they
  24549. provides a modular compilation system, intending to provide both faster
  24550. builds and better library isolation. The "Merging Modules" paper
  24551. <https://wg21.link/p1103>, provides the easiest to read set of changes
  24552. to the standard, although it does not capture later changes. That
  24553. specification is now part of C++20,
  24554. <git@github.com:cplusplus/draft.git>, it is considered complete (there
  24555. may be defect reports to come).
  24556. _G++'s modules support is not complete._ Other than bugs, the known
  24557. missing pieces are:
  24558. _Private Module Fragment_
  24559. The Private Module Fragment is recognized, but an error is emitted.
  24560. _Partition definition visibility rules_
  24561. Entities may be defined in implementation partitions, and those
  24562. definitions are not available outside of the module. This is not
  24563. implemented, and the definitions are available to extra-module use.
  24564. _Textual merging of reachable GM entities_
  24565. Entities may be multiply defined across different header-units.
  24566. These must be de-duplicated, and this is implemented across
  24567. imports, or when an import redefines a textually-defined entity.
  24568. However the reverse is not implemented--textually redefining an
  24569. entity that has been defined in an imported header-unit. A
  24570. redefinition error is emitted.
  24571. _Translation-Unit local referencing rules_
  24572. Papers p1815 (<https://wg21.link/p1815>) and p2003
  24573. (<https://wg21.link/p2003>) add limitations on which entities an
  24574. exported region may reference (for instance, the entities an
  24575. exported template definition may reference). These are not fully
  24576. implemented.
  24577. _Language-linkage module attachment_
  24578. Declarations with explicit language linkage ('extern "C"' or
  24579. 'extern "C++"') are attached to the global module, even when in the
  24580. purview of a named module. This is not implemented. Such
  24581. declarations will be attached to the module, if any, in which they
  24582. are declared.
  24583. _Standard Library Header Units_
  24584. The Standard Library is not provided as importable header units.
  24585. If you want to import such units, you must explicitly build them
  24586. first. If you do not do this with care, you may have multiple
  24587. declarations, which the module machinery must merge--compiler
  24588. resource usage can be affected by how you partition header files
  24589. into header units.
  24590. Modular compilation is _not_ enabled with just the '-std=c++20' option.
  24591. You must explicitly enable it with the '-fmodules-ts' option. It is
  24592. independent of the language version selected, although in pre-C++20
  24593. versions, it is of course an extension.
  24594. No new source file suffixes are required or supported. If you wish to
  24595. use a non-standard suffix (*Note Overall Options::), you also need to
  24596. provide a '-x c++' option too.(1)
  24597. Compiling a module interface unit produces an additional output (to the
  24598. assembly or object file), called a Compiled Module Interface (CMI). This
  24599. encodes the exported declarations of the module. Importing a module
  24600. reads in the CMI. The import graph is a Directed Acyclic Graph (DAG).
  24601. You must build imports before the importer.
  24602. Header files may themselves be compiled to header units, which are a
  24603. transitional ability aiming at faster compilation. The
  24604. '-fmodule-header' option is used to enable this, and implies the
  24605. '-fmodules-ts' option. These CMIs are named by the fully resolved
  24606. underlying header file, and thus may be a complete pathname containing
  24607. subdirectories. If the header file is found at an absolute pathname,
  24608. the CMI location is still relative to a CMI root directory.
  24609. As header files often have no suffix, you commonly have to specify a
  24610. '-x' option to tell the compiler the source is a header file. You may
  24611. use '-x c++-header', '-x c++-user-header' or '-x c++-system-header'.
  24612. When used in conjunction with '-fmodules-ts', these all imply an
  24613. appropriate '-fmodule-header' option. The latter two variants use the
  24614. user or system include path to search for the file specified. This
  24615. allows you to, for instance, compile standard library header files as
  24616. header units, without needing to know exactly where they are installed.
  24617. Specifying the language as one of these variants also inhibits output of
  24618. the object file, as header files have no associated object file.
  24619. The '-fmodule-only' option disables generation of the associated object
  24620. file for compiling a module interface. Only the CMI is generated. This
  24621. option is implied when using the '-fmodule-header' option.
  24622. The '-flang-info-include-translate' and
  24623. '-flang-info-include-translate-not' options notes whether include
  24624. translation occurs or not. With no argument, the first will note all
  24625. include translation. The second will note all non-translations of
  24626. include files not known to intentionally be textual. With an argument,
  24627. queries about include translation of a header files with that particular
  24628. trailing pathname are noted. You may repeat this form to cover several
  24629. different header files. This option may be helpful in determining
  24630. whether include translation is happening--if it is working correctly, it
  24631. behaves as if it isn't there at all.
  24632. The '-flang-info-module-cmi' option can be used to determine where the
  24633. compiler is reading a CMI from. Without the option, the compiler is
  24634. silent when such a read is successful. This option has an optional
  24635. argument, which will restrict the notification to just the set of named
  24636. modules or header units specified.
  24637. The '-Winvalid-imported-macros' option causes all imported macros to be
  24638. resolved at the end of compilation. Without this, imported macros are
  24639. only resolved when expanded or (re)defined. This option detects
  24640. conflicting import definitions for all macros.
  24641. *Note C++ Module Mapper:: for details of the '-fmodule-mapper' family
  24642. of options.
  24643. * Menu:
  24644. * C++ Module Mapper:: Module Mapper
  24645. * C++ Module Preprocessing:: Module Preprocessing
  24646. * C++ Compiled Module Interface:: Compiled Module Interface
  24647. ---------- Footnotes ----------
  24648. (1) Some users like to distinguish module interface files with a new
  24649. suffix, such as naming the source 'module.cppm', which involves teaching
  24650. all tools about the new suffix. A different scheme, such as naming
  24651. 'module-m.cpp' would be less invasive.
  24652. 
  24653. File: gcc.info, Node: C++ Module Mapper, Next: C++ Module Preprocessing, Up: C++ Modules
  24654. 3.23.1 Module Mapper
  24655. --------------------
  24656. A module mapper provides a server or file that the compiler queries to
  24657. determine the mapping between module names and CMI files. It is also
  24658. used to build CMIs on demand. _Mapper functionality is in its infancy
  24659. and is intended for experimentation with build system interactions._
  24660. You can specify a mapper with the '-fmodule-mapper=VAL' option or
  24661. 'CXX_MODULE_MAPPER' environment variable. The value may have one of the
  24662. following forms:
  24663. '[HOSTNAME]:PORT[?IDENT]'
  24664. An optional hostname and a numeric port number to connect to. If
  24665. the hostname is omitted, the loopback address is used. If the
  24666. hostname corresponds to multiple IPV6 addresses, these are tried in
  24667. turn, until one is successful. If your host lacks IPv6, this form
  24668. is non-functional. If you must use IPv4 use
  24669. '-fmodule-mapper='|ncat IPV4HOST PORT''.
  24670. '=SOCKET[?IDENT]'
  24671. A local domain socket. If your host lacks local domain sockets,
  24672. this form is non-functional.
  24673. '|PROGRAM[?IDENT] [ARGS...]'
  24674. A program to spawn, and communicate with on its stdin/stdout
  24675. streams. Your PATH environment variable is searched for the
  24676. program. Arguments are separated by space characters, (it is not
  24677. possible for one of the arguments delivered to the program to
  24678. contain a space). An exception is if PROGRAM begins with @. In
  24679. that case PROGRAM (sans @) is looked for in the compiler's internal
  24680. binary directory. Thus the sample mapper-server can be specified
  24681. with '@g++-mapper-server'.
  24682. '<>[?IDENT]'
  24683. '<>INOUT[?IDENT]'
  24684. '<IN>OUT[?IDENT]'
  24685. Named pipes or file descriptors to communicate over. The first
  24686. form, '<>', communicates over stdin and stdout. The other forms
  24687. allow you to specify a file descriptor or name a pipe. A numeric
  24688. value is interpreted as a file descriptor, otherwise named pipe is
  24689. opened. The second form specifies a bidirectional pipe and the
  24690. last form allows specifying two independent pipes. Using file
  24691. descriptors directly in this manner is fragile in general, as it
  24692. can require the cooperation of intermediate processes. In
  24693. particular using stdin & stdout is fraught with danger as other
  24694. compiler options might also cause the compiler to read stdin or
  24695. write stdout, and it can have unfortunate interactions with signal
  24696. delivery from the terminal.
  24697. 'FILE[?IDENT]'
  24698. A mapping file consisting of space-separated module-name, filename
  24699. pairs, one per line. Only the mappings for the direct imports and
  24700. any module export name need be provided. If other mappings are
  24701. provided, they override those stored in any imported CMI files. A
  24702. repository root may be specified in the mapping file by using
  24703. '$root' as the module name in the first active line. Use of this
  24704. option will disable any default module->CMI name mapping.
  24705. As shown, an optional IDENT may suffix the first word of the option,
  24706. indicated by a '?' prefix. The value is used in the initial handshake
  24707. with the module server, or to specify a prefix on mapping file lines.
  24708. In the server case, the main source file name is used if no IDENT is
  24709. specified. In the file case, all non-blank lines are significant,
  24710. unless a value is specified, in which case only lines beginning with
  24711. IDENT are significant. The IDENT must be separated by whitespace from
  24712. the module name. Be aware that '<', '>', '?', and '|' characters are
  24713. often significant to the shell, and therefore may need quoting.
  24714. The mapper is connected to or loaded lazily, when the first module
  24715. mapping is required. The networking protocols are only supported on
  24716. hosts that provide networking. If no mapper is specified a default is
  24717. provided.
  24718. A project-specific mapper is expected to be provided by the build
  24719. system that invokes the compiler. It is not expected that a
  24720. general-purpose server is provided for all compilations. As such, the
  24721. server will know the build configuration, the compiler it invoked, and
  24722. the environment (such as working directory) in which that is operating.
  24723. As it may parallelize builds, several compilations may connect to the
  24724. same socket.
  24725. The default mapper generates CMI files in a 'gcm.cache' directory. CMI
  24726. files have a '.gcm' suffix. The module unit name is used directly to
  24727. provide the basename. Header units construct a relative path using the
  24728. underlying header file name. If the path is already relative, a ','
  24729. directory is prepended. Internal '..' components are translated to
  24730. ',,'. No attempt is made to canonicalize these filenames beyond that
  24731. done by the preprocessor's include search algorithm, as in general it is
  24732. ambiguous when symbolic links are present.
  24733. The mapper protocol was published as "A Module Mapper"
  24734. <https://wg21.link/p1184>. The implementation is provided by 'libcody',
  24735. <https://github.com/urnathan/libcody>, which specifies the canonical
  24736. protocol definition. A proof of concept server implementation embedded
  24737. in 'make' was described in "Make Me A Module",
  24738. <https://wg21.link/p1602>.
  24739. 
  24740. File: gcc.info, Node: C++ Module Preprocessing, Next: C++ Compiled Module Interface, Prev: C++ Module Mapper, Up: C++ Modules
  24741. 3.23.2 Module Preprocessing
  24742. ---------------------------
  24743. Modules affect preprocessing because of header units and include
  24744. translation. Some uses of the preprocessor as a separate step either do
  24745. not produce a correct output, or require CMIs to be available.
  24746. Header units import macros. These macros can affect later conditional
  24747. inclusion, which therefore can cascade to differing import sets. When
  24748. preprocessing, it is necessary to load the CMI. If a header unit is
  24749. unavailable, the preprocessor issues a warning and continue (when not
  24750. just preprocessing, an error is emitted). Detecting such imports
  24751. requires preprocessor tokenization of the input stream to phase 4 (macro
  24752. expansion).
  24753. Include translation converts '#include', '#include_next' and '#import'
  24754. directives to internal 'import' declarations. Whether a particular
  24755. directive is translated is controlled by the module mapper. Header unit
  24756. names are canonicalized during preprocessing.
  24757. Dependency information can be emitted for macro import, extending the
  24758. functionality of '-MD' and '-MMD' options. Detection of import
  24759. declarations also requires phase 4 preprocessing, and thus requires full
  24760. preprocessing (or compilation).
  24761. The '-M', '-MM' and '-E -fdirectives-only' options halt preprocessing
  24762. before phase 4.
  24763. The '-save-temps' option uses '-fdirectives-only' for preprocessing,
  24764. and preserve the macro definitions in the preprocessed output. Usually
  24765. you also want to use this option when explicitly preprocessing a
  24766. header-unit, or consuming such preprocessed output:
  24767. g++ -fmodules-ts -E -fdirectives-only my-header.hh -o my-header.ii
  24768. g++ -x c++-header -fmodules-ts -fpreprocessed -fdirectives-only my-header.ii
  24769. 
  24770. File: gcc.info, Node: C++ Compiled Module Interface, Prev: C++ Module Preprocessing, Up: C++ Modules
  24771. 3.23.3 Compiled Module Interface
  24772. --------------------------------
  24773. CMIs are an additional artifact when compiling named module interfaces,
  24774. partitions or header units. These are read when importing. CMI
  24775. contents are implementation-specific, and in GCC's case tied to the
  24776. compiler version. Consider them a rebuildable cache artifact, not a
  24777. distributable object.
  24778. When creating an output CMI, any missing directory components are
  24779. created in a manner that is safe for concurrent builds creating
  24780. multiple, different, CMIs within a common subdirectory tree.
  24781. CMI contents are written to a temporary file, which is then atomically
  24782. renamed. Observers either see old contents (if there is an existing
  24783. file), or complete new contents. They do not observe the CMI during its
  24784. creation. This is unlike object file writing, which may be observed by
  24785. an external process.
  24786. CMIs are read in lazily, if the host OS provides 'mmap' functionality.
  24787. Generally blocks are read when name lookup or template instantiation
  24788. occurs. To inhibit this, the '-fno-module-lazy' option may be used.
  24789. The '--param lazy-modules=N' parameter controls the limit on the number
  24790. of concurrently open module files during lazy loading. Should more
  24791. modules be imported, an LRU algorithm is used to determine which files
  24792. to close--until that file is needed again. This limit may be exceeded
  24793. with deep module dependency hierarchies. With large code bases there
  24794. may be more imports than the process limit of file descriptors. By
  24795. default, the limit is a few less than the per-process file descriptor
  24796. hard limit, if that is determinable.(1)
  24797. GCC CMIs use ELF32 as an architecture-neutral encapsulation mechanism.
  24798. You may use 'readelf' to inspect them, although section contents are
  24799. largely undecipherable. There is a section named '.gnu.c++.README',
  24800. which contains human-readable text. Other than the first line, each
  24801. line consists of 'TAG: value' tuples.
  24802. > readelf -p.gnu.c++.README gcm.cache/foo.gcm
  24803. String dump of section '.gnu.c++.README':
  24804. [ 0] GNU C++ primary module interface
  24805. [ 21] compiler: 11.0.0 20201116 (experimental) [c++-modules revision 20201116-0454]
  24806. [ 6f] version: 2020/11/16-04:54
  24807. [ 89] module: foo
  24808. [ 95] source: c_b.ii
  24809. [ a4] dialect: C++20/coroutines
  24810. [ be] cwd: /data/users/nathans/modules/obj/x86_64/gcc
  24811. [ ee] repository: gcm.cache
  24812. [ 104] buildtime: 2020/11/16 15:03:21 UTC
  24813. [ 127] localtime: 2020/11/16 07:03:21 PST
  24814. [ 14a] export: foo:part1 foo-part1.gcm
  24815. Amongst other things, this lists the source that was built, C++ dialect
  24816. used and imports of the module.(2) The timestamp is the same value as
  24817. that provided by the '__DATE__' & '__TIME__' macros, and may be
  24818. explicitly specified with the environment variable 'SOURCE_DATE_EPOCH'.
  24819. *Note Environment Variables:: for further details.
  24820. A set of related CMIs may be copied, provided the relative pathnames
  24821. are preserved.
  24822. The '.gnu.c++.README' contents do not affect CMI integrity, and it may
  24823. be removed or altered. The section numbering of the sections whose
  24824. names do not begin with '.gnu.c++.', or are not the string section is
  24825. significant and must not be altered.
  24826. ---------- Footnotes ----------
  24827. (1) Where applicable the soft limit is incremented as needed towards
  24828. the hard limit.
  24829. (2) The precise contents of this output may change.
  24830. 
  24831. File: gcc.info, Node: C Implementation, Next: C++ Implementation, Prev: Invoking GCC, Up: Top
  24832. 4 C Implementation-Defined Behavior
  24833. ***********************************
  24834. A conforming implementation of ISO C is required to document its choice
  24835. of behavior in each of the areas that are designated "implementation
  24836. defined". The following lists all such areas, along with the section
  24837. numbers from the ISO/IEC 9899:1990, ISO/IEC 9899:1999 and ISO/IEC
  24838. 9899:2011 standards. Some areas are only implementation-defined in one
  24839. version of the standard.
  24840. Some choices depend on the externally determined ABI for the platform
  24841. (including standard character encodings) which GCC follows; these are
  24842. listed as "determined by ABI" below. *Note Binary Compatibility:
  24843. Compatibility, and <http://gcc.gnu.org/readings.html>. Some choices are
  24844. documented in the preprocessor manual. *Note Implementation-defined
  24845. behavior: (cpp)Implementation-defined behavior. Some choices are made
  24846. by the library and operating system (or other environment when compiling
  24847. for a freestanding environment); refer to their documentation for
  24848. details.
  24849. * Menu:
  24850. * Translation implementation::
  24851. * Environment implementation::
  24852. * Identifiers implementation::
  24853. * Characters implementation::
  24854. * Integers implementation::
  24855. * Floating point implementation::
  24856. * Arrays and pointers implementation::
  24857. * Hints implementation::
  24858. * Structures unions enumerations and bit-fields implementation::
  24859. * Qualifiers implementation::
  24860. * Declarators implementation::
  24861. * Statements implementation::
  24862. * Preprocessing directives implementation::
  24863. * Library functions implementation::
  24864. * Architecture implementation::
  24865. * Locale-specific behavior implementation::
  24866. 
  24867. File: gcc.info, Node: Translation implementation, Next: Environment implementation, Up: C Implementation
  24868. 4.1 Translation
  24869. ===============
  24870. * 'How a diagnostic is identified (C90 3.7, C99 and C11 3.10, C90,
  24871. C99 and C11 5.1.1.3).'
  24872. Diagnostics consist of all the output sent to stderr by GCC.
  24873. * 'Whether each nonempty sequence of white-space characters other
  24874. than new-line is retained or replaced by one space character in
  24875. translation phase 3 (C90, C99 and C11 5.1.1.2).'
  24876. *Note Implementation-defined behavior: (cpp)Implementation-defined
  24877. behavior.
  24878. 
  24879. File: gcc.info, Node: Environment implementation, Next: Identifiers implementation, Prev: Translation implementation, Up: C Implementation
  24880. 4.2 Environment
  24881. ===============
  24882. The behavior of most of these points are dependent on the implementation
  24883. of the C library, and are not defined by GCC itself.
  24884. * 'The mapping between physical source file multibyte characters and
  24885. the source character set in translation phase 1 (C90, C99 and C11
  24886. 5.1.1.2).'
  24887. *Note Implementation-defined behavior: (cpp)Implementation-defined
  24888. behavior.
  24889. 
  24890. File: gcc.info, Node: Identifiers implementation, Next: Characters implementation, Prev: Environment implementation, Up: C Implementation
  24891. 4.3 Identifiers
  24892. ===============
  24893. * 'Which additional multibyte characters may appear in identifiers
  24894. and their correspondence to universal character names (C99 and C11
  24895. 6.4.2).'
  24896. *Note Implementation-defined behavior: (cpp)Implementation-defined
  24897. behavior.
  24898. * 'The number of significant initial characters in an identifier (C90
  24899. 6.1.2, C90, C99 and C11 5.2.4.1, C99 and C11 6.4.2).'
  24900. For internal names, all characters are significant. For external
  24901. names, the number of significant characters are defined by the
  24902. linker; for almost all targets, all characters are significant.
  24903. * 'Whether case distinctions are significant in an identifier with
  24904. external linkage (C90 6.1.2).'
  24905. This is a property of the linker. C99 and C11 require that case
  24906. distinctions are always significant in identifiers with external
  24907. linkage and systems without this property are not supported by GCC.
  24908. 
  24909. File: gcc.info, Node: Characters implementation, Next: Integers implementation, Prev: Identifiers implementation, Up: C Implementation
  24910. 4.4 Characters
  24911. ==============
  24912. * 'The number of bits in a byte (C90 3.4, C99 and C11 3.6).'
  24913. Determined by ABI.
  24914. * 'The values of the members of the execution character set (C90, C99
  24915. and C11 5.2.1).'
  24916. Determined by ABI.
  24917. * 'The unique value of the member of the execution character set
  24918. produced for each of the standard alphabetic escape sequences (C90,
  24919. C99 and C11 5.2.2).'
  24920. Determined by ABI.
  24921. * 'The value of a 'char' object into which has been stored any
  24922. character other than a member of the basic execution character set
  24923. (C90 6.1.2.5, C99 and C11 6.2.5).'
  24924. Determined by ABI.
  24925. * 'Which of 'signed char' or 'unsigned char' has the same range,
  24926. representation, and behavior as "plain" 'char' (C90 6.1.2.5, C90
  24927. 6.2.1.1, C99 and C11 6.2.5, C99 and C11 6.3.1.1).'
  24928. Determined by ABI. The options '-funsigned-char' and
  24929. '-fsigned-char' change the default. *Note Options Controlling C
  24930. Dialect: C Dialect Options.
  24931. * 'The mapping of members of the source character set (in character
  24932. constants and string literals) to members of the execution
  24933. character set (C90 6.1.3.4, C99 and C11 6.4.4.4, C90, C99 and C11
  24934. 5.1.1.2).'
  24935. Determined by ABI.
  24936. * 'The value of an integer character constant containing more than
  24937. one character or containing a character or escape sequence that
  24938. does not map to a single-byte execution character (C90 6.1.3.4, C99
  24939. and C11 6.4.4.4).'
  24940. *Note Implementation-defined behavior: (cpp)Implementation-defined
  24941. behavior.
  24942. * 'The value of a wide character constant containing more than one
  24943. multibyte character or a single multibyte character that maps to
  24944. multiple members of the extended execution character set, or
  24945. containing a multibyte character or escape sequence not represented
  24946. in the extended execution character set (C90 6.1.3.4, C99 and C11
  24947. 6.4.4.4).'
  24948. *Note Implementation-defined behavior: (cpp)Implementation-defined
  24949. behavior.
  24950. * 'The current locale used to convert a wide character constant
  24951. consisting of a single multibyte character that maps to a member of
  24952. the extended execution character set into a corresponding wide
  24953. character code (C90 6.1.3.4, C99 and C11 6.4.4.4).'
  24954. *Note Implementation-defined behavior: (cpp)Implementation-defined
  24955. behavior.
  24956. * 'Whether differently-prefixed wide string literal tokens can be
  24957. concatenated and, if so, the treatment of the resulting multibyte
  24958. character sequence (C11 6.4.5).'
  24959. Such tokens may not be concatenated.
  24960. * 'The current locale used to convert a wide string literal into
  24961. corresponding wide character codes (C90 6.1.4, C99 and C11 6.4.5).'
  24962. *Note Implementation-defined behavior: (cpp)Implementation-defined
  24963. behavior.
  24964. * 'The value of a string literal containing a multibyte character or
  24965. escape sequence not represented in the execution character set (C90
  24966. 6.1.4, C99 and C11 6.4.5).'
  24967. *Note Implementation-defined behavior: (cpp)Implementation-defined
  24968. behavior.
  24969. * 'The encoding of any of 'wchar_t', 'char16_t', and 'char32_t' where
  24970. the corresponding standard encoding macro ('__STDC_ISO_10646__',
  24971. '__STDC_UTF_16__', or '__STDC_UTF_32__') is not defined (C11
  24972. 6.10.8.2).'
  24973. *Note Implementation-defined behavior: (cpp)Implementation-defined
  24974. behavior. 'char16_t' and 'char32_t' literals are always encoded in
  24975. UTF-16 and UTF-32 respectively.
  24976. 
  24977. File: gcc.info, Node: Integers implementation, Next: Floating point implementation, Prev: Characters implementation, Up: C Implementation
  24978. 4.5 Integers
  24979. ============
  24980. * 'Any extended integer types that exist in the implementation (C99
  24981. and C11 6.2.5).'
  24982. GCC does not support any extended integer types.
  24983. * 'Whether signed integer types are represented using sign and
  24984. magnitude, two's complement, or one's complement, and whether the
  24985. extraordinary value is a trap representation or an ordinary value
  24986. (C99 and C11 6.2.6.2).'
  24987. GCC supports only two's complement integer types, and all bit
  24988. patterns are ordinary values.
  24989. * 'The rank of any extended integer type relative to another extended
  24990. integer type with the same precision (C99 and C11 6.3.1.1).'
  24991. GCC does not support any extended integer types.
  24992. * 'The result of, or the signal raised by, converting an integer to a
  24993. signed integer type when the value cannot be represented in an
  24994. object of that type (C90 6.2.1.2, C99 and C11 6.3.1.3).'
  24995. For conversion to a type of width N, the value is reduced modulo
  24996. 2^N to be within range of the type; no signal is raised.
  24997. * 'The results of some bitwise operations on signed integers (C90
  24998. 6.3, C99 and C11 6.5).'
  24999. Bitwise operators act on the representation of the value including
  25000. both the sign and value bits, where the sign bit is considered
  25001. immediately above the highest-value value bit. Signed '>>' acts on
  25002. negative numbers by sign extension.
  25003. As an extension to the C language, GCC does not use the latitude
  25004. given in C99 and C11 only to treat certain aspects of signed '<<'
  25005. as undefined. However, '-fsanitize=shift' (and
  25006. '-fsanitize=undefined') will diagnose such cases. They are also
  25007. diagnosed where constant expressions are required.
  25008. * 'The sign of the remainder on integer division (C90 6.3.5).'
  25009. GCC always follows the C99 and C11 requirement that the result of
  25010. division is truncated towards zero.
  25011. 
  25012. File: gcc.info, Node: Floating point implementation, Next: Arrays and pointers implementation, Prev: Integers implementation, Up: C Implementation
  25013. 4.6 Floating Point
  25014. ==================
  25015. * 'The accuracy of the floating-point operations and of the library
  25016. functions in '<math.h>' and '<complex.h>' that return
  25017. floating-point results (C90, C99 and C11 5.2.4.2.2).'
  25018. The accuracy is unknown.
  25019. * 'The rounding behaviors characterized by non-standard values of
  25020. 'FLT_ROUNDS' (C90, C99 and C11 5.2.4.2.2).'
  25021. GCC does not use such values.
  25022. * 'The evaluation methods characterized by non-standard negative
  25023. values of 'FLT_EVAL_METHOD' (C99 and C11 5.2.4.2.2).'
  25024. GCC does not use such values.
  25025. * 'The direction of rounding when an integer is converted to a
  25026. floating-point number that cannot exactly represent the original
  25027. value (C90 6.2.1.3, C99 and C11 6.3.1.4).'
  25028. C99 Annex F is followed.
  25029. * 'The direction of rounding when a floating-point number is
  25030. converted to a narrower floating-point number (C90 6.2.1.4, C99 and
  25031. C11 6.3.1.5).'
  25032. C99 Annex F is followed.
  25033. * 'How the nearest representable value or the larger or smaller
  25034. representable value immediately adjacent to the nearest
  25035. representable value is chosen for certain floating constants (C90
  25036. 6.1.3.1, C99 and C11 6.4.4.2).'
  25037. C99 Annex F is followed.
  25038. * 'Whether and how floating expressions are contracted when not
  25039. disallowed by the 'FP_CONTRACT' pragma (C99 and C11 6.5).'
  25040. Expressions are currently only contracted if '-ffp-contract=fast',
  25041. '-funsafe-math-optimizations' or '-ffast-math' are used. This is
  25042. subject to change.
  25043. * 'The default state for the 'FENV_ACCESS' pragma (C99 and C11
  25044. 7.6.1).'
  25045. This pragma is not implemented, but the default is to "off" unless
  25046. '-frounding-math' is used in which case it is "on".
  25047. * 'Additional floating-point exceptions, rounding modes,
  25048. environments, and classifications, and their macro names (C99 and
  25049. C11 7.6, C99 and C11 7.12).'
  25050. This is dependent on the implementation of the C library, and is
  25051. not defined by GCC itself.
  25052. * 'The default state for the 'FP_CONTRACT' pragma (C99 and C11
  25053. 7.12.2).'
  25054. This pragma is not implemented. Expressions are currently only
  25055. contracted if '-ffp-contract=fast', '-funsafe-math-optimizations'
  25056. or '-ffast-math' are used. This is subject to change.
  25057. * 'Whether the "inexact" floating-point exception can be raised when
  25058. the rounded result actually does equal the mathematical result in
  25059. an IEC 60559 conformant implementation (C99 F.9).'
  25060. This is dependent on the implementation of the C library, and is
  25061. not defined by GCC itself.
  25062. * 'Whether the "underflow" (and "inexact") floating-point exception
  25063. can be raised when a result is tiny but not inexact in an IEC 60559
  25064. conformant implementation (C99 F.9).'
  25065. This is dependent on the implementation of the C library, and is
  25066. not defined by GCC itself.
  25067. 
  25068. File: gcc.info, Node: Arrays and pointers implementation, Next: Hints implementation, Prev: Floating point implementation, Up: C Implementation
  25069. 4.7 Arrays and Pointers
  25070. =======================
  25071. * 'The result of converting a pointer to an integer or vice versa
  25072. (C90 6.3.4, C99 and C11 6.3.2.3).'
  25073. A cast from pointer to integer discards most-significant bits if
  25074. the pointer representation is larger than the integer type,
  25075. sign-extends(1) if the pointer representation is smaller than the
  25076. integer type, otherwise the bits are unchanged.
  25077. A cast from integer to pointer discards most-significant bits if
  25078. the pointer representation is smaller than the integer type,
  25079. extends according to the signedness of the integer type if the
  25080. pointer representation is larger than the integer type, otherwise
  25081. the bits are unchanged.
  25082. When casting from pointer to integer and back again, the resulting
  25083. pointer must reference the same object as the original pointer,
  25084. otherwise the behavior is undefined. That is, one may not use
  25085. integer arithmetic to avoid the undefined behavior of pointer
  25086. arithmetic as proscribed in C99 and C11 6.5.6/8.
  25087. * 'The size of the result of subtracting two pointers to elements of
  25088. the same array (C90 6.3.6, C99 and C11 6.5.6).'
  25089. The value is as specified in the standard and the type is
  25090. determined by the ABI.
  25091. ---------- Footnotes ----------
  25092. (1) Future versions of GCC may zero-extend, or use a target-defined
  25093. 'ptr_extend' pattern. Do not rely on sign extension.
  25094. 
  25095. File: gcc.info, Node: Hints implementation, Next: Structures unions enumerations and bit-fields implementation, Prev: Arrays and pointers implementation, Up: C Implementation
  25096. 4.8 Hints
  25097. =========
  25098. * 'The extent to which suggestions made by using the 'register'
  25099. storage-class specifier are effective (C90 6.5.1, C99 and C11
  25100. 6.7.1).'
  25101. The 'register' specifier affects code generation only in these
  25102. ways:
  25103. * When used as part of the register variable extension, see
  25104. *note Explicit Register Variables::.
  25105. * When '-O0' is in use, the compiler allocates distinct stack
  25106. memory for all variables that do not have the 'register'
  25107. storage-class specifier; if 'register' is specified, the
  25108. variable may have a shorter lifespan than the code would
  25109. indicate and may never be placed in memory.
  25110. * On some rare x86 targets, 'setjmp' doesn't save the registers
  25111. in all circumstances. In those cases, GCC doesn't allocate
  25112. any variables in registers unless they are marked 'register'.
  25113. * 'The extent to which suggestions made by using the inline function
  25114. specifier are effective (C99 and C11 6.7.4).'
  25115. GCC will not inline any functions if the '-fno-inline' option is
  25116. used or if '-O0' is used. Otherwise, GCC may still be unable to
  25117. inline a function for many reasons; the '-Winline' option may be
  25118. used to determine if a function has not been inlined and why not.
  25119. 
  25120. File: gcc.info, Node: Structures unions enumerations and bit-fields implementation, Next: Qualifiers implementation, Prev: Hints implementation, Up: C Implementation
  25121. 4.9 Structures, Unions, Enumerations, and Bit-Fields
  25122. ====================================================
  25123. * 'A member of a union object is accessed using a member of a
  25124. different type (C90 6.3.2.3).'
  25125. The relevant bytes of the representation of the object are treated
  25126. as an object of the type used for the access. *Note
  25127. Type-punning::. This may be a trap representation.
  25128. * 'Whether a "plain" 'int' bit-field is treated as a 'signed int'
  25129. bit-field or as an 'unsigned int' bit-field (C90 6.5.2, C90
  25130. 6.5.2.1, C99 and C11 6.7.2, C99 and C11 6.7.2.1).'
  25131. By default it is treated as 'signed int' but this may be changed by
  25132. the '-funsigned-bitfields' option.
  25133. * 'Allowable bit-field types other than '_Bool', 'signed int', and
  25134. 'unsigned int' (C99 and C11 6.7.2.1).'
  25135. Other integer types, such as 'long int', and enumerated types are
  25136. permitted even in strictly conforming mode.
  25137. * 'Whether atomic types are permitted for bit-fields (C11 6.7.2.1).'
  25138. Atomic types are not permitted for bit-fields.
  25139. * 'Whether a bit-field can straddle a storage-unit boundary (C90
  25140. 6.5.2.1, C99 and C11 6.7.2.1).'
  25141. Determined by ABI.
  25142. * 'The order of allocation of bit-fields within a unit (C90 6.5.2.1,
  25143. C99 and C11 6.7.2.1).'
  25144. Determined by ABI.
  25145. * 'The alignment of non-bit-field members of structures (C90 6.5.2.1,
  25146. C99 and C11 6.7.2.1).'
  25147. Determined by ABI.
  25148. * 'The integer type compatible with each enumerated type (C90
  25149. 6.5.2.2, C99 and C11 6.7.2.2).'
  25150. Normally, the type is 'unsigned int' if there are no negative
  25151. values in the enumeration, otherwise 'int'. If '-fshort-enums' is
  25152. specified, then if there are negative values it is the first of
  25153. 'signed char', 'short' and 'int' that can represent all the values,
  25154. otherwise it is the first of 'unsigned char', 'unsigned short' and
  25155. 'unsigned int' that can represent all the values.
  25156. On some targets, '-fshort-enums' is the default; this is determined
  25157. by the ABI.
  25158. 
  25159. File: gcc.info, Node: Qualifiers implementation, Next: Declarators implementation, Prev: Structures unions enumerations and bit-fields implementation, Up: C Implementation
  25160. 4.10 Qualifiers
  25161. ===============
  25162. * 'What constitutes an access to an object that has
  25163. volatile-qualified type (C90 6.5.3, C99 and C11 6.7.3).'
  25164. Such an object is normally accessed by pointers and used for
  25165. accessing hardware. In most expressions, it is intuitively obvious
  25166. what is a read and what is a write. For example
  25167. volatile int *dst = SOMEVALUE;
  25168. volatile int *src = SOMEOTHERVALUE;
  25169. *dst = *src;
  25170. will cause a read of the volatile object pointed to by SRC and
  25171. store the value into the volatile object pointed to by DST. There
  25172. is no guarantee that these reads and writes are atomic, especially
  25173. for objects larger than 'int'.
  25174. However, if the volatile storage is not being modified, and the
  25175. value of the volatile storage is not used, then the situation is
  25176. less obvious. For example
  25177. volatile int *src = SOMEVALUE;
  25178. *src;
  25179. According to the C standard, such an expression is an rvalue whose
  25180. type is the unqualified version of its original type, i.e. 'int'.
  25181. Whether GCC interprets this as a read of the volatile object being
  25182. pointed to or only as a request to evaluate the expression for its
  25183. side effects depends on this type.
  25184. If it is a scalar type, or on most targets an aggregate type whose
  25185. only member object is of a scalar type, or a union type whose
  25186. member objects are of scalar types, the expression is interpreted
  25187. by GCC as a read of the volatile object; in the other cases, the
  25188. expression is only evaluated for its side effects.
  25189. When an object of an aggregate type, with the same size and
  25190. alignment as a scalar type 'S', is the subject of a volatile access
  25191. by an assignment expression or an atomic function, the access to it
  25192. is performed as if the object's declared type were 'volatile S'.
  25193. 
  25194. File: gcc.info, Node: Declarators implementation, Next: Statements implementation, Prev: Qualifiers implementation, Up: C Implementation
  25195. 4.11 Declarators
  25196. ================
  25197. * 'The maximum number of declarators that may modify an arithmetic,
  25198. structure or union type (C90 6.5.4).'
  25199. GCC is only limited by available memory.
  25200. 
  25201. File: gcc.info, Node: Statements implementation, Next: Preprocessing directives implementation, Prev: Declarators implementation, Up: C Implementation
  25202. 4.12 Statements
  25203. ===============
  25204. * 'The maximum number of 'case' values in a 'switch' statement (C90
  25205. 6.6.4.2).'
  25206. GCC is only limited by available memory.
  25207. 
  25208. File: gcc.info, Node: Preprocessing directives implementation, Next: Library functions implementation, Prev: Statements implementation, Up: C Implementation
  25209. 4.13 Preprocessing Directives
  25210. =============================
  25211. *Note Implementation-defined behavior: (cpp)Implementation-defined
  25212. behavior, for details of these aspects of implementation-defined
  25213. behavior.
  25214. * 'The locations within '#pragma' directives where header name
  25215. preprocessing tokens are recognized (C11 6.4, C11 6.4.7).'
  25216. * 'How sequences in both forms of header names are mapped to headers
  25217. or external source file names (C90 6.1.7, C99 and C11 6.4.7).'
  25218. * 'Whether the value of a character constant in a constant expression
  25219. that controls conditional inclusion matches the value of the same
  25220. character constant in the execution character set (C90 6.8.1, C99
  25221. and C11 6.10.1).'
  25222. * 'Whether the value of a single-character character constant in a
  25223. constant expression that controls conditional inclusion may have a
  25224. negative value (C90 6.8.1, C99 and C11 6.10.1).'
  25225. * 'The places that are searched for an included '<>' delimited
  25226. header, and how the places are specified or the header is
  25227. identified (C90 6.8.2, C99 and C11 6.10.2).'
  25228. * 'How the named source file is searched for in an included '""'
  25229. delimited header (C90 6.8.2, C99 and C11 6.10.2).'
  25230. * 'The method by which preprocessing tokens (possibly resulting from
  25231. macro expansion) in a '#include' directive are combined into a
  25232. header name (C90 6.8.2, C99 and C11 6.10.2).'
  25233. * 'The nesting limit for '#include' processing (C90 6.8.2, C99 and
  25234. C11 6.10.2).'
  25235. * 'Whether the '#' operator inserts a '\' character before the '\'
  25236. character that begins a universal character name in a character
  25237. constant or string literal (C99 and C11 6.10.3.2).'
  25238. * 'The behavior on each recognized non-'STDC #pragma' directive (C90
  25239. 6.8.6, C99 and C11 6.10.6).'
  25240. *Note Pragmas: (cpp)Pragmas, for details of pragmas accepted by GCC
  25241. on all targets. *Note Pragmas Accepted by GCC: Pragmas, for
  25242. details of target-specific pragmas.
  25243. * 'The definitions for '__DATE__' and '__TIME__' when respectively,
  25244. the date and time of translation are not available (C90 6.8.8, C99
  25245. 6.10.8, C11 6.10.8.1).'
  25246. 
  25247. File: gcc.info, Node: Library functions implementation, Next: Architecture implementation, Prev: Preprocessing directives implementation, Up: C Implementation
  25248. 4.14 Library Functions
  25249. ======================
  25250. The behavior of most of these points are dependent on the implementation
  25251. of the C library, and are not defined by GCC itself.
  25252. * 'The null pointer constant to which the macro 'NULL' expands (C90
  25253. 7.1.6, C99 7.17, C11 7.19).'
  25254. In '<stddef.h>', 'NULL' expands to '((void *)0)'. GCC does not
  25255. provide the other headers which define 'NULL' and some library
  25256. implementations may use other definitions in those headers.
  25257. 
  25258. File: gcc.info, Node: Architecture implementation, Next: Locale-specific behavior implementation, Prev: Library functions implementation, Up: C Implementation
  25259. 4.15 Architecture
  25260. =================
  25261. * 'The values or expressions assigned to the macros specified in the
  25262. headers '<float.h>', '<limits.h>', and '<stdint.h>' (C90, C99 and
  25263. C11 5.2.4.2, C99 7.18.2, C99 7.18.3, C11 7.20.2, C11 7.20.3).'
  25264. Determined by ABI.
  25265. * 'The result of attempting to indirectly access an object with
  25266. automatic or thread storage duration from a thread other than the
  25267. one with which it is associated (C11 6.2.4).'
  25268. Such accesses are supported, subject to the same requirements for
  25269. synchronization for concurrent accesses as for concurrent accesses
  25270. to any object.
  25271. * 'The number, order, and encoding of bytes in any object (when not
  25272. explicitly specified in this International Standard) (C99 and C11
  25273. 6.2.6.1).'
  25274. Determined by ABI.
  25275. * 'Whether any extended alignments are supported and the contexts in
  25276. which they are supported (C11 6.2.8).'
  25277. Extended alignments up to 2^{28} (bytes) are supported for objects
  25278. of automatic storage duration. Alignments supported for objects of
  25279. static and thread storage duration are determined by the ABI.
  25280. * 'Valid alignment values other than those returned by an _Alignof
  25281. expression for fundamental types, if any (C11 6.2.8).'
  25282. Valid alignments are powers of 2 up to and including 2^{28}.
  25283. * 'The value of the result of the 'sizeof' and '_Alignof' operators
  25284. (C90 6.3.3.4, C99 and C11 6.5.3.4).'
  25285. Determined by ABI.
  25286. 
  25287. File: gcc.info, Node: Locale-specific behavior implementation, Prev: Architecture implementation, Up: C Implementation
  25288. 4.16 Locale-Specific Behavior
  25289. =============================
  25290. The behavior of these points are dependent on the implementation of the
  25291. C library, and are not defined by GCC itself.
  25292. 
  25293. File: gcc.info, Node: C++ Implementation, Next: C Extensions, Prev: C Implementation, Up: Top
  25294. 5 C++ Implementation-Defined Behavior
  25295. *************************************
  25296. A conforming implementation of ISO C++ is required to document its
  25297. choice of behavior in each of the areas that are designated
  25298. "implementation defined". The following lists all such areas, along
  25299. with the section numbers from the ISO/IEC 14882:1998 and ISO/IEC
  25300. 14882:2003 standards. Some areas are only implementation-defined in one
  25301. version of the standard.
  25302. Some choices depend on the externally determined ABI for the platform
  25303. (including standard character encodings) which GCC follows; these are
  25304. listed as "determined by ABI" below. *Note Binary Compatibility:
  25305. Compatibility, and <http://gcc.gnu.org/readings.html>. Some choices are
  25306. documented in the preprocessor manual. *Note Implementation-defined
  25307. behavior: (cpp)Implementation-defined behavior. Some choices are
  25308. documented in the corresponding document for the C language. *Note C
  25309. Implementation::. Some choices are made by the library and operating
  25310. system (or other environment when compiling for a freestanding
  25311. environment); refer to their documentation for details.
  25312. * Menu:
  25313. * Conditionally-supported behavior::
  25314. * Exception handling::
  25315. 
  25316. File: gcc.info, Node: Conditionally-supported behavior, Next: Exception handling, Up: C++ Implementation
  25317. 5.1 Conditionally-Supported Behavior
  25318. ====================================
  25319. 'Each implementation shall include documentation that identifies all
  25320. conditionally-supported constructs that it does not support (C++0x
  25321. 1.4).'
  25322. * 'Whether an argument of class type with a non-trivial copy
  25323. constructor or destructor can be passed to ... (C++0x 5.2.2).'
  25324. Such argument passing is supported, using the same
  25325. pass-by-invisible-reference approach used for normal function
  25326. arguments of such types.
  25327. 
  25328. File: gcc.info, Node: Exception handling, Prev: Conditionally-supported behavior, Up: C++ Implementation
  25329. 5.2 Exception Handling
  25330. ======================
  25331. * 'In the situation where no matching handler is found, it is
  25332. implementation-defined whether or not the stack is unwound before
  25333. std::terminate() is called (C++98 15.5.1).'
  25334. The stack is not unwound before std::terminate is called.
  25335. c Copyright (C) 1988-2021 Free Software Foundation, Inc.
  25336. 
  25337. File: gcc.info, Node: C Extensions, Next: C++ Extensions, Prev: C++ Implementation, Up: Top
  25338. 6 Extensions to the C Language Family
  25339. *************************************
  25340. GNU C provides several language features not found in ISO standard C.
  25341. (The '-pedantic' option directs GCC to print a warning message if any of
  25342. these features is used.) To test for the availability of these features
  25343. in conditional compilation, check for a predefined macro '__GNUC__',
  25344. which is always defined under GCC.
  25345. These extensions are available in C and Objective-C. Most of them are
  25346. also available in C++. *Note Extensions to the C++ Language: C++
  25347. Extensions, for extensions that apply _only_ to C++.
  25348. Some features that are in ISO C99 but not C90 or C++ are also, as
  25349. extensions, accepted by GCC in C90 mode and in C++.
  25350. * Menu:
  25351. * Statement Exprs:: Putting statements and declarations inside expressions.
  25352. * Local Labels:: Labels local to a block.
  25353. * Labels as Values:: Getting pointers to labels, and computed gotos.
  25354. * Nested Functions:: Nested function in GNU C.
  25355. * Nonlocal Gotos:: Nonlocal gotos.
  25356. * Constructing Calls:: Dispatching a call to another function.
  25357. * Typeof:: 'typeof': referring to the type of an expression.
  25358. * Conditionals:: Omitting the middle operand of a '?:' expression.
  25359. * __int128:: 128-bit integers--'__int128'.
  25360. * Long Long:: Double-word integers--'long long int'.
  25361. * Complex:: Data types for complex numbers.
  25362. * Floating Types:: Additional Floating Types.
  25363. * Half-Precision:: Half-Precision Floating Point.
  25364. * Decimal Float:: Decimal Floating Types.
  25365. * Hex Floats:: Hexadecimal floating-point constants.
  25366. * Fixed-Point:: Fixed-Point Types.
  25367. * Named Address Spaces::Named address spaces.
  25368. * Zero Length:: Zero-length arrays.
  25369. * Empty Structures:: Structures with no members.
  25370. * Variable Length:: Arrays whose length is computed at run time.
  25371. * Variadic Macros:: Macros with a variable number of arguments.
  25372. * Escaped Newlines:: Slightly looser rules for escaped newlines.
  25373. * Subscripting:: Any array can be subscripted, even if not an lvalue.
  25374. * Pointer Arith:: Arithmetic on 'void'-pointers and function pointers.
  25375. * Variadic Pointer Args:: Pointer arguments to variadic functions.
  25376. * Pointers to Arrays:: Pointers to arrays with qualifiers work as expected.
  25377. * Initializers:: Non-constant initializers.
  25378. * Compound Literals:: Compound literals give structures, unions
  25379. or arrays as values.
  25380. * Designated Inits:: Labeling elements of initializers.
  25381. * Case Ranges:: 'case 1 ... 9' and such.
  25382. * Cast to Union:: Casting to union type from any member of the union.
  25383. * Mixed Labels and Declarations:: Mixing declarations, labels and code.
  25384. * Function Attributes:: Declaring that functions have no side effects,
  25385. or that they can never return.
  25386. * Variable Attributes:: Specifying attributes of variables.
  25387. * Type Attributes:: Specifying attributes of types.
  25388. * Label Attributes:: Specifying attributes on labels.
  25389. * Enumerator Attributes:: Specifying attributes on enumerators.
  25390. * Statement Attributes:: Specifying attributes on statements.
  25391. * Attribute Syntax:: Formal syntax for attributes.
  25392. * Function Prototypes:: Prototype declarations and old-style definitions.
  25393. * C++ Comments:: C++ comments are recognized.
  25394. * Dollar Signs:: Dollar sign is allowed in identifiers.
  25395. * Character Escapes:: '\e' stands for the character <ESC>.
  25396. * Alignment:: Determining the alignment of a function, type or variable.
  25397. * Inline:: Defining inline functions (as fast as macros).
  25398. * Volatiles:: What constitutes an access to a volatile object.
  25399. * Using Assembly Language with C:: Instructions and extensions for interfacing C with assembler.
  25400. * Alternate Keywords:: '__const__', '__asm__', etc., for header files.
  25401. * Incomplete Enums:: 'enum foo;', with details to follow.
  25402. * Function Names:: Printable strings which are the name of the current
  25403. function.
  25404. * Return Address:: Getting the return or frame address of a function.
  25405. * Vector Extensions:: Using vector instructions through built-in functions.
  25406. * Offsetof:: Special syntax for implementing 'offsetof'.
  25407. * __sync Builtins:: Legacy built-in functions for atomic memory access.
  25408. * __atomic Builtins:: Atomic built-in functions with memory model.
  25409. * Integer Overflow Builtins:: Built-in functions to perform arithmetics and
  25410. arithmetic overflow checking.
  25411. * x86 specific memory model extensions for transactional memory:: x86 memory models.
  25412. * Object Size Checking:: Built-in functions for limited buffer overflow
  25413. checking.
  25414. * Other Builtins:: Other built-in functions.
  25415. * Target Builtins:: Built-in functions specific to particular targets.
  25416. * Target Format Checks:: Format checks specific to particular targets.
  25417. * Pragmas:: Pragmas accepted by GCC.
  25418. * Unnamed Fields:: Unnamed struct/union fields within structs/unions.
  25419. * Thread-Local:: Per-thread variables.
  25420. * Binary constants:: Binary constants using the '0b' prefix.
  25421. 
  25422. File: gcc.info, Node: Statement Exprs, Next: Local Labels, Up: C Extensions
  25423. 6.1 Statements and Declarations in Expressions
  25424. ==============================================
  25425. A compound statement enclosed in parentheses may appear as an expression
  25426. in GNU C. This allows you to use loops, switches, and local variables
  25427. within an expression.
  25428. Recall that a compound statement is a sequence of statements surrounded
  25429. by braces; in this construct, parentheses go around the braces. For
  25430. example:
  25431. ({ int y = foo (); int z;
  25432. if (y > 0) z = y;
  25433. else z = - y;
  25434. z; })
  25435. is a valid (though slightly more complex than necessary) expression for
  25436. the absolute value of 'foo ()'.
  25437. The last thing in the compound statement should be an expression
  25438. followed by a semicolon; the value of this subexpression serves as the
  25439. value of the entire construct. (If you use some other kind of statement
  25440. last within the braces, the construct has type 'void', and thus
  25441. effectively no value.)
  25442. This feature is especially useful in making macro definitions "safe"
  25443. (so that they evaluate each operand exactly once). For example, the
  25444. "maximum" function is commonly defined as a macro in standard C as
  25445. follows:
  25446. #define max(a,b) ((a) > (b) ? (a) : (b))
  25447. But this definition computes either A or B twice, with bad results if
  25448. the operand has side effects. In GNU C, if you know the type of the
  25449. operands (here taken as 'int'), you can avoid this problem by defining
  25450. the macro as follows:
  25451. #define maxint(a,b) \
  25452. ({int _a = (a), _b = (b); _a > _b ? _a : _b; })
  25453. Note that introducing variable declarations (as we do in 'maxint') can
  25454. cause variable shadowing, so while this example using the 'max' macro
  25455. produces correct results:
  25456. int _a = 1, _b = 2, c;
  25457. c = max (_a, _b);
  25458. this example using maxint will not:
  25459. int _a = 1, _b = 2, c;
  25460. c = maxint (_a, _b);
  25461. This problem may for instance occur when we use this pattern
  25462. recursively, like so:
  25463. #define maxint3(a, b, c) \
  25464. ({int _a = (a), _b = (b), _c = (c); maxint (maxint (_a, _b), _c); })
  25465. Embedded statements are not allowed in constant expressions, such as
  25466. the value of an enumeration constant, the width of a bit-field, or the
  25467. initial value of a static variable.
  25468. If you don't know the type of the operand, you can still do this, but
  25469. you must use 'typeof' or '__auto_type' (*note Typeof::).
  25470. In G++, the result value of a statement expression undergoes array and
  25471. function pointer decay, and is returned by value to the enclosing
  25472. expression. For instance, if 'A' is a class, then
  25473. A a;
  25474. ({a;}).Foo ()
  25475. constructs a temporary 'A' object to hold the result of the statement
  25476. expression, and that is used to invoke 'Foo'. Therefore the 'this'
  25477. pointer observed by 'Foo' is not the address of 'a'.
  25478. In a statement expression, any temporaries created within a statement
  25479. are destroyed at that statement's end. This makes statement expressions
  25480. inside macros slightly different from function calls. In the latter
  25481. case temporaries introduced during argument evaluation are destroyed at
  25482. the end of the statement that includes the function call. In the
  25483. statement expression case they are destroyed during the statement
  25484. expression. For instance,
  25485. #define macro(a) ({__typeof__(a) b = (a); b + 3; })
  25486. template<typename T> T function(T a) { T b = a; return b + 3; }
  25487. void foo ()
  25488. {
  25489. macro (X ());
  25490. function (X ());
  25491. }
  25492. has different places where temporaries are destroyed. For the 'macro'
  25493. case, the temporary 'X' is destroyed just after the initialization of
  25494. 'b'. In the 'function' case that temporary is destroyed when the
  25495. function returns.
  25496. These considerations mean that it is probably a bad idea to use
  25497. statement expressions of this form in header files that are designed to
  25498. work with C++. (Note that some versions of the GNU C Library contained
  25499. header files using statement expressions that lead to precisely this
  25500. bug.)
  25501. Jumping into a statement expression with 'goto' or using a 'switch'
  25502. statement outside the statement expression with a 'case' or 'default'
  25503. label inside the statement expression is not permitted. Jumping into a
  25504. statement expression with a computed 'goto' (*note Labels as Values::)
  25505. has undefined behavior. Jumping out of a statement expression is
  25506. permitted, but if the statement expression is part of a larger
  25507. expression then it is unspecified which other subexpressions of that
  25508. expression have been evaluated except where the language definition
  25509. requires certain subexpressions to be evaluated before or after the
  25510. statement expression. A 'break' or 'continue' statement inside of a
  25511. statement expression used in 'while', 'do' or 'for' loop or 'switch'
  25512. statement condition or 'for' statement init or increment expressions
  25513. jumps to an outer loop or 'switch' statement if any (otherwise it is an
  25514. error), rather than to the loop or 'switch' statement in whose condition
  25515. or init or increment expression it appears. In any case, as with a
  25516. function call, the evaluation of a statement expression is not
  25517. interleaved with the evaluation of other parts of the containing
  25518. expression. For example,
  25519. foo (), (({ bar1 (); goto a; 0; }) + bar2 ()), baz();
  25520. calls 'foo' and 'bar1' and does not call 'baz' but may or may not call
  25521. 'bar2'. If 'bar2' is called, it is called after 'foo' and before
  25522. 'bar1'.
  25523. 
  25524. File: gcc.info, Node: Local Labels, Next: Labels as Values, Prev: Statement Exprs, Up: C Extensions
  25525. 6.2 Locally Declared Labels
  25526. ===========================
  25527. GCC allows you to declare "local labels" in any nested block scope. A
  25528. local label is just like an ordinary label, but you can only reference
  25529. it (with a 'goto' statement, or by taking its address) within the block
  25530. in which it is declared.
  25531. A local label declaration looks like this:
  25532. __label__ LABEL;
  25533. or
  25534. __label__ LABEL1, LABEL2, /* ... */;
  25535. Local label declarations must come at the beginning of the block,
  25536. before any ordinary declarations or statements.
  25537. The label declaration defines the label _name_, but does not define the
  25538. label itself. You must do this in the usual way, with 'LABEL:', within
  25539. the statements of the statement expression.
  25540. The local label feature is useful for complex macros. If a macro
  25541. contains nested loops, a 'goto' can be useful for breaking out of them.
  25542. However, an ordinary label whose scope is the whole function cannot be
  25543. used: if the macro can be expanded several times in one function, the
  25544. label is multiply defined in that function. A local label avoids this
  25545. problem. For example:
  25546. #define SEARCH(value, array, target) \
  25547. do { \
  25548. __label__ found; \
  25549. typeof (target) _SEARCH_target = (target); \
  25550. typeof (*(array)) *_SEARCH_array = (array); \
  25551. int i, j; \
  25552. int value; \
  25553. for (i = 0; i < max; i++) \
  25554. for (j = 0; j < max; j++) \
  25555. if (_SEARCH_array[i][j] == _SEARCH_target) \
  25556. { (value) = i; goto found; } \
  25557. (value) = -1; \
  25558. found:; \
  25559. } while (0)
  25560. This could also be written using a statement expression:
  25561. #define SEARCH(array, target) \
  25562. ({ \
  25563. __label__ found; \
  25564. typeof (target) _SEARCH_target = (target); \
  25565. typeof (*(array)) *_SEARCH_array = (array); \
  25566. int i, j; \
  25567. int value; \
  25568. for (i = 0; i < max; i++) \
  25569. for (j = 0; j < max; j++) \
  25570. if (_SEARCH_array[i][j] == _SEARCH_target) \
  25571. { value = i; goto found; } \
  25572. value = -1; \
  25573. found: \
  25574. value; \
  25575. })
  25576. Local label declarations also make the labels they declare visible to
  25577. nested functions, if there are any. *Note Nested Functions::, for
  25578. details.
  25579. 
  25580. File: gcc.info, Node: Labels as Values, Next: Nested Functions, Prev: Local Labels, Up: C Extensions
  25581. 6.3 Labels as Values
  25582. ====================
  25583. You can get the address of a label defined in the current function (or a
  25584. containing function) with the unary operator '&&'. The value has type
  25585. 'void *'. This value is a constant and can be used wherever a constant
  25586. of that type is valid. For example:
  25587. void *ptr;
  25588. /* ... */
  25589. ptr = &&foo;
  25590. To use these values, you need to be able to jump to one. This is done
  25591. with the computed goto statement(1), 'goto *EXP;'. For example,
  25592. goto *ptr;
  25593. Any expression of type 'void *' is allowed.
  25594. One way of using these constants is in initializing a static array that
  25595. serves as a jump table:
  25596. static void *array[] = { &&foo, &&bar, &&hack };
  25597. Then you can select a label with indexing, like this:
  25598. goto *array[i];
  25599. Note that this does not check whether the subscript is in bounds--array
  25600. indexing in C never does that.
  25601. Such an array of label values serves a purpose much like that of the
  25602. 'switch' statement. The 'switch' statement is cleaner, so use that
  25603. rather than an array unless the problem does not fit a 'switch'
  25604. statement very well.
  25605. Another use of label values is in an interpreter for threaded code.
  25606. The labels within the interpreter function can be stored in the threaded
  25607. code for super-fast dispatching.
  25608. You may not use this mechanism to jump to code in a different function.
  25609. If you do that, totally unpredictable things happen. The best way to
  25610. avoid this is to store the label address only in automatic variables and
  25611. never pass it as an argument.
  25612. An alternate way to write the above example is
  25613. static const int array[] = { &&foo - &&foo, &&bar - &&foo,
  25614. &&hack - &&foo };
  25615. goto *(&&foo + array[i]);
  25616. This is more friendly to code living in shared libraries, as it reduces
  25617. the number of dynamic relocations that are needed, and by consequence,
  25618. allows the data to be read-only. This alternative with label
  25619. differences is not supported for the AVR target, please use the first
  25620. approach for AVR programs.
  25621. The '&&foo' expressions for the same label might have different values
  25622. if the containing function is inlined or cloned. If a program relies on
  25623. them being always the same, '__attribute__((__noinline__,__noclone__))'
  25624. should be used to prevent inlining and cloning. If '&&foo' is used in a
  25625. static variable initializer, inlining and cloning is forbidden.
  25626. ---------- Footnotes ----------
  25627. (1) The analogous feature in Fortran is called an assigned goto, but
  25628. that name seems inappropriate in C, where one can do more than simply
  25629. store label addresses in label variables.
  25630. 
  25631. File: gcc.info, Node: Nested Functions, Next: Nonlocal Gotos, Prev: Labels as Values, Up: C Extensions
  25632. 6.4 Nested Functions
  25633. ====================
  25634. A "nested function" is a function defined inside another function.
  25635. Nested functions are supported as an extension in GNU C, but are not
  25636. supported by GNU C++.
  25637. The nested function's name is local to the block where it is defined.
  25638. For example, here we define a nested function named 'square', and call
  25639. it twice:
  25640. foo (double a, double b)
  25641. {
  25642. double square (double z) { return z * z; }
  25643. return square (a) + square (b);
  25644. }
  25645. The nested function can access all the variables of the containing
  25646. function that are visible at the point of its definition. This is
  25647. called "lexical scoping". For example, here we show a nested function
  25648. which uses an inherited variable named 'offset':
  25649. bar (int *array, int offset, int size)
  25650. {
  25651. int access (int *array, int index)
  25652. { return array[index + offset]; }
  25653. int i;
  25654. /* ... */
  25655. for (i = 0; i < size; i++)
  25656. /* ... */ access (array, i) /* ... */
  25657. }
  25658. Nested function definitions are permitted within functions in the
  25659. places where variable definitions are allowed; that is, in any block,
  25660. mixed with the other declarations and statements in the block.
  25661. It is possible to call the nested function from outside the scope of
  25662. its name by storing its address or passing the address to another
  25663. function:
  25664. hack (int *array, int size)
  25665. {
  25666. void store (int index, int value)
  25667. { array[index] = value; }
  25668. intermediate (store, size);
  25669. }
  25670. Here, the function 'intermediate' receives the address of 'store' as an
  25671. argument. If 'intermediate' calls 'store', the arguments given to
  25672. 'store' are used to store into 'array'. But this technique works only
  25673. so long as the containing function ('hack', in this example) does not
  25674. exit.
  25675. If you try to call the nested function through its address after the
  25676. containing function exits, all hell breaks loose. If you try to call it
  25677. after a containing scope level exits, and if it refers to some of the
  25678. variables that are no longer in scope, you may be lucky, but it's not
  25679. wise to take the risk. If, however, the nested function does not refer
  25680. to anything that has gone out of scope, you should be safe.
  25681. GCC implements taking the address of a nested function using a
  25682. technique called "trampolines". This technique was described in
  25683. 'Lexical Closures for C++' (Thomas M. Breuel, USENIX C++ Conference
  25684. Proceedings, October 17-21, 1988).
  25685. A nested function can jump to a label inherited from a containing
  25686. function, provided the label is explicitly declared in the containing
  25687. function (*note Local Labels::). Such a jump returns instantly to the
  25688. containing function, exiting the nested function that did the 'goto' and
  25689. any intermediate functions as well. Here is an example:
  25690. bar (int *array, int offset, int size)
  25691. {
  25692. __label__ failure;
  25693. int access (int *array, int index)
  25694. {
  25695. if (index > size)
  25696. goto failure;
  25697. return array[index + offset];
  25698. }
  25699. int i;
  25700. /* ... */
  25701. for (i = 0; i < size; i++)
  25702. /* ... */ access (array, i) /* ... */
  25703. /* ... */
  25704. return 0;
  25705. /* Control comes here from 'access'
  25706. if it detects an error. */
  25707. failure:
  25708. return -1;
  25709. }
  25710. A nested function always has no linkage. Declaring one with 'extern'
  25711. or 'static' is erroneous. If you need to declare the nested function
  25712. before its definition, use 'auto' (which is otherwise meaningless for
  25713. function declarations).
  25714. bar (int *array, int offset, int size)
  25715. {
  25716. __label__ failure;
  25717. auto int access (int *, int);
  25718. /* ... */
  25719. int access (int *array, int index)
  25720. {
  25721. if (index > size)
  25722. goto failure;
  25723. return array[index + offset];
  25724. }
  25725. /* ... */
  25726. }
  25727. 
  25728. File: gcc.info, Node: Nonlocal Gotos, Next: Constructing Calls, Prev: Nested Functions, Up: C Extensions
  25729. 6.5 Nonlocal Gotos
  25730. ==================
  25731. GCC provides the built-in functions '__builtin_setjmp' and
  25732. '__builtin_longjmp' which are similar to, but not interchangeable with,
  25733. the C library functions 'setjmp' and 'longjmp'. The built-in versions
  25734. are used internally by GCC's libraries to implement exception handling
  25735. on some targets. You should use the standard C library functions
  25736. declared in '<setjmp.h>' in user code instead of the builtins.
  25737. The built-in versions of these functions use GCC's normal mechanisms to
  25738. save and restore registers using the stack on function entry and exit.
  25739. The jump buffer argument BUF holds only the information needed to
  25740. restore the stack frame, rather than the entire set of saved register
  25741. values.
  25742. An important caveat is that GCC arranges to save and restore only those
  25743. registers known to the specific architecture variant being compiled for.
  25744. This can make '__builtin_setjmp' and '__builtin_longjmp' more efficient
  25745. than their library counterparts in some cases, but it can also cause
  25746. incorrect and mysterious behavior when mixing with code that uses the
  25747. full register set.
  25748. You should declare the jump buffer argument BUF to the built-in
  25749. functions as:
  25750. #include <stdint.h>
  25751. intptr_t BUF[5];
  25752. -- Built-in Function: int __builtin_setjmp (intptr_t *BUF)
  25753. This function saves the current stack context in BUF.
  25754. '__builtin_setjmp' returns 0 when returning directly, and 1 when
  25755. returning from '__builtin_longjmp' using the same BUF.
  25756. -- Built-in Function: void __builtin_longjmp (intptr_t *BUF, int VAL)
  25757. This function restores the stack context in BUF, saved by a
  25758. previous call to '__builtin_setjmp'. After '__builtin_longjmp' is
  25759. finished, the program resumes execution as if the matching
  25760. '__builtin_setjmp' returns the value VAL, which must be 1.
  25761. Because '__builtin_longjmp' depends on the function return
  25762. mechanism to restore the stack context, it cannot be called from
  25763. the same function calling '__builtin_setjmp' to initialize BUF. It
  25764. can only be called from a function called (directly or indirectly)
  25765. from the function calling '__builtin_setjmp'.
  25766. 
  25767. File: gcc.info, Node: Constructing Calls, Next: Typeof, Prev: Nonlocal Gotos, Up: C Extensions
  25768. 6.6 Constructing Function Calls
  25769. ===============================
  25770. Using the built-in functions described below, you can record the
  25771. arguments a function received, and call another function with the same
  25772. arguments, without knowing the number or types of the arguments.
  25773. You can also record the return value of that function call, and later
  25774. return that value, without knowing what data type the function tried to
  25775. return (as long as your caller expects that data type).
  25776. However, these built-in functions may interact badly with some
  25777. sophisticated features or other extensions of the language. It is,
  25778. therefore, not recommended to use them outside very simple functions
  25779. acting as mere forwarders for their arguments.
  25780. -- Built-in Function: void * __builtin_apply_args ()
  25781. This built-in function returns a pointer to data describing how to
  25782. perform a call with the same arguments as are passed to the current
  25783. function.
  25784. The function saves the arg pointer register, structure value
  25785. address, and all registers that might be used to pass arguments to
  25786. a function into a block of memory allocated on the stack. Then it
  25787. returns the address of that block.
  25788. -- Built-in Function: void * __builtin_apply (void (*FUNCTION)(), void
  25789. *ARGUMENTS, size_t SIZE)
  25790. This built-in function invokes FUNCTION with a copy of the
  25791. parameters described by ARGUMENTS and SIZE.
  25792. The value of ARGUMENTS should be the value returned by
  25793. '__builtin_apply_args'. The argument SIZE specifies the size of
  25794. the stack argument data, in bytes.
  25795. This function returns a pointer to data describing how to return
  25796. whatever value is returned by FUNCTION. The data is saved in a
  25797. block of memory allocated on the stack.
  25798. It is not always simple to compute the proper value for SIZE. The
  25799. value is used by '__builtin_apply' to compute the amount of data
  25800. that should be pushed on the stack and copied from the incoming
  25801. argument area.
  25802. -- Built-in Function: void __builtin_return (void *RESULT)
  25803. This built-in function returns the value described by RESULT from
  25804. the containing function. You should specify, for RESULT, a value
  25805. returned by '__builtin_apply'.
  25806. -- Built-in Function: __builtin_va_arg_pack ()
  25807. This built-in function represents all anonymous arguments of an
  25808. inline function. It can be used only in inline functions that are
  25809. always inlined, never compiled as a separate function, such as
  25810. those using '__attribute__ ((__always_inline__))' or '__attribute__
  25811. ((__gnu_inline__))' extern inline functions. It must be only
  25812. passed as last argument to some other function with variable
  25813. arguments. This is useful for writing small wrapper inlines for
  25814. variable argument functions, when using preprocessor macros is
  25815. undesirable. For example:
  25816. extern int myprintf (FILE *f, const char *format, ...);
  25817. extern inline __attribute__ ((__gnu_inline__)) int
  25818. myprintf (FILE *f, const char *format, ...)
  25819. {
  25820. int r = fprintf (f, "myprintf: ");
  25821. if (r < 0)
  25822. return r;
  25823. int s = fprintf (f, format, __builtin_va_arg_pack ());
  25824. if (s < 0)
  25825. return s;
  25826. return r + s;
  25827. }
  25828. -- Built-in Function: size_t __builtin_va_arg_pack_len ()
  25829. This built-in function returns the number of anonymous arguments of
  25830. an inline function. It can be used only in inline functions that
  25831. are always inlined, never compiled as a separate function, such as
  25832. those using '__attribute__ ((__always_inline__))' or '__attribute__
  25833. ((__gnu_inline__))' extern inline functions. For example following
  25834. does link- or run-time checking of open arguments for optimized
  25835. code:
  25836. #ifdef __OPTIMIZE__
  25837. extern inline __attribute__((__gnu_inline__)) int
  25838. myopen (const char *path, int oflag, ...)
  25839. {
  25840. if (__builtin_va_arg_pack_len () > 1)
  25841. warn_open_too_many_arguments ();
  25842. if (__builtin_constant_p (oflag))
  25843. {
  25844. if ((oflag & O_CREAT) != 0 && __builtin_va_arg_pack_len () < 1)
  25845. {
  25846. warn_open_missing_mode ();
  25847. return __open_2 (path, oflag);
  25848. }
  25849. return open (path, oflag, __builtin_va_arg_pack ());
  25850. }
  25851. if (__builtin_va_arg_pack_len () < 1)
  25852. return __open_2 (path, oflag);
  25853. return open (path, oflag, __builtin_va_arg_pack ());
  25854. }
  25855. #endif
  25856. 
  25857. File: gcc.info, Node: Typeof, Next: Conditionals, Prev: Constructing Calls, Up: C Extensions
  25858. 6.7 Referring to a Type with 'typeof'
  25859. =====================================
  25860. Another way to refer to the type of an expression is with 'typeof'. The
  25861. syntax of using of this keyword looks like 'sizeof', but the construct
  25862. acts semantically like a type name defined with 'typedef'.
  25863. There are two ways of writing the argument to 'typeof': with an
  25864. expression or with a type. Here is an example with an expression:
  25865. typeof (x[0](1))
  25866. This assumes that 'x' is an array of pointers to functions; the type
  25867. described is that of the values of the functions.
  25868. Here is an example with a typename as the argument:
  25869. typeof (int *)
  25870. Here the type described is that of pointers to 'int'.
  25871. If you are writing a header file that must work when included in ISO C
  25872. programs, write '__typeof__' instead of 'typeof'. *Note Alternate
  25873. Keywords::.
  25874. A 'typeof' construct can be used anywhere a typedef name can be used.
  25875. For example, you can use it in a declaration, in a cast, or inside of
  25876. 'sizeof' or 'typeof'.
  25877. The operand of 'typeof' is evaluated for its side effects if and only
  25878. if it is an expression of variably modified type or the name of such a
  25879. type.
  25880. 'typeof' is often useful in conjunction with statement expressions
  25881. (*note Statement Exprs::). Here is how the two together can be used to
  25882. define a safe "maximum" macro which operates on any arithmetic type and
  25883. evaluates each of its arguments exactly once:
  25884. #define max(a,b) \
  25885. ({ typeof (a) _a = (a); \
  25886. typeof (b) _b = (b); \
  25887. _a > _b ? _a : _b; })
  25888. The reason for using names that start with underscores for the local
  25889. variables is to avoid conflicts with variable names that occur within
  25890. the expressions that are substituted for 'a' and 'b'. Eventually we
  25891. hope to design a new form of declaration syntax that allows you to
  25892. declare variables whose scopes start only after their initializers; this
  25893. will be a more reliable way to prevent such conflicts.
  25894. Some more examples of the use of 'typeof':
  25895. * This declares 'y' with the type of what 'x' points to.
  25896. typeof (*x) y;
  25897. * This declares 'y' as an array of such values.
  25898. typeof (*x) y[4];
  25899. * This declares 'y' as an array of pointers to characters:
  25900. typeof (typeof (char *)[4]) y;
  25901. It is equivalent to the following traditional C declaration:
  25902. char *y[4];
  25903. To see the meaning of the declaration using 'typeof', and why it
  25904. might be a useful way to write, rewrite it with these macros:
  25905. #define pointer(T) typeof(T *)
  25906. #define array(T, N) typeof(T [N])
  25907. Now the declaration can be rewritten this way:
  25908. array (pointer (char), 4) y;
  25909. Thus, 'array (pointer (char), 4)' is the type of arrays of 4
  25910. pointers to 'char'.
  25911. In GNU C, but not GNU C++, you may also declare the type of a variable
  25912. as '__auto_type'. In that case, the declaration must declare only one
  25913. variable, whose declarator must just be an identifier, the declaration
  25914. must be initialized, and the type of the variable is determined by the
  25915. initializer; the name of the variable is not in scope until after the
  25916. initializer. (In C++, you should use C++11 'auto' for this purpose.)
  25917. Using '__auto_type', the "maximum" macro above could be written as:
  25918. #define max(a,b) \
  25919. ({ __auto_type _a = (a); \
  25920. __auto_type _b = (b); \
  25921. _a > _b ? _a : _b; })
  25922. Using '__auto_type' instead of 'typeof' has two advantages:
  25923. * Each argument to the macro appears only once in the expansion of
  25924. the macro. This prevents the size of the macro expansion growing
  25925. exponentially when calls to such macros are nested inside arguments
  25926. of such macros.
  25927. * If the argument to the macro has variably modified type, it is
  25928. evaluated only once when using '__auto_type', but twice if 'typeof'
  25929. is used.
  25930. 
  25931. File: gcc.info, Node: Conditionals, Next: __int128, Prev: Typeof, Up: C Extensions
  25932. 6.8 Conditionals with Omitted Operands
  25933. ======================================
  25934. The middle operand in a conditional expression may be omitted. Then if
  25935. the first operand is nonzero, its value is the value of the conditional
  25936. expression.
  25937. Therefore, the expression
  25938. x ? : y
  25939. has the value of 'x' if that is nonzero; otherwise, the value of 'y'.
  25940. This example is perfectly equivalent to
  25941. x ? x : y
  25942. In this simple case, the ability to omit the middle operand is not
  25943. especially useful. When it becomes useful is when the first operand
  25944. does, or may (if it is a macro argument), contain a side effect. Then
  25945. repeating the operand in the middle would perform the side effect twice.
  25946. Omitting the middle operand uses the value already computed without the
  25947. undesirable effects of recomputing it.
  25948. 
  25949. File: gcc.info, Node: __int128, Next: Long Long, Prev: Conditionals, Up: C Extensions
  25950. 6.9 128-bit Integers
  25951. ====================
  25952. As an extension the integer scalar type '__int128' is supported for
  25953. targets which have an integer mode wide enough to hold 128 bits. Simply
  25954. write '__int128' for a signed 128-bit integer, or 'unsigned __int128'
  25955. for an unsigned 128-bit integer. There is no support in GCC for
  25956. expressing an integer constant of type '__int128' for targets with 'long
  25957. long' integer less than 128 bits wide.
  25958. 
  25959. File: gcc.info, Node: Long Long, Next: Complex, Prev: __int128, Up: C Extensions
  25960. 6.10 Double-Word Integers
  25961. =========================
  25962. ISO C99 and ISO C++11 support data types for integers that are at least
  25963. 64 bits wide, and as an extension GCC supports them in C90 and C++98
  25964. modes. Simply write 'long long int' for a signed integer, or 'unsigned
  25965. long long int' for an unsigned integer. To make an integer constant of
  25966. type 'long long int', add the suffix 'LL' to the integer. To make an
  25967. integer constant of type 'unsigned long long int', add the suffix 'ULL'
  25968. to the integer.
  25969. You can use these types in arithmetic like any other integer types.
  25970. Addition, subtraction, and bitwise boolean operations on these types are
  25971. open-coded on all types of machines. Multiplication is open-coded if
  25972. the machine supports a fullword-to-doubleword widening multiply
  25973. instruction. Division and shifts are open-coded only on machines that
  25974. provide special support. The operations that are not open-coded use
  25975. special library routines that come with GCC.
  25976. There may be pitfalls when you use 'long long' types for function
  25977. arguments without function prototypes. If a function expects type 'int'
  25978. for its argument, and you pass a value of type 'long long int',
  25979. confusion results because the caller and the subroutine disagree about
  25980. the number of bytes for the argument. Likewise, if the function expects
  25981. 'long long int' and you pass 'int'. The best way to avoid such problems
  25982. is to use prototypes.
  25983. 
  25984. File: gcc.info, Node: Complex, Next: Floating Types, Prev: Long Long, Up: C Extensions
  25985. 6.11 Complex Numbers
  25986. ====================
  25987. ISO C99 supports complex floating data types, and as an extension GCC
  25988. supports them in C90 mode and in C++. GCC also supports complex integer
  25989. data types which are not part of ISO C99. You can declare complex types
  25990. using the keyword '_Complex'. As an extension, the older GNU keyword
  25991. '__complex__' is also supported.
  25992. For example, '_Complex double x;' declares 'x' as a variable whose real
  25993. part and imaginary part are both of type 'double'. '_Complex short int
  25994. y;' declares 'y' to have real and imaginary parts of type 'short int';
  25995. this is not likely to be useful, but it shows that the set of complex
  25996. types is complete.
  25997. To write a constant with a complex data type, use the suffix 'i' or 'j'
  25998. (either one; they are equivalent). For example, '2.5fi' has type
  25999. '_Complex float' and '3i' has type '_Complex int'. Such a constant
  26000. always has a pure imaginary value, but you can form any complex value
  26001. you like by adding one to a real constant. This is a GNU extension; if
  26002. you have an ISO C99 conforming C library (such as the GNU C Library),
  26003. and want to construct complex constants of floating type, you should
  26004. include '<complex.h>' and use the macros 'I' or '_Complex_I' instead.
  26005. The ISO C++14 library also defines the 'i' suffix, so C++14 code that
  26006. includes the '<complex>' header cannot use 'i' for the GNU extension.
  26007. The 'j' suffix still has the GNU meaning.
  26008. To extract the real part of a complex-valued expression EXP, write
  26009. '__real__ EXP'. Likewise, use '__imag__' to extract the imaginary part.
  26010. This is a GNU extension; for values of floating type, you should use the
  26011. ISO C99 functions 'crealf', 'creal', 'creall', 'cimagf', 'cimag' and
  26012. 'cimagl', declared in '<complex.h>' and also provided as built-in
  26013. functions by GCC.
  26014. The operator '~' performs complex conjugation when used on a value with
  26015. a complex type. This is a GNU extension; for values of floating type,
  26016. you should use the ISO C99 functions 'conjf', 'conj' and 'conjl',
  26017. declared in '<complex.h>' and also provided as built-in functions by
  26018. GCC.
  26019. GCC can allocate complex automatic variables in a noncontiguous
  26020. fashion; it's even possible for the real part to be in a register while
  26021. the imaginary part is on the stack (or vice versa). Only the DWARF
  26022. debug info format can represent this, so use of DWARF is recommended.
  26023. If you are using the stabs debug info format, GCC describes a
  26024. noncontiguous complex variable as if it were two separate variables of
  26025. noncomplex type. If the variable's actual name is 'foo', the two
  26026. fictitious variables are named 'foo$real' and 'foo$imag'. You can
  26027. examine and set these two fictitious variables with your debugger.
  26028. 
  26029. File: gcc.info, Node: Floating Types, Next: Half-Precision, Prev: Complex, Up: C Extensions
  26030. 6.12 Additional Floating Types
  26031. ==============================
  26032. ISO/IEC TS 18661-3:2015 defines C support for additional floating types
  26033. '_FloatN' and '_FloatNx', and GCC supports these type names; the set of
  26034. types supported depends on the target architecture. These types are not
  26035. supported when compiling C++. Constants with these types use suffixes
  26036. 'fN' or 'FN' and 'fNx' or 'FNx'. These type names can be used together
  26037. with '_Complex' to declare complex types.
  26038. As an extension, GNU C and GNU C++ support additional floating types,
  26039. which are not supported by all targets.
  26040. * '__float128' is available on i386, x86_64, IA-64, and hppa HP-UX,
  26041. as well as on PowerPC GNU/Linux targets that enable the vector
  26042. scalar (VSX) instruction set. '__float128' supports the 128-bit
  26043. floating type. On i386, x86_64, PowerPC, and IA-64 other than
  26044. HP-UX, '__float128' is an alias for '_Float128'. On hppa and IA-64
  26045. HP-UX, '__float128' is an alias for 'long double'.
  26046. * '__float80' is available on the i386, x86_64, and IA-64 targets,
  26047. and supports the 80-bit ('XFmode') floating type. It is an alias
  26048. for the type name '_Float64x' on these targets.
  26049. * '__ibm128' is available on PowerPC targets, and provides access to
  26050. the IBM extended double format which is the current format used for
  26051. 'long double'. When 'long double' transitions to '__float128' on
  26052. PowerPC in the future, '__ibm128' will remain for use in
  26053. conversions between the two types.
  26054. Support for these additional types includes the arithmetic operators:
  26055. add, subtract, multiply, divide; unary arithmetic operators; relational
  26056. operators; equality operators; and conversions to and from integer and
  26057. other floating types. Use a suffix 'w' or 'W' in a literal constant of
  26058. type '__float80' or type '__ibm128'. Use a suffix 'q' or 'Q' for
  26059. '_float128'.
  26060. In order to use '_Float128', '__float128', and '__ibm128' on PowerPC
  26061. Linux systems, you must use the '-mfloat128' option. It is expected in
  26062. future versions of GCC that '_Float128' and '__float128' will be enabled
  26063. automatically.
  26064. The '_Float128' type is supported on all systems where '__float128' is
  26065. supported or where 'long double' has the IEEE binary128 format. The
  26066. '_Float64x' type is supported on all systems where '__float128' is
  26067. supported. The '_Float32' type is supported on all systems supporting
  26068. IEEE binary32; the '_Float64' and '_Float32x' types are supported on all
  26069. systems supporting IEEE binary64. The '_Float16' type is supported on
  26070. AArch64 systems by default, and on ARM systems when the IEEE format for
  26071. 16-bit floating-point types is selected with '-mfp16-format=ieee'. GCC
  26072. does not currently support '_Float128x' on any systems.
  26073. On the i386, x86_64, IA-64, and HP-UX targets, you can declare complex
  26074. types using the corresponding internal complex type, 'XCmode' for
  26075. '__float80' type and 'TCmode' for '__float128' type:
  26076. typedef _Complex float __attribute__((mode(TC))) _Complex128;
  26077. typedef _Complex float __attribute__((mode(XC))) _Complex80;
  26078. On the PowerPC Linux VSX targets, you can declare complex types using
  26079. the corresponding internal complex type, 'KCmode' for '__float128' type
  26080. and 'ICmode' for '__ibm128' type:
  26081. typedef _Complex float __attribute__((mode(KC))) _Complex_float128;
  26082. typedef _Complex float __attribute__((mode(IC))) _Complex_ibm128;
  26083. 
  26084. File: gcc.info, Node: Half-Precision, Next: Decimal Float, Prev: Floating Types, Up: C Extensions
  26085. 6.13 Half-Precision Floating Point
  26086. ==================================
  26087. On ARM and AArch64 targets, GCC supports half-precision (16-bit)
  26088. floating point via the '__fp16' type defined in the ARM C Language
  26089. Extensions. On ARM systems, you must enable this type explicitly with
  26090. the '-mfp16-format' command-line option in order to use it.
  26091. ARM targets support two incompatible representations for half-precision
  26092. floating-point values. You must choose one of the representations and
  26093. use it consistently in your program.
  26094. Specifying '-mfp16-format=ieee' selects the IEEE 754-2008 format. This
  26095. format can represent normalized values in the range of 2^{-14} to 65504.
  26096. There are 11 bits of significand precision, approximately 3 decimal
  26097. digits.
  26098. Specifying '-mfp16-format=alternative' selects the ARM alternative
  26099. format. This representation is similar to the IEEE format, but does not
  26100. support infinities or NaNs. Instead, the range of exponents is
  26101. extended, so that this format can represent normalized values in the
  26102. range of 2^{-14} to 131008.
  26103. The GCC port for AArch64 only supports the IEEE 754-2008 format, and
  26104. does not require use of the '-mfp16-format' command-line option.
  26105. The '__fp16' type may only be used as an argument to intrinsics defined
  26106. in '<arm_fp16.h>', or as a storage format. For purposes of arithmetic
  26107. and other operations, '__fp16' values in C or C++ expressions are
  26108. automatically promoted to 'float'.
  26109. The ARM target provides hardware support for conversions between
  26110. '__fp16' and 'float' values as an extension to VFP and NEON (Advanced
  26111. SIMD), and from ARMv8-A provides hardware support for conversions
  26112. between '__fp16' and 'double' values. GCC generates code using these
  26113. hardware instructions if you compile with options to select an FPU that
  26114. provides them; for example, '-mfpu=neon-fp16 -mfloat-abi=softfp', in
  26115. addition to the '-mfp16-format' option to select a half-precision
  26116. format.
  26117. Language-level support for the '__fp16' data type is independent of
  26118. whether GCC generates code using hardware floating-point instructions.
  26119. In cases where hardware support is not specified, GCC implements
  26120. conversions between '__fp16' and other types as library calls.
  26121. It is recommended that portable code use the '_Float16' type defined by
  26122. ISO/IEC TS 18661-3:2015. *Note Floating Types::.
  26123. 
  26124. File: gcc.info, Node: Decimal Float, Next: Hex Floats, Prev: Half-Precision, Up: C Extensions
  26125. 6.14 Decimal Floating Types
  26126. ===========================
  26127. As an extension, GNU C supports decimal floating types as defined in the
  26128. N1312 draft of ISO/IEC WDTR24732. Support for decimal floating types in
  26129. GCC will evolve as the draft technical report changes. Calling
  26130. conventions for any target might also change. Not all targets support
  26131. decimal floating types.
  26132. The decimal floating types are '_Decimal32', '_Decimal64', and
  26133. '_Decimal128'. They use a radix of ten, unlike the floating types
  26134. 'float', 'double', and 'long double' whose radix is not specified by the
  26135. C standard but is usually two.
  26136. Support for decimal floating types includes the arithmetic operators
  26137. add, subtract, multiply, divide; unary arithmetic operators; relational
  26138. operators; equality operators; and conversions to and from integer and
  26139. other floating types. Use a suffix 'df' or 'DF' in a literal constant
  26140. of type '_Decimal32', 'dd' or 'DD' for '_Decimal64', and 'dl' or 'DL'
  26141. for '_Decimal128'.
  26142. GCC support of decimal float as specified by the draft technical report
  26143. is incomplete:
  26144. * When the value of a decimal floating type cannot be represented in
  26145. the integer type to which it is being converted, the result is
  26146. undefined rather than the result value specified by the draft
  26147. technical report.
  26148. * GCC does not provide the C library functionality associated with
  26149. 'math.h', 'fenv.h', 'stdio.h', 'stdlib.h', and 'wchar.h', which
  26150. must come from a separate C library implementation. Because of
  26151. this the GNU C compiler does not define macro '__STDC_DEC_FP__' to
  26152. indicate that the implementation conforms to the technical report.
  26153. Types '_Decimal32', '_Decimal64', and '_Decimal128' are supported by
  26154. the DWARF debug information format.
  26155. 
  26156. File: gcc.info, Node: Hex Floats, Next: Fixed-Point, Prev: Decimal Float, Up: C Extensions
  26157. 6.15 Hex Floats
  26158. ===============
  26159. ISO C99 and ISO C++17 support floating-point numbers written not only in
  26160. the usual decimal notation, such as '1.55e1', but also numbers such as
  26161. '0x1.fp3' written in hexadecimal format. As a GNU extension, GCC
  26162. supports this in C90 mode (except in some cases when strictly
  26163. conforming) and in C++98, C++11 and C++14 modes. In that format the
  26164. '0x' hex introducer and the 'p' or 'P' exponent field are mandatory.
  26165. The exponent is a decimal number that indicates the power of 2 by which
  26166. the significant part is multiplied. Thus '0x1.f' is 1 15/16, 'p3'
  26167. multiplies it by 8, and the value of '0x1.fp3' is the same as '1.55e1'.
  26168. Unlike for floating-point numbers in the decimal notation the exponent
  26169. is always required in the hexadecimal notation. Otherwise the compiler
  26170. would not be able to resolve the ambiguity of, e.g., '0x1.f'. This
  26171. could mean '1.0f' or '1.9375' since 'f' is also the extension for
  26172. floating-point constants of type 'float'.
  26173. 
  26174. File: gcc.info, Node: Fixed-Point, Next: Named Address Spaces, Prev: Hex Floats, Up: C Extensions
  26175. 6.16 Fixed-Point Types
  26176. ======================
  26177. As an extension, GNU C supports fixed-point types as defined in the
  26178. N1169 draft of ISO/IEC DTR 18037. Support for fixed-point types in GCC
  26179. will evolve as the draft technical report changes. Calling conventions
  26180. for any target might also change. Not all targets support fixed-point
  26181. types.
  26182. The fixed-point types are 'short _Fract', '_Fract', 'long _Fract',
  26183. 'long long _Fract', 'unsigned short _Fract', 'unsigned _Fract',
  26184. 'unsigned long _Fract', 'unsigned long long _Fract', '_Sat short
  26185. _Fract', '_Sat _Fract', '_Sat long _Fract', '_Sat long long _Fract',
  26186. '_Sat unsigned short _Fract', '_Sat unsigned _Fract', '_Sat unsigned
  26187. long _Fract', '_Sat unsigned long long _Fract', 'short _Accum',
  26188. '_Accum', 'long _Accum', 'long long _Accum', 'unsigned short _Accum',
  26189. 'unsigned _Accum', 'unsigned long _Accum', 'unsigned long long _Accum',
  26190. '_Sat short _Accum', '_Sat _Accum', '_Sat long _Accum', '_Sat long long
  26191. _Accum', '_Sat unsigned short _Accum', '_Sat unsigned _Accum', '_Sat
  26192. unsigned long _Accum', '_Sat unsigned long long _Accum'.
  26193. Fixed-point data values contain fractional and optional integral parts.
  26194. The format of fixed-point data varies and depends on the target machine.
  26195. Support for fixed-point types includes:
  26196. * prefix and postfix increment and decrement operators ('++', '--')
  26197. * unary arithmetic operators ('+', '-', '!')
  26198. * binary arithmetic operators ('+', '-', '*', '/')
  26199. * binary shift operators ('<<', '>>')
  26200. * relational operators ('<', '<=', '>=', '>')
  26201. * equality operators ('==', '!=')
  26202. * assignment operators ('+=', '-=', '*=', '/=', '<<=', '>>=')
  26203. * conversions to and from integer, floating-point, or fixed-point
  26204. types
  26205. Use a suffix in a fixed-point literal constant:
  26206. * 'hr' or 'HR' for 'short _Fract' and '_Sat short _Fract'
  26207. * 'r' or 'R' for '_Fract' and '_Sat _Fract'
  26208. * 'lr' or 'LR' for 'long _Fract' and '_Sat long _Fract'
  26209. * 'llr' or 'LLR' for 'long long _Fract' and '_Sat long long _Fract'
  26210. * 'uhr' or 'UHR' for 'unsigned short _Fract' and '_Sat unsigned short
  26211. _Fract'
  26212. * 'ur' or 'UR' for 'unsigned _Fract' and '_Sat unsigned _Fract'
  26213. * 'ulr' or 'ULR' for 'unsigned long _Fract' and '_Sat unsigned long
  26214. _Fract'
  26215. * 'ullr' or 'ULLR' for 'unsigned long long _Fract' and '_Sat unsigned
  26216. long long _Fract'
  26217. * 'hk' or 'HK' for 'short _Accum' and '_Sat short _Accum'
  26218. * 'k' or 'K' for '_Accum' and '_Sat _Accum'
  26219. * 'lk' or 'LK' for 'long _Accum' and '_Sat long _Accum'
  26220. * 'llk' or 'LLK' for 'long long _Accum' and '_Sat long long _Accum'
  26221. * 'uhk' or 'UHK' for 'unsigned short _Accum' and '_Sat unsigned short
  26222. _Accum'
  26223. * 'uk' or 'UK' for 'unsigned _Accum' and '_Sat unsigned _Accum'
  26224. * 'ulk' or 'ULK' for 'unsigned long _Accum' and '_Sat unsigned long
  26225. _Accum'
  26226. * 'ullk' or 'ULLK' for 'unsigned long long _Accum' and '_Sat unsigned
  26227. long long _Accum'
  26228. GCC support of fixed-point types as specified by the draft technical
  26229. report is incomplete:
  26230. * Pragmas to control overflow and rounding behaviors are not
  26231. implemented.
  26232. Fixed-point types are supported by the DWARF debug information format.
  26233. 
  26234. File: gcc.info, Node: Named Address Spaces, Next: Zero Length, Prev: Fixed-Point, Up: C Extensions
  26235. 6.17 Named Address Spaces
  26236. =========================
  26237. As an extension, GNU C supports named address spaces as defined in the
  26238. N1275 draft of ISO/IEC DTR 18037. Support for named address spaces in
  26239. GCC will evolve as the draft technical report changes. Calling
  26240. conventions for any target might also change. At present, only the AVR,
  26241. M32C, RL78, and x86 targets support address spaces other than the
  26242. generic address space.
  26243. Address space identifiers may be used exactly like any other C type
  26244. qualifier (e.g., 'const' or 'volatile'). See the N1275 document for
  26245. more details.
  26246. 6.17.1 AVR Named Address Spaces
  26247. -------------------------------
  26248. On the AVR target, there are several address spaces that can be used in
  26249. order to put read-only data into the flash memory and access that data
  26250. by means of the special instructions 'LPM' or 'ELPM' needed to read from
  26251. flash.
  26252. Devices belonging to 'avrtiny' and 'avrxmega3' can access flash memory
  26253. by means of 'LD*' instructions because the flash memory is mapped into
  26254. the RAM address space. There is _no need_ for language extensions like
  26255. '__flash' or attribute *note 'progmem': AVR Variable Attributes. The
  26256. default linker description files for these devices cater for that
  26257. feature and '.rodata' stays in flash: The compiler just generates 'LD*'
  26258. instructions, and the linker script adds core specific offsets to all
  26259. '.rodata' symbols: '0x4000' in the case of 'avrtiny' and '0x8000' in the
  26260. case of 'avrxmega3'. See *note AVR Options:: for a list of respective
  26261. devices.
  26262. For devices not in 'avrtiny' or 'avrxmega3', any data including
  26263. read-only data is located in RAM (the generic address space) because
  26264. flash memory is not visible in the RAM address space. In order to
  26265. locate read-only data in flash memory _and_ to generate the right
  26266. instructions to access this data without using (inline) assembler code,
  26267. special address spaces are needed.
  26268. '__flash'
  26269. The '__flash' qualifier locates data in the '.progmem.data'
  26270. section. Data is read using the 'LPM' instruction. Pointers to
  26271. this address space are 16 bits wide.
  26272. '__flash1'
  26273. '__flash2'
  26274. '__flash3'
  26275. '__flash4'
  26276. '__flash5'
  26277. These are 16-bit address spaces locating data in section
  26278. '.progmemN.data' where N refers to address space '__flashN'. The
  26279. compiler sets the 'RAMPZ' segment register appropriately before
  26280. reading data by means of the 'ELPM' instruction.
  26281. '__memx'
  26282. This is a 24-bit address space that linearizes flash and RAM: If
  26283. the high bit of the address is set, data is read from RAM using the
  26284. lower two bytes as RAM address. If the high bit of the address is
  26285. clear, data is read from flash with 'RAMPZ' set according to the
  26286. high byte of the address. *Note '__builtin_avr_flash_segment': AVR
  26287. Built-in Functions.
  26288. Objects in this address space are located in '.progmemx.data'.
  26289. Example
  26290. char my_read (const __flash char ** p)
  26291. {
  26292. /* p is a pointer to RAM that points to a pointer to flash.
  26293. The first indirection of p reads that flash pointer
  26294. from RAM and the second indirection reads a char from this
  26295. flash address. */
  26296. return **p;
  26297. }
  26298. /* Locate array[] in flash memory */
  26299. const __flash int array[] = { 3, 5, 7, 11, 13, 17, 19 };
  26300. int i = 1;
  26301. int main (void)
  26302. {
  26303. /* Return 17 by reading from flash memory */
  26304. return array[array[i]];
  26305. }
  26306. For each named address space supported by avr-gcc there is an equally
  26307. named but uppercase built-in macro defined. The purpose is to
  26308. facilitate testing if respective address space support is available or
  26309. not:
  26310. #ifdef __FLASH
  26311. const __flash int var = 1;
  26312. int read_var (void)
  26313. {
  26314. return var;
  26315. }
  26316. #else
  26317. #include <avr/pgmspace.h> /* From AVR-LibC */
  26318. const int var PROGMEM = 1;
  26319. int read_var (void)
  26320. {
  26321. return (int) pgm_read_word (&var);
  26322. }
  26323. #endif /* __FLASH */
  26324. Notice that attribute *note 'progmem': AVR Variable Attributes. locates
  26325. data in flash but accesses to these data read from generic address
  26326. space, i.e. from RAM, so that you need special accessors like
  26327. 'pgm_read_byte' from AVR-LibC (http://nongnu.org/avr-libc/user-manual/)
  26328. together with attribute 'progmem'.
  26329. Limitations and caveats
  26330. * Reading across the 64 KiB section boundary of the '__flash' or
  26331. '__flashN' address spaces shows undefined behavior. The only
  26332. address space that supports reading across the 64 KiB flash segment
  26333. boundaries is '__memx'.
  26334. * If you use one of the '__flashN' address spaces you must arrange
  26335. your linker script to locate the '.progmemN.data' sections
  26336. according to your needs.
  26337. * Any data or pointers to the non-generic address spaces must be
  26338. qualified as 'const', i.e. as read-only data. This still applies
  26339. if the data in one of these address spaces like software version
  26340. number or calibration lookup table are intended to be changed after
  26341. load time by, say, a boot loader. In this case the right
  26342. qualification is 'const' 'volatile' so that the compiler must not
  26343. optimize away known values or insert them as immediates into
  26344. operands of instructions.
  26345. * The following code initializes a variable 'pfoo' located in static
  26346. storage with a 24-bit address:
  26347. extern const __memx char foo;
  26348. const __memx void *pfoo = &foo;
  26349. * On the reduced Tiny devices like ATtiny40, no address spaces are
  26350. supported. Just use vanilla C / C++ code without overhead as
  26351. outlined above. Attribute 'progmem' is supported but works
  26352. differently, see *note AVR Variable Attributes::.
  26353. 6.17.2 M32C Named Address Spaces
  26354. --------------------------------
  26355. On the M32C target, with the R8C and M16C CPU variants, variables
  26356. qualified with '__far' are accessed using 32-bit addresses in order to
  26357. access memory beyond the first 64 Ki bytes. If '__far' is used with the
  26358. M32CM or M32C CPU variants, it has no effect.
  26359. 6.17.3 RL78 Named Address Spaces
  26360. --------------------------------
  26361. On the RL78 target, variables qualified with '__far' are accessed with
  26362. 32-bit pointers (20-bit addresses) rather than the default 16-bit
  26363. addresses. Non-far variables are assumed to appear in the topmost
  26364. 64 KiB of the address space.
  26365. 6.17.4 x86 Named Address Spaces
  26366. -------------------------------
  26367. On the x86 target, variables may be declared as being relative to the
  26368. '%fs' or '%gs' segments.
  26369. '__seg_fs'
  26370. '__seg_gs'
  26371. The object is accessed with the respective segment override prefix.
  26372. The respective segment base must be set via some method specific to
  26373. the operating system. Rather than require an expensive system call
  26374. to retrieve the segment base, these address spaces are not
  26375. considered to be subspaces of the generic (flat) address space.
  26376. This means that explicit casts are required to convert pointers
  26377. between these address spaces and the generic address space. In
  26378. practice the application should cast to 'uintptr_t' and apply the
  26379. segment base offset that it installed previously.
  26380. The preprocessor symbols '__SEG_FS' and '__SEG_GS' are defined when
  26381. these address spaces are supported.
  26382. 
  26383. File: gcc.info, Node: Zero Length, Next: Empty Structures, Prev: Named Address Spaces, Up: C Extensions
  26384. 6.18 Arrays of Length Zero
  26385. ==========================
  26386. Declaring zero-length arrays is allowed in GNU C as an extension. A
  26387. zero-length array can be useful as the last element of a structure that
  26388. is really a header for a variable-length object:
  26389. struct line {
  26390. int length;
  26391. char contents[0];
  26392. };
  26393. struct line *thisline = (struct line *)
  26394. malloc (sizeof (struct line) + this_length);
  26395. thisline->length = this_length;
  26396. Although the size of a zero-length array is zero, an array member of
  26397. this kind may increase the size of the enclosing type as a result of
  26398. tail padding. The offset of a zero-length array member from the
  26399. beginning of the enclosing structure is the same as the offset of an
  26400. array with one or more elements of the same type. The alignment of a
  26401. zero-length array is the same as the alignment of its elements.
  26402. Declaring zero-length arrays in other contexts, including as interior
  26403. members of structure objects or as non-member objects, is discouraged.
  26404. Accessing elements of zero-length arrays declared in such contexts is
  26405. undefined and may be diagnosed.
  26406. In the absence of the zero-length array extension, in ISO C90 the
  26407. 'contents' array in the example above would typically be declared to
  26408. have a single element. Unlike a zero-length array which only
  26409. contributes to the size of the enclosing structure for the purposes of
  26410. alignment, a one-element array always occupies at least as much space as
  26411. a single object of the type. Although using one-element arrays this way
  26412. is discouraged, GCC handles accesses to trailing one-element array
  26413. members analogously to zero-length arrays.
  26414. The preferred mechanism to declare variable-length types like 'struct
  26415. line' above is the ISO C99 "flexible array member", with slightly
  26416. different syntax and semantics:
  26417. * Flexible array members are written as 'contents[]' without the '0'.
  26418. * Flexible array members have incomplete type, and so the 'sizeof'
  26419. operator may not be applied. As a quirk of the original
  26420. implementation of zero-length arrays, 'sizeof' evaluates to zero.
  26421. * Flexible array members may only appear as the last member of a
  26422. 'struct' that is otherwise non-empty.
  26423. * A structure containing a flexible array member, or a union
  26424. containing such a structure (possibly recursively), may not be a
  26425. member of a structure or an element of an array. (However, these
  26426. uses are permitted by GCC as extensions.)
  26427. Non-empty initialization of zero-length arrays is treated like any case
  26428. where there are more initializer elements than the array holds, in that
  26429. a suitable warning about "excess elements in array" is given, and the
  26430. excess elements (all of them, in this case) are ignored.
  26431. GCC allows static initialization of flexible array members. This is
  26432. equivalent to defining a new structure containing the original structure
  26433. followed by an array of sufficient size to contain the data. E.g. in
  26434. the following, 'f1' is constructed as if it were declared like 'f2'.
  26435. struct f1 {
  26436. int x; int y[];
  26437. } f1 = { 1, { 2, 3, 4 } };
  26438. struct f2 {
  26439. struct f1 f1; int data[3];
  26440. } f2 = { { 1 }, { 2, 3, 4 } };
  26441. The convenience of this extension is that 'f1' has the desired type,
  26442. eliminating the need to consistently refer to 'f2.f1'.
  26443. This has symmetry with normal static arrays, in that an array of
  26444. unknown size is also written with '[]'.
  26445. Of course, this extension only makes sense if the extra data comes at
  26446. the end of a top-level object, as otherwise we would be overwriting data
  26447. at subsequent offsets. To avoid undue complication and confusion with
  26448. initialization of deeply nested arrays, we simply disallow any non-empty
  26449. initialization except when the structure is the top-level object. For
  26450. example:
  26451. struct foo { int x; int y[]; };
  26452. struct bar { struct foo z; };
  26453. struct foo a = { 1, { 2, 3, 4 } }; // Valid.
  26454. struct bar b = { { 1, { 2, 3, 4 } } }; // Invalid.
  26455. struct bar c = { { 1, { } } }; // Valid.
  26456. struct foo d[1] = { { 1, { 2, 3, 4 } } }; // Invalid.
  26457. 
  26458. File: gcc.info, Node: Empty Structures, Next: Variable Length, Prev: Zero Length, Up: C Extensions
  26459. 6.19 Structures with No Members
  26460. ===============================
  26461. GCC permits a C structure to have no members:
  26462. struct empty {
  26463. };
  26464. The structure has size zero. In C++, empty structures are part of the
  26465. language. G++ treats empty structures as if they had a single member of
  26466. type 'char'.
  26467. 
  26468. File: gcc.info, Node: Variable Length, Next: Variadic Macros, Prev: Empty Structures, Up: C Extensions
  26469. 6.20 Arrays of Variable Length
  26470. ==============================
  26471. Variable-length automatic arrays are allowed in ISO C99, and as an
  26472. extension GCC accepts them in C90 mode and in C++. These arrays are
  26473. declared like any other automatic arrays, but with a length that is not
  26474. a constant expression. The storage is allocated at the point of
  26475. declaration and deallocated when the block scope containing the
  26476. declaration exits. For example:
  26477. FILE *
  26478. concat_fopen (char *s1, char *s2, char *mode)
  26479. {
  26480. char str[strlen (s1) + strlen (s2) + 1];
  26481. strcpy (str, s1);
  26482. strcat (str, s2);
  26483. return fopen (str, mode);
  26484. }
  26485. Jumping or breaking out of the scope of the array name deallocates the
  26486. storage. Jumping into the scope is not allowed; you get an error
  26487. message for it.
  26488. As an extension, GCC accepts variable-length arrays as a member of a
  26489. structure or a union. For example:
  26490. void
  26491. foo (int n)
  26492. {
  26493. struct S { int x[n]; };
  26494. }
  26495. You can use the function 'alloca' to get an effect much like
  26496. variable-length arrays. The function 'alloca' is available in many
  26497. other C implementations (but not in all). On the other hand,
  26498. variable-length arrays are more elegant.
  26499. There are other differences between these two methods. Space allocated
  26500. with 'alloca' exists until the containing _function_ returns. The space
  26501. for a variable-length array is deallocated as soon as the array name's
  26502. scope ends, unless you also use 'alloca' in this scope.
  26503. You can also use variable-length arrays as arguments to functions:
  26504. struct entry
  26505. tester (int len, char data[len][len])
  26506. {
  26507. /* ... */
  26508. }
  26509. The length of an array is computed once when the storage is allocated
  26510. and is remembered for the scope of the array in case you access it with
  26511. 'sizeof'.
  26512. If you want to pass the array first and the length afterward, you can
  26513. use a forward declaration in the parameter list--another GNU extension.
  26514. struct entry
  26515. tester (int len; char data[len][len], int len)
  26516. {
  26517. /* ... */
  26518. }
  26519. The 'int len' before the semicolon is a "parameter forward
  26520. declaration", and it serves the purpose of making the name 'len' known
  26521. when the declaration of 'data' is parsed.
  26522. You can write any number of such parameter forward declarations in the
  26523. parameter list. They can be separated by commas or semicolons, but the
  26524. last one must end with a semicolon, which is followed by the "real"
  26525. parameter declarations. Each forward declaration must match a "real"
  26526. declaration in parameter name and data type. ISO C99 does not support
  26527. parameter forward declarations.
  26528. 
  26529. File: gcc.info, Node: Variadic Macros, Next: Escaped Newlines, Prev: Variable Length, Up: C Extensions
  26530. 6.21 Macros with a Variable Number of Arguments.
  26531. ================================================
  26532. In the ISO C standard of 1999, a macro can be declared to accept a
  26533. variable number of arguments much as a function can. The syntax for
  26534. defining the macro is similar to that of a function. Here is an
  26535. example:
  26536. #define debug(format, ...) fprintf (stderr, format, __VA_ARGS__)
  26537. Here '...' is a "variable argument". In the invocation of such a macro,
  26538. it represents the zero or more tokens until the closing parenthesis that
  26539. ends the invocation, including any commas. This set of tokens replaces
  26540. the identifier '__VA_ARGS__' in the macro body wherever it appears. See
  26541. the CPP manual for more information.
  26542. GCC has long supported variadic macros, and used a different syntax
  26543. that allowed you to give a name to the variable arguments just like any
  26544. other argument. Here is an example:
  26545. #define debug(format, args...) fprintf (stderr, format, args)
  26546. This is in all ways equivalent to the ISO C example above, but arguably
  26547. more readable and descriptive.
  26548. GNU CPP has two further variadic macro extensions, and permits them to
  26549. be used with either of the above forms of macro definition.
  26550. In standard C, you are not allowed to leave the variable argument out
  26551. entirely; but you are allowed to pass an empty argument. For example,
  26552. this invocation is invalid in ISO C, because there is no comma after the
  26553. string:
  26554. debug ("A message")
  26555. GNU CPP permits you to completely omit the variable arguments in this
  26556. way. In the above examples, the compiler would complain, though since
  26557. the expansion of the macro still has the extra comma after the format
  26558. string.
  26559. To help solve this problem, CPP behaves specially for variable
  26560. arguments used with the token paste operator, '##'. If instead you
  26561. write
  26562. #define debug(format, ...) fprintf (stderr, format, ## __VA_ARGS__)
  26563. and if the variable arguments are omitted or empty, the '##' operator
  26564. causes the preprocessor to remove the comma before it. If you do
  26565. provide some variable arguments in your macro invocation, GNU CPP does
  26566. not complain about the paste operation and instead places the variable
  26567. arguments after the comma. Just like any other pasted macro argument,
  26568. these arguments are not macro expanded.
  26569. 
  26570. File: gcc.info, Node: Escaped Newlines, Next: Subscripting, Prev: Variadic Macros, Up: C Extensions
  26571. 6.22 Slightly Looser Rules for Escaped Newlines
  26572. ===============================================
  26573. The preprocessor treatment of escaped newlines is more relaxed than that
  26574. specified by the C90 standard, which requires the newline to immediately
  26575. follow a backslash. GCC's implementation allows whitespace in the form
  26576. of spaces, horizontal and vertical tabs, and form feeds between the
  26577. backslash and the subsequent newline. The preprocessor issues a
  26578. warning, but treats it as a valid escaped newline and combines the two
  26579. lines to form a single logical line. This works within comments and
  26580. tokens, as well as between tokens. Comments are _not_ treated as
  26581. whitespace for the purposes of this relaxation, since they have not yet
  26582. been replaced with spaces.
  26583. 
  26584. File: gcc.info, Node: Subscripting, Next: Pointer Arith, Prev: Escaped Newlines, Up: C Extensions
  26585. 6.23 Non-Lvalue Arrays May Have Subscripts
  26586. ==========================================
  26587. In ISO C99, arrays that are not lvalues still decay to pointers, and may
  26588. be subscripted, although they may not be modified or used after the next
  26589. sequence point and the unary '&' operator may not be applied to them.
  26590. As an extension, GNU C allows such arrays to be subscripted in C90 mode,
  26591. though otherwise they do not decay to pointers outside C99 mode. For
  26592. example, this is valid in GNU C though not valid in C90:
  26593. struct foo {int a[4];};
  26594. struct foo f();
  26595. bar (int index)
  26596. {
  26597. return f().a[index];
  26598. }
  26599. 
  26600. File: gcc.info, Node: Pointer Arith, Next: Variadic Pointer Args, Prev: Subscripting, Up: C Extensions
  26601. 6.24 Arithmetic on 'void'- and Function-Pointers
  26602. ================================================
  26603. In GNU C, addition and subtraction operations are supported on pointers
  26604. to 'void' and on pointers to functions. This is done by treating the
  26605. size of a 'void' or of a function as 1.
  26606. A consequence of this is that 'sizeof' is also allowed on 'void' and on
  26607. function types, and returns 1.
  26608. The option '-Wpointer-arith' requests a warning if these extensions are
  26609. used.
  26610. 
  26611. File: gcc.info, Node: Variadic Pointer Args, Next: Pointers to Arrays, Prev: Pointer Arith, Up: C Extensions
  26612. 6.25 Pointer Arguments in Variadic Functions
  26613. ============================================
  26614. Standard C requires that pointer types used with 'va_arg' in functions
  26615. with variable argument lists either must be compatible with that of the
  26616. actual argument, or that one type must be a pointer to 'void' and the
  26617. other a pointer to a character type. GNU C implements the POSIX XSI
  26618. extension that additionally permits the use of 'va_arg' with a pointer
  26619. type to receive arguments of any other pointer type.
  26620. In particular, in GNU C 'va_arg (ap, void *)' can safely be used to
  26621. consume an argument of any pointer type.
  26622. 
  26623. File: gcc.info, Node: Pointers to Arrays, Next: Initializers, Prev: Variadic Pointer Args, Up: C Extensions
  26624. 6.26 Pointers to Arrays with Qualifiers Work as Expected
  26625. ========================================================
  26626. In GNU C, pointers to arrays with qualifiers work similar to pointers to
  26627. other qualified types. For example, a value of type 'int (*)[5]' can be
  26628. used to initialize a variable of type 'const int (*)[5]'. These types
  26629. are incompatible in ISO C because the 'const' qualifier is formally
  26630. attached to the element type of the array and not the array itself.
  26631. extern void
  26632. transpose (int N, int M, double out[M][N], const double in[N][M]);
  26633. double x[3][2];
  26634. double y[2][3];
  26635. ...
  26636. transpose(3, 2, y, x);
  26637. 
  26638. File: gcc.info, Node: Initializers, Next: Compound Literals, Prev: Pointers to Arrays, Up: C Extensions
  26639. 6.27 Non-Constant Initializers
  26640. ==============================
  26641. As in standard C++ and ISO C99, the elements of an aggregate initializer
  26642. for an automatic variable are not required to be constant expressions in
  26643. GNU C. Here is an example of an initializer with run-time varying
  26644. elements:
  26645. foo (float f, float g)
  26646. {
  26647. float beat_freqs[2] = { f-g, f+g };
  26648. /* ... */
  26649. }
  26650. 
  26651. File: gcc.info, Node: Compound Literals, Next: Designated Inits, Prev: Initializers, Up: C Extensions
  26652. 6.28 Compound Literals
  26653. ======================
  26654. A compound literal looks like a cast of a brace-enclosed aggregate
  26655. initializer list. Its value is an object of the type specified in the
  26656. cast, containing the elements specified in the initializer. Unlike the
  26657. result of a cast, a compound literal is an lvalue. ISO C99 and later
  26658. support compound literals. As an extension, GCC supports compound
  26659. literals also in C90 mode and in C++, although as explained below, the
  26660. C++ semantics are somewhat different.
  26661. Usually, the specified type of a compound literal is a structure.
  26662. Assume that 'struct foo' and 'structure' are declared as shown:
  26663. struct foo {int a; char b[2];} structure;
  26664. Here is an example of constructing a 'struct foo' with a compound
  26665. literal:
  26666. structure = ((struct foo) {x + y, 'a', 0});
  26667. This is equivalent to writing the following:
  26668. {
  26669. struct foo temp = {x + y, 'a', 0};
  26670. structure = temp;
  26671. }
  26672. You can also construct an array, though this is dangerous in C++, as
  26673. explained below. If all the elements of the compound literal are (made
  26674. up of) simple constant expressions suitable for use in initializers of
  26675. objects of static storage duration, then the compound literal can be
  26676. coerced to a pointer to its first element and used in such an
  26677. initializer, as shown here:
  26678. char **foo = (char *[]) { "x", "y", "z" };
  26679. Compound literals for scalar types and union types are also allowed.
  26680. In the following example the variable 'i' is initialized to the value
  26681. '2', the result of incrementing the unnamed object created by the
  26682. compound literal.
  26683. int i = ++(int) { 1 };
  26684. As a GNU extension, GCC allows initialization of objects with static
  26685. storage duration by compound literals (which is not possible in ISO C99
  26686. because the initializer is not a constant). It is handled as if the
  26687. object were initialized only with the brace-enclosed list if the types
  26688. of the compound literal and the object match. The elements of the
  26689. compound literal must be constant. If the object being initialized has
  26690. array type of unknown size, the size is determined by the size of the
  26691. compound literal.
  26692. static struct foo x = (struct foo) {1, 'a', 'b'};
  26693. static int y[] = (int []) {1, 2, 3};
  26694. static int z[] = (int [3]) {1};
  26695. The above lines are equivalent to the following:
  26696. static struct foo x = {1, 'a', 'b'};
  26697. static int y[] = {1, 2, 3};
  26698. static int z[] = {1, 0, 0};
  26699. In C, a compound literal designates an unnamed object with static or
  26700. automatic storage duration. In C++, a compound literal designates a
  26701. temporary object that only lives until the end of its full-expression.
  26702. As a result, well-defined C code that takes the address of a subobject
  26703. of a compound literal can be undefined in C++, so G++ rejects the
  26704. conversion of a temporary array to a pointer. For instance, if the
  26705. array compound literal example above appeared inside a function, any
  26706. subsequent use of 'foo' in C++ would have undefined behavior because the
  26707. lifetime of the array ends after the declaration of 'foo'.
  26708. As an optimization, G++ sometimes gives array compound literals longer
  26709. lifetimes: when the array either appears outside a function or has a
  26710. 'const'-qualified type. If 'foo' and its initializer had elements of
  26711. type 'char *const' rather than 'char *', or if 'foo' were a global
  26712. variable, the array would have static storage duration. But it is
  26713. probably safest just to avoid the use of array compound literals in C++
  26714. code.
  26715. 
  26716. File: gcc.info, Node: Designated Inits, Next: Case Ranges, Prev: Compound Literals, Up: C Extensions
  26717. 6.29 Designated Initializers
  26718. ============================
  26719. Standard C90 requires the elements of an initializer to appear in a
  26720. fixed order, the same as the order of the elements in the array or
  26721. structure being initialized.
  26722. In ISO C99 you can give the elements in any order, specifying the array
  26723. indices or structure field names they apply to, and GNU C allows this as
  26724. an extension in C90 mode as well. This extension is not implemented in
  26725. GNU C++.
  26726. To specify an array index, write '[INDEX] =' before the element value.
  26727. For example,
  26728. int a[6] = { [4] = 29, [2] = 15 };
  26729. is equivalent to
  26730. int a[6] = { 0, 0, 15, 0, 29, 0 };
  26731. The index values must be constant expressions, even if the array being
  26732. initialized is automatic.
  26733. An alternative syntax for this that has been obsolete since GCC 2.5 but
  26734. GCC still accepts is to write '[INDEX]' before the element value, with
  26735. no '='.
  26736. To initialize a range of elements to the same value, write '[FIRST ...
  26737. LAST] = VALUE'. This is a GNU extension. For example,
  26738. int widths[] = { [0 ... 9] = 1, [10 ... 99] = 2, [100] = 3 };
  26739. If the value in it has side effects, the side effects happen only once,
  26740. not for each initialized field by the range initializer.
  26741. Note that the length of the array is the highest value specified plus
  26742. one.
  26743. In a structure initializer, specify the name of a field to initialize
  26744. with '.FIELDNAME =' before the element value. For example, given the
  26745. following structure,
  26746. struct point { int x, y; };
  26747. the following initialization
  26748. struct point p = { .y = yvalue, .x = xvalue };
  26749. is equivalent to
  26750. struct point p = { xvalue, yvalue };
  26751. Another syntax that has the same meaning, obsolete since GCC 2.5, is
  26752. 'FIELDNAME:', as shown here:
  26753. struct point p = { y: yvalue, x: xvalue };
  26754. Omitted fields are implicitly initialized the same as for objects that
  26755. have static storage duration.
  26756. The '[INDEX]' or '.FIELDNAME' is known as a "designator". You can also
  26757. use a designator (or the obsolete colon syntax) when initializing a
  26758. union, to specify which element of the union should be used. For
  26759. example,
  26760. union foo { int i; double d; };
  26761. union foo f = { .d = 4 };
  26762. converts 4 to a 'double' to store it in the union using the second
  26763. element. By contrast, casting 4 to type 'union foo' stores it into the
  26764. union as the integer 'i', since it is an integer. *Note Cast to
  26765. Union::.
  26766. You can combine this technique of naming elements with ordinary C
  26767. initialization of successive elements. Each initializer element that
  26768. does not have a designator applies to the next consecutive element of
  26769. the array or structure. For example,
  26770. int a[6] = { [1] = v1, v2, [4] = v4 };
  26771. is equivalent to
  26772. int a[6] = { 0, v1, v2, 0, v4, 0 };
  26773. Labeling the elements of an array initializer is especially useful when
  26774. the indices are characters or belong to an 'enum' type. For example:
  26775. int whitespace[256]
  26776. = { [' '] = 1, ['\t'] = 1, ['\h'] = 1,
  26777. ['\f'] = 1, ['\n'] = 1, ['\r'] = 1 };
  26778. You can also write a series of '.FIELDNAME' and '[INDEX]' designators
  26779. before an '=' to specify a nested subobject to initialize; the list is
  26780. taken relative to the subobject corresponding to the closest surrounding
  26781. brace pair. For example, with the 'struct point' declaration above:
  26782. struct point ptarray[10] = { [2].y = yv2, [2].x = xv2, [0].x = xv0 };
  26783. If the same field is initialized multiple times, or overlapping fields
  26784. of a union are initialized, the value from the last initialization is
  26785. used. When a field of a union is itself a structure, the entire
  26786. structure from the last field initialized is used. If any previous
  26787. initializer has side effect, it is unspecified whether the side effect
  26788. happens or not. Currently, GCC discards the side-effecting initializer
  26789. expressions and issues a warning.
  26790. 
  26791. File: gcc.info, Node: Case Ranges, Next: Cast to Union, Prev: Designated Inits, Up: C Extensions
  26792. 6.30 Case Ranges
  26793. ================
  26794. You can specify a range of consecutive values in a single 'case' label,
  26795. like this:
  26796. case LOW ... HIGH:
  26797. This has the same effect as the proper number of individual 'case'
  26798. labels, one for each integer value from LOW to HIGH, inclusive.
  26799. This feature is especially useful for ranges of ASCII character codes:
  26800. case 'A' ... 'Z':
  26801. *Be careful:* Write spaces around the '...', for otherwise it may be
  26802. parsed wrong when you use it with integer values. For example, write
  26803. this:
  26804. case 1 ... 5:
  26805. rather than this:
  26806. case 1...5:
  26807. 
  26808. File: gcc.info, Node: Cast to Union, Next: Mixed Labels and Declarations, Prev: Case Ranges, Up: C Extensions
  26809. 6.31 Cast to a Union Type
  26810. =========================
  26811. A cast to a union type is a C extension not available in C++. It looks
  26812. just like ordinary casts with the constraint that the type specified is
  26813. a union type. You can specify the type either with the 'union' keyword
  26814. or with a 'typedef' name that refers to a union. The result of a cast
  26815. to a union is a temporary rvalue of the union type with a member whose
  26816. type matches that of the operand initialized to the value of the
  26817. operand. The effect of a cast to a union is similar to a compound
  26818. literal except that it yields an rvalue like standard casts do. *Note
  26819. Compound Literals::.
  26820. Expressions that may be cast to the union type are those whose type
  26821. matches at least one of the members of the union. Thus, given the
  26822. following union and variables:
  26823. union foo { int i; double d; };
  26824. int x;
  26825. double y;
  26826. union foo z;
  26827. both 'x' and 'y' can be cast to type 'union foo' and the following
  26828. assignments
  26829. z = (union foo) x;
  26830. z = (union foo) y;
  26831. are shorthand equivalents of these
  26832. z = (union foo) { .i = x };
  26833. z = (union foo) { .d = y };
  26834. However, '(union foo) FLT_MAX;' is not a valid cast because the union
  26835. has no member of type 'float'.
  26836. Using the cast as the right-hand side of an assignment to a variable of
  26837. union type is equivalent to storing in a member of the union with the
  26838. same type
  26839. union foo u;
  26840. /* ... */
  26841. u = (union foo) x == u.i = x
  26842. u = (union foo) y == u.d = y
  26843. You can also use the union cast as a function argument:
  26844. void hack (union foo);
  26845. /* ... */
  26846. hack ((union foo) x);
  26847. 
  26848. File: gcc.info, Node: Mixed Labels and Declarations, Next: Function Attributes, Prev: Cast to Union, Up: C Extensions
  26849. 6.32 Mixed Declarations, Labels and Code
  26850. ========================================
  26851. ISO C99 and ISO C++ allow declarations and code to be freely mixed
  26852. within compound statements. ISO C2X allows labels to be placed before
  26853. declarations and at the end of a compound statement. As an extension,
  26854. GNU C also allows all this in C90 mode. For example, you could do:
  26855. int i;
  26856. /* ... */
  26857. i++;
  26858. int j = i + 2;
  26859. Each identifier is visible from where it is declared until the end of
  26860. the enclosing block.
  26861. 
  26862. File: gcc.info, Node: Function Attributes, Next: Variable Attributes, Prev: Mixed Labels and Declarations, Up: C Extensions
  26863. 6.33 Declaring Attributes of Functions
  26864. ======================================
  26865. In GNU C and C++, you can use function attributes to specify certain
  26866. function properties that may help the compiler optimize calls or check
  26867. code more carefully for correctness. For example, you can use
  26868. attributes to specify that a function never returns ('noreturn'),
  26869. returns a value depending only on the values of its arguments ('const'),
  26870. or has 'printf'-style arguments ('format').
  26871. You can also use attributes to control memory placement, code
  26872. generation options or call/return conventions within the function being
  26873. annotated. Many of these attributes are target-specific. For example,
  26874. many targets support attributes for defining interrupt handler
  26875. functions, which typically must follow special register usage and return
  26876. conventions. Such attributes are described in the subsection for each
  26877. target. However, a considerable number of attributes are supported by
  26878. most, if not all targets. Those are described in the *note Common
  26879. Function Attributes:: section.
  26880. Function attributes are introduced by the '__attribute__' keyword in
  26881. the declaration of a function, followed by an attribute specification
  26882. enclosed in double parentheses. You can specify multiple attributes in
  26883. a declaration by separating them by commas within the double parentheses
  26884. or by immediately following one attribute specification with another.
  26885. *Note Attribute Syntax::, for the exact rules on attribute syntax and
  26886. placement. Compatible attribute specifications on distinct declarations
  26887. of the same function are merged. An attribute specification that is not
  26888. compatible with attributes already applied to a declaration of the same
  26889. function is ignored with a warning.
  26890. Some function attributes take one or more arguments that refer to the
  26891. function's parameters by their positions within the function parameter
  26892. list. Such attribute arguments are referred to as "positional
  26893. arguments". Unless specified otherwise, positional arguments that
  26894. specify properties of parameters with pointer types can also specify the
  26895. same properties of the implicit C++ 'this' argument in non-static member
  26896. functions, and of parameters of reference to a pointer type. For
  26897. ordinary functions, position one refers to the first parameter on the
  26898. list. In C++ non-static member functions, position one refers to the
  26899. implicit 'this' pointer. The same restrictions and effects apply to
  26900. function attributes used with ordinary functions or C++ member
  26901. functions.
  26902. GCC also supports attributes on variable declarations (*note Variable
  26903. Attributes::), labels (*note Label Attributes::), enumerators (*note
  26904. Enumerator Attributes::), statements (*note Statement Attributes::), and
  26905. types (*note Type Attributes::).
  26906. There is some overlap between the purposes of attributes and pragmas
  26907. (*note Pragmas Accepted by GCC: Pragmas.). It has been found convenient
  26908. to use '__attribute__' to achieve a natural attachment of attributes to
  26909. their corresponding declarations, whereas '#pragma' is of use for
  26910. compatibility with other compilers or constructs that do not naturally
  26911. form part of the grammar.
  26912. In addition to the attributes documented here, GCC plugins may provide
  26913. their own attributes.
  26914. * Menu:
  26915. * Common Function Attributes::
  26916. * AArch64 Function Attributes::
  26917. * AMD GCN Function Attributes::
  26918. * ARC Function Attributes::
  26919. * ARM Function Attributes::
  26920. * AVR Function Attributes::
  26921. * Blackfin Function Attributes::
  26922. * BPF Function Attributes::
  26923. * CR16 Function Attributes::
  26924. * C-SKY Function Attributes::
  26925. * Epiphany Function Attributes::
  26926. * H8/300 Function Attributes::
  26927. * IA-64 Function Attributes::
  26928. * M32C Function Attributes::
  26929. * M32R/D Function Attributes::
  26930. * m68k Function Attributes::
  26931. * MCORE Function Attributes::
  26932. * MeP Function Attributes::
  26933. * MicroBlaze Function Attributes::
  26934. * Microsoft Windows Function Attributes::
  26935. * MIPS Function Attributes::
  26936. * MSP430 Function Attributes::
  26937. * NDS32 Function Attributes::
  26938. * Nios II Function Attributes::
  26939. * Nvidia PTX Function Attributes::
  26940. * PowerPC Function Attributes::
  26941. * RISC-V Function Attributes::
  26942. * RL78 Function Attributes::
  26943. * RX Function Attributes::
  26944. * S/390 Function Attributes::
  26945. * SH Function Attributes::
  26946. * Symbian OS Function Attributes::
  26947. * V850 Function Attributes::
  26948. * Visium Function Attributes::
  26949. * x86 Function Attributes::
  26950. * Xstormy16 Function Attributes::
  26951. 
  26952. File: gcc.info, Node: Common Function Attributes, Next: AArch64 Function Attributes, Up: Function Attributes
  26953. 6.33.1 Common Function Attributes
  26954. ---------------------------------
  26955. The following attributes are supported on most targets.
  26956. 'access'
  26957. 'access (ACCESS-MODE, REF-INDEX)'
  26958. 'access (ACCESS-MODE, REF-INDEX, SIZE-INDEX)'
  26959. The 'access' attribute enables the detection of invalid or unsafe
  26960. accesses by functions to which they apply or their callers, as well
  26961. as write-only accesses to objects that are never read from. Such
  26962. accesses may be diagnosed by warnings such as
  26963. '-Wstringop-overflow', '-Wuninitialized', '-Wunused', and others.
  26964. The 'access' attribute specifies that a function to whose
  26965. by-reference arguments the attribute applies accesses the
  26966. referenced object according to ACCESS-MODE. The ACCESS-MODE
  26967. argument is required and must be one of four names: 'read_only',
  26968. 'read_write', 'write_only', or 'none'. The remaining two are
  26969. positional arguments.
  26970. The required REF-INDEX positional argument denotes a function
  26971. argument of pointer (or in C++, reference) type that is subject to
  26972. the access. The same pointer argument can be referenced by at most
  26973. one distinct 'access' attribute.
  26974. The optional SIZE-INDEX positional argument denotes a function
  26975. argument of integer type that specifies the maximum size of the
  26976. access. The size is the number of elements of the type referenced
  26977. by REF-INDEX, or the number of bytes when the pointer type is
  26978. 'void*'. When no SIZE-INDEX argument is specified, the pointer
  26979. argument must be either null or point to a space that is suitably
  26980. aligned and large for at least one object of the referenced type
  26981. (this implies that a past-the-end pointer is not a valid argument).
  26982. The actual size of the access may be less but it must not be more.
  26983. The 'read_only' access mode specifies that the pointer to which it
  26984. applies is used to read the referenced object but not write to it.
  26985. Unless the argument specifying the size of the access denoted by
  26986. SIZE-INDEX is zero, the referenced object must be initialized. The
  26987. mode implies a stronger guarantee than the 'const' qualifier which,
  26988. when cast away from a pointer, does not prevent the pointed-to
  26989. object from being modified. Examples of the use of the 'read_only'
  26990. access mode is the argument to the 'puts' function, or the second
  26991. and third arguments to the 'memcpy' function.
  26992. __attribute__ ((access (read_only, 1))) int puts (const char*);
  26993. __attribute__ ((access (read_only, 2, 3))) void* memcpy (void*, const void*, size_t);
  26994. The 'read_write' access mode applies to arguments of pointer types
  26995. without the 'const' qualifier. It specifies that the pointer to
  26996. which it applies is used to both read and write the referenced
  26997. object. Unless the argument specifying the size of the access
  26998. denoted by SIZE-INDEX is zero, the object referenced by the pointer
  26999. must be initialized. An example of the use of the 'read_write'
  27000. access mode is the first argument to the 'strcat' function.
  27001. __attribute__ ((access (read_write, 1), access (read_only, 2))) char* strcat (char*, const char*);
  27002. The 'write_only' access mode applies to arguments of pointer types
  27003. without the 'const' qualifier. It specifies that the pointer to
  27004. which it applies is used to write to the referenced object but not
  27005. read from it. The object referenced by the pointer need not be
  27006. initialized. An example of the use of the 'write_only' access mode
  27007. is the first argument to the 'strcpy' function, or the first two
  27008. arguments to the 'fgets' function.
  27009. __attribute__ ((access (write_only, 1), access (read_only, 2))) char* strcpy (char*, const char*);
  27010. __attribute__ ((access (write_only, 1, 2), access (read_write, 3))) int fgets (char*, int, FILE*);
  27011. The access mode 'none' specifies that the pointer to which it
  27012. applies is not used to access the referenced object at all. Unless
  27013. the pointer is null the pointed-to object must exist and have at
  27014. least the size as denoted by the SIZE-INDEX argument. The object
  27015. need not be initialized. The mode is intended to be used as a
  27016. means to help validate the expected object size, for example in
  27017. functions that call '__builtin_object_size'. *Note Object Size
  27018. Checking::.
  27019. 'alias ("TARGET")'
  27020. The 'alias' attribute causes the declaration to be emitted as an
  27021. alias for another symbol, which must have been previously declared
  27022. with the same type, and for variables, also the same size and
  27023. alignment. Declaring an alias with a different type than the
  27024. target is undefined and may be diagnosed. As an example, the
  27025. following declarations:
  27026. void __f () { /* Do something. */; }
  27027. void f () __attribute__ ((weak, alias ("__f")));
  27028. define 'f' to be a weak alias for '__f'. In C++, the mangled name
  27029. for the target must be used. It is an error if '__f' is not
  27030. defined in the same translation unit.
  27031. This attribute requires assembler and object file support, and may
  27032. not be available on all targets.
  27033. 'aligned'
  27034. 'aligned (ALIGNMENT)'
  27035. The 'aligned' attribute specifies a minimum alignment for the first
  27036. instruction of the function, measured in bytes. When specified,
  27037. ALIGNMENT must be an integer constant power of 2. Specifying no
  27038. ALIGNMENT argument implies the ideal alignment for the target. The
  27039. '__alignof__' operator can be used to determine what that is (*note
  27040. Alignment::). The attribute has no effect when a definition for
  27041. the function is not provided in the same translation unit.
  27042. The attribute cannot be used to decrease the alignment of a
  27043. function previously declared with a more restrictive alignment;
  27044. only to increase it. Attempts to do otherwise are diagnosed. Some
  27045. targets specify a minimum default alignment for functions that is
  27046. greater than 1. On such targets, specifying a less restrictive
  27047. alignment is silently ignored. Using the attribute overrides the
  27048. effect of the '-falign-functions' (*note Optimize Options::) option
  27049. for this function.
  27050. Note that the effectiveness of 'aligned' attributes may be limited
  27051. by inherent limitations in the system linker and/or object file
  27052. format. On some systems, the linker is only able to arrange for
  27053. functions to be aligned up to a certain maximum alignment. (For
  27054. some linkers, the maximum supported alignment may be very very
  27055. small.) See your linker documentation for further information.
  27056. The 'aligned' attribute can also be used for variables and fields
  27057. (*note Variable Attributes::.)
  27058. 'alloc_align (POSITION)'
  27059. The 'alloc_align' attribute may be applied to a function that
  27060. returns a pointer and takes at least one argument of an integer or
  27061. enumerated type. It indicates that the returned pointer is aligned
  27062. on a boundary given by the function argument at POSITION.
  27063. Meaningful alignments are powers of 2 greater than one. GCC uses
  27064. this information to improve pointer alignment analysis.
  27065. The function parameter denoting the allocated alignment is
  27066. specified by one constant integer argument whose number is the
  27067. argument of the attribute. Argument numbering starts at one.
  27068. For instance,
  27069. void* my_memalign (size_t, size_t) __attribute__ ((alloc_align (1)));
  27070. declares that 'my_memalign' returns memory with minimum alignment
  27071. given by parameter 1.
  27072. 'alloc_size (POSITION)'
  27073. 'alloc_size (POSITION-1, POSITION-2)'
  27074. The 'alloc_size' attribute may be applied to a function that
  27075. returns a pointer and takes at least one argument of an integer or
  27076. enumerated type. It indicates that the returned pointer points to
  27077. memory whose size is given by the function argument at POSITION-1,
  27078. or by the product of the arguments at POSITION-1 and POSITION-2.
  27079. Meaningful sizes are positive values less than 'PTRDIFF_MAX'. GCC
  27080. uses this information to improve the results of
  27081. '__builtin_object_size'.
  27082. The function parameter(s) denoting the allocated size are specified
  27083. by one or two integer arguments supplied to the attribute. The
  27084. allocated size is either the value of the single function argument
  27085. specified or the product of the two function arguments specified.
  27086. Argument numbering starts at one for ordinary functions, and at two
  27087. for C++ non-static member functions.
  27088. For instance,
  27089. void* my_calloc (size_t, size_t) __attribute__ ((alloc_size (1, 2)));
  27090. void* my_realloc (void*, size_t) __attribute__ ((alloc_size (2)));
  27091. declares that 'my_calloc' returns memory of the size given by the
  27092. product of parameter 1 and 2 and that 'my_realloc' returns memory
  27093. of the size given by parameter 2.
  27094. 'always_inline'
  27095. Generally, functions are not inlined unless optimization is
  27096. specified. For functions declared inline, this attribute inlines
  27097. the function independent of any restrictions that otherwise apply
  27098. to inlining. Failure to inline such a function is diagnosed as an
  27099. error. Note that if such a function is called indirectly the
  27100. compiler may or may not inline it depending on optimization level
  27101. and a failure to inline an indirect call may or may not be
  27102. diagnosed.
  27103. 'artificial'
  27104. This attribute is useful for small inline wrappers that if possible
  27105. should appear during debugging as a unit. Depending on the debug
  27106. info format it either means marking the function as artificial or
  27107. using the caller location for all instructions within the inlined
  27108. body.
  27109. 'assume_aligned (ALIGNMENT)'
  27110. 'assume_aligned (ALIGNMENT, OFFSET)'
  27111. The 'assume_aligned' attribute may be applied to a function that
  27112. returns a pointer. It indicates that the returned pointer is
  27113. aligned on a boundary given by ALIGNMENT. If the attribute has two
  27114. arguments, the second argument is misalignment OFFSET. Meaningful
  27115. values of ALIGNMENT are powers of 2 greater than one. Meaningful
  27116. values of OFFSET are greater than zero and less than ALIGNMENT.
  27117. For instance
  27118. void* my_alloc1 (size_t) __attribute__((assume_aligned (16)));
  27119. void* my_alloc2 (size_t) __attribute__((assume_aligned (32, 8)));
  27120. declares that 'my_alloc1' returns 16-byte aligned pointers and that
  27121. 'my_alloc2' returns a pointer whose value modulo 32 is equal to 8.
  27122. 'cold'
  27123. The 'cold' attribute on functions is used to inform the compiler
  27124. that the function is unlikely to be executed. The function is
  27125. optimized for size rather than speed and on many targets it is
  27126. placed into a special subsection of the text section so all cold
  27127. functions appear close together, improving code locality of
  27128. non-cold parts of program. The paths leading to calls of cold
  27129. functions within code are marked as unlikely by the branch
  27130. prediction mechanism. It is thus useful to mark functions used to
  27131. handle unlikely conditions, such as 'perror', as cold to improve
  27132. optimization of hot functions that do call marked functions in rare
  27133. occasions.
  27134. When profile feedback is available, via '-fprofile-use', cold
  27135. functions are automatically detected and this attribute is ignored.
  27136. 'const'
  27137. Calls to functions whose return value is not affected by changes to
  27138. the observable state of the program and that have no observable
  27139. effects on such state other than to return a value may lend
  27140. themselves to optimizations such as common subexpression
  27141. elimination. Declaring such functions with the 'const' attribute
  27142. allows GCC to avoid emitting some calls in repeated invocations of
  27143. the function with the same argument values.
  27144. For example,
  27145. int square (int) __attribute__ ((const));
  27146. tells GCC that subsequent calls to function 'square' with the same
  27147. argument value can be replaced by the result of the first call
  27148. regardless of the statements in between.
  27149. The 'const' attribute prohibits a function from reading objects
  27150. that affect its return value between successive invocations.
  27151. However, functions declared with the attribute can safely read
  27152. objects that do not change their return value, such as non-volatile
  27153. constants.
  27154. The 'const' attribute imposes greater restrictions on a function's
  27155. definition than the similar 'pure' attribute. Declaring the same
  27156. function with both the 'const' and the 'pure' attribute is
  27157. diagnosed. Because a const function cannot have any observable
  27158. side effects it does not make sense for it to return 'void'.
  27159. Declaring such a function is diagnosed.
  27160. Note that a function that has pointer arguments and examines the
  27161. data pointed to must _not_ be declared 'const' if the pointed-to
  27162. data might change between successive invocations of the function.
  27163. In general, since a function cannot distinguish data that might
  27164. change from data that cannot, const functions should never take
  27165. pointer or, in C++, reference arguments. Likewise, a function that
  27166. calls a non-const function usually must not be const itself.
  27167. 'constructor'
  27168. 'destructor'
  27169. 'constructor (PRIORITY)'
  27170. 'destructor (PRIORITY)'
  27171. The 'constructor' attribute causes the function to be called
  27172. automatically before execution enters 'main ()'. Similarly, the
  27173. 'destructor' attribute causes the function to be called
  27174. automatically after 'main ()' completes or 'exit ()' is called.
  27175. Functions with these attributes are useful for initializing data
  27176. that is used implicitly during the execution of the program.
  27177. On some targets the attributes also accept an integer argument to
  27178. specify a priority to control the order in which constructor and
  27179. destructor functions are run. A constructor with a smaller
  27180. priority number runs before a constructor with a larger priority
  27181. number; the opposite relationship holds for destructors. So, if
  27182. you have a constructor that allocates a resource and a destructor
  27183. that deallocates the same resource, both functions typically have
  27184. the same priority. The priorities for constructor and destructor
  27185. functions are the same as those specified for namespace-scope C++
  27186. objects (*note C++ Attributes::). However, at present, the order
  27187. in which constructors for C++ objects with static storage duration
  27188. and functions decorated with attribute 'constructor' are invoked is
  27189. unspecified. In mixed declarations, attribute 'init_priority' can
  27190. be used to impose a specific ordering.
  27191. Using the argument forms of the 'constructor' and 'destructor'
  27192. attributes on targets where the feature is not supported is
  27193. rejected with an error.
  27194. 'copy'
  27195. 'copy (FUNCTION)'
  27196. The 'copy' attribute applies the set of attributes with which
  27197. FUNCTION has been declared to the declaration of the function to
  27198. which the attribute is applied. The attribute is designed for
  27199. libraries that define aliases or function resolvers that are
  27200. expected to specify the same set of attributes as their targets.
  27201. The 'copy' attribute can be used with functions, variables, or
  27202. types. However, the kind of symbol to which the attribute is
  27203. applied (either function or variable) must match the kind of symbol
  27204. to which the argument refers. The 'copy' attribute copies only
  27205. syntactic and semantic attributes but not attributes that affect a
  27206. symbol's linkage or visibility such as 'alias', 'visibility', or
  27207. 'weak'. The 'deprecated' and 'target_clones' attribute are also
  27208. not copied. *Note Common Type Attributes::. *Note Common Variable
  27209. Attributes::.
  27210. For example, the STRONGALIAS macro below makes use of the 'alias'
  27211. and 'copy' attributes to define an alias named ALLOC for function
  27212. ALLOCATE declared with attributes ALLOC_SIZE, MALLOC, and NOTHROW.
  27213. Thanks to the '__typeof__' operator the alias has the same type as
  27214. the target function. As a result of the 'copy' attribute the alias
  27215. also shares the same attributes as the target.
  27216. #define StrongAlias(TargetFunc, AliasDecl) \
  27217. extern __typeof__ (TargetFunc) AliasDecl \
  27218. __attribute__ ((alias (#TargetFunc), copy (TargetFunc)));
  27219. extern __attribute__ ((alloc_size (1), malloc, nothrow))
  27220. void* allocate (size_t);
  27221. StrongAlias (allocate, alloc);
  27222. 'deprecated'
  27223. 'deprecated (MSG)'
  27224. The 'deprecated' attribute results in a warning if the function is
  27225. used anywhere in the source file. This is useful when identifying
  27226. functions that are expected to be removed in a future version of a
  27227. program. The warning also includes the location of the declaration
  27228. of the deprecated function, to enable users to easily find further
  27229. information about why the function is deprecated, or what they
  27230. should do instead. Note that the warnings only occurs for uses:
  27231. int old_fn () __attribute__ ((deprecated));
  27232. int old_fn ();
  27233. int (*fn_ptr)() = old_fn;
  27234. results in a warning on line 3 but not line 2. The optional MSG
  27235. argument, which must be a string, is printed in the warning if
  27236. present.
  27237. The 'deprecated' attribute can also be used for variables and types
  27238. (*note Variable Attributes::, *note Type Attributes::.)
  27239. The message attached to the attribute is affected by the setting of
  27240. the '-fmessage-length' option.
  27241. 'error ("MESSAGE")'
  27242. 'warning ("MESSAGE")'
  27243. If the 'error' or 'warning' attribute is used on a function
  27244. declaration and a call to such a function is not eliminated through
  27245. dead code elimination or other optimizations, an error or warning
  27246. (respectively) that includes MESSAGE is diagnosed. This is useful
  27247. for compile-time checking, especially together with
  27248. '__builtin_constant_p' and inline functions where checking the
  27249. inline function arguments is not possible through 'extern char
  27250. [(condition) ? 1 : -1];' tricks.
  27251. While it is possible to leave the function undefined and thus
  27252. invoke a link failure (to define the function with a message in
  27253. '.gnu.warning*' section), when using these attributes the problem
  27254. is diagnosed earlier and with exact location of the call even in
  27255. presence of inline functions or when not emitting debugging
  27256. information.
  27257. 'externally_visible'
  27258. This attribute, attached to a global variable or function,
  27259. nullifies the effect of the '-fwhole-program' command-line option,
  27260. so the object remains visible outside the current compilation unit.
  27261. If '-fwhole-program' is used together with '-flto' and 'gold' is
  27262. used as the linker plugin, 'externally_visible' attributes are
  27263. automatically added to functions (not variable yet due to a current
  27264. 'gold' issue) that are accessed outside of LTO objects according to
  27265. resolution file produced by 'gold'. For other linkers that cannot
  27266. generate resolution file, explicit 'externally_visible' attributes
  27267. are still necessary.
  27268. 'flatten'
  27269. Generally, inlining into a function is limited. For a function
  27270. marked with this attribute, every call inside this function is
  27271. inlined, if possible. Functions declared with attribute 'noinline'
  27272. and similar are not inlined. Whether the function itself is
  27273. considered for inlining depends on its size and the current
  27274. inlining parameters.
  27275. 'format (ARCHETYPE, STRING-INDEX, FIRST-TO-CHECK)'
  27276. The 'format' attribute specifies that a function takes 'printf',
  27277. 'scanf', 'strftime' or 'strfmon' style arguments that should be
  27278. type-checked against a format string. For example, the
  27279. declaration:
  27280. extern int
  27281. my_printf (void *my_object, const char *my_format, ...)
  27282. __attribute__ ((format (printf, 2, 3)));
  27283. causes the compiler to check the arguments in calls to 'my_printf'
  27284. for consistency with the 'printf' style format string argument
  27285. 'my_format'.
  27286. The parameter ARCHETYPE determines how the format string is
  27287. interpreted, and should be 'printf', 'scanf', 'strftime',
  27288. 'gnu_printf', 'gnu_scanf', 'gnu_strftime' or 'strfmon'. (You can
  27289. also use '__printf__', '__scanf__', '__strftime__' or
  27290. '__strfmon__'.) On MinGW targets, 'ms_printf', 'ms_scanf', and
  27291. 'ms_strftime' are also present. ARCHETYPE values such as 'printf'
  27292. refer to the formats accepted by the system's C runtime library,
  27293. while values prefixed with 'gnu_' always refer to the formats
  27294. accepted by the GNU C Library. On Microsoft Windows targets,
  27295. values prefixed with 'ms_' refer to the formats accepted by the
  27296. 'msvcrt.dll' library. The parameter STRING-INDEX specifies which
  27297. argument is the format string argument (starting from 1), while
  27298. FIRST-TO-CHECK is the number of the first argument to check against
  27299. the format string. For functions where the arguments are not
  27300. available to be checked (such as 'vprintf'), specify the third
  27301. parameter as zero. In this case the compiler only checks the
  27302. format string for consistency. For 'strftime' formats, the third
  27303. parameter is required to be zero. Since non-static C++ methods
  27304. have an implicit 'this' argument, the arguments of such methods
  27305. should be counted from two, not one, when giving values for
  27306. STRING-INDEX and FIRST-TO-CHECK.
  27307. In the example above, the format string ('my_format') is the second
  27308. argument of the function 'my_print', and the arguments to check
  27309. start with the third argument, so the correct parameters for the
  27310. format attribute are 2 and 3.
  27311. The 'format' attribute allows you to identify your own functions
  27312. that take format strings as arguments, so that GCC can check the
  27313. calls to these functions for errors. The compiler always (unless
  27314. '-ffreestanding' or '-fno-builtin' is used) checks formats for the
  27315. standard library functions 'printf', 'fprintf', 'sprintf', 'scanf',
  27316. 'fscanf', 'sscanf', 'strftime', 'vprintf', 'vfprintf' and
  27317. 'vsprintf' whenever such warnings are requested (using '-Wformat'),
  27318. so there is no need to modify the header file 'stdio.h'. In C99
  27319. mode, the functions 'snprintf', 'vsnprintf', 'vscanf', 'vfscanf'
  27320. and 'vsscanf' are also checked. Except in strictly conforming C
  27321. standard modes, the X/Open function 'strfmon' is also checked as
  27322. are 'printf_unlocked' and 'fprintf_unlocked'. *Note Options
  27323. Controlling C Dialect: C Dialect Options.
  27324. For Objective-C dialects, 'NSString' (or '__NSString__') is
  27325. recognized in the same context. Declarations including these
  27326. format attributes are parsed for correct syntax, however the result
  27327. of checking of such format strings is not yet defined, and is not
  27328. carried out by this version of the compiler.
  27329. The target may also provide additional types of format checks.
  27330. *Note Format Checks Specific to Particular Target Machines: Target
  27331. Format Checks.
  27332. 'format_arg (STRING-INDEX)'
  27333. The 'format_arg' attribute specifies that a function takes one or
  27334. more format strings for a 'printf', 'scanf', 'strftime' or
  27335. 'strfmon' style function and modifies it (for example, to translate
  27336. it into another language), so the result can be passed to a
  27337. 'printf', 'scanf', 'strftime' or 'strfmon' style function (with the
  27338. remaining arguments to the format function the same as they would
  27339. have been for the unmodified string). Multiple 'format_arg'
  27340. attributes may be applied to the same function, each designating a
  27341. distinct parameter as a format string. For example, the
  27342. declaration:
  27343. extern char *
  27344. my_dgettext (char *my_domain, const char *my_format)
  27345. __attribute__ ((format_arg (2)));
  27346. causes the compiler to check the arguments in calls to a 'printf',
  27347. 'scanf', 'strftime' or 'strfmon' type function, whose format string
  27348. argument is a call to the 'my_dgettext' function, for consistency
  27349. with the format string argument 'my_format'. If the 'format_arg'
  27350. attribute had not been specified, all the compiler could tell in
  27351. such calls to format functions would be that the format string
  27352. argument is not constant; this would generate a warning when
  27353. '-Wformat-nonliteral' is used, but the calls could not be checked
  27354. without the attribute.
  27355. In calls to a function declared with more than one 'format_arg'
  27356. attribute, each with a distinct argument value, the corresponding
  27357. actual function arguments are checked against all format strings
  27358. designated by the attributes. This capability is designed to
  27359. support the GNU 'ngettext' family of functions.
  27360. The parameter STRING-INDEX specifies which argument is the format
  27361. string argument (starting from one). Since non-static C++ methods
  27362. have an implicit 'this' argument, the arguments of such methods
  27363. should be counted from two.
  27364. The 'format_arg' attribute allows you to identify your own
  27365. functions that modify format strings, so that GCC can check the
  27366. calls to 'printf', 'scanf', 'strftime' or 'strfmon' type function
  27367. whose operands are a call to one of your own function. The
  27368. compiler always treats 'gettext', 'dgettext', and 'dcgettext' in
  27369. this manner except when strict ISO C support is requested by
  27370. '-ansi' or an appropriate '-std' option, or '-ffreestanding' or
  27371. '-fno-builtin' is used. *Note Options Controlling C Dialect: C
  27372. Dialect Options.
  27373. For Objective-C dialects, the 'format-arg' attribute may refer to
  27374. an 'NSString' reference for compatibility with the 'format'
  27375. attribute above.
  27376. The target may also allow additional types in 'format-arg'
  27377. attributes. *Note Format Checks Specific to Particular Target
  27378. Machines: Target Format Checks.
  27379. 'gnu_inline'
  27380. This attribute should be used with a function that is also declared
  27381. with the 'inline' keyword. It directs GCC to treat the function as
  27382. if it were defined in gnu90 mode even when compiling in C99 or
  27383. gnu99 mode.
  27384. If the function is declared 'extern', then this definition of the
  27385. function is used only for inlining. In no case is the function
  27386. compiled as a standalone function, not even if you take its address
  27387. explicitly. Such an address becomes an external reference, as if
  27388. you had only declared the function, and had not defined it. This
  27389. has almost the effect of a macro. The way to use this is to put a
  27390. function definition in a header file with this attribute, and put
  27391. another copy of the function, without 'extern', in a library file.
  27392. The definition in the header file causes most calls to the function
  27393. to be inlined. If any uses of the function remain, they refer to
  27394. the single copy in the library. Note that the two definitions of
  27395. the functions need not be precisely the same, although if they do
  27396. not have the same effect your program may behave oddly.
  27397. In C, if the function is neither 'extern' nor 'static', then the
  27398. function is compiled as a standalone function, as well as being
  27399. inlined where possible.
  27400. This is how GCC traditionally handled functions declared 'inline'.
  27401. Since ISO C99 specifies a different semantics for 'inline', this
  27402. function attribute is provided as a transition measure and as a
  27403. useful feature in its own right. This attribute is available in
  27404. GCC 4.1.3 and later. It is available if either of the preprocessor
  27405. macros '__GNUC_GNU_INLINE__' or '__GNUC_STDC_INLINE__' are defined.
  27406. *Note An Inline Function is As Fast As a Macro: Inline.
  27407. In C++, this attribute does not depend on 'extern' in any way, but
  27408. it still requires the 'inline' keyword to enable its special
  27409. behavior.
  27410. 'hot'
  27411. The 'hot' attribute on a function is used to inform the compiler
  27412. that the function is a hot spot of the compiled program. The
  27413. function is optimized more aggressively and on many targets it is
  27414. placed into a special subsection of the text section so all hot
  27415. functions appear close together, improving locality.
  27416. When profile feedback is available, via '-fprofile-use', hot
  27417. functions are automatically detected and this attribute is ignored.
  27418. 'ifunc ("RESOLVER")'
  27419. The 'ifunc' attribute is used to mark a function as an indirect
  27420. function using the STT_GNU_IFUNC symbol type extension to the ELF
  27421. standard. This allows the resolution of the symbol value to be
  27422. determined dynamically at load time, and an optimized version of
  27423. the routine to be selected for the particular processor or other
  27424. system characteristics determined then. To use this attribute,
  27425. first define the implementation functions available, and a resolver
  27426. function that returns a pointer to the selected implementation
  27427. function. The implementation functions' declarations must match
  27428. the API of the function being implemented. The resolver should be
  27429. declared to be a function taking no arguments and returning a
  27430. pointer to a function of the same type as the implementation. For
  27431. example:
  27432. void *my_memcpy (void *dst, const void *src, size_t len)
  27433. {
  27434. ...
  27435. return dst;
  27436. }
  27437. static void * (*resolve_memcpy (void))(void *, const void *, size_t)
  27438. {
  27439. return my_memcpy; // we will just always select this routine
  27440. }
  27441. The exported header file declaring the function the user calls
  27442. would contain:
  27443. extern void *memcpy (void *, const void *, size_t);
  27444. allowing the user to call 'memcpy' as a regular function, unaware
  27445. of the actual implementation. Finally, the indirect function needs
  27446. to be defined in the same translation unit as the resolver
  27447. function:
  27448. void *memcpy (void *, const void *, size_t)
  27449. __attribute__ ((ifunc ("resolve_memcpy")));
  27450. In C++, the 'ifunc' attribute takes a string that is the mangled
  27451. name of the resolver function. A C++ resolver for a non-static
  27452. member function of class 'C' should be declared to return a pointer
  27453. to a non-member function taking pointer to 'C' as the first
  27454. argument, followed by the same arguments as of the implementation
  27455. function. G++ checks the signatures of the two functions and
  27456. issues a '-Wattribute-alias' warning for mismatches. To suppress a
  27457. warning for the necessary cast from a pointer to the implementation
  27458. member function to the type of the corresponding non-member
  27459. function use the '-Wno-pmf-conversions' option. For example:
  27460. class S
  27461. {
  27462. private:
  27463. int debug_impl (int);
  27464. int optimized_impl (int);
  27465. typedef int Func (S*, int);
  27466. static Func* resolver ();
  27467. public:
  27468. int interface (int);
  27469. };
  27470. int S::debug_impl (int) { /* ... */ }
  27471. int S::optimized_impl (int) { /* ... */ }
  27472. S::Func* S::resolver ()
  27473. {
  27474. int (S::*pimpl) (int)
  27475. = getenv ("DEBUG") ? &S::debug_impl : &S::optimized_impl;
  27476. // Cast triggers -Wno-pmf-conversions.
  27477. return reinterpret_cast<Func*>(pimpl);
  27478. }
  27479. int S::interface (int) __attribute__ ((ifunc ("_ZN1S8resolverEv")));
  27480. Indirect functions cannot be weak. Binutils version 2.20.1 or
  27481. higher and GNU C Library version 2.11.1 are required to use this
  27482. feature.
  27483. 'interrupt'
  27484. 'interrupt_handler'
  27485. Many GCC back ends support attributes to indicate that a function
  27486. is an interrupt handler, which tells the compiler to generate
  27487. function entry and exit sequences that differ from those from
  27488. regular functions. The exact syntax and behavior are
  27489. target-specific; refer to the following subsections for details.
  27490. 'leaf'
  27491. Calls to external functions with this attribute must return to the
  27492. current compilation unit only by return or by exception handling.
  27493. In particular, a leaf function is not allowed to invoke callback
  27494. functions passed to it from the current compilation unit, directly
  27495. call functions exported by the unit, or 'longjmp' into the unit.
  27496. Leaf functions might still call functions from other compilation
  27497. units and thus they are not necessarily leaf in the sense that they
  27498. contain no function calls at all.
  27499. The attribute is intended for library functions to improve dataflow
  27500. analysis. The compiler takes the hint that any data not escaping
  27501. the current compilation unit cannot be used or modified by the leaf
  27502. function. For example, the 'sin' function is a leaf function, but
  27503. 'qsort' is not.
  27504. Note that leaf functions might indirectly run a signal handler
  27505. defined in the current compilation unit that uses static variables.
  27506. Similarly, when lazy symbol resolution is in effect, leaf functions
  27507. might invoke indirect functions whose resolver function or
  27508. implementation function is defined in the current compilation unit
  27509. and uses static variables. There is no standard-compliant way to
  27510. write such a signal handler, resolver function, or implementation
  27511. function, and the best that you can do is to remove the 'leaf'
  27512. attribute or mark all such static variables 'volatile'. Lastly,
  27513. for ELF-based systems that support symbol interposition, care
  27514. should be taken that functions defined in the current compilation
  27515. unit do not unexpectedly interpose other symbols based on the
  27516. defined standards mode and defined feature test macros; otherwise
  27517. an inadvertent callback would be added.
  27518. The attribute has no effect on functions defined within the current
  27519. compilation unit. This is to allow easy merging of multiple
  27520. compilation units into one, for example, by using the link-time
  27521. optimization. For this reason the attribute is not allowed on
  27522. types to annotate indirect calls.
  27523. 'malloc'
  27524. 'malloc (DEALLOCATOR)'
  27525. 'malloc (DEALLOCATOR, PTR-INDEX)'
  27526. Attribute 'malloc' indicates that a function is 'malloc'-like,
  27527. i.e., that the pointer P returned by the function cannot alias any
  27528. other pointer valid when the function returns, and moreover no
  27529. pointers to valid objects occur in any storage addressed by P. In
  27530. addition, the GCC predicts that a function with the attribute
  27531. returns non-null in most cases.
  27532. Independently, the form of the attribute with one or two arguments
  27533. associates 'deallocator' as a suitable deallocation function for
  27534. pointers returned from the 'malloc'-like function. PTR-INDEX
  27535. denotes the positional argument to which when the pointer is passed
  27536. in calls to 'deallocator' has the effect of deallocating it.
  27537. Using the attribute with no arguments is designed to improve
  27538. optimization by relying on the aliasing property it implies.
  27539. Functions like 'malloc' and 'calloc' have this property because
  27540. they return a pointer to uninitialized or zeroed-out, newly
  27541. obtained storage. However, functions like 'realloc' do not have
  27542. this property, as they may return pointers to storage containing
  27543. pointers to existing objects. Additionally, since all such
  27544. functions are assumed to return null only infrequently, callers can
  27545. be optimized based on that assumption.
  27546. Associating a function with a DEALLOCATOR helps detect calls to
  27547. mismatched allocation and deallocation functions and diagnose them
  27548. under the control of options such as '-Wmismatched-dealloc'. It
  27549. also makes it possible to diagnose attempts to deallocate objects
  27550. that were not allocated dynamically, by '-Wfree-nonheap-object'.
  27551. To indicate that an allocation function both satisifies the
  27552. nonaliasing property and has a deallocator associated with it, both
  27553. the plain form of the attribute and the one with the DEALLOCATOR
  27554. argument must be used. The same function can be both an allocator
  27555. and a deallocator. Since inlining one of the associated functions
  27556. but not the other could result in apparent mismatches, this form of
  27557. attribute 'malloc' is not accepted on inline functions. For the
  27558. same reason, using the attribute prevents both the allocation and
  27559. deallocation functions from being expanded inline.
  27560. For example, besides stating that the functions return pointers
  27561. that do not alias any others, the following declarations make
  27562. 'fclose' a suitable deallocator for pointers returned from all
  27563. functions except 'popen', and 'pclose' as the only suitable
  27564. deallocator for pointers returned from 'popen'. The deallocator
  27565. functions must be declared before they can be referenced in the
  27566. attribute.
  27567. int fclose (FILE*);
  27568. int pclose (FILE*);
  27569. __attribute__ ((malloc, malloc (fclose, 1)))
  27570. FILE* fdopen (int, const char*);
  27571. __attribute__ ((malloc, malloc (fclose, 1)))
  27572. FILE* fopen (const char*, const char*);
  27573. __attribute__ ((malloc, malloc (fclose, 1)))
  27574. FILE* fmemopen(void *, size_t, const char *);
  27575. __attribute__ ((malloc, malloc (pclose, 1)))
  27576. FILE* popen (const char*, const char*);
  27577. __attribute__ ((malloc, malloc (fclose, 1)))
  27578. FILE* tmpfile (void);
  27579. The warnings guarded by '-fanalyzer' respect allocation and
  27580. deallocation pairs marked with the 'malloc'. In particular:
  27581. * The analyzer will emit a '-Wanalyzer-mismatching-deallocation'
  27582. diagnostic if there is an execution path in which the result
  27583. of an allocation call is passed to a different deallocator.
  27584. * The analyzer will emit a '-Wanalyzer-double-free' diagnostic
  27585. if there is an execution path in which a value is passed more
  27586. than once to a deallocation call.
  27587. * The analyzer will consider the possibility that an allocation
  27588. function could fail and return NULL. It will emit
  27589. '-Wanalyzer-possible-null-dereference' and
  27590. '-Wanalyzer-possible-null-argument' diagnostics if there are
  27591. execution paths in which an unchecked result of an allocation
  27592. call is dereferenced or passed to a function requiring a
  27593. non-null argument. If the allocator always returns non-null,
  27594. use '__attribute__ ((returns_nonnull))' to suppress these
  27595. warnings. For example:
  27596. char *xstrdup (const char *)
  27597. __attribute__((malloc (free), returns_nonnull));
  27598. * The analyzer will emit a '-Wanalyzer-use-after-free'
  27599. diagnostic if there is an execution path in which the memory
  27600. passed by pointer to a deallocation call is used after the
  27601. deallocation.
  27602. * The analyzer will emit a '-Wanalyzer-malloc-leak' diagnostic
  27603. if there is an execution path in which the result of an
  27604. allocation call is leaked (without being passed to the
  27605. deallocation function).
  27606. * The analyzer will emit a '-Wanalyzer-free-of-non-heap'
  27607. diagnostic if a deallocation function is used on a global or
  27608. on-stack variable.
  27609. The analyzer assumes that deallocators can gracefully handle the
  27610. 'NULL' pointer. If this is not the case, the deallocator can be
  27611. marked with '__attribute__((nonnull))' so that '-fanalyzer' can
  27612. emit a '-Wanalyzer-possible-null-argument' diagnostic for code
  27613. paths in which the deallocator is called with NULL.
  27614. 'no_icf'
  27615. This function attribute prevents a functions from being merged with
  27616. another semantically equivalent function.
  27617. 'no_instrument_function'
  27618. If any of '-finstrument-functions', '-p', or '-pg' are given,
  27619. profiling function calls are generated at entry and exit of most
  27620. user-compiled functions. Functions with this attribute are not so
  27621. instrumented.
  27622. 'no_profile_instrument_function'
  27623. The 'no_profile_instrument_function' attribute on functions is used
  27624. to inform the compiler that it should not process any profile
  27625. feedback based optimization code instrumentation.
  27626. 'no_reorder'
  27627. Do not reorder functions or variables marked 'no_reorder' against
  27628. each other or top level assembler statements the executable. The
  27629. actual order in the program will depend on the linker command line.
  27630. Static variables marked like this are also not removed. This has a
  27631. similar effect as the '-fno-toplevel-reorder' option, but only
  27632. applies to the marked symbols.
  27633. 'no_sanitize ("SANITIZE_OPTION")'
  27634. The 'no_sanitize' attribute on functions is used to inform the
  27635. compiler that it should not do sanitization of any option mentioned
  27636. in SANITIZE_OPTION. A list of values acceptable by the
  27637. '-fsanitize' option can be provided.
  27638. void __attribute__ ((no_sanitize ("alignment", "object-size")))
  27639. f () { /* Do something. */; }
  27640. void __attribute__ ((no_sanitize ("alignment,object-size")))
  27641. g () { /* Do something. */; }
  27642. 'no_sanitize_address'
  27643. 'no_address_safety_analysis'
  27644. The 'no_sanitize_address' attribute on functions is used to inform
  27645. the compiler that it should not instrument memory accesses in the
  27646. function when compiling with the '-fsanitize=address' option. The
  27647. 'no_address_safety_analysis' is a deprecated alias of the
  27648. 'no_sanitize_address' attribute, new code should use
  27649. 'no_sanitize_address'.
  27650. 'no_sanitize_thread'
  27651. The 'no_sanitize_thread' attribute on functions is used to inform
  27652. the compiler that it should not instrument memory accesses in the
  27653. function when compiling with the '-fsanitize=thread' option.
  27654. 'no_sanitize_undefined'
  27655. The 'no_sanitize_undefined' attribute on functions is used to
  27656. inform the compiler that it should not check for undefined behavior
  27657. in the function when compiling with the '-fsanitize=undefined'
  27658. option.
  27659. 'no_split_stack'
  27660. If '-fsplit-stack' is given, functions have a small prologue which
  27661. decides whether to split the stack. Functions with the
  27662. 'no_split_stack' attribute do not have that prologue, and thus may
  27663. run with only a small amount of stack space available.
  27664. 'no_stack_limit'
  27665. This attribute locally overrides the '-fstack-limit-register' and
  27666. '-fstack-limit-symbol' command-line options; it has the effect of
  27667. disabling stack limit checking in the function it applies to.
  27668. 'noclone'
  27669. This function attribute prevents a function from being considered
  27670. for cloning--a mechanism that produces specialized copies of
  27671. functions and which is (currently) performed by interprocedural
  27672. constant propagation.
  27673. 'noinline'
  27674. This function attribute prevents a function from being considered
  27675. for inlining. If the function does not have side effects, there
  27676. are optimizations other than inlining that cause function calls to
  27677. be optimized away, although the function call is live. To keep
  27678. such calls from being optimized away, put
  27679. asm ("");
  27680. (*note Extended Asm::) in the called function, to serve as a
  27681. special side effect.
  27682. 'noipa'
  27683. Disable interprocedural optimizations between the function with
  27684. this attribute and its callers, as if the body of the function is
  27685. not available when optimizing callers and the callers are
  27686. unavailable when optimizing the body. This attribute implies
  27687. 'noinline', 'noclone' and 'no_icf' attributes. However, this
  27688. attribute is not equivalent to a combination of other attributes,
  27689. because its purpose is to suppress existing and future
  27690. optimizations employing interprocedural analysis, including those
  27691. that do not have an attribute suitable for disabling them
  27692. individually. This attribute is supported mainly for the purpose
  27693. of testing the compiler.
  27694. 'nonnull'
  27695. 'nonnull (ARG-INDEX, ...)'
  27696. The 'nonnull' attribute may be applied to a function that takes at
  27697. least one argument of a pointer type. It indicates that the
  27698. referenced arguments must be non-null pointers. For instance, the
  27699. declaration:
  27700. extern void *
  27701. my_memcpy (void *dest, const void *src, size_t len)
  27702. __attribute__((nonnull (1, 2)));
  27703. causes the compiler to check that, in calls to 'my_memcpy',
  27704. arguments DEST and SRC are non-null. If the compiler determines
  27705. that a null pointer is passed in an argument slot marked as
  27706. non-null, and the '-Wnonnull' option is enabled, a warning is
  27707. issued. *Note Warning Options::. Unless disabled by the
  27708. '-fno-delete-null-pointer-checks' option the compiler may also
  27709. perform optimizations based on the knowledge that certain function
  27710. arguments cannot be null. In addition, the
  27711. '-fisolate-erroneous-paths-attribute' option can be specified to
  27712. have GCC transform calls with null arguments to non-null functions
  27713. into traps. *Note Optimize Options::.
  27714. If no ARG-INDEX is given to the 'nonnull' attribute, all pointer
  27715. arguments are marked as non-null. To illustrate, the following
  27716. declaration is equivalent to the previous example:
  27717. extern void *
  27718. my_memcpy (void *dest, const void *src, size_t len)
  27719. __attribute__((nonnull));
  27720. 'noplt'
  27721. The 'noplt' attribute is the counterpart to option '-fno-plt'.
  27722. Calls to functions marked with this attribute in
  27723. position-independent code do not use the PLT.
  27724. /* Externally defined function foo. */
  27725. int foo () __attribute__ ((noplt));
  27726. int
  27727. main (/* ... */)
  27728. {
  27729. /* ... */
  27730. foo ();
  27731. /* ... */
  27732. }
  27733. The 'noplt' attribute on function 'foo' tells the compiler to
  27734. assume that the function 'foo' is externally defined and that the
  27735. call to 'foo' must avoid the PLT in position-independent code.
  27736. In position-dependent code, a few targets also convert calls to
  27737. functions that are marked to not use the PLT to use the GOT
  27738. instead.
  27739. 'noreturn'
  27740. A few standard library functions, such as 'abort' and 'exit',
  27741. cannot return. GCC knows this automatically. Some programs define
  27742. their own functions that never return. You can declare them
  27743. 'noreturn' to tell the compiler this fact. For example,
  27744. void fatal () __attribute__ ((noreturn));
  27745. void
  27746. fatal (/* ... */)
  27747. {
  27748. /* ... */ /* Print error message. */ /* ... */
  27749. exit (1);
  27750. }
  27751. The 'noreturn' keyword tells the compiler to assume that 'fatal'
  27752. cannot return. It can then optimize without regard to what would
  27753. happen if 'fatal' ever did return. This makes slightly better
  27754. code. More importantly, it helps avoid spurious warnings of
  27755. uninitialized variables.
  27756. The 'noreturn' keyword does not affect the exceptional path when
  27757. that applies: a 'noreturn'-marked function may still return to the
  27758. caller by throwing an exception or calling 'longjmp'.
  27759. In order to preserve backtraces, GCC will never turn calls to
  27760. 'noreturn' functions into tail calls.
  27761. Do not assume that registers saved by the calling function are
  27762. restored before calling the 'noreturn' function.
  27763. It does not make sense for a 'noreturn' function to have a return
  27764. type other than 'void'.
  27765. 'nothrow'
  27766. The 'nothrow' attribute is used to inform the compiler that a
  27767. function cannot throw an exception. For example, most functions in
  27768. the standard C library can be guaranteed not to throw an exception
  27769. with the notable exceptions of 'qsort' and 'bsearch' that take
  27770. function pointer arguments.
  27771. 'optimize (LEVEL, ...)'
  27772. 'optimize (STRING, ...)'
  27773. The 'optimize' attribute is used to specify that a function is to
  27774. be compiled with different optimization options than specified on
  27775. the command line. Valid arguments are constant non-negative
  27776. integers and strings. Each numeric argument specifies an
  27777. optimization LEVEL. Each STRING argument consists of one or more
  27778. comma-separated substrings. Each substring that begins with the
  27779. letter 'O' refers to an optimization option such as '-O0' or '-Os'.
  27780. Other substrings are taken as suffixes to the '-f' prefix jointly
  27781. forming the name of an optimization option. *Note Optimize
  27782. Options::.
  27783. '#pragma GCC optimize' can be used to set optimization options for
  27784. more than one function. *Note Function Specific Option Pragmas::,
  27785. for details about the pragma.
  27786. Providing multiple strings as arguments separated by commas to
  27787. specify multiple options is equivalent to separating the option
  27788. suffixes with a comma (',') within a single string. Spaces are not
  27789. permitted within the strings.
  27790. Not every optimization option that starts with the -F prefix
  27791. specified by the attribute necessarily has an effect on the
  27792. function. The 'optimize' attribute should be used for debugging
  27793. purposes only. It is not suitable in production code.
  27794. 'patchable_function_entry'
  27795. In case the target's text segment can be made writable at run time
  27796. by any means, padding the function entry with a number of NOPs can
  27797. be used to provide a universal tool for instrumentation.
  27798. The 'patchable_function_entry' function attribute can be used to
  27799. change the number of NOPs to any desired value. The two-value
  27800. syntax is the same as for the command-line switch
  27801. '-fpatchable-function-entry=N,M', generating N NOPs, with the
  27802. function entry point before the Mth NOP instruction. M defaults to
  27803. 0 if omitted e.g. function entry point is before the first NOP.
  27804. If patchable function entries are enabled globally using the
  27805. command-line option '-fpatchable-function-entry=N,M', then you must
  27806. disable instrumentation on all functions that are part of the
  27807. instrumentation framework with the attribute
  27808. 'patchable_function_entry (0)' to prevent recursion.
  27809. 'pure'
  27810. Calls to functions that have no observable effects on the state of
  27811. the program other than to return a value may lend themselves to
  27812. optimizations such as common subexpression elimination. Declaring
  27813. such functions with the 'pure' attribute allows GCC to avoid
  27814. emitting some calls in repeated invocations of the function with
  27815. the same argument values.
  27816. The 'pure' attribute prohibits a function from modifying the state
  27817. of the program that is observable by means other than inspecting
  27818. the function's return value. However, functions declared with the
  27819. 'pure' attribute can safely read any non-volatile objects, and
  27820. modify the value of objects in a way that does not affect their
  27821. return value or the observable state of the program.
  27822. For example,
  27823. int hash (char *) __attribute__ ((pure));
  27824. tells GCC that subsequent calls to the function 'hash' with the
  27825. same string can be replaced by the result of the first call
  27826. provided the state of the program observable by 'hash', including
  27827. the contents of the array itself, does not change in between. Even
  27828. though 'hash' takes a non-const pointer argument it must not modify
  27829. the array it points to, or any other object whose value the rest of
  27830. the program may depend on. However, the caller may safely change
  27831. the contents of the array between successive calls to the function
  27832. (doing so disables the optimization). The restriction also applies
  27833. to member objects referenced by the 'this' pointer in C++
  27834. non-static member functions.
  27835. Some common examples of pure functions are 'strlen' or 'memcmp'.
  27836. Interesting non-pure functions are functions with infinite loops or
  27837. those depending on volatile memory or other system resource, that
  27838. may change between consecutive calls (such as the standard C 'feof'
  27839. function in a multithreading environment).
  27840. The 'pure' attribute imposes similar but looser restrictions on a
  27841. function's definition than the 'const' attribute: 'pure' allows the
  27842. function to read any non-volatile memory, even if it changes in
  27843. between successive invocations of the function. Declaring the same
  27844. function with both the 'pure' and the 'const' attribute is
  27845. diagnosed. Because a pure function cannot have any observable side
  27846. effects it does not make sense for such a function to return
  27847. 'void'. Declaring such a function is diagnosed.
  27848. 'returns_nonnull'
  27849. The 'returns_nonnull' attribute specifies that the function return
  27850. value should be a non-null pointer. For instance, the declaration:
  27851. extern void *
  27852. mymalloc (size_t len) __attribute__((returns_nonnull));
  27853. lets the compiler optimize callers based on the knowledge that the
  27854. return value will never be null.
  27855. 'returns_twice'
  27856. The 'returns_twice' attribute tells the compiler that a function
  27857. may return more than one time. The compiler ensures that all
  27858. registers are dead before calling such a function and emits a
  27859. warning about the variables that may be clobbered after the second
  27860. return from the function. Examples of such functions are 'setjmp'
  27861. and 'vfork'. The 'longjmp'-like counterpart of such function, if
  27862. any, might need to be marked with the 'noreturn' attribute.
  27863. 'section ("SECTION-NAME")'
  27864. Normally, the compiler places the code it generates in the 'text'
  27865. section. Sometimes, however, you need additional sections, or you
  27866. need certain particular functions to appear in special sections.
  27867. The 'section' attribute specifies that a function lives in a
  27868. particular section. For example, the declaration:
  27869. extern void foobar (void) __attribute__ ((section ("bar")));
  27870. puts the function 'foobar' in the 'bar' section.
  27871. Some file formats do not support arbitrary sections so the
  27872. 'section' attribute is not available on all platforms. If you need
  27873. to map the entire contents of a module to a particular section,
  27874. consider using the facilities of the linker instead.
  27875. 'sentinel'
  27876. 'sentinel (POSITION)'
  27877. This function attribute indicates that an argument in a call to the
  27878. function is expected to be an explicit 'NULL'. The attribute is
  27879. only valid on variadic functions. By default, the sentinel is
  27880. expected to be the last argument of the function call. If the
  27881. optional POSITION argument is specified to the attribute, the
  27882. sentinel must be located at POSITION counting backwards from the
  27883. end of the argument list.
  27884. __attribute__ ((sentinel))
  27885. is equivalent to
  27886. __attribute__ ((sentinel(0)))
  27887. The attribute is automatically set with a position of 0 for the
  27888. built-in functions 'execl' and 'execlp'. The built-in function
  27889. 'execle' has the attribute set with a position of 1.
  27890. A valid 'NULL' in this context is defined as zero with any object
  27891. pointer type. If your system defines the 'NULL' macro with an
  27892. integer type then you need to add an explicit cast. During
  27893. installation GCC replaces the system '<stddef.h>' header with a
  27894. copy that redefines NULL appropriately.
  27895. The warnings for missing or incorrect sentinels are enabled with
  27896. '-Wformat'.
  27897. 'simd'
  27898. 'simd("MASK")'
  27899. This attribute enables creation of one or more function versions
  27900. that can process multiple arguments using SIMD instructions from a
  27901. single invocation. Specifying this attribute allows compiler to
  27902. assume that such versions are available at link time (provided in
  27903. the same or another translation unit). Generated versions are
  27904. target-dependent and described in the corresponding Vector ABI
  27905. document. For x86_64 target this document can be found
  27906. here (https://sourceware.org/glibc/wiki/libmvec?action=AttachFile&do=view&target=VectorABI.txt).
  27907. The optional argument MASK may have the value 'notinbranch' or
  27908. 'inbranch', and instructs the compiler to generate non-masked or
  27909. masked clones correspondingly. By default, all clones are
  27910. generated.
  27911. If the attribute is specified and '#pragma omp declare simd' is
  27912. present on a declaration and the '-fopenmp' or '-fopenmp-simd'
  27913. switch is specified, then the attribute is ignored.
  27914. 'stack_protect'
  27915. This attribute adds stack protection code to the function if flags
  27916. '-fstack-protector', '-fstack-protector-strong' or
  27917. '-fstack-protector-explicit' are set.
  27918. 'no_stack_protector'
  27919. This attribute prevents stack protection code for the function.
  27920. 'target (STRING, ...)'
  27921. Multiple target back ends implement the 'target' attribute to
  27922. specify that a function is to be compiled with different target
  27923. options than specified on the command line. One or more strings
  27924. can be provided as arguments. Each string consists of one or more
  27925. comma-separated suffixes to the '-m' prefix jointly forming the
  27926. name of a machine-dependent option. *Note Machine-Dependent
  27927. Options: Submodel Options.
  27928. The 'target' attribute can be used for instance to have a function
  27929. compiled with a different ISA (instruction set architecture) than
  27930. the default. '#pragma GCC target' can be used to specify
  27931. target-specific options for more than one function. *Note Function
  27932. Specific Option Pragmas::, for details about the pragma.
  27933. For instance, on an x86, you could declare one function with the
  27934. 'target("sse4.1,arch=core2")' attribute and another with
  27935. 'target("sse4a,arch=amdfam10")'. This is equivalent to compiling
  27936. the first function with '-msse4.1' and '-march=core2' options, and
  27937. the second function with '-msse4a' and '-march=amdfam10' options.
  27938. It is up to you to make sure that a function is only invoked on a
  27939. machine that supports the particular ISA it is compiled for (for
  27940. example by using 'cpuid' on x86 to determine what feature bits and
  27941. architecture family are used).
  27942. int core2_func (void) __attribute__ ((__target__ ("arch=core2")));
  27943. int sse3_func (void) __attribute__ ((__target__ ("sse3")));
  27944. Providing multiple strings as arguments separated by commas to
  27945. specify multiple options is equivalent to separating the option
  27946. suffixes with a comma (',') within a single string. Spaces are not
  27947. permitted within the strings.
  27948. The options supported are specific to each target; refer to *note
  27949. x86 Function Attributes::, *note PowerPC Function Attributes::,
  27950. *note ARM Function Attributes::, *note AArch64 Function
  27951. Attributes::, *note Nios II Function Attributes::, and *note S/390
  27952. Function Attributes:: for details.
  27953. 'symver ("NAME2@NODENAME")'
  27954. On ELF targets this attribute creates a symbol version. The NAME2
  27955. part of the parameter is the actual name of the symbol by which it
  27956. will be externally referenced. The 'nodename' portion should be
  27957. the name of a node specified in the version script supplied to the
  27958. linker when building a shared library. Versioned symbol must be
  27959. defined and must be exported with default visibility.
  27960. __attribute__ ((__symver__ ("foo@VERS_1"))) int
  27961. foo_v1 (void)
  27962. {
  27963. }
  27964. Will produce a '.symver foo_v1, foo@VERS_1' directive in the
  27965. assembler output.
  27966. One can also define multiple version for a given symbol (starting
  27967. from binutils 2.35).
  27968. __attribute__ ((__symver__ ("foo@VERS_2"), __symver__ ("foo@VERS_3")))
  27969. int symver_foo_v1 (void)
  27970. {
  27971. }
  27972. This example creates a symbol name 'symver_foo_v1' which will be
  27973. version 'VERS_2' and 'VERS_3' of 'foo'.
  27974. If you have an older release of binutils, then symbol alias needs
  27975. to be used:
  27976. __attribute__ ((__symver__ ("foo@VERS_2")))
  27977. int foo_v1 (void)
  27978. {
  27979. return 0;
  27980. }
  27981. __attribute__ ((__symver__ ("foo@VERS_3")))
  27982. __attribute__ ((alias ("foo_v1")))
  27983. int symver_foo_v1 (void);
  27984. Finally if the parameter is '"NAME2@@NODENAME"' then in addition to
  27985. creating a symbol version (as if '"NAME2@NODENAME"' was used) the
  27986. version will be also used to resolve NAME2 by the linker.
  27987. 'target_clones (OPTIONS)'
  27988. The 'target_clones' attribute is used to specify that a function be
  27989. cloned into multiple versions compiled with different target
  27990. options than specified on the command line. The supported options
  27991. and restrictions are the same as for 'target' attribute.
  27992. For instance, on an x86, you could compile a function with
  27993. 'target_clones("sse4.1,avx")'. GCC creates two function clones,
  27994. one compiled with '-msse4.1' and another with '-mavx'.
  27995. On a PowerPC, you can compile a function with
  27996. 'target_clones("cpu=power9,default")'. GCC will create two
  27997. function clones, one compiled with '-mcpu=power9' and another with
  27998. the default options. GCC must be configured to use GLIBC 2.23 or
  27999. newer in order to use the 'target_clones' attribute.
  28000. It also creates a resolver function (see the 'ifunc' attribute
  28001. above) that dynamically selects a clone suitable for current
  28002. architecture. The resolver is created only if there is a usage of
  28003. a function with 'target_clones' attribute.
  28004. Note that any subsequent call of a function without 'target_clone'
  28005. from a 'target_clone' caller will not lead to copying (target
  28006. clone) of the called function. If you want to enforce such
  28007. behaviour, we recommend declaring the calling function with the
  28008. 'flatten' attribute?
  28009. 'unused'
  28010. This attribute, attached to a function, means that the function is
  28011. meant to be possibly unused. GCC does not produce a warning for
  28012. this function.
  28013. 'used'
  28014. This attribute, attached to a function, means that code must be
  28015. emitted for the function even if it appears that the function is
  28016. not referenced. This is useful, for example, when the function is
  28017. referenced only in inline assembly.
  28018. When applied to a member function of a C++ class template, the
  28019. attribute also means that the function is instantiated if the class
  28020. itself is instantiated.
  28021. 'retain'
  28022. For ELF targets that support the GNU or FreeBSD OSABIs, this
  28023. attribute will save the function from linker garbage collection.
  28024. To support this behavior, functions that have not been placed in
  28025. specific sections (e.g. by the 'section' attribute, or the
  28026. '-ffunction-sections' option), will be placed in new, unique
  28027. sections.
  28028. This additional functionality requires Binutils version 2.36 or
  28029. later.
  28030. 'visibility ("VISIBILITY_TYPE")'
  28031. This attribute affects the linkage of the declaration to which it
  28032. is attached. It can be applied to variables (*note Common Variable
  28033. Attributes::) and types (*note Common Type Attributes::) as well as
  28034. functions.
  28035. There are four supported VISIBILITY_TYPE values: default, hidden,
  28036. protected or internal visibility.
  28037. void __attribute__ ((visibility ("protected")))
  28038. f () { /* Do something. */; }
  28039. int i __attribute__ ((visibility ("hidden")));
  28040. The possible values of VISIBILITY_TYPE correspond to the visibility
  28041. settings in the ELF gABI.
  28042. 'default'
  28043. Default visibility is the normal case for the object file
  28044. format. This value is available for the visibility attribute
  28045. to override other options that may change the assumed
  28046. visibility of entities.
  28047. On ELF, default visibility means that the declaration is
  28048. visible to other modules and, in shared libraries, means that
  28049. the declared entity may be overridden.
  28050. On Darwin, default visibility means that the declaration is
  28051. visible to other modules.
  28052. Default visibility corresponds to "external linkage" in the
  28053. language.
  28054. 'hidden'
  28055. Hidden visibility indicates that the entity declared has a new
  28056. form of linkage, which we call "hidden linkage". Two
  28057. declarations of an object with hidden linkage refer to the
  28058. same object if they are in the same shared object.
  28059. 'internal'
  28060. Internal visibility is like hidden visibility, but with
  28061. additional processor specific semantics. Unless otherwise
  28062. specified by the psABI, GCC defines internal visibility to
  28063. mean that a function is _never_ called from another module.
  28064. Compare this with hidden functions which, while they cannot be
  28065. referenced directly by other modules, can be referenced
  28066. indirectly via function pointers. By indicating that a
  28067. function cannot be called from outside the module, GCC may for
  28068. instance omit the load of a PIC register since it is known
  28069. that the calling function loaded the correct value.
  28070. 'protected'
  28071. Protected visibility is like default visibility except that it
  28072. indicates that references within the defining module bind to
  28073. the definition in that module. That is, the declared entity
  28074. cannot be overridden by another module.
  28075. All visibilities are supported on many, but not all, ELF targets
  28076. (supported when the assembler supports the '.visibility'
  28077. pseudo-op). Default visibility is supported everywhere. Hidden
  28078. visibility is supported on Darwin targets.
  28079. The visibility attribute should be applied only to declarations
  28080. that would otherwise have external linkage. The attribute should
  28081. be applied consistently, so that the same entity should not be
  28082. declared with different settings of the attribute.
  28083. In C++, the visibility attribute applies to types as well as
  28084. functions and objects, because in C++ types have linkage. A class
  28085. must not have greater visibility than its non-static data member
  28086. types and bases, and class members default to the visibility of
  28087. their class. Also, a declaration without explicit visibility is
  28088. limited to the visibility of its type.
  28089. In C++, you can mark member functions and static member variables
  28090. of a class with the visibility attribute. This is useful if you
  28091. know a particular method or static member variable should only be
  28092. used from one shared object; then you can mark it hidden while the
  28093. rest of the class has default visibility. Care must be taken to
  28094. avoid breaking the One Definition Rule; for example, it is usually
  28095. not useful to mark an inline method as hidden without marking the
  28096. whole class as hidden.
  28097. A C++ namespace declaration can also have the visibility attribute.
  28098. namespace nspace1 __attribute__ ((visibility ("protected")))
  28099. { /* Do something. */; }
  28100. This attribute applies only to the particular namespace body, not
  28101. to other definitions of the same namespace; it is equivalent to
  28102. using '#pragma GCC visibility' before and after the namespace
  28103. definition (*note Visibility Pragmas::).
  28104. In C++, if a template argument has limited visibility, this
  28105. restriction is implicitly propagated to the template instantiation.
  28106. Otherwise, template instantiations and specializations default to
  28107. the visibility of their template.
  28108. If both the template and enclosing class have explicit visibility,
  28109. the visibility from the template is used.
  28110. 'warn_unused_result'
  28111. The 'warn_unused_result' attribute causes a warning to be emitted
  28112. if a caller of the function with this attribute does not use its
  28113. return value. This is useful for functions where not checking the
  28114. result is either a security problem or always a bug, such as
  28115. 'realloc'.
  28116. int fn () __attribute__ ((warn_unused_result));
  28117. int foo ()
  28118. {
  28119. if (fn () < 0) return -1;
  28120. fn ();
  28121. return 0;
  28122. }
  28123. results in warning on line 5.
  28124. 'weak'
  28125. The 'weak' attribute causes a declaration of an external symbol to
  28126. be emitted as a weak symbol rather than a global. This is
  28127. primarily useful in defining library functions that can be
  28128. overridden in user code, though it can also be used with
  28129. non-function declarations. The overriding symbol must have the
  28130. same type as the weak symbol. In addition, if it designates a
  28131. variable it must also have the same size and alignment as the weak
  28132. symbol. Weak symbols are supported for ELF targets, and also for
  28133. a.out targets when using the GNU assembler and linker.
  28134. 'weakref'
  28135. 'weakref ("TARGET")'
  28136. The 'weakref' attribute marks a declaration as a weak reference.
  28137. Without arguments, it should be accompanied by an 'alias' attribute
  28138. naming the target symbol. Alternatively, TARGET may be given as an
  28139. argument to 'weakref' itself, naming the target definition of the
  28140. alias. The TARGET must have the same type as the declaration. In
  28141. addition, if it designates a variable it must also have the same
  28142. size and alignment as the declaration. In either form of the
  28143. declaration 'weakref' implicitly marks the declared symbol as
  28144. 'weak'. Without a TARGET given as an argument to 'weakref' or to
  28145. 'alias', 'weakref' is equivalent to 'weak' (in that case the
  28146. declaration may be 'extern').
  28147. /* Given the declaration: */
  28148. extern int y (void);
  28149. /* the following... */
  28150. static int x (void) __attribute__ ((weakref ("y")));
  28151. /* is equivalent to... */
  28152. static int x (void) __attribute__ ((weakref, alias ("y")));
  28153. /* or, alternatively, to... */
  28154. static int x (void) __attribute__ ((weakref));
  28155. static int x (void) __attribute__ ((alias ("y")));
  28156. A weak reference is an alias that does not by itself require a
  28157. definition to be given for the target symbol. If the target symbol
  28158. is only referenced through weak references, then it becomes a
  28159. 'weak' undefined symbol. If it is directly referenced, however,
  28160. then such strong references prevail, and a definition is required
  28161. for the symbol, not necessarily in the same translation unit.
  28162. The effect is equivalent to moving all references to the alias to a
  28163. separate translation unit, renaming the alias to the aliased
  28164. symbol, declaring it as weak, compiling the two separate
  28165. translation units and performing a link with relocatable output
  28166. (i.e. 'ld -r') on them.
  28167. A declaration to which 'weakref' is attached and that is associated
  28168. with a named 'target' must be 'static'.
  28169. 'zero_call_used_regs ("CHOICE")'
  28170. The 'zero_call_used_regs' attribute causes the compiler to zero a
  28171. subset of all call-used registers(1) at function return. This is
  28172. used to increase program security by either mitigating
  28173. Return-Oriented Programming (ROP) attacks or preventing information
  28174. leakage through registers.
  28175. In order to satisfy users with different security needs and control
  28176. the run-time overhead at the same time, the CHOICE parameter
  28177. provides a flexible way to choose the subset of the call-used
  28178. registers to be zeroed. The three basic values of CHOICE are:
  28179. * 'skip' doesn't zero any call-used registers.
  28180. * 'used' only zeros call-used registers that are used in the
  28181. function. A "used" register is one whose content has been set
  28182. or referenced in the function.
  28183. * 'all' zeros all call-used registers.
  28184. In addition to these three basic choices, it is possible to modify
  28185. 'used' or 'all' as follows:
  28186. * Adding '-gpr' restricts the zeroing to general-purpose
  28187. registers.
  28188. * Adding '-arg' restricts the zeroing to registers that can
  28189. sometimes be used to pass function arguments. This includes
  28190. all argument registers defined by the platform's calling
  28191. conversion, regardless of whether the function uses those
  28192. registers for function arguments or not.
  28193. The modifiers can be used individually or together. If they are
  28194. used together, they must appear in the order above.
  28195. The full list of CHOICEs is therefore:
  28196. 'skip'
  28197. doesn't zero any call-used register.
  28198. 'used'
  28199. only zeros call-used registers that are used in the function.
  28200. 'used-gpr'
  28201. only zeros call-used general purpose registers that are used
  28202. in the function.
  28203. 'used-arg'
  28204. only zeros call-used registers that are used in the function
  28205. and pass arguments.
  28206. 'used-gpr-arg'
  28207. only zeros call-used general purpose registers that are used
  28208. in the function and pass arguments.
  28209. 'all'
  28210. zeros all call-used registers.
  28211. 'all-gpr'
  28212. zeros all call-used general purpose registers.
  28213. 'all-arg'
  28214. zeros all call-used registers that pass arguments.
  28215. 'all-gpr-arg'
  28216. zeros all call-used general purpose registers that pass
  28217. arguments.
  28218. Of this list, 'used-arg', 'used-gpr-arg', 'all-arg', and
  28219. 'all-gpr-arg' are mainly used for ROP mitigation.
  28220. The default for the attribute is controlled by
  28221. '-fzero-call-used-regs'.
  28222. ---------- Footnotes ----------
  28223. (1) A "call-used" register is a register whose contents can be
  28224. changed by a function call; therefore, a caller cannot assume that the
  28225. register has the same contents on return from the function as it had
  28226. before calling the function. Such registers are also called
  28227. "call-clobbered", "caller-saved", or "volatile".
  28228. 
  28229. File: gcc.info, Node: AArch64 Function Attributes, Next: AMD GCN Function Attributes, Prev: Common Function Attributes, Up: Function Attributes
  28230. 6.33.2 AArch64 Function Attributes
  28231. ----------------------------------
  28232. The following target-specific function attributes are available for the
  28233. AArch64 target. For the most part, these options mirror the behavior of
  28234. similar command-line options (*note AArch64 Options::), but on a
  28235. per-function basis.
  28236. 'general-regs-only'
  28237. Indicates that no floating-point or Advanced SIMD registers should
  28238. be used when generating code for this function. If the function
  28239. explicitly uses floating-point code, then the compiler gives an
  28240. error. This is the same behavior as that of the command-line
  28241. option '-mgeneral-regs-only'.
  28242. 'fix-cortex-a53-835769'
  28243. Indicates that the workaround for the Cortex-A53 erratum 835769
  28244. should be applied to this function. To explicitly disable the
  28245. workaround for this function specify the negated form:
  28246. 'no-fix-cortex-a53-835769'. This corresponds to the behavior of
  28247. the command line options '-mfix-cortex-a53-835769' and
  28248. '-mno-fix-cortex-a53-835769'.
  28249. 'cmodel='
  28250. Indicates that code should be generated for a particular code model
  28251. for this function. The behavior and permissible arguments are the
  28252. same as for the command line option '-mcmodel='.
  28253. 'strict-align'
  28254. 'no-strict-align'
  28255. 'strict-align' indicates that the compiler should not assume that
  28256. unaligned memory references are handled by the system. To allow
  28257. the compiler to assume that aligned memory references are handled
  28258. by the system, the inverse attribute 'no-strict-align' can be
  28259. specified. The behavior is same as for the command-line option
  28260. '-mstrict-align' and '-mno-strict-align'.
  28261. 'omit-leaf-frame-pointer'
  28262. Indicates that the frame pointer should be omitted for a leaf
  28263. function call. To keep the frame pointer, the inverse attribute
  28264. 'no-omit-leaf-frame-pointer' can be specified. These attributes
  28265. have the same behavior as the command-line options
  28266. '-momit-leaf-frame-pointer' and '-mno-omit-leaf-frame-pointer'.
  28267. 'tls-dialect='
  28268. Specifies the TLS dialect to use for this function. The behavior
  28269. and permissible arguments are the same as for the command-line
  28270. option '-mtls-dialect='.
  28271. 'arch='
  28272. Specifies the architecture version and architectural extensions to
  28273. use for this function. The behavior and permissible arguments are
  28274. the same as for the '-march=' command-line option.
  28275. 'tune='
  28276. Specifies the core for which to tune the performance of this
  28277. function. The behavior and permissible arguments are the same as
  28278. for the '-mtune=' command-line option.
  28279. 'cpu='
  28280. Specifies the core for which to tune the performance of this
  28281. function and also whose architectural features to use. The
  28282. behavior and valid arguments are the same as for the '-mcpu='
  28283. command-line option.
  28284. 'sign-return-address'
  28285. Select the function scope on which return address signing will be
  28286. applied. The behavior and permissible arguments are the same as
  28287. for the command-line option '-msign-return-address='. The default
  28288. value is 'none'. This attribute is deprecated. The
  28289. 'branch-protection' attribute should be used instead.
  28290. 'branch-protection'
  28291. Select the function scope on which branch protection will be
  28292. applied. The behavior and permissible arguments are the same as
  28293. for the command-line option '-mbranch-protection='. The default
  28294. value is 'none'.
  28295. 'outline-atomics'
  28296. Enable or disable calls to out-of-line helpers to implement atomic
  28297. operations. This corresponds to the behavior of the command line
  28298. options '-moutline-atomics' and '-mno-outline-atomics'.
  28299. The above target attributes can be specified as follows:
  28300. __attribute__((target("ATTR-STRING")))
  28301. int
  28302. f (int a)
  28303. {
  28304. return a + 5;
  28305. }
  28306. where 'ATTR-STRING' is one of the attribute strings specified above.
  28307. Additionally, the architectural extension string may be specified on
  28308. its own. This can be used to turn on and off particular architectural
  28309. extensions without having to specify a particular architecture version
  28310. or core. Example:
  28311. __attribute__((target("+crc+nocrypto")))
  28312. int
  28313. foo (int a)
  28314. {
  28315. return a + 5;
  28316. }
  28317. In this example 'target("+crc+nocrypto")' enables the 'crc' extension
  28318. and disables the 'crypto' extension for the function 'foo' without
  28319. modifying an existing '-march=' or '-mcpu' option.
  28320. Multiple target function attributes can be specified by separating them
  28321. with a comma. For example:
  28322. __attribute__((target("arch=armv8-a+crc+crypto,tune=cortex-a53")))
  28323. int
  28324. foo (int a)
  28325. {
  28326. return a + 5;
  28327. }
  28328. is valid and compiles function 'foo' for ARMv8-A with 'crc' and
  28329. 'crypto' extensions and tunes it for 'cortex-a53'.
  28330. 6.33.2.1 Inlining rules
  28331. .......................
  28332. Specifying target attributes on individual functions or performing
  28333. link-time optimization across translation units compiled with different
  28334. target options can affect function inlining rules:
  28335. In particular, a caller function can inline a callee function only if
  28336. the architectural features available to the callee are a subset of the
  28337. features available to the caller. For example: A function 'foo'
  28338. compiled with '-march=armv8-a+crc', or tagged with the equivalent
  28339. 'arch=armv8-a+crc' attribute, can inline a function 'bar' compiled with
  28340. '-march=armv8-a+nocrc' because the all the architectural features that
  28341. function 'bar' requires are available to function 'foo'. Conversely,
  28342. function 'bar' cannot inline function 'foo'.
  28343. Additionally inlining a function compiled with '-mstrict-align' into a
  28344. function compiled without '-mstrict-align' is not allowed. However,
  28345. inlining a function compiled without '-mstrict-align' into a function
  28346. compiled with '-mstrict-align' is allowed.
  28347. Note that CPU tuning options and attributes such as the '-mcpu=',
  28348. '-mtune=' do not inhibit inlining unless the CPU specified by the
  28349. '-mcpu=' option or the 'cpu=' attribute conflicts with the architectural
  28350. feature rules specified above.
  28351. 
  28352. File: gcc.info, Node: AMD GCN Function Attributes, Next: ARC Function Attributes, Prev: AArch64 Function Attributes, Up: Function Attributes
  28353. 6.33.3 AMD GCN Function Attributes
  28354. ----------------------------------
  28355. These function attributes are supported by the AMD GCN back end:
  28356. 'amdgpu_hsa_kernel'
  28357. This attribute indicates that the corresponding function should be
  28358. compiled as a kernel function, that is an entry point that can be
  28359. invoked from the host via the HSA runtime library. By default
  28360. functions are only callable only from other GCN functions.
  28361. This attribute is implicitly applied to any function named 'main',
  28362. using default parameters.
  28363. Kernel functions may return an integer value, which will be written
  28364. to a conventional place within the HSA "kernargs" region.
  28365. The attribute parameters configure what values are passed into the
  28366. kernel function by the GPU drivers, via the initial register state.
  28367. Some values are used by the compiler, and therefore forced on.
  28368. Enabling other options may break assumptions in the compiler and/or
  28369. run-time libraries.
  28370. 'private_segment_buffer'
  28371. Set 'enable_sgpr_private_segment_buffer' flag. Always on
  28372. (required to locate the stack).
  28373. 'dispatch_ptr'
  28374. Set 'enable_sgpr_dispatch_ptr' flag. Always on (required to
  28375. locate the launch dimensions).
  28376. 'queue_ptr'
  28377. Set 'enable_sgpr_queue_ptr' flag. Always on (required to
  28378. convert address spaces).
  28379. 'kernarg_segment_ptr'
  28380. Set 'enable_sgpr_kernarg_segment_ptr' flag. Always on
  28381. (required to locate the kernel arguments, "kernargs").
  28382. 'dispatch_id'
  28383. Set 'enable_sgpr_dispatch_id' flag.
  28384. 'flat_scratch_init'
  28385. Set 'enable_sgpr_flat_scratch_init' flag.
  28386. 'private_segment_size'
  28387. Set 'enable_sgpr_private_segment_size' flag.
  28388. 'grid_workgroup_count_X'
  28389. Set 'enable_sgpr_grid_workgroup_count_x' flag. Always on
  28390. (required to use OpenACC/OpenMP).
  28391. 'grid_workgroup_count_Y'
  28392. Set 'enable_sgpr_grid_workgroup_count_y' flag.
  28393. 'grid_workgroup_count_Z'
  28394. Set 'enable_sgpr_grid_workgroup_count_z' flag.
  28395. 'workgroup_id_X'
  28396. Set 'enable_sgpr_workgroup_id_x' flag.
  28397. 'workgroup_id_Y'
  28398. Set 'enable_sgpr_workgroup_id_y' flag.
  28399. 'workgroup_id_Z'
  28400. Set 'enable_sgpr_workgroup_id_z' flag.
  28401. 'workgroup_info'
  28402. Set 'enable_sgpr_workgroup_info' flag.
  28403. 'private_segment_wave_offset'
  28404. Set 'enable_sgpr_private_segment_wave_byte_offset' flag.
  28405. Always on (required to locate the stack).
  28406. 'work_item_id_X'
  28407. Set 'enable_vgpr_workitem_id' parameter. Always on (can't be
  28408. disabled).
  28409. 'work_item_id_Y'
  28410. Set 'enable_vgpr_workitem_id' parameter. Always on (required
  28411. to enable vectorization.)
  28412. 'work_item_id_Z'
  28413. Set 'enable_vgpr_workitem_id' parameter. Always on (required
  28414. to use OpenACC/OpenMP).
  28415. 
  28416. File: gcc.info, Node: ARC Function Attributes, Next: ARM Function Attributes, Prev: AMD GCN Function Attributes, Up: Function Attributes
  28417. 6.33.4 ARC Function Attributes
  28418. ------------------------------
  28419. These function attributes are supported by the ARC back end:
  28420. 'interrupt'
  28421. Use this attribute to indicate that the specified function is an
  28422. interrupt handler. The compiler generates function entry and exit
  28423. sequences suitable for use in an interrupt handler when this
  28424. attribute is present.
  28425. On the ARC, you must specify the kind of interrupt to be handled in
  28426. a parameter to the interrupt attribute like this:
  28427. void f () __attribute__ ((interrupt ("ilink1")));
  28428. Permissible values for this parameter are: 'ilink1' and 'ilink2'
  28429. for ARCv1 architecture, and 'ilink' and 'firq' for ARCv2
  28430. architecture.
  28431. 'long_call'
  28432. 'medium_call'
  28433. 'short_call'
  28434. These attributes specify how a particular function is called.
  28435. These attributes override the '-mlong-calls' and '-mmedium-calls'
  28436. (*note ARC Options::) command-line switches and '#pragma
  28437. long_calls' settings.
  28438. For ARC, a function marked with the 'long_call' attribute is always
  28439. called using register-indirect jump-and-link instructions, thereby
  28440. enabling the called function to be placed anywhere within the
  28441. 32-bit address space. A function marked with the 'medium_call'
  28442. attribute will always be close enough to be called with an
  28443. unconditional branch-and-link instruction, which has a 25-bit
  28444. offset from the call site. A function marked with the 'short_call'
  28445. attribute will always be close enough to be called with a
  28446. conditional branch-and-link instruction, which has a 21-bit offset
  28447. from the call site.
  28448. 'jli_always'
  28449. Forces a particular function to be called using 'jli' instruction.
  28450. The 'jli' instruction makes use of a table stored into '.jlitab'
  28451. section, which holds the location of the functions which are
  28452. addressed using this instruction.
  28453. 'jli_fixed'
  28454. Identical like the above one, but the location of the function in
  28455. the 'jli' table is known and given as an attribute parameter.
  28456. 'secure_call'
  28457. This attribute allows one to mark secure-code functions that are
  28458. callable from normal mode. The location of the secure call
  28459. function into the 'sjli' table needs to be passed as argument.
  28460. 'naked'
  28461. This attribute allows the compiler to construct the requisite
  28462. function declaration, while allowing the body of the function to be
  28463. assembly code. The specified function will not have
  28464. prologue/epilogue sequences generated by the compiler. Only basic
  28465. 'asm' statements can safely be included in naked functions (*note
  28466. Basic Asm::). While using extended 'asm' or a mixture of basic
  28467. 'asm' and C code may appear to work, they cannot be depended upon
  28468. to work reliably and are not supported.
  28469. 
  28470. File: gcc.info, Node: ARM Function Attributes, Next: AVR Function Attributes, Prev: ARC Function Attributes, Up: Function Attributes
  28471. 6.33.5 ARM Function Attributes
  28472. ------------------------------
  28473. These function attributes are supported for ARM targets:
  28474. 'general-regs-only'
  28475. Indicates that no floating-point or Advanced SIMD registers should
  28476. be used when generating code for this function. If the function
  28477. explicitly uses floating-point code, then the compiler gives an
  28478. error. This is the same behavior as that of the command-line
  28479. option '-mgeneral-regs-only'.
  28480. 'interrupt'
  28481. Use this attribute to indicate that the specified function is an
  28482. interrupt handler. The compiler generates function entry and exit
  28483. sequences suitable for use in an interrupt handler when this
  28484. attribute is present.
  28485. You can specify the kind of interrupt to be handled by adding an
  28486. optional parameter to the interrupt attribute like this:
  28487. void f () __attribute__ ((interrupt ("IRQ")));
  28488. Permissible values for this parameter are: 'IRQ', 'FIQ', 'SWI',
  28489. 'ABORT' and 'UNDEF'.
  28490. On ARMv7-M the interrupt type is ignored, and the attribute means
  28491. the function may be called with a word-aligned stack pointer.
  28492. 'isr'
  28493. Use this attribute on ARM to write Interrupt Service Routines.
  28494. This is an alias to the 'interrupt' attribute above.
  28495. 'long_call'
  28496. 'short_call'
  28497. These attributes specify how a particular function is called.
  28498. These attributes override the '-mlong-calls' (*note ARM Options::)
  28499. command-line switch and '#pragma long_calls' settings. For ARM,
  28500. the 'long_call' attribute indicates that the function might be far
  28501. away from the call site and require a different (more expensive)
  28502. calling sequence. The 'short_call' attribute always places the
  28503. offset to the function from the call site into the 'BL' instruction
  28504. directly.
  28505. 'naked'
  28506. This attribute allows the compiler to construct the requisite
  28507. function declaration, while allowing the body of the function to be
  28508. assembly code. The specified function will not have
  28509. prologue/epilogue sequences generated by the compiler. Only basic
  28510. 'asm' statements can safely be included in naked functions (*note
  28511. Basic Asm::). While using extended 'asm' or a mixture of basic
  28512. 'asm' and C code may appear to work, they cannot be depended upon
  28513. to work reliably and are not supported.
  28514. 'pcs'
  28515. The 'pcs' attribute can be used to control the calling convention
  28516. used for a function on ARM. The attribute takes an argument that
  28517. specifies the calling convention to use.
  28518. When compiling using the AAPCS ABI (or a variant of it) then valid
  28519. values for the argument are '"aapcs"' and '"aapcs-vfp"'. In order
  28520. to use a variant other than '"aapcs"' then the compiler must be
  28521. permitted to use the appropriate co-processor registers (i.e., the
  28522. VFP registers must be available in order to use '"aapcs-vfp"').
  28523. For example,
  28524. /* Argument passed in r0, and result returned in r0+r1. */
  28525. double f2d (float) __attribute__((pcs("aapcs")));
  28526. Variadic functions always use the '"aapcs"' calling convention and
  28527. the compiler rejects attempts to specify an alternative.
  28528. 'target (OPTIONS)'
  28529. As discussed in *note Common Function Attributes::, this attribute
  28530. allows specification of target-specific compilation options.
  28531. On ARM, the following options are allowed:
  28532. 'thumb'
  28533. Force code generation in the Thumb (T16/T32) ISA, depending on
  28534. the architecture level.
  28535. 'arm'
  28536. Force code generation in the ARM (A32) ISA.
  28537. Functions from different modes can be inlined in the caller's
  28538. mode.
  28539. 'fpu='
  28540. Specifies the fpu for which to tune the performance of this
  28541. function. The behavior and permissible arguments are the same
  28542. as for the '-mfpu=' command-line option.
  28543. 'arch='
  28544. Specifies the architecture version and architectural
  28545. extensions to use for this function. The behavior and
  28546. permissible arguments are the same as for the '-march='
  28547. command-line option.
  28548. The above target attributes can be specified as follows:
  28549. __attribute__((target("arch=armv8-a+crc")))
  28550. int
  28551. f (int a)
  28552. {
  28553. return a + 5;
  28554. }
  28555. Additionally, the architectural extension string may be
  28556. specified on its own. This can be used to turn on and off
  28557. particular architectural extensions without having to specify
  28558. a particular architecture version or core. Example:
  28559. __attribute__((target("+crc+nocrypto")))
  28560. int
  28561. foo (int a)
  28562. {
  28563. return a + 5;
  28564. }
  28565. In this example 'target("+crc+nocrypto")' enables the 'crc'
  28566. extension and disables the 'crypto' extension for the function
  28567. 'foo' without modifying an existing '-march=' or '-mcpu'
  28568. option.
  28569. 
  28570. File: gcc.info, Node: AVR Function Attributes, Next: Blackfin Function Attributes, Prev: ARM Function Attributes, Up: Function Attributes
  28571. 6.33.6 AVR Function Attributes
  28572. ------------------------------
  28573. These function attributes are supported by the AVR back end:
  28574. 'interrupt'
  28575. Use this attribute to indicate that the specified function is an
  28576. interrupt handler. The compiler generates function entry and exit
  28577. sequences suitable for use in an interrupt handler when this
  28578. attribute is present.
  28579. On the AVR, the hardware globally disables interrupts when an
  28580. interrupt is executed. The first instruction of an interrupt
  28581. handler declared with this attribute is a 'SEI' instruction to
  28582. re-enable interrupts. See also the 'signal' function attribute
  28583. that does not insert a 'SEI' instruction. If both 'signal' and
  28584. 'interrupt' are specified for the same function, 'signal' is
  28585. silently ignored.
  28586. 'naked'
  28587. This attribute allows the compiler to construct the requisite
  28588. function declaration, while allowing the body of the function to be
  28589. assembly code. The specified function will not have
  28590. prologue/epilogue sequences generated by the compiler. Only basic
  28591. 'asm' statements can safely be included in naked functions (*note
  28592. Basic Asm::). While using extended 'asm' or a mixture of basic
  28593. 'asm' and C code may appear to work, they cannot be depended upon
  28594. to work reliably and are not supported.
  28595. 'no_gccisr'
  28596. Do not use '__gcc_isr' pseudo instructions in a function with the
  28597. 'interrupt' or 'signal' attribute aka. interrupt service routine
  28598. (ISR). Use this attribute if the preamble of the ISR prologue
  28599. should always read
  28600. push __zero_reg__
  28601. push __tmp_reg__
  28602. in __tmp_reg__, __SREG__
  28603. push __tmp_reg__
  28604. clr __zero_reg__
  28605. and accordingly for the postamble of the epilogue -- no matter
  28606. whether the mentioned registers are actually used in the ISR or
  28607. not. Situations where you might want to use this attribute
  28608. include:
  28609. * Code that (effectively) clobbers bits of 'SREG' other than the
  28610. 'I'-flag by writing to the memory location of 'SREG'.
  28611. * Code that uses inline assembler to jump to a different
  28612. function which expects (parts of) the prologue code as
  28613. outlined above to be present.
  28614. To disable '__gcc_isr' generation for the whole compilation unit,
  28615. there is option '-mno-gas-isr-prologues', *note AVR Options::.
  28616. 'OS_main'
  28617. 'OS_task'
  28618. On AVR, functions with the 'OS_main' or 'OS_task' attribute do not
  28619. save/restore any call-saved register in their prologue/epilogue.
  28620. The 'OS_main' attribute can be used when there _is guarantee_ that
  28621. interrupts are disabled at the time when the function is entered.
  28622. This saves resources when the stack pointer has to be changed to
  28623. set up a frame for local variables.
  28624. The 'OS_task' attribute can be used when there is _no guarantee_
  28625. that interrupts are disabled at that time when the function is
  28626. entered like for, e.g. task functions in a multi-threading
  28627. operating system. In that case, changing the stack pointer
  28628. register is guarded by save/clear/restore of the global interrupt
  28629. enable flag.
  28630. The differences to the 'naked' function attribute are:
  28631. * 'naked' functions do not have a return instruction whereas
  28632. 'OS_main' and 'OS_task' functions have a 'RET' or 'RETI'
  28633. return instruction.
  28634. * 'naked' functions do not set up a frame for local variables or
  28635. a frame pointer whereas 'OS_main' and 'OS_task' do this as
  28636. needed.
  28637. 'signal'
  28638. Use this attribute on the AVR to indicate that the specified
  28639. function is an interrupt handler. The compiler generates function
  28640. entry and exit sequences suitable for use in an interrupt handler
  28641. when this attribute is present.
  28642. See also the 'interrupt' function attribute.
  28643. The AVR hardware globally disables interrupts when an interrupt is
  28644. executed. Interrupt handler functions defined with the 'signal'
  28645. attribute do not re-enable interrupts. It is save to enable
  28646. interrupts in a 'signal' handler. This "save" only applies to the
  28647. code generated by the compiler and not to the IRQ layout of the
  28648. application which is responsibility of the application.
  28649. If both 'signal' and 'interrupt' are specified for the same
  28650. function, 'signal' is silently ignored.
  28651. 
  28652. File: gcc.info, Node: Blackfin Function Attributes, Next: BPF Function Attributes, Prev: AVR Function Attributes, Up: Function Attributes
  28653. 6.33.7 Blackfin Function Attributes
  28654. -----------------------------------
  28655. These function attributes are supported by the Blackfin back end:
  28656. 'exception_handler'
  28657. Use this attribute on the Blackfin to indicate that the specified
  28658. function is an exception handler. The compiler generates function
  28659. entry and exit sequences suitable for use in an exception handler
  28660. when this attribute is present.
  28661. 'interrupt_handler'
  28662. Use this attribute to indicate that the specified function is an
  28663. interrupt handler. The compiler generates function entry and exit
  28664. sequences suitable for use in an interrupt handler when this
  28665. attribute is present.
  28666. 'kspisusp'
  28667. When used together with 'interrupt_handler', 'exception_handler' or
  28668. 'nmi_handler', code is generated to load the stack pointer from the
  28669. USP register in the function prologue.
  28670. 'l1_text'
  28671. This attribute specifies a function to be placed into L1
  28672. Instruction SRAM. The function is put into a specific section
  28673. named '.l1.text'. With '-mfdpic', function calls with a such
  28674. function as the callee or caller uses inlined PLT.
  28675. 'l2'
  28676. This attribute specifies a function to be placed into L2 SRAM. The
  28677. function is put into a specific section named '.l2.text'. With
  28678. '-mfdpic', callers of such functions use an inlined PLT.
  28679. 'longcall'
  28680. 'shortcall'
  28681. The 'longcall' attribute indicates that the function might be far
  28682. away from the call site and require a different (more expensive)
  28683. calling sequence. The 'shortcall' attribute indicates that the
  28684. function is always close enough for the shorter calling sequence to
  28685. be used. These attributes override the '-mlongcall' switch.
  28686. 'nesting'
  28687. Use this attribute together with 'interrupt_handler',
  28688. 'exception_handler' or 'nmi_handler' to indicate that the function
  28689. entry code should enable nested interrupts or exceptions.
  28690. 'nmi_handler'
  28691. Use this attribute on the Blackfin to indicate that the specified
  28692. function is an NMI handler. The compiler generates function entry
  28693. and exit sequences suitable for use in an NMI handler when this
  28694. attribute is present.
  28695. 'saveall'
  28696. Use this attribute to indicate that all registers except the stack
  28697. pointer should be saved in the prologue regardless of whether they
  28698. are used or not.
  28699. 
  28700. File: gcc.info, Node: BPF Function Attributes, Next: CR16 Function Attributes, Prev: Blackfin Function Attributes, Up: Function Attributes
  28701. 6.33.8 BPF Function Attributes
  28702. ------------------------------
  28703. These function attributes are supported by the BPF back end:
  28704. 'kernel_helper'
  28705. use this attribute to indicate the specified function declaration
  28706. is a kernel helper. The helper function is passed as an argument
  28707. to the attribute. Example:
  28708. int bpf_probe_read (void *dst, int size, const void *unsafe_ptr)
  28709. __attribute__ ((kernel_helper (4)));
  28710. 
  28711. File: gcc.info, Node: CR16 Function Attributes, Next: C-SKY Function Attributes, Prev: BPF Function Attributes, Up: Function Attributes
  28712. 6.33.9 CR16 Function Attributes
  28713. -------------------------------
  28714. These function attributes are supported by the CR16 back end:
  28715. 'interrupt'
  28716. Use this attribute to indicate that the specified function is an
  28717. interrupt handler. The compiler generates function entry and exit
  28718. sequences suitable for use in an interrupt handler when this
  28719. attribute is present.
  28720. 
  28721. File: gcc.info, Node: C-SKY Function Attributes, Next: Epiphany Function Attributes, Prev: CR16 Function Attributes, Up: Function Attributes
  28722. 6.33.10 C-SKY Function Attributes
  28723. ---------------------------------
  28724. These function attributes are supported by the C-SKY back end:
  28725. 'interrupt'
  28726. 'isr'
  28727. Use these attributes to indicate that the specified function is an
  28728. interrupt handler. The compiler generates function entry and exit
  28729. sequences suitable for use in an interrupt handler when either of
  28730. these attributes are present.
  28731. Use of these options requires the '-mistack' command-line option to
  28732. enable support for the necessary interrupt stack instructions.
  28733. They are ignored with a warning otherwise. *Note C-SKY Options::.
  28734. 'naked'
  28735. This attribute allows the compiler to construct the requisite
  28736. function declaration, while allowing the body of the function to be
  28737. assembly code. The specified function will not have
  28738. prologue/epilogue sequences generated by the compiler. Only basic
  28739. 'asm' statements can safely be included in naked functions (*note
  28740. Basic Asm::). While using extended 'asm' or a mixture of basic
  28741. 'asm' and C code may appear to work, they cannot be depended upon
  28742. to work reliably and are not supported.
  28743. 
  28744. File: gcc.info, Node: Epiphany Function Attributes, Next: H8/300 Function Attributes, Prev: C-SKY Function Attributes, Up: Function Attributes
  28745. 6.33.11 Epiphany Function Attributes
  28746. ------------------------------------
  28747. These function attributes are supported by the Epiphany back end:
  28748. 'disinterrupt'
  28749. This attribute causes the compiler to emit instructions to disable
  28750. interrupts for the duration of the given function.
  28751. 'forwarder_section'
  28752. This attribute modifies the behavior of an interrupt handler. The
  28753. interrupt handler may be in external memory which cannot be reached
  28754. by a branch instruction, so generate a local memory trampoline to
  28755. transfer control. The single parameter identifies the section
  28756. where the trampoline is placed.
  28757. 'interrupt'
  28758. Use this attribute to indicate that the specified function is an
  28759. interrupt handler. The compiler generates function entry and exit
  28760. sequences suitable for use in an interrupt handler when this
  28761. attribute is present. It may also generate a special section with
  28762. code to initialize the interrupt vector table.
  28763. On Epiphany targets one or more optional parameters can be added
  28764. like this:
  28765. void __attribute__ ((interrupt ("dma0, dma1"))) universal_dma_handler ();
  28766. Permissible values for these parameters are: 'reset',
  28767. 'software_exception', 'page_miss', 'timer0', 'timer1', 'message',
  28768. 'dma0', 'dma1', 'wand' and 'swi'. Multiple parameters indicate
  28769. that multiple entries in the interrupt vector table should be
  28770. initialized for this function, i.e. for each parameter NAME, a jump
  28771. to the function is emitted in the section ivt_entry_NAME. The
  28772. parameter(s) may be omitted entirely, in which case no interrupt
  28773. vector table entry is provided.
  28774. Note that interrupts are enabled inside the function unless the
  28775. 'disinterrupt' attribute is also specified.
  28776. The following examples are all valid uses of these attributes on
  28777. Epiphany targets:
  28778. void __attribute__ ((interrupt)) universal_handler ();
  28779. void __attribute__ ((interrupt ("dma1"))) dma1_handler ();
  28780. void __attribute__ ((interrupt ("dma0, dma1")))
  28781. universal_dma_handler ();
  28782. void __attribute__ ((interrupt ("timer0"), disinterrupt))
  28783. fast_timer_handler ();
  28784. void __attribute__ ((interrupt ("dma0, dma1"),
  28785. forwarder_section ("tramp")))
  28786. external_dma_handler ();
  28787. 'long_call'
  28788. 'short_call'
  28789. These attributes specify how a particular function is called.
  28790. These attributes override the '-mlong-calls' (*note Adapteva
  28791. Epiphany Options::) command-line switch and '#pragma long_calls'
  28792. settings.
  28793. 
  28794. File: gcc.info, Node: H8/300 Function Attributes, Next: IA-64 Function Attributes, Prev: Epiphany Function Attributes, Up: Function Attributes
  28795. 6.33.12 H8/300 Function Attributes
  28796. ----------------------------------
  28797. These function attributes are available for H8/300 targets:
  28798. 'function_vector'
  28799. Use this attribute on the H8/300, H8/300H, and H8S to indicate that
  28800. the specified function should be called through the function
  28801. vector. Calling a function through the function vector reduces
  28802. code size; however, the function vector has a limited size (maximum
  28803. 128 entries on the H8/300 and 64 entries on the H8/300H and H8S)
  28804. and shares space with the interrupt vector.
  28805. 'interrupt_handler'
  28806. Use this attribute on the H8/300, H8/300H, and H8S to indicate that
  28807. the specified function is an interrupt handler. The compiler
  28808. generates function entry and exit sequences suitable for use in an
  28809. interrupt handler when this attribute is present.
  28810. 'saveall'
  28811. Use this attribute on the H8/300, H8/300H, and H8S to indicate that
  28812. all registers except the stack pointer should be saved in the
  28813. prologue regardless of whether they are used or not.
  28814. 
  28815. File: gcc.info, Node: IA-64 Function Attributes, Next: M32C Function Attributes, Prev: H8/300 Function Attributes, Up: Function Attributes
  28816. 6.33.13 IA-64 Function Attributes
  28817. ---------------------------------
  28818. These function attributes are supported on IA-64 targets:
  28819. 'syscall_linkage'
  28820. This attribute is used to modify the IA-64 calling convention by
  28821. marking all input registers as live at all function exits. This
  28822. makes it possible to restart a system call after an interrupt
  28823. without having to save/restore the input registers. This also
  28824. prevents kernel data from leaking into application code.
  28825. 'version_id'
  28826. This IA-64 HP-UX attribute, attached to a global variable or
  28827. function, renames a symbol to contain a version string, thus
  28828. allowing for function level versioning. HP-UX system header files
  28829. may use function level versioning for some system calls.
  28830. extern int foo () __attribute__((version_id ("20040821")));
  28831. Calls to 'foo' are mapped to calls to 'foo{20040821}'.
  28832. 
  28833. File: gcc.info, Node: M32C Function Attributes, Next: M32R/D Function Attributes, Prev: IA-64 Function Attributes, Up: Function Attributes
  28834. 6.33.14 M32C Function Attributes
  28835. --------------------------------
  28836. These function attributes are supported by the M32C back end:
  28837. 'bank_switch'
  28838. When added to an interrupt handler with the M32C port, causes the
  28839. prologue and epilogue to use bank switching to preserve the
  28840. registers rather than saving them on the stack.
  28841. 'fast_interrupt'
  28842. Use this attribute on the M32C port to indicate that the specified
  28843. function is a fast interrupt handler. This is just like the
  28844. 'interrupt' attribute, except that 'freit' is used to return
  28845. instead of 'reit'.
  28846. 'function_vector'
  28847. On M16C/M32C targets, the 'function_vector' attribute declares a
  28848. special page subroutine call function. Use of this attribute
  28849. reduces the code size by 2 bytes for each call generated to the
  28850. subroutine. The argument to the attribute is the vector number
  28851. entry from the special page vector table which contains the 16
  28852. low-order bits of the subroutine's entry address. Each vector
  28853. table has special page number (18 to 255) that is used in 'jsrs'
  28854. instructions. Jump addresses of the routines are generated by
  28855. adding 0x0F0000 (in case of M16C targets) or 0xFF0000 (in case of
  28856. M32C targets), to the 2-byte addresses set in the vector table.
  28857. Therefore you need to ensure that all the special page vector
  28858. routines should get mapped within the address range 0x0F0000 to
  28859. 0x0FFFFF (for M16C) and 0xFF0000 to 0xFFFFFF (for M32C).
  28860. In the following example 2 bytes are saved for each call to
  28861. function 'foo'.
  28862. void foo (void) __attribute__((function_vector(0x18)));
  28863. void foo (void)
  28864. {
  28865. }
  28866. void bar (void)
  28867. {
  28868. foo();
  28869. }
  28870. If functions are defined in one file and are called in another
  28871. file, then be sure to write this declaration in both files.
  28872. This attribute is ignored for R8C target.
  28873. 'interrupt'
  28874. Use this attribute to indicate that the specified function is an
  28875. interrupt handler. The compiler generates function entry and exit
  28876. sequences suitable for use in an interrupt handler when this
  28877. attribute is present.
  28878. 
  28879. File: gcc.info, Node: M32R/D Function Attributes, Next: m68k Function Attributes, Prev: M32C Function Attributes, Up: Function Attributes
  28880. 6.33.15 M32R/D Function Attributes
  28881. ----------------------------------
  28882. These function attributes are supported by the M32R/D back end:
  28883. 'interrupt'
  28884. Use this attribute to indicate that the specified function is an
  28885. interrupt handler. The compiler generates function entry and exit
  28886. sequences suitable for use in an interrupt handler when this
  28887. attribute is present.
  28888. 'model (MODEL-NAME)'
  28889. On the M32R/D, use this attribute to set the addressability of an
  28890. object, and of the code generated for a function. The identifier
  28891. MODEL-NAME is one of 'small', 'medium', or 'large', representing
  28892. each of the code models.
  28893. Small model objects live in the lower 16MB of memory (so that their
  28894. addresses can be loaded with the 'ld24' instruction), and are
  28895. callable with the 'bl' instruction.
  28896. Medium model objects may live anywhere in the 32-bit address space
  28897. (the compiler generates 'seth/add3' instructions to load their
  28898. addresses), and are callable with the 'bl' instruction.
  28899. Large model objects may live anywhere in the 32-bit address space
  28900. (the compiler generates 'seth/add3' instructions to load their
  28901. addresses), and may not be reachable with the 'bl' instruction (the
  28902. compiler generates the much slower 'seth/add3/jl' instruction
  28903. sequence).
  28904. 
  28905. File: gcc.info, Node: m68k Function Attributes, Next: MCORE Function Attributes, Prev: M32R/D Function Attributes, Up: Function Attributes
  28906. 6.33.16 m68k Function Attributes
  28907. --------------------------------
  28908. These function attributes are supported by the m68k back end:
  28909. 'interrupt'
  28910. 'interrupt_handler'
  28911. Use this attribute to indicate that the specified function is an
  28912. interrupt handler. The compiler generates function entry and exit
  28913. sequences suitable for use in an interrupt handler when this
  28914. attribute is present. Either name may be used.
  28915. 'interrupt_thread'
  28916. Use this attribute on fido, a subarchitecture of the m68k, to
  28917. indicate that the specified function is an interrupt handler that
  28918. is designed to run as a thread. The compiler omits generate
  28919. prologue/epilogue sequences and replaces the return instruction
  28920. with a 'sleep' instruction. This attribute is available only on
  28921. fido.
  28922. 
  28923. File: gcc.info, Node: MCORE Function Attributes, Next: MeP Function Attributes, Prev: m68k Function Attributes, Up: Function Attributes
  28924. 6.33.17 MCORE Function Attributes
  28925. ---------------------------------
  28926. These function attributes are supported by the MCORE back end:
  28927. 'naked'
  28928. This attribute allows the compiler to construct the requisite
  28929. function declaration, while allowing the body of the function to be
  28930. assembly code. The specified function will not have
  28931. prologue/epilogue sequences generated by the compiler. Only basic
  28932. 'asm' statements can safely be included in naked functions (*note
  28933. Basic Asm::). While using extended 'asm' or a mixture of basic
  28934. 'asm' and C code may appear to work, they cannot be depended upon
  28935. to work reliably and are not supported.
  28936. 
  28937. File: gcc.info, Node: MeP Function Attributes, Next: MicroBlaze Function Attributes, Prev: MCORE Function Attributes, Up: Function Attributes
  28938. 6.33.18 MeP Function Attributes
  28939. -------------------------------
  28940. These function attributes are supported by the MeP back end:
  28941. 'disinterrupt'
  28942. On MeP targets, this attribute causes the compiler to emit
  28943. instructions to disable interrupts for the duration of the given
  28944. function.
  28945. 'interrupt'
  28946. Use this attribute to indicate that the specified function is an
  28947. interrupt handler. The compiler generates function entry and exit
  28948. sequences suitable for use in an interrupt handler when this
  28949. attribute is present.
  28950. 'near'
  28951. This attribute causes the compiler to assume the called function is
  28952. close enough to use the normal calling convention, overriding the
  28953. '-mtf' command-line option.
  28954. 'far'
  28955. On MeP targets this causes the compiler to use a calling convention
  28956. that assumes the called function is too far away for the built-in
  28957. addressing modes.
  28958. 'vliw'
  28959. The 'vliw' attribute tells the compiler to emit instructions in
  28960. VLIW mode instead of core mode. Note that this attribute is not
  28961. allowed unless a VLIW coprocessor has been configured and enabled
  28962. through command-line options.
  28963. 
  28964. File: gcc.info, Node: MicroBlaze Function Attributes, Next: Microsoft Windows Function Attributes, Prev: MeP Function Attributes, Up: Function Attributes
  28965. 6.33.19 MicroBlaze Function Attributes
  28966. --------------------------------------
  28967. These function attributes are supported on MicroBlaze targets:
  28968. 'save_volatiles'
  28969. Use this attribute to indicate that the function is an interrupt
  28970. handler. All volatile registers (in addition to non-volatile
  28971. registers) are saved in the function prologue. If the function is
  28972. a leaf function, only volatiles used by the function are saved. A
  28973. normal function return is generated instead of a return from
  28974. interrupt.
  28975. 'break_handler'
  28976. Use this attribute to indicate that the specified function is a
  28977. break handler. The compiler generates function entry and exit
  28978. sequences suitable for use in an break handler when this attribute
  28979. is present. The return from 'break_handler' is done through the
  28980. 'rtbd' instead of 'rtsd'.
  28981. void f () __attribute__ ((break_handler));
  28982. 'interrupt_handler'
  28983. 'fast_interrupt'
  28984. These attributes indicate that the specified function is an
  28985. interrupt handler. Use the 'fast_interrupt' attribute to indicate
  28986. handlers used in low-latency interrupt mode, and
  28987. 'interrupt_handler' for interrupts that do not use low-latency
  28988. handlers. In both cases, GCC emits appropriate prologue code and
  28989. generates a return from the handler using 'rtid' instead of 'rtsd'.
  28990. 
  28991. File: gcc.info, Node: Microsoft Windows Function Attributes, Next: MIPS Function Attributes, Prev: MicroBlaze Function Attributes, Up: Function Attributes
  28992. 6.33.20 Microsoft Windows Function Attributes
  28993. ---------------------------------------------
  28994. The following attributes are available on Microsoft Windows and Symbian
  28995. OS targets.
  28996. 'dllexport'
  28997. On Microsoft Windows targets and Symbian OS targets the 'dllexport'
  28998. attribute causes the compiler to provide a global pointer to a
  28999. pointer in a DLL, so that it can be referenced with the 'dllimport'
  29000. attribute. On Microsoft Windows targets, the pointer name is
  29001. formed by combining '_imp__' and the function or variable name.
  29002. You can use '__declspec(dllexport)' as a synonym for '__attribute__
  29003. ((dllexport))' for compatibility with other compilers.
  29004. On systems that support the 'visibility' attribute, this attribute
  29005. also implies "default" visibility. It is an error to explicitly
  29006. specify any other visibility.
  29007. GCC's default behavior is to emit all inline functions with the
  29008. 'dllexport' attribute. Since this can cause object file-size
  29009. bloat, you can use '-fno-keep-inline-dllexport', which tells GCC to
  29010. ignore the attribute for inlined functions unless the
  29011. '-fkeep-inline-functions' flag is used instead.
  29012. The attribute is ignored for undefined symbols.
  29013. When applied to C++ classes, the attribute marks defined
  29014. non-inlined member functions and static data members as exports.
  29015. Static consts initialized in-class are not marked unless they are
  29016. also defined out-of-class.
  29017. For Microsoft Windows targets there are alternative methods for
  29018. including the symbol in the DLL's export table such as using a
  29019. '.def' file with an 'EXPORTS' section or, with GNU ld, using the
  29020. '--export-all' linker flag.
  29021. 'dllimport'
  29022. On Microsoft Windows and Symbian OS targets, the 'dllimport'
  29023. attribute causes the compiler to reference a function or variable
  29024. via a global pointer to a pointer that is set up by the DLL
  29025. exporting the symbol. The attribute implies 'extern'. On
  29026. Microsoft Windows targets, the pointer name is formed by combining
  29027. '_imp__' and the function or variable name.
  29028. You can use '__declspec(dllimport)' as a synonym for '__attribute__
  29029. ((dllimport))' for compatibility with other compilers.
  29030. On systems that support the 'visibility' attribute, this attribute
  29031. also implies "default" visibility. It is an error to explicitly
  29032. specify any other visibility.
  29033. Currently, the attribute is ignored for inlined functions. If the
  29034. attribute is applied to a symbol _definition_, an error is
  29035. reported. If a symbol previously declared 'dllimport' is later
  29036. defined, the attribute is ignored in subsequent references, and a
  29037. warning is emitted. The attribute is also overridden by a
  29038. subsequent declaration as 'dllexport'.
  29039. When applied to C++ classes, the attribute marks non-inlined member
  29040. functions and static data members as imports. However, the
  29041. attribute is ignored for virtual methods to allow creation of
  29042. vtables using thunks.
  29043. On the SH Symbian OS target the 'dllimport' attribute also has
  29044. another affect--it can cause the vtable and run-time type
  29045. information for a class to be exported. This happens when the
  29046. class has a dllimported constructor or a non-inline, non-pure
  29047. virtual function and, for either of those two conditions, the class
  29048. also has an inline constructor or destructor and has a key function
  29049. that is defined in the current translation unit.
  29050. For Microsoft Windows targets the use of the 'dllimport' attribute
  29051. on functions is not necessary, but provides a small performance
  29052. benefit by eliminating a thunk in the DLL. The use of the
  29053. 'dllimport' attribute on imported variables can be avoided by
  29054. passing the '--enable-auto-import' switch to the GNU linker. As
  29055. with functions, using the attribute for a variable eliminates a
  29056. thunk in the DLL.
  29057. One drawback to using this attribute is that a pointer to a
  29058. _variable_ marked as 'dllimport' cannot be used as a constant
  29059. address. However, a pointer to a _function_ with the 'dllimport'
  29060. attribute can be used as a constant initializer; in this case, the
  29061. address of a stub function in the import lib is referenced. On
  29062. Microsoft Windows targets, the attribute can be disabled for
  29063. functions by setting the '-mnop-fun-dllimport' flag.
  29064. 
  29065. File: gcc.info, Node: MIPS Function Attributes, Next: MSP430 Function Attributes, Prev: Microsoft Windows Function Attributes, Up: Function Attributes
  29066. 6.33.21 MIPS Function Attributes
  29067. --------------------------------
  29068. These function attributes are supported by the MIPS back end:
  29069. 'interrupt'
  29070. Use this attribute to indicate that the specified function is an
  29071. interrupt handler. The compiler generates function entry and exit
  29072. sequences suitable for use in an interrupt handler when this
  29073. attribute is present. An optional argument is supported for the
  29074. interrupt attribute which allows the interrupt mode to be
  29075. described. By default GCC assumes the external interrupt
  29076. controller (EIC) mode is in use, this can be explicitly set using
  29077. 'eic'. When interrupts are non-masked then the requested Interrupt
  29078. Priority Level (IPL) is copied to the current IPL which has the
  29079. effect of only enabling higher priority interrupts. To use
  29080. vectored interrupt mode use the argument
  29081. 'vector=[sw0|sw1|hw0|hw1|hw2|hw3|hw4|hw5]', this will change the
  29082. behavior of the non-masked interrupt support and GCC will arrange
  29083. to mask all interrupts from sw0 up to and including the specified
  29084. interrupt vector.
  29085. You can use the following attributes to modify the behavior of an
  29086. interrupt handler:
  29087. 'use_shadow_register_set'
  29088. Assume that the handler uses a shadow register set, instead of
  29089. the main general-purpose registers. An optional argument
  29090. 'intstack' is supported to indicate that the shadow register
  29091. set contains a valid stack pointer.
  29092. 'keep_interrupts_masked'
  29093. Keep interrupts masked for the whole function. Without this
  29094. attribute, GCC tries to reenable interrupts for as much of the
  29095. function as it can.
  29096. 'use_debug_exception_return'
  29097. Return using the 'deret' instruction. Interrupt handlers that
  29098. don't have this attribute return using 'eret' instead.
  29099. You can use any combination of these attributes, as shown below:
  29100. void __attribute__ ((interrupt)) v0 ();
  29101. void __attribute__ ((interrupt, use_shadow_register_set)) v1 ();
  29102. void __attribute__ ((interrupt, keep_interrupts_masked)) v2 ();
  29103. void __attribute__ ((interrupt, use_debug_exception_return)) v3 ();
  29104. void __attribute__ ((interrupt, use_shadow_register_set,
  29105. keep_interrupts_masked)) v4 ();
  29106. void __attribute__ ((interrupt, use_shadow_register_set,
  29107. use_debug_exception_return)) v5 ();
  29108. void __attribute__ ((interrupt, keep_interrupts_masked,
  29109. use_debug_exception_return)) v6 ();
  29110. void __attribute__ ((interrupt, use_shadow_register_set,
  29111. keep_interrupts_masked,
  29112. use_debug_exception_return)) v7 ();
  29113. void __attribute__ ((interrupt("eic"))) v8 ();
  29114. void __attribute__ ((interrupt("vector=hw3"))) v9 ();
  29115. 'long_call'
  29116. 'short_call'
  29117. 'near'
  29118. 'far'
  29119. These attributes specify how a particular function is called on
  29120. MIPS. The attributes override the '-mlong-calls' (*note MIPS
  29121. Options::) command-line switch. The 'long_call' and 'far'
  29122. attributes are synonyms, and cause the compiler to always call the
  29123. function by first loading its address into a register, and then
  29124. using the contents of that register. The 'short_call' and 'near'
  29125. attributes are synonyms, and have the opposite effect; they specify
  29126. that non-PIC calls should be made using the more efficient 'jal'
  29127. instruction.
  29128. 'mips16'
  29129. 'nomips16'
  29130. On MIPS targets, you can use the 'mips16' and 'nomips16' function
  29131. attributes to locally select or turn off MIPS16 code generation. A
  29132. function with the 'mips16' attribute is emitted as MIPS16 code,
  29133. while MIPS16 code generation is disabled for functions with the
  29134. 'nomips16' attribute. These attributes override the '-mips16' and
  29135. '-mno-mips16' options on the command line (*note MIPS Options::).
  29136. When compiling files containing mixed MIPS16 and non-MIPS16 code,
  29137. the preprocessor symbol '__mips16' reflects the setting on the
  29138. command line, not that within individual functions. Mixed MIPS16
  29139. and non-MIPS16 code may interact badly with some GCC extensions
  29140. such as '__builtin_apply' (*note Constructing Calls::).
  29141. 'micromips, MIPS'
  29142. 'nomicromips, MIPS'
  29143. On MIPS targets, you can use the 'micromips' and 'nomicromips'
  29144. function attributes to locally select or turn off microMIPS code
  29145. generation. A function with the 'micromips' attribute is emitted
  29146. as microMIPS code, while microMIPS code generation is disabled for
  29147. functions with the 'nomicromips' attribute. These attributes
  29148. override the '-mmicromips' and '-mno-micromips' options on the
  29149. command line (*note MIPS Options::).
  29150. When compiling files containing mixed microMIPS and non-microMIPS
  29151. code, the preprocessor symbol '__mips_micromips' reflects the
  29152. setting on the command line, not that within individual functions.
  29153. Mixed microMIPS and non-microMIPS code may interact badly with some
  29154. GCC extensions such as '__builtin_apply' (*note Constructing
  29155. Calls::).
  29156. 'nocompression'
  29157. On MIPS targets, you can use the 'nocompression' function attribute
  29158. to locally turn off MIPS16 and microMIPS code generation. This
  29159. attribute overrides the '-mips16' and '-mmicromips' options on the
  29160. command line (*note MIPS Options::).
  29161. 
  29162. File: gcc.info, Node: MSP430 Function Attributes, Next: NDS32 Function Attributes, Prev: MIPS Function Attributes, Up: Function Attributes
  29163. 6.33.22 MSP430 Function Attributes
  29164. ----------------------------------
  29165. These function attributes are supported by the MSP430 back end:
  29166. 'critical'
  29167. Critical functions disable interrupts upon entry and restore the
  29168. previous interrupt state upon exit. Critical functions cannot also
  29169. have the 'naked', 'reentrant' or 'interrupt' attributes.
  29170. The MSP430 hardware ensures that interrupts are disabled on entry
  29171. to 'interrupt' functions, and restores the previous interrupt state
  29172. on exit. The 'critical' attribute is therefore redundant on
  29173. 'interrupt' functions.
  29174. 'interrupt'
  29175. Use this attribute to indicate that the specified function is an
  29176. interrupt handler. The compiler generates function entry and exit
  29177. sequences suitable for use in an interrupt handler when this
  29178. attribute is present.
  29179. You can provide an argument to the interrupt attribute which
  29180. specifies a name or number. If the argument is a number it
  29181. indicates the slot in the interrupt vector table (0 - 31) to which
  29182. this handler should be assigned. If the argument is a name it is
  29183. treated as a symbolic name for the vector slot. These names should
  29184. match up with appropriate entries in the linker script. By default
  29185. the names 'watchdog' for vector 26, 'nmi' for vector 30 and 'reset'
  29186. for vector 31 are recognized.
  29187. 'naked'
  29188. This attribute allows the compiler to construct the requisite
  29189. function declaration, while allowing the body of the function to be
  29190. assembly code. The specified function will not have
  29191. prologue/epilogue sequences generated by the compiler. Only basic
  29192. 'asm' statements can safely be included in naked functions (*note
  29193. Basic Asm::). While using extended 'asm' or a mixture of basic
  29194. 'asm' and C code may appear to work, they cannot be depended upon
  29195. to work reliably and are not supported.
  29196. 'reentrant'
  29197. Reentrant functions disable interrupts upon entry and enable them
  29198. upon exit. Reentrant functions cannot also have the 'naked' or
  29199. 'critical' attributes. They can have the 'interrupt' attribute.
  29200. 'wakeup'
  29201. This attribute only applies to interrupt functions. It is silently
  29202. ignored if applied to a non-interrupt function. A wakeup interrupt
  29203. function will rouse the processor from any low-power state that it
  29204. might be in when the function exits.
  29205. 'lower'
  29206. 'upper'
  29207. 'either'
  29208. On the MSP430 target these attributes can be used to specify
  29209. whether the function or variable should be placed into low memory,
  29210. high memory, or the placement should be left to the linker to
  29211. decide. The attributes are only significant if compiling for the
  29212. MSP430X architecture in the large memory model.
  29213. The attributes work in conjunction with a linker script that has
  29214. been augmented to specify where to place sections with a '.lower'
  29215. and a '.upper' prefix. So, for example, as well as placing the
  29216. '.data' section, the script also specifies the placement of a
  29217. '.lower.data' and a '.upper.data' section. The intention is that
  29218. 'lower' sections are placed into a small but easier to access
  29219. memory region and the upper sections are placed into a larger, but
  29220. slower to access, region.
  29221. The 'either' attribute is special. It tells the linker to place
  29222. the object into the corresponding 'lower' section if there is room
  29223. for it. If there is insufficient room then the object is placed
  29224. into the corresponding 'upper' section instead. Note that the
  29225. placement algorithm is not very sophisticated. It does not attempt
  29226. to find an optimal packing of the 'lower' sections. It just makes
  29227. one pass over the objects and does the best that it can. Using the
  29228. '-ffunction-sections' and '-fdata-sections' command-line options
  29229. can help the packing, however, since they produce smaller, easier
  29230. to pack regions.
  29231. 
  29232. File: gcc.info, Node: NDS32 Function Attributes, Next: Nios II Function Attributes, Prev: MSP430 Function Attributes, Up: Function Attributes
  29233. 6.33.23 NDS32 Function Attributes
  29234. ---------------------------------
  29235. These function attributes are supported by the NDS32 back end:
  29236. 'exception'
  29237. Use this attribute on the NDS32 target to indicate that the
  29238. specified function is an exception handler. The compiler will
  29239. generate corresponding sections for use in an exception handler.
  29240. 'interrupt'
  29241. On NDS32 target, this attribute indicates that the specified
  29242. function is an interrupt handler. The compiler generates
  29243. corresponding sections for use in an interrupt handler. You can
  29244. use the following attributes to modify the behavior:
  29245. 'nested'
  29246. This interrupt service routine is interruptible.
  29247. 'not_nested'
  29248. This interrupt service routine is not interruptible.
  29249. 'nested_ready'
  29250. This interrupt service routine is interruptible after
  29251. 'PSW.GIE' (global interrupt enable) is set. This allows
  29252. interrupt service routine to finish some short critical code
  29253. before enabling interrupts.
  29254. 'save_all'
  29255. The system will help save all registers into stack before
  29256. entering interrupt handler.
  29257. 'partial_save'
  29258. The system will help save caller registers into stack before
  29259. entering interrupt handler.
  29260. 'naked'
  29261. This attribute allows the compiler to construct the requisite
  29262. function declaration, while allowing the body of the function to be
  29263. assembly code. The specified function will not have
  29264. prologue/epilogue sequences generated by the compiler. Only basic
  29265. 'asm' statements can safely be included in naked functions (*note
  29266. Basic Asm::). While using extended 'asm' or a mixture of basic
  29267. 'asm' and C code may appear to work, they cannot be depended upon
  29268. to work reliably and are not supported.
  29269. 'reset'
  29270. Use this attribute on the NDS32 target to indicate that the
  29271. specified function is a reset handler. The compiler will generate
  29272. corresponding sections for use in a reset handler. You can use the
  29273. following attributes to provide extra exception handling:
  29274. 'nmi'
  29275. Provide a user-defined function to handle NMI exception.
  29276. 'warm'
  29277. Provide a user-defined function to handle warm reset
  29278. exception.
  29279. 
  29280. File: gcc.info, Node: Nios II Function Attributes, Next: Nvidia PTX Function Attributes, Prev: NDS32 Function Attributes, Up: Function Attributes
  29281. 6.33.24 Nios II Function Attributes
  29282. -----------------------------------
  29283. These function attributes are supported by the Nios II back end:
  29284. 'target (OPTIONS)'
  29285. As discussed in *note Common Function Attributes::, this attribute
  29286. allows specification of target-specific compilation options.
  29287. When compiling for Nios II, the following options are allowed:
  29288. 'custom-INSN=N'
  29289. 'no-custom-INSN'
  29290. Each 'custom-INSN=N' attribute locally enables use of a custom
  29291. instruction with encoding N when generating code that uses
  29292. INSN. Similarly, 'no-custom-INSN' locally inhibits use of the
  29293. custom instruction INSN. These target attributes correspond
  29294. to the '-mcustom-INSN=N' and '-mno-custom-INSN' command-line
  29295. options, and support the same set of INSN keywords. *Note
  29296. Nios II Options::, for more information.
  29297. 'custom-fpu-cfg=NAME'
  29298. This attribute corresponds to the '-mcustom-fpu-cfg=NAME'
  29299. command-line option, to select a predefined set of custom
  29300. instructions named NAME. *Note Nios II Options::, for more
  29301. information.
  29302. 
  29303. File: gcc.info, Node: Nvidia PTX Function Attributes, Next: PowerPC Function Attributes, Prev: Nios II Function Attributes, Up: Function Attributes
  29304. 6.33.25 Nvidia PTX Function Attributes
  29305. --------------------------------------
  29306. These function attributes are supported by the Nvidia PTX back end:
  29307. 'kernel'
  29308. This attribute indicates that the corresponding function should be
  29309. compiled as a kernel function, which can be invoked from the host
  29310. via the CUDA RT library. By default functions are only callable
  29311. only from other PTX functions.
  29312. Kernel functions must have 'void' return type.
  29313. 
  29314. File: gcc.info, Node: PowerPC Function Attributes, Next: RISC-V Function Attributes, Prev: Nvidia PTX Function Attributes, Up: Function Attributes
  29315. 6.33.26 PowerPC Function Attributes
  29316. -----------------------------------
  29317. These function attributes are supported by the PowerPC back end:
  29318. 'longcall'
  29319. 'shortcall'
  29320. The 'longcall' attribute indicates that the function might be far
  29321. away from the call site and require a different (more expensive)
  29322. calling sequence. The 'shortcall' attribute indicates that the
  29323. function is always close enough for the shorter calling sequence to
  29324. be used. These attributes override both the '-mlongcall' switch
  29325. and the '#pragma longcall' setting.
  29326. *Note RS/6000 and PowerPC Options::, for more information on
  29327. whether long calls are necessary.
  29328. 'target (OPTIONS)'
  29329. As discussed in *note Common Function Attributes::, this attribute
  29330. allows specification of target-specific compilation options.
  29331. On the PowerPC, the following options are allowed:
  29332. 'altivec'
  29333. 'no-altivec'
  29334. Generate code that uses (does not use) AltiVec instructions.
  29335. In 32-bit code, you cannot enable AltiVec instructions unless
  29336. '-mabi=altivec' is used on the command line.
  29337. 'cmpb'
  29338. 'no-cmpb'
  29339. Generate code that uses (does not use) the compare bytes
  29340. instruction implemented on the POWER6 processor and other
  29341. processors that support the PowerPC V2.05 architecture.
  29342. 'dlmzb'
  29343. 'no-dlmzb'
  29344. Generate code that uses (does not use) the string-search
  29345. 'dlmzb' instruction on the IBM 405, 440, 464 and 476
  29346. processors. This instruction is generated by default when
  29347. targeting those processors.
  29348. 'fprnd'
  29349. 'no-fprnd'
  29350. Generate code that uses (does not use) the FP round to integer
  29351. instructions implemented on the POWER5+ processor and other
  29352. processors that support the PowerPC V2.03 architecture.
  29353. 'hard-dfp'
  29354. 'no-hard-dfp'
  29355. Generate code that uses (does not use) the decimal
  29356. floating-point instructions implemented on some POWER
  29357. processors.
  29358. 'isel'
  29359. 'no-isel'
  29360. Generate code that uses (does not use) ISEL instruction.
  29361. 'mfcrf'
  29362. 'no-mfcrf'
  29363. Generate code that uses (does not use) the move from condition
  29364. register field instruction implemented on the POWER4 processor
  29365. and other processors that support the PowerPC V2.01
  29366. architecture.
  29367. 'mulhw'
  29368. 'no-mulhw'
  29369. Generate code that uses (does not use) the half-word multiply
  29370. and multiply-accumulate instructions on the IBM 405, 440, 464
  29371. and 476 processors. These instructions are generated by
  29372. default when targeting those processors.
  29373. 'multiple'
  29374. 'no-multiple'
  29375. Generate code that uses (does not use) the load multiple word
  29376. instructions and the store multiple word instructions.
  29377. 'update'
  29378. 'no-update'
  29379. Generate code that uses (does not use) the load or store
  29380. instructions that update the base register to the address of
  29381. the calculated memory location.
  29382. 'popcntb'
  29383. 'no-popcntb'
  29384. Generate code that uses (does not use) the popcount and
  29385. double-precision FP reciprocal estimate instruction
  29386. implemented on the POWER5 processor and other processors that
  29387. support the PowerPC V2.02 architecture.
  29388. 'popcntd'
  29389. 'no-popcntd'
  29390. Generate code that uses (does not use) the popcount
  29391. instruction implemented on the POWER7 processor and other
  29392. processors that support the PowerPC V2.06 architecture.
  29393. 'powerpc-gfxopt'
  29394. 'no-powerpc-gfxopt'
  29395. Generate code that uses (does not use) the optional PowerPC
  29396. architecture instructions in the Graphics group, including
  29397. floating-point select.
  29398. 'powerpc-gpopt'
  29399. 'no-powerpc-gpopt'
  29400. Generate code that uses (does not use) the optional PowerPC
  29401. architecture instructions in the General Purpose group,
  29402. including floating-point square root.
  29403. 'recip-precision'
  29404. 'no-recip-precision'
  29405. Assume (do not assume) that the reciprocal estimate
  29406. instructions provide higher-precision estimates than is
  29407. mandated by the PowerPC ABI.
  29408. 'string'
  29409. 'no-string'
  29410. Generate code that uses (does not use) the load string
  29411. instructions and the store string word instructions to save
  29412. multiple registers and do small block moves.
  29413. 'vsx'
  29414. 'no-vsx'
  29415. Generate code that uses (does not use) vector/scalar (VSX)
  29416. instructions, and also enable the use of built-in functions
  29417. that allow more direct access to the VSX instruction set. In
  29418. 32-bit code, you cannot enable VSX or AltiVec instructions
  29419. unless '-mabi=altivec' is used on the command line.
  29420. 'friz'
  29421. 'no-friz'
  29422. Generate (do not generate) the 'friz' instruction when the
  29423. '-funsafe-math-optimizations' option is used to optimize
  29424. rounding a floating-point value to 64-bit integer and back to
  29425. floating point. The 'friz' instruction does not return the
  29426. same value if the floating-point number is too large to fit in
  29427. an integer.
  29428. 'avoid-indexed-addresses'
  29429. 'no-avoid-indexed-addresses'
  29430. Generate code that tries to avoid (not avoid) the use of
  29431. indexed load or store instructions.
  29432. 'paired'
  29433. 'no-paired'
  29434. Generate code that uses (does not use) the generation of
  29435. PAIRED simd instructions.
  29436. 'longcall'
  29437. 'no-longcall'
  29438. Generate code that assumes (does not assume) that all calls
  29439. are far away so that a longer more expensive calling sequence
  29440. is required.
  29441. 'cpu=CPU'
  29442. Specify the architecture to generate code for when compiling
  29443. the function. If you select the 'target("cpu=power7")'
  29444. attribute when generating 32-bit code, VSX and AltiVec
  29445. instructions are not generated unless you use the
  29446. '-mabi=altivec' option on the command line.
  29447. 'tune=TUNE'
  29448. Specify the architecture to tune for when compiling the
  29449. function. If you do not specify the 'target("tune=TUNE")'
  29450. attribute and you do specify the 'target("cpu=CPU")'
  29451. attribute, compilation tunes for the CPU architecture, and not
  29452. the default tuning specified on the command line.
  29453. On the PowerPC, the inliner does not inline a function that has
  29454. different target options than the caller, unless the callee has a
  29455. subset of the target options of the caller.
  29456. 
  29457. File: gcc.info, Node: RISC-V Function Attributes, Next: RL78 Function Attributes, Prev: PowerPC Function Attributes, Up: Function Attributes
  29458. 6.33.27 RISC-V Function Attributes
  29459. ----------------------------------
  29460. These function attributes are supported by the RISC-V back end:
  29461. 'naked'
  29462. This attribute allows the compiler to construct the requisite
  29463. function declaration, while allowing the body of the function to be
  29464. assembly code. The specified function will not have
  29465. prologue/epilogue sequences generated by the compiler. Only basic
  29466. 'asm' statements can safely be included in naked functions (*note
  29467. Basic Asm::). While using extended 'asm' or a mixture of basic
  29468. 'asm' and C code may appear to work, they cannot be depended upon
  29469. to work reliably and are not supported.
  29470. 'interrupt'
  29471. Use this attribute to indicate that the specified function is an
  29472. interrupt handler. The compiler generates function entry and exit
  29473. sequences suitable for use in an interrupt handler when this
  29474. attribute is present.
  29475. You can specify the kind of interrupt to be handled by adding an
  29476. optional parameter to the interrupt attribute like this:
  29477. void f (void) __attribute__ ((interrupt ("user")));
  29478. Permissible values for this parameter are 'user', 'supervisor', and
  29479. 'machine'. If there is no parameter, then it defaults to
  29480. 'machine'.
  29481. 
  29482. File: gcc.info, Node: RL78 Function Attributes, Next: RX Function Attributes, Prev: RISC-V Function Attributes, Up: Function Attributes
  29483. 6.33.28 RL78 Function Attributes
  29484. --------------------------------
  29485. These function attributes are supported by the RL78 back end:
  29486. 'interrupt'
  29487. 'brk_interrupt'
  29488. These attributes indicate that the specified function is an
  29489. interrupt handler. The compiler generates function entry and exit
  29490. sequences suitable for use in an interrupt handler when this
  29491. attribute is present.
  29492. Use 'brk_interrupt' instead of 'interrupt' for handlers intended to
  29493. be used with the 'BRK' opcode (i.e. those that must end with 'RETB'
  29494. instead of 'RETI').
  29495. 'naked'
  29496. This attribute allows the compiler to construct the requisite
  29497. function declaration, while allowing the body of the function to be
  29498. assembly code. The specified function will not have
  29499. prologue/epilogue sequences generated by the compiler. Only basic
  29500. 'asm' statements can safely be included in naked functions (*note
  29501. Basic Asm::). While using extended 'asm' or a mixture of basic
  29502. 'asm' and C code may appear to work, they cannot be depended upon
  29503. to work reliably and are not supported.
  29504. 
  29505. File: gcc.info, Node: RX Function Attributes, Next: S/390 Function Attributes, Prev: RL78 Function Attributes, Up: Function Attributes
  29506. 6.33.29 RX Function Attributes
  29507. ------------------------------
  29508. These function attributes are supported by the RX back end:
  29509. 'fast_interrupt'
  29510. Use this attribute on the RX port to indicate that the specified
  29511. function is a fast interrupt handler. This is just like the
  29512. 'interrupt' attribute, except that 'freit' is used to return
  29513. instead of 'reit'.
  29514. 'interrupt'
  29515. Use this attribute to indicate that the specified function is an
  29516. interrupt handler. The compiler generates function entry and exit
  29517. sequences suitable for use in an interrupt handler when this
  29518. attribute is present.
  29519. On RX and RL78 targets, you may specify one or more vector numbers
  29520. as arguments to the attribute, as well as naming an alternate table
  29521. name. Parameters are handled sequentially, so one handler can be
  29522. assigned to multiple entries in multiple tables. One may also pass
  29523. the magic string '"$default"' which causes the function to be used
  29524. for any unfilled slots in the current table.
  29525. This example shows a simple assignment of a function to one vector
  29526. in the default table (note that preprocessor macros may be used for
  29527. chip-specific symbolic vector names):
  29528. void __attribute__ ((interrupt (5))) txd1_handler ();
  29529. This example assigns a function to two slots in the default table
  29530. (using preprocessor macros defined elsewhere) and makes it the
  29531. default for the 'dct' table:
  29532. void __attribute__ ((interrupt (RXD1_VECT,RXD2_VECT,"dct","$default")))
  29533. txd1_handler ();
  29534. 'naked'
  29535. This attribute allows the compiler to construct the requisite
  29536. function declaration, while allowing the body of the function to be
  29537. assembly code. The specified function will not have
  29538. prologue/epilogue sequences generated by the compiler. Only basic
  29539. 'asm' statements can safely be included in naked functions (*note
  29540. Basic Asm::). While using extended 'asm' or a mixture of basic
  29541. 'asm' and C code may appear to work, they cannot be depended upon
  29542. to work reliably and are not supported.
  29543. 'vector'
  29544. This RX attribute is similar to the 'interrupt' attribute,
  29545. including its parameters, but does not make the function an
  29546. interrupt-handler type function (i.e. it retains the normal C
  29547. function calling ABI). See the 'interrupt' attribute for a
  29548. description of its arguments.
  29549. 
  29550. File: gcc.info, Node: S/390 Function Attributes, Next: SH Function Attributes, Prev: RX Function Attributes, Up: Function Attributes
  29551. 6.33.30 S/390 Function Attributes
  29552. ---------------------------------
  29553. These function attributes are supported on the S/390:
  29554. 'hotpatch (HALFWORDS-BEFORE-FUNCTION-LABEL,HALFWORDS-AFTER-FUNCTION-LABEL)'
  29555. On S/390 System z targets, you can use this function attribute to
  29556. make GCC generate a "hot-patching" function prologue. If the
  29557. '-mhotpatch=' command-line option is used at the same time, the
  29558. 'hotpatch' attribute takes precedence. The first of the two
  29559. arguments specifies the number of halfwords to be added before the
  29560. function label. A second argument can be used to specify the
  29561. number of halfwords to be added after the function label. For both
  29562. arguments the maximum allowed value is 1000000.
  29563. If both arguments are zero, hotpatching is disabled.
  29564. 'target (OPTIONS)'
  29565. As discussed in *note Common Function Attributes::, this attribute
  29566. allows specification of target-specific compilation options.
  29567. On S/390, the following options are supported:
  29568. 'arch='
  29569. 'tune='
  29570. 'stack-guard='
  29571. 'stack-size='
  29572. 'branch-cost='
  29573. 'warn-framesize='
  29574. 'backchain'
  29575. 'no-backchain'
  29576. 'hard-dfp'
  29577. 'no-hard-dfp'
  29578. 'hard-float'
  29579. 'soft-float'
  29580. 'htm'
  29581. 'no-htm'
  29582. 'vx'
  29583. 'no-vx'
  29584. 'packed-stack'
  29585. 'no-packed-stack'
  29586. 'small-exec'
  29587. 'no-small-exec'
  29588. 'mvcle'
  29589. 'no-mvcle'
  29590. 'warn-dynamicstack'
  29591. 'no-warn-dynamicstack'
  29592. The options work exactly like the S/390 specific command line
  29593. options (without the prefix '-m') except that they do not change
  29594. any feature macros. For example,
  29595. target("no-vx")
  29596. does not undefine the '__VEC__' macro.
  29597. 
  29598. File: gcc.info, Node: SH Function Attributes, Next: Symbian OS Function Attributes, Prev: S/390 Function Attributes, Up: Function Attributes
  29599. 6.33.31 SH Function Attributes
  29600. ------------------------------
  29601. These function attributes are supported on the SH family of processors:
  29602. 'function_vector'
  29603. On SH2A targets, this attribute declares a function to be called
  29604. using the TBR relative addressing mode. The argument to this
  29605. attribute is the entry number of the same function in a vector
  29606. table containing all the TBR relative addressable functions. For
  29607. correct operation the TBR must be setup accordingly to point to the
  29608. start of the vector table before any functions with this attribute
  29609. are invoked. Usually a good place to do the initialization is the
  29610. startup routine. The TBR relative vector table can have at max 256
  29611. function entries. The jumps to these functions are generated using
  29612. a SH2A specific, non delayed branch instruction JSR/N @(disp8,TBR).
  29613. You must use GAS and GLD from GNU binutils version 2.7 or later for
  29614. this attribute to work correctly.
  29615. In an application, for a function being called once, this attribute
  29616. saves at least 8 bytes of code; and if other successive calls are
  29617. being made to the same function, it saves 2 bytes of code per each
  29618. of these calls.
  29619. 'interrupt_handler'
  29620. Use this attribute to indicate that the specified function is an
  29621. interrupt handler. The compiler generates function entry and exit
  29622. sequences suitable for use in an interrupt handler when this
  29623. attribute is present.
  29624. 'nosave_low_regs'
  29625. Use this attribute on SH targets to indicate that an
  29626. 'interrupt_handler' function should not save and restore registers
  29627. R0..R7. This can be used on SH3* and SH4* targets that have a
  29628. second R0..R7 register bank for non-reentrant interrupt handlers.
  29629. 'renesas'
  29630. On SH targets this attribute specifies that the function or struct
  29631. follows the Renesas ABI.
  29632. 'resbank'
  29633. On the SH2A target, this attribute enables the high-speed register
  29634. saving and restoration using a register bank for
  29635. 'interrupt_handler' routines. Saving to the bank is performed
  29636. automatically after the CPU accepts an interrupt that uses a
  29637. register bank.
  29638. The nineteen 32-bit registers comprising general register R0 to
  29639. R14, control register GBR, and system registers MACH, MACL, and PR
  29640. and the vector table address offset are saved into a register bank.
  29641. Register banks are stacked in first-in last-out (FILO) sequence.
  29642. Restoration from the bank is executed by issuing a RESBANK
  29643. instruction.
  29644. 'sp_switch'
  29645. Use this attribute on the SH to indicate an 'interrupt_handler'
  29646. function should switch to an alternate stack. It expects a string
  29647. argument that names a global variable holding the address of the
  29648. alternate stack.
  29649. void *alt_stack;
  29650. void f () __attribute__ ((interrupt_handler,
  29651. sp_switch ("alt_stack")));
  29652. 'trap_exit'
  29653. Use this attribute on the SH for an 'interrupt_handler' to return
  29654. using 'trapa' instead of 'rte'. This attribute expects an integer
  29655. argument specifying the trap number to be used.
  29656. 'trapa_handler'
  29657. On SH targets this function attribute is similar to
  29658. 'interrupt_handler' but it does not save and restore all registers.
  29659. 
  29660. File: gcc.info, Node: Symbian OS Function Attributes, Next: V850 Function Attributes, Prev: SH Function Attributes, Up: Function Attributes
  29661. 6.33.32 Symbian OS Function Attributes
  29662. --------------------------------------
  29663. *Note Microsoft Windows Function Attributes::, for discussion of the
  29664. 'dllexport' and 'dllimport' attributes.
  29665. 
  29666. File: gcc.info, Node: V850 Function Attributes, Next: Visium Function Attributes, Prev: Symbian OS Function Attributes, Up: Function Attributes
  29667. 6.33.33 V850 Function Attributes
  29668. --------------------------------
  29669. The V850 back end supports these function attributes:
  29670. 'interrupt'
  29671. 'interrupt_handler'
  29672. Use these attributes to indicate that the specified function is an
  29673. interrupt handler. The compiler generates function entry and exit
  29674. sequences suitable for use in an interrupt handler when either
  29675. attribute is present.
  29676. 
  29677. File: gcc.info, Node: Visium Function Attributes, Next: x86 Function Attributes, Prev: V850 Function Attributes, Up: Function Attributes
  29678. 6.33.34 Visium Function Attributes
  29679. ----------------------------------
  29680. These function attributes are supported by the Visium back end:
  29681. 'interrupt'
  29682. Use this attribute to indicate that the specified function is an
  29683. interrupt handler. The compiler generates function entry and exit
  29684. sequences suitable for use in an interrupt handler when this
  29685. attribute is present.
  29686. 
  29687. File: gcc.info, Node: x86 Function Attributes, Next: Xstormy16 Function Attributes, Prev: Visium Function Attributes, Up: Function Attributes
  29688. 6.33.35 x86 Function Attributes
  29689. -------------------------------
  29690. These function attributes are supported by the x86 back end:
  29691. 'cdecl'
  29692. On the x86-32 targets, the 'cdecl' attribute causes the compiler to
  29693. assume that the calling function pops off the stack space used to
  29694. pass arguments. This is useful to override the effects of the
  29695. '-mrtd' switch.
  29696. 'fastcall'
  29697. On x86-32 targets, the 'fastcall' attribute causes the compiler to
  29698. pass the first argument (if of integral type) in the register ECX
  29699. and the second argument (if of integral type) in the register EDX.
  29700. Subsequent and other typed arguments are passed on the stack. The
  29701. called function pops the arguments off the stack. If the number of
  29702. arguments is variable all arguments are pushed on the stack.
  29703. 'thiscall'
  29704. On x86-32 targets, the 'thiscall' attribute causes the compiler to
  29705. pass the first argument (if of integral type) in the register ECX.
  29706. Subsequent and other typed arguments are passed on the stack. The
  29707. called function pops the arguments off the stack. If the number of
  29708. arguments is variable all arguments are pushed on the stack. The
  29709. 'thiscall' attribute is intended for C++ non-static member
  29710. functions. As a GCC extension, this calling convention can be used
  29711. for C functions and for static member methods.
  29712. 'ms_abi'
  29713. 'sysv_abi'
  29714. On 32-bit and 64-bit x86 targets, you can use an ABI attribute to
  29715. indicate which calling convention should be used for a function.
  29716. The 'ms_abi' attribute tells the compiler to use the Microsoft ABI,
  29717. while the 'sysv_abi' attribute tells the compiler to use the System
  29718. V ELF ABI, which is used on GNU/Linux and other systems. The
  29719. default is to use the Microsoft ABI when targeting Windows. On all
  29720. other systems, the default is the System V ELF ABI.
  29721. Note, the 'ms_abi' attribute for Microsoft Windows 64-bit targets
  29722. currently requires the '-maccumulate-outgoing-args' option.
  29723. 'callee_pop_aggregate_return (NUMBER)'
  29724. On x86-32 targets, you can use this attribute to control how
  29725. aggregates are returned in memory. If the caller is responsible
  29726. for popping the hidden pointer together with the rest of the
  29727. arguments, specify NUMBER equal to zero. If callee is responsible
  29728. for popping the hidden pointer, specify NUMBER equal to one.
  29729. The default x86-32 ABI assumes that the callee pops the stack for
  29730. hidden pointer. However, on x86-32 Microsoft Windows targets, the
  29731. compiler assumes that the caller pops the stack for hidden pointer.
  29732. 'ms_hook_prologue'
  29733. On 32-bit and 64-bit x86 targets, you can use this function
  29734. attribute to make GCC generate the "hot-patching" function prologue
  29735. used in Win32 API functions in Microsoft Windows XP Service Pack 2
  29736. and newer.
  29737. 'naked'
  29738. This attribute allows the compiler to construct the requisite
  29739. function declaration, while allowing the body of the function to be
  29740. assembly code. The specified function will not have
  29741. prologue/epilogue sequences generated by the compiler. Only basic
  29742. 'asm' statements can safely be included in naked functions (*note
  29743. Basic Asm::). While using extended 'asm' or a mixture of basic
  29744. 'asm' and C code may appear to work, they cannot be depended upon
  29745. to work reliably and are not supported.
  29746. 'regparm (NUMBER)'
  29747. On x86-32 targets, the 'regparm' attribute causes the compiler to
  29748. pass arguments number one to NUMBER if they are of integral type in
  29749. registers EAX, EDX, and ECX instead of on the stack. Functions
  29750. that take a variable number of arguments continue to be passed all
  29751. of their arguments on the stack.
  29752. Beware that on some ELF systems this attribute is unsuitable for
  29753. global functions in shared libraries with lazy binding (which is
  29754. the default). Lazy binding sends the first call via resolving code
  29755. in the loader, which might assume EAX, EDX and ECX can be
  29756. clobbered, as per the standard calling conventions. Solaris 8 is
  29757. affected by this. Systems with the GNU C Library version 2.1 or
  29758. higher and FreeBSD are believed to be safe since the loaders there
  29759. save EAX, EDX and ECX. (Lazy binding can be disabled with the
  29760. linker or the loader if desired, to avoid the problem.)
  29761. 'sseregparm'
  29762. On x86-32 targets with SSE support, the 'sseregparm' attribute
  29763. causes the compiler to pass up to 3 floating-point arguments in SSE
  29764. registers instead of on the stack. Functions that take a variable
  29765. number of arguments continue to pass all of their floating-point
  29766. arguments on the stack.
  29767. 'force_align_arg_pointer'
  29768. On x86 targets, the 'force_align_arg_pointer' attribute may be
  29769. applied to individual function definitions, generating an alternate
  29770. prologue and epilogue that realigns the run-time stack if
  29771. necessary. This supports mixing legacy codes that run with a
  29772. 4-byte aligned stack with modern codes that keep a 16-byte stack
  29773. for SSE compatibility.
  29774. 'stdcall'
  29775. On x86-32 targets, the 'stdcall' attribute causes the compiler to
  29776. assume that the called function pops off the stack space used to
  29777. pass arguments, unless it takes a variable number of arguments.
  29778. 'no_caller_saved_registers'
  29779. Use this attribute to indicate that the specified function has no
  29780. caller-saved registers. That is, all registers are callee-saved.
  29781. For example, this attribute can be used for a function called from
  29782. an interrupt handler. The compiler generates proper function entry
  29783. and exit sequences to save and restore any modified registers,
  29784. except for the EFLAGS register. Since GCC doesn't preserve SSE,
  29785. MMX nor x87 states, the GCC option '-mgeneral-regs-only' should be
  29786. used to compile functions with 'no_caller_saved_registers'
  29787. attribute.
  29788. 'interrupt'
  29789. Use this attribute to indicate that the specified function is an
  29790. interrupt handler or an exception handler (depending on parameters
  29791. passed to the function, explained further). The compiler generates
  29792. function entry and exit sequences suitable for use in an interrupt
  29793. handler when this attribute is present. The 'IRET' instruction,
  29794. instead of the 'RET' instruction, is used to return from interrupt
  29795. handlers. All registers, except for the EFLAGS register which is
  29796. restored by the 'IRET' instruction, are preserved by the compiler.
  29797. Since GCC doesn't preserve SSE, MMX nor x87 states, the GCC option
  29798. '-mgeneral-regs-only' should be used to compile interrupt and
  29799. exception handlers.
  29800. Any interruptible-without-stack-switch code must be compiled with
  29801. '-mno-red-zone' since interrupt handlers can and will, because of
  29802. the hardware design, touch the red zone.
  29803. An interrupt handler must be declared with a mandatory pointer
  29804. argument:
  29805. struct interrupt_frame;
  29806. __attribute__ ((interrupt))
  29807. void
  29808. f (struct interrupt_frame *frame)
  29809. {
  29810. }
  29811. and you must define 'struct interrupt_frame' as described in the
  29812. processor's manual.
  29813. Exception handlers differ from interrupt handlers because the
  29814. system pushes an error code on the stack. An exception handler
  29815. declaration is similar to that for an interrupt handler, but with a
  29816. different mandatory function signature. The compiler arranges to
  29817. pop the error code off the stack before the 'IRET' instruction.
  29818. #ifdef __x86_64__
  29819. typedef unsigned long long int uword_t;
  29820. #else
  29821. typedef unsigned int uword_t;
  29822. #endif
  29823. struct interrupt_frame;
  29824. __attribute__ ((interrupt))
  29825. void
  29826. f (struct interrupt_frame *frame, uword_t error_code)
  29827. {
  29828. ...
  29829. }
  29830. Exception handlers should only be used for exceptions that push an
  29831. error code; you should use an interrupt handler in other cases.
  29832. The system will crash if the wrong kind of handler is used.
  29833. 'target (OPTIONS)'
  29834. As discussed in *note Common Function Attributes::, this attribute
  29835. allows specification of target-specific compilation options.
  29836. On the x86, the following options are allowed:
  29837. '3dnow'
  29838. 'no-3dnow'
  29839. Enable/disable the generation of the 3DNow! instructions.
  29840. '3dnowa'
  29841. 'no-3dnowa'
  29842. Enable/disable the generation of the enhanced 3DNow!
  29843. instructions.
  29844. 'abm'
  29845. 'no-abm'
  29846. Enable/disable the generation of the advanced bit
  29847. instructions.
  29848. 'adx'
  29849. 'no-adx'
  29850. Enable/disable the generation of the ADX instructions.
  29851. 'aes'
  29852. 'no-aes'
  29853. Enable/disable the generation of the AES instructions.
  29854. 'avx'
  29855. 'no-avx'
  29856. Enable/disable the generation of the AVX instructions.
  29857. 'avx2'
  29858. 'no-avx2'
  29859. Enable/disable the generation of the AVX2 instructions.
  29860. 'avx5124fmaps'
  29861. 'no-avx5124fmaps'
  29862. Enable/disable the generation of the AVX5124FMAPS
  29863. instructions.
  29864. 'avx5124vnniw'
  29865. 'no-avx5124vnniw'
  29866. Enable/disable the generation of the AVX5124VNNIW
  29867. instructions.
  29868. 'avx512bitalg'
  29869. 'no-avx512bitalg'
  29870. Enable/disable the generation of the AVX512BITALG
  29871. instructions.
  29872. 'avx512bw'
  29873. 'no-avx512bw'
  29874. Enable/disable the generation of the AVX512BW instructions.
  29875. 'avx512cd'
  29876. 'no-avx512cd'
  29877. Enable/disable the generation of the AVX512CD instructions.
  29878. 'avx512dq'
  29879. 'no-avx512dq'
  29880. Enable/disable the generation of the AVX512DQ instructions.
  29881. 'avx512er'
  29882. 'no-avx512er'
  29883. Enable/disable the generation of the AVX512ER instructions.
  29884. 'avx512f'
  29885. 'no-avx512f'
  29886. Enable/disable the generation of the AVX512F instructions.
  29887. 'avx512ifma'
  29888. 'no-avx512ifma'
  29889. Enable/disable the generation of the AVX512IFMA instructions.
  29890. 'avx512pf'
  29891. 'no-avx512pf'
  29892. Enable/disable the generation of the AVX512PF instructions.
  29893. 'avx512vbmi'
  29894. 'no-avx512vbmi'
  29895. Enable/disable the generation of the AVX512VBMI instructions.
  29896. 'avx512vbmi2'
  29897. 'no-avx512vbmi2'
  29898. Enable/disable the generation of the AVX512VBMI2 instructions.
  29899. 'avx512vl'
  29900. 'no-avx512vl'
  29901. Enable/disable the generation of the AVX512VL instructions.
  29902. 'avx512vnni'
  29903. 'no-avx512vnni'
  29904. Enable/disable the generation of the AVX512VNNI instructions.
  29905. 'avx512vpopcntdq'
  29906. 'no-avx512vpopcntdq'
  29907. Enable/disable the generation of the AVX512VPOPCNTDQ
  29908. instructions.
  29909. 'bmi'
  29910. 'no-bmi'
  29911. Enable/disable the generation of the BMI instructions.
  29912. 'bmi2'
  29913. 'no-bmi2'
  29914. Enable/disable the generation of the BMI2 instructions.
  29915. 'cldemote'
  29916. 'no-cldemote'
  29917. Enable/disable the generation of the CLDEMOTE instructions.
  29918. 'clflushopt'
  29919. 'no-clflushopt'
  29920. Enable/disable the generation of the CLFLUSHOPT instructions.
  29921. 'clwb'
  29922. 'no-clwb'
  29923. Enable/disable the generation of the CLWB instructions.
  29924. 'clzero'
  29925. 'no-clzero'
  29926. Enable/disable the generation of the CLZERO instructions.
  29927. 'crc32'
  29928. 'no-crc32'
  29929. Enable/disable the generation of the CRC32 instructions.
  29930. 'cx16'
  29931. 'no-cx16'
  29932. Enable/disable the generation of the CMPXCHG16B instructions.
  29933. 'default'
  29934. *Note Function Multiversioning::, where it is used to specify
  29935. the default function version.
  29936. 'f16c'
  29937. 'no-f16c'
  29938. Enable/disable the generation of the F16C instructions.
  29939. 'fma'
  29940. 'no-fma'
  29941. Enable/disable the generation of the FMA instructions.
  29942. 'fma4'
  29943. 'no-fma4'
  29944. Enable/disable the generation of the FMA4 instructions.
  29945. 'fsgsbase'
  29946. 'no-fsgsbase'
  29947. Enable/disable the generation of the FSGSBASE instructions.
  29948. 'fxsr'
  29949. 'no-fxsr'
  29950. Enable/disable the generation of the FXSR instructions.
  29951. 'gfni'
  29952. 'no-gfni'
  29953. Enable/disable the generation of the GFNI instructions.
  29954. 'hle'
  29955. 'no-hle'
  29956. Enable/disable the generation of the HLE instruction prefixes.
  29957. 'lwp'
  29958. 'no-lwp'
  29959. Enable/disable the generation of the LWP instructions.
  29960. 'lzcnt'
  29961. 'no-lzcnt'
  29962. Enable/disable the generation of the LZCNT instructions.
  29963. 'mmx'
  29964. 'no-mmx'
  29965. Enable/disable the generation of the MMX instructions.
  29966. 'movbe'
  29967. 'no-movbe'
  29968. Enable/disable the generation of the MOVBE instructions.
  29969. 'movdir64b'
  29970. 'no-movdir64b'
  29971. Enable/disable the generation of the MOVDIR64B instructions.
  29972. 'movdiri'
  29973. 'no-movdiri'
  29974. Enable/disable the generation of the MOVDIRI instructions.
  29975. 'mwaitx'
  29976. 'no-mwaitx'
  29977. Enable/disable the generation of the MWAITX instructions.
  29978. 'pclmul'
  29979. 'no-pclmul'
  29980. Enable/disable the generation of the PCLMUL instructions.
  29981. 'pconfig'
  29982. 'no-pconfig'
  29983. Enable/disable the generation of the PCONFIG instructions.
  29984. 'pku'
  29985. 'no-pku'
  29986. Enable/disable the generation of the PKU instructions.
  29987. 'popcnt'
  29988. 'no-popcnt'
  29989. Enable/disable the generation of the POPCNT instruction.
  29990. 'prefetchwt1'
  29991. 'no-prefetchwt1'
  29992. Enable/disable the generation of the PREFETCHWT1 instructions.
  29993. 'prfchw'
  29994. 'no-prfchw'
  29995. Enable/disable the generation of the PREFETCHW instruction.
  29996. 'ptwrite'
  29997. 'no-ptwrite'
  29998. Enable/disable the generation of the PTWRITE instructions.
  29999. 'rdpid'
  30000. 'no-rdpid'
  30001. Enable/disable the generation of the RDPID instructions.
  30002. 'rdrnd'
  30003. 'no-rdrnd'
  30004. Enable/disable the generation of the RDRND instructions.
  30005. 'rdseed'
  30006. 'no-rdseed'
  30007. Enable/disable the generation of the RDSEED instructions.
  30008. 'rtm'
  30009. 'no-rtm'
  30010. Enable/disable the generation of the RTM instructions.
  30011. 'sahf'
  30012. 'no-sahf'
  30013. Enable/disable the generation of the SAHF instructions.
  30014. 'sgx'
  30015. 'no-sgx'
  30016. Enable/disable the generation of the SGX instructions.
  30017. 'sha'
  30018. 'no-sha'
  30019. Enable/disable the generation of the SHA instructions.
  30020. 'shstk'
  30021. 'no-shstk'
  30022. Enable/disable the shadow stack built-in functions from CET.
  30023. 'sse'
  30024. 'no-sse'
  30025. Enable/disable the generation of the SSE instructions.
  30026. 'sse2'
  30027. 'no-sse2'
  30028. Enable/disable the generation of the SSE2 instructions.
  30029. 'sse3'
  30030. 'no-sse3'
  30031. Enable/disable the generation of the SSE3 instructions.
  30032. 'sse4'
  30033. 'no-sse4'
  30034. Enable/disable the generation of the SSE4 instructions (both
  30035. SSE4.1 and SSE4.2).
  30036. 'sse4.1'
  30037. 'no-sse4.1'
  30038. Enable/disable the generation of the sse4.1 instructions.
  30039. 'sse4.2'
  30040. 'no-sse4.2'
  30041. Enable/disable the generation of the sse4.2 instructions.
  30042. 'sse4a'
  30043. 'no-sse4a'
  30044. Enable/disable the generation of the SSE4A instructions.
  30045. 'ssse3'
  30046. 'no-ssse3'
  30047. Enable/disable the generation of the SSSE3 instructions.
  30048. 'tbm'
  30049. 'no-tbm'
  30050. Enable/disable the generation of the TBM instructions.
  30051. 'vaes'
  30052. 'no-vaes'
  30053. Enable/disable the generation of the VAES instructions.
  30054. 'vpclmulqdq'
  30055. 'no-vpclmulqdq'
  30056. Enable/disable the generation of the VPCLMULQDQ instructions.
  30057. 'waitpkg'
  30058. 'no-waitpkg'
  30059. Enable/disable the generation of the WAITPKG instructions.
  30060. 'wbnoinvd'
  30061. 'no-wbnoinvd'
  30062. Enable/disable the generation of the WBNOINVD instructions.
  30063. 'xop'
  30064. 'no-xop'
  30065. Enable/disable the generation of the XOP instructions.
  30066. 'xsave'
  30067. 'no-xsave'
  30068. Enable/disable the generation of the XSAVE instructions.
  30069. 'xsavec'
  30070. 'no-xsavec'
  30071. Enable/disable the generation of the XSAVEC instructions.
  30072. 'xsaveopt'
  30073. 'no-xsaveopt'
  30074. Enable/disable the generation of the XSAVEOPT instructions.
  30075. 'xsaves'
  30076. 'no-xsaves'
  30077. Enable/disable the generation of the XSAVES instructions.
  30078. 'amx-tile'
  30079. 'no-amx-tile'
  30080. Enable/disable the generation of the AMX-TILE instructions.
  30081. 'amx-int8'
  30082. 'no-amx-int8'
  30083. Enable/disable the generation of the AMX-INT8 instructions.
  30084. 'amx-bf16'
  30085. 'no-amx-bf16'
  30086. Enable/disable the generation of the AMX-BF16 instructions.
  30087. 'uintr'
  30088. 'no-uintr'
  30089. Enable/disable the generation of the UINTR instructions.
  30090. 'hreset'
  30091. 'no-hreset'
  30092. Enable/disable the generation of the HRESET instruction.
  30093. 'kl'
  30094. 'no-kl'
  30095. Enable/disable the generation of the KEYLOCKER instructions.
  30096. 'widekl'
  30097. 'no-widekl'
  30098. Enable/disable the generation of the WIDEKL instructions.
  30099. 'avxvnni'
  30100. 'no-avxvnni'
  30101. Enable/disable the generation of the AVXVNNI instructions.
  30102. 'cld'
  30103. 'no-cld'
  30104. Enable/disable the generation of the CLD before string moves.
  30105. 'fancy-math-387'
  30106. 'no-fancy-math-387'
  30107. Enable/disable the generation of the 'sin', 'cos', and 'sqrt'
  30108. instructions on the 387 floating-point unit.
  30109. 'ieee-fp'
  30110. 'no-ieee-fp'
  30111. Enable/disable the generation of floating point that depends
  30112. on IEEE arithmetic.
  30113. 'inline-all-stringops'
  30114. 'no-inline-all-stringops'
  30115. Enable/disable inlining of string operations.
  30116. 'inline-stringops-dynamically'
  30117. 'no-inline-stringops-dynamically'
  30118. Enable/disable the generation of the inline code to do small
  30119. string operations and calling the library routines for large
  30120. operations.
  30121. 'align-stringops'
  30122. 'no-align-stringops'
  30123. Do/do not align destination of inlined string operations.
  30124. 'recip'
  30125. 'no-recip'
  30126. Enable/disable the generation of RCPSS, RCPPS, RSQRTSS and
  30127. RSQRTPS instructions followed an additional Newton-Raphson
  30128. step instead of doing a floating-point division.
  30129. 'general-regs-only'
  30130. Generate code which uses only the general registers.
  30131. 'arch=ARCH'
  30132. Specify the architecture to generate code for in compiling the
  30133. function.
  30134. 'tune=TUNE'
  30135. Specify the architecture to tune for in compiling the
  30136. function.
  30137. 'fpmath=FPMATH'
  30138. Specify which floating-point unit to use. You must specify
  30139. the 'target("fpmath=sse,387")' option as
  30140. 'target("fpmath=sse+387")' because the comma would separate
  30141. different options.
  30142. 'prefer-vector-width=OPT'
  30143. On x86 targets, the 'prefer-vector-width' attribute informs
  30144. the compiler to use OPT-bit vector width in instructions
  30145. instead of the default on the selected platform.
  30146. Valid OPT values are:
  30147. 'none'
  30148. No extra limitations applied to GCC other than defined by
  30149. the selected platform.
  30150. '128'
  30151. Prefer 128-bit vector width for instructions.
  30152. '256'
  30153. Prefer 256-bit vector width for instructions.
  30154. '512'
  30155. Prefer 512-bit vector width for instructions.
  30156. On the x86, the inliner does not inline a function that has
  30157. different target options than the caller, unless the callee
  30158. has a subset of the target options of the caller. For example
  30159. a function declared with 'target("sse3")' can inline a
  30160. function with 'target("sse2")', since '-msse3' implies
  30161. '-msse2'.
  30162. 'indirect_branch("CHOICE")'
  30163. On x86 targets, the 'indirect_branch' attribute causes the compiler
  30164. to convert indirect call and jump with CHOICE. 'keep' keeps
  30165. indirect call and jump unmodified. 'thunk' converts indirect call
  30166. and jump to call and return thunk. 'thunk-inline' converts
  30167. indirect call and jump to inlined call and return thunk.
  30168. 'thunk-extern' converts indirect call and jump to external call and
  30169. return thunk provided in a separate object file.
  30170. 'function_return("CHOICE")'
  30171. On x86 targets, the 'function_return' attribute causes the compiler
  30172. to convert function return with CHOICE. 'keep' keeps function
  30173. return unmodified. 'thunk' converts function return to call and
  30174. return thunk. 'thunk-inline' converts function return to inlined
  30175. call and return thunk. 'thunk-extern' converts function return to
  30176. external call and return thunk provided in a separate object file.
  30177. 'nocf_check'
  30178. The 'nocf_check' attribute on a function is used to inform the
  30179. compiler that the function's prologue should not be instrumented
  30180. when compiled with the '-fcf-protection=branch' option. The
  30181. compiler assumes that the function's address is a valid target for
  30182. a control-flow transfer.
  30183. The 'nocf_check' attribute on a type of pointer to function is used
  30184. to inform the compiler that a call through the pointer should not
  30185. be instrumented when compiled with the '-fcf-protection=branch'
  30186. option. The compiler assumes that the function's address from the
  30187. pointer is a valid target for a control-flow transfer. A direct
  30188. function call through a function name is assumed to be a safe call
  30189. thus direct calls are not instrumented by the compiler.
  30190. The 'nocf_check' attribute is applied to an object's type. In case
  30191. of assignment of a function address or a function pointer to
  30192. another pointer, the attribute is not carried over from the
  30193. right-hand object's type; the type of left-hand object stays
  30194. unchanged. The compiler checks for 'nocf_check' attribute mismatch
  30195. and reports a warning in case of mismatch.
  30196. {
  30197. int foo (void) __attribute__(nocf_check);
  30198. void (*foo1)(void) __attribute__(nocf_check);
  30199. void (*foo2)(void);
  30200. /* foo's address is assumed to be valid. */
  30201. int
  30202. foo (void)
  30203. /* This call site is not checked for control-flow
  30204. validity. */
  30205. (*foo1)();
  30206. /* A warning is issued about attribute mismatch. */
  30207. foo1 = foo2;
  30208. /* This call site is still not checked. */
  30209. (*foo1)();
  30210. /* This call site is checked. */
  30211. (*foo2)();
  30212. /* A warning is issued about attribute mismatch. */
  30213. foo2 = foo1;
  30214. /* This call site is still checked. */
  30215. (*foo2)();
  30216. return 0;
  30217. }
  30218. 'cf_check'
  30219. The 'cf_check' attribute on a function is used to inform the
  30220. compiler that ENDBR instruction should be placed at the function
  30221. entry when '-fcf-protection=branch' is enabled.
  30222. 'indirect_return'
  30223. The 'indirect_return' attribute can be applied to a function, as
  30224. well as variable or type of function pointer to inform the compiler
  30225. that the function may return via indirect branch.
  30226. 'fentry_name("NAME")'
  30227. On x86 targets, the 'fentry_name' attribute sets the function to
  30228. call on function entry when function instrumentation is enabled
  30229. with '-pg -mfentry'. When NAME is nop then a 5 byte nop sequence
  30230. is generated.
  30231. 'fentry_section("NAME")'
  30232. On x86 targets, the 'fentry_section' attribute sets the name of the
  30233. section to record function entry instrumentation calls in when
  30234. enabled with '-pg -mrecord-mcount'
  30235. 
  30236. File: gcc.info, Node: Xstormy16 Function Attributes, Prev: x86 Function Attributes, Up: Function Attributes
  30237. 6.33.36 Xstormy16 Function Attributes
  30238. -------------------------------------
  30239. These function attributes are supported by the Xstormy16 back end:
  30240. 'interrupt'
  30241. Use this attribute to indicate that the specified function is an
  30242. interrupt handler. The compiler generates function entry and exit
  30243. sequences suitable for use in an interrupt handler when this
  30244. attribute is present.
  30245. 
  30246. File: gcc.info, Node: Variable Attributes, Next: Type Attributes, Prev: Function Attributes, Up: C Extensions
  30247. 6.34 Specifying Attributes of Variables
  30248. =======================================
  30249. The keyword '__attribute__' allows you to specify special properties of
  30250. variables, function parameters, or structure, union, and, in C++, class
  30251. members. This '__attribute__' keyword is followed by an attribute
  30252. specification enclosed in double parentheses. Some attributes are
  30253. currently defined generically for variables. Other attributes are
  30254. defined for variables on particular target systems. Other attributes
  30255. are available for functions (*note Function Attributes::), labels (*note
  30256. Label Attributes::), enumerators (*note Enumerator Attributes::),
  30257. statements (*note Statement Attributes::), and for types (*note Type
  30258. Attributes::). Other front ends might define more attributes (*note
  30259. Extensions to the C++ Language: C++ Extensions.).
  30260. *Note Attribute Syntax::, for details of the exact syntax for using
  30261. attributes.
  30262. * Menu:
  30263. * Common Variable Attributes::
  30264. * ARC Variable Attributes::
  30265. * AVR Variable Attributes::
  30266. * Blackfin Variable Attributes::
  30267. * H8/300 Variable Attributes::
  30268. * IA-64 Variable Attributes::
  30269. * M32R/D Variable Attributes::
  30270. * MeP Variable Attributes::
  30271. * Microsoft Windows Variable Attributes::
  30272. * MSP430 Variable Attributes::
  30273. * Nvidia PTX Variable Attributes::
  30274. * PowerPC Variable Attributes::
  30275. * RL78 Variable Attributes::
  30276. * V850 Variable Attributes::
  30277. * x86 Variable Attributes::
  30278. * Xstormy16 Variable Attributes::
  30279. 
  30280. File: gcc.info, Node: Common Variable Attributes, Next: ARC Variable Attributes, Up: Variable Attributes
  30281. 6.34.1 Common Variable Attributes
  30282. ---------------------------------
  30283. The following attributes are supported on most targets.
  30284. 'alias ("TARGET")'
  30285. The 'alias' variable attribute causes the declaration to be emitted
  30286. as an alias for another symbol known as an "alias target". Except
  30287. for top-level qualifiers the alias target must have the same type
  30288. as the alias. For instance, the following
  30289. int var_target;
  30290. extern int __attribute__ ((alias ("var_target"))) var_alias;
  30291. defines 'var_alias' to be an alias for the 'var_target' variable.
  30292. It is an error if the alias target is not defined in the same
  30293. translation unit as the alias.
  30294. Note that in the absence of the attribute GCC assumes that distinct
  30295. declarations with external linkage denote distinct objects. Using
  30296. both the alias and the alias target to access the same object is
  30297. undefined in a translation unit without a declaration of the alias
  30298. with the attribute.
  30299. This attribute requires assembler and object file support, and may
  30300. not be available on all targets.
  30301. 'aligned'
  30302. 'aligned (ALIGNMENT)'
  30303. The 'aligned' attribute specifies a minimum alignment for the
  30304. variable or structure field, measured in bytes. When specified,
  30305. ALIGNMENT must be an integer constant power of 2. Specifying no
  30306. ALIGNMENT argument implies the maximum alignment for the target,
  30307. which is often, but by no means always, 8 or 16 bytes.
  30308. For example, the declaration:
  30309. int x __attribute__ ((aligned (16))) = 0;
  30310. causes the compiler to allocate the global variable 'x' on a
  30311. 16-byte boundary. On a 68040, this could be used in conjunction
  30312. with an 'asm' expression to access the 'move16' instruction which
  30313. requires 16-byte aligned operands.
  30314. You can also specify the alignment of structure fields. For
  30315. example, to create a double-word aligned 'int' pair, you could
  30316. write:
  30317. struct foo { int x[2] __attribute__ ((aligned (8))); };
  30318. This is an alternative to creating a union with a 'double' member,
  30319. which forces the union to be double-word aligned.
  30320. As in the preceding examples, you can explicitly specify the
  30321. alignment (in bytes) that you wish the compiler to use for a given
  30322. variable or structure field. Alternatively, you can leave out the
  30323. alignment factor and just ask the compiler to align a variable or
  30324. field to the default alignment for the target architecture you are
  30325. compiling for. The default alignment is sufficient for all scalar
  30326. types, but may not be enough for all vector types on a target that
  30327. supports vector operations. The default alignment is fixed for a
  30328. particular target ABI.
  30329. GCC also provides a target specific macro '__BIGGEST_ALIGNMENT__',
  30330. which is the largest alignment ever used for any data type on the
  30331. target machine you are compiling for. For example, you could
  30332. write:
  30333. short array[3] __attribute__ ((aligned (__BIGGEST_ALIGNMENT__)));
  30334. The compiler automatically sets the alignment for the declared
  30335. variable or field to '__BIGGEST_ALIGNMENT__'. Doing this can often
  30336. make copy operations more efficient, because the compiler can use
  30337. whatever instructions copy the biggest chunks of memory when
  30338. performing copies to or from the variables or fields that you have
  30339. aligned this way. Note that the value of '__BIGGEST_ALIGNMENT__'
  30340. may change depending on command-line options.
  30341. When used on a struct, or struct member, the 'aligned' attribute
  30342. can only increase the alignment; in order to decrease it, the
  30343. 'packed' attribute must be specified as well. When used as part of
  30344. a typedef, the 'aligned' attribute can both increase and decrease
  30345. alignment, and specifying the 'packed' attribute generates a
  30346. warning.
  30347. Note that the effectiveness of 'aligned' attributes for static
  30348. variables may be limited by inherent limitations in the system
  30349. linker and/or object file format. On some systems, the linker is
  30350. only able to arrange for variables to be aligned up to a certain
  30351. maximum alignment. (For some linkers, the maximum supported
  30352. alignment may be very very small.) If your linker is only able to
  30353. align variables up to a maximum of 8-byte alignment, then
  30354. specifying 'aligned(16)' in an '__attribute__' still only provides
  30355. you with 8-byte alignment. See your linker documentation for
  30356. further information.
  30357. Stack variables are not affected by linker restrictions; GCC can
  30358. properly align them on any target.
  30359. The 'aligned' attribute can also be used for functions (*note
  30360. Common Function Attributes::.)
  30361. 'warn_if_not_aligned (ALIGNMENT)'
  30362. This attribute specifies a threshold for the structure field,
  30363. measured in bytes. If the structure field is aligned below the
  30364. threshold, a warning will be issued. For example, the declaration:
  30365. struct foo
  30366. {
  30367. int i1;
  30368. int i2;
  30369. unsigned long long x __attribute__ ((warn_if_not_aligned (16)));
  30370. };
  30371. causes the compiler to issue an warning on 'struct foo', like
  30372. 'warning: alignment 8 of 'struct foo' is less than 16'. The
  30373. compiler also issues a warning, like 'warning: 'x' offset 8 in
  30374. 'struct foo' isn't aligned to 16', when the structure field has the
  30375. misaligned offset:
  30376. struct __attribute__ ((aligned (16))) foo
  30377. {
  30378. int i1;
  30379. int i2;
  30380. unsigned long long x __attribute__ ((warn_if_not_aligned (16)));
  30381. };
  30382. This warning can be disabled by '-Wno-if-not-aligned'. The
  30383. 'warn_if_not_aligned' attribute can also be used for types (*note
  30384. Common Type Attributes::.)
  30385. 'alloc_size (POSITION)'
  30386. 'alloc_size (POSITION-1, POSITION-2)'
  30387. The 'alloc_size' variable attribute may be applied to the
  30388. declaration of a pointer to a function that returns a pointer and
  30389. takes at least one argument of an integer type. It indicates that
  30390. the returned pointer points to an object whose size is given by the
  30391. function argument at POSITION-1, or by the product of the arguments
  30392. at POSITION-1 and POSITION-2. Meaningful sizes are positive values
  30393. less than 'PTRDIFF_MAX'. Other sizes are disagnosed when detected.
  30394. GCC uses this information to improve the results of
  30395. '__builtin_object_size'.
  30396. For instance, the following declarations
  30397. typedef __attribute__ ((alloc_size (1, 2))) void*
  30398. (*calloc_ptr) (size_t, size_t);
  30399. typedef __attribute__ ((alloc_size (1))) void*
  30400. (*malloc_ptr) (size_t);
  30401. specify that 'calloc_ptr' is a pointer of a function that, like the
  30402. standard C function 'calloc', returns an object whose size is given
  30403. by the product of arguments 1 and 2, and similarly, that
  30404. 'malloc_ptr', like the standard C function 'malloc', returns an
  30405. object whose size is given by argument 1 to the function.
  30406. 'cleanup (CLEANUP_FUNCTION)'
  30407. The 'cleanup' attribute runs a function when the variable goes out
  30408. of scope. This attribute can only be applied to auto function
  30409. scope variables; it may not be applied to parameters or variables
  30410. with static storage duration. The function must take one
  30411. parameter, a pointer to a type compatible with the variable. The
  30412. return value of the function (if any) is ignored.
  30413. If '-fexceptions' is enabled, then CLEANUP_FUNCTION is run during
  30414. the stack unwinding that happens during the processing of the
  30415. exception. Note that the 'cleanup' attribute does not allow the
  30416. exception to be caught, only to perform an action. It is undefined
  30417. what happens if CLEANUP_FUNCTION does not return normally.
  30418. 'common'
  30419. 'nocommon'
  30420. The 'common' attribute requests GCC to place a variable in "common"
  30421. storage. The 'nocommon' attribute requests the opposite--to
  30422. allocate space for it directly.
  30423. These attributes override the default chosen by the '-fno-common'
  30424. and '-fcommon' flags respectively.
  30425. 'copy'
  30426. 'copy (VARIABLE)'
  30427. The 'copy' attribute applies the set of attributes with which
  30428. VARIABLE has been declared to the declaration of the variable to
  30429. which the attribute is applied. The attribute is designed for
  30430. libraries that define aliases that are expected to specify the same
  30431. set of attributes as the aliased symbols. The 'copy' attribute can
  30432. be used with variables, functions or types. However, the kind of
  30433. symbol to which the attribute is applied (either varible or
  30434. function) must match the kind of symbol to which the argument
  30435. refers. The 'copy' attribute copies only syntactic and semantic
  30436. attributes but not attributes that affect a symbol's linkage or
  30437. visibility such as 'alias', 'visibility', or 'weak'. The
  30438. 'deprecated' attribute is also not copied. *Note Common Function
  30439. Attributes::. *Note Common Type Attributes::.
  30440. 'deprecated'
  30441. 'deprecated (MSG)'
  30442. The 'deprecated' attribute results in a warning if the variable is
  30443. used anywhere in the source file. This is useful when identifying
  30444. variables that are expected to be removed in a future version of a
  30445. program. The warning also includes the location of the declaration
  30446. of the deprecated variable, to enable users to easily find further
  30447. information about why the variable is deprecated, or what they
  30448. should do instead. Note that the warning only occurs for uses:
  30449. extern int old_var __attribute__ ((deprecated));
  30450. extern int old_var;
  30451. int new_fn () { return old_var; }
  30452. results in a warning on line 3 but not line 2. The optional MSG
  30453. argument, which must be a string, is printed in the warning if
  30454. present.
  30455. The 'deprecated' attribute can also be used for functions and types
  30456. (*note Common Function Attributes::, *note Common Type
  30457. Attributes::).
  30458. The message attached to the attribute is affected by the setting of
  30459. the '-fmessage-length' option.
  30460. 'mode (MODE)'
  30461. This attribute specifies the data type for the
  30462. declaration--whichever type corresponds to the mode MODE. This in
  30463. effect lets you request an integer or floating-point type according
  30464. to its width.
  30465. *Note (gccint)Machine Modes::, for a list of the possible keywords
  30466. for MODE. You may also specify a mode of 'byte' or '__byte__' to
  30467. indicate the mode corresponding to a one-byte integer, 'word' or
  30468. '__word__' for the mode of a one-word integer, and 'pointer' or
  30469. '__pointer__' for the mode used to represent pointers.
  30470. 'nonstring'
  30471. The 'nonstring' variable attribute specifies that an object or
  30472. member declaration with type array of 'char', 'signed char', or
  30473. 'unsigned char', or pointer to such a type is intended to store
  30474. character arrays that do not necessarily contain a terminating
  30475. 'NUL'. This is useful in detecting uses of such arrays or pointers
  30476. with functions that expect 'NUL'-terminated strings, and to avoid
  30477. warnings when such an array or pointer is used as an argument to a
  30478. bounded string manipulation function such as 'strncpy'. For
  30479. example, without the attribute, GCC will issue a warning for the
  30480. 'strncpy' call below because it may truncate the copy without
  30481. appending the terminating 'NUL' character. Using the attribute
  30482. makes it possible to suppress the warning. However, when the array
  30483. is declared with the attribute the call to 'strlen' is diagnosed
  30484. because when the array doesn't contain a 'NUL'-terminated string
  30485. the call is undefined. To copy, compare, of search non-string
  30486. character arrays use the 'memcpy', 'memcmp', 'memchr', and other
  30487. functions that operate on arrays of bytes. In addition, calling
  30488. 'strnlen' and 'strndup' with such arrays is safe provided a
  30489. suitable bound is specified, and not diagnosed.
  30490. struct Data
  30491. {
  30492. char name [32] __attribute__ ((nonstring));
  30493. };
  30494. int f (struct Data *pd, const char *s)
  30495. {
  30496. strncpy (pd->name, s, sizeof pd->name);
  30497. ...
  30498. return strlen (pd->name); // unsafe, gets a warning
  30499. }
  30500. 'packed'
  30501. The 'packed' attribute specifies that a structure member should
  30502. have the smallest possible alignment--one bit for a bit-field and
  30503. one byte otherwise, unless a larger value is specified with the
  30504. 'aligned' attribute. The attribute does not apply to non-member
  30505. objects.
  30506. For example in the structure below, the member array 'x' is packed
  30507. so that it immediately follows 'a' with no intervening padding:
  30508. struct foo
  30509. {
  30510. char a;
  30511. int x[2] __attribute__ ((packed));
  30512. };
  30513. _Note:_ The 4.1, 4.2 and 4.3 series of GCC ignore the 'packed'
  30514. attribute on bit-fields of type 'char'. This has been fixed in GCC
  30515. 4.4 but the change can lead to differences in the structure layout.
  30516. See the documentation of '-Wpacked-bitfield-compat' for more
  30517. information.
  30518. 'section ("SECTION-NAME")'
  30519. Normally, the compiler places the objects it generates in sections
  30520. like 'data' and 'bss'. Sometimes, however, you need additional
  30521. sections, or you need certain particular variables to appear in
  30522. special sections, for example to map to special hardware. The
  30523. 'section' attribute specifies that a variable (or function) lives
  30524. in a particular section. For example, this small program uses
  30525. several specific section names:
  30526. struct duart a __attribute__ ((section ("DUART_A"))) = { 0 };
  30527. struct duart b __attribute__ ((section ("DUART_B"))) = { 0 };
  30528. char stack[10000] __attribute__ ((section ("STACK"))) = { 0 };
  30529. int init_data __attribute__ ((section ("INITDATA")));
  30530. main()
  30531. {
  30532. /* Initialize stack pointer */
  30533. init_sp (stack + sizeof (stack));
  30534. /* Initialize initialized data */
  30535. memcpy (&init_data, &data, &edata - &data);
  30536. /* Turn on the serial ports */
  30537. init_duart (&a);
  30538. init_duart (&b);
  30539. }
  30540. Use the 'section' attribute with _global_ variables and not _local_
  30541. variables, as shown in the example.
  30542. You may use the 'section' attribute with initialized or
  30543. uninitialized global variables but the linker requires each object
  30544. be defined once, with the exception that uninitialized variables
  30545. tentatively go in the 'common' (or 'bss') section and can be
  30546. multiply "defined". Using the 'section' attribute changes what
  30547. section the variable goes into and may cause the linker to issue an
  30548. error if an uninitialized variable has multiple definitions. You
  30549. can force a variable to be initialized with the '-fno-common' flag
  30550. or the 'nocommon' attribute.
  30551. Some file formats do not support arbitrary sections so the
  30552. 'section' attribute is not available on all platforms. If you need
  30553. to map the entire contents of a module to a particular section,
  30554. consider using the facilities of the linker instead.
  30555. 'tls_model ("TLS_MODEL")'
  30556. The 'tls_model' attribute sets thread-local storage model (*note
  30557. Thread-Local::) of a particular '__thread' variable, overriding
  30558. '-ftls-model=' command-line switch on a per-variable basis. The
  30559. TLS_MODEL argument should be one of 'global-dynamic',
  30560. 'local-dynamic', 'initial-exec' or 'local-exec'.
  30561. Not all targets support this attribute.
  30562. 'unused'
  30563. This attribute, attached to a variable, means that the variable is
  30564. meant to be possibly unused. GCC does not produce a warning for
  30565. this variable.
  30566. 'used'
  30567. This attribute, attached to a variable with static storage, means
  30568. that the variable must be emitted even if it appears that the
  30569. variable is not referenced.
  30570. When applied to a static data member of a C++ class template, the
  30571. attribute also means that the member is instantiated if the class
  30572. itself is instantiated.
  30573. 'retain'
  30574. For ELF targets that support the GNU or FreeBSD OSABIs, this
  30575. attribute will save the variable from linker garbage collection.
  30576. To support this behavior, variables that have not been placed in
  30577. specific sections (e.g. by the 'section' attribute, or the
  30578. '-fdata-sections' option), will be placed in new, unique sections.
  30579. This additional functionality requires Binutils version 2.36 or
  30580. later.
  30581. 'vector_size (BYTES)'
  30582. This attribute specifies the vector size for the type of the
  30583. declared variable, measured in bytes. The type to which it applies
  30584. is known as the "base type". The BYTES argument must be a positive
  30585. power-of-two multiple of the base type size. For example, the
  30586. declaration:
  30587. int foo __attribute__ ((vector_size (16)));
  30588. causes the compiler to set the mode for 'foo', to be 16 bytes,
  30589. divided into 'int' sized units. Assuming a 32-bit 'int', 'foo''s
  30590. type is a vector of four units of four bytes each, and the
  30591. corresponding mode of 'foo' is 'V4SI'. *Note Vector Extensions::,
  30592. for details of manipulating vector variables.
  30593. This attribute is only applicable to integral and floating scalars,
  30594. although arrays, pointers, and function return values are allowed
  30595. in conjunction with this construct.
  30596. Aggregates with this attribute are invalid, even if they are of the
  30597. same size as a corresponding scalar. For example, the declaration:
  30598. struct S { int a; };
  30599. struct S __attribute__ ((vector_size (16))) foo;
  30600. is invalid even if the size of the structure is the same as the
  30601. size of the 'int'.
  30602. 'visibility ("VISIBILITY_TYPE")'
  30603. This attribute affects the linkage of the declaration to which it
  30604. is attached. The 'visibility' attribute is described in *note
  30605. Common Function Attributes::.
  30606. 'weak'
  30607. The 'weak' attribute is described in *note Common Function
  30608. Attributes::.
  30609. 'noinit'
  30610. Any data with the 'noinit' attribute will not be initialized by the
  30611. C runtime startup code, or the program loader. Not initializing
  30612. data in this way can reduce program startup times.
  30613. This attribute is specific to ELF targets and relies on the linker
  30614. script to place sections with the '.noinit' prefix in the right
  30615. location.
  30616. 'persistent'
  30617. Any data with the 'persistent' attribute will not be initialized by
  30618. the C runtime startup code, but will be initialized by the program
  30619. loader. This enables the value of the variable to 'persist'
  30620. between processor resets.
  30621. This attribute is specific to ELF targets and relies on the linker
  30622. script to place the sections with the '.persistent' prefix in the
  30623. right location. Specifically, some type of non-volatile, writeable
  30624. memory is required.
  30625. 'objc_nullability (NULLABILITY KIND) (Objective-C and Objective-C++ only)'
  30626. This attribute applies to pointer variables only. It allows
  30627. marking the pointer with one of four possible values describing the
  30628. conditions under which the pointer might have a 'nil' value. In
  30629. most cases, the attribute is intended to be an internal
  30630. representation for property and method nullability (specified by
  30631. language keywords); it is not recommended to use it directly.
  30632. When NULLABILITY KIND is '"unspecified"' or '0', nothing is known
  30633. about the conditions in which the pointer might be 'nil'. Making
  30634. this state specific serves to avoid false positives in diagnostics.
  30635. When NULLABILITY KIND is '"nonnull"' or '1', the pointer has no
  30636. meaning if it is 'nil' and thus the compiler is free to emit
  30637. diagnostics if it can be determined that the value will be 'nil'.
  30638. When NULLABILITY KIND is '"nullable"' or '2', the pointer might be
  30639. 'nil' and carry meaning as such.
  30640. When NULLABILITY KIND is '"resettable"' or '3' (used only in the
  30641. context of property attribute lists) this describes the case in
  30642. which a property setter may take the value 'nil' (which perhaps
  30643. causes the property to be reset in some manner to a default) but
  30644. for which the property getter will never validly return 'nil'.
  30645. 
  30646. File: gcc.info, Node: ARC Variable Attributes, Next: AVR Variable Attributes, Prev: Common Variable Attributes, Up: Variable Attributes
  30647. 6.34.2 ARC Variable Attributes
  30648. ------------------------------
  30649. 'aux'
  30650. The 'aux' attribute is used to directly access the ARC's auxiliary
  30651. register space from C. The auxilirary register number is given via
  30652. attribute argument.
  30653. 
  30654. File: gcc.info, Node: AVR Variable Attributes, Next: Blackfin Variable Attributes, Prev: ARC Variable Attributes, Up: Variable Attributes
  30655. 6.34.3 AVR Variable Attributes
  30656. ------------------------------
  30657. 'progmem'
  30658. The 'progmem' attribute is used on the AVR to place read-only data
  30659. in the non-volatile program memory (flash). The 'progmem'
  30660. attribute accomplishes this by putting respective variables into a
  30661. section whose name starts with '.progmem'.
  30662. This attribute works similar to the 'section' attribute but adds
  30663. additional checking.
  30664. * Ordinary AVR cores with 32 general purpose registers:
  30665. 'progmem' affects the location of the data but not how this
  30666. data is accessed. In order to read data located with the
  30667. 'progmem' attribute (inline) assembler must be used.
  30668. /* Use custom macros from AVR-LibC (http://nongnu.org/avr-libc/user-manual/) */
  30669. #include <avr/pgmspace.h>
  30670. /* Locate var in flash memory */
  30671. const int var[2] PROGMEM = { 1, 2 };
  30672. int read_var (int i)
  30673. {
  30674. /* Access var[] by accessor macro from avr/pgmspace.h */
  30675. return (int) pgm_read_word (& var[i]);
  30676. }
  30677. AVR is a Harvard architecture processor and data and read-only
  30678. data normally resides in the data memory (RAM).
  30679. See also the *note AVR Named Address Spaces:: section for an
  30680. alternate way to locate and access data in flash memory.
  30681. * AVR cores with flash memory visible in the RAM address range:
  30682. On such devices, there is no need for attribute 'progmem' or
  30683. *note '__flash': AVR Named Address Spaces. qualifier at all.
  30684. Just use standard C / C++. The compiler will generate 'LD*'
  30685. instructions. As flash memory is visible in the RAM address
  30686. range, and the default linker script does _not_ locate
  30687. '.rodata' in RAM, no special features are needed in order not
  30688. to waste RAM for read-only data or to read from flash. You
  30689. might even get slightly better performance by avoiding
  30690. 'progmem' and '__flash'. This applies to devices from
  30691. families 'avrtiny' and 'avrxmega3', see *note AVR Options::
  30692. for an overview.
  30693. * Reduced AVR Tiny cores like ATtiny40:
  30694. The compiler adds '0x4000' to the addresses of objects and
  30695. declarations in 'progmem' and locates the objects in flash
  30696. memory, namely in section '.progmem.data'. The offset is
  30697. needed because the flash memory is visible in the RAM address
  30698. space starting at address '0x4000'.
  30699. Data in 'progmem' can be accessed by means of ordinary C code,
  30700. no special functions or macros are needed.
  30701. /* var is located in flash memory */
  30702. extern const int var[2] __attribute__((progmem));
  30703. int read_var (int i)
  30704. {
  30705. return var[i];
  30706. }
  30707. Please notice that on these devices, there is no need for
  30708. 'progmem' at all.
  30709. 'io'
  30710. 'io (ADDR)'
  30711. Variables with the 'io' attribute are used to address memory-mapped
  30712. peripherals in the io address range. If an address is specified,
  30713. the variable is assigned that address, and the value is interpreted
  30714. as an address in the data address space. Example:
  30715. volatile int porta __attribute__((io (0x22)));
  30716. The address specified in the address in the data address range.
  30717. Otherwise, the variable it is not assigned an address, but the
  30718. compiler will still use in/out instructions where applicable,
  30719. assuming some other module assigns an address in the io address
  30720. range. Example:
  30721. extern volatile int porta __attribute__((io));
  30722. 'io_low'
  30723. 'io_low (ADDR)'
  30724. This is like the 'io' attribute, but additionally it informs the
  30725. compiler that the object lies in the lower half of the I/O area,
  30726. allowing the use of 'cbi', 'sbi', 'sbic' and 'sbis' instructions.
  30727. 'address'
  30728. 'address (ADDR)'
  30729. Variables with the 'address' attribute are used to address
  30730. memory-mapped peripherals that may lie outside the io address
  30731. range.
  30732. volatile int porta __attribute__((address (0x600)));
  30733. 'absdata'
  30734. Variables in static storage and with the 'absdata' attribute can be
  30735. accessed by the 'LDS' and 'STS' instructions which take absolute
  30736. addresses.
  30737. * This attribute is only supported for the reduced AVR Tiny core
  30738. like ATtiny40.
  30739. * You must make sure that respective data is located in the
  30740. address range '0x40'...'0xbf' accessible by 'LDS' and 'STS'.
  30741. One way to achieve this as an appropriate linker description
  30742. file.
  30743. * If the location does not fit the address range of 'LDS' and
  30744. 'STS', there is currently (Binutils 2.26) just an unspecific
  30745. warning like
  30746. 'module.c:(.text+0x1c): warning: internal error: out of
  30747. range error'
  30748. See also the '-mabsdata' *note command-line option: AVR Options.
  30749. 
  30750. File: gcc.info, Node: Blackfin Variable Attributes, Next: H8/300 Variable Attributes, Prev: AVR Variable Attributes, Up: Variable Attributes
  30751. 6.34.4 Blackfin Variable Attributes
  30752. -----------------------------------
  30753. Three attributes are currently defined for the Blackfin.
  30754. 'l1_data'
  30755. 'l1_data_A'
  30756. 'l1_data_B'
  30757. Use these attributes on the Blackfin to place the variable into L1
  30758. Data SRAM. Variables with 'l1_data' attribute are put into the
  30759. specific section named '.l1.data'. Those with 'l1_data_A'
  30760. attribute are put into the specific section named '.l1.data.A'.
  30761. Those with 'l1_data_B' attribute are put into the specific section
  30762. named '.l1.data.B'.
  30763. 'l2'
  30764. Use this attribute on the Blackfin to place the variable into L2
  30765. SRAM. Variables with 'l2' attribute are put into the specific
  30766. section named '.l2.data'.
  30767. 
  30768. File: gcc.info, Node: H8/300 Variable Attributes, Next: IA-64 Variable Attributes, Prev: Blackfin Variable Attributes, Up: Variable Attributes
  30769. 6.34.5 H8/300 Variable Attributes
  30770. ---------------------------------
  30771. These variable attributes are available for H8/300 targets:
  30772. 'eightbit_data'
  30773. Use this attribute on the H8/300, H8/300H, and H8S to indicate that
  30774. the specified variable should be placed into the eight-bit data
  30775. section. The compiler generates more efficient code for certain
  30776. operations on data in the eight-bit data area. Note the eight-bit
  30777. data area is limited to 256 bytes of data.
  30778. You must use GAS and GLD from GNU binutils version 2.7 or later for
  30779. this attribute to work correctly.
  30780. 'tiny_data'
  30781. Use this attribute on the H8/300H and H8S to indicate that the
  30782. specified variable should be placed into the tiny data section.
  30783. The compiler generates more efficient code for loads and stores on
  30784. data in the tiny data section. Note the tiny data area is limited
  30785. to slightly under 32KB of data.
  30786. 
  30787. File: gcc.info, Node: IA-64 Variable Attributes, Next: M32R/D Variable Attributes, Prev: H8/300 Variable Attributes, Up: Variable Attributes
  30788. 6.34.6 IA-64 Variable Attributes
  30789. --------------------------------
  30790. The IA-64 back end supports the following variable attribute:
  30791. 'model (MODEL-NAME)'
  30792. On IA-64, use this attribute to set the addressability of an
  30793. object. At present, the only supported identifier for MODEL-NAME
  30794. is 'small', indicating addressability via "small" (22-bit)
  30795. addresses (so that their addresses can be loaded with the 'addl'
  30796. instruction). Caveat: such addressing is by definition not
  30797. position independent and hence this attribute must not be used for
  30798. objects defined by shared libraries.
  30799. 
  30800. File: gcc.info, Node: M32R/D Variable Attributes, Next: MeP Variable Attributes, Prev: IA-64 Variable Attributes, Up: Variable Attributes
  30801. 6.34.7 M32R/D Variable Attributes
  30802. ---------------------------------
  30803. One attribute is currently defined for the M32R/D.
  30804. 'model (MODEL-NAME)'
  30805. Use this attribute on the M32R/D to set the addressability of an
  30806. object. The identifier MODEL-NAME is one of 'small', 'medium', or
  30807. 'large', representing each of the code models.
  30808. Small model objects live in the lower 16MB of memory (so that their
  30809. addresses can be loaded with the 'ld24' instruction).
  30810. Medium and large model objects may live anywhere in the 32-bit
  30811. address space (the compiler generates 'seth/add3' instructions to
  30812. load their addresses).
  30813. 
  30814. File: gcc.info, Node: MeP Variable Attributes, Next: Microsoft Windows Variable Attributes, Prev: M32R/D Variable Attributes, Up: Variable Attributes
  30815. 6.34.8 MeP Variable Attributes
  30816. ------------------------------
  30817. The MeP target has a number of addressing modes and busses. The 'near'
  30818. space spans the standard memory space's first 16 megabytes (24 bits).
  30819. The 'far' space spans the entire 32-bit memory space. The 'based' space
  30820. is a 128-byte region in the memory space that is addressed relative to
  30821. the '$tp' register. The 'tiny' space is a 65536-byte region relative to
  30822. the '$gp' register. In addition to these memory regions, the MeP target
  30823. has a separate 16-bit control bus which is specified with 'cb'
  30824. attributes.
  30825. 'based'
  30826. Any variable with the 'based' attribute is assigned to the '.based'
  30827. section, and is accessed with relative to the '$tp' register.
  30828. 'tiny'
  30829. Likewise, the 'tiny' attribute assigned variables to the '.tiny'
  30830. section, relative to the '$gp' register.
  30831. 'near'
  30832. Variables with the 'near' attribute are assumed to have addresses
  30833. that fit in a 24-bit addressing mode. This is the default for
  30834. large variables ('-mtiny=4' is the default) but this attribute can
  30835. override '-mtiny=' for small variables, or override '-ml'.
  30836. 'far'
  30837. Variables with the 'far' attribute are addressed using a full
  30838. 32-bit address. Since this covers the entire memory space, this
  30839. allows modules to make no assumptions about where variables might
  30840. be stored.
  30841. 'io'
  30842. 'io (ADDR)'
  30843. Variables with the 'io' attribute are used to address memory-mapped
  30844. peripherals. If an address is specified, the variable is assigned
  30845. that address, else it is not assigned an address (it is assumed
  30846. some other module assigns an address). Example:
  30847. int timer_count __attribute__((io(0x123)));
  30848. 'cb'
  30849. 'cb (ADDR)'
  30850. Variables with the 'cb' attribute are used to access the control
  30851. bus, using special instructions. 'addr' indicates the control bus
  30852. address. Example:
  30853. int cpu_clock __attribute__((cb(0x123)));
  30854. 
  30855. File: gcc.info, Node: Microsoft Windows Variable Attributes, Next: MSP430 Variable Attributes, Prev: MeP Variable Attributes, Up: Variable Attributes
  30856. 6.34.9 Microsoft Windows Variable Attributes
  30857. --------------------------------------------
  30858. You can use these attributes on Microsoft Windows targets. *note x86
  30859. Variable Attributes:: for additional Windows compatibility attributes
  30860. available on all x86 targets.
  30861. 'dllimport'
  30862. 'dllexport'
  30863. The 'dllimport' and 'dllexport' attributes are described in *note
  30864. Microsoft Windows Function Attributes::.
  30865. 'selectany'
  30866. The 'selectany' attribute causes an initialized global variable to
  30867. have link-once semantics. When multiple definitions of the
  30868. variable are encountered by the linker, the first is selected and
  30869. the remainder are discarded. Following usage by the Microsoft
  30870. compiler, the linker is told _not_ to warn about size or content
  30871. differences of the multiple definitions.
  30872. Although the primary usage of this attribute is for POD types, the
  30873. attribute can also be applied to global C++ objects that are
  30874. initialized by a constructor. In this case, the static
  30875. initialization and destruction code for the object is emitted in
  30876. each translation defining the object, but the calls to the
  30877. constructor and destructor are protected by a link-once guard
  30878. variable.
  30879. The 'selectany' attribute is only available on Microsoft Windows
  30880. targets. You can use '__declspec (selectany)' as a synonym for
  30881. '__attribute__ ((selectany))' for compatibility with other
  30882. compilers.
  30883. 'shared'
  30884. On Microsoft Windows, in addition to putting variable definitions
  30885. in a named section, the section can also be shared among all
  30886. running copies of an executable or DLL. For example, this small
  30887. program defines shared data by putting it in a named section
  30888. 'shared' and marking the section shareable:
  30889. int foo __attribute__((section ("shared"), shared)) = 0;
  30890. int
  30891. main()
  30892. {
  30893. /* Read and write foo. All running
  30894. copies see the same value. */
  30895. return 0;
  30896. }
  30897. You may only use the 'shared' attribute along with 'section'
  30898. attribute with a fully-initialized global definition because of the
  30899. way linkers work. See 'section' attribute for more information.
  30900. The 'shared' attribute is only available on Microsoft Windows.
  30901. 
  30902. File: gcc.info, Node: MSP430 Variable Attributes, Next: Nvidia PTX Variable Attributes, Prev: Microsoft Windows Variable Attributes, Up: Variable Attributes
  30903. 6.34.10 MSP430 Variable Attributes
  30904. ----------------------------------
  30905. 'upper'
  30906. 'either'
  30907. These attributes are the same as the MSP430 function attributes of
  30908. the same name (*note MSP430 Function Attributes::).
  30909. 'lower'
  30910. This option behaves mostly the same as the MSP430 function
  30911. attribute of the same name (*note MSP430 Function Attributes::),
  30912. but it has some additional functionality.
  30913. If '-mdata-region='{'upper,either,none'} has been passed, or the
  30914. 'section' attribute is applied to a variable, the compiler will
  30915. generate 430X instructions to handle it. This is because the
  30916. compiler has to assume that the variable could get placed in the
  30917. upper memory region (above address 0xFFFF). Marking the variable
  30918. with the 'lower' attribute informs the compiler that the variable
  30919. will be placed in lower memory so it is safe to use 430
  30920. instructions to handle it.
  30921. In the case of the 'section' attribute, the section name given will
  30922. be used, and the '.lower' prefix will not be added.
  30923. 
  30924. File: gcc.info, Node: Nvidia PTX Variable Attributes, Next: PowerPC Variable Attributes, Prev: MSP430 Variable Attributes, Up: Variable Attributes
  30925. 6.34.11 Nvidia PTX Variable Attributes
  30926. --------------------------------------
  30927. These variable attributes are supported by the Nvidia PTX back end:
  30928. 'shared'
  30929. Use this attribute to place a variable in the '.shared' memory
  30930. space. This memory space is private to each cooperative thread
  30931. array; only threads within one thread block refer to the same
  30932. instance of the variable. The runtime does not initialize
  30933. variables in this memory space.
  30934. 
  30935. File: gcc.info, Node: PowerPC Variable Attributes, Next: RL78 Variable Attributes, Prev: Nvidia PTX Variable Attributes, Up: Variable Attributes
  30936. 6.34.12 PowerPC Variable Attributes
  30937. -----------------------------------
  30938. Three attributes currently are defined for PowerPC configurations:
  30939. 'altivec', 'ms_struct' and 'gcc_struct'.
  30940. For full documentation of the struct attributes please see the
  30941. documentation in *note x86 Variable Attributes::.
  30942. For documentation of 'altivec' attribute please see the documentation
  30943. in *note PowerPC Type Attributes::.
  30944. 
  30945. File: gcc.info, Node: RL78 Variable Attributes, Next: V850 Variable Attributes, Prev: PowerPC Variable Attributes, Up: Variable Attributes
  30946. 6.34.13 RL78 Variable Attributes
  30947. --------------------------------
  30948. The RL78 back end supports the 'saddr' variable attribute. This
  30949. specifies placement of the corresponding variable in the SADDR area,
  30950. which can be accessed more efficiently than the default memory region.
  30951. 
  30952. File: gcc.info, Node: V850 Variable Attributes, Next: x86 Variable Attributes, Prev: RL78 Variable Attributes, Up: Variable Attributes
  30953. 6.34.14 V850 Variable Attributes
  30954. --------------------------------
  30955. These variable attributes are supported by the V850 back end:
  30956. 'sda'
  30957. Use this attribute to explicitly place a variable in the small data
  30958. area, which can hold up to 64 kilobytes.
  30959. 'tda'
  30960. Use this attribute to explicitly place a variable in the tiny data
  30961. area, which can hold up to 256 bytes in total.
  30962. 'zda'
  30963. Use this attribute to explicitly place a variable in the first 32
  30964. kilobytes of memory.
  30965. 
  30966. File: gcc.info, Node: x86 Variable Attributes, Next: Xstormy16 Variable Attributes, Prev: V850 Variable Attributes, Up: Variable Attributes
  30967. 6.34.15 x86 Variable Attributes
  30968. -------------------------------
  30969. Two attributes are currently defined for x86 configurations: 'ms_struct'
  30970. and 'gcc_struct'.
  30971. 'ms_struct'
  30972. 'gcc_struct'
  30973. If 'packed' is used on a structure, or if bit-fields are used, it
  30974. may be that the Microsoft ABI lays out the structure differently
  30975. than the way GCC normally does. Particularly when moving packed
  30976. data between functions compiled with GCC and the native Microsoft
  30977. compiler (either via function call or as data in a file), it may be
  30978. necessary to access either format.
  30979. The 'ms_struct' and 'gcc_struct' attributes correspond to the
  30980. '-mms-bitfields' and '-mno-ms-bitfields' command-line options,
  30981. respectively; see *note x86 Options::, for details of how structure
  30982. layout is affected. *Note x86 Type Attributes::, for information
  30983. about the corresponding attributes on types.
  30984. 
  30985. File: gcc.info, Node: Xstormy16 Variable Attributes, Prev: x86 Variable Attributes, Up: Variable Attributes
  30986. 6.34.16 Xstormy16 Variable Attributes
  30987. -------------------------------------
  30988. One attribute is currently defined for xstormy16 configurations:
  30989. 'below100'.
  30990. 'below100'
  30991. If a variable has the 'below100' attribute ('BELOW100' is allowed
  30992. also), GCC places the variable in the first 0x100 bytes of memory
  30993. and use special opcodes to access it. Such variables are placed in
  30994. either the '.bss_below100' section or the '.data_below100' section.
  30995. 
  30996. File: gcc.info, Node: Type Attributes, Next: Label Attributes, Prev: Variable Attributes, Up: C Extensions
  30997. 6.35 Specifying Attributes of Types
  30998. ===================================
  30999. The keyword '__attribute__' allows you to specify various special
  31000. properties of types. Some type attributes apply only to structure and
  31001. union types, and in C++, also class types, while others can apply to any
  31002. type defined via a 'typedef' declaration. Unless otherwise specified,
  31003. the same restrictions and effects apply to attributes regardless of
  31004. whether a type is a trivial structure or a C++ class with user-defined
  31005. constructors, destructors, or a copy assignment.
  31006. Other attributes are defined for functions (*note Function
  31007. Attributes::), labels (*note Label Attributes::), enumerators (*note
  31008. Enumerator Attributes::), statements (*note Statement Attributes::), and
  31009. for variables (*note Variable Attributes::).
  31010. The '__attribute__' keyword is followed by an attribute specification
  31011. enclosed in double parentheses.
  31012. You may specify type attributes in an enum, struct or union type
  31013. declaration or definition by placing them immediately after the
  31014. 'struct', 'union' or 'enum' keyword. You can also place them just past
  31015. the closing curly brace of the definition, but this is less preferred
  31016. because logically the type should be fully defined at the closing brace.
  31017. You can also include type attributes in a 'typedef' declaration. *Note
  31018. Attribute Syntax::, for details of the exact syntax for using
  31019. attributes.
  31020. * Menu:
  31021. * Common Type Attributes::
  31022. * ARC Type Attributes::
  31023. * ARM Type Attributes::
  31024. * MeP Type Attributes::
  31025. * PowerPC Type Attributes::
  31026. * x86 Type Attributes::
  31027. 
  31028. File: gcc.info, Node: Common Type Attributes, Next: ARC Type Attributes, Up: Type Attributes
  31029. 6.35.1 Common Type Attributes
  31030. -----------------------------
  31031. The following type attributes are supported on most targets.
  31032. 'aligned'
  31033. 'aligned (ALIGNMENT)'
  31034. The 'aligned' attribute specifies a minimum alignment (in bytes)
  31035. for variables of the specified type. When specified, ALIGNMENT
  31036. must be a power of 2. Specifying no ALIGNMENT argument implies the
  31037. maximum alignment for the target, which is often, but by no means
  31038. always, 8 or 16 bytes. For example, the declarations:
  31039. struct __attribute__ ((aligned (8))) S { short f[3]; };
  31040. typedef int more_aligned_int __attribute__ ((aligned (8)));
  31041. force the compiler to ensure (as far as it can) that each variable
  31042. whose type is 'struct S' or 'more_aligned_int' is allocated and
  31043. aligned _at least_ on a 8-byte boundary. On a SPARC, having all
  31044. variables of type 'struct S' aligned to 8-byte boundaries allows
  31045. the compiler to use the 'ldd' and 'std' (doubleword load and store)
  31046. instructions when copying one variable of type 'struct S' to
  31047. another, thus improving run-time efficiency.
  31048. Note that the alignment of any given 'struct' or 'union' type is
  31049. required by the ISO C standard to be at least a perfect multiple of
  31050. the lowest common multiple of the alignments of all of the members
  31051. of the 'struct' or 'union' in question. This means that you _can_
  31052. effectively adjust the alignment of a 'struct' or 'union' type by
  31053. attaching an 'aligned' attribute to any one of the members of such
  31054. a type, but the notation illustrated in the example above is a more
  31055. obvious, intuitive, and readable way to request the compiler to
  31056. adjust the alignment of an entire 'struct' or 'union' type.
  31057. As in the preceding example, you can explicitly specify the
  31058. alignment (in bytes) that you wish the compiler to use for a given
  31059. 'struct' or 'union' type. Alternatively, you can leave out the
  31060. alignment factor and just ask the compiler to align a type to the
  31061. maximum useful alignment for the target machine you are compiling
  31062. for. For example, you could write:
  31063. struct __attribute__ ((aligned)) S { short f[3]; };
  31064. Whenever you leave out the alignment factor in an 'aligned'
  31065. attribute specification, the compiler automatically sets the
  31066. alignment for the type to the largest alignment that is ever used
  31067. for any data type on the target machine you are compiling for.
  31068. Doing this can often make copy operations more efficient, because
  31069. the compiler can use whatever instructions copy the biggest chunks
  31070. of memory when performing copies to or from the variables that have
  31071. types that you have aligned this way.
  31072. In the example above, if the size of each 'short' is 2 bytes, then
  31073. the size of the entire 'struct S' type is 6 bytes. The smallest
  31074. power of two that is greater than or equal to that is 8, so the
  31075. compiler sets the alignment for the entire 'struct S' type to 8
  31076. bytes.
  31077. Note that although you can ask the compiler to select a
  31078. time-efficient alignment for a given type and then declare only
  31079. individual stand-alone objects of that type, the compiler's ability
  31080. to select a time-efficient alignment is primarily useful only when
  31081. you plan to create arrays of variables having the relevant
  31082. (efficiently aligned) type. If you declare or use arrays of
  31083. variables of an efficiently-aligned type, then it is likely that
  31084. your program also does pointer arithmetic (or subscripting, which
  31085. amounts to the same thing) on pointers to the relevant type, and
  31086. the code that the compiler generates for these pointer arithmetic
  31087. operations is often more efficient for efficiently-aligned types
  31088. than for other types.
  31089. Note that the effectiveness of 'aligned' attributes may be limited
  31090. by inherent limitations in your linker. On many systems, the
  31091. linker is only able to arrange for variables to be aligned up to a
  31092. certain maximum alignment. (For some linkers, the maximum
  31093. supported alignment may be very very small.) If your linker is
  31094. only able to align variables up to a maximum of 8-byte alignment,
  31095. then specifying 'aligned (16)' in an '__attribute__' still only
  31096. provides you with 8-byte alignment. See your linker documentation
  31097. for further information.
  31098. When used on a struct, or struct member, the 'aligned' attribute
  31099. can only increase the alignment; in order to decrease it, the
  31100. 'packed' attribute must be specified as well. When used as part of
  31101. a typedef, the 'aligned' attribute can both increase and decrease
  31102. alignment, and specifying the 'packed' attribute generates a
  31103. warning.
  31104. 'warn_if_not_aligned (ALIGNMENT)'
  31105. This attribute specifies a threshold for the structure field,
  31106. measured in bytes. If the structure field is aligned below the
  31107. threshold, a warning will be issued. For example, the declaration:
  31108. typedef unsigned long long __u64
  31109. __attribute__((aligned (4), warn_if_not_aligned (8)));
  31110. struct foo
  31111. {
  31112. int i1;
  31113. int i2;
  31114. __u64 x;
  31115. };
  31116. causes the compiler to issue an warning on 'struct foo', like
  31117. 'warning: alignment 4 of 'struct foo' is less than 8'. It is used
  31118. to define 'struct foo' in such a way that 'struct foo' has the same
  31119. layout and the structure field 'x' has the same alignment when
  31120. '__u64' is aligned at either 4 or 8 bytes. Align 'struct foo' to 8
  31121. bytes:
  31122. struct __attribute__ ((aligned (8))) foo
  31123. {
  31124. int i1;
  31125. int i2;
  31126. __u64 x;
  31127. };
  31128. silences the warning. The compiler also issues a warning, like
  31129. 'warning: 'x' offset 12 in 'struct foo' isn't aligned to 8', when
  31130. the structure field has the misaligned offset:
  31131. struct __attribute__ ((aligned (8))) foo
  31132. {
  31133. int i1;
  31134. int i2;
  31135. int i3;
  31136. __u64 x;
  31137. };
  31138. This warning can be disabled by '-Wno-if-not-aligned'.
  31139. 'alloc_size (POSITION)'
  31140. 'alloc_size (POSITION-1, POSITION-2)'
  31141. The 'alloc_size' type attribute may be applied to the definition of
  31142. a type of a function that returns a pointer and takes at least one
  31143. argument of an integer type. It indicates that the returned
  31144. pointer points to an object whose size is given by the function
  31145. argument at POSITION-1, or by the product of the arguments at
  31146. POSITION-1 and POSITION-2. Meaningful sizes are positive values
  31147. less than 'PTRDIFF_MAX'. Other sizes are disagnosed when detected.
  31148. GCC uses this information to improve the results of
  31149. '__builtin_object_size'.
  31150. For instance, the following declarations
  31151. typedef __attribute__ ((alloc_size (1, 2))) void*
  31152. calloc_type (size_t, size_t);
  31153. typedef __attribute__ ((alloc_size (1))) void*
  31154. malloc_type (size_t);
  31155. specify that 'calloc_type' is a type of a function that, like the
  31156. standard C function 'calloc', returns an object whose size is given
  31157. by the product of arguments 1 and 2, and that 'malloc_type', like
  31158. the standard C function 'malloc', returns an object whose size is
  31159. given by argument 1 to the function.
  31160. 'copy'
  31161. 'copy (EXPRESSION)'
  31162. The 'copy' attribute applies the set of attributes with which the
  31163. type of the EXPRESSION has been declared to the declaration of the
  31164. type to which the attribute is applied. The attribute is designed
  31165. for libraries that define aliases that are expected to specify the
  31166. same set of attributes as the aliased symbols. The 'copy'
  31167. attribute can be used with types, variables, or functions.
  31168. However, the kind of symbol to which the attribute is applied
  31169. (either varible or function) must match the kind of symbol to which
  31170. the argument refers. The 'copy' attribute copies only syntactic
  31171. and semantic attributes but not attributes that affect a symbol's
  31172. linkage or visibility such as 'alias', 'visibility', or 'weak'.
  31173. The 'deprecated' attribute is also not copied. *Note Common
  31174. Function Attributes::. *Note Common Variable Attributes::.
  31175. For example, suppose 'struct A' below is defined in some third
  31176. party library header to have the alignment requirement 'N' and to
  31177. force a warning whenever a variable of the type is not so aligned
  31178. due to attribute 'packed'. Specifying the 'copy' attribute on the
  31179. definition on the unrelated 'struct B' has the effect of copying
  31180. all relevant attributes from the type referenced by the pointer
  31181. expression to 'struct B'.
  31182. struct __attribute__ ((aligned (N), warn_if_not_aligned (N)))
  31183. A { /* ... */ };
  31184. struct __attribute__ ((copy ( (struct A *)0)) B { /* ... */ };
  31185. 'deprecated'
  31186. 'deprecated (MSG)'
  31187. The 'deprecated' attribute results in a warning if the type is used
  31188. anywhere in the source file. This is useful when identifying types
  31189. that are expected to be removed in a future version of a program.
  31190. If possible, the warning also includes the location of the
  31191. declaration of the deprecated type, to enable users to easily find
  31192. further information about why the type is deprecated, or what they
  31193. should do instead. Note that the warnings only occur for uses and
  31194. then only if the type is being applied to an identifier that itself
  31195. is not being declared as deprecated.
  31196. typedef int T1 __attribute__ ((deprecated));
  31197. T1 x;
  31198. typedef T1 T2;
  31199. T2 y;
  31200. typedef T1 T3 __attribute__ ((deprecated));
  31201. T3 z __attribute__ ((deprecated));
  31202. results in a warning on line 2 and 3 but not lines 4, 5, or 6. No
  31203. warning is issued for line 4 because T2 is not explicitly
  31204. deprecated. Line 5 has no warning because T3 is explicitly
  31205. deprecated. Similarly for line 6. The optional MSG argument,
  31206. which must be a string, is printed in the warning if present.
  31207. Control characters in the string will be replaced with escape
  31208. sequences, and if the '-fmessage-length' option is set to 0 (its
  31209. default value) then any newline characters will be ignored.
  31210. The 'deprecated' attribute can also be used for functions and
  31211. variables (*note Function Attributes::, *note Variable
  31212. Attributes::.)
  31213. The message attached to the attribute is affected by the setting of
  31214. the '-fmessage-length' option.
  31215. 'designated_init'
  31216. This attribute may only be applied to structure types. It
  31217. indicates that any initialization of an object of this type must
  31218. use designated initializers rather than positional initializers.
  31219. The intent of this attribute is to allow the programmer to indicate
  31220. that a structure's layout may change, and that therefore relying on
  31221. positional initialization will result in future breakage.
  31222. GCC emits warnings based on this attribute by default; use
  31223. '-Wno-designated-init' to suppress them.
  31224. 'may_alias'
  31225. Accesses through pointers to types with this attribute are not
  31226. subject to type-based alias analysis, but are instead assumed to be
  31227. able to alias any other type of objects. In the context of section
  31228. 6.5 paragraph 7 of the C99 standard, an lvalue expression
  31229. dereferencing such a pointer is treated like having a character
  31230. type. See '-fstrict-aliasing' for more information on aliasing
  31231. issues. This extension exists to support some vector APIs, in
  31232. which pointers to one vector type are permitted to alias pointers
  31233. to a different vector type.
  31234. Note that an object of a type with this attribute does not have any
  31235. special semantics.
  31236. Example of use:
  31237. typedef short __attribute__ ((__may_alias__)) short_a;
  31238. int
  31239. main (void)
  31240. {
  31241. int a = 0x12345678;
  31242. short_a *b = (short_a *) &a;
  31243. b[1] = 0;
  31244. if (a == 0x12345678)
  31245. abort();
  31246. exit(0);
  31247. }
  31248. If you replaced 'short_a' with 'short' in the variable declaration,
  31249. the above program would abort when compiled with
  31250. '-fstrict-aliasing', which is on by default at '-O2' or above.
  31251. 'mode (MODE)'
  31252. This attribute specifies the data type for the
  31253. declaration--whichever type corresponds to the mode MODE. This in
  31254. effect lets you request an integer or floating-point type according
  31255. to its width.
  31256. *Note (gccint)Machine Modes::, for a list of the possible keywords
  31257. for MODE. You may also specify a mode of 'byte' or '__byte__' to
  31258. indicate the mode corresponding to a one-byte integer, 'word' or
  31259. '__word__' for the mode of a one-word integer, and 'pointer' or
  31260. '__pointer__' for the mode used to represent pointers.
  31261. 'packed'
  31262. This attribute, attached to a 'struct', 'union', or C++ 'class'
  31263. type definition, specifies that each of its members (other than
  31264. zero-width bit-fields) is placed to minimize the memory required.
  31265. This is equivalent to specifying the 'packed' attribute on each of
  31266. the members.
  31267. When attached to an 'enum' definition, the 'packed' attribute
  31268. indicates that the smallest integral type should be used.
  31269. Specifying the '-fshort-enums' flag on the command line is
  31270. equivalent to specifying the 'packed' attribute on all 'enum'
  31271. definitions.
  31272. In the following example 'struct my_packed_struct''s members are
  31273. packed closely together, but the internal layout of its 's' member
  31274. is not packed--to do that, 'struct my_unpacked_struct' needs to be
  31275. packed too.
  31276. struct my_unpacked_struct
  31277. {
  31278. char c;
  31279. int i;
  31280. };
  31281. struct __attribute__ ((__packed__)) my_packed_struct
  31282. {
  31283. char c;
  31284. int i;
  31285. struct my_unpacked_struct s;
  31286. };
  31287. You may only specify the 'packed' attribute on the definition of an
  31288. 'enum', 'struct', 'union', or 'class', not on a 'typedef' that does
  31289. not also define the enumerated type, structure, union, or class.
  31290. 'scalar_storage_order ("ENDIANNESS")'
  31291. When attached to a 'union' or a 'struct', this attribute sets the
  31292. storage order, aka endianness, of the scalar fields of the type, as
  31293. well as the array fields whose component is scalar. The supported
  31294. endiannesses are 'big-endian' and 'little-endian'. The attribute
  31295. has no effects on fields which are themselves a 'union', a 'struct'
  31296. or an array whose component is a 'union' or a 'struct', and it is
  31297. possible for these fields to have a different scalar storage order
  31298. than the enclosing type.
  31299. This attribute is supported only for targets that use a uniform
  31300. default scalar storage order (fortunately, most of them), i.e.
  31301. targets that store the scalars either all in big-endian or all in
  31302. little-endian.
  31303. Additional restrictions are enforced for types with the reverse
  31304. scalar storage order with regard to the scalar storage order of the
  31305. target:
  31306. * Taking the address of a scalar field of a 'union' or a
  31307. 'struct' with reverse scalar storage order is not permitted
  31308. and yields an error.
  31309. * Taking the address of an array field, whose component is
  31310. scalar, of a 'union' or a 'struct' with reverse scalar storage
  31311. order is permitted but yields a warning, unless
  31312. '-Wno-scalar-storage-order' is specified.
  31313. * Taking the address of a 'union' or a 'struct' with reverse
  31314. scalar storage order is permitted.
  31315. These restrictions exist because the storage order attribute is
  31316. lost when the address of a scalar or the address of an array with
  31317. scalar component is taken, so storing indirectly through this
  31318. address generally does not work. The second case is nevertheless
  31319. allowed to be able to perform a block copy from or to the array.
  31320. Moreover, the use of type punning or aliasing to toggle the storage
  31321. order is not supported; that is to say, a given scalar object
  31322. cannot be accessed through distinct types that assign a different
  31323. storage order to it.
  31324. 'transparent_union'
  31325. This attribute, attached to a 'union' type definition, indicates
  31326. that any function parameter having that union type causes calls to
  31327. that function to be treated in a special way.
  31328. First, the argument corresponding to a transparent union type can
  31329. be of any type in the union; no cast is required. Also, if the
  31330. union contains a pointer type, the corresponding argument can be a
  31331. null pointer constant or a void pointer expression; and if the
  31332. union contains a void pointer type, the corresponding argument can
  31333. be any pointer expression. If the union member type is a pointer,
  31334. qualifiers like 'const' on the referenced type must be respected,
  31335. just as with normal pointer conversions.
  31336. Second, the argument is passed to the function using the calling
  31337. conventions of the first member of the transparent union, not the
  31338. calling conventions of the union itself. All members of the union
  31339. must have the same machine representation; this is necessary for
  31340. this argument passing to work properly.
  31341. Transparent unions are designed for library functions that have
  31342. multiple interfaces for compatibility reasons. For example,
  31343. suppose the 'wait' function must accept either a value of type 'int
  31344. *' to comply with POSIX, or a value of type 'union wait *' to
  31345. comply with the 4.1BSD interface. If 'wait''s parameter were 'void
  31346. *', 'wait' would accept both kinds of arguments, but it would also
  31347. accept any other pointer type and this would make argument type
  31348. checking less useful. Instead, '<sys/wait.h>' might define the
  31349. interface as follows:
  31350. typedef union __attribute__ ((__transparent_union__))
  31351. {
  31352. int *__ip;
  31353. union wait *__up;
  31354. } wait_status_ptr_t;
  31355. pid_t wait (wait_status_ptr_t);
  31356. This interface allows either 'int *' or 'union wait *' arguments to
  31357. be passed, using the 'int *' calling convention. The program can
  31358. call 'wait' with arguments of either type:
  31359. int w1 () { int w; return wait (&w); }
  31360. int w2 () { union wait w; return wait (&w); }
  31361. With this interface, 'wait''s implementation might look like this:
  31362. pid_t wait (wait_status_ptr_t p)
  31363. {
  31364. return waitpid (-1, p.__ip, 0);
  31365. }
  31366. 'unused'
  31367. When attached to a type (including a 'union' or a 'struct'), this
  31368. attribute means that variables of that type are meant to appear
  31369. possibly unused. GCC does not produce a warning for any variables
  31370. of that type, even if the variable appears to do nothing. This is
  31371. often the case with lock or thread classes, which are usually
  31372. defined and then not referenced, but contain constructors and
  31373. destructors that have nontrivial bookkeeping functions.
  31374. 'vector_size (BYTES)'
  31375. This attribute specifies the vector size for the type, measured in
  31376. bytes. The type to which it applies is known as the "base type".
  31377. The BYTES argument must be a positive power-of-two multiple of the
  31378. base type size. For example, the following declarations:
  31379. typedef __attribute__ ((vector_size (32))) int int_vec32_t ;
  31380. typedef __attribute__ ((vector_size (32))) int* int_vec32_ptr_t;
  31381. typedef __attribute__ ((vector_size (32))) int int_vec32_arr3_t[3];
  31382. define 'int_vec32_t' to be a 32-byte vector type composed of 'int'
  31383. sized units. With 'int' having a size of 4 bytes, the type defines
  31384. a vector of eight units, four bytes each. The mode of variables of
  31385. type 'int_vec32_t' is 'V8SI'. 'int_vec32_ptr_t' is then defined to
  31386. be a pointer to such a vector type, and 'int_vec32_arr3_t' to be an
  31387. array of three such vectors. *Note Vector Extensions::, for
  31388. details of manipulating objects of vector types.
  31389. This attribute is only applicable to integral and floating scalar
  31390. types. In function declarations the attribute applies to the
  31391. function return type.
  31392. For example, the following:
  31393. __attribute__ ((vector_size (16))) float get_flt_vec16 (void);
  31394. declares 'get_flt_vec16' to be a function returning a 16-byte
  31395. vector with the base type 'float'.
  31396. 'visibility'
  31397. In C++, attribute visibility (*note Function Attributes::) can also
  31398. be applied to class, struct, union and enum types. Unlike other
  31399. type attributes, the attribute must appear between the initial
  31400. keyword and the name of the type; it cannot appear after the body
  31401. of the type.
  31402. Note that the type visibility is applied to vague linkage entities
  31403. associated with the class (vtable, typeinfo node, etc.). In
  31404. particular, if a class is thrown as an exception in one shared
  31405. object and caught in another, the class must have default
  31406. visibility. Otherwise the two shared objects are unable to use the
  31407. same typeinfo node and exception handling will break.
  31408. 'objc_root_class (Objective-C and Objective-C++ only)'
  31409. This attribute marks a class as being a root class, and thus allows
  31410. the compiler to elide any warnings about a missing superclass and
  31411. to make additional checks for mandatory methods as needed.
  31412. To specify multiple attributes, separate them by commas within the
  31413. double parentheses: for example, '__attribute__ ((aligned (16),
  31414. packed))'.
  31415. 
  31416. File: gcc.info, Node: ARC Type Attributes, Next: ARM Type Attributes, Prev: Common Type Attributes, Up: Type Attributes
  31417. 6.35.2 ARC Type Attributes
  31418. --------------------------
  31419. Declaring objects with 'uncached' allows you to exclude data-cache
  31420. participation in load and store operations on those objects without
  31421. involving the additional semantic implications of 'volatile'. The '.di'
  31422. instruction suffix is used for all loads and stores of data declared
  31423. 'uncached'.
  31424. 
  31425. File: gcc.info, Node: ARM Type Attributes, Next: MeP Type Attributes, Prev: ARC Type Attributes, Up: Type Attributes
  31426. 6.35.3 ARM Type Attributes
  31427. --------------------------
  31428. On those ARM targets that support 'dllimport' (such as Symbian OS), you
  31429. can use the 'notshared' attribute to indicate that the virtual table and
  31430. other similar data for a class should not be exported from a DLL. For
  31431. example:
  31432. class __declspec(notshared) C {
  31433. public:
  31434. __declspec(dllimport) C();
  31435. virtual void f();
  31436. }
  31437. __declspec(dllexport)
  31438. C::C() {}
  31439. In this code, 'C::C' is exported from the current DLL, but the virtual
  31440. table for 'C' is not exported. (You can use '__attribute__' instead of
  31441. '__declspec' if you prefer, but most Symbian OS code uses '__declspec'.)
  31442. 
  31443. File: gcc.info, Node: MeP Type Attributes, Next: PowerPC Type Attributes, Prev: ARM Type Attributes, Up: Type Attributes
  31444. 6.35.4 MeP Type Attributes
  31445. --------------------------
  31446. Many of the MeP variable attributes may be applied to types as well.
  31447. Specifically, the 'based', 'tiny', 'near', and 'far' attributes may be
  31448. applied to either. The 'io' and 'cb' attributes may not be applied to
  31449. types.
  31450. 
  31451. File: gcc.info, Node: PowerPC Type Attributes, Next: x86 Type Attributes, Prev: MeP Type Attributes, Up: Type Attributes
  31452. 6.35.5 PowerPC Type Attributes
  31453. ------------------------------
  31454. Three attributes currently are defined for PowerPC configurations:
  31455. 'altivec', 'ms_struct' and 'gcc_struct'.
  31456. For full documentation of the 'ms_struct' and 'gcc_struct' attributes
  31457. please see the documentation in *note x86 Type Attributes::.
  31458. The 'altivec' attribute allows one to declare AltiVec vector data types
  31459. supported by the AltiVec Programming Interface Manual. The attribute
  31460. requires an argument to specify one of three vector types: 'vector__',
  31461. 'pixel__' (always followed by unsigned short), and 'bool__' (always
  31462. followed by unsigned).
  31463. __attribute__((altivec(vector__)))
  31464. __attribute__((altivec(pixel__))) unsigned short
  31465. __attribute__((altivec(bool__))) unsigned
  31466. These attributes mainly are intended to support the '__vector',
  31467. '__pixel', and '__bool' AltiVec keywords.
  31468. 
  31469. File: gcc.info, Node: x86 Type Attributes, Prev: PowerPC Type Attributes, Up: Type Attributes
  31470. 6.35.6 x86 Type Attributes
  31471. --------------------------
  31472. Two attributes are currently defined for x86 configurations: 'ms_struct'
  31473. and 'gcc_struct'.
  31474. 'ms_struct'
  31475. 'gcc_struct'
  31476. If 'packed' is used on a structure, or if bit-fields are used it
  31477. may be that the Microsoft ABI packs them differently than GCC
  31478. normally packs them. Particularly when moving packed data between
  31479. functions compiled with GCC and the native Microsoft compiler
  31480. (either via function call or as data in a file), it may be
  31481. necessary to access either format.
  31482. The 'ms_struct' and 'gcc_struct' attributes correspond to the
  31483. '-mms-bitfields' and '-mno-ms-bitfields' command-line options,
  31484. respectively; see *note x86 Options::, for details of how structure
  31485. layout is affected. *Note x86 Variable Attributes::, for
  31486. information about the corresponding attributes on variables.
  31487. 
  31488. File: gcc.info, Node: Label Attributes, Next: Enumerator Attributes, Prev: Type Attributes, Up: C Extensions
  31489. 6.36 Label Attributes
  31490. =====================
  31491. GCC allows attributes to be set on C labels. *Note Attribute Syntax::,
  31492. for details of the exact syntax for using attributes. Other attributes
  31493. are available for functions (*note Function Attributes::), variables
  31494. (*note Variable Attributes::), enumerators (*note Enumerator
  31495. Attributes::), statements (*note Statement Attributes::), and for types
  31496. (*note Type Attributes::). A label attribute followed by a declaration
  31497. appertains to the label and not the declaration.
  31498. This example uses the 'cold' label attribute to indicate the
  31499. 'ErrorHandling' branch is unlikely to be taken and that the
  31500. 'ErrorHandling' label is unused:
  31501. asm goto ("some asm" : : : : NoError);
  31502. /* This branch (the fall-through from the asm) is less commonly used */
  31503. ErrorHandling:
  31504. __attribute__((cold, unused)); /* Semi-colon is required here */
  31505. printf("error\n");
  31506. return 0;
  31507. NoError:
  31508. printf("no error\n");
  31509. return 1;
  31510. 'unused'
  31511. This feature is intended for program-generated code that may
  31512. contain unused labels, but which is compiled with '-Wall'. It is
  31513. not normally appropriate to use in it human-written code, though it
  31514. could be useful in cases where the code that jumps to the label is
  31515. contained within an '#ifdef' conditional.
  31516. 'hot'
  31517. The 'hot' attribute on a label is used to inform the compiler that
  31518. the path following the label is more likely than paths that are not
  31519. so annotated. This attribute is used in cases where
  31520. '__builtin_expect' cannot be used, for instance with computed goto
  31521. or 'asm goto'.
  31522. 'cold'
  31523. The 'cold' attribute on labels is used to inform the compiler that
  31524. the path following the label is unlikely to be executed. This
  31525. attribute is used in cases where '__builtin_expect' cannot be used,
  31526. for instance with computed goto or 'asm goto'.
  31527. 
  31528. File: gcc.info, Node: Enumerator Attributes, Next: Statement Attributes, Prev: Label Attributes, Up: C Extensions
  31529. 6.37 Enumerator Attributes
  31530. ==========================
  31531. GCC allows attributes to be set on enumerators. *Note Attribute
  31532. Syntax::, for details of the exact syntax for using attributes. Other
  31533. attributes are available for functions (*note Function Attributes::),
  31534. variables (*note Variable Attributes::), labels (*note Label
  31535. Attributes::), statements (*note Statement Attributes::), and for types
  31536. (*note Type Attributes::).
  31537. This example uses the 'deprecated' enumerator attribute to indicate the
  31538. 'oldval' enumerator is deprecated:
  31539. enum E {
  31540. oldval __attribute__((deprecated)),
  31541. newval
  31542. };
  31543. int
  31544. fn (void)
  31545. {
  31546. return oldval;
  31547. }
  31548. 'deprecated'
  31549. The 'deprecated' attribute results in a warning if the enumerator
  31550. is used anywhere in the source file. This is useful when
  31551. identifying enumerators that are expected to be removed in a future
  31552. version of a program. The warning also includes the location of
  31553. the declaration of the deprecated enumerator, to enable users to
  31554. easily find further information about why the enumerator is
  31555. deprecated, or what they should do instead. Note that the warnings
  31556. only occurs for uses.
  31557. 
  31558. File: gcc.info, Node: Statement Attributes, Next: Attribute Syntax, Prev: Enumerator Attributes, Up: C Extensions
  31559. 6.38 Statement Attributes
  31560. =========================
  31561. GCC allows attributes to be set on null statements. *Note Attribute
  31562. Syntax::, for details of the exact syntax for using attributes. Other
  31563. attributes are available for functions (*note Function Attributes::),
  31564. variables (*note Variable Attributes::), labels (*note Label
  31565. Attributes::), enumerators (*note Enumerator Attributes::), and for
  31566. types (*note Type Attributes::).
  31567. This example uses the 'fallthrough' statement attribute to indicate
  31568. that the '-Wimplicit-fallthrough' warning should not be emitted:
  31569. switch (cond)
  31570. {
  31571. case 1:
  31572. bar (1);
  31573. __attribute__((fallthrough));
  31574. case 2:
  31575. ...
  31576. }
  31577. 'fallthrough'
  31578. The 'fallthrough' attribute with a null statement serves as a
  31579. fallthrough statement. It hints to the compiler that a statement
  31580. that falls through to another case label, or user-defined label in
  31581. a switch statement is intentional and thus the
  31582. '-Wimplicit-fallthrough' warning must not trigger. The fallthrough
  31583. attribute may appear at most once in each attribute list, and may
  31584. not be mixed with other attributes. It can only be used in a
  31585. switch statement (the compiler will issue an error otherwise),
  31586. after a preceding statement and before a logically succeeding case
  31587. label, or user-defined label.
  31588. 
  31589. File: gcc.info, Node: Attribute Syntax, Next: Function Prototypes, Prev: Statement Attributes, Up: C Extensions
  31590. 6.39 Attribute Syntax
  31591. =====================
  31592. This section describes the syntax with which '__attribute__' may be
  31593. used, and the constructs to which attribute specifiers bind, for the C
  31594. language. Some details may vary for C++ and Objective-C. Because of
  31595. infelicities in the grammar for attributes, some forms described here
  31596. may not be successfully parsed in all cases.
  31597. There are some problems with the semantics of attributes in C++. For
  31598. example, there are no manglings for attributes, although they may affect
  31599. code generation, so problems may arise when attributed types are used in
  31600. conjunction with templates or overloading. Similarly, 'typeid' does not
  31601. distinguish between types with different attributes. Support for
  31602. attributes in C++ may be restricted in future to attributes on
  31603. declarations only, but not on nested declarators.
  31604. *Note Function Attributes::, for details of the semantics of attributes
  31605. applying to functions. *Note Variable Attributes::, for details of the
  31606. semantics of attributes applying to variables. *Note Type Attributes::,
  31607. for details of the semantics of attributes applying to structure, union
  31608. and enumerated types. *Note Label Attributes::, for details of the
  31609. semantics of attributes applying to labels. *Note Enumerator
  31610. Attributes::, for details of the semantics of attributes applying to
  31611. enumerators. *Note Statement Attributes::, for details of the semantics
  31612. of attributes applying to statements.
  31613. An "attribute specifier" is of the form '__attribute__
  31614. ((ATTRIBUTE-LIST))'. An "attribute list" is a possibly empty
  31615. comma-separated sequence of "attributes", where each attribute is one of
  31616. the following:
  31617. * Empty. Empty attributes are ignored.
  31618. * An attribute name (which may be an identifier such as 'unused', or
  31619. a reserved word such as 'const').
  31620. * An attribute name followed by a parenthesized list of parameters
  31621. for the attribute. These parameters take one of the following
  31622. forms:
  31623. * An identifier. For example, 'mode' attributes use this form.
  31624. * An identifier followed by a comma and a non-empty
  31625. comma-separated list of expressions. For example, 'format'
  31626. attributes use this form.
  31627. * A possibly empty comma-separated list of expressions. For
  31628. example, 'format_arg' attributes use this form with the list
  31629. being a single integer constant expression, and 'alias'
  31630. attributes use this form with the list being a single string
  31631. constant.
  31632. An "attribute specifier list" is a sequence of one or more attribute
  31633. specifiers, not separated by any other tokens.
  31634. You may optionally specify attribute names with '__' preceding and
  31635. following the name. This allows you to use them in header files without
  31636. being concerned about a possible macro of the same name. For example,
  31637. you may use the attribute name '__noreturn__' instead of 'noreturn'.
  31638. Label Attributes
  31639. ................
  31640. In GNU C, an attribute specifier list may appear after the colon
  31641. following a label, other than a 'case' or 'default' label. GNU C++ only
  31642. permits attributes on labels if the attribute specifier is immediately
  31643. followed by a semicolon (i.e., the label applies to an empty statement).
  31644. If the semicolon is missing, C++ label attributes are ambiguous, as it
  31645. is permissible for a declaration, which could begin with an attribute
  31646. list, to be labelled in C++. Declarations cannot be labelled in C90 or
  31647. C99, so the ambiguity does not arise there.
  31648. Enumerator Attributes
  31649. .....................
  31650. In GNU C, an attribute specifier list may appear as part of an
  31651. enumerator. The attribute goes after the enumeration constant, before
  31652. '=', if present. The optional attribute in the enumerator appertains to
  31653. the enumeration constant. It is not possible to place the attribute
  31654. after the constant expression, if present.
  31655. Statement Attributes
  31656. ....................
  31657. In GNU C, an attribute specifier list may appear as part of a null
  31658. statement. The attribute goes before the semicolon.
  31659. Type Attributes
  31660. ...............
  31661. An attribute specifier list may appear as part of a 'struct', 'union' or
  31662. 'enum' specifier. It may go either immediately after the 'struct',
  31663. 'union' or 'enum' keyword, or after the closing brace. The former
  31664. syntax is preferred. Where attribute specifiers follow the closing
  31665. brace, they are considered to relate to the structure, union or
  31666. enumerated type defined, not to any enclosing declaration the type
  31667. specifier appears in, and the type defined is not complete until after
  31668. the attribute specifiers.
  31669. All other attributes
  31670. ....................
  31671. Otherwise, an attribute specifier appears as part of a declaration,
  31672. counting declarations of unnamed parameters and type names, and relates
  31673. to that declaration (which may be nested in another declaration, for
  31674. example in the case of a parameter declaration), or to a particular
  31675. declarator within a declaration. Where an attribute specifier is
  31676. applied to a parameter declared as a function or an array, it should
  31677. apply to the function or array rather than the pointer to which the
  31678. parameter is implicitly converted, but this is not yet correctly
  31679. implemented.
  31680. Any list of specifiers and qualifiers at the start of a declaration may
  31681. contain attribute specifiers, whether or not such a list may in that
  31682. context contain storage class specifiers. (Some attributes, however,
  31683. are essentially in the nature of storage class specifiers, and only make
  31684. sense where storage class specifiers may be used; for example,
  31685. 'section'.) There is one necessary limitation to this syntax: the first
  31686. old-style parameter declaration in a function definition cannot begin
  31687. with an attribute specifier, because such an attribute applies to the
  31688. function instead by syntax described below (which, however, is not yet
  31689. implemented in this case). In some other cases, attribute specifiers
  31690. are permitted by this grammar but not yet supported by the compiler.
  31691. All attribute specifiers in this place relate to the declaration as a
  31692. whole. In the obsolescent usage where a type of 'int' is implied by the
  31693. absence of type specifiers, such a list of specifiers and qualifiers may
  31694. be an attribute specifier list with no other specifiers or qualifiers.
  31695. At present, the first parameter in a function prototype must have some
  31696. type specifier that is not an attribute specifier; this resolves an
  31697. ambiguity in the interpretation of 'void f(int (__attribute__((foo))
  31698. x))', but is subject to change. At present, if the parentheses of a
  31699. function declarator contain only attributes then those attributes are
  31700. ignored, rather than yielding an error or warning or implying a single
  31701. parameter of type int, but this is subject to change.
  31702. An attribute specifier list may appear immediately before a declarator
  31703. (other than the first) in a comma-separated list of declarators in a
  31704. declaration of more than one identifier using a single list of
  31705. specifiers and qualifiers. Such attribute specifiers apply only to the
  31706. identifier before whose declarator they appear. For example, in
  31707. __attribute__((noreturn)) void d0 (void),
  31708. __attribute__((format(printf, 1, 2))) d1 (const char *, ...),
  31709. d2 (void);
  31710. the 'noreturn' attribute applies to all the functions declared; the
  31711. 'format' attribute only applies to 'd1'.
  31712. An attribute specifier list may appear immediately before the comma,
  31713. '=' or semicolon terminating the declaration of an identifier other than
  31714. a function definition. Such attribute specifiers apply to the declared
  31715. object or function. Where an assembler name for an object or function
  31716. is specified (*note Asm Labels::), the attribute must follow the 'asm'
  31717. specification.
  31718. An attribute specifier list may, in future, be permitted to appear
  31719. after the declarator in a function definition (before any old-style
  31720. parameter declarations or the function body).
  31721. Attribute specifiers may be mixed with type qualifiers appearing inside
  31722. the '[]' of a parameter array declarator, in the C99 construct by which
  31723. such qualifiers are applied to the pointer to which the array is
  31724. implicitly converted. Such attribute specifiers apply to the pointer,
  31725. not to the array, but at present this is not implemented and they are
  31726. ignored.
  31727. An attribute specifier list may appear at the start of a nested
  31728. declarator. At present, there are some limitations in this usage: the
  31729. attributes correctly apply to the declarator, but for most individual
  31730. attributes the semantics this implies are not implemented. When
  31731. attribute specifiers follow the '*' of a pointer declarator, they may be
  31732. mixed with any type qualifiers present. The following describes the
  31733. formal semantics of this syntax. It makes the most sense if you are
  31734. familiar with the formal specification of declarators in the ISO C
  31735. standard.
  31736. Consider (as in C99 subclause 6.7.5 paragraph 4) a declaration 'T D1',
  31737. where 'T' contains declaration specifiers that specify a type TYPE (such
  31738. as 'int') and 'D1' is a declarator that contains an identifier IDENT.
  31739. The type specified for IDENT for derived declarators whose type does not
  31740. include an attribute specifier is as in the ISO C standard.
  31741. If 'D1' has the form '( ATTRIBUTE-SPECIFIER-LIST D )', and the
  31742. declaration 'T D' specifies the type "DERIVED-DECLARATOR-TYPE-LIST TYPE"
  31743. for IDENT, then 'T D1' specifies the type "DERIVED-DECLARATOR-TYPE-LIST
  31744. ATTRIBUTE-SPECIFIER-LIST TYPE" for IDENT.
  31745. If 'D1' has the form '* TYPE-QUALIFIER-AND-ATTRIBUTE-SPECIFIER-LIST D',
  31746. and the declaration 'T D' specifies the type
  31747. "DERIVED-DECLARATOR-TYPE-LIST TYPE" for IDENT, then 'T D1' specifies the
  31748. type "DERIVED-DECLARATOR-TYPE-LIST
  31749. TYPE-QUALIFIER-AND-ATTRIBUTE-SPECIFIER-LIST pointer to TYPE" for IDENT.
  31750. For example,
  31751. void (__attribute__((noreturn)) ****f) (void);
  31752. specifies the type "pointer to pointer to pointer to pointer to
  31753. non-returning function returning 'void'". As another example,
  31754. char *__attribute__((aligned(8))) *f;
  31755. specifies the type "pointer to 8-byte-aligned pointer to 'char'". Note
  31756. again that this does not work with most attributes; for example, the
  31757. usage of 'aligned' and 'noreturn' attributes given above is not yet
  31758. supported.
  31759. For compatibility with existing code written for compiler versions that
  31760. did not implement attributes on nested declarators, some laxity is
  31761. allowed in the placing of attributes. If an attribute that only applies
  31762. to types is applied to a declaration, it is treated as applying to the
  31763. type of that declaration. If an attribute that only applies to
  31764. declarations is applied to the type of a declaration, it is treated as
  31765. applying to that declaration; and, for compatibility with code placing
  31766. the attributes immediately before the identifier declared, such an
  31767. attribute applied to a function return type is treated as applying to
  31768. the function type, and such an attribute applied to an array element
  31769. type is treated as applying to the array type. If an attribute that
  31770. only applies to function types is applied to a pointer-to-function type,
  31771. it is treated as applying to the pointer target type; if such an
  31772. attribute is applied to a function return type that is not a
  31773. pointer-to-function type, it is treated as applying to the function
  31774. type.
  31775. 
  31776. File: gcc.info, Node: Function Prototypes, Next: C++ Comments, Prev: Attribute Syntax, Up: C Extensions
  31777. 6.40 Prototypes and Old-Style Function Definitions
  31778. ==================================================
  31779. GNU C extends ISO C to allow a function prototype to override a later
  31780. old-style non-prototype definition. Consider the following example:
  31781. /* Use prototypes unless the compiler is old-fashioned. */
  31782. #ifdef __STDC__
  31783. #define P(x) x
  31784. #else
  31785. #define P(x) ()
  31786. #endif
  31787. /* Prototype function declaration. */
  31788. int isroot P((uid_t));
  31789. /* Old-style function definition. */
  31790. int
  31791. isroot (x) /* ??? lossage here ??? */
  31792. uid_t x;
  31793. {
  31794. return x == 0;
  31795. }
  31796. Suppose the type 'uid_t' happens to be 'short'. ISO C does not allow
  31797. this example, because subword arguments in old-style non-prototype
  31798. definitions are promoted. Therefore in this example the function
  31799. definition's argument is really an 'int', which does not match the
  31800. prototype argument type of 'short'.
  31801. This restriction of ISO C makes it hard to write code that is portable
  31802. to traditional C compilers, because the programmer does not know whether
  31803. the 'uid_t' type is 'short', 'int', or 'long'. Therefore, in cases like
  31804. these GNU C allows a prototype to override a later old-style definition.
  31805. More precisely, in GNU C, a function prototype argument type overrides
  31806. the argument type specified by a later old-style definition if the
  31807. former type is the same as the latter type before promotion. Thus in
  31808. GNU C the above example is equivalent to the following:
  31809. int isroot (uid_t);
  31810. int
  31811. isroot (uid_t x)
  31812. {
  31813. return x == 0;
  31814. }
  31815. GNU C++ does not support old-style function definitions, so this
  31816. extension is irrelevant.
  31817. 
  31818. File: gcc.info, Node: C++ Comments, Next: Dollar Signs, Prev: Function Prototypes, Up: C Extensions
  31819. 6.41 C++ Style Comments
  31820. =======================
  31821. In GNU C, you may use C++ style comments, which start with '//' and
  31822. continue until the end of the line. Many other C implementations allow
  31823. such comments, and they are included in the 1999 C standard. However,
  31824. C++ style comments are not recognized if you specify an '-std' option
  31825. specifying a version of ISO C before C99, or '-ansi' (equivalent to
  31826. '-std=c90').
  31827. 
  31828. File: gcc.info, Node: Dollar Signs, Next: Character Escapes, Prev: C++ Comments, Up: C Extensions
  31829. 6.42 Dollar Signs in Identifier Names
  31830. =====================================
  31831. In GNU C, you may normally use dollar signs in identifier names. This
  31832. is because many traditional C implementations allow such identifiers.
  31833. However, dollar signs in identifiers are not supported on a few target
  31834. machines, typically because the target assembler does not allow them.
  31835. 
  31836. File: gcc.info, Node: Character Escapes, Next: Alignment, Prev: Dollar Signs, Up: C Extensions
  31837. 6.43 The Character <ESC> in Constants
  31838. =====================================
  31839. You can use the sequence '\e' in a string or character constant to stand
  31840. for the ASCII character <ESC>.
  31841. 
  31842. File: gcc.info, Node: Alignment, Next: Inline, Prev: Character Escapes, Up: C Extensions
  31843. 6.44 Determining the Alignment of Functions, Types or Variables
  31844. ===============================================================
  31845. The keyword '__alignof__' determines the alignment requirement of a
  31846. function, object, or a type, or the minimum alignment usually required
  31847. by a type. Its syntax is just like 'sizeof' and C11 '_Alignof'.
  31848. For example, if the target machine requires a 'double' value to be
  31849. aligned on an 8-byte boundary, then '__alignof__ (double)' is 8. This
  31850. is true on many RISC machines. On more traditional machine designs,
  31851. '__alignof__ (double)' is 4 or even 2.
  31852. Some machines never actually require alignment; they allow references
  31853. to any data type even at an odd address. For these machines,
  31854. '__alignof__' reports the smallest alignment that GCC gives the data
  31855. type, usually as mandated by the target ABI.
  31856. If the operand of '__alignof__' is an lvalue rather than a type, its
  31857. value is the required alignment for its type, taking into account any
  31858. minimum alignment specified by attribute 'aligned' (*note Common
  31859. Variable Attributes::). For example, after this declaration:
  31860. struct foo { int x; char y; } foo1;
  31861. the value of '__alignof__ (foo1.y)' is 1, even though its actual
  31862. alignment is probably 2 or 4, the same as '__alignof__ (int)'. It is an
  31863. error to ask for the alignment of an incomplete type other than 'void'.
  31864. If the operand of the '__alignof__' expression is a function, the
  31865. expression evaluates to the alignment of the function which may be
  31866. specified by attribute 'aligned' (*note Common Function Attributes::).
  31867. 
  31868. File: gcc.info, Node: Inline, Next: Volatiles, Prev: Alignment, Up: C Extensions
  31869. 6.45 An Inline Function is As Fast As a Macro
  31870. =============================================
  31871. By declaring a function inline, you can direct GCC to make calls to that
  31872. function faster. One way GCC can achieve this is to integrate that
  31873. function's code into the code for its callers. This makes execution
  31874. faster by eliminating the function-call overhead; in addition, if any of
  31875. the actual argument values are constant, their known values may permit
  31876. simplifications at compile time so that not all of the inline function's
  31877. code needs to be included. The effect on code size is less predictable;
  31878. object code may be larger or smaller with function inlining, depending
  31879. on the particular case. You can also direct GCC to try to integrate all
  31880. "simple enough" functions into their callers with the option
  31881. '-finline-functions'.
  31882. GCC implements three different semantics of declaring a function
  31883. inline. One is available with '-std=gnu89' or '-fgnu89-inline' or when
  31884. 'gnu_inline' attribute is present on all inline declarations, another
  31885. when '-std=c99', '-std=gnu99' or an option for a later C version is used
  31886. (without '-fgnu89-inline'), and the third is used when compiling C++.
  31887. To declare a function inline, use the 'inline' keyword in its
  31888. declaration, like this:
  31889. static inline int
  31890. inc (int *a)
  31891. {
  31892. return (*a)++;
  31893. }
  31894. If you are writing a header file to be included in ISO C90 programs,
  31895. write '__inline__' instead of 'inline'. *Note Alternate Keywords::.
  31896. The three types of inlining behave similarly in two important cases:
  31897. when the 'inline' keyword is used on a 'static' function, like the
  31898. example above, and when a function is first declared without using the
  31899. 'inline' keyword and then is defined with 'inline', like this:
  31900. extern int inc (int *a);
  31901. inline int
  31902. inc (int *a)
  31903. {
  31904. return (*a)++;
  31905. }
  31906. In both of these common cases, the program behaves the same as if you
  31907. had not used the 'inline' keyword, except for its speed.
  31908. When a function is both inline and 'static', if all calls to the
  31909. function are integrated into the caller, and the function's address is
  31910. never used, then the function's own assembler code is never referenced.
  31911. In this case, GCC does not actually output assembler code for the
  31912. function, unless you specify the option '-fkeep-inline-functions'. If
  31913. there is a nonintegrated call, then the function is compiled to
  31914. assembler code as usual. The function must also be compiled as usual if
  31915. the program refers to its address, because that cannot be inlined.
  31916. Note that certain usages in a function definition can make it
  31917. unsuitable for inline substitution. Among these usages are: variadic
  31918. functions, use of 'alloca', use of computed goto (*note Labels as
  31919. Values::), use of nonlocal goto, use of nested functions, use of
  31920. 'setjmp', use of '__builtin_longjmp' and use of '__builtin_return' or
  31921. '__builtin_apply_args'. Using '-Winline' warns when a function marked
  31922. 'inline' could not be substituted, and gives the reason for the failure.
  31923. As required by ISO C++, GCC considers member functions defined within
  31924. the body of a class to be marked inline even if they are not explicitly
  31925. declared with the 'inline' keyword. You can override this with
  31926. '-fno-default-inline'; *note Options Controlling C++ Dialect: C++
  31927. Dialect Options.
  31928. GCC does not inline any functions when not optimizing unless you
  31929. specify the 'always_inline' attribute for the function, like this:
  31930. /* Prototype. */
  31931. inline void foo (const char) __attribute__((always_inline));
  31932. The remainder of this section is specific to GNU C90 inlining.
  31933. When an inline function is not 'static', then the compiler must assume
  31934. that there may be calls from other source files; since a global symbol
  31935. can be defined only once in any program, the function must not be
  31936. defined in the other source files, so the calls therein cannot be
  31937. integrated. Therefore, a non-'static' inline function is always
  31938. compiled on its own in the usual fashion.
  31939. If you specify both 'inline' and 'extern' in the function definition,
  31940. then the definition is used only for inlining. In no case is the
  31941. function compiled on its own, not even if you refer to its address
  31942. explicitly. Such an address becomes an external reference, as if you
  31943. had only declared the function, and had not defined it.
  31944. This combination of 'inline' and 'extern' has almost the effect of a
  31945. macro. The way to use it is to put a function definition in a header
  31946. file with these keywords, and put another copy of the definition
  31947. (lacking 'inline' and 'extern') in a library file. The definition in
  31948. the header file causes most calls to the function to be inlined. If any
  31949. uses of the function remain, they refer to the single copy in the
  31950. library.
  31951. 
  31952. File: gcc.info, Node: Volatiles, Next: Using Assembly Language with C, Prev: Inline, Up: C Extensions
  31953. 6.46 When is a Volatile Object Accessed?
  31954. ========================================
  31955. C has the concept of volatile objects. These are normally accessed by
  31956. pointers and used for accessing hardware or inter-thread communication.
  31957. The standard encourages compilers to refrain from optimizations
  31958. concerning accesses to volatile objects, but leaves it implementation
  31959. defined as to what constitutes a volatile access. The minimum
  31960. requirement is that at a sequence point all previous accesses to
  31961. volatile objects have stabilized and no subsequent accesses have
  31962. occurred. Thus an implementation is free to reorder and combine
  31963. volatile accesses that occur between sequence points, but cannot do so
  31964. for accesses across a sequence point. The use of volatile does not
  31965. allow you to violate the restriction on updating objects multiple times
  31966. between two sequence points.
  31967. Accesses to non-volatile objects are not ordered with respect to
  31968. volatile accesses. You cannot use a volatile object as a memory barrier
  31969. to order a sequence of writes to non-volatile memory. For instance:
  31970. int *ptr = SOMETHING;
  31971. volatile int vobj;
  31972. *ptr = SOMETHING;
  31973. vobj = 1;
  31974. Unless *PTR and VOBJ can be aliased, it is not guaranteed that the write
  31975. to *PTR occurs by the time the update of VOBJ happens. If you need this
  31976. guarantee, you must use a stronger memory barrier such as:
  31977. int *ptr = SOMETHING;
  31978. volatile int vobj;
  31979. *ptr = SOMETHING;
  31980. asm volatile ("" : : : "memory");
  31981. vobj = 1;
  31982. A scalar volatile object is read when it is accessed in a void context:
  31983. volatile int *src = SOMEVALUE;
  31984. *src;
  31985. Such expressions are rvalues, and GCC implements this as a read of the
  31986. volatile object being pointed to.
  31987. Assignments are also expressions and have an rvalue. However when
  31988. assigning to a scalar volatile, the volatile object is not reread,
  31989. regardless of whether the assignment expression's rvalue is used or not.
  31990. If the assignment's rvalue is used, the value is that assigned to the
  31991. volatile object. For instance, there is no read of VOBJ in all the
  31992. following cases:
  31993. int obj;
  31994. volatile int vobj;
  31995. vobj = SOMETHING;
  31996. obj = vobj = SOMETHING;
  31997. obj ? vobj = ONETHING : vobj = ANOTHERTHING;
  31998. obj = (SOMETHING, vobj = ANOTHERTHING);
  31999. If you need to read the volatile object after an assignment has
  32000. occurred, you must use a separate expression with an intervening
  32001. sequence point.
  32002. As bit-fields are not individually addressable, volatile bit-fields may
  32003. be implicitly read when written to, or when adjacent bit-fields are
  32004. accessed. Bit-field operations may be optimized such that adjacent
  32005. bit-fields are only partially accessed, if they straddle a storage unit
  32006. boundary. For these reasons it is unwise to use volatile bit-fields to
  32007. access hardware.
  32008. 
  32009. File: gcc.info, Node: Using Assembly Language with C, Next: Alternate Keywords, Prev: Volatiles, Up: C Extensions
  32010. 6.47 How to Use Inline Assembly Language in C Code
  32011. ==================================================
  32012. The 'asm' keyword allows you to embed assembler instructions within C
  32013. code. GCC provides two forms of inline 'asm' statements. A "basic
  32014. 'asm'" statement is one with no operands (*note Basic Asm::), while an
  32015. "extended 'asm'" statement (*note Extended Asm::) includes one or more
  32016. operands. The extended form is preferred for mixing C and assembly
  32017. language within a function, but to include assembly language at top
  32018. level you must use basic 'asm'.
  32019. You can also use the 'asm' keyword to override the assembler name for a
  32020. C symbol, or to place a C variable in a specific register.
  32021. * Menu:
  32022. * Basic Asm:: Inline assembler without operands.
  32023. * Extended Asm:: Inline assembler with operands.
  32024. * Constraints:: Constraints for 'asm' operands
  32025. * Asm Labels:: Specifying the assembler name to use for a C symbol.
  32026. * Explicit Register Variables:: Defining variables residing in specified
  32027. registers.
  32028. * Size of an asm:: How GCC calculates the size of an 'asm' block.
  32029. 
  32030. File: gcc.info, Node: Basic Asm, Next: Extended Asm, Up: Using Assembly Language with C
  32031. 6.47.1 Basic Asm -- Assembler Instructions Without Operands
  32032. -----------------------------------------------------------
  32033. A basic 'asm' statement has the following syntax:
  32034. asm ASM-QUALIFIERS ( ASSEMBLERINSTRUCTIONS )
  32035. The 'asm' keyword is a GNU extension. When writing code that can be
  32036. compiled with '-ansi' and the various '-std' options, use '__asm__'
  32037. instead of 'asm' (*note Alternate Keywords::).
  32038. Qualifiers
  32039. ..........
  32040. 'volatile'
  32041. The optional 'volatile' qualifier has no effect. All basic 'asm'
  32042. blocks are implicitly volatile.
  32043. 'inline'
  32044. If you use the 'inline' qualifier, then for inlining purposes the
  32045. size of the 'asm' statement is taken as the smallest size possible
  32046. (*note Size of an asm::).
  32047. Parameters
  32048. ..........
  32049. ASSEMBLERINSTRUCTIONS
  32050. This is a literal string that specifies the assembler code. The
  32051. string can contain any instructions recognized by the assembler,
  32052. including directives. GCC does not parse the assembler
  32053. instructions themselves and does not know what they mean or even
  32054. whether they are valid assembler input.
  32055. You may place multiple assembler instructions together in a single
  32056. 'asm' string, separated by the characters normally used in assembly
  32057. code for the system. A combination that works in most places is a
  32058. newline to break the line, plus a tab character (written as
  32059. '\n\t'). Some assemblers allow semicolons as a line separator.
  32060. However, note that some assembler dialects use semicolons to start
  32061. a comment.
  32062. Remarks
  32063. .......
  32064. Using extended 'asm' (*note Extended Asm::) typically produces smaller,
  32065. safer, and more efficient code, and in most cases it is a better
  32066. solution than basic 'asm'. However, there are two situations where only
  32067. basic 'asm' can be used:
  32068. * Extended 'asm' statements have to be inside a C function, so to
  32069. write inline assembly language at file scope ("top-level"), outside
  32070. of C functions, you must use basic 'asm'. You can use this
  32071. technique to emit assembler directives, define assembly language
  32072. macros that can be invoked elsewhere in the file, or write entire
  32073. functions in assembly language. Basic 'asm' statements outside of
  32074. functions may not use any qualifiers.
  32075. * Functions declared with the 'naked' attribute also require basic
  32076. 'asm' (*note Function Attributes::).
  32077. Safely accessing C data and calling functions from basic 'asm' is more
  32078. complex than it may appear. To access C data, it is better to use
  32079. extended 'asm'.
  32080. Do not expect a sequence of 'asm' statements to remain perfectly
  32081. consecutive after compilation. If certain instructions need to remain
  32082. consecutive in the output, put them in a single multi-instruction 'asm'
  32083. statement. Note that GCC's optimizers can move 'asm' statements
  32084. relative to other code, including across jumps.
  32085. 'asm' statements may not perform jumps into other 'asm' statements.
  32086. GCC does not know about these jumps, and therefore cannot take account
  32087. of them when deciding how to optimize. Jumps from 'asm' to C labels are
  32088. only supported in extended 'asm'.
  32089. Under certain circumstances, GCC may duplicate (or remove duplicates
  32090. of) your assembly code when optimizing. This can lead to unexpected
  32091. duplicate symbol errors during compilation if your assembly code defines
  32092. symbols or labels.
  32093. *Warning:* The C standards do not specify semantics for 'asm', making
  32094. it a potential source of incompatibilities between compilers. These
  32095. incompatibilities may not produce compiler warnings/errors.
  32096. GCC does not parse basic 'asm''s ASSEMBLERINSTRUCTIONS, which means
  32097. there is no way to communicate to the compiler what is happening inside
  32098. them. GCC has no visibility of symbols in the 'asm' and may discard
  32099. them as unreferenced. It also does not know about side effects of the
  32100. assembler code, such as modifications to memory or registers. Unlike
  32101. some compilers, GCC assumes that no changes to general purpose registers
  32102. occur. This assumption may change in a future release.
  32103. To avoid complications from future changes to the semantics and the
  32104. compatibility issues between compilers, consider replacing basic 'asm'
  32105. with extended 'asm'. See How to convert from basic asm to extended asm
  32106. (https://gcc.gnu.org/wiki/ConvertBasicAsmToExtended) for information
  32107. about how to perform this conversion.
  32108. The compiler copies the assembler instructions in a basic 'asm'
  32109. verbatim to the assembly language output file, without processing
  32110. dialects or any of the '%' operators that are available with extended
  32111. 'asm'. This results in minor differences between basic 'asm' strings
  32112. and extended 'asm' templates. For example, to refer to registers you
  32113. might use '%eax' in basic 'asm' and '%%eax' in extended 'asm'.
  32114. On targets such as x86 that support multiple assembler dialects, all
  32115. basic 'asm' blocks use the assembler dialect specified by the '-masm'
  32116. command-line option (*note x86 Options::). Basic 'asm' provides no
  32117. mechanism to provide different assembler strings for different dialects.
  32118. For basic 'asm' with non-empty assembler string GCC assumes the
  32119. assembler block does not change any general purpose registers, but it
  32120. may read or write any globally accessible variable.
  32121. Here is an example of basic 'asm' for i386:
  32122. /* Note that this code will not compile with -masm=intel */
  32123. #define DebugBreak() asm("int $3")
  32124. 
  32125. File: gcc.info, Node: Extended Asm, Next: Constraints, Prev: Basic Asm, Up: Using Assembly Language with C
  32126. 6.47.2 Extended Asm - Assembler Instructions with C Expression Operands
  32127. -----------------------------------------------------------------------
  32128. With extended 'asm' you can read and write C variables from assembler
  32129. and perform jumps from assembler code to C labels. Extended 'asm'
  32130. syntax uses colons (':') to delimit the operand parameters after the
  32131. assembler template:
  32132. asm ASM-QUALIFIERS ( ASSEMBLERTEMPLATE
  32133. : OUTPUTOPERANDS
  32134. [ : INPUTOPERANDS
  32135. [ : CLOBBERS ] ])
  32136. asm ASM-QUALIFIERS ( ASSEMBLERTEMPLATE
  32137. : OUTPUTOPERANDS
  32138. : INPUTOPERANDS
  32139. : CLOBBERS
  32140. : GOTOLABELS)
  32141. where in the last form, ASM-QUALIFIERS contains 'goto' (and in the
  32142. first form, not).
  32143. The 'asm' keyword is a GNU extension. When writing code that can be
  32144. compiled with '-ansi' and the various '-std' options, use '__asm__'
  32145. instead of 'asm' (*note Alternate Keywords::).
  32146. Qualifiers
  32147. ..........
  32148. 'volatile'
  32149. The typical use of extended 'asm' statements is to manipulate input
  32150. values to produce output values. However, your 'asm' statements
  32151. may also produce side effects. If so, you may need to use the
  32152. 'volatile' qualifier to disable certain optimizations. *Note
  32153. Volatile::.
  32154. 'inline'
  32155. If you use the 'inline' qualifier, then for inlining purposes the
  32156. size of the 'asm' statement is taken as the smallest size possible
  32157. (*note Size of an asm::).
  32158. 'goto'
  32159. This qualifier informs the compiler that the 'asm' statement may
  32160. perform a jump to one of the labels listed in the GOTOLABELS.
  32161. *Note GotoLabels::.
  32162. Parameters
  32163. ..........
  32164. ASSEMBLERTEMPLATE
  32165. This is a literal string that is the template for the assembler
  32166. code. It is a combination of fixed text and tokens that refer to
  32167. the input, output, and goto parameters. *Note AssemblerTemplate::.
  32168. OUTPUTOPERANDS
  32169. A comma-separated list of the C variables modified by the
  32170. instructions in the ASSEMBLERTEMPLATE. An empty list is permitted.
  32171. *Note OutputOperands::.
  32172. INPUTOPERANDS
  32173. A comma-separated list of C expressions read by the instructions in
  32174. the ASSEMBLERTEMPLATE. An empty list is permitted. *Note
  32175. InputOperands::.
  32176. CLOBBERS
  32177. A comma-separated list of registers or other values changed by the
  32178. ASSEMBLERTEMPLATE, beyond those listed as outputs. An empty list
  32179. is permitted. *Note Clobbers and Scratch Registers::.
  32180. GOTOLABELS
  32181. When you are using the 'goto' form of 'asm', this section contains
  32182. the list of all C labels to which the code in the ASSEMBLERTEMPLATE
  32183. may jump. *Note GotoLabels::.
  32184. 'asm' statements may not perform jumps into other 'asm' statements,
  32185. only to the listed GOTOLABELS. GCC's optimizers do not know about
  32186. other jumps; therefore they cannot take account of them when
  32187. deciding how to optimize.
  32188. The total number of input + output + goto operands is limited to 30.
  32189. Remarks
  32190. .......
  32191. The 'asm' statement allows you to include assembly instructions directly
  32192. within C code. This may help you to maximize performance in
  32193. time-sensitive code or to access assembly instructions that are not
  32194. readily available to C programs.
  32195. Note that extended 'asm' statements must be inside a function. Only
  32196. basic 'asm' may be outside functions (*note Basic Asm::). Functions
  32197. declared with the 'naked' attribute also require basic 'asm' (*note
  32198. Function Attributes::).
  32199. While the uses of 'asm' are many and varied, it may help to think of an
  32200. 'asm' statement as a series of low-level instructions that convert input
  32201. parameters to output parameters. So a simple (if not particularly
  32202. useful) example for i386 using 'asm' might look like this:
  32203. int src = 1;
  32204. int dst;
  32205. asm ("mov %1, %0\n\t"
  32206. "add $1, %0"
  32207. : "=r" (dst)
  32208. : "r" (src));
  32209. printf("%d\n", dst);
  32210. This code copies 'src' to 'dst' and add 1 to 'dst'.
  32211. 6.47.2.1 Volatile
  32212. .................
  32213. GCC's optimizers sometimes discard 'asm' statements if they determine
  32214. there is no need for the output variables. Also, the optimizers may
  32215. move code out of loops if they believe that the code will always return
  32216. the same result (i.e. none of its input values change between calls).
  32217. Using the 'volatile' qualifier disables these optimizations. 'asm'
  32218. statements that have no output operands and 'asm goto' statements, are
  32219. implicitly volatile.
  32220. This i386 code demonstrates a case that does not use (or require) the
  32221. 'volatile' qualifier. If it is performing assertion checking, this code
  32222. uses 'asm' to perform the validation. Otherwise, 'dwRes' is
  32223. unreferenced by any code. As a result, the optimizers can discard the
  32224. 'asm' statement, which in turn removes the need for the entire 'DoCheck'
  32225. routine. By omitting the 'volatile' qualifier when it isn't needed you
  32226. allow the optimizers to produce the most efficient code possible.
  32227. void DoCheck(uint32_t dwSomeValue)
  32228. {
  32229. uint32_t dwRes;
  32230. // Assumes dwSomeValue is not zero.
  32231. asm ("bsfl %1,%0"
  32232. : "=r" (dwRes)
  32233. : "r" (dwSomeValue)
  32234. : "cc");
  32235. assert(dwRes > 3);
  32236. }
  32237. The next example shows a case where the optimizers can recognize that
  32238. the input ('dwSomeValue') never changes during the execution of the
  32239. function and can therefore move the 'asm' outside the loop to produce
  32240. more efficient code. Again, using the 'volatile' qualifier disables
  32241. this type of optimization.
  32242. void do_print(uint32_t dwSomeValue)
  32243. {
  32244. uint32_t dwRes;
  32245. for (uint32_t x=0; x < 5; x++)
  32246. {
  32247. // Assumes dwSomeValue is not zero.
  32248. asm ("bsfl %1,%0"
  32249. : "=r" (dwRes)
  32250. : "r" (dwSomeValue)
  32251. : "cc");
  32252. printf("%u: %u %u\n", x, dwSomeValue, dwRes);
  32253. }
  32254. }
  32255. The following example demonstrates a case where you need to use the
  32256. 'volatile' qualifier. It uses the x86 'rdtsc' instruction, which reads
  32257. the computer's time-stamp counter. Without the 'volatile' qualifier,
  32258. the optimizers might assume that the 'asm' block will always return the
  32259. same value and therefore optimize away the second call.
  32260. uint64_t msr;
  32261. asm volatile ( "rdtsc\n\t" // Returns the time in EDX:EAX.
  32262. "shl $32, %%rdx\n\t" // Shift the upper bits left.
  32263. "or %%rdx, %0" // 'Or' in the lower bits.
  32264. : "=a" (msr)
  32265. :
  32266. : "rdx");
  32267. printf("msr: %llx\n", msr);
  32268. // Do other work...
  32269. // Reprint the timestamp
  32270. asm volatile ( "rdtsc\n\t" // Returns the time in EDX:EAX.
  32271. "shl $32, %%rdx\n\t" // Shift the upper bits left.
  32272. "or %%rdx, %0" // 'Or' in the lower bits.
  32273. : "=a" (msr)
  32274. :
  32275. : "rdx");
  32276. printf("msr: %llx\n", msr);
  32277. GCC's optimizers do not treat this code like the non-volatile code in
  32278. the earlier examples. They do not move it out of loops or omit it on
  32279. the assumption that the result from a previous call is still valid.
  32280. Note that the compiler can move even 'volatile asm' instructions
  32281. relative to other code, including across jump instructions. For
  32282. example, on many targets there is a system register that controls the
  32283. rounding mode of floating-point operations. Setting it with a 'volatile
  32284. asm' statement, as in the following PowerPC example, does not work
  32285. reliably.
  32286. asm volatile("mtfsf 255, %0" : : "f" (fpenv));
  32287. sum = x + y;
  32288. The compiler may move the addition back before the 'volatile asm'
  32289. statement. To make it work as expected, add an artificial dependency to
  32290. the 'asm' by referencing a variable in the subsequent code, for example:
  32291. asm volatile ("mtfsf 255,%1" : "=X" (sum) : "f" (fpenv));
  32292. sum = x + y;
  32293. Under certain circumstances, GCC may duplicate (or remove duplicates
  32294. of) your assembly code when optimizing. This can lead to unexpected
  32295. duplicate symbol errors during compilation if your 'asm' code defines
  32296. symbols or labels. Using '%=' (*note AssemblerTemplate::) may help
  32297. resolve this problem.
  32298. 6.47.2.2 Assembler Template
  32299. ...........................
  32300. An assembler template is a literal string containing assembler
  32301. instructions. The compiler replaces tokens in the template that refer
  32302. to inputs, outputs, and goto labels, and then outputs the resulting
  32303. string to the assembler. The string can contain any instructions
  32304. recognized by the assembler, including directives. GCC does not parse
  32305. the assembler instructions themselves and does not know what they mean
  32306. or even whether they are valid assembler input. However, it does count
  32307. the statements (*note Size of an asm::).
  32308. You may place multiple assembler instructions together in a single
  32309. 'asm' string, separated by the characters normally used in assembly code
  32310. for the system. A combination that works in most places is a newline to
  32311. break the line, plus a tab character to move to the instruction field
  32312. (written as '\n\t'). Some assemblers allow semicolons as a line
  32313. separator. However, note that some assembler dialects use semicolons to
  32314. start a comment.
  32315. Do not expect a sequence of 'asm' statements to remain perfectly
  32316. consecutive after compilation, even when you are using the 'volatile'
  32317. qualifier. If certain instructions need to remain consecutive in the
  32318. output, put them in a single multi-instruction 'asm' statement.
  32319. Accessing data from C programs without using input/output operands
  32320. (such as by using global symbols directly from the assembler template)
  32321. may not work as expected. Similarly, calling functions directly from an
  32322. assembler template requires a detailed understanding of the target
  32323. assembler and ABI.
  32324. Since GCC does not parse the assembler template, it has no visibility
  32325. of any symbols it references. This may result in GCC discarding those
  32326. symbols as unreferenced unless they are also listed as input, output, or
  32327. goto operands.
  32328. Special format strings
  32329. ......................
  32330. In addition to the tokens described by the input, output, and goto
  32331. operands, these tokens have special meanings in the assembler template:
  32332. '%%'
  32333. Outputs a single '%' into the assembler code.
  32334. '%='
  32335. Outputs a number that is unique to each instance of the 'asm'
  32336. statement in the entire compilation. This option is useful when
  32337. creating local labels and referring to them multiple times in a
  32338. single template that generates multiple assembler instructions.
  32339. '%{'
  32340. '%|'
  32341. '%}'
  32342. Outputs '{', '|', and '}' characters (respectively) into the
  32343. assembler code. When unescaped, these characters have special
  32344. meaning to indicate multiple assembler dialects, as described
  32345. below.
  32346. Multiple assembler dialects in 'asm' templates
  32347. ..............................................
  32348. On targets such as x86, GCC supports multiple assembler dialects. The
  32349. '-masm' option controls which dialect GCC uses as its default for inline
  32350. assembler. The target-specific documentation for the '-masm' option
  32351. contains the list of supported dialects, as well as the default dialect
  32352. if the option is not specified. This information may be important to
  32353. understand, since assembler code that works correctly when compiled
  32354. using one dialect will likely fail if compiled using another. *Note x86
  32355. Options::.
  32356. If your code needs to support multiple assembler dialects (for example,
  32357. if you are writing public headers that need to support a variety of
  32358. compilation options), use constructs of this form:
  32359. { dialect0 | dialect1 | dialect2... }
  32360. This construct outputs 'dialect0' when using dialect #0 to compile the
  32361. code, 'dialect1' for dialect #1, etc. If there are fewer alternatives
  32362. within the braces than the number of dialects the compiler supports, the
  32363. construct outputs nothing.
  32364. For example, if an x86 compiler supports two dialects ('att', 'intel'),
  32365. an assembler template such as this:
  32366. "bt{l %[Offset],%[Base] | %[Base],%[Offset]}; jc %l2"
  32367. is equivalent to one of
  32368. "btl %[Offset],%[Base] ; jc %l2" /* att dialect */
  32369. "bt %[Base],%[Offset]; jc %l2" /* intel dialect */
  32370. Using that same compiler, this code:
  32371. "xchg{l}\t{%%}ebx, %1"
  32372. corresponds to either
  32373. "xchgl\t%%ebx, %1" /* att dialect */
  32374. "xchg\tebx, %1" /* intel dialect */
  32375. There is no support for nesting dialect alternatives.
  32376. 6.47.2.3 Output Operands
  32377. ........................
  32378. An 'asm' statement has zero or more output operands indicating the names
  32379. of C variables modified by the assembler code.
  32380. In this i386 example, 'old' (referred to in the template string as
  32381. '%0') and '*Base' (as '%1') are outputs and 'Offset' ('%2') is an input:
  32382. bool old;
  32383. __asm__ ("btsl %2,%1\n\t" // Turn on zero-based bit #Offset in Base.
  32384. "sbb %0,%0" // Use the CF to calculate old.
  32385. : "=r" (old), "+rm" (*Base)
  32386. : "Ir" (Offset)
  32387. : "cc");
  32388. return old;
  32389. Operands are separated by commas. Each operand has this format:
  32390. [ [ASMSYMBOLICNAME] ] CONSTRAINT (CVARIABLENAME)
  32391. ASMSYMBOLICNAME
  32392. Specifies a symbolic name for the operand. Reference the name in
  32393. the assembler template by enclosing it in square brackets (i.e.
  32394. '%[Value]'). The scope of the name is the 'asm' statement that
  32395. contains the definition. Any valid C variable name is acceptable,
  32396. including names already defined in the surrounding code. No two
  32397. operands within the same 'asm' statement can use the same symbolic
  32398. name.
  32399. When not using an ASMSYMBOLICNAME, use the (zero-based) position of
  32400. the operand in the list of operands in the assembler template. For
  32401. example if there are three output operands, use '%0' in the
  32402. template to refer to the first, '%1' for the second, and '%2' for
  32403. the third.
  32404. CONSTRAINT
  32405. A string constant specifying constraints on the placement of the
  32406. operand; *Note Constraints::, for details.
  32407. Output constraints must begin with either '=' (a variable
  32408. overwriting an existing value) or '+' (when reading and writing).
  32409. When using '=', do not assume the location contains the existing
  32410. value on entry to the 'asm', except when the operand is tied to an
  32411. input; *note Input Operands: InputOperands.
  32412. After the prefix, there must be one or more additional constraints
  32413. (*note Constraints::) that describe where the value resides.
  32414. Common constraints include 'r' for register and 'm' for memory.
  32415. When you list more than one possible location (for example,
  32416. '"=rm"'), the compiler chooses the most efficient one based on the
  32417. current context. If you list as many alternates as the 'asm'
  32418. statement allows, you permit the optimizers to produce the best
  32419. possible code. If you must use a specific register, but your
  32420. Machine Constraints do not provide sufficient control to select the
  32421. specific register you want, local register variables may provide a
  32422. solution (*note Local Register Variables::).
  32423. CVARIABLENAME
  32424. Specifies a C lvalue expression to hold the output, typically a
  32425. variable name. The enclosing parentheses are a required part of
  32426. the syntax.
  32427. When the compiler selects the registers to use to represent the output
  32428. operands, it does not use any of the clobbered registers (*note Clobbers
  32429. and Scratch Registers::).
  32430. Output operand expressions must be lvalues. The compiler cannot check
  32431. whether the operands have data types that are reasonable for the
  32432. instruction being executed. For output expressions that are not
  32433. directly addressable (for example a bit-field), the constraint must
  32434. allow a register. In that case, GCC uses the register as the output of
  32435. the 'asm', and then stores that register into the output.
  32436. Operands using the '+' constraint modifier count as two operands (that
  32437. is, both as input and output) towards the total maximum of 30 operands
  32438. per 'asm' statement.
  32439. Use the '&' constraint modifier (*note Modifiers::) on all output
  32440. operands that must not overlap an input. Otherwise, GCC may allocate
  32441. the output operand in the same register as an unrelated input operand,
  32442. on the assumption that the assembler code consumes its inputs before
  32443. producing outputs. This assumption may be false if the assembler code
  32444. actually consists of more than one instruction.
  32445. The same problem can occur if one output parameter (A) allows a
  32446. register constraint and another output parameter (B) allows a memory
  32447. constraint. The code generated by GCC to access the memory address in B
  32448. can contain registers which _might_ be shared by A, and GCC considers
  32449. those registers to be inputs to the asm. As above, GCC assumes that
  32450. such input registers are consumed before any outputs are written. This
  32451. assumption may result in incorrect behavior if the 'asm' statement
  32452. writes to A before using B. Combining the '&' modifier with the
  32453. register constraint on A ensures that modifying A does not affect the
  32454. address referenced by B. Otherwise, the location of B is undefined if A
  32455. is modified before using B.
  32456. 'asm' supports operand modifiers on operands (for example '%k2' instead
  32457. of simply '%2'). Typically these qualifiers are hardware dependent.
  32458. The list of supported modifiers for x86 is found at *note x86 Operand
  32459. modifiers: x86Operandmodifiers.
  32460. If the C code that follows the 'asm' makes no use of any of the output
  32461. operands, use 'volatile' for the 'asm' statement to prevent the
  32462. optimizers from discarding the 'asm' statement as unneeded (see *note
  32463. Volatile::).
  32464. This code makes no use of the optional ASMSYMBOLICNAME. Therefore it
  32465. references the first output operand as '%0' (were there a second, it
  32466. would be '%1', etc). The number of the first input operand is one
  32467. greater than that of the last output operand. In this i386 example,
  32468. that makes 'Mask' referenced as '%1':
  32469. uint32_t Mask = 1234;
  32470. uint32_t Index;
  32471. asm ("bsfl %1, %0"
  32472. : "=r" (Index)
  32473. : "r" (Mask)
  32474. : "cc");
  32475. That code overwrites the variable 'Index' ('='), placing the value in a
  32476. register ('r'). Using the generic 'r' constraint instead of a
  32477. constraint for a specific register allows the compiler to pick the
  32478. register to use, which can result in more efficient code. This may not
  32479. be possible if an assembler instruction requires a specific register.
  32480. The following i386 example uses the ASMSYMBOLICNAME syntax. It
  32481. produces the same result as the code above, but some may consider it
  32482. more readable or more maintainable since reordering index numbers is not
  32483. necessary when adding or removing operands. The names 'aIndex' and
  32484. 'aMask' are only used in this example to emphasize which names get used
  32485. where. It is acceptable to reuse the names 'Index' and 'Mask'.
  32486. uint32_t Mask = 1234;
  32487. uint32_t Index;
  32488. asm ("bsfl %[aMask], %[aIndex]"
  32489. : [aIndex] "=r" (Index)
  32490. : [aMask] "r" (Mask)
  32491. : "cc");
  32492. Here are some more examples of output operands.
  32493. uint32_t c = 1;
  32494. uint32_t d;
  32495. uint32_t *e = &c;
  32496. asm ("mov %[e], %[d]"
  32497. : [d] "=rm" (d)
  32498. : [e] "rm" (*e));
  32499. Here, 'd' may either be in a register or in memory. Since the compiler
  32500. might already have the current value of the 'uint32_t' location pointed
  32501. to by 'e' in a register, you can enable it to choose the best location
  32502. for 'd' by specifying both constraints.
  32503. 6.47.2.4 Flag Output Operands
  32504. .............................
  32505. Some targets have a special register that holds the "flags" for the
  32506. result of an operation or comparison. Normally, the contents of that
  32507. register are either unmodifed by the asm, or the 'asm' statement is
  32508. considered to clobber the contents.
  32509. On some targets, a special form of output operand exists by which
  32510. conditions in the flags register may be outputs of the asm. The set of
  32511. conditions supported are target specific, but the general rule is that
  32512. the output variable must be a scalar integer, and the value is boolean.
  32513. When supported, the target defines the preprocessor symbol
  32514. '__GCC_ASM_FLAG_OUTPUTS__'.
  32515. Because of the special nature of the flag output operands, the
  32516. constraint may not include alternatives.
  32517. Most often, the target has only one flags register, and thus is an
  32518. implied operand of many instructions. In this case, the operand should
  32519. not be referenced within the assembler template via '%0' etc, as there's
  32520. no corresponding text in the assembly language.
  32521. ARM
  32522. AArch64
  32523. The flag output constraints for the ARM family are of the form
  32524. '=@ccCOND' where COND is one of the standard conditions defined in
  32525. the ARM ARM for 'ConditionHolds'.
  32526. 'eq'
  32527. Z flag set, or equal
  32528. 'ne'
  32529. Z flag clear or not equal
  32530. 'cs'
  32531. 'hs'
  32532. C flag set or unsigned greater than equal
  32533. 'cc'
  32534. 'lo'
  32535. C flag clear or unsigned less than
  32536. 'mi'
  32537. N flag set or "minus"
  32538. 'pl'
  32539. N flag clear or "plus"
  32540. 'vs'
  32541. V flag set or signed overflow
  32542. 'vc'
  32543. V flag clear
  32544. 'hi'
  32545. unsigned greater than
  32546. 'ls'
  32547. unsigned less than equal
  32548. 'ge'
  32549. signed greater than equal
  32550. 'lt'
  32551. signed less than
  32552. 'gt'
  32553. signed greater than
  32554. 'le'
  32555. signed less than equal
  32556. The flag output constraints are not supported in thumb1 mode.
  32557. x86 family
  32558. The flag output constraints for the x86 family are of the form
  32559. '=@ccCOND' where COND is one of the standard conditions defined in
  32560. the ISA manual for 'jCC' or 'setCC'.
  32561. 'a'
  32562. "above" or unsigned greater than
  32563. 'ae'
  32564. "above or equal" or unsigned greater than or equal
  32565. 'b'
  32566. "below" or unsigned less than
  32567. 'be'
  32568. "below or equal" or unsigned less than or equal
  32569. 'c'
  32570. carry flag set
  32571. 'e'
  32572. 'z'
  32573. "equal" or zero flag set
  32574. 'g'
  32575. signed greater than
  32576. 'ge'
  32577. signed greater than or equal
  32578. 'l'
  32579. signed less than
  32580. 'le'
  32581. signed less than or equal
  32582. 'o'
  32583. overflow flag set
  32584. 'p'
  32585. parity flag set
  32586. 's'
  32587. sign flag set
  32588. 'na'
  32589. 'nae'
  32590. 'nb'
  32591. 'nbe'
  32592. 'nc'
  32593. 'ne'
  32594. 'ng'
  32595. 'nge'
  32596. 'nl'
  32597. 'nle'
  32598. 'no'
  32599. 'np'
  32600. 'ns'
  32601. 'nz'
  32602. "not" FLAG, or inverted versions of those above
  32603. 6.47.2.5 Input Operands
  32604. .......................
  32605. Input operands make values from C variables and expressions available to
  32606. the assembly code.
  32607. Operands are separated by commas. Each operand has this format:
  32608. [ [ASMSYMBOLICNAME] ] CONSTRAINT (CEXPRESSION)
  32609. ASMSYMBOLICNAME
  32610. Specifies a symbolic name for the operand. Reference the name in
  32611. the assembler template by enclosing it in square brackets (i.e.
  32612. '%[Value]'). The scope of the name is the 'asm' statement that
  32613. contains the definition. Any valid C variable name is acceptable,
  32614. including names already defined in the surrounding code. No two
  32615. operands within the same 'asm' statement can use the same symbolic
  32616. name.
  32617. When not using an ASMSYMBOLICNAME, use the (zero-based) position of
  32618. the operand in the list of operands in the assembler template. For
  32619. example if there are two output operands and three inputs, use '%2'
  32620. in the template to refer to the first input operand, '%3' for the
  32621. second, and '%4' for the third.
  32622. CONSTRAINT
  32623. A string constant specifying constraints on the placement of the
  32624. operand; *Note Constraints::, for details.
  32625. Input constraint strings may not begin with either '=' or '+'.
  32626. When you list more than one possible location (for example,
  32627. '"irm"'), the compiler chooses the most efficient one based on the
  32628. current context. If you must use a specific register, but your
  32629. Machine Constraints do not provide sufficient control to select the
  32630. specific register you want, local register variables may provide a
  32631. solution (*note Local Register Variables::).
  32632. Input constraints can also be digits (for example, '"0"'). This
  32633. indicates that the specified input must be in the same place as the
  32634. output constraint at the (zero-based) index in the output
  32635. constraint list. When using ASMSYMBOLICNAME syntax for the output
  32636. operands, you may use these names (enclosed in brackets '[]')
  32637. instead of digits.
  32638. CEXPRESSION
  32639. This is the C variable or expression being passed to the 'asm'
  32640. statement as input. The enclosing parentheses are a required part
  32641. of the syntax.
  32642. When the compiler selects the registers to use to represent the input
  32643. operands, it does not use any of the clobbered registers (*note Clobbers
  32644. and Scratch Registers::).
  32645. If there are no output operands but there are input operands, place two
  32646. consecutive colons where the output operands would go:
  32647. __asm__ ("some instructions"
  32648. : /* No outputs. */
  32649. : "r" (Offset / 8));
  32650. *Warning:* Do _not_ modify the contents of input-only operands (except
  32651. for inputs tied to outputs). The compiler assumes that on exit from the
  32652. 'asm' statement these operands contain the same values as they had
  32653. before executing the statement. It is _not_ possible to use clobbers to
  32654. inform the compiler that the values in these inputs are changing. One
  32655. common work-around is to tie the changing input variable to an output
  32656. variable that never gets used. Note, however, that if the code that
  32657. follows the 'asm' statement makes no use of any of the output operands,
  32658. the GCC optimizers may discard the 'asm' statement as unneeded (see
  32659. *note Volatile::).
  32660. 'asm' supports operand modifiers on operands (for example '%k2' instead
  32661. of simply '%2'). Typically these qualifiers are hardware dependent.
  32662. The list of supported modifiers for x86 is found at *note x86 Operand
  32663. modifiers: x86Operandmodifiers.
  32664. In this example using the fictitious 'combine' instruction, the
  32665. constraint '"0"' for input operand 1 says that it must occupy the same
  32666. location as output operand 0. Only input operands may use numbers in
  32667. constraints, and they must each refer to an output operand. Only a
  32668. number (or the symbolic assembler name) in the constraint can guarantee
  32669. that one operand is in the same place as another. The mere fact that
  32670. 'foo' is the value of both operands is not enough to guarantee that they
  32671. are in the same place in the generated assembler code.
  32672. asm ("combine %2, %0"
  32673. : "=r" (foo)
  32674. : "0" (foo), "g" (bar));
  32675. Here is an example using symbolic names.
  32676. asm ("cmoveq %1, %2, %[result]"
  32677. : [result] "=r"(result)
  32678. : "r" (test), "r" (new), "[result]" (old));
  32679. 6.47.2.6 Clobbers and Scratch Registers
  32680. .......................................
  32681. While the compiler is aware of changes to entries listed in the output
  32682. operands, the inline 'asm' code may modify more than just the outputs.
  32683. For example, calculations may require additional registers, or the
  32684. processor may overwrite a register as a side effect of a particular
  32685. assembler instruction. In order to inform the compiler of these
  32686. changes, list them in the clobber list. Clobber list items are either
  32687. register names or the special clobbers (listed below). Each clobber
  32688. list item is a string constant enclosed in double quotes and separated
  32689. by commas.
  32690. Clobber descriptions may not in any way overlap with an input or output
  32691. operand. For example, you may not have an operand describing a register
  32692. class with one member when listing that register in the clobber list.
  32693. Variables declared to live in specific registers (*note Explicit
  32694. Register Variables::) and used as 'asm' input or output operands must
  32695. have no part mentioned in the clobber description. In particular, there
  32696. is no way to specify that input operands get modified without also
  32697. specifying them as output operands.
  32698. When the compiler selects which registers to use to represent input and
  32699. output operands, it does not use any of the clobbered registers. As a
  32700. result, clobbered registers are available for any use in the assembler
  32701. code.
  32702. Another restriction is that the clobber list should not contain the
  32703. stack pointer register. This is because the compiler requires the value
  32704. of the stack pointer to be the same after an 'asm' statement as it was
  32705. on entry to the statement. However, previous versions of GCC did not
  32706. enforce this rule and allowed the stack pointer to appear in the list,
  32707. with unclear semantics. This behavior is deprecated and listing the
  32708. stack pointer may become an error in future versions of GCC.
  32709. Here is a realistic example for the VAX showing the use of clobbered
  32710. registers:
  32711. asm volatile ("movc3 %0, %1, %2"
  32712. : /* No outputs. */
  32713. : "g" (from), "g" (to), "g" (count)
  32714. : "r0", "r1", "r2", "r3", "r4", "r5", "memory");
  32715. Also, there are two special clobber arguments:
  32716. '"cc"'
  32717. The '"cc"' clobber indicates that the assembler code modifies the
  32718. flags register. On some machines, GCC represents the condition
  32719. codes as a specific hardware register; '"cc"' serves to name this
  32720. register. On other machines, condition code handling is different,
  32721. and specifying '"cc"' has no effect. But it is valid no matter
  32722. what the target.
  32723. '"memory"'
  32724. The '"memory"' clobber tells the compiler that the assembly code
  32725. performs memory reads or writes to items other than those listed in
  32726. the input and output operands (for example, accessing the memory
  32727. pointed to by one of the input parameters). To ensure memory
  32728. contains correct values, GCC may need to flush specific register
  32729. values to memory before executing the 'asm'. Further, the compiler
  32730. does not assume that any values read from memory before an 'asm'
  32731. remain unchanged after that 'asm'; it reloads them as needed.
  32732. Using the '"memory"' clobber effectively forms a read/write memory
  32733. barrier for the compiler.
  32734. Note that this clobber does not prevent the _processor_ from doing
  32735. speculative reads past the 'asm' statement. To prevent that, you
  32736. need processor-specific fence instructions.
  32737. Flushing registers to memory has performance implications and may be an
  32738. issue for time-sensitive code. You can provide better information to
  32739. GCC to avoid this, as shown in the following examples. At a minimum,
  32740. aliasing rules allow GCC to know what memory _doesn't_ need to be
  32741. flushed.
  32742. Here is a fictitious sum of squares instruction, that takes two
  32743. pointers to floating point values in memory and produces a floating
  32744. point register output. Notice that 'x', and 'y' both appear twice in
  32745. the 'asm' parameters, once to specify memory accessed, and once to
  32746. specify a base register used by the 'asm'. You won't normally be
  32747. wasting a register by doing this as GCC can use the same register for
  32748. both purposes. However, it would be foolish to use both '%1' and '%3'
  32749. for 'x' in this 'asm' and expect them to be the same. In fact, '%3' may
  32750. well not be a register. It might be a symbolic memory reference to the
  32751. object pointed to by 'x'.
  32752. asm ("sumsq %0, %1, %2"
  32753. : "+f" (result)
  32754. : "r" (x), "r" (y), "m" (*x), "m" (*y));
  32755. Here is a fictitious '*z++ = *x++ * *y++' instruction. Notice that the
  32756. 'x', 'y' and 'z' pointer registers must be specified as input/output
  32757. because the 'asm' modifies them.
  32758. asm ("vecmul %0, %1, %2"
  32759. : "+r" (z), "+r" (x), "+r" (y), "=m" (*z)
  32760. : "m" (*x), "m" (*y));
  32761. An x86 example where the string memory argument is of unknown length.
  32762. asm("repne scasb"
  32763. : "=c" (count), "+D" (p)
  32764. : "m" (*(const char (*)[]) p), "0" (-1), "a" (0));
  32765. If you know the above will only be reading a ten byte array then you
  32766. could instead use a memory input like: '"m" (*(const char (*)[10]) p)'.
  32767. Here is an example of a PowerPC vector scale implemented in assembly,
  32768. complete with vector and condition code clobbers, and some initialized
  32769. offset registers that are unchanged by the 'asm'.
  32770. void
  32771. dscal (size_t n, double *x, double alpha)
  32772. {
  32773. asm ("/* lots of asm here */"
  32774. : "+m" (*(double (*)[n]) x), "+&r" (n), "+b" (x)
  32775. : "d" (alpha), "b" (32), "b" (48), "b" (64),
  32776. "b" (80), "b" (96), "b" (112)
  32777. : "cr0",
  32778. "vs32","vs33","vs34","vs35","vs36","vs37","vs38","vs39",
  32779. "vs40","vs41","vs42","vs43","vs44","vs45","vs46","vs47");
  32780. }
  32781. Rather than allocating fixed registers via clobbers to provide scratch
  32782. registers for an 'asm' statement, an alternative is to define a variable
  32783. and make it an early-clobber output as with 'a2' and 'a3' in the example
  32784. below. This gives the compiler register allocator more freedom. You
  32785. can also define a variable and make it an output tied to an input as
  32786. with 'a0' and 'a1', tied respectively to 'ap' and 'lda'. Of course,
  32787. with tied outputs your 'asm' can't use the input value after modifying
  32788. the output register since they are one and the same register. What's
  32789. more, if you omit the early-clobber on the output, it is possible that
  32790. GCC might allocate the same register to another of the inputs if GCC
  32791. could prove they had the same value on entry to the 'asm'. This is why
  32792. 'a1' has an early-clobber. Its tied input, 'lda' might conceivably be
  32793. known to have the value 16 and without an early-clobber share the same
  32794. register as '%11'. On the other hand, 'ap' can't be the same as any of
  32795. the other inputs, so an early-clobber on 'a0' is not needed. It is also
  32796. not desirable in this case. An early-clobber on 'a0' would cause GCC to
  32797. allocate a separate register for the '"m" (*(const double (*)[]) ap)'
  32798. input. Note that tying an input to an output is the way to set up an
  32799. initialized temporary register modified by an 'asm' statement. An input
  32800. not tied to an output is assumed by GCC to be unchanged, for example
  32801. '"b" (16)' below sets up '%11' to 16, and GCC might use that register in
  32802. following code if the value 16 happened to be needed. You can even use
  32803. a normal 'asm' output for a scratch if all inputs that might share the
  32804. same register are consumed before the scratch is used. The VSX
  32805. registers clobbered by the 'asm' statement could have used this
  32806. technique except for GCC's limit on the number of 'asm' parameters.
  32807. static void
  32808. dgemv_kernel_4x4 (long n, const double *ap, long lda,
  32809. const double *x, double *y, double alpha)
  32810. {
  32811. double *a0;
  32812. double *a1;
  32813. double *a2;
  32814. double *a3;
  32815. __asm__
  32816. (
  32817. /* lots of asm here */
  32818. "#n=%1 ap=%8=%12 lda=%13 x=%7=%10 y=%0=%2 alpha=%9 o16=%11\n"
  32819. "#a0=%3 a1=%4 a2=%5 a3=%6"
  32820. :
  32821. "+m" (*(double (*)[n]) y),
  32822. "+&r" (n), // 1
  32823. "+b" (y), // 2
  32824. "=b" (a0), // 3
  32825. "=&b" (a1), // 4
  32826. "=&b" (a2), // 5
  32827. "=&b" (a3) // 6
  32828. :
  32829. "m" (*(const double (*)[n]) x),
  32830. "m" (*(const double (*)[]) ap),
  32831. "d" (alpha), // 9
  32832. "r" (x), // 10
  32833. "b" (16), // 11
  32834. "3" (ap), // 12
  32835. "4" (lda) // 13
  32836. :
  32837. "cr0",
  32838. "vs32","vs33","vs34","vs35","vs36","vs37",
  32839. "vs40","vs41","vs42","vs43","vs44","vs45","vs46","vs47"
  32840. );
  32841. }
  32842. 6.47.2.7 Goto Labels
  32843. ....................
  32844. 'asm goto' allows assembly code to jump to one or more C labels. The
  32845. GOTOLABELS section in an 'asm goto' statement contains a comma-separated
  32846. list of all C labels to which the assembler code may jump. GCC assumes
  32847. that 'asm' execution falls through to the next statement (if this is not
  32848. the case, consider using the '__builtin_unreachable' intrinsic after the
  32849. 'asm' statement). Optimization of 'asm goto' may be improved by using
  32850. the 'hot' and 'cold' label attributes (*note Label Attributes::).
  32851. If the assembler code does modify anything, use the '"memory"' clobber
  32852. to force the optimizers to flush all register values to memory and
  32853. reload them if necessary after the 'asm' statement.
  32854. Also note that an 'asm goto' statement is always implicitly considered
  32855. volatile.
  32856. Be careful when you set output operands inside 'asm goto' only on some
  32857. possible control flow paths. If you don't set up the output on given
  32858. path and never use it on this path, it is okay. Otherwise, you should
  32859. use '+' constraint modifier meaning that the operand is input and output
  32860. one. With this modifier you will have the correct values on all
  32861. possible paths from the 'asm goto'.
  32862. To reference a label in the assembler template, prefix it with '%l'
  32863. (lowercase 'L') followed by its (zero-based) position in GOTOLABELS plus
  32864. the number of input and output operands. Output operand with constraint
  32865. modifier '+' is counted as two operands because it is considered as one
  32866. output and one input operand. For example, if the 'asm' has three
  32867. inputs, one output operand with constraint modifier '+' and one output
  32868. operand with constraint modifier '=' and references two labels, refer to
  32869. the first label as '%l6' and the second as '%l7').
  32870. Alternately, you can reference labels using the actual C label name
  32871. enclosed in brackets. For example, to reference a label named 'carry',
  32872. you can use '%l[carry]'. The label must still be listed in the
  32873. GOTOLABELS section when using this approach. It is better to use the
  32874. named references for labels as in this case you can avoid counting input
  32875. and output operands and special treatment of output operands with
  32876. constraint modifier '+'.
  32877. Here is an example of 'asm goto' for i386:
  32878. asm goto (
  32879. "btl %1, %0\n\t"
  32880. "jc %l2"
  32881. : /* No outputs. */
  32882. : "r" (p1), "r" (p2)
  32883. : "cc"
  32884. : carry);
  32885. return 0;
  32886. carry:
  32887. return 1;
  32888. The following example shows an 'asm goto' that uses a memory clobber.
  32889. int frob(int x)
  32890. {
  32891. int y;
  32892. asm goto ("frob %%r5, %1; jc %l[error]; mov (%2), %%r5"
  32893. : /* No outputs. */
  32894. : "r"(x), "r"(&y)
  32895. : "r5", "memory"
  32896. : error);
  32897. return y;
  32898. error:
  32899. return -1;
  32900. }
  32901. The following example shows an 'asm goto' that uses an output.
  32902. int foo(int count)
  32903. {
  32904. asm goto ("dec %0; jb %l[stop]"
  32905. : "+r" (count)
  32906. :
  32907. :
  32908. : stop);
  32909. return count;
  32910. stop:
  32911. return 0;
  32912. }
  32913. The following artificial example shows an 'asm goto' that sets up an
  32914. output only on one path inside the 'asm goto'. Usage of constraint
  32915. modifier '=' instead of '+' would be wrong as 'factor' is used on all
  32916. paths from the 'asm goto'.
  32917. int foo(int inp)
  32918. {
  32919. int factor = 0;
  32920. asm goto ("cmp %1, 10; jb %l[lab]; mov 2, %0"
  32921. : "+r" (factor)
  32922. : "r" (inp)
  32923. :
  32924. : lab);
  32925. lab:
  32926. return inp * factor; /* return 2 * inp or 0 if inp < 10 */
  32927. }
  32928. 6.47.2.8 x86 Operand Modifiers
  32929. ..............................
  32930. References to input, output, and goto operands in the assembler template
  32931. of extended 'asm' statements can use modifiers to affect the way the
  32932. operands are formatted in the code output to the assembler. For
  32933. example, the following code uses the 'h' and 'b' modifiers for x86:
  32934. uint16_t num;
  32935. asm volatile ("xchg %h0, %b0" : "+a" (num) );
  32936. These modifiers generate this assembler code:
  32937. xchg %ah, %al
  32938. The rest of this discussion uses the following code for illustrative
  32939. purposes.
  32940. int main()
  32941. {
  32942. int iInt = 1;
  32943. top:
  32944. asm volatile goto ("some assembler instructions here"
  32945. : /* No outputs. */
  32946. : "q" (iInt), "X" (sizeof(unsigned char) + 1), "i" (42)
  32947. : /* No clobbers. */
  32948. : top);
  32949. }
  32950. With no modifiers, this is what the output from the operands would be
  32951. for the 'att' and 'intel' dialects of assembler:
  32952. Operand 'att' 'intel'
  32953. -----------------------------------
  32954. '%0' '%eax' 'eax'
  32955. '%1' '$2' '2'
  32956. '%3' '$.L3' 'OFFSET
  32957. FLAT:.L3'
  32958. '%4' '$8' '8'
  32959. '%5' '%xmm0''xmm0'
  32960. '%7' '$0' '0'
  32961. The table below shows the list of supported modifiers and their
  32962. effects.
  32963. Modifier Description Operand 'att' 'intel'
  32964. ------------------------------------------------------------------------------------
  32965. 'A' Print an absolute memory reference. '%A0' '*%rax' 'rax'
  32966. 'b' Print the QImode name of the register. '%b0' '%al' 'al'
  32967. 'B' print the opcode suffix of b. '%B0' 'b'
  32968. 'c' Require a constant operand and print the '%c1' '2' '2'
  32969. constant expression with no punctuation.
  32970. 'd' print duplicated register operand for AVX '%d5' '%xmm0, 'xmm0,
  32971. instruction. %xmm0' xmm0'
  32972. 'E' Print the address in Double Integer '%E1' '%(rax)''[rax]'
  32973. (DImode) mode (8 bytes) when the target is
  32974. 64-bit. Otherwise mode is unspecified
  32975. (VOIDmode).
  32976. 'g' Print the V16SFmode name of the register. '%g0' '%zmm0' 'zmm0'
  32977. 'h' Print the QImode name for a "high" '%h0' '%ah' 'ah'
  32978. register.
  32979. 'H' Add 8 bytes to an offsettable memory '%H0' '8(%rax)''8[rax]'
  32980. reference. Useful when accessing the high
  32981. 8 bytes of SSE values. For a memref in
  32982. (%rax), it generates
  32983. 'k' Print the SImode name of the register. '%k0' '%eax' 'eax'
  32984. 'l' Print the label name with no punctuation. '%l3' '.L3' '.L3'
  32985. 'L' print the opcode suffix of l. '%L0' 'l'
  32986. 'N' print maskz. '%N7' '{z}' '{z}'
  32987. 'p' Print raw symbol name (without '%p2' '42' '42'
  32988. syntax-specific prefixes).
  32989. 'P' If used for a function, print the PLT
  32990. suffix and generate PIC code. For
  32991. example, emit 'foo@PLT' instead of 'foo'
  32992. for the function foo(). If used for a
  32993. constant, drop all syntax-specific
  32994. prefixes and issue the bare constant. See
  32995. 'p' above.
  32996. 'q' Print the DImode name of the register. '%q0' '%rax' 'rax'
  32997. 'Q' print the opcode suffix of q. '%Q0' 'q'
  32998. 'R' print embedded rounding and sae. '%R4' '{rn-sae},',
  32999. ' {rn-sae}'
  33000. 'r' print only sae. '%r4' '{sae}, ',
  33001. ' {sae}'
  33002. 's' print a shift double count, followed by '%s1' '$2, '2, '
  33003. the assemblers argument delimiterprint the '
  33004. opcode suffix of s.
  33005. 'S' print the opcode suffix of s. '%S0' 's'
  33006. 't' print the V8SFmode name of the register. '%t5' '%ymm0' 'ymm0'
  33007. 'T' print the opcode suffix of t. '%T0' 't'
  33008. 'V' print naked full integer register name '%V0' 'eax' 'eax'
  33009. without %.
  33010. 'w' Print the HImode name of the register. '%w0' '%ax' 'ax'
  33011. 'W' print the opcode suffix of w. '%W0' 'w'
  33012. 'x' print the V4SFmode name of the register. '%x5' '%xmm0' 'xmm0'
  33013. 'y' print "st(0)" instead of "st" as a '%y6' '%st(0)''st(0)'
  33014. register.
  33015. 'z' Print the opcode suffix for the size of '%z0' 'l'
  33016. the current integer operand (one of
  33017. 'b'/'w'/'l'/'q').
  33018. 'Z' Like 'z', with special suffixes for x87
  33019. instructions.
  33020. 6.47.2.9 x86 Floating-Point 'asm' Operands
  33021. ..........................................
  33022. On x86 targets, there are several rules on the usage of stack-like
  33023. registers in the operands of an 'asm'. These rules apply only to the
  33024. operands that are stack-like registers:
  33025. 1. Given a set of input registers that die in an 'asm', it is
  33026. necessary to know which are implicitly popped by the 'asm', and
  33027. which must be explicitly popped by GCC.
  33028. An input register that is implicitly popped by the 'asm' must be
  33029. explicitly clobbered, unless it is constrained to match an output
  33030. operand.
  33031. 2. For any input register that is implicitly popped by an 'asm', it is
  33032. necessary to know how to adjust the stack to compensate for the
  33033. pop. If any non-popped input is closer to the top of the reg-stack
  33034. than the implicitly popped register, it would not be possible to
  33035. know what the stack looked like--it's not clear how the rest of the
  33036. stack "slides up".
  33037. All implicitly popped input registers must be closer to the top of
  33038. the reg-stack than any input that is not implicitly popped.
  33039. It is possible that if an input dies in an 'asm', the compiler
  33040. might use the input register for an output reload. Consider this
  33041. example:
  33042. asm ("foo" : "=t" (a) : "f" (b));
  33043. This code says that input 'b' is not popped by the 'asm', and that
  33044. the 'asm' pushes a result onto the reg-stack, i.e., the stack is
  33045. one deeper after the 'asm' than it was before. But, it is possible
  33046. that reload may think that it can use the same register for both
  33047. the input and the output.
  33048. To prevent this from happening, if any input operand uses the 'f'
  33049. constraint, all output register constraints must use the '&'
  33050. early-clobber modifier.
  33051. The example above is correctly written as:
  33052. asm ("foo" : "=&t" (a) : "f" (b));
  33053. 3. Some operands need to be in particular places on the stack. All
  33054. output operands fall in this category--GCC has no other way to know
  33055. which registers the outputs appear in unless you indicate this in
  33056. the constraints.
  33057. Output operands must specifically indicate which register an output
  33058. appears in after an 'asm'. '=f' is not allowed: the operand
  33059. constraints must select a class with a single register.
  33060. 4. Output operands may not be "inserted" between existing stack
  33061. registers. Since no 387 opcode uses a read/write operand, all
  33062. output operands are dead before the 'asm', and are pushed by the
  33063. 'asm'. It makes no sense to push anywhere but the top of the
  33064. reg-stack.
  33065. Output operands must start at the top of the reg-stack: output
  33066. operands may not "skip" a register.
  33067. 5. Some 'asm' statements may need extra stack space for internal
  33068. calculations. This can be guaranteed by clobbering stack registers
  33069. unrelated to the inputs and outputs.
  33070. This 'asm' takes one input, which is internally popped, and produces
  33071. two outputs.
  33072. asm ("fsincos" : "=t" (cos), "=u" (sin) : "0" (inp));
  33073. This 'asm' takes two inputs, which are popped by the 'fyl2xp1' opcode,
  33074. and replaces them with one output. The 'st(1)' clobber is necessary for
  33075. the compiler to know that 'fyl2xp1' pops both inputs.
  33076. asm ("fyl2xp1" : "=t" (result) : "0" (x), "u" (y) : "st(1)");
  33077. 6.47.2.10 MSP430 Operand Modifiers
  33078. ..................................
  33079. The list below describes the supported modifiers and their effects for
  33080. MSP430.
  33081. ModifierDescription
  33082. --------------------------------------------------------------------------
  33083. 'A' Select low 16-bits of the constant/register/memory operand.
  33084. 'B' Select high 16-bits of the constant/register/memory operand.
  33085. 'C' Select bits 32-47 of the constant/register/memory operand.
  33086. 'D' Select bits 48-63 of the constant/register/memory operand.
  33087. 'H' Equivalent to 'B' (for backwards compatibility).
  33088. 'I' Print the inverse (logical 'NOT') of the constant value.
  33089. 'J' Print an integer without a '#' prefix.
  33090. 'L' Equivalent to 'A' (for backwards compatibility).
  33091. 'O' Offset of the current frame from the top of the stack.
  33092. 'Q' Use the 'A' instruction postfix.
  33093. 'R' Inverse of condition code, for unsigned comparisons.
  33094. 'W' Subtract 16 from the constant value.
  33095. 'X' Use the 'X' instruction postfix.
  33096. 'Y' Subtract 4 from the constant value.
  33097. 'Z' Subtract 1 from the constant value.
  33098. 'b' Append '.B', '.W' or '.A' to the instruction, depending on the
  33099. mode.
  33100. 'd' Offset 1 byte of a memory reference or constant value.
  33101. 'e' Offset 3 bytes of a memory reference or constant value.
  33102. 'f' Offset 5 bytes of a memory reference or constant value.
  33103. 'g' Offset 7 bytes of a memory reference or constant value.
  33104. 'p' Print the value of 2, raised to the power of the given
  33105. constant. Used to select the specified bit position.
  33106. 'r' Inverse of condition code, for signed comparisons.
  33107. 'x' Equivialent to 'X', but only for pointers.
  33108. 
  33109. File: gcc.info, Node: Constraints, Next: Asm Labels, Prev: Extended Asm, Up: Using Assembly Language with C
  33110. 6.47.3 Constraints for 'asm' Operands
  33111. -------------------------------------
  33112. Here are specific details on what constraint letters you can use with
  33113. 'asm' operands. Constraints can say whether an operand may be in a
  33114. register, and which kinds of register; whether the operand can be a
  33115. memory reference, and which kinds of address; whether the operand may be
  33116. an immediate constant, and which possible values it may have.
  33117. Constraints can also require two operands to match. Side-effects aren't
  33118. allowed in operands of inline 'asm', unless '<' or '>' constraints are
  33119. used, because there is no guarantee that the side effects will happen
  33120. exactly once in an instruction that can update the addressing register.
  33121. * Menu:
  33122. * Simple Constraints:: Basic use of constraints.
  33123. * Multi-Alternative:: When an insn has two alternative constraint-patterns.
  33124. * Modifiers:: More precise control over effects of constraints.
  33125. * Machine Constraints:: Special constraints for some particular machines.
  33126. 
  33127. File: gcc.info, Node: Simple Constraints, Next: Multi-Alternative, Up: Constraints
  33128. 6.47.3.1 Simple Constraints
  33129. ...........................
  33130. The simplest kind of constraint is a string full of letters, each of
  33131. which describes one kind of operand that is permitted. Here are the
  33132. letters that are allowed:
  33133. whitespace
  33134. Whitespace characters are ignored and can be inserted at any
  33135. position except the first. This enables each alternative for
  33136. different operands to be visually aligned in the machine
  33137. description even if they have different number of constraints and
  33138. modifiers.
  33139. 'm'
  33140. A memory operand is allowed, with any kind of address that the
  33141. machine supports in general. Note that the letter used for the
  33142. general memory constraint can be re-defined by a back end using the
  33143. 'TARGET_MEM_CONSTRAINT' macro.
  33144. 'o'
  33145. A memory operand is allowed, but only if the address is
  33146. "offsettable". This means that adding a small integer (actually,
  33147. the width in bytes of the operand, as determined by its machine
  33148. mode) may be added to the address and the result is also a valid
  33149. memory address.
  33150. For example, an address which is constant is offsettable; so is an
  33151. address that is the sum of a register and a constant (as long as a
  33152. slightly larger constant is also within the range of
  33153. address-offsets supported by the machine); but an autoincrement or
  33154. autodecrement address is not offsettable. More complicated
  33155. indirect/indexed addresses may or may not be offsettable depending
  33156. on the other addressing modes that the machine supports.
  33157. Note that in an output operand which can be matched by another
  33158. operand, the constraint letter 'o' is valid only when accompanied
  33159. by both '<' (if the target machine has predecrement addressing) and
  33160. '>' (if the target machine has preincrement addressing).
  33161. 'V'
  33162. A memory operand that is not offsettable. In other words, anything
  33163. that would fit the 'm' constraint but not the 'o' constraint.
  33164. '<'
  33165. A memory operand with autodecrement addressing (either predecrement
  33166. or postdecrement) is allowed. In inline 'asm' this constraint is
  33167. only allowed if the operand is used exactly once in an instruction
  33168. that can handle the side effects. Not using an operand with '<' in
  33169. constraint string in the inline 'asm' pattern at all or using it in
  33170. multiple instructions isn't valid, because the side effects
  33171. wouldn't be performed or would be performed more than once.
  33172. Furthermore, on some targets the operand with '<' in constraint
  33173. string must be accompanied by special instruction suffixes like
  33174. '%U0' instruction suffix on PowerPC or '%P0' on IA-64.
  33175. '>'
  33176. A memory operand with autoincrement addressing (either preincrement
  33177. or postincrement) is allowed. In inline 'asm' the same
  33178. restrictions as for '<' apply.
  33179. 'r'
  33180. A register operand is allowed provided that it is in a general
  33181. register.
  33182. 'i'
  33183. An immediate integer operand (one with constant value) is allowed.
  33184. This includes symbolic constants whose values will be known only at
  33185. assembly time or later.
  33186. 'n'
  33187. An immediate integer operand with a known numeric value is allowed.
  33188. Many systems cannot support assembly-time constants for operands
  33189. less than a word wide. Constraints for these operands should use
  33190. 'n' rather than 'i'.
  33191. 'I', 'J', 'K', ... 'P'
  33192. Other letters in the range 'I' through 'P' may be defined in a
  33193. machine-dependent fashion to permit immediate integer operands with
  33194. explicit integer values in specified ranges. For example, on the
  33195. 68000, 'I' is defined to stand for the range of values 1 to 8.
  33196. This is the range permitted as a shift count in the shift
  33197. instructions.
  33198. 'E'
  33199. An immediate floating operand (expression code 'const_double') is
  33200. allowed, but only if the target floating point format is the same
  33201. as that of the host machine (on which the compiler is running).
  33202. 'F'
  33203. An immediate floating operand (expression code 'const_double' or
  33204. 'const_vector') is allowed.
  33205. 'G', 'H'
  33206. 'G' and 'H' may be defined in a machine-dependent fashion to permit
  33207. immediate floating operands in particular ranges of values.
  33208. 's'
  33209. An immediate integer operand whose value is not an explicit integer
  33210. is allowed.
  33211. This might appear strange; if an insn allows a constant operand
  33212. with a value not known at compile time, it certainly must allow any
  33213. known value. So why use 's' instead of 'i'? Sometimes it allows
  33214. better code to be generated.
  33215. For example, on the 68000 in a fullword instruction it is possible
  33216. to use an immediate operand; but if the immediate value is between
  33217. -128 and 127, better code results from loading the value into a
  33218. register and using the register. This is because the load into the
  33219. register can be done with a 'moveq' instruction. We arrange for
  33220. this to happen by defining the letter 'K' to mean "any integer
  33221. outside the range -128 to 127", and then specifying 'Ks' in the
  33222. operand constraints.
  33223. 'g'
  33224. Any register, memory or immediate integer operand is allowed,
  33225. except for registers that are not general registers.
  33226. 'X'
  33227. Any operand whatsoever is allowed.
  33228. '0', '1', '2', ... '9'
  33229. An operand that matches the specified operand number is allowed.
  33230. If a digit is used together with letters within the same
  33231. alternative, the digit should come last.
  33232. This number is allowed to be more than a single digit. If multiple
  33233. digits are encountered consecutively, they are interpreted as a
  33234. single decimal integer. There is scant chance for ambiguity, since
  33235. to-date it has never been desirable that '10' be interpreted as
  33236. matching either operand 1 _or_ operand 0. Should this be desired,
  33237. one can use multiple alternatives instead.
  33238. This is called a "matching constraint" and what it really means is
  33239. that the assembler has only a single operand that fills two roles
  33240. which 'asm' distinguishes. For example, an add instruction uses
  33241. two input operands and an output operand, but on most CISC machines
  33242. an add instruction really has only two operands, one of them an
  33243. input-output operand:
  33244. addl #35,r12
  33245. Matching constraints are used in these circumstances. More
  33246. precisely, the two operands that match must include one input-only
  33247. operand and one output-only operand. Moreover, the digit must be a
  33248. smaller number than the number of the operand that uses it in the
  33249. constraint.
  33250. 'p'
  33251. An operand that is a valid memory address is allowed. This is for
  33252. "load address" and "push address" instructions.
  33253. 'p' in the constraint must be accompanied by 'address_operand' as
  33254. the predicate in the 'match_operand'. This predicate interprets
  33255. the mode specified in the 'match_operand' as the mode of the memory
  33256. reference for which the address would be valid.
  33257. OTHER-LETTERS
  33258. Other letters can be defined in machine-dependent fashion to stand
  33259. for particular classes of registers or other arbitrary operand
  33260. types. 'd', 'a' and 'f' are defined on the 68000/68020 to stand
  33261. for data, address and floating point registers.
  33262. 
  33263. File: gcc.info, Node: Multi-Alternative, Next: Modifiers, Prev: Simple Constraints, Up: Constraints
  33264. 6.47.3.2 Multiple Alternative Constraints
  33265. .........................................
  33266. Sometimes a single instruction has multiple alternative sets of possible
  33267. operands. For example, on the 68000, a logical-or instruction can
  33268. combine register or an immediate value into memory, or it can combine
  33269. any kind of operand into a register; but it cannot combine one memory
  33270. location into another.
  33271. These constraints are represented as multiple alternatives. An
  33272. alternative can be described by a series of letters for each operand.
  33273. The overall constraint for an operand is made from the letters for this
  33274. operand from the first alternative, a comma, the letters for this
  33275. operand from the second alternative, a comma, and so on until the last
  33276. alternative. All operands for a single instruction must have the same
  33277. number of alternatives.
  33278. So the first alternative for the 68000's logical-or could be written as
  33279. '"+m" (output) : "ir" (input)'. The second could be '"+r" (output):
  33280. "irm" (input)'. However, the fact that two memory locations cannot be
  33281. used in a single instruction prevents simply using '"+rm" (output) :
  33282. "irm" (input)'. Using multi-alternatives, this might be written as
  33283. '"+m,r" (output) : "ir,irm" (input)'. This describes all the available
  33284. alternatives to the compiler, allowing it to choose the most efficient
  33285. one for the current conditions.
  33286. There is no way within the template to determine which alternative was
  33287. chosen. However you may be able to wrap your 'asm' statements with
  33288. builtins such as '__builtin_constant_p' to achieve the desired results.
  33289. 
  33290. File: gcc.info, Node: Modifiers, Next: Machine Constraints, Prev: Multi-Alternative, Up: Constraints
  33291. 6.47.3.3 Constraint Modifier Characters
  33292. .......................................
  33293. Here are constraint modifier characters.
  33294. '='
  33295. Means that this operand is written to by this instruction: the
  33296. previous value is discarded and replaced by new data.
  33297. '+'
  33298. Means that this operand is both read and written by the
  33299. instruction.
  33300. When the compiler fixes up the operands to satisfy the constraints,
  33301. it needs to know which operands are read by the instruction and
  33302. which are written by it. '=' identifies an operand which is only
  33303. written; '+' identifies an operand that is both read and written;
  33304. all other operands are assumed to only be read.
  33305. If you specify '=' or '+' in a constraint, you put it in the first
  33306. character of the constraint string.
  33307. '&'
  33308. Means (in a particular alternative) that this operand is an
  33309. "earlyclobber" operand, which is written before the instruction is
  33310. finished using the input operands. Therefore, this operand may not
  33311. lie in a register that is read by the instruction or as part of any
  33312. memory address.
  33313. '&' applies only to the alternative in which it is written. In
  33314. constraints with multiple alternatives, sometimes one alternative
  33315. requires '&' while others do not. See, for example, the 'movdf'
  33316. insn of the 68000.
  33317. An operand which is read by the instruction can be tied to an
  33318. earlyclobber operand if its only use as an input occurs before the
  33319. early result is written. Adding alternatives of this form often
  33320. allows GCC to produce better code when only some of the read
  33321. operands can be affected by the earlyclobber. See, for example,
  33322. the 'mulsi3' insn of the ARM.
  33323. Furthermore, if the "earlyclobber" operand is also a read/write
  33324. operand, then that operand is written only after it's used.
  33325. '&' does not obviate the need to write '=' or '+'. As
  33326. "earlyclobber" operands are always written, a read-only
  33327. "earlyclobber" operand is ill-formed and will be rejected by the
  33328. compiler.
  33329. '%'
  33330. Declares the instruction to be commutative for this operand and the
  33331. following operand. This means that the compiler may interchange
  33332. the two operands if that is the cheapest way to make all operands
  33333. fit the constraints. '%' applies to all alternatives and must
  33334. appear as the first character in the constraint. Only read-only
  33335. operands can use '%'.
  33336. GCC can only handle one commutative pair in an asm; if you use
  33337. more, the compiler may fail. Note that you need not use the
  33338. modifier if the two alternatives are strictly identical; this would
  33339. only waste time in the reload pass.
  33340. 
  33341. File: gcc.info, Node: Machine Constraints, Prev: Modifiers, Up: Constraints
  33342. 6.47.3.4 Constraints for Particular Machines
  33343. ............................................
  33344. Whenever possible, you should use the general-purpose constraint letters
  33345. in 'asm' arguments, since they will convey meaning more readily to
  33346. people reading your code. Failing that, use the constraint letters that
  33347. usually have very similar meanings across architectures. The most
  33348. commonly used constraints are 'm' and 'r' (for memory and
  33349. general-purpose registers respectively; *note Simple Constraints::), and
  33350. 'I', usually the letter indicating the most common immediate-constant
  33351. format.
  33352. Each architecture defines additional constraints. These constraints
  33353. are used by the compiler itself for instruction generation, as well as
  33354. for 'asm' statements; therefore, some of the constraints are not
  33355. particularly useful for 'asm'. Here is a summary of some of the
  33356. machine-dependent constraints available on some particular machines; it
  33357. includes both constraints that are useful for 'asm' and constraints that
  33358. aren't. The compiler source file mentioned in the table heading for
  33359. each architecture is the definitive reference for the meanings of that
  33360. architecture's constraints.
  33361. _AArch64 family--'config/aarch64/constraints.md'_
  33362. 'k'
  33363. The stack pointer register ('SP')
  33364. 'w'
  33365. Floating point register, Advanced SIMD vector register or SVE
  33366. vector register
  33367. 'x'
  33368. Like 'w', but restricted to registers 0 to 15 inclusive.
  33369. 'y'
  33370. Like 'w', but restricted to registers 0 to 7 inclusive.
  33371. 'Upl'
  33372. One of the low eight SVE predicate registers ('P0' to 'P7')
  33373. 'Upa'
  33374. Any of the SVE predicate registers ('P0' to 'P15')
  33375. 'I'
  33376. Integer constant that is valid as an immediate operand in an
  33377. 'ADD' instruction
  33378. 'J'
  33379. Integer constant that is valid as an immediate operand in a
  33380. 'SUB' instruction (once negated)
  33381. 'K'
  33382. Integer constant that can be used with a 32-bit logical
  33383. instruction
  33384. 'L'
  33385. Integer constant that can be used with a 64-bit logical
  33386. instruction
  33387. 'M'
  33388. Integer constant that is valid as an immediate operand in a
  33389. 32-bit 'MOV' pseudo instruction. The 'MOV' may be assembled
  33390. to one of several different machine instructions depending on
  33391. the value
  33392. 'N'
  33393. Integer constant that is valid as an immediate operand in a
  33394. 64-bit 'MOV' pseudo instruction
  33395. 'S'
  33396. An absolute symbolic address or a label reference
  33397. 'Y'
  33398. Floating point constant zero
  33399. 'Z'
  33400. Integer constant zero
  33401. 'Ush'
  33402. The high part (bits 12 and upwards) of the pc-relative address
  33403. of a symbol within 4GB of the instruction
  33404. 'Q'
  33405. A memory address which uses a single base register with no
  33406. offset
  33407. 'Ump'
  33408. A memory address suitable for a load/store pair instruction in
  33409. SI, DI, SF and DF modes
  33410. _AMD GCN --'config/gcn/constraints.md'_
  33411. 'I'
  33412. Immediate integer in the range -16 to 64
  33413. 'J'
  33414. Immediate 16-bit signed integer
  33415. 'Kf'
  33416. Immediate constant -1
  33417. 'L'
  33418. Immediate 15-bit unsigned integer
  33419. 'A'
  33420. Immediate constant that can be inlined in an instruction
  33421. encoding: integer -16..64, or float 0.0, +/-0.5, +/-1.0,
  33422. +/-2.0, +/-4.0, 1.0/(2.0*PI)
  33423. 'B'
  33424. Immediate 32-bit signed integer that can be attached to an
  33425. instruction encoding
  33426. 'C'
  33427. Immediate 32-bit integer in range -16..4294967295 (i.e.
  33428. 32-bit unsigned integer or 'A' constraint)
  33429. 'DA'
  33430. Immediate 64-bit constant that can be split into two 'A'
  33431. constants
  33432. 'DB'
  33433. Immediate 64-bit constant that can be split into two 'B'
  33434. constants
  33435. 'U'
  33436. Any 'unspec'
  33437. 'Y'
  33438. Any 'symbol_ref' or 'label_ref'
  33439. 'v'
  33440. VGPR register
  33441. 'Sg'
  33442. SGPR register
  33443. 'SD'
  33444. SGPR registers valid for instruction destinations, including
  33445. VCC, M0 and EXEC
  33446. 'SS'
  33447. SGPR registers valid for instruction sources, including VCC,
  33448. M0, EXEC and SCC
  33449. 'Sm'
  33450. SGPR registers valid as a source for scalar memory
  33451. instructions (excludes M0 and EXEC)
  33452. 'Sv'
  33453. SGPR registers valid as a source or destination for vector
  33454. instructions (excludes EXEC)
  33455. 'ca'
  33456. All condition registers: SCC, VCCZ, EXECZ
  33457. 'cs'
  33458. Scalar condition register: SCC
  33459. 'cV'
  33460. Vector condition register: VCC, VCC_LO, VCC_HI
  33461. 'e'
  33462. EXEC register (EXEC_LO and EXEC_HI)
  33463. 'RB'
  33464. Memory operand with address space suitable for 'buffer_*'
  33465. instructions
  33466. 'RF'
  33467. Memory operand with address space suitable for 'flat_*'
  33468. instructions
  33469. 'RS'
  33470. Memory operand with address space suitable for 's_*'
  33471. instructions
  33472. 'RL'
  33473. Memory operand with address space suitable for 'ds_*' LDS
  33474. instructions
  33475. 'RG'
  33476. Memory operand with address space suitable for 'ds_*' GDS
  33477. instructions
  33478. 'RD'
  33479. Memory operand with address space suitable for any 'ds_*'
  33480. instructions
  33481. 'RM'
  33482. Memory operand with address space suitable for 'global_*'
  33483. instructions
  33484. _ARC --'config/arc/constraints.md'_
  33485. 'q'
  33486. Registers usable in ARCompact 16-bit instructions: 'r0'-'r3',
  33487. 'r12'-'r15'. This constraint can only match when the '-mq'
  33488. option is in effect.
  33489. 'e'
  33490. Registers usable as base-regs of memory addresses in ARCompact
  33491. 16-bit memory instructions: 'r0'-'r3', 'r12'-'r15', 'sp'.
  33492. This constraint can only match when the '-mq' option is in
  33493. effect.
  33494. 'D'
  33495. ARC FPX (dpfp) 64-bit registers. 'D0', 'D1'.
  33496. 'I'
  33497. A signed 12-bit integer constant.
  33498. 'Cal'
  33499. constant for arithmetic/logical operations. This might be any
  33500. constant that can be put into a long immediate by the assmbler
  33501. or linker without involving a PIC relocation.
  33502. 'K'
  33503. A 3-bit unsigned integer constant.
  33504. 'L'
  33505. A 6-bit unsigned integer constant.
  33506. 'CnL'
  33507. One's complement of a 6-bit unsigned integer constant.
  33508. 'CmL'
  33509. Two's complement of a 6-bit unsigned integer constant.
  33510. 'M'
  33511. A 5-bit unsigned integer constant.
  33512. 'O'
  33513. A 7-bit unsigned integer constant.
  33514. 'P'
  33515. A 8-bit unsigned integer constant.
  33516. 'H'
  33517. Any const_double value.
  33518. _ARM family--'config/arm/constraints.md'_
  33519. 'h'
  33520. In Thumb state, the core registers 'r8'-'r15'.
  33521. 'k'
  33522. The stack pointer register.
  33523. 'l'
  33524. In Thumb State the core registers 'r0'-'r7'. In ARM state
  33525. this is an alias for the 'r' constraint.
  33526. 't'
  33527. VFP floating-point registers 's0'-'s31'. Used for 32 bit
  33528. values.
  33529. 'w'
  33530. VFP floating-point registers 'd0'-'d31' and the appropriate
  33531. subset 'd0'-'d15' based on command line options. Used for 64
  33532. bit values only. Not valid for Thumb1.
  33533. 'y'
  33534. The iWMMX co-processor registers.
  33535. 'z'
  33536. The iWMMX GR registers.
  33537. 'G'
  33538. The floating-point constant 0.0
  33539. 'I'
  33540. Integer that is valid as an immediate operand in a data
  33541. processing instruction. That is, an integer in the range 0 to
  33542. 255 rotated by a multiple of 2
  33543. 'J'
  33544. Integer in the range -4095 to 4095
  33545. 'K'
  33546. Integer that satisfies constraint 'I' when inverted (ones
  33547. complement)
  33548. 'L'
  33549. Integer that satisfies constraint 'I' when negated (twos
  33550. complement)
  33551. 'M'
  33552. Integer in the range 0 to 32
  33553. 'Q'
  33554. A memory reference where the exact address is in a single
  33555. register (''m'' is preferable for 'asm' statements)
  33556. 'R'
  33557. An item in the constant pool
  33558. 'S'
  33559. A symbol in the text segment of the current file
  33560. 'Uv'
  33561. A memory reference suitable for VFP load/store insns
  33562. (reg+constant offset)
  33563. 'Uy'
  33564. A memory reference suitable for iWMMXt load/store
  33565. instructions.
  33566. 'Uq'
  33567. A memory reference suitable for the ARMv4 ldrsb instruction.
  33568. _AVR family--'config/avr/constraints.md'_
  33569. 'l'
  33570. Registers from r0 to r15
  33571. 'a'
  33572. Registers from r16 to r23
  33573. 'd'
  33574. Registers from r16 to r31
  33575. 'w'
  33576. Registers from r24 to r31. These registers can be used in
  33577. 'adiw' command
  33578. 'e'
  33579. Pointer register (r26-r31)
  33580. 'b'
  33581. Base pointer register (r28-r31)
  33582. 'q'
  33583. Stack pointer register (SPH:SPL)
  33584. 't'
  33585. Temporary register r0
  33586. 'x'
  33587. Register pair X (r27:r26)
  33588. 'y'
  33589. Register pair Y (r29:r28)
  33590. 'z'
  33591. Register pair Z (r31:r30)
  33592. 'I'
  33593. Constant greater than -1, less than 64
  33594. 'J'
  33595. Constant greater than -64, less than 1
  33596. 'K'
  33597. Constant integer 2
  33598. 'L'
  33599. Constant integer 0
  33600. 'M'
  33601. Constant that fits in 8 bits
  33602. 'N'
  33603. Constant integer -1
  33604. 'O'
  33605. Constant integer 8, 16, or 24
  33606. 'P'
  33607. Constant integer 1
  33608. 'G'
  33609. A floating point constant 0.0
  33610. 'Q'
  33611. A memory address based on Y or Z pointer with displacement.
  33612. _Blackfin family--'config/bfin/constraints.md'_
  33613. 'a'
  33614. P register
  33615. 'd'
  33616. D register
  33617. 'z'
  33618. A call clobbered P register.
  33619. 'qN'
  33620. A single register. If N is in the range 0 to 7, the
  33621. corresponding D register. If it is 'A', then the register P0.
  33622. 'D'
  33623. Even-numbered D register
  33624. 'W'
  33625. Odd-numbered D register
  33626. 'e'
  33627. Accumulator register.
  33628. 'A'
  33629. Even-numbered accumulator register.
  33630. 'B'
  33631. Odd-numbered accumulator register.
  33632. 'b'
  33633. I register
  33634. 'v'
  33635. B register
  33636. 'f'
  33637. M register
  33638. 'c'
  33639. Registers used for circular buffering, i.e. I, B, or L
  33640. registers.
  33641. 'C'
  33642. The CC register.
  33643. 't'
  33644. LT0 or LT1.
  33645. 'k'
  33646. LC0 or LC1.
  33647. 'u'
  33648. LB0 or LB1.
  33649. 'x'
  33650. Any D, P, B, M, I or L register.
  33651. 'y'
  33652. Additional registers typically used only in prologues and
  33653. epilogues: RETS, RETN, RETI, RETX, RETE, ASTAT, SEQSTAT and
  33654. USP.
  33655. 'w'
  33656. Any register except accumulators or CC.
  33657. 'Ksh'
  33658. Signed 16 bit integer (in the range -32768 to 32767)
  33659. 'Kuh'
  33660. Unsigned 16 bit integer (in the range 0 to 65535)
  33661. 'Ks7'
  33662. Signed 7 bit integer (in the range -64 to 63)
  33663. 'Ku7'
  33664. Unsigned 7 bit integer (in the range 0 to 127)
  33665. 'Ku5'
  33666. Unsigned 5 bit integer (in the range 0 to 31)
  33667. 'Ks4'
  33668. Signed 4 bit integer (in the range -8 to 7)
  33669. 'Ks3'
  33670. Signed 3 bit integer (in the range -3 to 4)
  33671. 'Ku3'
  33672. Unsigned 3 bit integer (in the range 0 to 7)
  33673. 'PN'
  33674. Constant N, where N is a single-digit constant in the range 0
  33675. to 4.
  33676. 'PA'
  33677. An integer equal to one of the MACFLAG_XXX constants that is
  33678. suitable for use with either accumulator.
  33679. 'PB'
  33680. An integer equal to one of the MACFLAG_XXX constants that is
  33681. suitable for use only with accumulator A1.
  33682. 'M1'
  33683. Constant 255.
  33684. 'M2'
  33685. Constant 65535.
  33686. 'J'
  33687. An integer constant with exactly a single bit set.
  33688. 'L'
  33689. An integer constant with all bits set except exactly one.
  33690. 'H'
  33691. 'Q'
  33692. Any SYMBOL_REF.
  33693. _CR16 Architecture--'config/cr16/cr16.h'_
  33694. 'b'
  33695. Registers from r0 to r14 (registers without stack pointer)
  33696. 't'
  33697. Register from r0 to r11 (all 16-bit registers)
  33698. 'p'
  33699. Register from r12 to r15 (all 32-bit registers)
  33700. 'I'
  33701. Signed constant that fits in 4 bits
  33702. 'J'
  33703. Signed constant that fits in 5 bits
  33704. 'K'
  33705. Signed constant that fits in 6 bits
  33706. 'L'
  33707. Unsigned constant that fits in 4 bits
  33708. 'M'
  33709. Signed constant that fits in 32 bits
  33710. 'N'
  33711. Check for 64 bits wide constants for add/sub instructions
  33712. 'G'
  33713. Floating point constant that is legal for store immediate
  33714. _C-SKY--'config/csky/constraints.md'_
  33715. 'a'
  33716. The mini registers r0 - r7.
  33717. 'b'
  33718. The low registers r0 - r15.
  33719. 'c'
  33720. C register.
  33721. 'y'
  33722. HI and LO registers.
  33723. 'l'
  33724. LO register.
  33725. 'h'
  33726. HI register.
  33727. 'v'
  33728. Vector registers.
  33729. 'z'
  33730. Stack pointer register (SP).
  33731. _Epiphany--'config/epiphany/constraints.md'_
  33732. 'U16'
  33733. An unsigned 16-bit constant.
  33734. 'K'
  33735. An unsigned 5-bit constant.
  33736. 'L'
  33737. A signed 11-bit constant.
  33738. 'Cm1'
  33739. A signed 11-bit constant added to -1. Can only match when the
  33740. '-m1reg-REG' option is active.
  33741. 'Cl1'
  33742. Left-shift of -1, i.e., a bit mask with a block of leading
  33743. ones, the rest being a block of trailing zeroes. Can only
  33744. match when the '-m1reg-REG' option is active.
  33745. 'Cr1'
  33746. Right-shift of -1, i.e., a bit mask with a trailing block of
  33747. ones, the rest being zeroes. Or to put it another way, one
  33748. less than a power of two. Can only match when the
  33749. '-m1reg-REG' option is active.
  33750. 'Cal'
  33751. Constant for arithmetic/logical operations. This is like 'i',
  33752. except that for position independent code, no symbols /
  33753. expressions needing relocations are allowed.
  33754. 'Csy'
  33755. Symbolic constant for call/jump instruction.
  33756. 'Rcs'
  33757. The register class usable in short insns. This is a register
  33758. class constraint, and can thus drive register allocation.
  33759. This constraint won't match unless '-mprefer-short-insn-regs'
  33760. is in effect.
  33761. 'Rsc'
  33762. The the register class of registers that can be used to hold a
  33763. sibcall call address. I.e., a caller-saved register.
  33764. 'Rct'
  33765. Core control register class.
  33766. 'Rgs'
  33767. The register group usable in short insns. This constraint
  33768. does not use a register class, so that it only passively
  33769. matches suitable registers, and doesn't drive register
  33770. allocation.
  33771. 'Rra'
  33772. Matches the return address if it can be replaced with the link
  33773. register.
  33774. 'Rcc'
  33775. Matches the integer condition code register.
  33776. 'Sra'
  33777. Matches the return address if it is in a stack slot.
  33778. 'Cfm'
  33779. Matches control register values to switch fp mode, which are
  33780. encapsulated in 'UNSPEC_FP_MODE'.
  33781. _FRV--'config/frv/frv.h'_
  33782. 'a'
  33783. Register in the class 'ACC_REGS' ('acc0' to 'acc7').
  33784. 'b'
  33785. Register in the class 'EVEN_ACC_REGS' ('acc0' to 'acc7').
  33786. 'c'
  33787. Register in the class 'CC_REGS' ('fcc0' to 'fcc3' and 'icc0'
  33788. to 'icc3').
  33789. 'd'
  33790. Register in the class 'GPR_REGS' ('gr0' to 'gr63').
  33791. 'e'
  33792. Register in the class 'EVEN_REGS' ('gr0' to 'gr63'). Odd
  33793. registers are excluded not in the class but through the use of
  33794. a machine mode larger than 4 bytes.
  33795. 'f'
  33796. Register in the class 'FPR_REGS' ('fr0' to 'fr63').
  33797. 'h'
  33798. Register in the class 'FEVEN_REGS' ('fr0' to 'fr63'). Odd
  33799. registers are excluded not in the class but through the use of
  33800. a machine mode larger than 4 bytes.
  33801. 'l'
  33802. Register in the class 'LR_REG' (the 'lr' register).
  33803. 'q'
  33804. Register in the class 'QUAD_REGS' ('gr2' to 'gr63'). Register
  33805. numbers not divisible by 4 are excluded not in the class but
  33806. through the use of a machine mode larger than 8 bytes.
  33807. 't'
  33808. Register in the class 'ICC_REGS' ('icc0' to 'icc3').
  33809. 'u'
  33810. Register in the class 'FCC_REGS' ('fcc0' to 'fcc3').
  33811. 'v'
  33812. Register in the class 'ICR_REGS' ('cc4' to 'cc7').
  33813. 'w'
  33814. Register in the class 'FCR_REGS' ('cc0' to 'cc3').
  33815. 'x'
  33816. Register in the class 'QUAD_FPR_REGS' ('fr0' to 'fr63').
  33817. Register numbers not divisible by 4 are excluded not in the
  33818. class but through the use of a machine mode larger than 8
  33819. bytes.
  33820. 'z'
  33821. Register in the class 'SPR_REGS' ('lcr' and 'lr').
  33822. 'A'
  33823. Register in the class 'QUAD_ACC_REGS' ('acc0' to 'acc7').
  33824. 'B'
  33825. Register in the class 'ACCG_REGS' ('accg0' to 'accg7').
  33826. 'C'
  33827. Register in the class 'CR_REGS' ('cc0' to 'cc7').
  33828. 'G'
  33829. Floating point constant zero
  33830. 'I'
  33831. 6-bit signed integer constant
  33832. 'J'
  33833. 10-bit signed integer constant
  33834. 'L'
  33835. 16-bit signed integer constant
  33836. 'M'
  33837. 16-bit unsigned integer constant
  33838. 'N'
  33839. 12-bit signed integer constant that is negative--i.e. in the
  33840. range of -2048 to -1
  33841. 'O'
  33842. Constant zero
  33843. 'P'
  33844. 12-bit signed integer constant that is greater than zero--i.e.
  33845. in the range of 1 to 2047.
  33846. _FT32--'config/ft32/constraints.md'_
  33847. 'A'
  33848. An absolute address
  33849. 'B'
  33850. An offset address
  33851. 'W'
  33852. A register indirect memory operand
  33853. 'e'
  33854. An offset address.
  33855. 'f'
  33856. An offset address.
  33857. 'O'
  33858. The constant zero or one
  33859. 'I'
  33860. A 16-bit signed constant (-32768 ... 32767)
  33861. 'w'
  33862. A bitfield mask suitable for bext or bins
  33863. 'x'
  33864. An inverted bitfield mask suitable for bext or bins
  33865. 'L'
  33866. A 16-bit unsigned constant, multiple of 4 (0 ... 65532)
  33867. 'S'
  33868. A 20-bit signed constant (-524288 ... 524287)
  33869. 'b'
  33870. A constant for a bitfield width (1 ... 16)
  33871. 'KA'
  33872. A 10-bit signed constant (-512 ... 511)
  33873. _Hewlett-Packard PA-RISC--'config/pa/pa.h'_
  33874. 'a'
  33875. General register 1
  33876. 'f'
  33877. Floating point register
  33878. 'q'
  33879. Shift amount register
  33880. 'x'
  33881. Floating point register (deprecated)
  33882. 'y'
  33883. Upper floating point register (32-bit), floating point
  33884. register (64-bit)
  33885. 'Z'
  33886. Any register
  33887. 'I'
  33888. Signed 11-bit integer constant
  33889. 'J'
  33890. Signed 14-bit integer constant
  33891. 'K'
  33892. Integer constant that can be deposited with a 'zdepi'
  33893. instruction
  33894. 'L'
  33895. Signed 5-bit integer constant
  33896. 'M'
  33897. Integer constant 0
  33898. 'N'
  33899. Integer constant that can be loaded with a 'ldil' instruction
  33900. 'O'
  33901. Integer constant whose value plus one is a power of 2
  33902. 'P'
  33903. Integer constant that can be used for 'and' operations in
  33904. 'depi' and 'extru' instructions
  33905. 'S'
  33906. Integer constant 31
  33907. 'U'
  33908. Integer constant 63
  33909. 'G'
  33910. Floating-point constant 0.0
  33911. 'A'
  33912. A 'lo_sum' data-linkage-table memory operand
  33913. 'Q'
  33914. A memory operand that can be used as the destination operand
  33915. of an integer store instruction
  33916. 'R'
  33917. A scaled or unscaled indexed memory operand
  33918. 'T'
  33919. A memory operand for floating-point loads and stores
  33920. 'W'
  33921. A register indirect memory operand
  33922. _Intel IA-64--'config/ia64/ia64.h'_
  33923. 'a'
  33924. General register 'r0' to 'r3' for 'addl' instruction
  33925. 'b'
  33926. Branch register
  33927. 'c'
  33928. Predicate register ('c' as in "conditional")
  33929. 'd'
  33930. Application register residing in M-unit
  33931. 'e'
  33932. Application register residing in I-unit
  33933. 'f'
  33934. Floating-point register
  33935. 'm'
  33936. Memory operand. If used together with '<' or '>', the operand
  33937. can have postincrement and postdecrement which require
  33938. printing with '%Pn' on IA-64.
  33939. 'G'
  33940. Floating-point constant 0.0 or 1.0
  33941. 'I'
  33942. 14-bit signed integer constant
  33943. 'J'
  33944. 22-bit signed integer constant
  33945. 'K'
  33946. 8-bit signed integer constant for logical instructions
  33947. 'L'
  33948. 8-bit adjusted signed integer constant for compare pseudo-ops
  33949. 'M'
  33950. 6-bit unsigned integer constant for shift counts
  33951. 'N'
  33952. 9-bit signed integer constant for load and store
  33953. postincrements
  33954. 'O'
  33955. The constant zero
  33956. 'P'
  33957. 0 or -1 for 'dep' instruction
  33958. 'Q'
  33959. Non-volatile memory for floating-point loads and stores
  33960. 'R'
  33961. Integer constant in the range 1 to 4 for 'shladd' instruction
  33962. 'S'
  33963. Memory operand except postincrement and postdecrement. This
  33964. is now roughly the same as 'm' when not used together with '<'
  33965. or '>'.
  33966. _M32C--'config/m32c/m32c.c'_
  33967. 'Rsp'
  33968. 'Rfb'
  33969. 'Rsb'
  33970. '$sp', '$fb', '$sb'.
  33971. 'Rcr'
  33972. Any control register, when they're 16 bits wide (nothing if
  33973. control registers are 24 bits wide)
  33974. 'Rcl'
  33975. Any control register, when they're 24 bits wide.
  33976. 'R0w'
  33977. 'R1w'
  33978. 'R2w'
  33979. 'R3w'
  33980. $r0, $r1, $r2, $r3.
  33981. 'R02'
  33982. $r0 or $r2, or $r2r0 for 32 bit values.
  33983. 'R13'
  33984. $r1 or $r3, or $r3r1 for 32 bit values.
  33985. 'Rdi'
  33986. A register that can hold a 64 bit value.
  33987. 'Rhl'
  33988. $r0 or $r1 (registers with addressable high/low bytes)
  33989. 'R23'
  33990. $r2 or $r3
  33991. 'Raa'
  33992. Address registers
  33993. 'Raw'
  33994. Address registers when they're 16 bits wide.
  33995. 'Ral'
  33996. Address registers when they're 24 bits wide.
  33997. 'Rqi'
  33998. Registers that can hold QI values.
  33999. 'Rad'
  34000. Registers that can be used with displacements ($a0, $a1, $sb).
  34001. 'Rsi'
  34002. Registers that can hold 32 bit values.
  34003. 'Rhi'
  34004. Registers that can hold 16 bit values.
  34005. 'Rhc'
  34006. Registers chat can hold 16 bit values, including all control
  34007. registers.
  34008. 'Rra'
  34009. $r0 through R1, plus $a0 and $a1.
  34010. 'Rfl'
  34011. The flags register.
  34012. 'Rmm'
  34013. The memory-based pseudo-registers $mem0 through $mem15.
  34014. 'Rpi'
  34015. Registers that can hold pointers (16 bit registers for r8c,
  34016. m16c; 24 bit registers for m32cm, m32c).
  34017. 'Rpa'
  34018. Matches multiple registers in a PARALLEL to form a larger
  34019. register. Used to match function return values.
  34020. 'Is3'
  34021. -8 ... 7
  34022. 'IS1'
  34023. -128 ... 127
  34024. 'IS2'
  34025. -32768 ... 32767
  34026. 'IU2'
  34027. 0 ... 65535
  34028. 'In4'
  34029. -8 ... -1 or 1 ... 8
  34030. 'In5'
  34031. -16 ... -1 or 1 ... 16
  34032. 'In6'
  34033. -32 ... -1 or 1 ... 32
  34034. 'IM2'
  34035. -65536 ... -1
  34036. 'Ilb'
  34037. An 8 bit value with exactly one bit set.
  34038. 'Ilw'
  34039. A 16 bit value with exactly one bit set.
  34040. 'Sd'
  34041. The common src/dest memory addressing modes.
  34042. 'Sa'
  34043. Memory addressed using $a0 or $a1.
  34044. 'Si'
  34045. Memory addressed with immediate addresses.
  34046. 'Ss'
  34047. Memory addressed using the stack pointer ($sp).
  34048. 'Sf'
  34049. Memory addressed using the frame base register ($fb).
  34050. 'Ss'
  34051. Memory addressed using the small base register ($sb).
  34052. 'S1'
  34053. $r1h
  34054. _MicroBlaze--'config/microblaze/constraints.md'_
  34055. 'd'
  34056. A general register ('r0' to 'r31').
  34057. 'z'
  34058. A status register ('rmsr', '$fcc1' to '$fcc7').
  34059. _MIPS--'config/mips/constraints.md'_
  34060. 'd'
  34061. A general-purpose register. This is equivalent to 'r' unless
  34062. generating MIPS16 code, in which case the MIPS16 register set
  34063. is used.
  34064. 'f'
  34065. A floating-point register (if available).
  34066. 'h'
  34067. Formerly the 'hi' register. This constraint is no longer
  34068. supported.
  34069. 'l'
  34070. The 'lo' register. Use this register to store values that are
  34071. no bigger than a word.
  34072. 'x'
  34073. The concatenated 'hi' and 'lo' registers. Use this register
  34074. to store doubleword values.
  34075. 'c'
  34076. A register suitable for use in an indirect jump. This will
  34077. always be '$25' for '-mabicalls'.
  34078. 'v'
  34079. Register '$3'. Do not use this constraint in new code; it is
  34080. retained only for compatibility with glibc.
  34081. 'y'
  34082. Equivalent to 'r'; retained for backwards compatibility.
  34083. 'z'
  34084. A floating-point condition code register.
  34085. 'I'
  34086. A signed 16-bit constant (for arithmetic instructions).
  34087. 'J'
  34088. Integer zero.
  34089. 'K'
  34090. An unsigned 16-bit constant (for logic instructions).
  34091. 'L'
  34092. A signed 32-bit constant in which the lower 16 bits are zero.
  34093. Such constants can be loaded using 'lui'.
  34094. 'M'
  34095. A constant that cannot be loaded using 'lui', 'addiu' or
  34096. 'ori'.
  34097. 'N'
  34098. A constant in the range -65535 to -1 (inclusive).
  34099. 'O'
  34100. A signed 15-bit constant.
  34101. 'P'
  34102. A constant in the range 1 to 65535 (inclusive).
  34103. 'G'
  34104. Floating-point zero.
  34105. 'R'
  34106. An address that can be used in a non-macro load or store.
  34107. 'ZC'
  34108. A memory operand whose address is formed by a base register
  34109. and offset that is suitable for use in instructions with the
  34110. same addressing mode as 'll' and 'sc'.
  34111. 'ZD'
  34112. An address suitable for a 'prefetch' instruction, or for any
  34113. other instruction with the same addressing mode as 'prefetch'.
  34114. _Motorola 680x0--'config/m68k/constraints.md'_
  34115. 'a'
  34116. Address register
  34117. 'd'
  34118. Data register
  34119. 'f'
  34120. 68881 floating-point register, if available
  34121. 'I'
  34122. Integer in the range 1 to 8
  34123. 'J'
  34124. 16-bit signed number
  34125. 'K'
  34126. Signed number whose magnitude is greater than 0x80
  34127. 'L'
  34128. Integer in the range -8 to -1
  34129. 'M'
  34130. Signed number whose magnitude is greater than 0x100
  34131. 'N'
  34132. Range 24 to 31, rotatert:SI 8 to 1 expressed as rotate
  34133. 'O'
  34134. 16 (for rotate using swap)
  34135. 'P'
  34136. Range 8 to 15, rotatert:HI 8 to 1 expressed as rotate
  34137. 'R'
  34138. Numbers that mov3q can handle
  34139. 'G'
  34140. Floating point constant that is not a 68881 constant
  34141. 'S'
  34142. Operands that satisfy 'm' when -mpcrel is in effect
  34143. 'T'
  34144. Operands that satisfy 's' when -mpcrel is not in effect
  34145. 'Q'
  34146. Address register indirect addressing mode
  34147. 'U'
  34148. Register offset addressing
  34149. 'W'
  34150. const_call_operand
  34151. 'Cs'
  34152. symbol_ref or const
  34153. 'Ci'
  34154. const_int
  34155. 'C0'
  34156. const_int 0
  34157. 'Cj'
  34158. Range of signed numbers that don't fit in 16 bits
  34159. 'Cmvq'
  34160. Integers valid for mvq
  34161. 'Capsw'
  34162. Integers valid for a moveq followed by a swap
  34163. 'Cmvz'
  34164. Integers valid for mvz
  34165. 'Cmvs'
  34166. Integers valid for mvs
  34167. 'Ap'
  34168. push_operand
  34169. 'Ac'
  34170. Non-register operands allowed in clr
  34171. _Moxie--'config/moxie/constraints.md'_
  34172. 'A'
  34173. An absolute address
  34174. 'B'
  34175. An offset address
  34176. 'W'
  34177. A register indirect memory operand
  34178. 'I'
  34179. A constant in the range of 0 to 255.
  34180. 'N'
  34181. A constant in the range of 0 to -255.
  34182. _MSP430-'config/msp430/constraints.md'_
  34183. 'R12'
  34184. Register R12.
  34185. 'R13'
  34186. Register R13.
  34187. 'K'
  34188. Integer constant 1.
  34189. 'L'
  34190. Integer constant -1^20..1^19.
  34191. 'M'
  34192. Integer constant 1-4.
  34193. 'Ya'
  34194. Memory references which do not require an extended MOVX
  34195. instruction.
  34196. 'Yl'
  34197. Memory reference, labels only.
  34198. 'Ys'
  34199. Memory reference, stack only.
  34200. _NDS32--'config/nds32/constraints.md'_
  34201. 'w'
  34202. LOW register class $r0 to $r7 constraint for V3/V3M ISA.
  34203. 'l'
  34204. LOW register class $r0 to $r7.
  34205. 'd'
  34206. MIDDLE register class $r0 to $r11, $r16 to $r19.
  34207. 'h'
  34208. HIGH register class $r12 to $r14, $r20 to $r31.
  34209. 't'
  34210. Temporary assist register $ta (i.e. $r15).
  34211. 'k'
  34212. Stack register $sp.
  34213. 'Iu03'
  34214. Unsigned immediate 3-bit value.
  34215. 'In03'
  34216. Negative immediate 3-bit value in the range of -7-0.
  34217. 'Iu04'
  34218. Unsigned immediate 4-bit value.
  34219. 'Is05'
  34220. Signed immediate 5-bit value.
  34221. 'Iu05'
  34222. Unsigned immediate 5-bit value.
  34223. 'In05'
  34224. Negative immediate 5-bit value in the range of -31-0.
  34225. 'Ip05'
  34226. Unsigned immediate 5-bit value for movpi45 instruction with
  34227. range 16-47.
  34228. 'Iu06'
  34229. Unsigned immediate 6-bit value constraint for addri36.sp
  34230. instruction.
  34231. 'Iu08'
  34232. Unsigned immediate 8-bit value.
  34233. 'Iu09'
  34234. Unsigned immediate 9-bit value.
  34235. 'Is10'
  34236. Signed immediate 10-bit value.
  34237. 'Is11'
  34238. Signed immediate 11-bit value.
  34239. 'Is15'
  34240. Signed immediate 15-bit value.
  34241. 'Iu15'
  34242. Unsigned immediate 15-bit value.
  34243. 'Ic15'
  34244. A constant which is not in the range of imm15u but ok for bclr
  34245. instruction.
  34246. 'Ie15'
  34247. A constant which is not in the range of imm15u but ok for bset
  34248. instruction.
  34249. 'It15'
  34250. A constant which is not in the range of imm15u but ok for btgl
  34251. instruction.
  34252. 'Ii15'
  34253. A constant whose compliment value is in the range of imm15u
  34254. and ok for bitci instruction.
  34255. 'Is16'
  34256. Signed immediate 16-bit value.
  34257. 'Is17'
  34258. Signed immediate 17-bit value.
  34259. 'Is19'
  34260. Signed immediate 19-bit value.
  34261. 'Is20'
  34262. Signed immediate 20-bit value.
  34263. 'Ihig'
  34264. The immediate value that can be simply set high 20-bit.
  34265. 'Izeb'
  34266. The immediate value 0xff.
  34267. 'Izeh'
  34268. The immediate value 0xffff.
  34269. 'Ixls'
  34270. The immediate value 0x01.
  34271. 'Ix11'
  34272. The immediate value 0x7ff.
  34273. 'Ibms'
  34274. The immediate value with power of 2.
  34275. 'Ifex'
  34276. The immediate value with power of 2 minus 1.
  34277. 'U33'
  34278. Memory constraint for 333 format.
  34279. 'U45'
  34280. Memory constraint for 45 format.
  34281. 'U37'
  34282. Memory constraint for 37 format.
  34283. _Nios II family--'config/nios2/constraints.md'_
  34284. 'I'
  34285. Integer that is valid as an immediate operand in an
  34286. instruction taking a signed 16-bit number. Range -32768 to
  34287. 32767.
  34288. 'J'
  34289. Integer that is valid as an immediate operand in an
  34290. instruction taking an unsigned 16-bit number. Range 0 to
  34291. 65535.
  34292. 'K'
  34293. Integer that is valid as an immediate operand in an
  34294. instruction taking only the upper 16-bits of a 32-bit number.
  34295. Range 32-bit numbers with the lower 16-bits being 0.
  34296. 'L'
  34297. Integer that is valid as an immediate operand for a shift
  34298. instruction. Range 0 to 31.
  34299. 'M'
  34300. Integer that is valid as an immediate operand for only the
  34301. value 0. Can be used in conjunction with the format modifier
  34302. 'z' to use 'r0' instead of '0' in the assembly output.
  34303. 'N'
  34304. Integer that is valid as an immediate operand for a custom
  34305. instruction opcode. Range 0 to 255.
  34306. 'P'
  34307. An immediate operand for R2 andchi/andci instructions.
  34308. 'S'
  34309. Matches immediates which are addresses in the small data
  34310. section and therefore can be added to 'gp' as a 16-bit
  34311. immediate to re-create their 32-bit value.
  34312. 'U'
  34313. Matches constants suitable as an operand for the rdprs and
  34314. cache instructions.
  34315. 'v'
  34316. A memory operand suitable for Nios II R2 load/store exclusive
  34317. instructions.
  34318. 'w'
  34319. A memory operand suitable for load/store IO and cache
  34320. instructions.
  34321. _OpenRISC--'config/or1k/constraints.md'_
  34322. 'I'
  34323. Integer that is valid as an immediate operand in an
  34324. instruction taking a signed 16-bit number. Range -32768 to
  34325. 32767.
  34326. 'K'
  34327. Integer that is valid as an immediate operand in an
  34328. instruction taking an unsigned 16-bit number. Range 0 to
  34329. 65535.
  34330. 'M'
  34331. Signed 16-bit constant shifted left 16 bits. (Used with
  34332. 'l.movhi')
  34333. 'O'
  34334. Zero
  34335. _PDP-11--'config/pdp11/constraints.md'_
  34336. 'a'
  34337. Floating point registers AC0 through AC3. These can be loaded
  34338. from/to memory with a single instruction.
  34339. 'd'
  34340. Odd numbered general registers (R1, R3, R5). These are used
  34341. for 16-bit multiply operations.
  34342. 'D'
  34343. A memory reference that is encoded within the opcode, but not
  34344. auto-increment or auto-decrement.
  34345. 'f'
  34346. Any of the floating point registers (AC0 through AC5).
  34347. 'G'
  34348. Floating point constant 0.
  34349. 'h'
  34350. Floating point registers AC4 and AC5. These cannot be loaded
  34351. from/to memory with a single instruction.
  34352. 'I'
  34353. An integer constant that fits in 16 bits.
  34354. 'J'
  34355. An integer constant whose low order 16 bits are zero.
  34356. 'K'
  34357. An integer constant that does not meet the constraints for
  34358. codes 'I' or 'J'.
  34359. 'L'
  34360. The integer constant 1.
  34361. 'M'
  34362. The integer constant -1.
  34363. 'N'
  34364. The integer constant 0.
  34365. 'O'
  34366. Integer constants 0 through 3; shifts by these amounts are
  34367. handled as multiple single-bit shifts rather than a single
  34368. variable-length shift.
  34369. 'Q'
  34370. A memory reference which requires an additional word (address
  34371. or offset) after the opcode.
  34372. 'R'
  34373. A memory reference that is encoded within the opcode.
  34374. _PowerPC and IBM RS6000--'config/rs6000/constraints.md'_
  34375. 'r'
  34376. A general purpose register (GPR), 'r0'...'r31'.
  34377. 'b'
  34378. A base register. Like 'r', but 'r0' is not allowed, so
  34379. 'r1'...'r31'.
  34380. 'f'
  34381. A floating point register (FPR), 'f0'...'f31'.
  34382. 'd'
  34383. A floating point register. This is the same as 'f' nowadays;
  34384. historically 'f' was for single-precision and 'd' was for
  34385. double-precision floating point.
  34386. 'v'
  34387. An Altivec vector register (VR), 'v0'...'v31'.
  34388. 'wa'
  34389. A VSX register (VSR), 'vs0'...'vs63'. This is either an FPR
  34390. ('vs0'...'vs31' are 'f0'...'f31') or a VR ('vs32'...'vs63' are
  34391. 'v0'...'v31').
  34392. When using 'wa', you should use the '%x' output modifier, so
  34393. that the correct register number is printed. For example:
  34394. asm ("xvadddp %x0,%x1,%x2"
  34395. : "=wa" (v1)
  34396. : "wa" (v2), "wa" (v3));
  34397. You should not use '%x' for 'v' operands:
  34398. asm ("xsaddqp %0,%1,%2"
  34399. : "=v" (v1)
  34400. : "v" (v2), "v" (v3));
  34401. 'c'
  34402. The count register, 'ctr'.
  34403. 'l'
  34404. The link register, 'lr'.
  34405. 'x'
  34406. Condition register field 0, 'cr0'.
  34407. 'y'
  34408. Any condition register field, 'cr0'...'cr7'.
  34409. 'I'
  34410. A signed 16-bit constant.
  34411. 'J'
  34412. An unsigned 16-bit constant shifted left 16 bits (use 'L'
  34413. instead for 'SImode' constants).
  34414. 'K'
  34415. An unsigned 16-bit constant.
  34416. 'L'
  34417. A signed 16-bit constant shifted left 16 bits.
  34418. 'eI'
  34419. A signed 34-bit integer constant if prefixed instructions are
  34420. supported.
  34421. 'm'
  34422. A memory operand. Normally, 'm' does not allow addresses that
  34423. update the base register. If the '<' or '>' constraint is
  34424. also used, they are allowed and therefore on PowerPC targets
  34425. in that case it is only safe to use 'm<>' in an 'asm'
  34426. statement if that 'asm' statement accesses the operand exactly
  34427. once. The 'asm' statement must also use '%U<OPNO>' as a
  34428. placeholder for the "update" flag in the corresponding load or
  34429. store instruction. For example:
  34430. asm ("st%U0 %1,%0" : "=m<>" (mem) : "r" (val));
  34431. is correct but:
  34432. asm ("st %1,%0" : "=m<>" (mem) : "r" (val));
  34433. is not.
  34434. 'Q'
  34435. A memory operand addressed by just a base register.
  34436. 'Z'
  34437. A memory operand accessed with indexed or indirect addressing.
  34438. 'a'
  34439. An indexed or indirect address.
  34440. _PRU--'config/pru/constraints.md'_
  34441. 'I'
  34442. An unsigned 8-bit integer constant.
  34443. 'J'
  34444. An unsigned 16-bit integer constant.
  34445. 'L'
  34446. An unsigned 5-bit integer constant (for shift counts).
  34447. 'T'
  34448. A text segment (program memory) constant label.
  34449. 'Z'
  34450. Integer constant zero.
  34451. _RL78--'config/rl78/constraints.md'_
  34452. 'Int3'
  34453. An integer constant in the range 1 ... 7.
  34454. 'Int8'
  34455. An integer constant in the range 0 ... 255.
  34456. 'J'
  34457. An integer constant in the range -255 ... 0
  34458. 'K'
  34459. The integer constant 1.
  34460. 'L'
  34461. The integer constant -1.
  34462. 'M'
  34463. The integer constant 0.
  34464. 'N'
  34465. The integer constant 2.
  34466. 'O'
  34467. The integer constant -2.
  34468. 'P'
  34469. An integer constant in the range 1 ... 15.
  34470. 'Qbi'
  34471. The built-in compare types-eq, ne, gtu, ltu, geu, and leu.
  34472. 'Qsc'
  34473. The synthetic compare types-gt, lt, ge, and le.
  34474. 'Wab'
  34475. A memory reference with an absolute address.
  34476. 'Wbc'
  34477. A memory reference using 'BC' as a base register, with an
  34478. optional offset.
  34479. 'Wca'
  34480. A memory reference using 'AX', 'BC', 'DE', or 'HL' for the
  34481. address, for calls.
  34482. 'Wcv'
  34483. A memory reference using any 16-bit register pair for the
  34484. address, for calls.
  34485. 'Wd2'
  34486. A memory reference using 'DE' as a base register, with an
  34487. optional offset.
  34488. 'Wde'
  34489. A memory reference using 'DE' as a base register, without any
  34490. offset.
  34491. 'Wfr'
  34492. Any memory reference to an address in the far address space.
  34493. 'Wh1'
  34494. A memory reference using 'HL' as a base register, with an
  34495. optional one-byte offset.
  34496. 'Whb'
  34497. A memory reference using 'HL' as a base register, with 'B' or
  34498. 'C' as the index register.
  34499. 'Whl'
  34500. A memory reference using 'HL' as a base register, without any
  34501. offset.
  34502. 'Ws1'
  34503. A memory reference using 'SP' as a base register, with an
  34504. optional one-byte offset.
  34505. 'Y'
  34506. Any memory reference to an address in the near address space.
  34507. 'A'
  34508. The 'AX' register.
  34509. 'B'
  34510. The 'BC' register.
  34511. 'D'
  34512. The 'DE' register.
  34513. 'R'
  34514. 'A' through 'L' registers.
  34515. 'S'
  34516. The 'SP' register.
  34517. 'T'
  34518. The 'HL' register.
  34519. 'Z08W'
  34520. The 16-bit 'R8' register.
  34521. 'Z10W'
  34522. The 16-bit 'R10' register.
  34523. 'Zint'
  34524. The registers reserved for interrupts ('R24' to 'R31').
  34525. 'a'
  34526. The 'A' register.
  34527. 'b'
  34528. The 'B' register.
  34529. 'c'
  34530. The 'C' register.
  34531. 'd'
  34532. The 'D' register.
  34533. 'e'
  34534. The 'E' register.
  34535. 'h'
  34536. The 'H' register.
  34537. 'l'
  34538. The 'L' register.
  34539. 'v'
  34540. The virtual registers.
  34541. 'w'
  34542. The 'PSW' register.
  34543. 'x'
  34544. The 'X' register.
  34545. _RISC-V--'config/riscv/constraints.md'_
  34546. 'f'
  34547. A floating-point register (if available).
  34548. 'I'
  34549. An I-type 12-bit signed immediate.
  34550. 'J'
  34551. Integer zero.
  34552. 'K'
  34553. A 5-bit unsigned immediate for CSR access instructions.
  34554. 'A'
  34555. An address that is held in a general-purpose register.
  34556. _RX--'config/rx/constraints.md'_
  34557. 'Q'
  34558. An address which does not involve register indirect addressing
  34559. or pre/post increment/decrement addressing.
  34560. 'Symbol'
  34561. A symbol reference.
  34562. 'Int08'
  34563. A constant in the range -256 to 255, inclusive.
  34564. 'Sint08'
  34565. A constant in the range -128 to 127, inclusive.
  34566. 'Sint16'
  34567. A constant in the range -32768 to 32767, inclusive.
  34568. 'Sint24'
  34569. A constant in the range -8388608 to 8388607, inclusive.
  34570. 'Uint04'
  34571. A constant in the range 0 to 15, inclusive.
  34572. _S/390 and zSeries--'config/s390/s390.h'_
  34573. 'a'
  34574. Address register (general purpose register except r0)
  34575. 'c'
  34576. Condition code register
  34577. 'd'
  34578. Data register (arbitrary general purpose register)
  34579. 'f'
  34580. Floating-point register
  34581. 'I'
  34582. Unsigned 8-bit constant (0-255)
  34583. 'J'
  34584. Unsigned 12-bit constant (0-4095)
  34585. 'K'
  34586. Signed 16-bit constant (-32768-32767)
  34587. 'L'
  34588. Value appropriate as displacement.
  34589. '(0..4095)'
  34590. for short displacement
  34591. '(-524288..524287)'
  34592. for long displacement
  34593. 'M'
  34594. Constant integer with a value of 0x7fffffff.
  34595. 'N'
  34596. Multiple letter constraint followed by 4 parameter letters.
  34597. '0..9:'
  34598. number of the part counting from most to least
  34599. significant
  34600. 'H,Q:'
  34601. mode of the part
  34602. 'D,S,H:'
  34603. mode of the containing operand
  34604. '0,F:'
  34605. value of the other parts (F--all bits set)
  34606. The constraint matches if the specified part of a constant has
  34607. a value different from its other parts.
  34608. 'Q'
  34609. Memory reference without index register and with short
  34610. displacement.
  34611. 'R'
  34612. Memory reference with index register and short displacement.
  34613. 'S'
  34614. Memory reference without index register but with long
  34615. displacement.
  34616. 'T'
  34617. Memory reference with index register and long displacement.
  34618. 'U'
  34619. Pointer with short displacement.
  34620. 'W'
  34621. Pointer with long displacement.
  34622. 'Y'
  34623. Shift count operand.
  34624. _SPARC--'config/sparc/sparc.h'_
  34625. 'f'
  34626. Floating-point register on the SPARC-V8 architecture and lower
  34627. floating-point register on the SPARC-V9 architecture.
  34628. 'e'
  34629. Floating-point register. It is equivalent to 'f' on the
  34630. SPARC-V8 architecture and contains both lower and upper
  34631. floating-point registers on the SPARC-V9 architecture.
  34632. 'c'
  34633. Floating-point condition code register.
  34634. 'd'
  34635. Lower floating-point register. It is only valid on the
  34636. SPARC-V9 architecture when the Visual Instruction Set is
  34637. available.
  34638. 'b'
  34639. Floating-point register. It is only valid on the SPARC-V9
  34640. architecture when the Visual Instruction Set is available.
  34641. 'h'
  34642. 64-bit global or out register for the SPARC-V8+ architecture.
  34643. 'C'
  34644. The constant all-ones, for floating-point.
  34645. 'A'
  34646. Signed 5-bit constant
  34647. 'D'
  34648. A vector constant
  34649. 'I'
  34650. Signed 13-bit constant
  34651. 'J'
  34652. Zero
  34653. 'K'
  34654. 32-bit constant with the low 12 bits clear (a constant that
  34655. can be loaded with the 'sethi' instruction)
  34656. 'L'
  34657. A constant in the range supported by 'movcc' instructions
  34658. (11-bit signed immediate)
  34659. 'M'
  34660. A constant in the range supported by 'movrcc' instructions
  34661. (10-bit signed immediate)
  34662. 'N'
  34663. Same as 'K', except that it verifies that bits that are not in
  34664. the lower 32-bit range are all zero. Must be used instead of
  34665. 'K' for modes wider than 'SImode'
  34666. 'O'
  34667. The constant 4096
  34668. 'G'
  34669. Floating-point zero
  34670. 'H'
  34671. Signed 13-bit constant, sign-extended to 32 or 64 bits
  34672. 'P'
  34673. The constant -1
  34674. 'Q'
  34675. Floating-point constant whose integral representation can be
  34676. moved into an integer register using a single sethi
  34677. instruction
  34678. 'R'
  34679. Floating-point constant whose integral representation can be
  34680. moved into an integer register using a single mov instruction
  34681. 'S'
  34682. Floating-point constant whose integral representation can be
  34683. moved into an integer register using a high/lo_sum instruction
  34684. sequence
  34685. 'T'
  34686. Memory address aligned to an 8-byte boundary
  34687. 'U'
  34688. Even register
  34689. 'W'
  34690. Memory address for 'e' constraint registers
  34691. 'w'
  34692. Memory address with only a base register
  34693. 'Y'
  34694. Vector zero
  34695. _TI C6X family--'config/c6x/constraints.md'_
  34696. 'a'
  34697. Register file A (A0-A31).
  34698. 'b'
  34699. Register file B (B0-B31).
  34700. 'A'
  34701. Predicate registers in register file A (A0-A2 on C64X and
  34702. higher, A1 and A2 otherwise).
  34703. 'B'
  34704. Predicate registers in register file B (B0-B2).
  34705. 'C'
  34706. A call-used register in register file B (B0-B9, B16-B31).
  34707. 'Da'
  34708. Register file A, excluding predicate registers (A3-A31, plus
  34709. A0 if not C64X or higher).
  34710. 'Db'
  34711. Register file B, excluding predicate registers (B3-B31).
  34712. 'Iu4'
  34713. Integer constant in the range 0 ... 15.
  34714. 'Iu5'
  34715. Integer constant in the range 0 ... 31.
  34716. 'In5'
  34717. Integer constant in the range -31 ... 0.
  34718. 'Is5'
  34719. Integer constant in the range -16 ... 15.
  34720. 'I5x'
  34721. Integer constant that can be the operand of an ADDA or a SUBA
  34722. insn.
  34723. 'IuB'
  34724. Integer constant in the range 0 ... 65535.
  34725. 'IsB'
  34726. Integer constant in the range -32768 ... 32767.
  34727. 'IsC'
  34728. Integer constant in the range -2^{20} ... 2^{20} - 1.
  34729. 'Jc'
  34730. Integer constant that is a valid mask for the clr instruction.
  34731. 'Js'
  34732. Integer constant that is a valid mask for the set instruction.
  34733. 'Q'
  34734. Memory location with A base register.
  34735. 'R'
  34736. Memory location with B base register.
  34737. 'Z'
  34738. Register B14 (aka DP).
  34739. _TILE-Gx--'config/tilegx/constraints.md'_
  34740. 'R00'
  34741. 'R01'
  34742. 'R02'
  34743. 'R03'
  34744. 'R04'
  34745. 'R05'
  34746. 'R06'
  34747. 'R07'
  34748. 'R08'
  34749. 'R09'
  34750. 'R10'
  34751. Each of these represents a register constraint for an
  34752. individual register, from r0 to r10.
  34753. 'I'
  34754. Signed 8-bit integer constant.
  34755. 'J'
  34756. Signed 16-bit integer constant.
  34757. 'K'
  34758. Unsigned 16-bit integer constant.
  34759. 'L'
  34760. Integer constant that fits in one signed byte when incremented
  34761. by one (-129 ... 126).
  34762. 'm'
  34763. Memory operand. If used together with '<' or '>', the operand
  34764. can have postincrement which requires printing with '%In' and
  34765. '%in' on TILE-Gx. For example:
  34766. asm ("st_add %I0,%1,%i0" : "=m<>" (*mem) : "r" (val));
  34767. 'M'
  34768. A bit mask suitable for the BFINS instruction.
  34769. 'N'
  34770. Integer constant that is a byte tiled out eight times.
  34771. 'O'
  34772. The integer zero constant.
  34773. 'P'
  34774. Integer constant that is a sign-extended byte tiled out as
  34775. four shorts.
  34776. 'Q'
  34777. Integer constant that fits in one signed byte when incremented
  34778. (-129 ... 126), but excluding -1.
  34779. 'S'
  34780. Integer constant that has all 1 bits consecutive and starting
  34781. at bit 0.
  34782. 'T'
  34783. A 16-bit fragment of a got, tls, or pc-relative reference.
  34784. 'U'
  34785. Memory operand except postincrement. This is roughly the same
  34786. as 'm' when not used together with '<' or '>'.
  34787. 'W'
  34788. An 8-element vector constant with identical elements.
  34789. 'Y'
  34790. A 4-element vector constant with identical elements.
  34791. 'Z0'
  34792. The integer constant 0xffffffff.
  34793. 'Z1'
  34794. The integer constant 0xffffffff00000000.
  34795. _TILEPro--'config/tilepro/constraints.md'_
  34796. 'R00'
  34797. 'R01'
  34798. 'R02'
  34799. 'R03'
  34800. 'R04'
  34801. 'R05'
  34802. 'R06'
  34803. 'R07'
  34804. 'R08'
  34805. 'R09'
  34806. 'R10'
  34807. Each of these represents a register constraint for an
  34808. individual register, from r0 to r10.
  34809. 'I'
  34810. Signed 8-bit integer constant.
  34811. 'J'
  34812. Signed 16-bit integer constant.
  34813. 'K'
  34814. Nonzero integer constant with low 16 bits zero.
  34815. 'L'
  34816. Integer constant that fits in one signed byte when incremented
  34817. by one (-129 ... 126).
  34818. 'm'
  34819. Memory operand. If used together with '<' or '>', the operand
  34820. can have postincrement which requires printing with '%In' and
  34821. '%in' on TILEPro. For example:
  34822. asm ("swadd %I0,%1,%i0" : "=m<>" (mem) : "r" (val));
  34823. 'M'
  34824. A bit mask suitable for the MM instruction.
  34825. 'N'
  34826. Integer constant that is a byte tiled out four times.
  34827. 'O'
  34828. The integer zero constant.
  34829. 'P'
  34830. Integer constant that is a sign-extended byte tiled out as two
  34831. shorts.
  34832. 'Q'
  34833. Integer constant that fits in one signed byte when incremented
  34834. (-129 ... 126), but excluding -1.
  34835. 'T'
  34836. A symbolic operand, or a 16-bit fragment of a got, tls, or
  34837. pc-relative reference.
  34838. 'U'
  34839. Memory operand except postincrement. This is roughly the same
  34840. as 'm' when not used together with '<' or '>'.
  34841. 'W'
  34842. A 4-element vector constant with identical elements.
  34843. 'Y'
  34844. A 2-element vector constant with identical elements.
  34845. _Visium--'config/visium/constraints.md'_
  34846. 'b'
  34847. EAM register 'mdb'
  34848. 'c'
  34849. EAM register 'mdc'
  34850. 'f'
  34851. Floating point register
  34852. 'l'
  34853. General register, but not 'r29', 'r30' and 'r31'
  34854. 't'
  34855. Register 'r1'
  34856. 'u'
  34857. Register 'r2'
  34858. 'v'
  34859. Register 'r3'
  34860. 'G'
  34861. Floating-point constant 0.0
  34862. 'J'
  34863. Integer constant in the range 0 .. 65535 (16-bit immediate)
  34864. 'K'
  34865. Integer constant in the range 1 .. 31 (5-bit immediate)
  34866. 'L'
  34867. Integer constant in the range -65535 .. -1 (16-bit negative
  34868. immediate)
  34869. 'M'
  34870. Integer constant -1
  34871. 'O'
  34872. Integer constant 0
  34873. 'P'
  34874. Integer constant 32
  34875. _x86 family--'config/i386/constraints.md'_
  34876. 'R'
  34877. Legacy register--the eight integer registers available on all
  34878. i386 processors ('a', 'b', 'c', 'd', 'si', 'di', 'bp', 'sp').
  34879. 'q'
  34880. Any register accessible as 'Rl'. In 32-bit mode, 'a', 'b',
  34881. 'c', and 'd'; in 64-bit mode, any integer register.
  34882. 'Q'
  34883. Any register accessible as 'Rh': 'a', 'b', 'c', and 'd'.
  34884. 'a'
  34885. The 'a' register.
  34886. 'b'
  34887. The 'b' register.
  34888. 'c'
  34889. The 'c' register.
  34890. 'd'
  34891. The 'd' register.
  34892. 'S'
  34893. The 'si' register.
  34894. 'D'
  34895. The 'di' register.
  34896. 'A'
  34897. The 'a' and 'd' registers. This class is used for
  34898. instructions that return double word results in the 'ax:dx'
  34899. register pair. Single word values will be allocated either in
  34900. 'ax' or 'dx'. For example on i386 the following implements
  34901. 'rdtsc':
  34902. unsigned long long rdtsc (void)
  34903. {
  34904. unsigned long long tick;
  34905. __asm__ __volatile__("rdtsc":"=A"(tick));
  34906. return tick;
  34907. }
  34908. This is not correct on x86-64 as it would allocate tick in
  34909. either 'ax' or 'dx'. You have to use the following variant
  34910. instead:
  34911. unsigned long long rdtsc (void)
  34912. {
  34913. unsigned int tickl, tickh;
  34914. __asm__ __volatile__("rdtsc":"=a"(tickl),"=d"(tickh));
  34915. return ((unsigned long long)tickh << 32)|tickl;
  34916. }
  34917. 'U'
  34918. The call-clobbered integer registers.
  34919. 'f'
  34920. Any 80387 floating-point (stack) register.
  34921. 't'
  34922. Top of 80387 floating-point stack ('%st(0)').
  34923. 'u'
  34924. Second from top of 80387 floating-point stack ('%st(1)').
  34925. 'y'
  34926. Any MMX register.
  34927. 'x'
  34928. Any SSE register.
  34929. 'v'
  34930. Any EVEX encodable SSE register ('%xmm0-%xmm31').
  34931. 'Yz'
  34932. First SSE register ('%xmm0').
  34933. 'I'
  34934. Integer constant in the range 0 ... 31, for 32-bit shifts.
  34935. 'J'
  34936. Integer constant in the range 0 ... 63, for 64-bit shifts.
  34937. 'K'
  34938. Signed 8-bit integer constant.
  34939. 'L'
  34940. '0xFF' or '0xFFFF', for andsi as a zero-extending move.
  34941. 'M'
  34942. 0, 1, 2, or 3 (shifts for the 'lea' instruction).
  34943. 'N'
  34944. Unsigned 8-bit integer constant (for 'in' and 'out'
  34945. instructions).
  34946. 'G'
  34947. Standard 80387 floating point constant.
  34948. 'C'
  34949. SSE constant zero operand.
  34950. 'e'
  34951. 32-bit signed integer constant, or a symbolic reference known
  34952. to fit that range (for immediate operands in sign-extending
  34953. x86-64 instructions).
  34954. 'We'
  34955. 32-bit signed integer constant, or a symbolic reference known
  34956. to fit that range (for sign-extending conversion operations
  34957. that require non-'VOIDmode' immediate operands).
  34958. 'Wz'
  34959. 32-bit unsigned integer constant, or a symbolic reference
  34960. known to fit that range (for zero-extending conversion
  34961. operations that require non-'VOIDmode' immediate operands).
  34962. 'Wd'
  34963. 128-bit integer constant where both the high and low 64-bit
  34964. word satisfy the 'e' constraint.
  34965. 'Z'
  34966. 32-bit unsigned integer constant, or a symbolic reference
  34967. known to fit that range (for immediate operands in
  34968. zero-extending x86-64 instructions).
  34969. 'Tv'
  34970. VSIB address operand.
  34971. 'Ts'
  34972. Address operand without segment register.
  34973. _Xstormy16--'config/stormy16/stormy16.h'_
  34974. 'a'
  34975. Register r0.
  34976. 'b'
  34977. Register r1.
  34978. 'c'
  34979. Register r2.
  34980. 'd'
  34981. Register r8.
  34982. 'e'
  34983. Registers r0 through r7.
  34984. 't'
  34985. Registers r0 and r1.
  34986. 'y'
  34987. The carry register.
  34988. 'z'
  34989. Registers r8 and r9.
  34990. 'I'
  34991. A constant between 0 and 3 inclusive.
  34992. 'J'
  34993. A constant that has exactly one bit set.
  34994. 'K'
  34995. A constant that has exactly one bit clear.
  34996. 'L'
  34997. A constant between 0 and 255 inclusive.
  34998. 'M'
  34999. A constant between -255 and 0 inclusive.
  35000. 'N'
  35001. A constant between -3 and 0 inclusive.
  35002. 'O'
  35003. A constant between 1 and 4 inclusive.
  35004. 'P'
  35005. A constant between -4 and -1 inclusive.
  35006. 'Q'
  35007. A memory reference that is a stack push.
  35008. 'R'
  35009. A memory reference that is a stack pop.
  35010. 'S'
  35011. A memory reference that refers to a constant address of known
  35012. value.
  35013. 'T'
  35014. The register indicated by Rx (not implemented yet).
  35015. 'U'
  35016. A constant that is not between 2 and 15 inclusive.
  35017. 'Z'
  35018. The constant 0.
  35019. _Xtensa--'config/xtensa/constraints.md'_
  35020. 'a'
  35021. General-purpose 32-bit register
  35022. 'b'
  35023. One-bit boolean register
  35024. 'A'
  35025. MAC16 40-bit accumulator register
  35026. 'I'
  35027. Signed 12-bit integer constant, for use in MOVI instructions
  35028. 'J'
  35029. Signed 8-bit integer constant, for use in ADDI instructions
  35030. 'K'
  35031. Integer constant valid for BccI instructions
  35032. 'L'
  35033. Unsigned constant valid for BccUI instructions
  35034. 
  35035. File: gcc.info, Node: Asm Labels, Next: Explicit Register Variables, Prev: Constraints, Up: Using Assembly Language with C
  35036. 6.47.4 Controlling Names Used in Assembler Code
  35037. -----------------------------------------------
  35038. You can specify the name to be used in the assembler code for a C
  35039. function or variable by writing the 'asm' (or '__asm__') keyword after
  35040. the declarator. It is up to you to make sure that the assembler names
  35041. you choose do not conflict with any other assembler symbols, or
  35042. reference registers.
  35043. Assembler names for data:
  35044. .........................
  35045. This sample shows how to specify the assembler name for data:
  35046. int foo asm ("myfoo") = 2;
  35047. This specifies that the name to be used for the variable 'foo' in the
  35048. assembler code should be 'myfoo' rather than the usual '_foo'.
  35049. On systems where an underscore is normally prepended to the name of a C
  35050. variable, this feature allows you to define names for the linker that do
  35051. not start with an underscore.
  35052. GCC does not support using this feature with a non-static local
  35053. variable since such variables do not have assembler names. If you are
  35054. trying to put the variable in a particular register, see *note Explicit
  35055. Register Variables::.
  35056. Assembler names for functions:
  35057. ..............................
  35058. To specify the assembler name for functions, write a declaration for the
  35059. function before its definition and put 'asm' there, like this:
  35060. int func (int x, int y) asm ("MYFUNC");
  35061. int func (int x, int y)
  35062. {
  35063. /* ... */
  35064. This specifies that the name to be used for the function 'func' in the
  35065. assembler code should be 'MYFUNC'.
  35066. 
  35067. File: gcc.info, Node: Explicit Register Variables, Next: Size of an asm, Prev: Asm Labels, Up: Using Assembly Language with C
  35068. 6.47.5 Variables in Specified Registers
  35069. ---------------------------------------
  35070. GNU C allows you to associate specific hardware registers with C
  35071. variables. In almost all cases, allowing the compiler to assign
  35072. registers produces the best code. However under certain unusual
  35073. circumstances, more precise control over the variable storage is
  35074. required.
  35075. Both global and local variables can be associated with a register. The
  35076. consequences of performing this association are very different between
  35077. the two, as explained in the sections below.
  35078. * Menu:
  35079. * Global Register Variables:: Variables declared at global scope.
  35080. * Local Register Variables:: Variables declared within a function.
  35081. 
  35082. File: gcc.info, Node: Global Register Variables, Next: Local Register Variables, Up: Explicit Register Variables
  35083. 6.47.5.1 Defining Global Register Variables
  35084. ...........................................
  35085. You can define a global register variable and associate it with a
  35086. specified register like this:
  35087. register int *foo asm ("r12");
  35088. Here 'r12' is the name of the register that should be used. Note that
  35089. this is the same syntax used for defining local register variables, but
  35090. for a global variable the declaration appears outside a function. The
  35091. 'register' keyword is required, and cannot be combined with 'static'.
  35092. The register name must be a valid register name for the target platform.
  35093. Do not use type qualifiers such as 'const' and 'volatile', as the
  35094. outcome may be contrary to expectations. In particular, using the
  35095. 'volatile' qualifier does not fully prevent the compiler from optimizing
  35096. accesses to the register.
  35097. Registers are a scarce resource on most systems and allowing the
  35098. compiler to manage their usage usually results in the best code.
  35099. However, under special circumstances it can make sense to reserve some
  35100. globally. For example this may be useful in programs such as
  35101. programming language interpreters that have a couple of global variables
  35102. that are accessed very often.
  35103. After defining a global register variable, for the current compilation
  35104. unit:
  35105. * If the register is a call-saved register, call ABI is affected: the
  35106. register will not be restored in function epilogue sequences after
  35107. the variable has been assigned. Therefore, functions cannot safely
  35108. return to callers that assume standard ABI.
  35109. * Conversely, if the register is a call-clobbered register, making
  35110. calls to functions that use standard ABI may lose contents of the
  35111. variable. Such calls may be created by the compiler even if none
  35112. are evident in the original program, for example when libgcc
  35113. functions are used to make up for unavailable instructions.
  35114. * Accesses to the variable may be optimized as usual and the register
  35115. remains available for allocation and use in any computations,
  35116. provided that observable values of the variable are not affected.
  35117. * If the variable is referenced in inline assembly, the type of
  35118. access must be provided to the compiler via constraints (*note
  35119. Constraints::). Accesses from basic asms are not supported.
  35120. Note that these points _only_ apply to code that is compiled with the
  35121. definition. The behavior of code that is merely linked in (for example
  35122. code from libraries) is not affected.
  35123. If you want to recompile source files that do not actually use your
  35124. global register variable so they do not use the specified register for
  35125. any other purpose, you need not actually add the global register
  35126. declaration to their source code. It suffices to specify the compiler
  35127. option '-ffixed-REG' (*note Code Gen Options::) to reserve the register.
  35128. Declaring the variable
  35129. ......................
  35130. Global register variables cannot have initial values, because an
  35131. executable file has no means to supply initial contents for a register.
  35132. When selecting a register, choose one that is normally saved and
  35133. restored by function calls on your machine. This ensures that code
  35134. which is unaware of this reservation (such as library routines) will
  35135. restore it before returning.
  35136. On machines with register windows, be sure to choose a global register
  35137. that is not affected magically by the function call mechanism.
  35138. Using the variable
  35139. ..................
  35140. When calling routines that are not aware of the reservation, be cautious
  35141. if those routines call back into code which uses them. As an example,
  35142. if you call the system library version of 'qsort', it may clobber your
  35143. registers during execution, but (if you have selected appropriate
  35144. registers) it will restore them before returning. However it will _not_
  35145. restore them before calling 'qsort''s comparison function. As a result,
  35146. global values will not reliably be available to the comparison function
  35147. unless the 'qsort' function itself is rebuilt.
  35148. Similarly, it is not safe to access the global register variables from
  35149. signal handlers or from more than one thread of control. Unless you
  35150. recompile them specially for the task at hand, the system library
  35151. routines may temporarily use the register for other things.
  35152. Furthermore, since the register is not reserved exclusively for the
  35153. variable, accessing it from handlers of asynchronous signals may observe
  35154. unrelated temporary values residing in the register.
  35155. On most machines, 'longjmp' restores to each global register variable
  35156. the value it had at the time of the 'setjmp'. On some machines,
  35157. however, 'longjmp' does not change the value of global register
  35158. variables. To be portable, the function that called 'setjmp' should
  35159. make other arrangements to save the values of the global register
  35160. variables, and to restore them in a 'longjmp'. This way, the same thing
  35161. happens regardless of what 'longjmp' does.
  35162. 
  35163. File: gcc.info, Node: Local Register Variables, Prev: Global Register Variables, Up: Explicit Register Variables
  35164. 6.47.5.2 Specifying Registers for Local Variables
  35165. .................................................
  35166. You can define a local register variable and associate it with a
  35167. specified register like this:
  35168. register int *foo asm ("r12");
  35169. Here 'r12' is the name of the register that should be used. Note that
  35170. this is the same syntax used for defining global register variables, but
  35171. for a local variable the declaration appears within a function. The
  35172. 'register' keyword is required, and cannot be combined with 'static'.
  35173. The register name must be a valid register name for the target platform.
  35174. Do not use type qualifiers such as 'const' and 'volatile', as the
  35175. outcome may be contrary to expectations. In particular, when the
  35176. 'const' qualifier is used, the compiler may substitute the variable with
  35177. its initializer in 'asm' statements, which may cause the corresponding
  35178. operand to appear in a different register.
  35179. As with global register variables, it is recommended that you choose a
  35180. register that is normally saved and restored by function calls on your
  35181. machine, so that calls to library routines will not clobber it.
  35182. The only supported use for this feature is to specify registers for
  35183. input and output operands when calling Extended 'asm' (*note Extended
  35184. Asm::). This may be necessary if the constraints for a particular
  35185. machine don't provide sufficient control to select the desired register.
  35186. To force an operand into a register, create a local variable and specify
  35187. the register name after the variable's declaration. Then use the local
  35188. variable for the 'asm' operand and specify any constraint letter that
  35189. matches the register:
  35190. register int *p1 asm ("r0") = ...;
  35191. register int *p2 asm ("r1") = ...;
  35192. register int *result asm ("r0");
  35193. asm ("sysint" : "=r" (result) : "0" (p1), "r" (p2));
  35194. _Warning:_ In the above example, be aware that a register (for example
  35195. 'r0') can be call-clobbered by subsequent code, including function calls
  35196. and library calls for arithmetic operators on other variables (for
  35197. example the initialization of 'p2'). In this case, use temporary
  35198. variables for expressions between the register assignments:
  35199. int t1 = ...;
  35200. register int *p1 asm ("r0") = ...;
  35201. register int *p2 asm ("r1") = t1;
  35202. register int *result asm ("r0");
  35203. asm ("sysint" : "=r" (result) : "0" (p1), "r" (p2));
  35204. Defining a register variable does not reserve the register. Other than
  35205. when invoking the Extended 'asm', the contents of the specified register
  35206. are not guaranteed. For this reason, the following uses are explicitly
  35207. _not_ supported. If they appear to work, it is only happenstance, and
  35208. may stop working as intended due to (seemingly) unrelated changes in
  35209. surrounding code, or even minor changes in the optimization of a future
  35210. version of gcc:
  35211. * Passing parameters to or from Basic 'asm'
  35212. * Passing parameters to or from Extended 'asm' without using input or
  35213. output operands.
  35214. * Passing parameters to or from routines written in assembler (or
  35215. other languages) using non-standard calling conventions.
  35216. Some developers use Local Register Variables in an attempt to improve
  35217. gcc's allocation of registers, especially in large functions. In this
  35218. case the register name is essentially a hint to the register allocator.
  35219. While in some instances this can generate better code, improvements are
  35220. subject to the whims of the allocator/optimizers. Since there are no
  35221. guarantees that your improvements won't be lost, this usage of Local
  35222. Register Variables is discouraged.
  35223. On the MIPS platform, there is related use for local register variables
  35224. with slightly different characteristics (*note Defining coprocessor
  35225. specifics for MIPS targets: (gccint)MIPS Coprocessors.).
  35226. 
  35227. File: gcc.info, Node: Size of an asm, Prev: Explicit Register Variables, Up: Using Assembly Language with C
  35228. 6.47.6 Size of an 'asm'
  35229. -----------------------
  35230. Some targets require that GCC track the size of each instruction used in
  35231. order to generate correct code. Because the final length of the code
  35232. produced by an 'asm' statement is only known by the assembler, GCC must
  35233. make an estimate as to how big it will be. It does this by counting the
  35234. number of instructions in the pattern of the 'asm' and multiplying that
  35235. by the length of the longest instruction supported by that processor.
  35236. (When working out the number of instructions, it assumes that any
  35237. occurrence of a newline or of whatever statement separator character is
  35238. supported by the assembler -- typically ';' -- indicates the end of an
  35239. instruction.)
  35240. Normally, GCC's estimate is adequate to ensure that correct code is
  35241. generated, but it is possible to confuse the compiler if you use pseudo
  35242. instructions or assembler macros that expand into multiple real
  35243. instructions, or if you use assembler directives that expand to more
  35244. space in the object file than is needed for a single instruction. If
  35245. this happens then the assembler may produce a diagnostic saying that a
  35246. label is unreachable.
  35247. This size is also used for inlining decisions. If you use 'asm inline'
  35248. instead of just 'asm', then for inlining purposes the size of the asm is
  35249. taken as the minimum size, ignoring how many instructions GCC thinks it
  35250. is.
  35251. 
  35252. File: gcc.info, Node: Alternate Keywords, Next: Incomplete Enums, Prev: Using Assembly Language with C, Up: C Extensions
  35253. 6.48 Alternate Keywords
  35254. =======================
  35255. '-ansi' and the various '-std' options disable certain keywords. This
  35256. causes trouble when you want to use GNU C extensions, or a
  35257. general-purpose header file that should be usable by all programs,
  35258. including ISO C programs. The keywords 'asm', 'typeof' and 'inline' are
  35259. not available in programs compiled with '-ansi' or '-std' (although
  35260. 'inline' can be used in a program compiled with '-std=c99' or a later
  35261. standard). The ISO C99 keyword 'restrict' is only available when
  35262. '-std=gnu99' (which will eventually be the default) or '-std=c99' (or
  35263. the equivalent '-std=iso9899:1999'), or an option for a later standard
  35264. version, is used.
  35265. The way to solve these problems is to put '__' at the beginning and end
  35266. of each problematical keyword. For example, use '__asm__' instead of
  35267. 'asm', and '__inline__' instead of 'inline'.
  35268. Other C compilers won't accept these alternative keywords; if you want
  35269. to compile with another compiler, you can define the alternate keywords
  35270. as macros to replace them with the customary keywords. It looks like
  35271. this:
  35272. #ifndef __GNUC__
  35273. #define __asm__ asm
  35274. #endif
  35275. '-pedantic' and other options cause warnings for many GNU C extensions.
  35276. You can prevent such warnings within one expression by writing
  35277. '__extension__' before the expression. '__extension__' has no effect
  35278. aside from this.
  35279. 
  35280. File: gcc.info, Node: Incomplete Enums, Next: Function Names, Prev: Alternate Keywords, Up: C Extensions
  35281. 6.49 Incomplete 'enum' Types
  35282. ============================
  35283. You can define an 'enum' tag without specifying its possible values.
  35284. This results in an incomplete type, much like what you get if you write
  35285. 'struct foo' without describing the elements. A later declaration that
  35286. does specify the possible values completes the type.
  35287. You cannot allocate variables or storage using the type while it is
  35288. incomplete. However, you can work with pointers to that type.
  35289. This extension may not be very useful, but it makes the handling of
  35290. 'enum' more consistent with the way 'struct' and 'union' are handled.
  35291. This extension is not supported by GNU C++.
  35292. 
  35293. File: gcc.info, Node: Function Names, Next: Return Address, Prev: Incomplete Enums, Up: C Extensions
  35294. 6.50 Function Names as Strings
  35295. ==============================
  35296. GCC provides three magic constants that hold the name of the current
  35297. function as a string. In C++11 and later modes, all three are treated
  35298. as constant expressions and can be used in 'constexpr' constexts. The
  35299. first of these constants is '__func__', which is part of the C99
  35300. standard:
  35301. The identifier '__func__' is implicitly declared by the translator as
  35302. if, immediately following the opening brace of each function definition,
  35303. the declaration
  35304. static const char __func__[] = "function-name";
  35305. appeared, where function-name is the name of the lexically-enclosing
  35306. function. This name is the unadorned name of the function. As an
  35307. extension, at file (or, in C++, namespace scope), '__func__' evaluates
  35308. to the empty string.
  35309. '__FUNCTION__' is another name for '__func__', provided for backward
  35310. compatibility with old versions of GCC.
  35311. In C, '__PRETTY_FUNCTION__' is yet another name for '__func__', except
  35312. that at file scope (or, in C++, namespace scope), it evaluates to the
  35313. string '"top level"'. In addition, in C++, '__PRETTY_FUNCTION__'
  35314. contains the signature of the function as well as its bare name. For
  35315. example, this program:
  35316. extern "C" int printf (const char *, ...);
  35317. class a {
  35318. public:
  35319. void sub (int i)
  35320. {
  35321. printf ("__FUNCTION__ = %s\n", __FUNCTION__);
  35322. printf ("__PRETTY_FUNCTION__ = %s\n", __PRETTY_FUNCTION__);
  35323. }
  35324. };
  35325. int
  35326. main (void)
  35327. {
  35328. a ax;
  35329. ax.sub (0);
  35330. return 0;
  35331. }
  35332. gives this output:
  35333. __FUNCTION__ = sub
  35334. __PRETTY_FUNCTION__ = void a::sub(int)
  35335. These identifiers are variables, not preprocessor macros, and may not
  35336. be used to initialize 'char' arrays or be concatenated with string
  35337. literals.
  35338. 
  35339. File: gcc.info, Node: Return Address, Next: Vector Extensions, Prev: Function Names, Up: C Extensions
  35340. 6.51 Getting the Return or Frame Address of a Function
  35341. ======================================================
  35342. These functions may be used to get information about the callers of a
  35343. function.
  35344. -- Built-in Function: void * __builtin_return_address (unsigned int
  35345. LEVEL)
  35346. This function returns the return address of the current function,
  35347. or of one of its callers. The LEVEL argument is number of frames
  35348. to scan up the call stack. A value of '0' yields the return
  35349. address of the current function, a value of '1' yields the return
  35350. address of the caller of the current function, and so forth. When
  35351. inlining the expected behavior is that the function returns the
  35352. address of the function that is returned to. To work around this
  35353. behavior use the 'noinline' function attribute.
  35354. The LEVEL argument must be a constant integer.
  35355. On some machines it may be impossible to determine the return
  35356. address of any function other than the current one; in such cases,
  35357. or when the top of the stack has been reached, this function
  35358. returns an unspecified value. In addition,
  35359. '__builtin_frame_address' may be used to determine if the top of
  35360. the stack has been reached.
  35361. Additional post-processing of the returned value may be needed, see
  35362. '__builtin_extract_return_addr'.
  35363. The stored representation of the return address in memory may be
  35364. different from the address returned by '__builtin_return_address'.
  35365. For example, on AArch64 the stored address may be mangled with
  35366. return address signing whereas the address returned by
  35367. '__builtin_return_address' is not.
  35368. Calling this function with a nonzero argument can have
  35369. unpredictable effects, including crashing the calling program. As
  35370. a result, calls that are considered unsafe are diagnosed when the
  35371. '-Wframe-address' option is in effect. Such calls should only be
  35372. made in debugging situations.
  35373. On targets where code addresses are representable as 'void *',
  35374. void *addr = __builtin_extract_return_addr (__builtin_return_address (0));
  35375. gives the code address where the current function would return.
  35376. For example, such an address may be used with 'dladdr' or other
  35377. interfaces that work with code addresses.
  35378. -- Built-in Function: void * __builtin_extract_return_addr (void *ADDR)
  35379. The address as returned by '__builtin_return_address' may have to
  35380. be fed through this function to get the actual encoded address.
  35381. For example, on the 31-bit S/390 platform the highest bit has to be
  35382. masked out, or on SPARC platforms an offset has to be added for the
  35383. true next instruction to be executed.
  35384. If no fixup is needed, this function simply passes through ADDR.
  35385. -- Built-in Function: void * __builtin_frob_return_addr (void *ADDR)
  35386. This function does the reverse of '__builtin_extract_return_addr'.
  35387. -- Built-in Function: void * __builtin_frame_address (unsigned int
  35388. LEVEL)
  35389. This function is similar to '__builtin_return_address', but it
  35390. returns the address of the function frame rather than the return
  35391. address of the function. Calling '__builtin_frame_address' with a
  35392. value of '0' yields the frame address of the current function, a
  35393. value of '1' yields the frame address of the caller of the current
  35394. function, and so forth.
  35395. The frame is the area on the stack that holds local variables and
  35396. saved registers. The frame address is normally the address of the
  35397. first word pushed on to the stack by the function. However, the
  35398. exact definition depends upon the processor and the calling
  35399. convention. If the processor has a dedicated frame pointer
  35400. register, and the function has a frame, then
  35401. '__builtin_frame_address' returns the value of the frame pointer
  35402. register.
  35403. On some machines it may be impossible to determine the frame
  35404. address of any function other than the current one; in such cases,
  35405. or when the top of the stack has been reached, this function
  35406. returns '0' if the first frame pointer is properly initialized by
  35407. the startup code.
  35408. Calling this function with a nonzero argument can have
  35409. unpredictable effects, including crashing the calling program. As
  35410. a result, calls that are considered unsafe are diagnosed when the
  35411. '-Wframe-address' option is in effect. Such calls should only be
  35412. made in debugging situations.
  35413. 
  35414. File: gcc.info, Node: Vector Extensions, Next: Offsetof, Prev: Return Address, Up: C Extensions
  35415. 6.52 Using Vector Instructions through Built-in Functions
  35416. =========================================================
  35417. On some targets, the instruction set contains SIMD vector instructions
  35418. which operate on multiple values contained in one large register at the
  35419. same time. For example, on the x86 the MMX, 3DNow! and SSE extensions
  35420. can be used this way.
  35421. The first step in using these extensions is to provide the necessary
  35422. data types. This should be done using an appropriate 'typedef':
  35423. typedef int v4si __attribute__ ((vector_size (16)));
  35424. The 'int' type specifies the "base type", while the attribute specifies
  35425. the vector size for the variable, measured in bytes. For example, the
  35426. declaration above causes the compiler to set the mode for the 'v4si'
  35427. type to be 16 bytes wide and divided into 'int' sized units. For a
  35428. 32-bit 'int' this means a vector of 4 units of 4 bytes, and the
  35429. corresponding mode of 'foo' is V4SI.
  35430. The 'vector_size' attribute is only applicable to integral and floating
  35431. scalars, although arrays, pointers, and function return values are
  35432. allowed in conjunction with this construct. Only sizes that are
  35433. positive power-of-two multiples of the base type size are currently
  35434. allowed.
  35435. All the basic integer types can be used as base types, both as signed
  35436. and as unsigned: 'char', 'short', 'int', 'long', 'long long'. In
  35437. addition, 'float' and 'double' can be used to build floating-point
  35438. vector types.
  35439. Specifying a combination that is not valid for the current architecture
  35440. causes GCC to synthesize the instructions using a narrower mode. For
  35441. example, if you specify a variable of type 'V4SI' and your architecture
  35442. does not allow for this specific SIMD type, GCC produces code that uses
  35443. 4 'SIs'.
  35444. The types defined in this manner can be used with a subset of normal C
  35445. operations. Currently, GCC allows using the following operators on
  35446. these types: '+, -, *, /, unary minus, ^, |, &, ~, %'.
  35447. The operations behave like C++ 'valarrays'. Addition is defined as the
  35448. addition of the corresponding elements of the operands. For example, in
  35449. the code below, each of the 4 elements in A is added to the
  35450. corresponding 4 elements in B and the resulting vector is stored in C.
  35451. typedef int v4si __attribute__ ((vector_size (16)));
  35452. v4si a, b, c;
  35453. c = a + b;
  35454. Subtraction, multiplication, division, and the logical operations
  35455. operate in a similar manner. Likewise, the result of using the unary
  35456. minus or complement operators on a vector type is a vector whose
  35457. elements are the negative or complemented values of the corresponding
  35458. elements in the operand.
  35459. It is possible to use shifting operators '<<', '>>' on integer-type
  35460. vectors. The operation is defined as following: '{a0, a1, ..., an} >>
  35461. {b0, b1, ..., bn} == {a0 >> b0, a1 >> b1, ..., an >> bn}'. Vector
  35462. operands must have the same number of elements.
  35463. For convenience, it is allowed to use a binary vector operation where
  35464. one operand is a scalar. In that case the compiler transforms the
  35465. scalar operand into a vector where each element is the scalar from the
  35466. operation. The transformation happens only if the scalar could be
  35467. safely converted to the vector-element type. Consider the following
  35468. code.
  35469. typedef int v4si __attribute__ ((vector_size (16)));
  35470. v4si a, b, c;
  35471. long l;
  35472. a = b + 1; /* a = b + {1,1,1,1}; */
  35473. a = 2 * b; /* a = {2,2,2,2} * b; */
  35474. a = l + a; /* Error, cannot convert long to int. */
  35475. Vectors can be subscripted as if the vector were an array with the same
  35476. number of elements and base type. Out of bound accesses invoke
  35477. undefined behavior at run time. Warnings for out of bound accesses for
  35478. vector subscription can be enabled with '-Warray-bounds'.
  35479. Vector comparison is supported with standard comparison operators: '==,
  35480. !=, <, <=, >, >='. Comparison operands can be vector expressions of
  35481. integer-type or real-type. Comparison between integer-type vectors and
  35482. real-type vectors are not supported. The result of the comparison is a
  35483. vector of the same width and number of elements as the comparison
  35484. operands with a signed integral element type.
  35485. Vectors are compared element-wise producing 0 when comparison is false
  35486. and -1 (constant of the appropriate type where all bits are set)
  35487. otherwise. Consider the following example.
  35488. typedef int v4si __attribute__ ((vector_size (16)));
  35489. v4si a = {1,2,3,4};
  35490. v4si b = {3,2,1,4};
  35491. v4si c;
  35492. c = a > b; /* The result would be {0, 0,-1, 0} */
  35493. c = a == b; /* The result would be {0,-1, 0,-1} */
  35494. In C++, the ternary operator '?:' is available. 'a?b:c', where 'b' and
  35495. 'c' are vectors of the same type and 'a' is an integer vector with the
  35496. same number of elements of the same size as 'b' and 'c', computes all
  35497. three arguments and creates a vector '{a[0]?b[0]:c[0], a[1]?b[1]:c[1],
  35498. ...}'. Note that unlike in OpenCL, 'a' is thus interpreted as 'a != 0'
  35499. and not 'a < 0'. As in the case of binary operations, this syntax is
  35500. also accepted when one of 'b' or 'c' is a scalar that is then
  35501. transformed into a vector. If both 'b' and 'c' are scalars and the type
  35502. of 'true?b:c' has the same size as the element type of 'a', then 'b' and
  35503. 'c' are converted to a vector type whose elements have this type and
  35504. with the same number of elements as 'a'.
  35505. In C++, the logic operators '!, &&, ||' are available for vectors.
  35506. '!v' is equivalent to 'v == 0', 'a && b' is equivalent to 'a!=0 & b!=0'
  35507. and 'a || b' is equivalent to 'a!=0 | b!=0'. For mixed operations
  35508. between a scalar 's' and a vector 'v', 's && v' is equivalent to
  35509. 's?v!=0:0' (the evaluation is short-circuit) and 'v && s' is equivalent
  35510. to 'v!=0 & (s?-1:0)'.
  35511. Vector shuffling is available using functions '__builtin_shuffle (vec,
  35512. mask)' and '__builtin_shuffle (vec0, vec1, mask)'. Both functions
  35513. construct a permutation of elements from one or two vectors and return a
  35514. vector of the same type as the input vector(s). The MASK is an integral
  35515. vector with the same width (W) and element count (N) as the output
  35516. vector.
  35517. The elements of the input vectors are numbered in memory ordering of
  35518. VEC0 beginning at 0 and VEC1 beginning at N. The elements of MASK are
  35519. considered modulo N in the single-operand case and modulo 2*N in the
  35520. two-operand case.
  35521. Consider the following example,
  35522. typedef int v4si __attribute__ ((vector_size (16)));
  35523. v4si a = {1,2,3,4};
  35524. v4si b = {5,6,7,8};
  35525. v4si mask1 = {0,1,1,3};
  35526. v4si mask2 = {0,4,2,5};
  35527. v4si res;
  35528. res = __builtin_shuffle (a, mask1); /* res is {1,2,2,4} */
  35529. res = __builtin_shuffle (a, b, mask2); /* res is {1,5,3,6} */
  35530. Note that '__builtin_shuffle' is intentionally semantically compatible
  35531. with the OpenCL 'shuffle' and 'shuffle2' functions.
  35532. You can declare variables and use them in function calls and returns,
  35533. as well as in assignments and some casts. You can specify a vector type
  35534. as a return type for a function. Vector types can also be used as
  35535. function arguments. It is possible to cast from one vector type to
  35536. another, provided they are of the same size (in fact, you can also cast
  35537. vectors to and from other datatypes of the same size).
  35538. You cannot operate between vectors of different lengths or different
  35539. signedness without a cast.
  35540. Vector conversion is available using the '__builtin_convertvector (vec,
  35541. vectype)' function. VEC must be an expression with integral or floating
  35542. vector type and VECTYPE an integral or floating vector type with the
  35543. same number of elements. The result has VECTYPE type and value of a C
  35544. cast of every element of VEC to the element type of VECTYPE.
  35545. Consider the following example,
  35546. typedef int v4si __attribute__ ((vector_size (16)));
  35547. typedef float v4sf __attribute__ ((vector_size (16)));
  35548. typedef double v4df __attribute__ ((vector_size (32)));
  35549. typedef unsigned long long v4di __attribute__ ((vector_size (32)));
  35550. v4si a = {1,-2,3,-4};
  35551. v4sf b = {1.5f,-2.5f,3.f,7.f};
  35552. v4di c = {1ULL,5ULL,0ULL,10ULL};
  35553. v4sf d = __builtin_convertvector (a, v4sf); /* d is {1.f,-2.f,3.f,-4.f} */
  35554. /* Equivalent of:
  35555. v4sf d = { (float)a[0], (float)a[1], (float)a[2], (float)a[3] }; */
  35556. v4df e = __builtin_convertvector (a, v4df); /* e is {1.,-2.,3.,-4.} */
  35557. v4df f = __builtin_convertvector (b, v4df); /* f is {1.5,-2.5,3.,7.} */
  35558. v4si g = __builtin_convertvector (f, v4si); /* g is {1,-2,3,7} */
  35559. v4si h = __builtin_convertvector (c, v4si); /* h is {1,5,0,10} */
  35560. Sometimes it is desirable to write code using a mix of generic vector
  35561. operations (for clarity) and machine-specific vector intrinsics (to
  35562. access vector instructions that are not exposed via generic built-ins).
  35563. On x86, intrinsic functions for integer vectors typically use the same
  35564. vector type '__m128i' irrespective of how they interpret the vector,
  35565. making it necessary to cast their arguments and return values from/to
  35566. other vector types. In C, you can make use of a 'union' type:
  35567. #include <immintrin.h>
  35568. typedef unsigned char u8x16 __attribute__ ((vector_size (16)));
  35569. typedef unsigned int u32x4 __attribute__ ((vector_size (16)));
  35570. typedef union {
  35571. __m128i mm;
  35572. u8x16 u8;
  35573. u32x4 u32;
  35574. } v128;
  35575. for variables that can be used with both built-in operators and x86
  35576. intrinsics:
  35577. v128 x, y = { 0 };
  35578. memcpy (&x, ptr, sizeof x);
  35579. y.u8 += 0x80;
  35580. x.mm = _mm_adds_epu8 (x.mm, y.mm);
  35581. x.u32 &= 0xffffff;
  35582. /* Instead of a variable, a compound literal may be used to pass the
  35583. return value of an intrinsic call to a function expecting the union: */
  35584. v128 foo (v128);
  35585. x = foo ((v128) {_mm_adds_epu8 (x.mm, y.mm)});
  35586. 
  35587. File: gcc.info, Node: Offsetof, Next: __sync Builtins, Prev: Vector Extensions, Up: C Extensions
  35588. 6.53 Support for 'offsetof'
  35589. ===========================
  35590. GCC implements for both C and C++ a syntactic extension to implement the
  35591. 'offsetof' macro.
  35592. primary:
  35593. "__builtin_offsetof" "(" typename "," offsetof_member_designator ")"
  35594. offsetof_member_designator:
  35595. identifier
  35596. | offsetof_member_designator "." identifier
  35597. | offsetof_member_designator "[" expr "]"
  35598. This extension is sufficient such that
  35599. #define offsetof(TYPE, MEMBER) __builtin_offsetof (TYPE, MEMBER)
  35600. is a suitable definition of the 'offsetof' macro. In C++, TYPE may be
  35601. dependent. In either case, MEMBER may consist of a single identifier,
  35602. or a sequence of member accesses and array references.
  35603. 
  35604. File: gcc.info, Node: __sync Builtins, Next: __atomic Builtins, Prev: Offsetof, Up: C Extensions
  35605. 6.54 Legacy '__sync' Built-in Functions for Atomic Memory Access
  35606. ================================================================
  35607. The following built-in functions are intended to be compatible with
  35608. those described in the 'Intel Itanium Processor-specific Application
  35609. Binary Interface', section 7.4. As such, they depart from normal GCC
  35610. practice by not using the '__builtin_' prefix and also by being
  35611. overloaded so that they work on multiple types.
  35612. The definition given in the Intel documentation allows only for the use
  35613. of the types 'int', 'long', 'long long' or their unsigned counterparts.
  35614. GCC allows any scalar type that is 1, 2, 4 or 8 bytes in size other than
  35615. the C type '_Bool' or the C++ type 'bool'. Operations on pointer
  35616. arguments are performed as if the operands were of the 'uintptr_t' type.
  35617. That is, they are not scaled by the size of the type to which the
  35618. pointer points.
  35619. These functions are implemented in terms of the '__atomic' builtins
  35620. (*note __atomic Builtins::). They should not be used for new code which
  35621. should use the '__atomic' builtins instead.
  35622. Not all operations are supported by all target processors. If a
  35623. particular operation cannot be implemented on the target processor, a
  35624. warning is generated and a call to an external function is generated.
  35625. The external function carries the same name as the built-in version,
  35626. with an additional suffix '_N' where N is the size of the data type.
  35627. In most cases, these built-in functions are considered a "full
  35628. barrier". That is, no memory operand is moved across the operation,
  35629. either forward or backward. Further, instructions are issued as
  35630. necessary to prevent the processor from speculating loads across the
  35631. operation and from queuing stores after the operation.
  35632. All of the routines are described in the Intel documentation to take
  35633. "an optional list of variables protected by the memory barrier". It's
  35634. not clear what is meant by that; it could mean that _only_ the listed
  35635. variables are protected, or it could mean a list of additional variables
  35636. to be protected. The list is ignored by GCC which treats it as empty.
  35637. GCC interprets an empty list as meaning that all globally accessible
  35638. variables should be protected.
  35639. 'TYPE __sync_fetch_and_add (TYPE *ptr, TYPE value, ...)'
  35640. 'TYPE __sync_fetch_and_sub (TYPE *ptr, TYPE value, ...)'
  35641. 'TYPE __sync_fetch_and_or (TYPE *ptr, TYPE value, ...)'
  35642. 'TYPE __sync_fetch_and_and (TYPE *ptr, TYPE value, ...)'
  35643. 'TYPE __sync_fetch_and_xor (TYPE *ptr, TYPE value, ...)'
  35644. 'TYPE __sync_fetch_and_nand (TYPE *ptr, TYPE value, ...)'
  35645. These built-in functions perform the operation suggested by the
  35646. name, and returns the value that had previously been in memory.
  35647. That is, operations on integer operands have the following
  35648. semantics. Operations on pointer arguments are performed as if the
  35649. operands were of the 'uintptr_t' type. That is, they are not
  35650. scaled by the size of the type to which the pointer points.
  35651. { tmp = *ptr; *ptr OP= value; return tmp; }
  35652. { tmp = *ptr; *ptr = ~(tmp & value); return tmp; } // nand
  35653. The object pointed to by the first argument must be of integer or
  35654. pointer type. It must not be a boolean type.
  35655. _Note:_ GCC 4.4 and later implement '__sync_fetch_and_nand' as
  35656. '*ptr = ~(tmp & value)' instead of '*ptr = ~tmp & value'.
  35657. 'TYPE __sync_add_and_fetch (TYPE *ptr, TYPE value, ...)'
  35658. 'TYPE __sync_sub_and_fetch (TYPE *ptr, TYPE value, ...)'
  35659. 'TYPE __sync_or_and_fetch (TYPE *ptr, TYPE value, ...)'
  35660. 'TYPE __sync_and_and_fetch (TYPE *ptr, TYPE value, ...)'
  35661. 'TYPE __sync_xor_and_fetch (TYPE *ptr, TYPE value, ...)'
  35662. 'TYPE __sync_nand_and_fetch (TYPE *ptr, TYPE value, ...)'
  35663. These built-in functions perform the operation suggested by the
  35664. name, and return the new value. That is, operations on integer
  35665. operands have the following semantics. Operations on pointer
  35666. operands are performed as if the operand's type were 'uintptr_t'.
  35667. { *ptr OP= value; return *ptr; }
  35668. { *ptr = ~(*ptr & value); return *ptr; } // nand
  35669. The same constraints on arguments apply as for the corresponding
  35670. '__sync_op_and_fetch' built-in functions.
  35671. _Note:_ GCC 4.4 and later implement '__sync_nand_and_fetch' as
  35672. '*ptr = ~(*ptr & value)' instead of '*ptr = ~*ptr & value'.
  35673. 'bool __sync_bool_compare_and_swap (TYPE *ptr, TYPE oldval, TYPE newval, ...)'
  35674. 'TYPE __sync_val_compare_and_swap (TYPE *ptr, TYPE oldval, TYPE newval, ...)'
  35675. These built-in functions perform an atomic compare and swap. That
  35676. is, if the current value of '*PTR' is OLDVAL, then write NEWVAL
  35677. into '*PTR'.
  35678. The "bool" version returns 'true' if the comparison is successful
  35679. and NEWVAL is written. The "val" version returns the contents of
  35680. '*PTR' before the operation.
  35681. '__sync_synchronize (...)'
  35682. This built-in function issues a full memory barrier.
  35683. 'TYPE __sync_lock_test_and_set (TYPE *ptr, TYPE value, ...)'
  35684. This built-in function, as described by Intel, is not a traditional
  35685. test-and-set operation, but rather an atomic exchange operation.
  35686. It writes VALUE into '*PTR', and returns the previous contents of
  35687. '*PTR'.
  35688. Many targets have only minimal support for such locks, and do not
  35689. support a full exchange operation. In this case, a target may
  35690. support reduced functionality here by which the _only_ valid value
  35691. to store is the immediate constant 1. The exact value actually
  35692. stored in '*PTR' is implementation defined.
  35693. This built-in function is not a full barrier, but rather an
  35694. "acquire barrier". This means that references after the operation
  35695. cannot move to (or be speculated to) before the operation, but
  35696. previous memory stores may not be globally visible yet, and
  35697. previous memory loads may not yet be satisfied.
  35698. 'void __sync_lock_release (TYPE *ptr, ...)'
  35699. This built-in function releases the lock acquired by
  35700. '__sync_lock_test_and_set'. Normally this means writing the
  35701. constant 0 to '*PTR'.
  35702. This built-in function is not a full barrier, but rather a "release
  35703. barrier". This means that all previous memory stores are globally
  35704. visible, and all previous memory loads have been satisfied, but
  35705. following memory reads are not prevented from being speculated to
  35706. before the barrier.
  35707. 
  35708. File: gcc.info, Node: __atomic Builtins, Next: Integer Overflow Builtins, Prev: __sync Builtins, Up: C Extensions
  35709. 6.55 Built-in Functions for Memory Model Aware Atomic Operations
  35710. ================================================================
  35711. The following built-in functions approximately match the requirements
  35712. for the C++11 memory model. They are all identified by being prefixed
  35713. with '__atomic' and most are overloaded so that they work with multiple
  35714. types.
  35715. These functions are intended to replace the legacy '__sync' builtins.
  35716. The main difference is that the memory order that is requested is a
  35717. parameter to the functions. New code should always use the '__atomic'
  35718. builtins rather than the '__sync' builtins.
  35719. Note that the '__atomic' builtins assume that programs will conform to
  35720. the C++11 memory model. In particular, they assume that programs are
  35721. free of data races. See the C++11 standard for detailed requirements.
  35722. The '__atomic' builtins can be used with any integral scalar or pointer
  35723. type that is 1, 2, 4, or 8 bytes in length. 16-byte integral types are
  35724. also allowed if '__int128' (*note __int128::) is supported by the
  35725. architecture.
  35726. The four non-arithmetic functions (load, store, exchange, and
  35727. compare_exchange) all have a generic version as well. This generic
  35728. version works on any data type. It uses the lock-free built-in function
  35729. if the specific data type size makes that possible; otherwise, an
  35730. external call is left to be resolved at run time. This external call is
  35731. the same format with the addition of a 'size_t' parameter inserted as
  35732. the first parameter indicating the size of the object being pointed to.
  35733. All objects must be the same size.
  35734. There are 6 different memory orders that can be specified. These map
  35735. to the C++11 memory orders with the same names, see the C++11 standard
  35736. or the GCC wiki on atomic synchronization
  35737. (http://gcc.gnu.org/wiki/Atomic/GCCMM/AtomicSync) for detailed
  35738. definitions. Individual targets may also support additional memory
  35739. orders for use on specific architectures. Refer to the target
  35740. documentation for details of these.
  35741. An atomic operation can both constrain code motion and be mapped to
  35742. hardware instructions for synchronization between threads (e.g., a
  35743. fence). To which extent this happens is controlled by the memory
  35744. orders, which are listed here in approximately ascending order of
  35745. strength. The description of each memory order is only meant to roughly
  35746. illustrate the effects and is not a specification; see the C++11 memory
  35747. model for precise semantics.
  35748. '__ATOMIC_RELAXED'
  35749. Implies no inter-thread ordering constraints.
  35750. '__ATOMIC_CONSUME'
  35751. This is currently implemented using the stronger '__ATOMIC_ACQUIRE'
  35752. memory order because of a deficiency in C++11's semantics for
  35753. 'memory_order_consume'.
  35754. '__ATOMIC_ACQUIRE'
  35755. Creates an inter-thread happens-before constraint from the release
  35756. (or stronger) semantic store to this acquire load. Can prevent
  35757. hoisting of code to before the operation.
  35758. '__ATOMIC_RELEASE'
  35759. Creates an inter-thread happens-before constraint to acquire (or
  35760. stronger) semantic loads that read from this release store. Can
  35761. prevent sinking of code to after the operation.
  35762. '__ATOMIC_ACQ_REL'
  35763. Combines the effects of both '__ATOMIC_ACQUIRE' and
  35764. '__ATOMIC_RELEASE'.
  35765. '__ATOMIC_SEQ_CST'
  35766. Enforces total ordering with all other '__ATOMIC_SEQ_CST'
  35767. operations.
  35768. Note that in the C++11 memory model, _fences_ (e.g.,
  35769. '__atomic_thread_fence') take effect in combination with other atomic
  35770. operations on specific memory locations (e.g., atomic loads); operations
  35771. on specific memory locations do not necessarily affect other operations
  35772. in the same way.
  35773. Target architectures are encouraged to provide their own patterns for
  35774. each of the atomic built-in functions. If no target is provided, the
  35775. original non-memory model set of '__sync' atomic built-in functions are
  35776. used, along with any required synchronization fences surrounding it in
  35777. order to achieve the proper behavior. Execution in this case is subject
  35778. to the same restrictions as those built-in functions.
  35779. If there is no pattern or mechanism to provide a lock-free instruction
  35780. sequence, a call is made to an external routine with the same parameters
  35781. to be resolved at run time.
  35782. When implementing patterns for these built-in functions, the memory
  35783. order parameter can be ignored as long as the pattern implements the
  35784. most restrictive '__ATOMIC_SEQ_CST' memory order. Any of the other
  35785. memory orders execute correctly with this memory order but they may not
  35786. execute as efficiently as they could with a more appropriate
  35787. implementation of the relaxed requirements.
  35788. Note that the C++11 standard allows for the memory order parameter to
  35789. be determined at run time rather than at compile time. These built-in
  35790. functions map any run-time value to '__ATOMIC_SEQ_CST' rather than
  35791. invoke a runtime library call or inline a switch statement. This is
  35792. standard compliant, safe, and the simplest approach for now.
  35793. The memory order parameter is a signed int, but only the lower 16 bits
  35794. are reserved for the memory order. The remainder of the signed int is
  35795. reserved for target use and should be 0. Use of the predefined atomic
  35796. values ensures proper usage.
  35797. -- Built-in Function: TYPE __atomic_load_n (TYPE *ptr, int memorder)
  35798. This built-in function implements an atomic load operation. It
  35799. returns the contents of '*PTR'.
  35800. The valid memory order variants are '__ATOMIC_RELAXED',
  35801. '__ATOMIC_SEQ_CST', '__ATOMIC_ACQUIRE', and '__ATOMIC_CONSUME'.
  35802. -- Built-in Function: void __atomic_load (TYPE *ptr, TYPE *ret, int
  35803. memorder)
  35804. This is the generic version of an atomic load. It returns the
  35805. contents of '*PTR' in '*RET'.
  35806. -- Built-in Function: void __atomic_store_n (TYPE *ptr, TYPE val, int
  35807. memorder)
  35808. This built-in function implements an atomic store operation. It
  35809. writes 'VAL' into '*PTR'.
  35810. The valid memory order variants are '__ATOMIC_RELAXED',
  35811. '__ATOMIC_SEQ_CST', and '__ATOMIC_RELEASE'.
  35812. -- Built-in Function: void __atomic_store (TYPE *ptr, TYPE *val, int
  35813. memorder)
  35814. This is the generic version of an atomic store. It stores the
  35815. value of '*VAL' into '*PTR'.
  35816. -- Built-in Function: TYPE __atomic_exchange_n (TYPE *ptr, TYPE val,
  35817. int memorder)
  35818. This built-in function implements an atomic exchange operation. It
  35819. writes VAL into '*PTR', and returns the previous contents of
  35820. '*PTR'.
  35821. The valid memory order variants are '__ATOMIC_RELAXED',
  35822. '__ATOMIC_SEQ_CST', '__ATOMIC_ACQUIRE', '__ATOMIC_RELEASE', and
  35823. '__ATOMIC_ACQ_REL'.
  35824. -- Built-in Function: void __atomic_exchange (TYPE *ptr, TYPE *val,
  35825. TYPE *ret, int memorder)
  35826. This is the generic version of an atomic exchange. It stores the
  35827. contents of '*VAL' into '*PTR'. The original value of '*PTR' is
  35828. copied into '*RET'.
  35829. -- Built-in Function: bool __atomic_compare_exchange_n (TYPE *ptr, TYPE
  35830. *expected, TYPE desired, bool weak, int success_memorder, int
  35831. failure_memorder)
  35832. This built-in function implements an atomic compare and exchange
  35833. operation. This compares the contents of '*PTR' with the contents
  35834. of '*EXPECTED'. If equal, the operation is a _read-modify-write_
  35835. operation that writes DESIRED into '*PTR'. If they are not equal,
  35836. the operation is a _read_ and the current contents of '*PTR' are
  35837. written into '*EXPECTED'. WEAK is 'true' for weak
  35838. compare_exchange, which may fail spuriously, and 'false' for the
  35839. strong variation, which never fails spuriously. Many targets only
  35840. offer the strong variation and ignore the parameter. When in
  35841. doubt, use the strong variation.
  35842. If DESIRED is written into '*PTR' then 'true' is returned and
  35843. memory is affected according to the memory order specified by
  35844. SUCCESS_MEMORDER. There are no restrictions on what memory order
  35845. can be used here.
  35846. Otherwise, 'false' is returned and memory is affected according to
  35847. FAILURE_MEMORDER. This memory order cannot be '__ATOMIC_RELEASE'
  35848. nor '__ATOMIC_ACQ_REL'. It also cannot be a stronger order than
  35849. that specified by SUCCESS_MEMORDER.
  35850. -- Built-in Function: bool __atomic_compare_exchange (TYPE *ptr, TYPE
  35851. *expected, TYPE *desired, bool weak, int success_memorder, int
  35852. failure_memorder)
  35853. This built-in function implements the generic version of
  35854. '__atomic_compare_exchange'. The function is virtually identical
  35855. to '__atomic_compare_exchange_n', except the desired value is also
  35856. a pointer.
  35857. -- Built-in Function: TYPE __atomic_add_fetch (TYPE *ptr, TYPE val, int
  35858. memorder)
  35859. -- Built-in Function: TYPE __atomic_sub_fetch (TYPE *ptr, TYPE val, int
  35860. memorder)
  35861. -- Built-in Function: TYPE __atomic_and_fetch (TYPE *ptr, TYPE val, int
  35862. memorder)
  35863. -- Built-in Function: TYPE __atomic_xor_fetch (TYPE *ptr, TYPE val, int
  35864. memorder)
  35865. -- Built-in Function: TYPE __atomic_or_fetch (TYPE *ptr, TYPE val, int
  35866. memorder)
  35867. -- Built-in Function: TYPE __atomic_nand_fetch (TYPE *ptr, TYPE val,
  35868. int memorder)
  35869. These built-in functions perform the operation suggested by the
  35870. name, and return the result of the operation. Operations on
  35871. pointer arguments are performed as if the operands were of the
  35872. 'uintptr_t' type. That is, they are not scaled by the size of the
  35873. type to which the pointer points.
  35874. { *ptr OP= val; return *ptr; }
  35875. { *ptr = ~(*ptr & val); return *ptr; } // nand
  35876. The object pointed to by the first argument must be of integer or
  35877. pointer type. It must not be a boolean type. All memory orders
  35878. are valid.
  35879. -- Built-in Function: TYPE __atomic_fetch_add (TYPE *ptr, TYPE val, int
  35880. memorder)
  35881. -- Built-in Function: TYPE __atomic_fetch_sub (TYPE *ptr, TYPE val, int
  35882. memorder)
  35883. -- Built-in Function: TYPE __atomic_fetch_and (TYPE *ptr, TYPE val, int
  35884. memorder)
  35885. -- Built-in Function: TYPE __atomic_fetch_xor (TYPE *ptr, TYPE val, int
  35886. memorder)
  35887. -- Built-in Function: TYPE __atomic_fetch_or (TYPE *ptr, TYPE val, int
  35888. memorder)
  35889. -- Built-in Function: TYPE __atomic_fetch_nand (TYPE *ptr, TYPE val,
  35890. int memorder)
  35891. These built-in functions perform the operation suggested by the
  35892. name, and return the value that had previously been in '*PTR'.
  35893. Operations on pointer arguments are performed as if the operands
  35894. were of the 'uintptr_t' type. That is, they are not scaled by the
  35895. size of the type to which the pointer points.
  35896. { tmp = *ptr; *ptr OP= val; return tmp; }
  35897. { tmp = *ptr; *ptr = ~(*ptr & val); return tmp; } // nand
  35898. The same constraints on arguments apply as for the corresponding
  35899. '__atomic_op_fetch' built-in functions. All memory orders are
  35900. valid.
  35901. -- Built-in Function: bool __atomic_test_and_set (void *ptr, int
  35902. memorder)
  35903. This built-in function performs an atomic test-and-set operation on
  35904. the byte at '*PTR'. The byte is set to some implementation defined
  35905. nonzero "set" value and the return value is 'true' if and only if
  35906. the previous contents were "set". It should be only used for
  35907. operands of type 'bool' or 'char'. For other types only part of
  35908. the value may be set.
  35909. All memory orders are valid.
  35910. -- Built-in Function: void __atomic_clear (bool *ptr, int memorder)
  35911. This built-in function performs an atomic clear operation on
  35912. '*PTR'. After the operation, '*PTR' contains 0. It should be only
  35913. used for operands of type 'bool' or 'char' and in conjunction with
  35914. '__atomic_test_and_set'. For other types it may only clear
  35915. partially. If the type is not 'bool' prefer using
  35916. '__atomic_store'.
  35917. The valid memory order variants are '__ATOMIC_RELAXED',
  35918. '__ATOMIC_SEQ_CST', and '__ATOMIC_RELEASE'.
  35919. -- Built-in Function: void __atomic_thread_fence (int memorder)
  35920. This built-in function acts as a synchronization fence between
  35921. threads based on the specified memory order.
  35922. All memory orders are valid.
  35923. -- Built-in Function: void __atomic_signal_fence (int memorder)
  35924. This built-in function acts as a synchronization fence between a
  35925. thread and signal handlers based in the same thread.
  35926. All memory orders are valid.
  35927. -- Built-in Function: bool __atomic_always_lock_free (size_t size, void
  35928. *ptr)
  35929. This built-in function returns 'true' if objects of SIZE bytes
  35930. always generate lock-free atomic instructions for the target
  35931. architecture. SIZE must resolve to a compile-time constant and the
  35932. result also resolves to a compile-time constant.
  35933. PTR is an optional pointer to the object that may be used to
  35934. determine alignment. A value of 0 indicates typical alignment
  35935. should be used. The compiler may also ignore this parameter.
  35936. if (__atomic_always_lock_free (sizeof (long long), 0))
  35937. -- Built-in Function: bool __atomic_is_lock_free (size_t size, void
  35938. *ptr)
  35939. This built-in function returns 'true' if objects of SIZE bytes
  35940. always generate lock-free atomic instructions for the target
  35941. architecture. If the built-in function is not known to be
  35942. lock-free, a call is made to a runtime routine named
  35943. '__atomic_is_lock_free'.
  35944. PTR is an optional pointer to the object that may be used to
  35945. determine alignment. A value of 0 indicates typical alignment
  35946. should be used. The compiler may also ignore this parameter.
  35947. 
  35948. File: gcc.info, Node: Integer Overflow Builtins, Next: x86 specific memory model extensions for transactional memory, Prev: __atomic Builtins, Up: C Extensions
  35949. 6.56 Built-in Functions to Perform Arithmetic with Overflow Checking
  35950. ====================================================================
  35951. The following built-in functions allow performing simple arithmetic
  35952. operations together with checking whether the operations overflowed.
  35953. -- Built-in Function: bool __builtin_add_overflow (TYPE1 a, TYPE2 b,
  35954. TYPE3 *res)
  35955. -- Built-in Function: bool __builtin_sadd_overflow (int a, int b, int
  35956. *res)
  35957. -- Built-in Function: bool __builtin_saddl_overflow (long int a, long
  35958. int b, long int *res)
  35959. -- Built-in Function: bool __builtin_saddll_overflow (long long int a,
  35960. long long int b, long long int *res)
  35961. -- Built-in Function: bool __builtin_uadd_overflow (unsigned int a,
  35962. unsigned int b, unsigned int *res)
  35963. -- Built-in Function: bool __builtin_uaddl_overflow (unsigned long int
  35964. a, unsigned long int b, unsigned long int *res)
  35965. -- Built-in Function: bool __builtin_uaddll_overflow (unsigned long
  35966. long int a, unsigned long long int b, unsigned long long int
  35967. *res)
  35968. These built-in functions promote the first two operands into
  35969. infinite precision signed type and perform addition on those
  35970. promoted operands. The result is then cast to the type the third
  35971. pointer argument points to and stored there. If the stored result
  35972. is equal to the infinite precision result, the built-in functions
  35973. return 'false', otherwise they return 'true'. As the addition is
  35974. performed in infinite signed precision, these built-in functions
  35975. have fully defined behavior for all argument values.
  35976. The first built-in function allows arbitrary integral types for
  35977. operands and the result type must be pointer to some integral type
  35978. other than enumerated or boolean type, the rest of the built-in
  35979. functions have explicit integer types.
  35980. The compiler will attempt to use hardware instructions to implement
  35981. these built-in functions where possible, like conditional jump on
  35982. overflow after addition, conditional jump on carry etc.
  35983. -- Built-in Function: bool __builtin_sub_overflow (TYPE1 a, TYPE2 b,
  35984. TYPE3 *res)
  35985. -- Built-in Function: bool __builtin_ssub_overflow (int a, int b, int
  35986. *res)
  35987. -- Built-in Function: bool __builtin_ssubl_overflow (long int a, long
  35988. int b, long int *res)
  35989. -- Built-in Function: bool __builtin_ssubll_overflow (long long int a,
  35990. long long int b, long long int *res)
  35991. -- Built-in Function: bool __builtin_usub_overflow (unsigned int a,
  35992. unsigned int b, unsigned int *res)
  35993. -- Built-in Function: bool __builtin_usubl_overflow (unsigned long int
  35994. a, unsigned long int b, unsigned long int *res)
  35995. -- Built-in Function: bool __builtin_usubll_overflow (unsigned long
  35996. long int a, unsigned long long int b, unsigned long long int
  35997. *res)
  35998. These built-in functions are similar to the add overflow checking
  35999. built-in functions above, except they perform subtraction, subtract
  36000. the second argument from the first one, instead of addition.
  36001. -- Built-in Function: bool __builtin_mul_overflow (TYPE1 a, TYPE2 b,
  36002. TYPE3 *res)
  36003. -- Built-in Function: bool __builtin_smul_overflow (int a, int b, int
  36004. *res)
  36005. -- Built-in Function: bool __builtin_smull_overflow (long int a, long
  36006. int b, long int *res)
  36007. -- Built-in Function: bool __builtin_smulll_overflow (long long int a,
  36008. long long int b, long long int *res)
  36009. -- Built-in Function: bool __builtin_umul_overflow (unsigned int a,
  36010. unsigned int b, unsigned int *res)
  36011. -- Built-in Function: bool __builtin_umull_overflow (unsigned long int
  36012. a, unsigned long int b, unsigned long int *res)
  36013. -- Built-in Function: bool __builtin_umulll_overflow (unsigned long
  36014. long int a, unsigned long long int b, unsigned long long int
  36015. *res)
  36016. These built-in functions are similar to the add overflow checking
  36017. built-in functions above, except they perform multiplication,
  36018. instead of addition.
  36019. The following built-in functions allow checking if simple arithmetic
  36020. operation would overflow.
  36021. -- Built-in Function: bool __builtin_add_overflow_p (TYPE1 a, TYPE2 b,
  36022. TYPE3 c)
  36023. -- Built-in Function: bool __builtin_sub_overflow_p (TYPE1 a, TYPE2 b,
  36024. TYPE3 c)
  36025. -- Built-in Function: bool __builtin_mul_overflow_p (TYPE1 a, TYPE2 b,
  36026. TYPE3 c)
  36027. These built-in functions are similar to '__builtin_add_overflow',
  36028. '__builtin_sub_overflow', or '__builtin_mul_overflow', except that
  36029. they don't store the result of the arithmetic operation anywhere
  36030. and the last argument is not a pointer, but some expression with
  36031. integral type other than enumerated or boolean type.
  36032. The built-in functions promote the first two operands into infinite
  36033. precision signed type and perform addition on those promoted
  36034. operands. The result is then cast to the type of the third
  36035. argument. If the cast result is equal to the infinite precision
  36036. result, the built-in functions return 'false', otherwise they
  36037. return 'true'. The value of the third argument is ignored, just
  36038. the side effects in the third argument are evaluated, and no
  36039. integral argument promotions are performed on the last argument.
  36040. If the third argument is a bit-field, the type used for the result
  36041. cast has the precision and signedness of the given bit-field,
  36042. rather than precision and signedness of the underlying type.
  36043. For example, the following macro can be used to portably check, at
  36044. compile-time, whether or not adding two constant integers will
  36045. overflow, and perform the addition only when it is known to be safe
  36046. and not to trigger a '-Woverflow' warning.
  36047. #define INT_ADD_OVERFLOW_P(a, b) \
  36048. __builtin_add_overflow_p (a, b, (__typeof__ ((a) + (b))) 0)
  36049. enum {
  36050. A = INT_MAX, B = 3,
  36051. C = INT_ADD_OVERFLOW_P (A, B) ? 0 : A + B,
  36052. D = __builtin_add_overflow_p (1, SCHAR_MAX, (signed char) 0)
  36053. };
  36054. The compiler will attempt to use hardware instructions to implement
  36055. these built-in functions where possible, like conditional jump on
  36056. overflow after addition, conditional jump on carry etc.
  36057. 
  36058. File: gcc.info, Node: x86 specific memory model extensions for transactional memory, Next: Object Size Checking, Prev: Integer Overflow Builtins, Up: C Extensions
  36059. 6.57 x86-Specific Memory Model Extensions for Transactional Memory
  36060. ==================================================================
  36061. The x86 architecture supports additional memory ordering flags to mark
  36062. critical sections for hardware lock elision. These must be specified in
  36063. addition to an existing memory order to atomic intrinsics.
  36064. '__ATOMIC_HLE_ACQUIRE'
  36065. Start lock elision on a lock variable. Memory order must be
  36066. '__ATOMIC_ACQUIRE' or stronger.
  36067. '__ATOMIC_HLE_RELEASE'
  36068. End lock elision on a lock variable. Memory order must be
  36069. '__ATOMIC_RELEASE' or stronger.
  36070. When a lock acquire fails, it is required for good performance to abort
  36071. the transaction quickly. This can be done with a '_mm_pause'.
  36072. #include <immintrin.h> // For _mm_pause
  36073. int lockvar;
  36074. /* Acquire lock with lock elision */
  36075. while (__atomic_exchange_n(&lockvar, 1, __ATOMIC_ACQUIRE|__ATOMIC_HLE_ACQUIRE))
  36076. _mm_pause(); /* Abort failed transaction */
  36077. ...
  36078. /* Free lock with lock elision */
  36079. __atomic_store_n(&lockvar, 0, __ATOMIC_RELEASE|__ATOMIC_HLE_RELEASE);
  36080. 
  36081. File: gcc.info, Node: Object Size Checking, Next: Other Builtins, Prev: x86 specific memory model extensions for transactional memory, Up: C Extensions
  36082. 6.58 Object Size Checking Built-in Functions
  36083. ============================================
  36084. GCC implements a limited buffer overflow protection mechanism that can
  36085. prevent some buffer overflow attacks by determining the sizes of objects
  36086. into which data is about to be written and preventing the writes when
  36087. the size isn't sufficient. The built-in functions described below yield
  36088. the best results when used together and when optimization is enabled.
  36089. For example, to detect object sizes across function boundaries or to
  36090. follow pointer assignments through non-trivial control flow they rely on
  36091. various optimization passes enabled with '-O2'. However, to a limited
  36092. extent, they can be used without optimization as well.
  36093. -- Built-in Function: size_t __builtin_object_size (const void * PTR,
  36094. int TYPE)
  36095. is a built-in construct that returns a constant number of bytes
  36096. from PTR to the end of the object PTR pointer points to (if known
  36097. at compile time). To determine the sizes of dynamically allocated
  36098. objects the function relies on the allocation functions called to
  36099. obtain the storage to be declared with the 'alloc_size' attribute
  36100. (*note Common Function Attributes::). '__builtin_object_size'
  36101. never evaluates its arguments for side effects. If there are any
  36102. side effects in them, it returns '(size_t) -1' for TYPE 0 or 1 and
  36103. '(size_t) 0' for TYPE 2 or 3. If there are multiple objects PTR
  36104. can point to and all of them are known at compile time, the
  36105. returned number is the maximum of remaining byte counts in those
  36106. objects if TYPE & 2 is 0 and minimum if nonzero. If it is not
  36107. possible to determine which objects PTR points to at compile time,
  36108. '__builtin_object_size' should return '(size_t) -1' for TYPE 0 or 1
  36109. and '(size_t) 0' for TYPE 2 or 3.
  36110. TYPE is an integer constant from 0 to 3. If the least significant
  36111. bit is clear, objects are whole variables, if it is set, a closest
  36112. surrounding subobject is considered the object a pointer points to.
  36113. The second bit determines if maximum or minimum of remaining bytes
  36114. is computed.
  36115. struct V { char buf1[10]; int b; char buf2[10]; } var;
  36116. char *p = &var.buf1[1], *q = &var.b;
  36117. /* Here the object p points to is var. */
  36118. assert (__builtin_object_size (p, 0) == sizeof (var) - 1);
  36119. /* The subobject p points to is var.buf1. */
  36120. assert (__builtin_object_size (p, 1) == sizeof (var.buf1) - 1);
  36121. /* The object q points to is var. */
  36122. assert (__builtin_object_size (q, 0)
  36123. == (char *) (&var + 1) - (char *) &var.b);
  36124. /* The subobject q points to is var.b. */
  36125. assert (__builtin_object_size (q, 1) == sizeof (var.b));
  36126. There are built-in functions added for many common string operation
  36127. functions, e.g., for 'memcpy' '__builtin___memcpy_chk' built-in is
  36128. provided. This built-in has an additional last argument, which is the
  36129. number of bytes remaining in the object the DEST argument points to or
  36130. '(size_t) -1' if the size is not known.
  36131. The built-in functions are optimized into the normal string functions
  36132. like 'memcpy' if the last argument is '(size_t) -1' or if it is known at
  36133. compile time that the destination object will not be overflowed. If the
  36134. compiler can determine at compile time that the object will always be
  36135. overflowed, it issues a warning.
  36136. The intended use can be e.g.
  36137. #undef memcpy
  36138. #define bos0(dest) __builtin_object_size (dest, 0)
  36139. #define memcpy(dest, src, n) \
  36140. __builtin___memcpy_chk (dest, src, n, bos0 (dest))
  36141. char *volatile p;
  36142. char buf[10];
  36143. /* It is unknown what object p points to, so this is optimized
  36144. into plain memcpy - no checking is possible. */
  36145. memcpy (p, "abcde", n);
  36146. /* Destination is known and length too. It is known at compile
  36147. time there will be no overflow. */
  36148. memcpy (&buf[5], "abcde", 5);
  36149. /* Destination is known, but the length is not known at compile time.
  36150. This will result in __memcpy_chk call that can check for overflow
  36151. at run time. */
  36152. memcpy (&buf[5], "abcde", n);
  36153. /* Destination is known and it is known at compile time there will
  36154. be overflow. There will be a warning and __memcpy_chk call that
  36155. will abort the program at run time. */
  36156. memcpy (&buf[6], "abcde", 5);
  36157. Such built-in functions are provided for 'memcpy', 'mempcpy',
  36158. 'memmove', 'memset', 'strcpy', 'stpcpy', 'strncpy', 'strcat' and
  36159. 'strncat'.
  36160. There are also checking built-in functions for formatted output
  36161. functions.
  36162. int __builtin___sprintf_chk (char *s, int flag, size_t os, const char *fmt, ...);
  36163. int __builtin___snprintf_chk (char *s, size_t maxlen, int flag, size_t os,
  36164. const char *fmt, ...);
  36165. int __builtin___vsprintf_chk (char *s, int flag, size_t os, const char *fmt,
  36166. va_list ap);
  36167. int __builtin___vsnprintf_chk (char *s, size_t maxlen, int flag, size_t os,
  36168. const char *fmt, va_list ap);
  36169. The added FLAG argument is passed unchanged to '__sprintf_chk' etc.
  36170. functions and can contain implementation specific flags on what
  36171. additional security measures the checking function might take, such as
  36172. handling '%n' differently.
  36173. The OS argument is the object size S points to, like in the other
  36174. built-in functions. There is a small difference in the behavior though,
  36175. if OS is '(size_t) -1', the built-in functions are optimized into the
  36176. non-checking functions only if FLAG is 0, otherwise the checking
  36177. function is called with OS argument set to '(size_t) -1'.
  36178. In addition to this, there are checking built-in functions
  36179. '__builtin___printf_chk', '__builtin___vprintf_chk',
  36180. '__builtin___fprintf_chk' and '__builtin___vfprintf_chk'. These have
  36181. just one additional argument, FLAG, right before format string FMT. If
  36182. the compiler is able to optimize them to 'fputc' etc. functions, it
  36183. does, otherwise the checking function is called and the FLAG argument
  36184. passed to it.
  36185. 
  36186. File: gcc.info, Node: Other Builtins, Next: Target Builtins, Prev: Object Size Checking, Up: C Extensions
  36187. 6.59 Other Built-in Functions Provided by GCC
  36188. =============================================
  36189. GCC provides a large number of built-in functions other than the ones
  36190. mentioned above. Some of these are for internal use in the processing
  36191. of exceptions or variable-length argument lists and are not documented
  36192. here because they may change from time to time; we do not recommend
  36193. general use of these functions.
  36194. The remaining functions are provided for optimization purposes.
  36195. With the exception of built-ins that have library equivalents such as
  36196. the standard C library functions discussed below, or that expand to
  36197. library calls, GCC built-in functions are always expanded inline and
  36198. thus do not have corresponding entry points and their address cannot be
  36199. obtained. Attempting to use them in an expression other than a function
  36200. call results in a compile-time error.
  36201. GCC includes built-in versions of many of the functions in the standard
  36202. C library. These functions come in two forms: one whose names start
  36203. with the '__builtin_' prefix, and the other without. Both forms have
  36204. the same type (including prototype), the same address (when their
  36205. address is taken), and the same meaning as the C library functions even
  36206. if you specify the '-fno-builtin' option *note C Dialect Options::).
  36207. Many of these functions are only optimized in certain cases; if they are
  36208. not optimized in a particular case, a call to the library function is
  36209. emitted.
  36210. Outside strict ISO C mode ('-ansi', '-std=c90', '-std=c99' or
  36211. '-std=c11'), the functions '_exit', 'alloca', 'bcmp', 'bzero',
  36212. 'dcgettext', 'dgettext', 'dremf', 'dreml', 'drem', 'exp10f', 'exp10l',
  36213. 'exp10', 'ffsll', 'ffsl', 'ffs', 'fprintf_unlocked', 'fputs_unlocked',
  36214. 'gammaf', 'gammal', 'gamma', 'gammaf_r', 'gammal_r', 'gamma_r',
  36215. 'gettext', 'index', 'isascii', 'j0f', 'j0l', 'j0', 'j1f', 'j1l', 'j1',
  36216. 'jnf', 'jnl', 'jn', 'lgammaf_r', 'lgammal_r', 'lgamma_r', 'mempcpy',
  36217. 'pow10f', 'pow10l', 'pow10', 'printf_unlocked', 'rindex', 'roundeven',
  36218. 'roundevenf', 'roundevenl', 'scalbf', 'scalbl', 'scalb', 'signbit',
  36219. 'signbitf', 'signbitl', 'signbitd32', 'signbitd64', 'signbitd128',
  36220. 'significandf', 'significandl', 'significand', 'sincosf', 'sincosl',
  36221. 'sincos', 'stpcpy', 'stpncpy', 'strcasecmp', 'strdup', 'strfmon',
  36222. 'strncasecmp', 'strndup', 'strnlen', 'toascii', 'y0f', 'y0l', 'y0',
  36223. 'y1f', 'y1l', 'y1', 'ynf', 'ynl' and 'yn' may be handled as built-in
  36224. functions. All these functions have corresponding versions prefixed
  36225. with '__builtin_', which may be used even in strict C90 mode.
  36226. The ISO C99 functions '_Exit', 'acoshf', 'acoshl', 'acosh', 'asinhf',
  36227. 'asinhl', 'asinh', 'atanhf', 'atanhl', 'atanh', 'cabsf', 'cabsl',
  36228. 'cabs', 'cacosf', 'cacoshf', 'cacoshl', 'cacosh', 'cacosl', 'cacos',
  36229. 'cargf', 'cargl', 'carg', 'casinf', 'casinhf', 'casinhl', 'casinh',
  36230. 'casinl', 'casin', 'catanf', 'catanhf', 'catanhl', 'catanh', 'catanl',
  36231. 'catan', 'cbrtf', 'cbrtl', 'cbrt', 'ccosf', 'ccoshf', 'ccoshl', 'ccosh',
  36232. 'ccosl', 'ccos', 'cexpf', 'cexpl', 'cexp', 'cimagf', 'cimagl', 'cimag',
  36233. 'clogf', 'clogl', 'clog', 'conjf', 'conjl', 'conj', 'copysignf',
  36234. 'copysignl', 'copysign', 'cpowf', 'cpowl', 'cpow', 'cprojf', 'cprojl',
  36235. 'cproj', 'crealf', 'creall', 'creal', 'csinf', 'csinhf', 'csinhl',
  36236. 'csinh', 'csinl', 'csin', 'csqrtf', 'csqrtl', 'csqrt', 'ctanf',
  36237. 'ctanhf', 'ctanhl', 'ctanh', 'ctanl', 'ctan', 'erfcf', 'erfcl', 'erfc',
  36238. 'erff', 'erfl', 'erf', 'exp2f', 'exp2l', 'exp2', 'expm1f', 'expm1l',
  36239. 'expm1', 'fdimf', 'fdiml', 'fdim', 'fmaf', 'fmal', 'fmaxf', 'fmaxl',
  36240. 'fmax', 'fma', 'fminf', 'fminl', 'fmin', 'hypotf', 'hypotl', 'hypot',
  36241. 'ilogbf', 'ilogbl', 'ilogb', 'imaxabs', 'isblank', 'iswblank',
  36242. 'lgammaf', 'lgammal', 'lgamma', 'llabs', 'llrintf', 'llrintl', 'llrint',
  36243. 'llroundf', 'llroundl', 'llround', 'log1pf', 'log1pl', 'log1p', 'log2f',
  36244. 'log2l', 'log2', 'logbf', 'logbl', 'logb', 'lrintf', 'lrintl', 'lrint',
  36245. 'lroundf', 'lroundl', 'lround', 'nearbyintf', 'nearbyintl', 'nearbyint',
  36246. 'nextafterf', 'nextafterl', 'nextafter', 'nexttowardf', 'nexttowardl',
  36247. 'nexttoward', 'remainderf', 'remainderl', 'remainder', 'remquof',
  36248. 'remquol', 'remquo', 'rintf', 'rintl', 'rint', 'roundf', 'roundl',
  36249. 'round', 'scalblnf', 'scalblnl', 'scalbln', 'scalbnf', 'scalbnl',
  36250. 'scalbn', 'snprintf', 'tgammaf', 'tgammal', 'tgamma', 'truncf',
  36251. 'truncl', 'trunc', 'vfscanf', 'vscanf', 'vsnprintf' and 'vsscanf' are
  36252. handled as built-in functions except in strict ISO C90 mode ('-ansi' or
  36253. '-std=c90').
  36254. There are also built-in versions of the ISO C99 functions 'acosf',
  36255. 'acosl', 'asinf', 'asinl', 'atan2f', 'atan2l', 'atanf', 'atanl',
  36256. 'ceilf', 'ceill', 'cosf', 'coshf', 'coshl', 'cosl', 'expf', 'expl',
  36257. 'fabsf', 'fabsl', 'floorf', 'floorl', 'fmodf', 'fmodl', 'frexpf',
  36258. 'frexpl', 'ldexpf', 'ldexpl', 'log10f', 'log10l', 'logf', 'logl',
  36259. 'modfl', 'modf', 'powf', 'powl', 'sinf', 'sinhf', 'sinhl', 'sinl',
  36260. 'sqrtf', 'sqrtl', 'tanf', 'tanhf', 'tanhl' and 'tanl' that are
  36261. recognized in any mode since ISO C90 reserves these names for the
  36262. purpose to which ISO C99 puts them. All these functions have
  36263. corresponding versions prefixed with '__builtin_'.
  36264. There are also built-in functions '__builtin_fabsfN',
  36265. '__builtin_fabsfNx', '__builtin_copysignfN' and '__builtin_copysignfNx',
  36266. corresponding to the TS 18661-3 functions 'fabsfN', 'fabsfNx',
  36267. 'copysignfN' and 'copysignfNx', for supported types '_FloatN' and
  36268. '_FloatNx'.
  36269. There are also GNU extension functions 'clog10', 'clog10f' and
  36270. 'clog10l' which names are reserved by ISO C99 for future use. All these
  36271. functions have versions prefixed with '__builtin_'.
  36272. The ISO C94 functions 'iswalnum', 'iswalpha', 'iswcntrl', 'iswdigit',
  36273. 'iswgraph', 'iswlower', 'iswprint', 'iswpunct', 'iswspace', 'iswupper',
  36274. 'iswxdigit', 'towlower' and 'towupper' are handled as built-in functions
  36275. except in strict ISO C90 mode ('-ansi' or '-std=c90').
  36276. The ISO C90 functions 'abort', 'abs', 'acos', 'asin', 'atan2', 'atan',
  36277. 'calloc', 'ceil', 'cosh', 'cos', 'exit', 'exp', 'fabs', 'floor', 'fmod',
  36278. 'fprintf', 'fputs', 'free', 'frexp', 'fscanf', 'isalnum', 'isalpha',
  36279. 'iscntrl', 'isdigit', 'isgraph', 'islower', 'isprint', 'ispunct',
  36280. 'isspace', 'isupper', 'isxdigit', 'tolower', 'toupper', 'labs', 'ldexp',
  36281. 'log10', 'log', 'malloc', 'memchr', 'memcmp', 'memcpy', 'memset',
  36282. 'modf', 'pow', 'printf', 'putchar', 'puts', 'realloc', 'scanf', 'sinh',
  36283. 'sin', 'snprintf', 'sprintf', 'sqrt', 'sscanf', 'strcat', 'strchr',
  36284. 'strcmp', 'strcpy', 'strcspn', 'strlen', 'strncat', 'strncmp',
  36285. 'strncpy', 'strpbrk', 'strrchr', 'strspn', 'strstr', 'tanh', 'tan',
  36286. 'vfprintf', 'vprintf' and 'vsprintf' are all recognized as built-in
  36287. functions unless '-fno-builtin' is specified (or '-fno-builtin-FUNCTION'
  36288. is specified for an individual function). All of these functions have
  36289. corresponding versions prefixed with '__builtin_'.
  36290. GCC provides built-in versions of the ISO C99 floating-point comparison
  36291. macros that avoid raising exceptions for unordered operands. They have
  36292. the same names as the standard macros ( 'isgreater', 'isgreaterequal',
  36293. 'isless', 'islessequal', 'islessgreater', and 'isunordered') , with
  36294. '__builtin_' prefixed. We intend for a library implementor to be able
  36295. to simply '#define' each standard macro to its built-in equivalent. In
  36296. the same fashion, GCC provides 'fpclassify', 'isfinite', 'isinf_sign',
  36297. 'isnormal' and 'signbit' built-ins used with '__builtin_' prefixed. The
  36298. 'isinf' and 'isnan' built-in functions appear both with and without the
  36299. '__builtin_' prefix.
  36300. -- Built-in Function: void *__builtin_alloca (size_t size)
  36301. The '__builtin_alloca' function must be called at block scope. The
  36302. function allocates an object SIZE bytes large on the stack of the
  36303. calling function. The object is aligned on the default stack
  36304. alignment boundary for the target determined by the
  36305. '__BIGGEST_ALIGNMENT__' macro. The '__builtin_alloca' function
  36306. returns a pointer to the first byte of the allocated object. The
  36307. lifetime of the allocated object ends just before the calling
  36308. function returns to its caller. This is so even when
  36309. '__builtin_alloca' is called within a nested block.
  36310. For example, the following function allocates eight objects of 'n'
  36311. bytes each on the stack, storing a pointer to each in consecutive
  36312. elements of the array 'a'. It then passes the array to function
  36313. 'g' which can safely use the storage pointed to by each of the
  36314. array elements.
  36315. void f (unsigned n)
  36316. {
  36317. void *a [8];
  36318. for (int i = 0; i != 8; ++i)
  36319. a [i] = __builtin_alloca (n);
  36320. g (a, n); // safe
  36321. }
  36322. Since the '__builtin_alloca' function doesn't validate its argument
  36323. it is the responsibility of its caller to make sure the argument
  36324. doesn't cause it to exceed the stack size limit. The
  36325. '__builtin_alloca' function is provided to make it possible to
  36326. allocate on the stack arrays of bytes with an upper bound that may
  36327. be computed at run time. Since C99 Variable Length Arrays offer
  36328. similar functionality under a portable, more convenient, and safer
  36329. interface they are recommended instead, in both C99 and C++
  36330. programs where GCC provides them as an extension. *Note Variable
  36331. Length::, for details.
  36332. -- Built-in Function: void *__builtin_alloca_with_align (size_t size,
  36333. size_t alignment)
  36334. The '__builtin_alloca_with_align' function must be called at block
  36335. scope. The function allocates an object SIZE bytes large on the
  36336. stack of the calling function. The allocated object is aligned on
  36337. the boundary specified by the argument ALIGNMENT whose unit is
  36338. given in bits (not bytes). The SIZE argument must be positive and
  36339. not exceed the stack size limit. The ALIGNMENT argument must be a
  36340. constant integer expression that evaluates to a power of 2 greater
  36341. than or equal to 'CHAR_BIT' and less than some unspecified maximum.
  36342. Invocations with other values are rejected with an error indicating
  36343. the valid bounds. The function returns a pointer to the first byte
  36344. of the allocated object. The lifetime of the allocated object ends
  36345. at the end of the block in which the function was called. The
  36346. allocated storage is released no later than just before the calling
  36347. function returns to its caller, but may be released at the end of
  36348. the block in which the function was called.
  36349. For example, in the following function the call to 'g' is unsafe
  36350. because when 'overalign' is non-zero, the space allocated by
  36351. '__builtin_alloca_with_align' may have been released at the end of
  36352. the 'if' statement in which it was called.
  36353. void f (unsigned n, bool overalign)
  36354. {
  36355. void *p;
  36356. if (overalign)
  36357. p = __builtin_alloca_with_align (n, 64 /* bits */);
  36358. else
  36359. p = __builtin_alloc (n);
  36360. g (p, n); // unsafe
  36361. }
  36362. Since the '__builtin_alloca_with_align' function doesn't validate
  36363. its SIZE argument it is the responsibility of its caller to make
  36364. sure the argument doesn't cause it to exceed the stack size limit.
  36365. The '__builtin_alloca_with_align' function is provided to make it
  36366. possible to allocate on the stack overaligned arrays of bytes with
  36367. an upper bound that may be computed at run time. Since C99
  36368. Variable Length Arrays offer the same functionality under a
  36369. portable, more convenient, and safer interface they are recommended
  36370. instead, in both C99 and C++ programs where GCC provides them as an
  36371. extension. *Note Variable Length::, for details.
  36372. -- Built-in Function: void *__builtin_alloca_with_align_and_max (size_t
  36373. size, size_t alignment, size_t max_size)
  36374. Similar to '__builtin_alloca_with_align' but takes an extra
  36375. argument specifying an upper bound for SIZE in case its value
  36376. cannot be computed at compile time, for use by '-fstack-usage',
  36377. '-Wstack-usage' and '-Walloca-larger-than'. MAX_SIZE must be a
  36378. constant integer expression, it has no effect on code generation
  36379. and no attempt is made to check its compatibility with SIZE.
  36380. -- Built-in Function: bool __builtin_has_attribute (TYPE-OR-EXPRESSION,
  36381. ATTRIBUTE)
  36382. The '__builtin_has_attribute' function evaluates to an integer
  36383. constant expression equal to 'true' if the symbol or type
  36384. referenced by the TYPE-OR-EXPRESSION argument has been declared
  36385. with the ATTRIBUTE referenced by the second argument. For an
  36386. TYPE-OR-EXPRESSION argument that does not reference a symbol, since
  36387. attributes do not apply to expressions the built-in consider the
  36388. type of the argument. Neither argument is evaluated. The
  36389. TYPE-OR-EXPRESSION argument is subject to the same restrictions as
  36390. the argument to 'typeof' (*note Typeof::). The ATTRIBUTE argument
  36391. is an attribute name optionally followed by a comma-separated list
  36392. of arguments enclosed in parentheses. Both forms of attribute
  36393. names--with and without double leading and trailing
  36394. underscores--are recognized. *Note Attribute Syntax::, for
  36395. details. When no attribute arguments are specified for an
  36396. attribute that expects one or more arguments the function returns
  36397. 'true' if TYPE-OR-EXPRESSION has been declared with the attribute
  36398. regardless of the attribute argument values. Arguments provided
  36399. for an attribute that expects some are validated and matched up to
  36400. the provided number. The function returns 'true' if all provided
  36401. arguments match. For example, the first call to the function below
  36402. evaluates to 'true' because 'x' is declared with the 'aligned'
  36403. attribute but the second call evaluates to 'false' because 'x' is
  36404. declared 'aligned (8)' and not 'aligned (4)'.
  36405. __attribute__ ((aligned (8))) int x;
  36406. _Static_assert (__builtin_has_attribute (x, aligned), "aligned");
  36407. _Static_assert (!__builtin_has_attribute (x, aligned (4)), "aligned (4)");
  36408. Due to a limitation the '__builtin_has_attribute' function returns
  36409. 'false' for the 'mode' attribute even if the type or variable
  36410. referenced by the TYPE-OR-EXPRESSION argument was declared with
  36411. one. The function is also not supported with labels, and in C with
  36412. enumerators.
  36413. Note that unlike the '__has_attribute' preprocessor operator which
  36414. is suitable for use in '#if' preprocessing directives
  36415. '__builtin_has_attribute' is an intrinsic function that is not
  36416. recognized in such contexts.
  36417. -- Built-in Function: TYPE __builtin_speculation_safe_value (TYPE val,
  36418. TYPE failval)
  36419. This built-in function can be used to help mitigate against unsafe
  36420. speculative execution. TYPE may be any integral type or any
  36421. pointer type.
  36422. 1. If the CPU is not speculatively executing the code, then VAL
  36423. is returned.
  36424. 2. If the CPU is executing speculatively then either:
  36425. * The function may cause execution to pause until it is
  36426. known that the code is no-longer being executed
  36427. speculatively (in which case VAL can be returned, as
  36428. above); or
  36429. * The function may use target-dependent speculation
  36430. tracking state to cause FAILVAL to be returned when it is
  36431. known that speculative execution has incorrectly
  36432. predicted a conditional branch operation.
  36433. The second argument, FAILVAL, is optional and defaults to zero if
  36434. omitted.
  36435. GCC defines the preprocessor macro
  36436. '__HAVE_BUILTIN_SPECULATION_SAFE_VALUE' for targets that have been
  36437. updated to support this builtin.
  36438. The built-in function can be used where a variable appears to be
  36439. used in a safe way, but the CPU, due to speculative execution may
  36440. temporarily ignore the bounds checks. Consider, for example, the
  36441. following function:
  36442. int array[500];
  36443. int f (unsigned untrusted_index)
  36444. {
  36445. if (untrusted_index < 500)
  36446. return array[untrusted_index];
  36447. return 0;
  36448. }
  36449. If the function is called repeatedly with 'untrusted_index' less
  36450. than the limit of 500, then a branch predictor will learn that the
  36451. block of code that returns a value stored in 'array' will be
  36452. executed. If the function is subsequently called with an
  36453. out-of-range value it will still try to execute that block of code
  36454. first until the CPU determines that the prediction was incorrect
  36455. (the CPU will unwind any incorrect operations at that point).
  36456. However, depending on how the result of the function is used, it
  36457. might be possible to leave traces in the cache that can reveal what
  36458. was stored at the out-of-bounds location. The built-in function
  36459. can be used to provide some protection against leaking data in this
  36460. way by changing the code to:
  36461. int array[500];
  36462. int f (unsigned untrusted_index)
  36463. {
  36464. if (untrusted_index < 500)
  36465. return array[__builtin_speculation_safe_value (untrusted_index)];
  36466. return 0;
  36467. }
  36468. The built-in function will either cause execution to stall until
  36469. the conditional branch has been fully resolved, or it may permit
  36470. speculative execution to continue, but using 0 instead of
  36471. 'untrusted_value' if that exceeds the limit.
  36472. If accessing any memory location is potentially unsafe when
  36473. speculative execution is incorrect, then the code can be rewritten
  36474. as
  36475. int array[500];
  36476. int f (unsigned untrusted_index)
  36477. {
  36478. if (untrusted_index < 500)
  36479. return *__builtin_speculation_safe_value (&array[untrusted_index], NULL);
  36480. return 0;
  36481. }
  36482. which will cause a 'NULL' pointer to be used for the unsafe case.
  36483. -- Built-in Function: int __builtin_types_compatible_p (TYPE1, TYPE2)
  36484. You can use the built-in function '__builtin_types_compatible_p' to
  36485. determine whether two types are the same.
  36486. This built-in function returns 1 if the unqualified versions of the
  36487. types TYPE1 and TYPE2 (which are types, not expressions) are
  36488. compatible, 0 otherwise. The result of this built-in function can
  36489. be used in integer constant expressions.
  36490. This built-in function ignores top level qualifiers (e.g., 'const',
  36491. 'volatile'). For example, 'int' is equivalent to 'const int'.
  36492. The type 'int[]' and 'int[5]' are compatible. On the other hand,
  36493. 'int' and 'char *' are not compatible, even if the size of their
  36494. types, on the particular architecture are the same. Also, the
  36495. amount of pointer indirection is taken into account when
  36496. determining similarity. Consequently, 'short *' is not similar to
  36497. 'short **'. Furthermore, two types that are typedefed are
  36498. considered compatible if their underlying types are compatible.
  36499. An 'enum' type is not considered to be compatible with another
  36500. 'enum' type even if both are compatible with the same integer type;
  36501. this is what the C standard specifies. For example, 'enum {foo,
  36502. bar}' is not similar to 'enum {hot, dog}'.
  36503. You typically use this function in code whose execution varies
  36504. depending on the arguments' types. For example:
  36505. #define foo(x) \
  36506. ({ \
  36507. typeof (x) tmp = (x); \
  36508. if (__builtin_types_compatible_p (typeof (x), long double)) \
  36509. tmp = foo_long_double (tmp); \
  36510. else if (__builtin_types_compatible_p (typeof (x), double)) \
  36511. tmp = foo_double (tmp); \
  36512. else if (__builtin_types_compatible_p (typeof (x), float)) \
  36513. tmp = foo_float (tmp); \
  36514. else \
  36515. abort (); \
  36516. tmp; \
  36517. })
  36518. _Note:_ This construct is only available for C.
  36519. -- Built-in Function: TYPE __builtin_call_with_static_chain (CALL_EXP,
  36520. POINTER_EXP)
  36521. The CALL_EXP expression must be a function call, and the
  36522. POINTER_EXP expression must be a pointer. The POINTER_EXP is
  36523. passed to the function call in the target's static chain location.
  36524. The result of builtin is the result of the function call.
  36525. _Note:_ This builtin is only available for C. This builtin can be
  36526. used to call Go closures from C.
  36527. -- Built-in Function: TYPE __builtin_choose_expr (CONST_EXP, EXP1,
  36528. EXP2)
  36529. You can use the built-in function '__builtin_choose_expr' to
  36530. evaluate code depending on the value of a constant expression.
  36531. This built-in function returns EXP1 if CONST_EXP, which is an
  36532. integer constant expression, is nonzero. Otherwise it returns
  36533. EXP2.
  36534. This built-in function is analogous to the '? :' operator in C,
  36535. except that the expression returned has its type unaltered by
  36536. promotion rules. Also, the built-in function does not evaluate the
  36537. expression that is not chosen. For example, if CONST_EXP evaluates
  36538. to 'true', EXP2 is not evaluated even if it has side effects.
  36539. This built-in function can return an lvalue if the chosen argument
  36540. is an lvalue.
  36541. If EXP1 is returned, the return type is the same as EXP1's type.
  36542. Similarly, if EXP2 is returned, its return type is the same as
  36543. EXP2.
  36544. Example:
  36545. #define foo(x) \
  36546. __builtin_choose_expr ( \
  36547. __builtin_types_compatible_p (typeof (x), double), \
  36548. foo_double (x), \
  36549. __builtin_choose_expr ( \
  36550. __builtin_types_compatible_p (typeof (x), float), \
  36551. foo_float (x), \
  36552. /* The void expression results in a compile-time error \
  36553. when assigning the result to something. */ \
  36554. (void)0))
  36555. _Note:_ This construct is only available for C. Furthermore, the
  36556. unused expression (EXP1 or EXP2 depending on the value of
  36557. CONST_EXP) may still generate syntax errors. This may change in
  36558. future revisions.
  36559. -- Built-in Function: TYPE __builtin_tgmath (FUNCTIONS, ARGUMENTS)
  36560. The built-in function '__builtin_tgmath', available only for C and
  36561. Objective-C, calls a function determined according to the rules of
  36562. '<tgmath.h>' macros. It is intended to be used in implementations
  36563. of that header, so that expansions of macros from that header only
  36564. expand each of their arguments once, to avoid problems when calls
  36565. to such macros are nested inside the arguments of other calls to
  36566. such macros; in addition, it results in better diagnostics for
  36567. invalid calls to '<tgmath.h>' macros than implementations using
  36568. other GNU C language features. For example, the 'pow' type-generic
  36569. macro might be defined as:
  36570. #define pow(a, b) __builtin_tgmath (powf, pow, powl, \
  36571. cpowf, cpow, cpowl, a, b)
  36572. The arguments to '__builtin_tgmath' are at least two pointers to
  36573. functions, followed by the arguments to the type-generic macro
  36574. (which will be passed as arguments to the selected function). All
  36575. the pointers to functions must be pointers to prototyped functions,
  36576. none of which may have variable arguments, and all of which must
  36577. have the same number of parameters; the number of parameters of the
  36578. first function determines how many arguments to '__builtin_tgmath'
  36579. are interpreted as function pointers, and how many as the arguments
  36580. to the called function.
  36581. The types of the specified functions must all be different, but
  36582. related to each other in the same way as a set of functions that
  36583. may be selected between by a macro in '<tgmath.h>'. This means
  36584. that the functions are parameterized by a floating-point type T,
  36585. different for each such function. The function return types may
  36586. all be the same type, or they may be T for each function, or they
  36587. may be the real type corresponding to T for each function (if some
  36588. of the types T are complex). Likewise, for each parameter
  36589. position, the type of the parameter in that position may always be
  36590. the same type, or may be T for each function (this case must apply
  36591. for at least one parameter position), or may be the real type
  36592. corresponding to T for each function.
  36593. The standard rules for '<tgmath.h>' macros are used to find a
  36594. common type U from the types of the arguments for parameters whose
  36595. types vary between the functions; complex integer types (a GNU
  36596. extension) are treated like '_Complex double' for this purpose (or
  36597. '_Complex _Float64' if all the function return types are the same
  36598. '_FloatN' or '_FloatNx' type). If the function return types vary,
  36599. or are all the same integer type, the function called is the one
  36600. for which T is U, and it is an error if there is no such function.
  36601. If the function return types are all the same floating-point type,
  36602. the type-generic macro is taken to be one of those from TS 18661
  36603. that rounds the result to a narrower type; if there is a function
  36604. for which T is U, it is called, and otherwise the first function,
  36605. if any, for which T has at least the range and precision of U is
  36606. called, and it is an error if there is no such function.
  36607. -- Built-in Function: TYPE __builtin_complex (REAL, IMAG)
  36608. The built-in function '__builtin_complex' is provided for use in
  36609. implementing the ISO C11 macros 'CMPLXF', 'CMPLX' and 'CMPLXL'.
  36610. REAL and IMAG must have the same type, a real binary floating-point
  36611. type, and the result has the corresponding complex type with real
  36612. and imaginary parts REAL and IMAG. Unlike 'REAL + I * IMAG', this
  36613. works even when infinities, NaNs and negative zeros are involved.
  36614. -- Built-in Function: int __builtin_constant_p (EXP)
  36615. You can use the built-in function '__builtin_constant_p' to
  36616. determine if a value is known to be constant at compile time and
  36617. hence that GCC can perform constant-folding on expressions
  36618. involving that value. The argument of the function is the value to
  36619. test. The function returns the integer 1 if the argument is known
  36620. to be a compile-time constant and 0 if it is not known to be a
  36621. compile-time constant. A return of 0 does not indicate that the
  36622. value is _not_ a constant, but merely that GCC cannot prove it is a
  36623. constant with the specified value of the '-O' option.
  36624. You typically use this function in an embedded application where
  36625. memory is a critical resource. If you have some complex
  36626. calculation, you may want it to be folded if it involves constants,
  36627. but need to call a function if it does not. For example:
  36628. #define Scale_Value(X) \
  36629. (__builtin_constant_p (X) \
  36630. ? ((X) * SCALE + OFFSET) : Scale (X))
  36631. You may use this built-in function in either a macro or an inline
  36632. function. However, if you use it in an inlined function and pass
  36633. an argument of the function as the argument to the built-in, GCC
  36634. never returns 1 when you call the inline function with a string
  36635. constant or compound literal (*note Compound Literals::) and does
  36636. not return 1 when you pass a constant numeric value to the inline
  36637. function unless you specify the '-O' option.
  36638. You may also use '__builtin_constant_p' in initializers for static
  36639. data. For instance, you can write
  36640. static const int table[] = {
  36641. __builtin_constant_p (EXPRESSION) ? (EXPRESSION) : -1,
  36642. /* ... */
  36643. };
  36644. This is an acceptable initializer even if EXPRESSION is not a
  36645. constant expression, including the case where
  36646. '__builtin_constant_p' returns 1 because EXPRESSION can be folded
  36647. to a constant but EXPRESSION contains operands that are not
  36648. otherwise permitted in a static initializer (for example, '0 && foo
  36649. ()'). GCC must be more conservative about evaluating the built-in
  36650. in this case, because it has no opportunity to perform
  36651. optimization.
  36652. -- Built-in Function: bool __builtin_is_constant_evaluated (void)
  36653. The '__builtin_is_constant_evaluated' function is available only in
  36654. C++. The built-in is intended to be used by implementations of the
  36655. 'std::is_constant_evaluated' C++ function. Programs should make
  36656. use of the latter function rather than invoking the built-in
  36657. directly.
  36658. The main use case of the built-in is to determine whether a
  36659. 'constexpr' function is being called in a 'constexpr' context. A
  36660. call to the function evaluates to a core constant expression with
  36661. the value 'true' if and only if it occurs within the evaluation of
  36662. an expression or conversion that is manifestly constant-evaluated
  36663. as defined in the C++ standard. Manifestly constant-evaluated
  36664. contexts include constant-expressions, the conditions of 'constexpr
  36665. if' statements, constraint-expressions, and initializers of
  36666. variables usable in constant expressions. For more details refer
  36667. to the latest revision of the C++ standard.
  36668. -- Built-in Function: void __builtin_clear_padding (PTR)
  36669. The built-in function '__builtin_clear_padding' function clears
  36670. padding bits inside of the object representation of object pointed
  36671. by PTR, which has to be a pointer. The value representation of the
  36672. object is not affected. The type of the object is assumed to be
  36673. the type the pointer points to. Inside of a union, the only
  36674. cleared bits are bits that are padding bits for all the union
  36675. members.
  36676. This built-in-function is useful if the padding bits of an object
  36677. might have intederminate values and the object representation needs
  36678. to be bitwise compared to some other object, for example for atomic
  36679. operations.
  36680. -- Built-in Function: TYPE __builtin_bit_cast (TYPE, ARG)
  36681. The '__builtin_bit_cast' function is available only in C++. The
  36682. built-in is intended to be used by implementations of the
  36683. 'std::bit_cast' C++ template function. Programs should make use of
  36684. the latter function rather than invoking the built-in directly.
  36685. This built-in function allows reinterpreting the bits of the ARG
  36686. argument as if it had type TYPE. TYPE and the type of the ARG
  36687. argument need to be trivially copyable types with the same size.
  36688. When manifestly constant-evaluated, it performs extra diagnostics
  36689. required for 'std::bit_cast' and returns a constant expression if
  36690. ARG is a constant expression. For more details refer to the latest
  36691. revision of the C++ standard.
  36692. -- Built-in Function: long __builtin_expect (long EXP, long C)
  36693. You may use '__builtin_expect' to provide the compiler with branch
  36694. prediction information. In general, you should prefer to use
  36695. actual profile feedback for this ('-fprofile-arcs'), as programmers
  36696. are notoriously bad at predicting how their programs actually
  36697. perform. However, there are applications in which this data is
  36698. hard to collect.
  36699. The return value is the value of EXP, which should be an integral
  36700. expression. The semantics of the built-in are that it is expected
  36701. that EXP == C. For example:
  36702. if (__builtin_expect (x, 0))
  36703. foo ();
  36704. indicates that we do not expect to call 'foo', since we expect 'x'
  36705. to be zero. Since you are limited to integral expressions for EXP,
  36706. you should use constructions such as
  36707. if (__builtin_expect (ptr != NULL, 1))
  36708. foo (*ptr);
  36709. when testing pointer or floating-point values.
  36710. For the purposes of branch prediction optimizations, the
  36711. probability that a '__builtin_expect' expression is 'true' is
  36712. controlled by GCC's 'builtin-expect-probability' parameter, which
  36713. defaults to 90%.
  36714. You can also use '__builtin_expect_with_probability' to explicitly
  36715. assign a probability value to individual expressions. If the
  36716. built-in is used in a loop construct, the provided probability will
  36717. influence the expected number of iterations made by loop
  36718. optimizations.
  36719. -- Built-in Function: long __builtin_expect_with_probability
  36720. (long EXP, long C, double PROBABILITY)
  36721. This function has the same semantics as '__builtin_expect', but the
  36722. caller provides the expected probability that EXP == C. The last
  36723. argument, PROBABILITY, is a floating-point value in the range 0.0
  36724. to 1.0, inclusive. The PROBABILITY argument must be constant
  36725. floating-point expression.
  36726. -- Built-in Function: void __builtin_trap (void)
  36727. This function causes the program to exit abnormally. GCC
  36728. implements this function by using a target-dependent mechanism
  36729. (such as intentionally executing an illegal instruction) or by
  36730. calling 'abort'. The mechanism used may vary from release to
  36731. release so you should not rely on any particular implementation.
  36732. -- Built-in Function: void __builtin_unreachable (void)
  36733. If control flow reaches the point of the '__builtin_unreachable',
  36734. the program is undefined. It is useful in situations where the
  36735. compiler cannot deduce the unreachability of the code.
  36736. One such case is immediately following an 'asm' statement that
  36737. either never terminates, or one that transfers control elsewhere
  36738. and never returns. In this example, without the
  36739. '__builtin_unreachable', GCC issues a warning that control reaches
  36740. the end of a non-void function. It also generates code to return
  36741. after the 'asm'.
  36742. int f (int c, int v)
  36743. {
  36744. if (c)
  36745. {
  36746. return v;
  36747. }
  36748. else
  36749. {
  36750. asm("jmp error_handler");
  36751. __builtin_unreachable ();
  36752. }
  36753. }
  36754. Because the 'asm' statement unconditionally transfers control out
  36755. of the function, control never reaches the end of the function
  36756. body. The '__builtin_unreachable' is in fact unreachable and
  36757. communicates this fact to the compiler.
  36758. Another use for '__builtin_unreachable' is following a call a
  36759. function that never returns but that is not declared
  36760. '__attribute__((noreturn))', as in this example:
  36761. void function_that_never_returns (void);
  36762. int g (int c)
  36763. {
  36764. if (c)
  36765. {
  36766. return 1;
  36767. }
  36768. else
  36769. {
  36770. function_that_never_returns ();
  36771. __builtin_unreachable ();
  36772. }
  36773. }
  36774. -- Built-in Function: void * __builtin_assume_aligned (const void *EXP,
  36775. size_t ALIGN, ...)
  36776. This function returns its first argument, and allows the compiler
  36777. to assume that the returned pointer is at least ALIGN bytes
  36778. aligned. This built-in can have either two or three arguments, if
  36779. it has three, the third argument should have integer type, and if
  36780. it is nonzero means misalignment offset. For example:
  36781. void *x = __builtin_assume_aligned (arg, 16);
  36782. means that the compiler can assume 'x', set to 'arg', is at least
  36783. 16-byte aligned, while:
  36784. void *x = __builtin_assume_aligned (arg, 32, 8);
  36785. means that the compiler can assume for 'x', set to 'arg', that
  36786. '(char *) x - 8' is 32-byte aligned.
  36787. -- Built-in Function: int __builtin_LINE ()
  36788. This function is the equivalent of the preprocessor '__LINE__'
  36789. macro and returns a constant integer expression that evaluates to
  36790. the line number of the invocation of the built-in. When used as a
  36791. C++ default argument for a function F, it returns the line number
  36792. of the call to F.
  36793. -- Built-in Function: const char * __builtin_FUNCTION ()
  36794. This function is the equivalent of the '__FUNCTION__' symbol and
  36795. returns an address constant pointing to the name of the function
  36796. from which the built-in was invoked, or the empty string if the
  36797. invocation is not at function scope. When used as a C++ default
  36798. argument for a function F, it returns the name of F's caller or the
  36799. empty string if the call was not made at function scope.
  36800. -- Built-in Function: const char * __builtin_FILE ()
  36801. This function is the equivalent of the preprocessor '__FILE__'
  36802. macro and returns an address constant pointing to the file name
  36803. containing the invocation of the built-in, or the empty string if
  36804. the invocation is not at function scope. When used as a C++
  36805. default argument for a function F, it returns the file name of the
  36806. call to F or the empty string if the call was not made at function
  36807. scope.
  36808. For example, in the following, each call to function 'foo' will
  36809. print a line similar to '"file.c:123: foo: message"' with the name
  36810. of the file and the line number of the 'printf' call, the name of
  36811. the function 'foo', followed by the word 'message'.
  36812. const char*
  36813. function (const char *func = __builtin_FUNCTION ())
  36814. {
  36815. return func;
  36816. }
  36817. void foo (void)
  36818. {
  36819. printf ("%s:%i: %s: message\n", file (), line (), function ());
  36820. }
  36821. -- Built-in Function: void __builtin___clear_cache (void *BEGIN, void
  36822. *END)
  36823. This function is used to flush the processor's instruction cache
  36824. for the region of memory between BEGIN inclusive and END exclusive.
  36825. Some targets require that the instruction cache be flushed, after
  36826. modifying memory containing code, in order to obtain deterministic
  36827. behavior.
  36828. If the target does not require instruction cache flushes,
  36829. '__builtin___clear_cache' has no effect. Otherwise either
  36830. instructions are emitted in-line to clear the instruction cache or
  36831. a call to the '__clear_cache' function in libgcc is made.
  36832. -- Built-in Function: void __builtin_prefetch (const void *ADDR, ...)
  36833. This function is used to minimize cache-miss latency by moving data
  36834. into a cache before it is accessed. You can insert calls to
  36835. '__builtin_prefetch' into code for which you know addresses of data
  36836. in memory that is likely to be accessed soon. If the target
  36837. supports them, data prefetch instructions are generated. If the
  36838. prefetch is done early enough before the access then the data will
  36839. be in the cache by the time it is accessed.
  36840. The value of ADDR is the address of the memory to prefetch. There
  36841. are two optional arguments, RW and LOCALITY. The value of RW is a
  36842. compile-time constant one or zero; one means that the prefetch is
  36843. preparing for a write to the memory address and zero, the default,
  36844. means that the prefetch is preparing for a read. The value
  36845. LOCALITY must be a compile-time constant integer between zero and
  36846. three. A value of zero means that the data has no temporal
  36847. locality, so it need not be left in the cache after the access. A
  36848. value of three means that the data has a high degree of temporal
  36849. locality and should be left in all levels of cache possible.
  36850. Values of one and two mean, respectively, a low or moderate degree
  36851. of temporal locality. The default is three.
  36852. for (i = 0; i < n; i++)
  36853. {
  36854. a[i] = a[i] + b[i];
  36855. __builtin_prefetch (&a[i+j], 1, 1);
  36856. __builtin_prefetch (&b[i+j], 0, 1);
  36857. /* ... */
  36858. }
  36859. Data prefetch does not generate faults if ADDR is invalid, but the
  36860. address expression itself must be valid. For example, a prefetch
  36861. of 'p->next' does not fault if 'p->next' is not a valid address,
  36862. but evaluation faults if 'p' is not a valid address.
  36863. If the target does not support data prefetch, the address
  36864. expression is evaluated if it includes side effects but no other
  36865. code is generated and GCC does not issue a warning.
  36866. -- Built-in Function: size_t __builtin_object_size (const void * PTR,
  36867. int TYPE)
  36868. Returns the size of an object pointed to by PTR. *Note Object Size
  36869. Checking::, for a detailed description of the function.
  36870. -- Built-in Function: double __builtin_huge_val (void)
  36871. Returns a positive infinity, if supported by the floating-point
  36872. format, else 'DBL_MAX'. This function is suitable for implementing
  36873. the ISO C macro 'HUGE_VAL'.
  36874. -- Built-in Function: float __builtin_huge_valf (void)
  36875. Similar to '__builtin_huge_val', except the return type is 'float'.
  36876. -- Built-in Function: long double __builtin_huge_vall (void)
  36877. Similar to '__builtin_huge_val', except the return type is 'long
  36878. double'.
  36879. -- Built-in Function: _FloatN __builtin_huge_valfN (void)
  36880. Similar to '__builtin_huge_val', except the return type is
  36881. '_FloatN'.
  36882. -- Built-in Function: _FloatNx __builtin_huge_valfNx (void)
  36883. Similar to '__builtin_huge_val', except the return type is
  36884. '_FloatNx'.
  36885. -- Built-in Function: int __builtin_fpclassify (int, int, int, int,
  36886. int, ...)
  36887. This built-in implements the C99 fpclassify functionality. The
  36888. first five int arguments should be the target library's notion of
  36889. the possible FP classes and are used for return values. They must
  36890. be constant values and they must appear in this order: 'FP_NAN',
  36891. 'FP_INFINITE', 'FP_NORMAL', 'FP_SUBNORMAL' and 'FP_ZERO'. The
  36892. ellipsis is for exactly one floating-point value to classify. GCC
  36893. treats the last argument as type-generic, which means it does not
  36894. do default promotion from float to double.
  36895. -- Built-in Function: double __builtin_inf (void)
  36896. Similar to '__builtin_huge_val', except a warning is generated if
  36897. the target floating-point format does not support infinities.
  36898. -- Built-in Function: _Decimal32 __builtin_infd32 (void)
  36899. Similar to '__builtin_inf', except the return type is '_Decimal32'.
  36900. -- Built-in Function: _Decimal64 __builtin_infd64 (void)
  36901. Similar to '__builtin_inf', except the return type is '_Decimal64'.
  36902. -- Built-in Function: _Decimal128 __builtin_infd128 (void)
  36903. Similar to '__builtin_inf', except the return type is
  36904. '_Decimal128'.
  36905. -- Built-in Function: float __builtin_inff (void)
  36906. Similar to '__builtin_inf', except the return type is 'float'.
  36907. This function is suitable for implementing the ISO C99 macro
  36908. 'INFINITY'.
  36909. -- Built-in Function: long double __builtin_infl (void)
  36910. Similar to '__builtin_inf', except the return type is 'long
  36911. double'.
  36912. -- Built-in Function: _FloatN __builtin_inffN (void)
  36913. Similar to '__builtin_inf', except the return type is '_FloatN'.
  36914. -- Built-in Function: _FloatN __builtin_inffNx (void)
  36915. Similar to '__builtin_inf', except the return type is '_FloatNx'.
  36916. -- Built-in Function: int __builtin_isinf_sign (...)
  36917. Similar to 'isinf', except the return value is -1 for an argument
  36918. of '-Inf' and 1 for an argument of '+Inf'. Note while the
  36919. parameter list is an ellipsis, this function only accepts exactly
  36920. one floating-point argument. GCC treats this parameter as
  36921. type-generic, which means it does not do default promotion from
  36922. float to double.
  36923. -- Built-in Function: double __builtin_nan (const char *str)
  36924. This is an implementation of the ISO C99 function 'nan'.
  36925. Since ISO C99 defines this function in terms of 'strtod', which we
  36926. do not implement, a description of the parsing is in order. The
  36927. string is parsed as by 'strtol'; that is, the base is recognized by
  36928. leading '0' or '0x' prefixes. The number parsed is placed in the
  36929. significand such that the least significant bit of the number is at
  36930. the least significant bit of the significand. The number is
  36931. truncated to fit the significand field provided. The significand
  36932. is forced to be a quiet NaN.
  36933. This function, if given a string literal all of which would have
  36934. been consumed by 'strtol', is evaluated early enough that it is
  36935. considered a compile-time constant.
  36936. -- Built-in Function: _Decimal32 __builtin_nand32 (const char *str)
  36937. Similar to '__builtin_nan', except the return type is '_Decimal32'.
  36938. -- Built-in Function: _Decimal64 __builtin_nand64 (const char *str)
  36939. Similar to '__builtin_nan', except the return type is '_Decimal64'.
  36940. -- Built-in Function: _Decimal128 __builtin_nand128 (const char *str)
  36941. Similar to '__builtin_nan', except the return type is
  36942. '_Decimal128'.
  36943. -- Built-in Function: float __builtin_nanf (const char *str)
  36944. Similar to '__builtin_nan', except the return type is 'float'.
  36945. -- Built-in Function: long double __builtin_nanl (const char *str)
  36946. Similar to '__builtin_nan', except the return type is 'long
  36947. double'.
  36948. -- Built-in Function: _FloatN __builtin_nanfN (const char *str)
  36949. Similar to '__builtin_nan', except the return type is '_FloatN'.
  36950. -- Built-in Function: _FloatNx __builtin_nanfNx (const char *str)
  36951. Similar to '__builtin_nan', except the return type is '_FloatNx'.
  36952. -- Built-in Function: double __builtin_nans (const char *str)
  36953. Similar to '__builtin_nan', except the significand is forced to be
  36954. a signaling NaN. The 'nans' function is proposed by WG14 N965.
  36955. -- Built-in Function: _Decimal32 __builtin_nansd32 (const char *str)
  36956. Similar to '__builtin_nans', except the return type is
  36957. '_Decimal32'.
  36958. -- Built-in Function: _Decimal64 __builtin_nansd64 (const char *str)
  36959. Similar to '__builtin_nans', except the return type is
  36960. '_Decimal64'.
  36961. -- Built-in Function: _Decimal128 __builtin_nansd128 (const char *str)
  36962. Similar to '__builtin_nans', except the return type is
  36963. '_Decimal128'.
  36964. -- Built-in Function: float __builtin_nansf (const char *str)
  36965. Similar to '__builtin_nans', except the return type is 'float'.
  36966. -- Built-in Function: long double __builtin_nansl (const char *str)
  36967. Similar to '__builtin_nans', except the return type is 'long
  36968. double'.
  36969. -- Built-in Function: _FloatN __builtin_nansfN (const char *str)
  36970. Similar to '__builtin_nans', except the return type is '_FloatN'.
  36971. -- Built-in Function: _FloatNx __builtin_nansfNx (const char *str)
  36972. Similar to '__builtin_nans', except the return type is '_FloatNx'.
  36973. -- Built-in Function: int __builtin_ffs (int x)
  36974. Returns one plus the index of the least significant 1-bit of X, or
  36975. if X is zero, returns zero.
  36976. -- Built-in Function: int __builtin_clz (unsigned int x)
  36977. Returns the number of leading 0-bits in X, starting at the most
  36978. significant bit position. If X is 0, the result is undefined.
  36979. -- Built-in Function: int __builtin_ctz (unsigned int x)
  36980. Returns the number of trailing 0-bits in X, starting at the least
  36981. significant bit position. If X is 0, the result is undefined.
  36982. -- Built-in Function: int __builtin_clrsb (int x)
  36983. Returns the number of leading redundant sign bits in X, i.e. the
  36984. number of bits following the most significant bit that are
  36985. identical to it. There are no special cases for 0 or other values.
  36986. -- Built-in Function: int __builtin_popcount (unsigned int x)
  36987. Returns the number of 1-bits in X.
  36988. -- Built-in Function: int __builtin_parity (unsigned int x)
  36989. Returns the parity of X, i.e. the number of 1-bits in X modulo 2.
  36990. -- Built-in Function: int __builtin_ffsl (long)
  36991. Similar to '__builtin_ffs', except the argument type is 'long'.
  36992. -- Built-in Function: int __builtin_clzl (unsigned long)
  36993. Similar to '__builtin_clz', except the argument type is 'unsigned
  36994. long'.
  36995. -- Built-in Function: int __builtin_ctzl (unsigned long)
  36996. Similar to '__builtin_ctz', except the argument type is 'unsigned
  36997. long'.
  36998. -- Built-in Function: int __builtin_clrsbl (long)
  36999. Similar to '__builtin_clrsb', except the argument type is 'long'.
  37000. -- Built-in Function: int __builtin_popcountl (unsigned long)
  37001. Similar to '__builtin_popcount', except the argument type is
  37002. 'unsigned long'.
  37003. -- Built-in Function: int __builtin_parityl (unsigned long)
  37004. Similar to '__builtin_parity', except the argument type is
  37005. 'unsigned long'.
  37006. -- Built-in Function: int __builtin_ffsll (long long)
  37007. Similar to '__builtin_ffs', except the argument type is 'long
  37008. long'.
  37009. -- Built-in Function: int __builtin_clzll (unsigned long long)
  37010. Similar to '__builtin_clz', except the argument type is 'unsigned
  37011. long long'.
  37012. -- Built-in Function: int __builtin_ctzll (unsigned long long)
  37013. Similar to '__builtin_ctz', except the argument type is 'unsigned
  37014. long long'.
  37015. -- Built-in Function: int __builtin_clrsbll (long long)
  37016. Similar to '__builtin_clrsb', except the argument type is 'long
  37017. long'.
  37018. -- Built-in Function: int __builtin_popcountll (unsigned long long)
  37019. Similar to '__builtin_popcount', except the argument type is
  37020. 'unsigned long long'.
  37021. -- Built-in Function: int __builtin_parityll (unsigned long long)
  37022. Similar to '__builtin_parity', except the argument type is
  37023. 'unsigned long long'.
  37024. -- Built-in Function: double __builtin_powi (double, int)
  37025. Returns the first argument raised to the power of the second.
  37026. Unlike the 'pow' function no guarantees about precision and
  37027. rounding are made.
  37028. -- Built-in Function: float __builtin_powif (float, int)
  37029. Similar to '__builtin_powi', except the argument and return types
  37030. are 'float'.
  37031. -- Built-in Function: long double __builtin_powil (long double, int)
  37032. Similar to '__builtin_powi', except the argument and return types
  37033. are 'long double'.
  37034. -- Built-in Function: uint16_t __builtin_bswap16 (uint16_t x)
  37035. Returns X with the order of the bytes reversed; for example,
  37036. '0xaabb' becomes '0xbbaa'. Byte here always means exactly 8 bits.
  37037. -- Built-in Function: uint32_t __builtin_bswap32 (uint32_t x)
  37038. Similar to '__builtin_bswap16', except the argument and return
  37039. types are 32-bit.
  37040. -- Built-in Function: uint64_t __builtin_bswap64 (uint64_t x)
  37041. Similar to '__builtin_bswap32', except the argument and return
  37042. types are 64-bit.
  37043. -- Built-in Function: uint128_t __builtin_bswap128 (uint128_t x)
  37044. Similar to '__builtin_bswap64', except the argument and return
  37045. types are 128-bit. Only supported on targets when 128-bit types
  37046. are supported.
  37047. -- Built-in Function: Pmode __builtin_extend_pointer (void * x)
  37048. On targets where the user visible pointer size is smaller than the
  37049. size of an actual hardware address this function returns the
  37050. extended user pointer. Targets where this is true included ILP32
  37051. mode on x86_64 or Aarch64. This function is mainly useful when
  37052. writing inline assembly code.
  37053. -- Built-in Function: int __builtin_goacc_parlevel_id (int x)
  37054. Returns the openacc gang, worker or vector id depending on whether
  37055. X is 0, 1 or 2.
  37056. -- Built-in Function: int __builtin_goacc_parlevel_size (int x)
  37057. Returns the openacc gang, worker or vector size depending on
  37058. whether X is 0, 1 or 2.
  37059. 
  37060. File: gcc.info, Node: Target Builtins, Next: Target Format Checks, Prev: Other Builtins, Up: C Extensions
  37061. 6.60 Built-in Functions Specific to Particular Target Machines
  37062. ==============================================================
  37063. On some target machines, GCC supports many built-in functions specific
  37064. to those machines. Generally these generate calls to specific machine
  37065. instructions, but allow the compiler to schedule those calls.
  37066. * Menu:
  37067. * AArch64 Built-in Functions::
  37068. * Alpha Built-in Functions::
  37069. * Altera Nios II Built-in Functions::
  37070. * ARC Built-in Functions::
  37071. * ARC SIMD Built-in Functions::
  37072. * ARM iWMMXt Built-in Functions::
  37073. * ARM C Language Extensions (ACLE)::
  37074. * ARM Floating Point Status and Control Intrinsics::
  37075. * ARM ARMv8-M Security Extensions::
  37076. * AVR Built-in Functions::
  37077. * Blackfin Built-in Functions::
  37078. * BPF Built-in Functions::
  37079. * FR-V Built-in Functions::
  37080. * MIPS DSP Built-in Functions::
  37081. * MIPS Paired-Single Support::
  37082. * MIPS Loongson Built-in Functions::
  37083. * MIPS SIMD Architecture (MSA) Support::
  37084. * Other MIPS Built-in Functions::
  37085. * MSP430 Built-in Functions::
  37086. * NDS32 Built-in Functions::
  37087. * picoChip Built-in Functions::
  37088. * Basic PowerPC Built-in Functions::
  37089. * PowerPC AltiVec/VSX Built-in Functions::
  37090. * PowerPC Hardware Transactional Memory Built-in Functions::
  37091. * PowerPC Atomic Memory Operation Functions::
  37092. * PowerPC Matrix-Multiply Assist Built-in Functions::
  37093. * PRU Built-in Functions::
  37094. * RISC-V Built-in Functions::
  37095. * RX Built-in Functions::
  37096. * S/390 System z Built-in Functions::
  37097. * SH Built-in Functions::
  37098. * SPARC VIS Built-in Functions::
  37099. * TI C6X Built-in Functions::
  37100. * TILE-Gx Built-in Functions::
  37101. * TILEPro Built-in Functions::
  37102. * x86 Built-in Functions::
  37103. * x86 transactional memory intrinsics::
  37104. * x86 control-flow protection intrinsics::
  37105. 
  37106. File: gcc.info, Node: AArch64 Built-in Functions, Next: Alpha Built-in Functions, Up: Target Builtins
  37107. 6.60.1 AArch64 Built-in Functions
  37108. ---------------------------------
  37109. These built-in functions are available for the AArch64 family of
  37110. processors.
  37111. unsigned int __builtin_aarch64_get_fpcr ()
  37112. void __builtin_aarch64_set_fpcr (unsigned int)
  37113. unsigned int __builtin_aarch64_get_fpsr ()
  37114. void __builtin_aarch64_set_fpsr (unsigned int)
  37115. unsigned long long __builtin_aarch64_get_fpcr64 ()
  37116. void __builtin_aarch64_set_fpcr64 (unsigned long long)
  37117. unsigned long long __builtin_aarch64_get_fpsr64 ()
  37118. void __builtin_aarch64_set_fpsr64 (unsigned long long)
  37119. 
  37120. File: gcc.info, Node: Alpha Built-in Functions, Next: Altera Nios II Built-in Functions, Prev: AArch64 Built-in Functions, Up: Target Builtins
  37121. 6.60.2 Alpha Built-in Functions
  37122. -------------------------------
  37123. These built-in functions are available for the Alpha family of
  37124. processors, depending on the command-line switches used.
  37125. The following built-in functions are always available. They all
  37126. generate the machine instruction that is part of the name.
  37127. long __builtin_alpha_implver (void)
  37128. long __builtin_alpha_rpcc (void)
  37129. long __builtin_alpha_amask (long)
  37130. long __builtin_alpha_cmpbge (long, long)
  37131. long __builtin_alpha_extbl (long, long)
  37132. long __builtin_alpha_extwl (long, long)
  37133. long __builtin_alpha_extll (long, long)
  37134. long __builtin_alpha_extql (long, long)
  37135. long __builtin_alpha_extwh (long, long)
  37136. long __builtin_alpha_extlh (long, long)
  37137. long __builtin_alpha_extqh (long, long)
  37138. long __builtin_alpha_insbl (long, long)
  37139. long __builtin_alpha_inswl (long, long)
  37140. long __builtin_alpha_insll (long, long)
  37141. long __builtin_alpha_insql (long, long)
  37142. long __builtin_alpha_inswh (long, long)
  37143. long __builtin_alpha_inslh (long, long)
  37144. long __builtin_alpha_insqh (long, long)
  37145. long __builtin_alpha_mskbl (long, long)
  37146. long __builtin_alpha_mskwl (long, long)
  37147. long __builtin_alpha_mskll (long, long)
  37148. long __builtin_alpha_mskql (long, long)
  37149. long __builtin_alpha_mskwh (long, long)
  37150. long __builtin_alpha_msklh (long, long)
  37151. long __builtin_alpha_mskqh (long, long)
  37152. long __builtin_alpha_umulh (long, long)
  37153. long __builtin_alpha_zap (long, long)
  37154. long __builtin_alpha_zapnot (long, long)
  37155. The following built-in functions are always with '-mmax' or '-mcpu=CPU'
  37156. where CPU is 'pca56' or later. They all generate the machine
  37157. instruction that is part of the name.
  37158. long __builtin_alpha_pklb (long)
  37159. long __builtin_alpha_pkwb (long)
  37160. long __builtin_alpha_unpkbl (long)
  37161. long __builtin_alpha_unpkbw (long)
  37162. long __builtin_alpha_minub8 (long, long)
  37163. long __builtin_alpha_minsb8 (long, long)
  37164. long __builtin_alpha_minuw4 (long, long)
  37165. long __builtin_alpha_minsw4 (long, long)
  37166. long __builtin_alpha_maxub8 (long, long)
  37167. long __builtin_alpha_maxsb8 (long, long)
  37168. long __builtin_alpha_maxuw4 (long, long)
  37169. long __builtin_alpha_maxsw4 (long, long)
  37170. long __builtin_alpha_perr (long, long)
  37171. The following built-in functions are always with '-mcix' or '-mcpu=CPU'
  37172. where CPU is 'ev67' or later. They all generate the machine instruction
  37173. that is part of the name.
  37174. long __builtin_alpha_cttz (long)
  37175. long __builtin_alpha_ctlz (long)
  37176. long __builtin_alpha_ctpop (long)
  37177. The following built-in functions are available on systems that use the
  37178. OSF/1 PALcode. Normally they invoke the 'rduniq' and 'wruniq' PAL
  37179. calls, but when invoked with '-mtls-kernel', they invoke 'rdval' and
  37180. 'wrval'.
  37181. void *__builtin_thread_pointer (void)
  37182. void __builtin_set_thread_pointer (void *)
  37183. 
  37184. File: gcc.info, Node: Altera Nios II Built-in Functions, Next: ARC Built-in Functions, Prev: Alpha Built-in Functions, Up: Target Builtins
  37185. 6.60.3 Altera Nios II Built-in Functions
  37186. ----------------------------------------
  37187. These built-in functions are available for the Altera Nios II family of
  37188. processors.
  37189. The following built-in functions are always available. They all
  37190. generate the machine instruction that is part of the name.
  37191. int __builtin_ldbio (volatile const void *)
  37192. int __builtin_ldbuio (volatile const void *)
  37193. int __builtin_ldhio (volatile const void *)
  37194. int __builtin_ldhuio (volatile const void *)
  37195. int __builtin_ldwio (volatile const void *)
  37196. void __builtin_stbio (volatile void *, int)
  37197. void __builtin_sthio (volatile void *, int)
  37198. void __builtin_stwio (volatile void *, int)
  37199. void __builtin_sync (void)
  37200. int __builtin_rdctl (int)
  37201. int __builtin_rdprs (int, int)
  37202. void __builtin_wrctl (int, int)
  37203. void __builtin_flushd (volatile void *)
  37204. void __builtin_flushda (volatile void *)
  37205. int __builtin_wrpie (int);
  37206. void __builtin_eni (int);
  37207. int __builtin_ldex (volatile const void *)
  37208. int __builtin_stex (volatile void *, int)
  37209. int __builtin_ldsex (volatile const void *)
  37210. int __builtin_stsex (volatile void *, int)
  37211. The following built-in functions are always available. They all
  37212. generate a Nios II Custom Instruction. The name of the function
  37213. represents the types that the function takes and returns. The letter
  37214. before the 'n' is the return type or void if absent. The 'n' represents
  37215. the first parameter to all the custom instructions, the custom
  37216. instruction number. The two letters after the 'n' represent the up to
  37217. two parameters to the function.
  37218. The letters represent the following data types:
  37219. '<no letter>'
  37220. 'void' for return type and no parameter for parameter types.
  37221. 'i'
  37222. 'int' for return type and parameter type
  37223. 'f'
  37224. 'float' for return type and parameter type
  37225. 'p'
  37226. 'void *' for return type and parameter type
  37227. And the function names are:
  37228. void __builtin_custom_n (void)
  37229. void __builtin_custom_ni (int)
  37230. void __builtin_custom_nf (float)
  37231. void __builtin_custom_np (void *)
  37232. void __builtin_custom_nii (int, int)
  37233. void __builtin_custom_nif (int, float)
  37234. void __builtin_custom_nip (int, void *)
  37235. void __builtin_custom_nfi (float, int)
  37236. void __builtin_custom_nff (float, float)
  37237. void __builtin_custom_nfp (float, void *)
  37238. void __builtin_custom_npi (void *, int)
  37239. void __builtin_custom_npf (void *, float)
  37240. void __builtin_custom_npp (void *, void *)
  37241. int __builtin_custom_in (void)
  37242. int __builtin_custom_ini (int)
  37243. int __builtin_custom_inf (float)
  37244. int __builtin_custom_inp (void *)
  37245. int __builtin_custom_inii (int, int)
  37246. int __builtin_custom_inif (int, float)
  37247. int __builtin_custom_inip (int, void *)
  37248. int __builtin_custom_infi (float, int)
  37249. int __builtin_custom_inff (float, float)
  37250. int __builtin_custom_infp (float, void *)
  37251. int __builtin_custom_inpi (void *, int)
  37252. int __builtin_custom_inpf (void *, float)
  37253. int __builtin_custom_inpp (void *, void *)
  37254. float __builtin_custom_fn (void)
  37255. float __builtin_custom_fni (int)
  37256. float __builtin_custom_fnf (float)
  37257. float __builtin_custom_fnp (void *)
  37258. float __builtin_custom_fnii (int, int)
  37259. float __builtin_custom_fnif (int, float)
  37260. float __builtin_custom_fnip (int, void *)
  37261. float __builtin_custom_fnfi (float, int)
  37262. float __builtin_custom_fnff (float, float)
  37263. float __builtin_custom_fnfp (float, void *)
  37264. float __builtin_custom_fnpi (void *, int)
  37265. float __builtin_custom_fnpf (void *, float)
  37266. float __builtin_custom_fnpp (void *, void *)
  37267. void * __builtin_custom_pn (void)
  37268. void * __builtin_custom_pni (int)
  37269. void * __builtin_custom_pnf (float)
  37270. void * __builtin_custom_pnp (void *)
  37271. void * __builtin_custom_pnii (int, int)
  37272. void * __builtin_custom_pnif (int, float)
  37273. void * __builtin_custom_pnip (int, void *)
  37274. void * __builtin_custom_pnfi (float, int)
  37275. void * __builtin_custom_pnff (float, float)
  37276. void * __builtin_custom_pnfp (float, void *)
  37277. void * __builtin_custom_pnpi (void *, int)
  37278. void * __builtin_custom_pnpf (void *, float)
  37279. void * __builtin_custom_pnpp (void *, void *)
  37280. 
  37281. File: gcc.info, Node: ARC Built-in Functions, Next: ARC SIMD Built-in Functions, Prev: Altera Nios II Built-in Functions, Up: Target Builtins
  37282. 6.60.4 ARC Built-in Functions
  37283. -----------------------------
  37284. The following built-in functions are provided for ARC targets. The
  37285. built-ins generate the corresponding assembly instructions. In the
  37286. examples given below, the generated code often requires an operand or
  37287. result to be in a register. Where necessary further code will be
  37288. generated to ensure this is true, but for brevity this is not described
  37289. in each case.
  37290. _Note:_ Using a built-in to generate an instruction not supported by a
  37291. target may cause problems. At present the compiler is not guaranteed to
  37292. detect such misuse, and as a result an internal compiler error may be
  37293. generated.
  37294. -- Built-in Function: int __builtin_arc_aligned (void *VAL, int
  37295. ALIGNVAL)
  37296. Return 1 if VAL is known to have the byte alignment given by
  37297. ALIGNVAL, otherwise return 0. Note that this is different from
  37298. __alignof__(*(char *)VAL) >= alignval
  37299. because __alignof__ sees only the type of the dereference, whereas
  37300. __builtin_arc_align uses alignment information from the pointer as
  37301. well as from the pointed-to type. The information available will
  37302. depend on optimization level.
  37303. -- Built-in Function: void __builtin_arc_brk (void)
  37304. Generates
  37305. brk
  37306. -- Built-in Function: unsigned int __builtin_arc_core_read (unsigned
  37307. int REGNO)
  37308. The operand is the number of a register to be read. Generates:
  37309. mov DEST, rREGNO
  37310. where the value in DEST will be the result returned from the
  37311. built-in.
  37312. -- Built-in Function: void __builtin_arc_core_write (unsigned int
  37313. REGNO, unsigned int VAL)
  37314. The first operand is the number of a register to be written, the
  37315. second operand is a compile time constant to write into that
  37316. register. Generates:
  37317. mov rREGNO, VAL
  37318. -- Built-in Function: int __builtin_arc_divaw (int A, int B)
  37319. Only available if either '-mcpu=ARC700' or '-meA' is set.
  37320. Generates:
  37321. divaw DEST, A, B
  37322. where the value in DEST will be the result returned from the
  37323. built-in.
  37324. -- Built-in Function: void __builtin_arc_flag (unsigned int A)
  37325. Generates
  37326. flag A
  37327. -- Built-in Function: unsigned int __builtin_arc_lr (unsigned int AUXR)
  37328. The operand, AUXV, is the address of an auxiliary register and must
  37329. be a compile time constant. Generates:
  37330. lr DEST, [AUXR]
  37331. Where the value in DEST will be the result returned from the
  37332. built-in.
  37333. -- Built-in Function: void __builtin_arc_mul64 (int A, int B)
  37334. Only available with '-mmul64'. Generates:
  37335. mul64 A, B
  37336. -- Built-in Function: void __builtin_arc_mulu64 (unsigned int A,
  37337. unsigned int B)
  37338. Only available with '-mmul64'. Generates:
  37339. mulu64 A, B
  37340. -- Built-in Function: void __builtin_arc_nop (void)
  37341. Generates:
  37342. nop
  37343. -- Built-in Function: int __builtin_arc_norm (int SRC)
  37344. Only valid if the 'norm' instruction is available through the
  37345. '-mnorm' option or by default with '-mcpu=ARC700'. Generates:
  37346. norm DEST, SRC
  37347. Where the value in DEST will be the result returned from the
  37348. built-in.
  37349. -- Built-in Function: short int __builtin_arc_normw (short int SRC)
  37350. Only valid if the 'normw' instruction is available through the
  37351. '-mnorm' option or by default with '-mcpu=ARC700'. Generates:
  37352. normw DEST, SRC
  37353. Where the value in DEST will be the result returned from the
  37354. built-in.
  37355. -- Built-in Function: void __builtin_arc_rtie (void)
  37356. Generates:
  37357. rtie
  37358. -- Built-in Function: void __builtin_arc_sleep (int A
  37359. Generates:
  37360. sleep A
  37361. -- Built-in Function: void __builtin_arc_sr (unsigned int AUXR,
  37362. unsigned int VAL)
  37363. The first argument, AUXV, is the address of an auxiliary register,
  37364. the second argument, VAL, is a compile time constant to be written
  37365. to the register. Generates:
  37366. sr AUXR, [VAL]
  37367. -- Built-in Function: int __builtin_arc_swap (int SRC)
  37368. Only valid with '-mswap'. Generates:
  37369. swap DEST, SRC
  37370. Where the value in DEST will be the result returned from the
  37371. built-in.
  37372. -- Built-in Function: void __builtin_arc_swi (void)
  37373. Generates:
  37374. swi
  37375. -- Built-in Function: void __builtin_arc_sync (void)
  37376. Only available with '-mcpu=ARC700'. Generates:
  37377. sync
  37378. -- Built-in Function: void __builtin_arc_trap_s (unsigned int C)
  37379. Only available with '-mcpu=ARC700'. Generates:
  37380. trap_s C
  37381. -- Built-in Function: void __builtin_arc_unimp_s (void)
  37382. Only available with '-mcpu=ARC700'. Generates:
  37383. unimp_s
  37384. The instructions generated by the following builtins are not considered
  37385. as candidates for scheduling. They are not moved around by the compiler
  37386. during scheduling, and thus can be expected to appear where they are put
  37387. in the C code:
  37388. __builtin_arc_brk()
  37389. __builtin_arc_core_read()
  37390. __builtin_arc_core_write()
  37391. __builtin_arc_flag()
  37392. __builtin_arc_lr()
  37393. __builtin_arc_sleep()
  37394. __builtin_arc_sr()
  37395. __builtin_arc_swi()
  37396. 
  37397. File: gcc.info, Node: ARC SIMD Built-in Functions, Next: ARM iWMMXt Built-in Functions, Prev: ARC Built-in Functions, Up: Target Builtins
  37398. 6.60.5 ARC SIMD Built-in Functions
  37399. ----------------------------------
  37400. SIMD builtins provided by the compiler can be used to generate the
  37401. vector instructions. This section describes the available builtins and
  37402. their usage in programs. With the '-msimd' option, the compiler
  37403. provides 128-bit vector types, which can be specified using the
  37404. 'vector_size' attribute. The header file 'arc-simd.h' can be included
  37405. to use the following predefined types:
  37406. typedef int __v4si __attribute__((vector_size(16)));
  37407. typedef short __v8hi __attribute__((vector_size(16)));
  37408. These types can be used to define 128-bit variables. The built-in
  37409. functions listed in the following section can be used on these variables
  37410. to generate the vector operations.
  37411. For all builtins, '__builtin_arc_SOMEINSN', the header file
  37412. 'arc-simd.h' also provides equivalent macros called '_SOMEINSN' that can
  37413. be used for programming ease and improved readability. The following
  37414. macros for DMA control are also provided:
  37415. #define _setup_dma_in_channel_reg _vdiwr
  37416. #define _setup_dma_out_channel_reg _vdowr
  37417. The following is a complete list of all the SIMD built-ins provided for
  37418. ARC, grouped by calling signature.
  37419. The following take two '__v8hi' arguments and return a '__v8hi' result:
  37420. __v8hi __builtin_arc_vaddaw (__v8hi, __v8hi)
  37421. __v8hi __builtin_arc_vaddw (__v8hi, __v8hi)
  37422. __v8hi __builtin_arc_vand (__v8hi, __v8hi)
  37423. __v8hi __builtin_arc_vandaw (__v8hi, __v8hi)
  37424. __v8hi __builtin_arc_vavb (__v8hi, __v8hi)
  37425. __v8hi __builtin_arc_vavrb (__v8hi, __v8hi)
  37426. __v8hi __builtin_arc_vbic (__v8hi, __v8hi)
  37427. __v8hi __builtin_arc_vbicaw (__v8hi, __v8hi)
  37428. __v8hi __builtin_arc_vdifaw (__v8hi, __v8hi)
  37429. __v8hi __builtin_arc_vdifw (__v8hi, __v8hi)
  37430. __v8hi __builtin_arc_veqw (__v8hi, __v8hi)
  37431. __v8hi __builtin_arc_vh264f (__v8hi, __v8hi)
  37432. __v8hi __builtin_arc_vh264ft (__v8hi, __v8hi)
  37433. __v8hi __builtin_arc_vh264fw (__v8hi, __v8hi)
  37434. __v8hi __builtin_arc_vlew (__v8hi, __v8hi)
  37435. __v8hi __builtin_arc_vltw (__v8hi, __v8hi)
  37436. __v8hi __builtin_arc_vmaxaw (__v8hi, __v8hi)
  37437. __v8hi __builtin_arc_vmaxw (__v8hi, __v8hi)
  37438. __v8hi __builtin_arc_vminaw (__v8hi, __v8hi)
  37439. __v8hi __builtin_arc_vminw (__v8hi, __v8hi)
  37440. __v8hi __builtin_arc_vmr1aw (__v8hi, __v8hi)
  37441. __v8hi __builtin_arc_vmr1w (__v8hi, __v8hi)
  37442. __v8hi __builtin_arc_vmr2aw (__v8hi, __v8hi)
  37443. __v8hi __builtin_arc_vmr2w (__v8hi, __v8hi)
  37444. __v8hi __builtin_arc_vmr3aw (__v8hi, __v8hi)
  37445. __v8hi __builtin_arc_vmr3w (__v8hi, __v8hi)
  37446. __v8hi __builtin_arc_vmr4aw (__v8hi, __v8hi)
  37447. __v8hi __builtin_arc_vmr4w (__v8hi, __v8hi)
  37448. __v8hi __builtin_arc_vmr5aw (__v8hi, __v8hi)
  37449. __v8hi __builtin_arc_vmr5w (__v8hi, __v8hi)
  37450. __v8hi __builtin_arc_vmr6aw (__v8hi, __v8hi)
  37451. __v8hi __builtin_arc_vmr6w (__v8hi, __v8hi)
  37452. __v8hi __builtin_arc_vmr7aw (__v8hi, __v8hi)
  37453. __v8hi __builtin_arc_vmr7w (__v8hi, __v8hi)
  37454. __v8hi __builtin_arc_vmrb (__v8hi, __v8hi)
  37455. __v8hi __builtin_arc_vmulaw (__v8hi, __v8hi)
  37456. __v8hi __builtin_arc_vmulfaw (__v8hi, __v8hi)
  37457. __v8hi __builtin_arc_vmulfw (__v8hi, __v8hi)
  37458. __v8hi __builtin_arc_vmulw (__v8hi, __v8hi)
  37459. __v8hi __builtin_arc_vnew (__v8hi, __v8hi)
  37460. __v8hi __builtin_arc_vor (__v8hi, __v8hi)
  37461. __v8hi __builtin_arc_vsubaw (__v8hi, __v8hi)
  37462. __v8hi __builtin_arc_vsubw (__v8hi, __v8hi)
  37463. __v8hi __builtin_arc_vsummw (__v8hi, __v8hi)
  37464. __v8hi __builtin_arc_vvc1f (__v8hi, __v8hi)
  37465. __v8hi __builtin_arc_vvc1ft (__v8hi, __v8hi)
  37466. __v8hi __builtin_arc_vxor (__v8hi, __v8hi)
  37467. __v8hi __builtin_arc_vxoraw (__v8hi, __v8hi)
  37468. The following take one '__v8hi' and one 'int' argument and return a
  37469. '__v8hi' result:
  37470. __v8hi __builtin_arc_vbaddw (__v8hi, int)
  37471. __v8hi __builtin_arc_vbmaxw (__v8hi, int)
  37472. __v8hi __builtin_arc_vbminw (__v8hi, int)
  37473. __v8hi __builtin_arc_vbmulaw (__v8hi, int)
  37474. __v8hi __builtin_arc_vbmulfw (__v8hi, int)
  37475. __v8hi __builtin_arc_vbmulw (__v8hi, int)
  37476. __v8hi __builtin_arc_vbrsubw (__v8hi, int)
  37477. __v8hi __builtin_arc_vbsubw (__v8hi, int)
  37478. The following take one '__v8hi' argument and one 'int' argument which
  37479. must be a 3-bit compile time constant indicating a register number
  37480. I0-I7. They return a '__v8hi' result.
  37481. __v8hi __builtin_arc_vasrw (__v8hi, const int)
  37482. __v8hi __builtin_arc_vsr8 (__v8hi, const int)
  37483. __v8hi __builtin_arc_vsr8aw (__v8hi, const int)
  37484. The following take one '__v8hi' argument and one 'int' argument which
  37485. must be a 6-bit compile time constant. They return a '__v8hi' result.
  37486. __v8hi __builtin_arc_vasrpwbi (__v8hi, const int)
  37487. __v8hi __builtin_arc_vasrrpwbi (__v8hi, const int)
  37488. __v8hi __builtin_arc_vasrrwi (__v8hi, const int)
  37489. __v8hi __builtin_arc_vasrsrwi (__v8hi, const int)
  37490. __v8hi __builtin_arc_vasrwi (__v8hi, const int)
  37491. __v8hi __builtin_arc_vsr8awi (__v8hi, const int)
  37492. __v8hi __builtin_arc_vsr8i (__v8hi, const int)
  37493. The following take one '__v8hi' argument and one 'int' argument which
  37494. must be a 8-bit compile time constant. They return a '__v8hi' result.
  37495. __v8hi __builtin_arc_vd6tapf (__v8hi, const int)
  37496. __v8hi __builtin_arc_vmvaw (__v8hi, const int)
  37497. __v8hi __builtin_arc_vmvw (__v8hi, const int)
  37498. __v8hi __builtin_arc_vmvzw (__v8hi, const int)
  37499. The following take two 'int' arguments, the second of which which must
  37500. be a 8-bit compile time constant. They return a '__v8hi' result:
  37501. __v8hi __builtin_arc_vmovaw (int, const int)
  37502. __v8hi __builtin_arc_vmovw (int, const int)
  37503. __v8hi __builtin_arc_vmovzw (int, const int)
  37504. The following take a single '__v8hi' argument and return a '__v8hi'
  37505. result:
  37506. __v8hi __builtin_arc_vabsaw (__v8hi)
  37507. __v8hi __builtin_arc_vabsw (__v8hi)
  37508. __v8hi __builtin_arc_vaddsuw (__v8hi)
  37509. __v8hi __builtin_arc_vexch1 (__v8hi)
  37510. __v8hi __builtin_arc_vexch2 (__v8hi)
  37511. __v8hi __builtin_arc_vexch4 (__v8hi)
  37512. __v8hi __builtin_arc_vsignw (__v8hi)
  37513. __v8hi __builtin_arc_vupbaw (__v8hi)
  37514. __v8hi __builtin_arc_vupbw (__v8hi)
  37515. __v8hi __builtin_arc_vupsbaw (__v8hi)
  37516. __v8hi __builtin_arc_vupsbw (__v8hi)
  37517. The following take two 'int' arguments and return no result:
  37518. void __builtin_arc_vdirun (int, int)
  37519. void __builtin_arc_vdorun (int, int)
  37520. The following take two 'int' arguments and return no result. The first
  37521. argument must a 3-bit compile time constant indicating one of the
  37522. DR0-DR7 DMA setup channels:
  37523. void __builtin_arc_vdiwr (const int, int)
  37524. void __builtin_arc_vdowr (const int, int)
  37525. The following take an 'int' argument and return no result:
  37526. void __builtin_arc_vendrec (int)
  37527. void __builtin_arc_vrec (int)
  37528. void __builtin_arc_vrecrun (int)
  37529. void __builtin_arc_vrun (int)
  37530. The following take a '__v8hi' argument and two 'int' arguments and
  37531. return a '__v8hi' result. The second argument must be a 3-bit compile
  37532. time constants, indicating one the registers I0-I7, and the third
  37533. argument must be an 8-bit compile time constant.
  37534. _Note:_ Although the equivalent hardware instructions do not take an
  37535. SIMD register as an operand, these builtins overwrite the relevant bits
  37536. of the '__v8hi' register provided as the first argument with the value
  37537. loaded from the '[Ib, u8]' location in the SDM.
  37538. __v8hi __builtin_arc_vld32 (__v8hi, const int, const int)
  37539. __v8hi __builtin_arc_vld32wh (__v8hi, const int, const int)
  37540. __v8hi __builtin_arc_vld32wl (__v8hi, const int, const int)
  37541. __v8hi __builtin_arc_vld64 (__v8hi, const int, const int)
  37542. The following take two 'int' arguments and return a '__v8hi' result.
  37543. The first argument must be a 3-bit compile time constants, indicating
  37544. one the registers I0-I7, and the second argument must be an 8-bit
  37545. compile time constant.
  37546. __v8hi __builtin_arc_vld128 (const int, const int)
  37547. __v8hi __builtin_arc_vld64w (const int, const int)
  37548. The following take a '__v8hi' argument and two 'int' arguments and
  37549. return no result. The second argument must be a 3-bit compile time
  37550. constants, indicating one the registers I0-I7, and the third argument
  37551. must be an 8-bit compile time constant.
  37552. void __builtin_arc_vst128 (__v8hi, const int, const int)
  37553. void __builtin_arc_vst64 (__v8hi, const int, const int)
  37554. The following take a '__v8hi' argument and three 'int' arguments and
  37555. return no result. The second argument must be a 3-bit compile-time
  37556. constant, identifying the 16-bit sub-register to be stored, the third
  37557. argument must be a 3-bit compile time constants, indicating one the
  37558. registers I0-I7, and the fourth argument must be an 8-bit compile time
  37559. constant.
  37560. void __builtin_arc_vst16_n (__v8hi, const int, const int, const int)
  37561. void __builtin_arc_vst32_n (__v8hi, const int, const int, const int)
  37562. 
  37563. File: gcc.info, Node: ARM iWMMXt Built-in Functions, Next: ARM C Language Extensions (ACLE), Prev: ARC SIMD Built-in Functions, Up: Target Builtins
  37564. 6.60.6 ARM iWMMXt Built-in Functions
  37565. ------------------------------------
  37566. These built-in functions are available for the ARM family of processors
  37567. when the '-mcpu=iwmmxt' switch is used:
  37568. typedef int v2si __attribute__ ((vector_size (8)));
  37569. typedef short v4hi __attribute__ ((vector_size (8)));
  37570. typedef char v8qi __attribute__ ((vector_size (8)));
  37571. int __builtin_arm_getwcgr0 (void)
  37572. void __builtin_arm_setwcgr0 (int)
  37573. int __builtin_arm_getwcgr1 (void)
  37574. void __builtin_arm_setwcgr1 (int)
  37575. int __builtin_arm_getwcgr2 (void)
  37576. void __builtin_arm_setwcgr2 (int)
  37577. int __builtin_arm_getwcgr3 (void)
  37578. void __builtin_arm_setwcgr3 (int)
  37579. int __builtin_arm_textrmsb (v8qi, int)
  37580. int __builtin_arm_textrmsh (v4hi, int)
  37581. int __builtin_arm_textrmsw (v2si, int)
  37582. int __builtin_arm_textrmub (v8qi, int)
  37583. int __builtin_arm_textrmuh (v4hi, int)
  37584. int __builtin_arm_textrmuw (v2si, int)
  37585. v8qi __builtin_arm_tinsrb (v8qi, int, int)
  37586. v4hi __builtin_arm_tinsrh (v4hi, int, int)
  37587. v2si __builtin_arm_tinsrw (v2si, int, int)
  37588. long long __builtin_arm_tmia (long long, int, int)
  37589. long long __builtin_arm_tmiabb (long long, int, int)
  37590. long long __builtin_arm_tmiabt (long long, int, int)
  37591. long long __builtin_arm_tmiaph (long long, int, int)
  37592. long long __builtin_arm_tmiatb (long long, int, int)
  37593. long long __builtin_arm_tmiatt (long long, int, int)
  37594. int __builtin_arm_tmovmskb (v8qi)
  37595. int __builtin_arm_tmovmskh (v4hi)
  37596. int __builtin_arm_tmovmskw (v2si)
  37597. long long __builtin_arm_waccb (v8qi)
  37598. long long __builtin_arm_wacch (v4hi)
  37599. long long __builtin_arm_waccw (v2si)
  37600. v8qi __builtin_arm_waddb (v8qi, v8qi)
  37601. v8qi __builtin_arm_waddbss (v8qi, v8qi)
  37602. v8qi __builtin_arm_waddbus (v8qi, v8qi)
  37603. v4hi __builtin_arm_waddh (v4hi, v4hi)
  37604. v4hi __builtin_arm_waddhss (v4hi, v4hi)
  37605. v4hi __builtin_arm_waddhus (v4hi, v4hi)
  37606. v2si __builtin_arm_waddw (v2si, v2si)
  37607. v2si __builtin_arm_waddwss (v2si, v2si)
  37608. v2si __builtin_arm_waddwus (v2si, v2si)
  37609. v8qi __builtin_arm_walign (v8qi, v8qi, int)
  37610. long long __builtin_arm_wand(long long, long long)
  37611. long long __builtin_arm_wandn (long long, long long)
  37612. v8qi __builtin_arm_wavg2b (v8qi, v8qi)
  37613. v8qi __builtin_arm_wavg2br (v8qi, v8qi)
  37614. v4hi __builtin_arm_wavg2h (v4hi, v4hi)
  37615. v4hi __builtin_arm_wavg2hr (v4hi, v4hi)
  37616. v8qi __builtin_arm_wcmpeqb (v8qi, v8qi)
  37617. v4hi __builtin_arm_wcmpeqh (v4hi, v4hi)
  37618. v2si __builtin_arm_wcmpeqw (v2si, v2si)
  37619. v8qi __builtin_arm_wcmpgtsb (v8qi, v8qi)
  37620. v4hi __builtin_arm_wcmpgtsh (v4hi, v4hi)
  37621. v2si __builtin_arm_wcmpgtsw (v2si, v2si)
  37622. v8qi __builtin_arm_wcmpgtub (v8qi, v8qi)
  37623. v4hi __builtin_arm_wcmpgtuh (v4hi, v4hi)
  37624. v2si __builtin_arm_wcmpgtuw (v2si, v2si)
  37625. long long __builtin_arm_wmacs (long long, v4hi, v4hi)
  37626. long long __builtin_arm_wmacsz (v4hi, v4hi)
  37627. long long __builtin_arm_wmacu (long long, v4hi, v4hi)
  37628. long long __builtin_arm_wmacuz (v4hi, v4hi)
  37629. v4hi __builtin_arm_wmadds (v4hi, v4hi)
  37630. v4hi __builtin_arm_wmaddu (v4hi, v4hi)
  37631. v8qi __builtin_arm_wmaxsb (v8qi, v8qi)
  37632. v4hi __builtin_arm_wmaxsh (v4hi, v4hi)
  37633. v2si __builtin_arm_wmaxsw (v2si, v2si)
  37634. v8qi __builtin_arm_wmaxub (v8qi, v8qi)
  37635. v4hi __builtin_arm_wmaxuh (v4hi, v4hi)
  37636. v2si __builtin_arm_wmaxuw (v2si, v2si)
  37637. v8qi __builtin_arm_wminsb (v8qi, v8qi)
  37638. v4hi __builtin_arm_wminsh (v4hi, v4hi)
  37639. v2si __builtin_arm_wminsw (v2si, v2si)
  37640. v8qi __builtin_arm_wminub (v8qi, v8qi)
  37641. v4hi __builtin_arm_wminuh (v4hi, v4hi)
  37642. v2si __builtin_arm_wminuw (v2si, v2si)
  37643. v4hi __builtin_arm_wmulsm (v4hi, v4hi)
  37644. v4hi __builtin_arm_wmulul (v4hi, v4hi)
  37645. v4hi __builtin_arm_wmulum (v4hi, v4hi)
  37646. long long __builtin_arm_wor (long long, long long)
  37647. v2si __builtin_arm_wpackdss (long long, long long)
  37648. v2si __builtin_arm_wpackdus (long long, long long)
  37649. v8qi __builtin_arm_wpackhss (v4hi, v4hi)
  37650. v8qi __builtin_arm_wpackhus (v4hi, v4hi)
  37651. v4hi __builtin_arm_wpackwss (v2si, v2si)
  37652. v4hi __builtin_arm_wpackwus (v2si, v2si)
  37653. long long __builtin_arm_wrord (long long, long long)
  37654. long long __builtin_arm_wrordi (long long, int)
  37655. v4hi __builtin_arm_wrorh (v4hi, long long)
  37656. v4hi __builtin_arm_wrorhi (v4hi, int)
  37657. v2si __builtin_arm_wrorw (v2si, long long)
  37658. v2si __builtin_arm_wrorwi (v2si, int)
  37659. v2si __builtin_arm_wsadb (v2si, v8qi, v8qi)
  37660. v2si __builtin_arm_wsadbz (v8qi, v8qi)
  37661. v2si __builtin_arm_wsadh (v2si, v4hi, v4hi)
  37662. v2si __builtin_arm_wsadhz (v4hi, v4hi)
  37663. v4hi __builtin_arm_wshufh (v4hi, int)
  37664. long long __builtin_arm_wslld (long long, long long)
  37665. long long __builtin_arm_wslldi (long long, int)
  37666. v4hi __builtin_arm_wsllh (v4hi, long long)
  37667. v4hi __builtin_arm_wsllhi (v4hi, int)
  37668. v2si __builtin_arm_wsllw (v2si, long long)
  37669. v2si __builtin_arm_wsllwi (v2si, int)
  37670. long long __builtin_arm_wsrad (long long, long long)
  37671. long long __builtin_arm_wsradi (long long, int)
  37672. v4hi __builtin_arm_wsrah (v4hi, long long)
  37673. v4hi __builtin_arm_wsrahi (v4hi, int)
  37674. v2si __builtin_arm_wsraw (v2si, long long)
  37675. v2si __builtin_arm_wsrawi (v2si, int)
  37676. long long __builtin_arm_wsrld (long long, long long)
  37677. long long __builtin_arm_wsrldi (long long, int)
  37678. v4hi __builtin_arm_wsrlh (v4hi, long long)
  37679. v4hi __builtin_arm_wsrlhi (v4hi, int)
  37680. v2si __builtin_arm_wsrlw (v2si, long long)
  37681. v2si __builtin_arm_wsrlwi (v2si, int)
  37682. v8qi __builtin_arm_wsubb (v8qi, v8qi)
  37683. v8qi __builtin_arm_wsubbss (v8qi, v8qi)
  37684. v8qi __builtin_arm_wsubbus (v8qi, v8qi)
  37685. v4hi __builtin_arm_wsubh (v4hi, v4hi)
  37686. v4hi __builtin_arm_wsubhss (v4hi, v4hi)
  37687. v4hi __builtin_arm_wsubhus (v4hi, v4hi)
  37688. v2si __builtin_arm_wsubw (v2si, v2si)
  37689. v2si __builtin_arm_wsubwss (v2si, v2si)
  37690. v2si __builtin_arm_wsubwus (v2si, v2si)
  37691. v4hi __builtin_arm_wunpckehsb (v8qi)
  37692. v2si __builtin_arm_wunpckehsh (v4hi)
  37693. long long __builtin_arm_wunpckehsw (v2si)
  37694. v4hi __builtin_arm_wunpckehub (v8qi)
  37695. v2si __builtin_arm_wunpckehuh (v4hi)
  37696. long long __builtin_arm_wunpckehuw (v2si)
  37697. v4hi __builtin_arm_wunpckelsb (v8qi)
  37698. v2si __builtin_arm_wunpckelsh (v4hi)
  37699. long long __builtin_arm_wunpckelsw (v2si)
  37700. v4hi __builtin_arm_wunpckelub (v8qi)
  37701. v2si __builtin_arm_wunpckeluh (v4hi)
  37702. long long __builtin_arm_wunpckeluw (v2si)
  37703. v8qi __builtin_arm_wunpckihb (v8qi, v8qi)
  37704. v4hi __builtin_arm_wunpckihh (v4hi, v4hi)
  37705. v2si __builtin_arm_wunpckihw (v2si, v2si)
  37706. v8qi __builtin_arm_wunpckilb (v8qi, v8qi)
  37707. v4hi __builtin_arm_wunpckilh (v4hi, v4hi)
  37708. v2si __builtin_arm_wunpckilw (v2si, v2si)
  37709. long long __builtin_arm_wxor (long long, long long)
  37710. long long __builtin_arm_wzero ()
  37711. 
  37712. 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
  37713. 6.60.7 ARM C Language Extensions (ACLE)
  37714. ---------------------------------------
  37715. GCC implements extensions for C as described in the ARM C Language
  37716. Extensions (ACLE) specification, which can be found at
  37717. <https://developer.arm.com/documentation/ihi0053/latest/>.
  37718. As a part of ACLE, GCC implements extensions for Advanced SIMD as
  37719. described in the ARM C Language Extensions Specification. The complete
  37720. list of Advanced SIMD intrinsics can be found at
  37721. <https://developer.arm.com/documentation/ihi0073/latest/>. The built-in
  37722. intrinsics for the Advanced SIMD extension are available when NEON is
  37723. enabled.
  37724. Currently, ARM and AArch64 back ends do not support ACLE 2.0 fully.
  37725. Both back ends support CRC32 intrinsics and the ARM back end supports
  37726. the Coprocessor intrinsics, all from 'arm_acle.h'. The ARM back end's
  37727. 16-bit floating-point Advanced SIMD intrinsics currently comply to ACLE
  37728. v1.1. AArch64's back end does not have support for 16-bit floating
  37729. point Advanced SIMD intrinsics yet.
  37730. See *note ARM Options:: and *note AArch64 Options:: for more
  37731. information on the availability of extensions.
  37732. 
  37733. 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
  37734. 6.60.8 ARM Floating Point Status and Control Intrinsics
  37735. -------------------------------------------------------
  37736. These built-in functions are available for the ARM family of processors
  37737. with floating-point unit.
  37738. unsigned int __builtin_arm_get_fpscr ()
  37739. void __builtin_arm_set_fpscr (unsigned int)
  37740. 
  37741. 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
  37742. 6.60.9 ARM ARMv8-M Security Extensions
  37743. --------------------------------------
  37744. GCC implements the ARMv8-M Security Extensions as described in the
  37745. ARMv8-M Security Extensions: Requirements on Development Tools
  37746. Engineering Specification, which can be found at
  37747. <https://developer.arm.com/documentation/ecm0359818/latest/>.
  37748. As part of the Security Extensions GCC implements two new function
  37749. attributes: 'cmse_nonsecure_entry' and 'cmse_nonsecure_call'.
  37750. As part of the Security Extensions GCC implements the intrinsics below.
  37751. FPTR is used here to mean any function pointer type.
  37752. cmse_address_info_t cmse_TT (void *)
  37753. cmse_address_info_t cmse_TT_fptr (FPTR)
  37754. cmse_address_info_t cmse_TTT (void *)
  37755. cmse_address_info_t cmse_TTT_fptr (FPTR)
  37756. cmse_address_info_t cmse_TTA (void *)
  37757. cmse_address_info_t cmse_TTA_fptr (FPTR)
  37758. cmse_address_info_t cmse_TTAT (void *)
  37759. cmse_address_info_t cmse_TTAT_fptr (FPTR)
  37760. void * cmse_check_address_range (void *, size_t, int)
  37761. typeof(p) cmse_nsfptr_create (FPTR p)
  37762. intptr_t cmse_is_nsfptr (FPTR)
  37763. int cmse_nonsecure_caller (void)
  37764. 
  37765. File: gcc.info, Node: AVR Built-in Functions, Next: Blackfin Built-in Functions, Prev: ARM ARMv8-M Security Extensions, Up: Target Builtins
  37766. 6.60.10 AVR Built-in Functions
  37767. ------------------------------
  37768. For each built-in function for AVR, there is an equally named, uppercase
  37769. built-in macro defined. That way users can easily query if or if not a
  37770. specific built-in is implemented or not. For example, if
  37771. '__builtin_avr_nop' is available the macro '__BUILTIN_AVR_NOP' is
  37772. defined to '1' and undefined otherwise.
  37773. 'void __builtin_avr_nop (void)'
  37774. 'void __builtin_avr_sei (void)'
  37775. 'void __builtin_avr_cli (void)'
  37776. 'void __builtin_avr_sleep (void)'
  37777. 'void __builtin_avr_wdr (void)'
  37778. 'unsigned char __builtin_avr_swap (unsigned char)'
  37779. 'unsigned int __builtin_avr_fmul (unsigned char, unsigned char)'
  37780. 'int __builtin_avr_fmuls (char, char)'
  37781. 'int __builtin_avr_fmulsu (char, unsigned char)'
  37782. These built-in functions map to the respective machine instruction,
  37783. i.e. 'nop', 'sei', 'cli', 'sleep', 'wdr', 'swap', 'fmul', 'fmuls'
  37784. resp. 'fmulsu'. The three 'fmul*' built-ins are implemented as
  37785. library call if no hardware multiplier is available.
  37786. 'void __builtin_avr_delay_cycles (unsigned long ticks)'
  37787. Delay execution for TICKS cycles. Note that this built-in does not
  37788. take into account the effect of interrupts that might increase
  37789. delay time. TICKS must be a compile-time integer constant; delays
  37790. with a variable number of cycles are not supported.
  37791. 'char __builtin_avr_flash_segment (const __memx void*)'
  37792. This built-in takes a byte address to the 24-bit *note address
  37793. space: AVR Named Address Spaces. '__memx' and returns the number of
  37794. the flash segment (the 64 KiB chunk) where the address points to.
  37795. Counting starts at '0'. If the address does not point to flash
  37796. memory, return '-1'.
  37797. 'uint8_t __builtin_avr_insert_bits (uint32_t map, uint8_t bits, uint8_t val)'
  37798. Insert bits from BITS into VAL and return the resulting value. The
  37799. nibbles of MAP determine how the insertion is performed: Let X be
  37800. the N-th nibble of MAP
  37801. 1. If X is '0xf', then the N-th bit of VAL is returned unaltered.
  37802. 2. If X is in the range 0...7, then the N-th result bit is set to
  37803. the X-th bit of BITS
  37804. 3. If X is in the range 8...'0xe', then the N-th result bit is
  37805. undefined.
  37806. One typical use case for this built-in is adjusting input and
  37807. output values to non-contiguous port layouts. Some examples:
  37808. // same as val, bits is unused
  37809. __builtin_avr_insert_bits (0xffffffff, bits, val)
  37810. // same as bits, val is unused
  37811. __builtin_avr_insert_bits (0x76543210, bits, val)
  37812. // same as rotating bits by 4
  37813. __builtin_avr_insert_bits (0x32107654, bits, 0)
  37814. // high nibble of result is the high nibble of val
  37815. // low nibble of result is the low nibble of bits
  37816. __builtin_avr_insert_bits (0xffff3210, bits, val)
  37817. // reverse the bit order of bits
  37818. __builtin_avr_insert_bits (0x01234567, bits, 0)
  37819. 'void __builtin_avr_nops (unsigned count)'
  37820. Insert COUNT 'NOP' instructions. The number of instructions must
  37821. be a compile-time integer constant.
  37822. There are many more AVR-specific built-in functions that are used to
  37823. implement the ISO/IEC TR 18037 "Embedded C" fixed-point functions of
  37824. section 7.18a.6. You don't need to use these built-ins directly.
  37825. Instead, use the declarations as supplied by the 'stdfix.h' header with
  37826. GNU-C99:
  37827. #include <stdfix.h>
  37828. // Re-interpret the bit representation of unsigned 16-bit
  37829. // integer UVAL as Q-format 0.16 value.
  37830. unsigned fract get_bits (uint_ur_t uval)
  37831. {
  37832. return urbits (uval);
  37833. }
  37834. 
  37835. File: gcc.info, Node: Blackfin Built-in Functions, Next: BPF Built-in Functions, Prev: AVR Built-in Functions, Up: Target Builtins
  37836. 6.60.11 Blackfin Built-in Functions
  37837. -----------------------------------
  37838. Currently, there are two Blackfin-specific built-in functions. These
  37839. are used for generating 'CSYNC' and 'SSYNC' machine insns without using
  37840. inline assembly; by using these built-in functions the compiler can
  37841. automatically add workarounds for hardware errata involving these
  37842. instructions. These functions are named as follows:
  37843. void __builtin_bfin_csync (void)
  37844. void __builtin_bfin_ssync (void)
  37845. 
  37846. File: gcc.info, Node: BPF Built-in Functions, Next: FR-V Built-in Functions, Prev: Blackfin Built-in Functions, Up: Target Builtins
  37847. 6.60.12 BPF Built-in Functions
  37848. ------------------------------
  37849. The following built-in functions are available for eBPF targets.
  37850. -- Built-in Function: unsigned long long __builtin_bpf_load_byte
  37851. (unsigned long long OFFSET)
  37852. Load a byte from the 'struct sk_buff' packet data pointed by the
  37853. register '%r6' and return it.
  37854. -- Built-in Function: unsigned long long __builtin_bpf_load_half
  37855. (unsigned long long OFFSET)
  37856. Load 16-bits from the 'struct sk_buff' packet data pointed by the
  37857. register '%r6' and return it.
  37858. -- Built-in Function: unsigned long long __builtin_bpf_load_word
  37859. (unsigned long long OFFSET)
  37860. Load 32-bits from the 'struct sk_buff' packet data pointed by the
  37861. register '%r6' and return it.
  37862. 
  37863. File: gcc.info, Node: FR-V Built-in Functions, Next: MIPS DSP Built-in Functions, Prev: BPF Built-in Functions, Up: Target Builtins
  37864. 6.60.13 FR-V Built-in Functions
  37865. -------------------------------
  37866. GCC provides many FR-V-specific built-in functions. In general, these
  37867. functions are intended to be compatible with those described by 'FR-V
  37868. Family, Softune C/C++ Compiler Manual (V6), Fujitsu Semiconductor'. The
  37869. two exceptions are '__MDUNPACKH' and '__MBTOHE', the GCC forms of which
  37870. pass 128-bit values by pointer rather than by value.
  37871. Most of the functions are named after specific FR-V instructions. Such
  37872. functions are said to be "directly mapped" and are summarized here in
  37873. tabular form.
  37874. * Menu:
  37875. * Argument Types::
  37876. * Directly-mapped Integer Functions::
  37877. * Directly-mapped Media Functions::
  37878. * Raw read/write Functions::
  37879. * Other Built-in Functions::
  37880. 
  37881. File: gcc.info, Node: Argument Types, Next: Directly-mapped Integer Functions, Up: FR-V Built-in Functions
  37882. 6.60.13.1 Argument Types
  37883. ........................
  37884. The arguments to the built-in functions can be divided into three
  37885. groups: register numbers, compile-time constants and run-time values.
  37886. In order to make this classification clear at a glance, the arguments
  37887. and return values are given the following pseudo types:
  37888. Pseudo type Real C type Constant? Description
  37889. 'uh' 'unsigned short' No an unsigned halfword
  37890. 'uw1' 'unsigned int' No an unsigned word
  37891. 'sw1' 'int' No a signed word
  37892. 'uw2' 'unsigned long long' No an unsigned doubleword
  37893. 'sw2' 'long long' No a signed doubleword
  37894. 'const' 'int' Yes an integer constant
  37895. 'acc' 'int' Yes an ACC register number
  37896. 'iacc' 'int' Yes an IACC register number
  37897. These pseudo types are not defined by GCC, they are simply a notational
  37898. convenience used in this manual.
  37899. Arguments of type 'uh', 'uw1', 'sw1', 'uw2' and 'sw2' are evaluated at
  37900. run time. They correspond to register operands in the underlying FR-V
  37901. instructions.
  37902. 'const' arguments represent immediate operands in the underlying FR-V
  37903. instructions. They must be compile-time constants.
  37904. 'acc' arguments are evaluated at compile time and specify the number of
  37905. an accumulator register. For example, an 'acc' argument of 2 selects
  37906. the ACC2 register.
  37907. 'iacc' arguments are similar to 'acc' arguments but specify the number
  37908. of an IACC register. See *note Other Built-in Functions:: for more
  37909. details.
  37910. 
  37911. File: gcc.info, Node: Directly-mapped Integer Functions, Next: Directly-mapped Media Functions, Prev: Argument Types, Up: FR-V Built-in Functions
  37912. 6.60.13.2 Directly-Mapped Integer Functions
  37913. ...........................................
  37914. The functions listed below map directly to FR-V I-type instructions.
  37915. Function prototype Example usage Assembly output
  37916. 'sw1 __ADDSS (sw1, sw1)' 'C = __ADDSS (A, B)' 'ADDSS A,B,C'
  37917. 'sw1 __SCAN (sw1, sw1)' 'C = __SCAN (A, B)' 'SCAN A,B,C'
  37918. 'sw1 __SCUTSS (sw1)' 'B = __SCUTSS (A)' 'SCUTSS A,B'
  37919. 'sw1 __SLASS (sw1, sw1)' 'C = __SLASS (A, B)' 'SLASS A,B,C'
  37920. 'void __SMASS (sw1, sw1)' '__SMASS (A, B)' 'SMASS A,B'
  37921. 'void __SMSSS (sw1, sw1)' '__SMSSS (A, B)' 'SMSSS A,B'
  37922. 'void __SMU (sw1, sw1)' '__SMU (A, B)' 'SMU A,B'
  37923. 'sw2 __SMUL (sw1, sw1)' 'C = __SMUL (A, B)' 'SMUL A,B,C'
  37924. 'sw1 __SUBSS (sw1, sw1)' 'C = __SUBSS (A, B)' 'SUBSS A,B,C'
  37925. 'uw2 __UMUL (uw1, uw1)' 'C = __UMUL (A, B)' 'UMUL A,B,C'
  37926. 
  37927. File: gcc.info, Node: Directly-mapped Media Functions, Next: Raw read/write Functions, Prev: Directly-mapped Integer Functions, Up: FR-V Built-in Functions
  37928. 6.60.13.3 Directly-Mapped Media Functions
  37929. .........................................
  37930. The functions listed below map directly to FR-V M-type instructions.
  37931. Function prototype Example usage Assembly output
  37932. 'uw1 __MABSHS (sw1)' 'B = __MABSHS (A)' 'MABSHS A,B'
  37933. 'void __MADDACCS (acc, acc)' '__MADDACCS (B, A)' 'MADDACCS A,B'
  37934. 'sw1 __MADDHSS (sw1, sw1)' 'C = __MADDHSS (A, 'MADDHSS A,B,C'
  37935. B)'
  37936. 'uw1 __MADDHUS (uw1, uw1)' 'C = __MADDHUS (A, 'MADDHUS A,B,C'
  37937. B)'
  37938. 'uw1 __MAND (uw1, uw1)' 'C = __MAND (A, B)' 'MAND A,B,C'
  37939. 'void __MASACCS (acc, acc)' '__MASACCS (B, A)' 'MASACCS A,B'
  37940. 'uw1 __MAVEH (uw1, uw1)' 'C = __MAVEH (A, B)' 'MAVEH A,B,C'
  37941. 'uw2 __MBTOH (uw1)' 'B = __MBTOH (A)' 'MBTOH A,B'
  37942. 'void __MBTOHE (uw1 *, uw1)' '__MBTOHE (&B, A)' 'MBTOHE A,B'
  37943. 'void __MCLRACC (acc)' '__MCLRACC (A)' 'MCLRACC A'
  37944. 'void __MCLRACCA (void)' '__MCLRACCA ()' 'MCLRACCA'
  37945. 'uw1 __Mcop1 (uw1, uw1)' 'C = __Mcop1 (A, B)' 'Mcop1 A,B,C'
  37946. 'uw1 __Mcop2 (uw1, uw1)' 'C = __Mcop2 (A, B)' 'Mcop2 A,B,C'
  37947. 'uw1 __MCPLHI (uw2, const)' 'C = __MCPLHI (A, B)' 'MCPLHI A,#B,C'
  37948. 'uw1 __MCPLI (uw2, const)' 'C = __MCPLI (A, B)' 'MCPLI A,#B,C'
  37949. 'void __MCPXIS (acc, sw1, '__MCPXIS (C, A, B)' 'MCPXIS A,B,C'
  37950. sw1)'
  37951. 'void __MCPXIU (acc, uw1, '__MCPXIU (C, A, B)' 'MCPXIU A,B,C'
  37952. uw1)'
  37953. 'void __MCPXRS (acc, sw1, '__MCPXRS (C, A, B)' 'MCPXRS A,B,C'
  37954. sw1)'
  37955. 'void __MCPXRU (acc, uw1, '__MCPXRU (C, A, B)' 'MCPXRU A,B,C'
  37956. uw1)'
  37957. 'uw1 __MCUT (acc, uw1)' 'C = __MCUT (A, B)' 'MCUT A,B,C'
  37958. 'uw1 __MCUTSS (acc, sw1)' 'C = __MCUTSS (A, B)' 'MCUTSS A,B,C'
  37959. 'void __MDADDACCS (acc, acc)' '__MDADDACCS (B, A)' 'MDADDACCS A,B'
  37960. 'void __MDASACCS (acc, acc)' '__MDASACCS (B, A)' 'MDASACCS A,B'
  37961. 'uw2 __MDCUTSSI (acc, const)' 'C = __MDCUTSSI (A, 'MDCUTSSI
  37962. B)' A,#B,C'
  37963. 'uw2 __MDPACKH (uw2, uw2)' 'C = __MDPACKH (A, 'MDPACKH A,B,C'
  37964. B)'
  37965. 'uw2 __MDROTLI (uw2, const)' 'C = __MDROTLI (A, 'MDROTLI
  37966. B)' A,#B,C'
  37967. 'void __MDSUBACCS (acc, acc)' '__MDSUBACCS (B, A)' 'MDSUBACCS A,B'
  37968. 'void __MDUNPACKH (uw1 *, '__MDUNPACKH (&B, A)' 'MDUNPACKH A,B'
  37969. uw2)'
  37970. 'uw2 __MEXPDHD (uw1, const)' 'C = __MEXPDHD (A, 'MEXPDHD
  37971. B)' A,#B,C'
  37972. 'uw1 __MEXPDHW (uw1, const)' 'C = __MEXPDHW (A, 'MEXPDHW
  37973. B)' A,#B,C'
  37974. 'uw1 __MHDSETH (uw1, const)' 'C = __MHDSETH (A, 'MHDSETH
  37975. B)' A,#B,C'
  37976. 'sw1 __MHDSETS (const)' 'B = __MHDSETS (A)' 'MHDSETS #A,B'
  37977. 'uw1 __MHSETHIH (uw1, const)' 'B = __MHSETHIH (B, 'MHSETHIH #A,B'
  37978. A)'
  37979. 'sw1 __MHSETHIS (sw1, const)' 'B = __MHSETHIS (B, 'MHSETHIS #A,B'
  37980. A)'
  37981. 'uw1 __MHSETLOH (uw1, const)' 'B = __MHSETLOH (B, 'MHSETLOH #A,B'
  37982. A)'
  37983. 'sw1 __MHSETLOS (sw1, const)' 'B = __MHSETLOS (B, 'MHSETLOS #A,B'
  37984. A)'
  37985. 'uw1 __MHTOB (uw2)' 'B = __MHTOB (A)' 'MHTOB A,B'
  37986. 'void __MMACHS (acc, sw1, '__MMACHS (C, A, B)' 'MMACHS A,B,C'
  37987. sw1)'
  37988. 'void __MMACHU (acc, uw1, '__MMACHU (C, A, B)' 'MMACHU A,B,C'
  37989. uw1)'
  37990. 'void __MMRDHS (acc, sw1, '__MMRDHS (C, A, B)' 'MMRDHS A,B,C'
  37991. sw1)'
  37992. 'void __MMRDHU (acc, uw1, '__MMRDHU (C, A, B)' 'MMRDHU A,B,C'
  37993. uw1)'
  37994. 'void __MMULHS (acc, sw1, '__MMULHS (C, A, B)' 'MMULHS A,B,C'
  37995. sw1)'
  37996. 'void __MMULHU (acc, uw1, '__MMULHU (C, A, B)' 'MMULHU A,B,C'
  37997. uw1)'
  37998. 'void __MMULXHS (acc, sw1, '__MMULXHS (C, A, B)' 'MMULXHS A,B,C'
  37999. sw1)'
  38000. 'void __MMULXHU (acc, uw1, '__MMULXHU (C, A, B)' 'MMULXHU A,B,C'
  38001. uw1)'
  38002. 'uw1 __MNOT (uw1)' 'B = __MNOT (A)' 'MNOT A,B'
  38003. 'uw1 __MOR (uw1, uw1)' 'C = __MOR (A, B)' 'MOR A,B,C'
  38004. 'uw1 __MPACKH (uh, uh)' 'C = __MPACKH (A, B)' 'MPACKH A,B,C'
  38005. 'sw2 __MQADDHSS (sw2, sw2)' 'C = __MQADDHSS (A, 'MQADDHSS
  38006. B)' A,B,C'
  38007. 'uw2 __MQADDHUS (uw2, uw2)' 'C = __MQADDHUS (A, 'MQADDHUS
  38008. B)' A,B,C'
  38009. 'void __MQCPXIS (acc, sw2, '__MQCPXIS (C, A, B)' 'MQCPXIS A,B,C'
  38010. sw2)'
  38011. 'void __MQCPXIU (acc, uw2, '__MQCPXIU (C, A, B)' 'MQCPXIU A,B,C'
  38012. uw2)'
  38013. 'void __MQCPXRS (acc, sw2, '__MQCPXRS (C, A, B)' 'MQCPXRS A,B,C'
  38014. sw2)'
  38015. 'void __MQCPXRU (acc, uw2, '__MQCPXRU (C, A, B)' 'MQCPXRU A,B,C'
  38016. uw2)'
  38017. 'sw2 __MQLCLRHS (sw2, sw2)' 'C = __MQLCLRHS (A, 'MQLCLRHS
  38018. B)' A,B,C'
  38019. 'sw2 __MQLMTHS (sw2, sw2)' 'C = __MQLMTHS (A, 'MQLMTHS A,B,C'
  38020. B)'
  38021. 'void __MQMACHS (acc, sw2, '__MQMACHS (C, A, B)' 'MQMACHS A,B,C'
  38022. sw2)'
  38023. 'void __MQMACHU (acc, uw2, '__MQMACHU (C, A, B)' 'MQMACHU A,B,C'
  38024. uw2)'
  38025. 'void __MQMACXHS (acc, sw2, '__MQMACXHS (C, A, 'MQMACXHS
  38026. sw2)' B)' A,B,C'
  38027. 'void __MQMULHS (acc, sw2, '__MQMULHS (C, A, B)' 'MQMULHS A,B,C'
  38028. sw2)'
  38029. 'void __MQMULHU (acc, uw2, '__MQMULHU (C, A, B)' 'MQMULHU A,B,C'
  38030. uw2)'
  38031. 'void __MQMULXHS (acc, sw2, '__MQMULXHS (C, A, 'MQMULXHS
  38032. sw2)' B)' A,B,C'
  38033. 'void __MQMULXHU (acc, uw2, '__MQMULXHU (C, A, 'MQMULXHU
  38034. uw2)' B)' A,B,C'
  38035. 'sw2 __MQSATHS (sw2, sw2)' 'C = __MQSATHS (A, 'MQSATHS A,B,C'
  38036. B)'
  38037. 'uw2 __MQSLLHI (uw2, int)' 'C = __MQSLLHI (A, 'MQSLLHI A,B,C'
  38038. B)'
  38039. 'sw2 __MQSRAHI (sw2, int)' 'C = __MQSRAHI (A, 'MQSRAHI A,B,C'
  38040. B)'
  38041. 'sw2 __MQSUBHSS (sw2, sw2)' 'C = __MQSUBHSS (A, 'MQSUBHSS
  38042. B)' A,B,C'
  38043. 'uw2 __MQSUBHUS (uw2, uw2)' 'C = __MQSUBHUS (A, 'MQSUBHUS
  38044. B)' A,B,C'
  38045. 'void __MQXMACHS (acc, sw2, '__MQXMACHS (C, A, 'MQXMACHS
  38046. sw2)' B)' A,B,C'
  38047. 'void __MQXMACXHS (acc, sw2, '__MQXMACXHS (C, A, 'MQXMACXHS
  38048. sw2)' B)' A,B,C'
  38049. 'uw1 __MRDACC (acc)' 'B = __MRDACC (A)' 'MRDACC A,B'
  38050. 'uw1 __MRDACCG (acc)' 'B = __MRDACCG (A)' 'MRDACCG A,B'
  38051. 'uw1 __MROTLI (uw1, const)' 'C = __MROTLI (A, B)' 'MROTLI A,#B,C'
  38052. 'uw1 __MROTRI (uw1, const)' 'C = __MROTRI (A, B)' 'MROTRI A,#B,C'
  38053. 'sw1 __MSATHS (sw1, sw1)' 'C = __MSATHS (A, B)' 'MSATHS A,B,C'
  38054. 'uw1 __MSATHU (uw1, uw1)' 'C = __MSATHU (A, B)' 'MSATHU A,B,C'
  38055. 'uw1 __MSLLHI (uw1, const)' 'C = __MSLLHI (A, B)' 'MSLLHI A,#B,C'
  38056. 'sw1 __MSRAHI (sw1, const)' 'C = __MSRAHI (A, B)' 'MSRAHI A,#B,C'
  38057. 'uw1 __MSRLHI (uw1, const)' 'C = __MSRLHI (A, B)' 'MSRLHI A,#B,C'
  38058. 'void __MSUBACCS (acc, acc)' '__MSUBACCS (B, A)' 'MSUBACCS A,B'
  38059. 'sw1 __MSUBHSS (sw1, sw1)' 'C = __MSUBHSS (A, 'MSUBHSS A,B,C'
  38060. B)'
  38061. 'uw1 __MSUBHUS (uw1, uw1)' 'C = __MSUBHUS (A, 'MSUBHUS A,B,C'
  38062. B)'
  38063. 'void __MTRAP (void)' '__MTRAP ()' 'MTRAP'
  38064. 'uw2 __MUNPACKH (uw1)' 'B = __MUNPACKH (A)' 'MUNPACKH A,B'
  38065. 'uw1 __MWCUT (uw2, uw1)' 'C = __MWCUT (A, B)' 'MWCUT A,B,C'
  38066. 'void __MWTACC (acc, uw1)' '__MWTACC (B, A)' 'MWTACC A,B'
  38067. 'void __MWTACCG (acc, uw1)' '__MWTACCG (B, A)' 'MWTACCG A,B'
  38068. 'uw1 __MXOR (uw1, uw1)' 'C = __MXOR (A, B)' 'MXOR A,B,C'
  38069. 
  38070. File: gcc.info, Node: Raw read/write Functions, Next: Other Built-in Functions, Prev: Directly-mapped Media Functions, Up: FR-V Built-in Functions
  38071. 6.60.13.4 Raw Read/Write Functions
  38072. ..................................
  38073. This sections describes built-in functions related to read and write
  38074. instructions to access memory. These functions generate 'membar'
  38075. instructions to flush the I/O load and stores where appropriate, as
  38076. described in Fujitsu's manual described above.
  38077. 'unsigned char __builtin_read8 (void *DATA)'
  38078. 'unsigned short __builtin_read16 (void *DATA)'
  38079. 'unsigned long __builtin_read32 (void *DATA)'
  38080. 'unsigned long long __builtin_read64 (void *DATA)'
  38081. 'void __builtin_write8 (void *DATA, unsigned char DATUM)'
  38082. 'void __builtin_write16 (void *DATA, unsigned short DATUM)'
  38083. 'void __builtin_write32 (void *DATA, unsigned long DATUM)'
  38084. 'void __builtin_write64 (void *DATA, unsigned long long DATUM)'
  38085. 
  38086. File: gcc.info, Node: Other Built-in Functions, Prev: Raw read/write Functions, Up: FR-V Built-in Functions
  38087. 6.60.13.5 Other Built-in Functions
  38088. ..................................
  38089. This section describes built-in functions that are not named after a
  38090. specific FR-V instruction.
  38091. 'sw2 __IACCreadll (iacc REG)'
  38092. Return the full 64-bit value of IACC0. The REG argument is
  38093. reserved for future expansion and must be 0.
  38094. 'sw1 __IACCreadl (iacc REG)'
  38095. Return the value of IACC0H if REG is 0 and IACC0L if REG is 1.
  38096. Other values of REG are rejected as invalid.
  38097. 'void __IACCsetll (iacc REG, sw2 X)'
  38098. Set the full 64-bit value of IACC0 to X. The REG argument is
  38099. reserved for future expansion and must be 0.
  38100. 'void __IACCsetl (iacc REG, sw1 X)'
  38101. Set IACC0H to X if REG is 0 and IACC0L to X if REG is 1. Other
  38102. values of REG are rejected as invalid.
  38103. 'void __data_prefetch0 (const void *X)'
  38104. Use the 'dcpl' instruction to load the contents of address X into
  38105. the data cache.
  38106. 'void __data_prefetch (const void *X)'
  38107. Use the 'nldub' instruction to load the contents of address X into
  38108. the data cache. The instruction is issued in slot I1.
  38109. 
  38110. File: gcc.info, Node: MIPS DSP Built-in Functions, Next: MIPS Paired-Single Support, Prev: FR-V Built-in Functions, Up: Target Builtins
  38111. 6.60.14 MIPS DSP Built-in Functions
  38112. -----------------------------------
  38113. The MIPS DSP Application-Specific Extension (ASE) includes new
  38114. instructions that are designed to improve the performance of DSP and
  38115. media applications. It provides instructions that operate on packed
  38116. 8-bit/16-bit integer data, Q7, Q15 and Q31 fractional data.
  38117. GCC supports MIPS DSP operations using both the generic vector
  38118. extensions (*note Vector Extensions::) and a collection of MIPS-specific
  38119. built-in functions. Both kinds of support are enabled by the '-mdsp'
  38120. command-line option.
  38121. Revision 2 of the ASE was introduced in the second half of 2006. This
  38122. revision adds extra instructions to the original ASE, but is otherwise
  38123. backwards-compatible with it. You can select revision 2 using the
  38124. command-line option '-mdspr2'; this option implies '-mdsp'.
  38125. The SCOUNT and POS bits of the DSP control register are global. The
  38126. WRDSP, EXTPDP, EXTPDPV and MTHLIP instructions modify the SCOUNT and POS
  38127. bits. During optimization, the compiler does not delete these
  38128. instructions and it does not delete calls to functions containing these
  38129. instructions.
  38130. At present, GCC only provides support for operations on 32-bit vectors.
  38131. The vector type associated with 8-bit integer data is usually called
  38132. 'v4i8', the vector type associated with Q7 is usually called 'v4q7', the
  38133. vector type associated with 16-bit integer data is usually called
  38134. 'v2i16', and the vector type associated with Q15 is usually called
  38135. 'v2q15'. They can be defined in C as follows:
  38136. typedef signed char v4i8 __attribute__ ((vector_size(4)));
  38137. typedef signed char v4q7 __attribute__ ((vector_size(4)));
  38138. typedef short v2i16 __attribute__ ((vector_size(4)));
  38139. typedef short v2q15 __attribute__ ((vector_size(4)));
  38140. 'v4i8', 'v4q7', 'v2i16' and 'v2q15' values are initialized in the same
  38141. way as aggregates. For example:
  38142. v4i8 a = {1, 2, 3, 4};
  38143. v4i8 b;
  38144. b = (v4i8) {5, 6, 7, 8};
  38145. v2q15 c = {0x0fcb, 0x3a75};
  38146. v2q15 d;
  38147. d = (v2q15) {0.1234 * 0x1.0p15, 0.4567 * 0x1.0p15};
  38148. _Note:_ The CPU's endianness determines the order in which values are
  38149. packed. On little-endian targets, the first value is the least
  38150. significant and the last value is the most significant. The opposite
  38151. order applies to big-endian targets. For example, the code above sets
  38152. the lowest byte of 'a' to '1' on little-endian targets and '4' on
  38153. big-endian targets.
  38154. _Note:_ Q7, Q15 and Q31 values must be initialized with their integer
  38155. representation. As shown in this example, the integer representation of
  38156. a Q7 value can be obtained by multiplying the fractional value by
  38157. '0x1.0p7'. The equivalent for Q15 values is to multiply by '0x1.0p15'.
  38158. The equivalent for Q31 values is to multiply by '0x1.0p31'.
  38159. The table below lists the 'v4i8' and 'v2q15' operations for which
  38160. hardware support exists. 'a' and 'b' are 'v4i8' values, and 'c' and 'd'
  38161. are 'v2q15' values.
  38162. C code MIPS instruction
  38163. 'a + b' 'addu.qb'
  38164. 'c + d' 'addq.ph'
  38165. 'a - b' 'subu.qb'
  38166. 'c - d' 'subq.ph'
  38167. The table below lists the 'v2i16' operation for which hardware support
  38168. exists for the DSP ASE REV 2. 'e' and 'f' are 'v2i16' values.
  38169. C code MIPS instruction
  38170. 'e * f' 'mul.ph'
  38171. It is easier to describe the DSP built-in functions if we first define
  38172. the following types:
  38173. typedef int q31;
  38174. typedef int i32;
  38175. typedef unsigned int ui32;
  38176. typedef long long a64;
  38177. 'q31' and 'i32' are actually the same as 'int', but we use 'q31' to
  38178. indicate a Q31 fractional value and 'i32' to indicate a 32-bit integer
  38179. value. Similarly, 'a64' is the same as 'long long', but we use 'a64' to
  38180. indicate values that are placed in one of the four DSP accumulators
  38181. ('$ac0', '$ac1', '$ac2' or '$ac3').
  38182. Also, some built-in functions prefer or require immediate numbers as
  38183. parameters, because the corresponding DSP instructions accept both
  38184. immediate numbers and register operands, or accept immediate numbers
  38185. only. The immediate parameters are listed as follows.
  38186. imm0_3: 0 to 3.
  38187. imm0_7: 0 to 7.
  38188. imm0_15: 0 to 15.
  38189. imm0_31: 0 to 31.
  38190. imm0_63: 0 to 63.
  38191. imm0_255: 0 to 255.
  38192. imm_n32_31: -32 to 31.
  38193. imm_n512_511: -512 to 511.
  38194. The following built-in functions map directly to a particular MIPS DSP
  38195. instruction. Please refer to the architecture specification for details
  38196. on what each instruction does.
  38197. v2q15 __builtin_mips_addq_ph (v2q15, v2q15)
  38198. v2q15 __builtin_mips_addq_s_ph (v2q15, v2q15)
  38199. q31 __builtin_mips_addq_s_w (q31, q31)
  38200. v4i8 __builtin_mips_addu_qb (v4i8, v4i8)
  38201. v4i8 __builtin_mips_addu_s_qb (v4i8, v4i8)
  38202. v2q15 __builtin_mips_subq_ph (v2q15, v2q15)
  38203. v2q15 __builtin_mips_subq_s_ph (v2q15, v2q15)
  38204. q31 __builtin_mips_subq_s_w (q31, q31)
  38205. v4i8 __builtin_mips_subu_qb (v4i8, v4i8)
  38206. v4i8 __builtin_mips_subu_s_qb (v4i8, v4i8)
  38207. i32 __builtin_mips_addsc (i32, i32)
  38208. i32 __builtin_mips_addwc (i32, i32)
  38209. i32 __builtin_mips_modsub (i32, i32)
  38210. i32 __builtin_mips_raddu_w_qb (v4i8)
  38211. v2q15 __builtin_mips_absq_s_ph (v2q15)
  38212. q31 __builtin_mips_absq_s_w (q31)
  38213. v4i8 __builtin_mips_precrq_qb_ph (v2q15, v2q15)
  38214. v2q15 __builtin_mips_precrq_ph_w (q31, q31)
  38215. v2q15 __builtin_mips_precrq_rs_ph_w (q31, q31)
  38216. v4i8 __builtin_mips_precrqu_s_qb_ph (v2q15, v2q15)
  38217. q31 __builtin_mips_preceq_w_phl (v2q15)
  38218. q31 __builtin_mips_preceq_w_phr (v2q15)
  38219. v2q15 __builtin_mips_precequ_ph_qbl (v4i8)
  38220. v2q15 __builtin_mips_precequ_ph_qbr (v4i8)
  38221. v2q15 __builtin_mips_precequ_ph_qbla (v4i8)
  38222. v2q15 __builtin_mips_precequ_ph_qbra (v4i8)
  38223. v2q15 __builtin_mips_preceu_ph_qbl (v4i8)
  38224. v2q15 __builtin_mips_preceu_ph_qbr (v4i8)
  38225. v2q15 __builtin_mips_preceu_ph_qbla (v4i8)
  38226. v2q15 __builtin_mips_preceu_ph_qbra (v4i8)
  38227. v4i8 __builtin_mips_shll_qb (v4i8, imm0_7)
  38228. v4i8 __builtin_mips_shll_qb (v4i8, i32)
  38229. v2q15 __builtin_mips_shll_ph (v2q15, imm0_15)
  38230. v2q15 __builtin_mips_shll_ph (v2q15, i32)
  38231. v2q15 __builtin_mips_shll_s_ph (v2q15, imm0_15)
  38232. v2q15 __builtin_mips_shll_s_ph (v2q15, i32)
  38233. q31 __builtin_mips_shll_s_w (q31, imm0_31)
  38234. q31 __builtin_mips_shll_s_w (q31, i32)
  38235. v4i8 __builtin_mips_shrl_qb (v4i8, imm0_7)
  38236. v4i8 __builtin_mips_shrl_qb (v4i8, i32)
  38237. v2q15 __builtin_mips_shra_ph (v2q15, imm0_15)
  38238. v2q15 __builtin_mips_shra_ph (v2q15, i32)
  38239. v2q15 __builtin_mips_shra_r_ph (v2q15, imm0_15)
  38240. v2q15 __builtin_mips_shra_r_ph (v2q15, i32)
  38241. q31 __builtin_mips_shra_r_w (q31, imm0_31)
  38242. q31 __builtin_mips_shra_r_w (q31, i32)
  38243. v2q15 __builtin_mips_muleu_s_ph_qbl (v4i8, v2q15)
  38244. v2q15 __builtin_mips_muleu_s_ph_qbr (v4i8, v2q15)
  38245. v2q15 __builtin_mips_mulq_rs_ph (v2q15, v2q15)
  38246. q31 __builtin_mips_muleq_s_w_phl (v2q15, v2q15)
  38247. q31 __builtin_mips_muleq_s_w_phr (v2q15, v2q15)
  38248. a64 __builtin_mips_dpau_h_qbl (a64, v4i8, v4i8)
  38249. a64 __builtin_mips_dpau_h_qbr (a64, v4i8, v4i8)
  38250. a64 __builtin_mips_dpsu_h_qbl (a64, v4i8, v4i8)
  38251. a64 __builtin_mips_dpsu_h_qbr (a64, v4i8, v4i8)
  38252. a64 __builtin_mips_dpaq_s_w_ph (a64, v2q15, v2q15)
  38253. a64 __builtin_mips_dpaq_sa_l_w (a64, q31, q31)
  38254. a64 __builtin_mips_dpsq_s_w_ph (a64, v2q15, v2q15)
  38255. a64 __builtin_mips_dpsq_sa_l_w (a64, q31, q31)
  38256. a64 __builtin_mips_mulsaq_s_w_ph (a64, v2q15, v2q15)
  38257. a64 __builtin_mips_maq_s_w_phl (a64, v2q15, v2q15)
  38258. a64 __builtin_mips_maq_s_w_phr (a64, v2q15, v2q15)
  38259. a64 __builtin_mips_maq_sa_w_phl (a64, v2q15, v2q15)
  38260. a64 __builtin_mips_maq_sa_w_phr (a64, v2q15, v2q15)
  38261. i32 __builtin_mips_bitrev (i32)
  38262. i32 __builtin_mips_insv (i32, i32)
  38263. v4i8 __builtin_mips_repl_qb (imm0_255)
  38264. v4i8 __builtin_mips_repl_qb (i32)
  38265. v2q15 __builtin_mips_repl_ph (imm_n512_511)
  38266. v2q15 __builtin_mips_repl_ph (i32)
  38267. void __builtin_mips_cmpu_eq_qb (v4i8, v4i8)
  38268. void __builtin_mips_cmpu_lt_qb (v4i8, v4i8)
  38269. void __builtin_mips_cmpu_le_qb (v4i8, v4i8)
  38270. i32 __builtin_mips_cmpgu_eq_qb (v4i8, v4i8)
  38271. i32 __builtin_mips_cmpgu_lt_qb (v4i8, v4i8)
  38272. i32 __builtin_mips_cmpgu_le_qb (v4i8, v4i8)
  38273. void __builtin_mips_cmp_eq_ph (v2q15, v2q15)
  38274. void __builtin_mips_cmp_lt_ph (v2q15, v2q15)
  38275. void __builtin_mips_cmp_le_ph (v2q15, v2q15)
  38276. v4i8 __builtin_mips_pick_qb (v4i8, v4i8)
  38277. v2q15 __builtin_mips_pick_ph (v2q15, v2q15)
  38278. v2q15 __builtin_mips_packrl_ph (v2q15, v2q15)
  38279. i32 __builtin_mips_extr_w (a64, imm0_31)
  38280. i32 __builtin_mips_extr_w (a64, i32)
  38281. i32 __builtin_mips_extr_r_w (a64, imm0_31)
  38282. i32 __builtin_mips_extr_s_h (a64, i32)
  38283. i32 __builtin_mips_extr_rs_w (a64, imm0_31)
  38284. i32 __builtin_mips_extr_rs_w (a64, i32)
  38285. i32 __builtin_mips_extr_s_h (a64, imm0_31)
  38286. i32 __builtin_mips_extr_r_w (a64, i32)
  38287. i32 __builtin_mips_extp (a64, imm0_31)
  38288. i32 __builtin_mips_extp (a64, i32)
  38289. i32 __builtin_mips_extpdp (a64, imm0_31)
  38290. i32 __builtin_mips_extpdp (a64, i32)
  38291. a64 __builtin_mips_shilo (a64, imm_n32_31)
  38292. a64 __builtin_mips_shilo (a64, i32)
  38293. a64 __builtin_mips_mthlip (a64, i32)
  38294. void __builtin_mips_wrdsp (i32, imm0_63)
  38295. i32 __builtin_mips_rddsp (imm0_63)
  38296. i32 __builtin_mips_lbux (void *, i32)
  38297. i32 __builtin_mips_lhx (void *, i32)
  38298. i32 __builtin_mips_lwx (void *, i32)
  38299. a64 __builtin_mips_ldx (void *, i32) [MIPS64 only]
  38300. i32 __builtin_mips_bposge32 (void)
  38301. a64 __builtin_mips_madd (a64, i32, i32);
  38302. a64 __builtin_mips_maddu (a64, ui32, ui32);
  38303. a64 __builtin_mips_msub (a64, i32, i32);
  38304. a64 __builtin_mips_msubu (a64, ui32, ui32);
  38305. a64 __builtin_mips_mult (i32, i32);
  38306. a64 __builtin_mips_multu (ui32, ui32);
  38307. The following built-in functions map directly to a particular MIPS DSP
  38308. REV 2 instruction. Please refer to the architecture specification for
  38309. details on what each instruction does.
  38310. v4q7 __builtin_mips_absq_s_qb (v4q7);
  38311. v2i16 __builtin_mips_addu_ph (v2i16, v2i16);
  38312. v2i16 __builtin_mips_addu_s_ph (v2i16, v2i16);
  38313. v4i8 __builtin_mips_adduh_qb (v4i8, v4i8);
  38314. v4i8 __builtin_mips_adduh_r_qb (v4i8, v4i8);
  38315. i32 __builtin_mips_append (i32, i32, imm0_31);
  38316. i32 __builtin_mips_balign (i32, i32, imm0_3);
  38317. i32 __builtin_mips_cmpgdu_eq_qb (v4i8, v4i8);
  38318. i32 __builtin_mips_cmpgdu_lt_qb (v4i8, v4i8);
  38319. i32 __builtin_mips_cmpgdu_le_qb (v4i8, v4i8);
  38320. a64 __builtin_mips_dpa_w_ph (a64, v2i16, v2i16);
  38321. a64 __builtin_mips_dps_w_ph (a64, v2i16, v2i16);
  38322. v2i16 __builtin_mips_mul_ph (v2i16, v2i16);
  38323. v2i16 __builtin_mips_mul_s_ph (v2i16, v2i16);
  38324. q31 __builtin_mips_mulq_rs_w (q31, q31);
  38325. v2q15 __builtin_mips_mulq_s_ph (v2q15, v2q15);
  38326. q31 __builtin_mips_mulq_s_w (q31, q31);
  38327. a64 __builtin_mips_mulsa_w_ph (a64, v2i16, v2i16);
  38328. v4i8 __builtin_mips_precr_qb_ph (v2i16, v2i16);
  38329. v2i16 __builtin_mips_precr_sra_ph_w (i32, i32, imm0_31);
  38330. v2i16 __builtin_mips_precr_sra_r_ph_w (i32, i32, imm0_31);
  38331. i32 __builtin_mips_prepend (i32, i32, imm0_31);
  38332. v4i8 __builtin_mips_shra_qb (v4i8, imm0_7);
  38333. v4i8 __builtin_mips_shra_r_qb (v4i8, imm0_7);
  38334. v4i8 __builtin_mips_shra_qb (v4i8, i32);
  38335. v4i8 __builtin_mips_shra_r_qb (v4i8, i32);
  38336. v2i16 __builtin_mips_shrl_ph (v2i16, imm0_15);
  38337. v2i16 __builtin_mips_shrl_ph (v2i16, i32);
  38338. v2i16 __builtin_mips_subu_ph (v2i16, v2i16);
  38339. v2i16 __builtin_mips_subu_s_ph (v2i16, v2i16);
  38340. v4i8 __builtin_mips_subuh_qb (v4i8, v4i8);
  38341. v4i8 __builtin_mips_subuh_r_qb (v4i8, v4i8);
  38342. v2q15 __builtin_mips_addqh_ph (v2q15, v2q15);
  38343. v2q15 __builtin_mips_addqh_r_ph (v2q15, v2q15);
  38344. q31 __builtin_mips_addqh_w (q31, q31);
  38345. q31 __builtin_mips_addqh_r_w (q31, q31);
  38346. v2q15 __builtin_mips_subqh_ph (v2q15, v2q15);
  38347. v2q15 __builtin_mips_subqh_r_ph (v2q15, v2q15);
  38348. q31 __builtin_mips_subqh_w (q31, q31);
  38349. q31 __builtin_mips_subqh_r_w (q31, q31);
  38350. a64 __builtin_mips_dpax_w_ph (a64, v2i16, v2i16);
  38351. a64 __builtin_mips_dpsx_w_ph (a64, v2i16, v2i16);
  38352. a64 __builtin_mips_dpaqx_s_w_ph (a64, v2q15, v2q15);
  38353. a64 __builtin_mips_dpaqx_sa_w_ph (a64, v2q15, v2q15);
  38354. a64 __builtin_mips_dpsqx_s_w_ph (a64, v2q15, v2q15);
  38355. a64 __builtin_mips_dpsqx_sa_w_ph (a64, v2q15, v2q15);
  38356. 
  38357. File: gcc.info, Node: MIPS Paired-Single Support, Next: MIPS Loongson Built-in Functions, Prev: MIPS DSP Built-in Functions, Up: Target Builtins
  38358. 6.60.15 MIPS Paired-Single Support
  38359. ----------------------------------
  38360. The MIPS64 architecture includes a number of instructions that operate
  38361. on pairs of single-precision floating-point values. Each pair is packed
  38362. into a 64-bit floating-point register, with one element being designated
  38363. the "upper half" and the other being designated the "lower half".
  38364. GCC supports paired-single operations using both the generic vector
  38365. extensions (*note Vector Extensions::) and a collection of MIPS-specific
  38366. built-in functions. Both kinds of support are enabled by the
  38367. '-mpaired-single' command-line option.
  38368. The vector type associated with paired-single values is usually called
  38369. 'v2sf'. It can be defined in C as follows:
  38370. typedef float v2sf __attribute__ ((vector_size (8)));
  38371. 'v2sf' values are initialized in the same way as aggregates. For
  38372. example:
  38373. v2sf a = {1.5, 9.1};
  38374. v2sf b;
  38375. float e, f;
  38376. b = (v2sf) {e, f};
  38377. _Note:_ The CPU's endianness determines which value is stored in the
  38378. upper half of a register and which value is stored in the lower half.
  38379. On little-endian targets, the first value is the lower one and the
  38380. second value is the upper one. The opposite order applies to big-endian
  38381. targets. For example, the code above sets the lower half of 'a' to
  38382. '1.5' on little-endian targets and '9.1' on big-endian targets.
  38383. 
  38384. File: gcc.info, Node: MIPS Loongson Built-in Functions, Next: MIPS SIMD Architecture (MSA) Support, Prev: MIPS Paired-Single Support, Up: Target Builtins
  38385. 6.60.16 MIPS Loongson Built-in Functions
  38386. ----------------------------------------
  38387. GCC provides intrinsics to access the SIMD instructions provided by the
  38388. ST Microelectronics Loongson-2E and -2F processors. These intrinsics,
  38389. available after inclusion of the 'loongson.h' header file, operate on
  38390. the following 64-bit vector types:
  38391. * 'uint8x8_t', a vector of eight unsigned 8-bit integers;
  38392. * 'uint16x4_t', a vector of four unsigned 16-bit integers;
  38393. * 'uint32x2_t', a vector of two unsigned 32-bit integers;
  38394. * 'int8x8_t', a vector of eight signed 8-bit integers;
  38395. * 'int16x4_t', a vector of four signed 16-bit integers;
  38396. * 'int32x2_t', a vector of two signed 32-bit integers.
  38397. The intrinsics provided are listed below; each is named after the
  38398. machine instruction to which it corresponds, with suffixes added as
  38399. appropriate to distinguish intrinsics that expand to the same machine
  38400. instruction yet have different argument types. Refer to the
  38401. architecture documentation for a description of the functionality of
  38402. each instruction.
  38403. int16x4_t packsswh (int32x2_t s, int32x2_t t);
  38404. int8x8_t packsshb (int16x4_t s, int16x4_t t);
  38405. uint8x8_t packushb (uint16x4_t s, uint16x4_t t);
  38406. uint32x2_t paddw_u (uint32x2_t s, uint32x2_t t);
  38407. uint16x4_t paddh_u (uint16x4_t s, uint16x4_t t);
  38408. uint8x8_t paddb_u (uint8x8_t s, uint8x8_t t);
  38409. int32x2_t paddw_s (int32x2_t s, int32x2_t t);
  38410. int16x4_t paddh_s (int16x4_t s, int16x4_t t);
  38411. int8x8_t paddb_s (int8x8_t s, int8x8_t t);
  38412. uint64_t paddd_u (uint64_t s, uint64_t t);
  38413. int64_t paddd_s (int64_t s, int64_t t);
  38414. int16x4_t paddsh (int16x4_t s, int16x4_t t);
  38415. int8x8_t paddsb (int8x8_t s, int8x8_t t);
  38416. uint16x4_t paddush (uint16x4_t s, uint16x4_t t);
  38417. uint8x8_t paddusb (uint8x8_t s, uint8x8_t t);
  38418. uint64_t pandn_ud (uint64_t s, uint64_t t);
  38419. uint32x2_t pandn_uw (uint32x2_t s, uint32x2_t t);
  38420. uint16x4_t pandn_uh (uint16x4_t s, uint16x4_t t);
  38421. uint8x8_t pandn_ub (uint8x8_t s, uint8x8_t t);
  38422. int64_t pandn_sd (int64_t s, int64_t t);
  38423. int32x2_t pandn_sw (int32x2_t s, int32x2_t t);
  38424. int16x4_t pandn_sh (int16x4_t s, int16x4_t t);
  38425. int8x8_t pandn_sb (int8x8_t s, int8x8_t t);
  38426. uint16x4_t pavgh (uint16x4_t s, uint16x4_t t);
  38427. uint8x8_t pavgb (uint8x8_t s, uint8x8_t t);
  38428. uint32x2_t pcmpeqw_u (uint32x2_t s, uint32x2_t t);
  38429. uint16x4_t pcmpeqh_u (uint16x4_t s, uint16x4_t t);
  38430. uint8x8_t pcmpeqb_u (uint8x8_t s, uint8x8_t t);
  38431. int32x2_t pcmpeqw_s (int32x2_t s, int32x2_t t);
  38432. int16x4_t pcmpeqh_s (int16x4_t s, int16x4_t t);
  38433. int8x8_t pcmpeqb_s (int8x8_t s, int8x8_t t);
  38434. uint32x2_t pcmpgtw_u (uint32x2_t s, uint32x2_t t);
  38435. uint16x4_t pcmpgth_u (uint16x4_t s, uint16x4_t t);
  38436. uint8x8_t pcmpgtb_u (uint8x8_t s, uint8x8_t t);
  38437. int32x2_t pcmpgtw_s (int32x2_t s, int32x2_t t);
  38438. int16x4_t pcmpgth_s (int16x4_t s, int16x4_t t);
  38439. int8x8_t pcmpgtb_s (int8x8_t s, int8x8_t t);
  38440. uint16x4_t pextrh_u (uint16x4_t s, int field);
  38441. int16x4_t pextrh_s (int16x4_t s, int field);
  38442. uint16x4_t pinsrh_0_u (uint16x4_t s, uint16x4_t t);
  38443. uint16x4_t pinsrh_1_u (uint16x4_t s, uint16x4_t t);
  38444. uint16x4_t pinsrh_2_u (uint16x4_t s, uint16x4_t t);
  38445. uint16x4_t pinsrh_3_u (uint16x4_t s, uint16x4_t t);
  38446. int16x4_t pinsrh_0_s (int16x4_t s, int16x4_t t);
  38447. int16x4_t pinsrh_1_s (int16x4_t s, int16x4_t t);
  38448. int16x4_t pinsrh_2_s (int16x4_t s, int16x4_t t);
  38449. int16x4_t pinsrh_3_s (int16x4_t s, int16x4_t t);
  38450. int32x2_t pmaddhw (int16x4_t s, int16x4_t t);
  38451. int16x4_t pmaxsh (int16x4_t s, int16x4_t t);
  38452. uint8x8_t pmaxub (uint8x8_t s, uint8x8_t t);
  38453. int16x4_t pminsh (int16x4_t s, int16x4_t t);
  38454. uint8x8_t pminub (uint8x8_t s, uint8x8_t t);
  38455. uint8x8_t pmovmskb_u (uint8x8_t s);
  38456. int8x8_t pmovmskb_s (int8x8_t s);
  38457. uint16x4_t pmulhuh (uint16x4_t s, uint16x4_t t);
  38458. int16x4_t pmulhh (int16x4_t s, int16x4_t t);
  38459. int16x4_t pmullh (int16x4_t s, int16x4_t t);
  38460. int64_t pmuluw (uint32x2_t s, uint32x2_t t);
  38461. uint8x8_t pasubub (uint8x8_t s, uint8x8_t t);
  38462. uint16x4_t biadd (uint8x8_t s);
  38463. uint16x4_t psadbh (uint8x8_t s, uint8x8_t t);
  38464. uint16x4_t pshufh_u (uint16x4_t dest, uint16x4_t s, uint8_t order);
  38465. int16x4_t pshufh_s (int16x4_t dest, int16x4_t s, uint8_t order);
  38466. uint16x4_t psllh_u (uint16x4_t s, uint8_t amount);
  38467. int16x4_t psllh_s (int16x4_t s, uint8_t amount);
  38468. uint32x2_t psllw_u (uint32x2_t s, uint8_t amount);
  38469. int32x2_t psllw_s (int32x2_t s, uint8_t amount);
  38470. uint16x4_t psrlh_u (uint16x4_t s, uint8_t amount);
  38471. int16x4_t psrlh_s (int16x4_t s, uint8_t amount);
  38472. uint32x2_t psrlw_u (uint32x2_t s, uint8_t amount);
  38473. int32x2_t psrlw_s (int32x2_t s, uint8_t amount);
  38474. uint16x4_t psrah_u (uint16x4_t s, uint8_t amount);
  38475. int16x4_t psrah_s (int16x4_t s, uint8_t amount);
  38476. uint32x2_t psraw_u (uint32x2_t s, uint8_t amount);
  38477. int32x2_t psraw_s (int32x2_t s, uint8_t amount);
  38478. uint32x2_t psubw_u (uint32x2_t s, uint32x2_t t);
  38479. uint16x4_t psubh_u (uint16x4_t s, uint16x4_t t);
  38480. uint8x8_t psubb_u (uint8x8_t s, uint8x8_t t);
  38481. int32x2_t psubw_s (int32x2_t s, int32x2_t t);
  38482. int16x4_t psubh_s (int16x4_t s, int16x4_t t);
  38483. int8x8_t psubb_s (int8x8_t s, int8x8_t t);
  38484. uint64_t psubd_u (uint64_t s, uint64_t t);
  38485. int64_t psubd_s (int64_t s, int64_t t);
  38486. int16x4_t psubsh (int16x4_t s, int16x4_t t);
  38487. int8x8_t psubsb (int8x8_t s, int8x8_t t);
  38488. uint16x4_t psubush (uint16x4_t s, uint16x4_t t);
  38489. uint8x8_t psubusb (uint8x8_t s, uint8x8_t t);
  38490. uint32x2_t punpckhwd_u (uint32x2_t s, uint32x2_t t);
  38491. uint16x4_t punpckhhw_u (uint16x4_t s, uint16x4_t t);
  38492. uint8x8_t punpckhbh_u (uint8x8_t s, uint8x8_t t);
  38493. int32x2_t punpckhwd_s (int32x2_t s, int32x2_t t);
  38494. int16x4_t punpckhhw_s (int16x4_t s, int16x4_t t);
  38495. int8x8_t punpckhbh_s (int8x8_t s, int8x8_t t);
  38496. uint32x2_t punpcklwd_u (uint32x2_t s, uint32x2_t t);
  38497. uint16x4_t punpcklhw_u (uint16x4_t s, uint16x4_t t);
  38498. uint8x8_t punpcklbh_u (uint8x8_t s, uint8x8_t t);
  38499. int32x2_t punpcklwd_s (int32x2_t s, int32x2_t t);
  38500. int16x4_t punpcklhw_s (int16x4_t s, int16x4_t t);
  38501. int8x8_t punpcklbh_s (int8x8_t s, int8x8_t t);
  38502. * Menu:
  38503. * Paired-Single Arithmetic::
  38504. * Paired-Single Built-in Functions::
  38505. * MIPS-3D Built-in Functions::
  38506. 
  38507. File: gcc.info, Node: Paired-Single Arithmetic, Next: Paired-Single Built-in Functions, Up: MIPS Loongson Built-in Functions
  38508. 6.60.16.1 Paired-Single Arithmetic
  38509. ..................................
  38510. The table below lists the 'v2sf' operations for which hardware support
  38511. exists. 'a', 'b' and 'c' are 'v2sf' values and 'x' is an integral
  38512. value.
  38513. C code MIPS instruction
  38514. 'a + b' 'add.ps'
  38515. 'a - b' 'sub.ps'
  38516. '-a' 'neg.ps'
  38517. 'a * b' 'mul.ps'
  38518. 'a * b + c' 'madd.ps'
  38519. 'a * b - c' 'msub.ps'
  38520. '-(a * b + c)' 'nmadd.ps'
  38521. '-(a * b - c)' 'nmsub.ps'
  38522. 'x ? a : b' 'movn.ps'/'movz.ps'
  38523. Note that the multiply-accumulate instructions can be disabled using
  38524. the command-line option '-mno-fused-madd'.
  38525. 
  38526. 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
  38527. 6.60.16.2 Paired-Single Built-in Functions
  38528. ..........................................
  38529. The following paired-single functions map directly to a particular MIPS
  38530. instruction. Please refer to the architecture specification for details
  38531. on what each instruction does.
  38532. 'v2sf __builtin_mips_pll_ps (v2sf, v2sf)'
  38533. Pair lower lower ('pll.ps').
  38534. 'v2sf __builtin_mips_pul_ps (v2sf, v2sf)'
  38535. Pair upper lower ('pul.ps').
  38536. 'v2sf __builtin_mips_plu_ps (v2sf, v2sf)'
  38537. Pair lower upper ('plu.ps').
  38538. 'v2sf __builtin_mips_puu_ps (v2sf, v2sf)'
  38539. Pair upper upper ('puu.ps').
  38540. 'v2sf __builtin_mips_cvt_ps_s (float, float)'
  38541. Convert pair to paired single ('cvt.ps.s').
  38542. 'float __builtin_mips_cvt_s_pl (v2sf)'
  38543. Convert pair lower to single ('cvt.s.pl').
  38544. 'float __builtin_mips_cvt_s_pu (v2sf)'
  38545. Convert pair upper to single ('cvt.s.pu').
  38546. 'v2sf __builtin_mips_abs_ps (v2sf)'
  38547. Absolute value ('abs.ps').
  38548. 'v2sf __builtin_mips_alnv_ps (v2sf, v2sf, int)'
  38549. Align variable ('alnv.ps').
  38550. _Note:_ The value of the third parameter must be 0 or 4 modulo 8,
  38551. otherwise the result is unpredictable. Please read the instruction
  38552. description for details.
  38553. The following multi-instruction functions are also available. In each
  38554. case, COND can be any of the 16 floating-point conditions: 'f', 'un',
  38555. 'eq', 'ueq', 'olt', 'ult', 'ole', 'ule', 'sf', 'ngle', 'seq', 'ngl',
  38556. 'lt', 'nge', 'le' or 'ngt'.
  38557. 'v2sf __builtin_mips_movt_c_COND_ps (v2sf A, v2sf B, v2sf C, v2sf D)'
  38558. 'v2sf __builtin_mips_movf_c_COND_ps (v2sf A, v2sf B, v2sf C, v2sf D)'
  38559. Conditional move based on floating-point comparison ('c.COND.ps',
  38560. 'movt.ps'/'movf.ps').
  38561. The 'movt' functions return the value X computed by:
  38562. c.COND.ps CC,A,B
  38563. mov.ps X,C
  38564. movt.ps X,D,CC
  38565. The 'movf' functions are similar but use 'movf.ps' instead of
  38566. 'movt.ps'.
  38567. 'int __builtin_mips_upper_c_COND_ps (v2sf A, v2sf B)'
  38568. 'int __builtin_mips_lower_c_COND_ps (v2sf A, v2sf B)'
  38569. Comparison of two paired-single values ('c.COND.ps',
  38570. 'bc1t'/'bc1f').
  38571. These functions compare A and B using 'c.COND.ps' and return either
  38572. the upper or lower half of the result. For example:
  38573. v2sf a, b;
  38574. if (__builtin_mips_upper_c_eq_ps (a, b))
  38575. upper_halves_are_equal ();
  38576. else
  38577. upper_halves_are_unequal ();
  38578. if (__builtin_mips_lower_c_eq_ps (a, b))
  38579. lower_halves_are_equal ();
  38580. else
  38581. lower_halves_are_unequal ();
  38582. 
  38583. File: gcc.info, Node: MIPS-3D Built-in Functions, Prev: Paired-Single Built-in Functions, Up: MIPS Loongson Built-in Functions
  38584. 6.60.16.3 MIPS-3D Built-in Functions
  38585. ....................................
  38586. The MIPS-3D Application-Specific Extension (ASE) includes additional
  38587. paired-single instructions that are designed to improve the performance
  38588. of 3D graphics operations. Support for these instructions is controlled
  38589. by the '-mips3d' command-line option.
  38590. The functions listed below map directly to a particular MIPS-3D
  38591. instruction. Please refer to the architecture specification for more
  38592. details on what each instruction does.
  38593. 'v2sf __builtin_mips_addr_ps (v2sf, v2sf)'
  38594. Reduction add ('addr.ps').
  38595. 'v2sf __builtin_mips_mulr_ps (v2sf, v2sf)'
  38596. Reduction multiply ('mulr.ps').
  38597. 'v2sf __builtin_mips_cvt_pw_ps (v2sf)'
  38598. Convert paired single to paired word ('cvt.pw.ps').
  38599. 'v2sf __builtin_mips_cvt_ps_pw (v2sf)'
  38600. Convert paired word to paired single ('cvt.ps.pw').
  38601. 'float __builtin_mips_recip1_s (float)'
  38602. 'double __builtin_mips_recip1_d (double)'
  38603. 'v2sf __builtin_mips_recip1_ps (v2sf)'
  38604. Reduced-precision reciprocal (sequence step 1) ('recip1.FMT').
  38605. 'float __builtin_mips_recip2_s (float, float)'
  38606. 'double __builtin_mips_recip2_d (double, double)'
  38607. 'v2sf __builtin_mips_recip2_ps (v2sf, v2sf)'
  38608. Reduced-precision reciprocal (sequence step 2) ('recip2.FMT').
  38609. 'float __builtin_mips_rsqrt1_s (float)'
  38610. 'double __builtin_mips_rsqrt1_d (double)'
  38611. 'v2sf __builtin_mips_rsqrt1_ps (v2sf)'
  38612. Reduced-precision reciprocal square root (sequence step 1)
  38613. ('rsqrt1.FMT').
  38614. 'float __builtin_mips_rsqrt2_s (float, float)'
  38615. 'double __builtin_mips_rsqrt2_d (double, double)'
  38616. 'v2sf __builtin_mips_rsqrt2_ps (v2sf, v2sf)'
  38617. Reduced-precision reciprocal square root (sequence step 2)
  38618. ('rsqrt2.FMT').
  38619. The following multi-instruction functions are also available. In each
  38620. case, COND can be any of the 16 floating-point conditions: 'f', 'un',
  38621. 'eq', 'ueq', 'olt', 'ult', 'ole', 'ule', 'sf', 'ngle', 'seq', 'ngl',
  38622. 'lt', 'nge', 'le' or 'ngt'.
  38623. 'int __builtin_mips_cabs_COND_s (float A, float B)'
  38624. 'int __builtin_mips_cabs_COND_d (double A, double B)'
  38625. Absolute comparison of two scalar values ('cabs.COND.FMT',
  38626. 'bc1t'/'bc1f').
  38627. These functions compare A and B using 'cabs.COND.s' or
  38628. 'cabs.COND.d' and return the result as a boolean value. For
  38629. example:
  38630. float a, b;
  38631. if (__builtin_mips_cabs_eq_s (a, b))
  38632. true ();
  38633. else
  38634. false ();
  38635. 'int __builtin_mips_upper_cabs_COND_ps (v2sf A, v2sf B)'
  38636. 'int __builtin_mips_lower_cabs_COND_ps (v2sf A, v2sf B)'
  38637. Absolute comparison of two paired-single values ('cabs.COND.ps',
  38638. 'bc1t'/'bc1f').
  38639. These functions compare A and B using 'cabs.COND.ps' and return
  38640. either the upper or lower half of the result. For example:
  38641. v2sf a, b;
  38642. if (__builtin_mips_upper_cabs_eq_ps (a, b))
  38643. upper_halves_are_equal ();
  38644. else
  38645. upper_halves_are_unequal ();
  38646. if (__builtin_mips_lower_cabs_eq_ps (a, b))
  38647. lower_halves_are_equal ();
  38648. else
  38649. lower_halves_are_unequal ();
  38650. 'v2sf __builtin_mips_movt_cabs_COND_ps (v2sf A, v2sf B, v2sf C, v2sf D)'
  38651. 'v2sf __builtin_mips_movf_cabs_COND_ps (v2sf A, v2sf B, v2sf C, v2sf D)'
  38652. Conditional move based on absolute comparison ('cabs.COND.ps',
  38653. 'movt.ps'/'movf.ps').
  38654. The 'movt' functions return the value X computed by:
  38655. cabs.COND.ps CC,A,B
  38656. mov.ps X,C
  38657. movt.ps X,D,CC
  38658. The 'movf' functions are similar but use 'movf.ps' instead of
  38659. 'movt.ps'.
  38660. 'int __builtin_mips_any_c_COND_ps (v2sf A, v2sf B)'
  38661. 'int __builtin_mips_all_c_COND_ps (v2sf A, v2sf B)'
  38662. 'int __builtin_mips_any_cabs_COND_ps (v2sf A, v2sf B)'
  38663. 'int __builtin_mips_all_cabs_COND_ps (v2sf A, v2sf B)'
  38664. Comparison of two paired-single values ('c.COND.ps'/'cabs.COND.ps',
  38665. 'bc1any2t'/'bc1any2f').
  38666. These functions compare A and B using 'c.COND.ps' or
  38667. 'cabs.COND.ps'. The 'any' forms return 'true' if either result is
  38668. 'true' and the 'all' forms return 'true' if both results are
  38669. 'true'. For example:
  38670. v2sf a, b;
  38671. if (__builtin_mips_any_c_eq_ps (a, b))
  38672. one_is_true ();
  38673. else
  38674. both_are_false ();
  38675. if (__builtin_mips_all_c_eq_ps (a, b))
  38676. both_are_true ();
  38677. else
  38678. one_is_false ();
  38679. 'int __builtin_mips_any_c_COND_4s (v2sf A, v2sf B, v2sf C, v2sf D)'
  38680. 'int __builtin_mips_all_c_COND_4s (v2sf A, v2sf B, v2sf C, v2sf D)'
  38681. 'int __builtin_mips_any_cabs_COND_4s (v2sf A, v2sf B, v2sf C, v2sf D)'
  38682. 'int __builtin_mips_all_cabs_COND_4s (v2sf A, v2sf B, v2sf C, v2sf D)'
  38683. Comparison of four paired-single values
  38684. ('c.COND.ps'/'cabs.COND.ps', 'bc1any4t'/'bc1any4f').
  38685. These functions use 'c.COND.ps' or 'cabs.COND.ps' to compare A with
  38686. B and to compare C with D. The 'any' forms return 'true' if any of
  38687. the four results are 'true' and the 'all' forms return 'true' if
  38688. all four results are 'true'. For example:
  38689. v2sf a, b, c, d;
  38690. if (__builtin_mips_any_c_eq_4s (a, b, c, d))
  38691. some_are_true ();
  38692. else
  38693. all_are_false ();
  38694. if (__builtin_mips_all_c_eq_4s (a, b, c, d))
  38695. all_are_true ();
  38696. else
  38697. some_are_false ();
  38698. 
  38699. File: gcc.info, Node: MIPS SIMD Architecture (MSA) Support, Next: Other MIPS Built-in Functions, Prev: MIPS Loongson Built-in Functions, Up: Target Builtins
  38700. 6.60.17 MIPS SIMD Architecture (MSA) Support
  38701. --------------------------------------------
  38702. * Menu:
  38703. * MIPS SIMD Architecture Built-in Functions::
  38704. GCC provides intrinsics to access the SIMD instructions provided by the
  38705. MSA MIPS SIMD Architecture. The interface is made available by
  38706. including '<msa.h>' and using '-mmsa -mhard-float -mfp64 -mnan=2008'.
  38707. For each '__builtin_msa_*', there is a shortened name of the intrinsic,
  38708. '__msa_*'.
  38709. MSA implements 128-bit wide vector registers, operating on 8-, 16-, 32-
  38710. and 64-bit integer, 16- and 32-bit fixed-point, or 32- and 64-bit
  38711. floating point data elements. The following vectors typedefs are
  38712. included in 'msa.h':
  38713. * 'v16i8', a vector of sixteen signed 8-bit integers;
  38714. * 'v16u8', a vector of sixteen unsigned 8-bit integers;
  38715. * 'v8i16', a vector of eight signed 16-bit integers;
  38716. * 'v8u16', a vector of eight unsigned 16-bit integers;
  38717. * 'v4i32', a vector of four signed 32-bit integers;
  38718. * 'v4u32', a vector of four unsigned 32-bit integers;
  38719. * 'v2i64', a vector of two signed 64-bit integers;
  38720. * 'v2u64', a vector of two unsigned 64-bit integers;
  38721. * 'v4f32', a vector of four 32-bit floats;
  38722. * 'v2f64', a vector of two 64-bit doubles.
  38723. Instructions and corresponding built-ins may have additional
  38724. restrictions and/or input/output values manipulated:
  38725. * 'imm0_1', an integer literal in range 0 to 1;
  38726. * 'imm0_3', an integer literal in range 0 to 3;
  38727. * 'imm0_7', an integer literal in range 0 to 7;
  38728. * 'imm0_15', an integer literal in range 0 to 15;
  38729. * 'imm0_31', an integer literal in range 0 to 31;
  38730. * 'imm0_63', an integer literal in range 0 to 63;
  38731. * 'imm0_255', an integer literal in range 0 to 255;
  38732. * 'imm_n16_15', an integer literal in range -16 to 15;
  38733. * 'imm_n512_511', an integer literal in range -512 to 511;
  38734. * 'imm_n1024_1022', an integer literal in range -512 to 511 left
  38735. shifted by 1 bit, i.e., -1024, -1022, ..., 1020, 1022;
  38736. * 'imm_n2048_2044', an integer literal in range -512 to 511 left
  38737. shifted by 2 bits, i.e., -2048, -2044, ..., 2040, 2044;
  38738. * 'imm_n4096_4088', an integer literal in range -512 to 511 left
  38739. shifted by 3 bits, i.e., -4096, -4088, ..., 4080, 4088;
  38740. * 'imm1_4', an integer literal in range 1 to 4;
  38741. * 'i32, i64, u32, u64, f32, f64', defined as follows:
  38742. {
  38743. typedef int i32;
  38744. #if __LONG_MAX__ == __LONG_LONG_MAX__
  38745. typedef long i64;
  38746. #else
  38747. typedef long long i64;
  38748. #endif
  38749. typedef unsigned int u32;
  38750. #if __LONG_MAX__ == __LONG_LONG_MAX__
  38751. typedef unsigned long u64;
  38752. #else
  38753. typedef unsigned long long u64;
  38754. #endif
  38755. typedef double f64;
  38756. typedef float f32;
  38757. }
  38758. 
  38759. File: gcc.info, Node: MIPS SIMD Architecture Built-in Functions, Up: MIPS SIMD Architecture (MSA) Support
  38760. 6.60.17.1 MIPS SIMD Architecture Built-in Functions
  38761. ...................................................
  38762. The intrinsics provided are listed below; each is named after the
  38763. machine instruction.
  38764. v16i8 __builtin_msa_add_a_b (v16i8, v16i8);
  38765. v8i16 __builtin_msa_add_a_h (v8i16, v8i16);
  38766. v4i32 __builtin_msa_add_a_w (v4i32, v4i32);
  38767. v2i64 __builtin_msa_add_a_d (v2i64, v2i64);
  38768. v16i8 __builtin_msa_adds_a_b (v16i8, v16i8);
  38769. v8i16 __builtin_msa_adds_a_h (v8i16, v8i16);
  38770. v4i32 __builtin_msa_adds_a_w (v4i32, v4i32);
  38771. v2i64 __builtin_msa_adds_a_d (v2i64, v2i64);
  38772. v16i8 __builtin_msa_adds_s_b (v16i8, v16i8);
  38773. v8i16 __builtin_msa_adds_s_h (v8i16, v8i16);
  38774. v4i32 __builtin_msa_adds_s_w (v4i32, v4i32);
  38775. v2i64 __builtin_msa_adds_s_d (v2i64, v2i64);
  38776. v16u8 __builtin_msa_adds_u_b (v16u8, v16u8);
  38777. v8u16 __builtin_msa_adds_u_h (v8u16, v8u16);
  38778. v4u32 __builtin_msa_adds_u_w (v4u32, v4u32);
  38779. v2u64 __builtin_msa_adds_u_d (v2u64, v2u64);
  38780. v16i8 __builtin_msa_addv_b (v16i8, v16i8);
  38781. v8i16 __builtin_msa_addv_h (v8i16, v8i16);
  38782. v4i32 __builtin_msa_addv_w (v4i32, v4i32);
  38783. v2i64 __builtin_msa_addv_d (v2i64, v2i64);
  38784. v16i8 __builtin_msa_addvi_b (v16i8, imm0_31);
  38785. v8i16 __builtin_msa_addvi_h (v8i16, imm0_31);
  38786. v4i32 __builtin_msa_addvi_w (v4i32, imm0_31);
  38787. v2i64 __builtin_msa_addvi_d (v2i64, imm0_31);
  38788. v16u8 __builtin_msa_and_v (v16u8, v16u8);
  38789. v16u8 __builtin_msa_andi_b (v16u8, imm0_255);
  38790. v16i8 __builtin_msa_asub_s_b (v16i8, v16i8);
  38791. v8i16 __builtin_msa_asub_s_h (v8i16, v8i16);
  38792. v4i32 __builtin_msa_asub_s_w (v4i32, v4i32);
  38793. v2i64 __builtin_msa_asub_s_d (v2i64, v2i64);
  38794. v16u8 __builtin_msa_asub_u_b (v16u8, v16u8);
  38795. v8u16 __builtin_msa_asub_u_h (v8u16, v8u16);
  38796. v4u32 __builtin_msa_asub_u_w (v4u32, v4u32);
  38797. v2u64 __builtin_msa_asub_u_d (v2u64, v2u64);
  38798. v16i8 __builtin_msa_ave_s_b (v16i8, v16i8);
  38799. v8i16 __builtin_msa_ave_s_h (v8i16, v8i16);
  38800. v4i32 __builtin_msa_ave_s_w (v4i32, v4i32);
  38801. v2i64 __builtin_msa_ave_s_d (v2i64, v2i64);
  38802. v16u8 __builtin_msa_ave_u_b (v16u8, v16u8);
  38803. v8u16 __builtin_msa_ave_u_h (v8u16, v8u16);
  38804. v4u32 __builtin_msa_ave_u_w (v4u32, v4u32);
  38805. v2u64 __builtin_msa_ave_u_d (v2u64, v2u64);
  38806. v16i8 __builtin_msa_aver_s_b (v16i8, v16i8);
  38807. v8i16 __builtin_msa_aver_s_h (v8i16, v8i16);
  38808. v4i32 __builtin_msa_aver_s_w (v4i32, v4i32);
  38809. v2i64 __builtin_msa_aver_s_d (v2i64, v2i64);
  38810. v16u8 __builtin_msa_aver_u_b (v16u8, v16u8);
  38811. v8u16 __builtin_msa_aver_u_h (v8u16, v8u16);
  38812. v4u32 __builtin_msa_aver_u_w (v4u32, v4u32);
  38813. v2u64 __builtin_msa_aver_u_d (v2u64, v2u64);
  38814. v16u8 __builtin_msa_bclr_b (v16u8, v16u8);
  38815. v8u16 __builtin_msa_bclr_h (v8u16, v8u16);
  38816. v4u32 __builtin_msa_bclr_w (v4u32, v4u32);
  38817. v2u64 __builtin_msa_bclr_d (v2u64, v2u64);
  38818. v16u8 __builtin_msa_bclri_b (v16u8, imm0_7);
  38819. v8u16 __builtin_msa_bclri_h (v8u16, imm0_15);
  38820. v4u32 __builtin_msa_bclri_w (v4u32, imm0_31);
  38821. v2u64 __builtin_msa_bclri_d (v2u64, imm0_63);
  38822. v16u8 __builtin_msa_binsl_b (v16u8, v16u8, v16u8);
  38823. v8u16 __builtin_msa_binsl_h (v8u16, v8u16, v8u16);
  38824. v4u32 __builtin_msa_binsl_w (v4u32, v4u32, v4u32);
  38825. v2u64 __builtin_msa_binsl_d (v2u64, v2u64, v2u64);
  38826. v16u8 __builtin_msa_binsli_b (v16u8, v16u8, imm0_7);
  38827. v8u16 __builtin_msa_binsli_h (v8u16, v8u16, imm0_15);
  38828. v4u32 __builtin_msa_binsli_w (v4u32, v4u32, imm0_31);
  38829. v2u64 __builtin_msa_binsli_d (v2u64, v2u64, imm0_63);
  38830. v16u8 __builtin_msa_binsr_b (v16u8, v16u8, v16u8);
  38831. v8u16 __builtin_msa_binsr_h (v8u16, v8u16, v8u16);
  38832. v4u32 __builtin_msa_binsr_w (v4u32, v4u32, v4u32);
  38833. v2u64 __builtin_msa_binsr_d (v2u64, v2u64, v2u64);
  38834. v16u8 __builtin_msa_binsri_b (v16u8, v16u8, imm0_7);
  38835. v8u16 __builtin_msa_binsri_h (v8u16, v8u16, imm0_15);
  38836. v4u32 __builtin_msa_binsri_w (v4u32, v4u32, imm0_31);
  38837. v2u64 __builtin_msa_binsri_d (v2u64, v2u64, imm0_63);
  38838. v16u8 __builtin_msa_bmnz_v (v16u8, v16u8, v16u8);
  38839. v16u8 __builtin_msa_bmnzi_b (v16u8, v16u8, imm0_255);
  38840. v16u8 __builtin_msa_bmz_v (v16u8, v16u8, v16u8);
  38841. v16u8 __builtin_msa_bmzi_b (v16u8, v16u8, imm0_255);
  38842. v16u8 __builtin_msa_bneg_b (v16u8, v16u8);
  38843. v8u16 __builtin_msa_bneg_h (v8u16, v8u16);
  38844. v4u32 __builtin_msa_bneg_w (v4u32, v4u32);
  38845. v2u64 __builtin_msa_bneg_d (v2u64, v2u64);
  38846. v16u8 __builtin_msa_bnegi_b (v16u8, imm0_7);
  38847. v8u16 __builtin_msa_bnegi_h (v8u16, imm0_15);
  38848. v4u32 __builtin_msa_bnegi_w (v4u32, imm0_31);
  38849. v2u64 __builtin_msa_bnegi_d (v2u64, imm0_63);
  38850. i32 __builtin_msa_bnz_b (v16u8);
  38851. i32 __builtin_msa_bnz_h (v8u16);
  38852. i32 __builtin_msa_bnz_w (v4u32);
  38853. i32 __builtin_msa_bnz_d (v2u64);
  38854. i32 __builtin_msa_bnz_v (v16u8);
  38855. v16u8 __builtin_msa_bsel_v (v16u8, v16u8, v16u8);
  38856. v16u8 __builtin_msa_bseli_b (v16u8, v16u8, imm0_255);
  38857. v16u8 __builtin_msa_bset_b (v16u8, v16u8);
  38858. v8u16 __builtin_msa_bset_h (v8u16, v8u16);
  38859. v4u32 __builtin_msa_bset_w (v4u32, v4u32);
  38860. v2u64 __builtin_msa_bset_d (v2u64, v2u64);
  38861. v16u8 __builtin_msa_bseti_b (v16u8, imm0_7);
  38862. v8u16 __builtin_msa_bseti_h (v8u16, imm0_15);
  38863. v4u32 __builtin_msa_bseti_w (v4u32, imm0_31);
  38864. v2u64 __builtin_msa_bseti_d (v2u64, imm0_63);
  38865. i32 __builtin_msa_bz_b (v16u8);
  38866. i32 __builtin_msa_bz_h (v8u16);
  38867. i32 __builtin_msa_bz_w (v4u32);
  38868. i32 __builtin_msa_bz_d (v2u64);
  38869. i32 __builtin_msa_bz_v (v16u8);
  38870. v16i8 __builtin_msa_ceq_b (v16i8, v16i8);
  38871. v8i16 __builtin_msa_ceq_h (v8i16, v8i16);
  38872. v4i32 __builtin_msa_ceq_w (v4i32, v4i32);
  38873. v2i64 __builtin_msa_ceq_d (v2i64, v2i64);
  38874. v16i8 __builtin_msa_ceqi_b (v16i8, imm_n16_15);
  38875. v8i16 __builtin_msa_ceqi_h (v8i16, imm_n16_15);
  38876. v4i32 __builtin_msa_ceqi_w (v4i32, imm_n16_15);
  38877. v2i64 __builtin_msa_ceqi_d (v2i64, imm_n16_15);
  38878. i32 __builtin_msa_cfcmsa (imm0_31);
  38879. v16i8 __builtin_msa_cle_s_b (v16i8, v16i8);
  38880. v8i16 __builtin_msa_cle_s_h (v8i16, v8i16);
  38881. v4i32 __builtin_msa_cle_s_w (v4i32, v4i32);
  38882. v2i64 __builtin_msa_cle_s_d (v2i64, v2i64);
  38883. v16i8 __builtin_msa_cle_u_b (v16u8, v16u8);
  38884. v8i16 __builtin_msa_cle_u_h (v8u16, v8u16);
  38885. v4i32 __builtin_msa_cle_u_w (v4u32, v4u32);
  38886. v2i64 __builtin_msa_cle_u_d (v2u64, v2u64);
  38887. v16i8 __builtin_msa_clei_s_b (v16i8, imm_n16_15);
  38888. v8i16 __builtin_msa_clei_s_h (v8i16, imm_n16_15);
  38889. v4i32 __builtin_msa_clei_s_w (v4i32, imm_n16_15);
  38890. v2i64 __builtin_msa_clei_s_d (v2i64, imm_n16_15);
  38891. v16i8 __builtin_msa_clei_u_b (v16u8, imm0_31);
  38892. v8i16 __builtin_msa_clei_u_h (v8u16, imm0_31);
  38893. v4i32 __builtin_msa_clei_u_w (v4u32, imm0_31);
  38894. v2i64 __builtin_msa_clei_u_d (v2u64, imm0_31);
  38895. v16i8 __builtin_msa_clt_s_b (v16i8, v16i8);
  38896. v8i16 __builtin_msa_clt_s_h (v8i16, v8i16);
  38897. v4i32 __builtin_msa_clt_s_w (v4i32, v4i32);
  38898. v2i64 __builtin_msa_clt_s_d (v2i64, v2i64);
  38899. v16i8 __builtin_msa_clt_u_b (v16u8, v16u8);
  38900. v8i16 __builtin_msa_clt_u_h (v8u16, v8u16);
  38901. v4i32 __builtin_msa_clt_u_w (v4u32, v4u32);
  38902. v2i64 __builtin_msa_clt_u_d (v2u64, v2u64);
  38903. v16i8 __builtin_msa_clti_s_b (v16i8, imm_n16_15);
  38904. v8i16 __builtin_msa_clti_s_h (v8i16, imm_n16_15);
  38905. v4i32 __builtin_msa_clti_s_w (v4i32, imm_n16_15);
  38906. v2i64 __builtin_msa_clti_s_d (v2i64, imm_n16_15);
  38907. v16i8 __builtin_msa_clti_u_b (v16u8, imm0_31);
  38908. v8i16 __builtin_msa_clti_u_h (v8u16, imm0_31);
  38909. v4i32 __builtin_msa_clti_u_w (v4u32, imm0_31);
  38910. v2i64 __builtin_msa_clti_u_d (v2u64, imm0_31);
  38911. i32 __builtin_msa_copy_s_b (v16i8, imm0_15);
  38912. i32 __builtin_msa_copy_s_h (v8i16, imm0_7);
  38913. i32 __builtin_msa_copy_s_w (v4i32, imm0_3);
  38914. i64 __builtin_msa_copy_s_d (v2i64, imm0_1);
  38915. u32 __builtin_msa_copy_u_b (v16i8, imm0_15);
  38916. u32 __builtin_msa_copy_u_h (v8i16, imm0_7);
  38917. u32 __builtin_msa_copy_u_w (v4i32, imm0_3);
  38918. u64 __builtin_msa_copy_u_d (v2i64, imm0_1);
  38919. void __builtin_msa_ctcmsa (imm0_31, i32);
  38920. v16i8 __builtin_msa_div_s_b (v16i8, v16i8);
  38921. v8i16 __builtin_msa_div_s_h (v8i16, v8i16);
  38922. v4i32 __builtin_msa_div_s_w (v4i32, v4i32);
  38923. v2i64 __builtin_msa_div_s_d (v2i64, v2i64);
  38924. v16u8 __builtin_msa_div_u_b (v16u8, v16u8);
  38925. v8u16 __builtin_msa_div_u_h (v8u16, v8u16);
  38926. v4u32 __builtin_msa_div_u_w (v4u32, v4u32);
  38927. v2u64 __builtin_msa_div_u_d (v2u64, v2u64);
  38928. v8i16 __builtin_msa_dotp_s_h (v16i8, v16i8);
  38929. v4i32 __builtin_msa_dotp_s_w (v8i16, v8i16);
  38930. v2i64 __builtin_msa_dotp_s_d (v4i32, v4i32);
  38931. v8u16 __builtin_msa_dotp_u_h (v16u8, v16u8);
  38932. v4u32 __builtin_msa_dotp_u_w (v8u16, v8u16);
  38933. v2u64 __builtin_msa_dotp_u_d (v4u32, v4u32);
  38934. v8i16 __builtin_msa_dpadd_s_h (v8i16, v16i8, v16i8);
  38935. v4i32 __builtin_msa_dpadd_s_w (v4i32, v8i16, v8i16);
  38936. v2i64 __builtin_msa_dpadd_s_d (v2i64, v4i32, v4i32);
  38937. v8u16 __builtin_msa_dpadd_u_h (v8u16, v16u8, v16u8);
  38938. v4u32 __builtin_msa_dpadd_u_w (v4u32, v8u16, v8u16);
  38939. v2u64 __builtin_msa_dpadd_u_d (v2u64, v4u32, v4u32);
  38940. v8i16 __builtin_msa_dpsub_s_h (v8i16, v16i8, v16i8);
  38941. v4i32 __builtin_msa_dpsub_s_w (v4i32, v8i16, v8i16);
  38942. v2i64 __builtin_msa_dpsub_s_d (v2i64, v4i32, v4i32);
  38943. v8i16 __builtin_msa_dpsub_u_h (v8i16, v16u8, v16u8);
  38944. v4i32 __builtin_msa_dpsub_u_w (v4i32, v8u16, v8u16);
  38945. v2i64 __builtin_msa_dpsub_u_d (v2i64, v4u32, v4u32);
  38946. v4f32 __builtin_msa_fadd_w (v4f32, v4f32);
  38947. v2f64 __builtin_msa_fadd_d (v2f64, v2f64);
  38948. v4i32 __builtin_msa_fcaf_w (v4f32, v4f32);
  38949. v2i64 __builtin_msa_fcaf_d (v2f64, v2f64);
  38950. v4i32 __builtin_msa_fceq_w (v4f32, v4f32);
  38951. v2i64 __builtin_msa_fceq_d (v2f64, v2f64);
  38952. v4i32 __builtin_msa_fclass_w (v4f32);
  38953. v2i64 __builtin_msa_fclass_d (v2f64);
  38954. v4i32 __builtin_msa_fcle_w (v4f32, v4f32);
  38955. v2i64 __builtin_msa_fcle_d (v2f64, v2f64);
  38956. v4i32 __builtin_msa_fclt_w (v4f32, v4f32);
  38957. v2i64 __builtin_msa_fclt_d (v2f64, v2f64);
  38958. v4i32 __builtin_msa_fcne_w (v4f32, v4f32);
  38959. v2i64 __builtin_msa_fcne_d (v2f64, v2f64);
  38960. v4i32 __builtin_msa_fcor_w (v4f32, v4f32);
  38961. v2i64 __builtin_msa_fcor_d (v2f64, v2f64);
  38962. v4i32 __builtin_msa_fcueq_w (v4f32, v4f32);
  38963. v2i64 __builtin_msa_fcueq_d (v2f64, v2f64);
  38964. v4i32 __builtin_msa_fcule_w (v4f32, v4f32);
  38965. v2i64 __builtin_msa_fcule_d (v2f64, v2f64);
  38966. v4i32 __builtin_msa_fcult_w (v4f32, v4f32);
  38967. v2i64 __builtin_msa_fcult_d (v2f64, v2f64);
  38968. v4i32 __builtin_msa_fcun_w (v4f32, v4f32);
  38969. v2i64 __builtin_msa_fcun_d (v2f64, v2f64);
  38970. v4i32 __builtin_msa_fcune_w (v4f32, v4f32);
  38971. v2i64 __builtin_msa_fcune_d (v2f64, v2f64);
  38972. v4f32 __builtin_msa_fdiv_w (v4f32, v4f32);
  38973. v2f64 __builtin_msa_fdiv_d (v2f64, v2f64);
  38974. v8i16 __builtin_msa_fexdo_h (v4f32, v4f32);
  38975. v4f32 __builtin_msa_fexdo_w (v2f64, v2f64);
  38976. v4f32 __builtin_msa_fexp2_w (v4f32, v4i32);
  38977. v2f64 __builtin_msa_fexp2_d (v2f64, v2i64);
  38978. v4f32 __builtin_msa_fexupl_w (v8i16);
  38979. v2f64 __builtin_msa_fexupl_d (v4f32);
  38980. v4f32 __builtin_msa_fexupr_w (v8i16);
  38981. v2f64 __builtin_msa_fexupr_d (v4f32);
  38982. v4f32 __builtin_msa_ffint_s_w (v4i32);
  38983. v2f64 __builtin_msa_ffint_s_d (v2i64);
  38984. v4f32 __builtin_msa_ffint_u_w (v4u32);
  38985. v2f64 __builtin_msa_ffint_u_d (v2u64);
  38986. v4f32 __builtin_msa_ffql_w (v8i16);
  38987. v2f64 __builtin_msa_ffql_d (v4i32);
  38988. v4f32 __builtin_msa_ffqr_w (v8i16);
  38989. v2f64 __builtin_msa_ffqr_d (v4i32);
  38990. v16i8 __builtin_msa_fill_b (i32);
  38991. v8i16 __builtin_msa_fill_h (i32);
  38992. v4i32 __builtin_msa_fill_w (i32);
  38993. v2i64 __builtin_msa_fill_d (i64);
  38994. v4f32 __builtin_msa_flog2_w (v4f32);
  38995. v2f64 __builtin_msa_flog2_d (v2f64);
  38996. v4f32 __builtin_msa_fmadd_w (v4f32, v4f32, v4f32);
  38997. v2f64 __builtin_msa_fmadd_d (v2f64, v2f64, v2f64);
  38998. v4f32 __builtin_msa_fmax_w (v4f32, v4f32);
  38999. v2f64 __builtin_msa_fmax_d (v2f64, v2f64);
  39000. v4f32 __builtin_msa_fmax_a_w (v4f32, v4f32);
  39001. v2f64 __builtin_msa_fmax_a_d (v2f64, v2f64);
  39002. v4f32 __builtin_msa_fmin_w (v4f32, v4f32);
  39003. v2f64 __builtin_msa_fmin_d (v2f64, v2f64);
  39004. v4f32 __builtin_msa_fmin_a_w (v4f32, v4f32);
  39005. v2f64 __builtin_msa_fmin_a_d (v2f64, v2f64);
  39006. v4f32 __builtin_msa_fmsub_w (v4f32, v4f32, v4f32);
  39007. v2f64 __builtin_msa_fmsub_d (v2f64, v2f64, v2f64);
  39008. v4f32 __builtin_msa_fmul_w (v4f32, v4f32);
  39009. v2f64 __builtin_msa_fmul_d (v2f64, v2f64);
  39010. v4f32 __builtin_msa_frint_w (v4f32);
  39011. v2f64 __builtin_msa_frint_d (v2f64);
  39012. v4f32 __builtin_msa_frcp_w (v4f32);
  39013. v2f64 __builtin_msa_frcp_d (v2f64);
  39014. v4f32 __builtin_msa_frsqrt_w (v4f32);
  39015. v2f64 __builtin_msa_frsqrt_d (v2f64);
  39016. v4i32 __builtin_msa_fsaf_w (v4f32, v4f32);
  39017. v2i64 __builtin_msa_fsaf_d (v2f64, v2f64);
  39018. v4i32 __builtin_msa_fseq_w (v4f32, v4f32);
  39019. v2i64 __builtin_msa_fseq_d (v2f64, v2f64);
  39020. v4i32 __builtin_msa_fsle_w (v4f32, v4f32);
  39021. v2i64 __builtin_msa_fsle_d (v2f64, v2f64);
  39022. v4i32 __builtin_msa_fslt_w (v4f32, v4f32);
  39023. v2i64 __builtin_msa_fslt_d (v2f64, v2f64);
  39024. v4i32 __builtin_msa_fsne_w (v4f32, v4f32);
  39025. v2i64 __builtin_msa_fsne_d (v2f64, v2f64);
  39026. v4i32 __builtin_msa_fsor_w (v4f32, v4f32);
  39027. v2i64 __builtin_msa_fsor_d (v2f64, v2f64);
  39028. v4f32 __builtin_msa_fsqrt_w (v4f32);
  39029. v2f64 __builtin_msa_fsqrt_d (v2f64);
  39030. v4f32 __builtin_msa_fsub_w (v4f32, v4f32);
  39031. v2f64 __builtin_msa_fsub_d (v2f64, v2f64);
  39032. v4i32 __builtin_msa_fsueq_w (v4f32, v4f32);
  39033. v2i64 __builtin_msa_fsueq_d (v2f64, v2f64);
  39034. v4i32 __builtin_msa_fsule_w (v4f32, v4f32);
  39035. v2i64 __builtin_msa_fsule_d (v2f64, v2f64);
  39036. v4i32 __builtin_msa_fsult_w (v4f32, v4f32);
  39037. v2i64 __builtin_msa_fsult_d (v2f64, v2f64);
  39038. v4i32 __builtin_msa_fsun_w (v4f32, v4f32);
  39039. v2i64 __builtin_msa_fsun_d (v2f64, v2f64);
  39040. v4i32 __builtin_msa_fsune_w (v4f32, v4f32);
  39041. v2i64 __builtin_msa_fsune_d (v2f64, v2f64);
  39042. v4i32 __builtin_msa_ftint_s_w (v4f32);
  39043. v2i64 __builtin_msa_ftint_s_d (v2f64);
  39044. v4u32 __builtin_msa_ftint_u_w (v4f32);
  39045. v2u64 __builtin_msa_ftint_u_d (v2f64);
  39046. v8i16 __builtin_msa_ftq_h (v4f32, v4f32);
  39047. v4i32 __builtin_msa_ftq_w (v2f64, v2f64);
  39048. v4i32 __builtin_msa_ftrunc_s_w (v4f32);
  39049. v2i64 __builtin_msa_ftrunc_s_d (v2f64);
  39050. v4u32 __builtin_msa_ftrunc_u_w (v4f32);
  39051. v2u64 __builtin_msa_ftrunc_u_d (v2f64);
  39052. v8i16 __builtin_msa_hadd_s_h (v16i8, v16i8);
  39053. v4i32 __builtin_msa_hadd_s_w (v8i16, v8i16);
  39054. v2i64 __builtin_msa_hadd_s_d (v4i32, v4i32);
  39055. v8u16 __builtin_msa_hadd_u_h (v16u8, v16u8);
  39056. v4u32 __builtin_msa_hadd_u_w (v8u16, v8u16);
  39057. v2u64 __builtin_msa_hadd_u_d (v4u32, v4u32);
  39058. v8i16 __builtin_msa_hsub_s_h (v16i8, v16i8);
  39059. v4i32 __builtin_msa_hsub_s_w (v8i16, v8i16);
  39060. v2i64 __builtin_msa_hsub_s_d (v4i32, v4i32);
  39061. v8i16 __builtin_msa_hsub_u_h (v16u8, v16u8);
  39062. v4i32 __builtin_msa_hsub_u_w (v8u16, v8u16);
  39063. v2i64 __builtin_msa_hsub_u_d (v4u32, v4u32);
  39064. v16i8 __builtin_msa_ilvev_b (v16i8, v16i8);
  39065. v8i16 __builtin_msa_ilvev_h (v8i16, v8i16);
  39066. v4i32 __builtin_msa_ilvev_w (v4i32, v4i32);
  39067. v2i64 __builtin_msa_ilvev_d (v2i64, v2i64);
  39068. v16i8 __builtin_msa_ilvl_b (v16i8, v16i8);
  39069. v8i16 __builtin_msa_ilvl_h (v8i16, v8i16);
  39070. v4i32 __builtin_msa_ilvl_w (v4i32, v4i32);
  39071. v2i64 __builtin_msa_ilvl_d (v2i64, v2i64);
  39072. v16i8 __builtin_msa_ilvod_b (v16i8, v16i8);
  39073. v8i16 __builtin_msa_ilvod_h (v8i16, v8i16);
  39074. v4i32 __builtin_msa_ilvod_w (v4i32, v4i32);
  39075. v2i64 __builtin_msa_ilvod_d (v2i64, v2i64);
  39076. v16i8 __builtin_msa_ilvr_b (v16i8, v16i8);
  39077. v8i16 __builtin_msa_ilvr_h (v8i16, v8i16);
  39078. v4i32 __builtin_msa_ilvr_w (v4i32, v4i32);
  39079. v2i64 __builtin_msa_ilvr_d (v2i64, v2i64);
  39080. v16i8 __builtin_msa_insert_b (v16i8, imm0_15, i32);
  39081. v8i16 __builtin_msa_insert_h (v8i16, imm0_7, i32);
  39082. v4i32 __builtin_msa_insert_w (v4i32, imm0_3, i32);
  39083. v2i64 __builtin_msa_insert_d (v2i64, imm0_1, i64);
  39084. v16i8 __builtin_msa_insve_b (v16i8, imm0_15, v16i8);
  39085. v8i16 __builtin_msa_insve_h (v8i16, imm0_7, v8i16);
  39086. v4i32 __builtin_msa_insve_w (v4i32, imm0_3, v4i32);
  39087. v2i64 __builtin_msa_insve_d (v2i64, imm0_1, v2i64);
  39088. v16i8 __builtin_msa_ld_b (const void *, imm_n512_511);
  39089. v8i16 __builtin_msa_ld_h (const void *, imm_n1024_1022);
  39090. v4i32 __builtin_msa_ld_w (const void *, imm_n2048_2044);
  39091. v2i64 __builtin_msa_ld_d (const void *, imm_n4096_4088);
  39092. v16i8 __builtin_msa_ldi_b (imm_n512_511);
  39093. v8i16 __builtin_msa_ldi_h (imm_n512_511);
  39094. v4i32 __builtin_msa_ldi_w (imm_n512_511);
  39095. v2i64 __builtin_msa_ldi_d (imm_n512_511);
  39096. v8i16 __builtin_msa_madd_q_h (v8i16, v8i16, v8i16);
  39097. v4i32 __builtin_msa_madd_q_w (v4i32, v4i32, v4i32);
  39098. v8i16 __builtin_msa_maddr_q_h (v8i16, v8i16, v8i16);
  39099. v4i32 __builtin_msa_maddr_q_w (v4i32, v4i32, v4i32);
  39100. v16i8 __builtin_msa_maddv_b (v16i8, v16i8, v16i8);
  39101. v8i16 __builtin_msa_maddv_h (v8i16, v8i16, v8i16);
  39102. v4i32 __builtin_msa_maddv_w (v4i32, v4i32, v4i32);
  39103. v2i64 __builtin_msa_maddv_d (v2i64, v2i64, v2i64);
  39104. v16i8 __builtin_msa_max_a_b (v16i8, v16i8);
  39105. v8i16 __builtin_msa_max_a_h (v8i16, v8i16);
  39106. v4i32 __builtin_msa_max_a_w (v4i32, v4i32);
  39107. v2i64 __builtin_msa_max_a_d (v2i64, v2i64);
  39108. v16i8 __builtin_msa_max_s_b (v16i8, v16i8);
  39109. v8i16 __builtin_msa_max_s_h (v8i16, v8i16);
  39110. v4i32 __builtin_msa_max_s_w (v4i32, v4i32);
  39111. v2i64 __builtin_msa_max_s_d (v2i64, v2i64);
  39112. v16u8 __builtin_msa_max_u_b (v16u8, v16u8);
  39113. v8u16 __builtin_msa_max_u_h (v8u16, v8u16);
  39114. v4u32 __builtin_msa_max_u_w (v4u32, v4u32);
  39115. v2u64 __builtin_msa_max_u_d (v2u64, v2u64);
  39116. v16i8 __builtin_msa_maxi_s_b (v16i8, imm_n16_15);
  39117. v8i16 __builtin_msa_maxi_s_h (v8i16, imm_n16_15);
  39118. v4i32 __builtin_msa_maxi_s_w (v4i32, imm_n16_15);
  39119. v2i64 __builtin_msa_maxi_s_d (v2i64, imm_n16_15);
  39120. v16u8 __builtin_msa_maxi_u_b (v16u8, imm0_31);
  39121. v8u16 __builtin_msa_maxi_u_h (v8u16, imm0_31);
  39122. v4u32 __builtin_msa_maxi_u_w (v4u32, imm0_31);
  39123. v2u64 __builtin_msa_maxi_u_d (v2u64, imm0_31);
  39124. v16i8 __builtin_msa_min_a_b (v16i8, v16i8);
  39125. v8i16 __builtin_msa_min_a_h (v8i16, v8i16);
  39126. v4i32 __builtin_msa_min_a_w (v4i32, v4i32);
  39127. v2i64 __builtin_msa_min_a_d (v2i64, v2i64);
  39128. v16i8 __builtin_msa_min_s_b (v16i8, v16i8);
  39129. v8i16 __builtin_msa_min_s_h (v8i16, v8i16);
  39130. v4i32 __builtin_msa_min_s_w (v4i32, v4i32);
  39131. v2i64 __builtin_msa_min_s_d (v2i64, v2i64);
  39132. v16u8 __builtin_msa_min_u_b (v16u8, v16u8);
  39133. v8u16 __builtin_msa_min_u_h (v8u16, v8u16);
  39134. v4u32 __builtin_msa_min_u_w (v4u32, v4u32);
  39135. v2u64 __builtin_msa_min_u_d (v2u64, v2u64);
  39136. v16i8 __builtin_msa_mini_s_b (v16i8, imm_n16_15);
  39137. v8i16 __builtin_msa_mini_s_h (v8i16, imm_n16_15);
  39138. v4i32 __builtin_msa_mini_s_w (v4i32, imm_n16_15);
  39139. v2i64 __builtin_msa_mini_s_d (v2i64, imm_n16_15);
  39140. v16u8 __builtin_msa_mini_u_b (v16u8, imm0_31);
  39141. v8u16 __builtin_msa_mini_u_h (v8u16, imm0_31);
  39142. v4u32 __builtin_msa_mini_u_w (v4u32, imm0_31);
  39143. v2u64 __builtin_msa_mini_u_d (v2u64, imm0_31);
  39144. v16i8 __builtin_msa_mod_s_b (v16i8, v16i8);
  39145. v8i16 __builtin_msa_mod_s_h (v8i16, v8i16);
  39146. v4i32 __builtin_msa_mod_s_w (v4i32, v4i32);
  39147. v2i64 __builtin_msa_mod_s_d (v2i64, v2i64);
  39148. v16u8 __builtin_msa_mod_u_b (v16u8, v16u8);
  39149. v8u16 __builtin_msa_mod_u_h (v8u16, v8u16);
  39150. v4u32 __builtin_msa_mod_u_w (v4u32, v4u32);
  39151. v2u64 __builtin_msa_mod_u_d (v2u64, v2u64);
  39152. v16i8 __builtin_msa_move_v (v16i8);
  39153. v8i16 __builtin_msa_msub_q_h (v8i16, v8i16, v8i16);
  39154. v4i32 __builtin_msa_msub_q_w (v4i32, v4i32, v4i32);
  39155. v8i16 __builtin_msa_msubr_q_h (v8i16, v8i16, v8i16);
  39156. v4i32 __builtin_msa_msubr_q_w (v4i32, v4i32, v4i32);
  39157. v16i8 __builtin_msa_msubv_b (v16i8, v16i8, v16i8);
  39158. v8i16 __builtin_msa_msubv_h (v8i16, v8i16, v8i16);
  39159. v4i32 __builtin_msa_msubv_w (v4i32, v4i32, v4i32);
  39160. v2i64 __builtin_msa_msubv_d (v2i64, v2i64, v2i64);
  39161. v8i16 __builtin_msa_mul_q_h (v8i16, v8i16);
  39162. v4i32 __builtin_msa_mul_q_w (v4i32, v4i32);
  39163. v8i16 __builtin_msa_mulr_q_h (v8i16, v8i16);
  39164. v4i32 __builtin_msa_mulr_q_w (v4i32, v4i32);
  39165. v16i8 __builtin_msa_mulv_b (v16i8, v16i8);
  39166. v8i16 __builtin_msa_mulv_h (v8i16, v8i16);
  39167. v4i32 __builtin_msa_mulv_w (v4i32, v4i32);
  39168. v2i64 __builtin_msa_mulv_d (v2i64, v2i64);
  39169. v16i8 __builtin_msa_nloc_b (v16i8);
  39170. v8i16 __builtin_msa_nloc_h (v8i16);
  39171. v4i32 __builtin_msa_nloc_w (v4i32);
  39172. v2i64 __builtin_msa_nloc_d (v2i64);
  39173. v16i8 __builtin_msa_nlzc_b (v16i8);
  39174. v8i16 __builtin_msa_nlzc_h (v8i16);
  39175. v4i32 __builtin_msa_nlzc_w (v4i32);
  39176. v2i64 __builtin_msa_nlzc_d (v2i64);
  39177. v16u8 __builtin_msa_nor_v (v16u8, v16u8);
  39178. v16u8 __builtin_msa_nori_b (v16u8, imm0_255);
  39179. v16u8 __builtin_msa_or_v (v16u8, v16u8);
  39180. v16u8 __builtin_msa_ori_b (v16u8, imm0_255);
  39181. v16i8 __builtin_msa_pckev_b (v16i8, v16i8);
  39182. v8i16 __builtin_msa_pckev_h (v8i16, v8i16);
  39183. v4i32 __builtin_msa_pckev_w (v4i32, v4i32);
  39184. v2i64 __builtin_msa_pckev_d (v2i64, v2i64);
  39185. v16i8 __builtin_msa_pckod_b (v16i8, v16i8);
  39186. v8i16 __builtin_msa_pckod_h (v8i16, v8i16);
  39187. v4i32 __builtin_msa_pckod_w (v4i32, v4i32);
  39188. v2i64 __builtin_msa_pckod_d (v2i64, v2i64);
  39189. v16i8 __builtin_msa_pcnt_b (v16i8);
  39190. v8i16 __builtin_msa_pcnt_h (v8i16);
  39191. v4i32 __builtin_msa_pcnt_w (v4i32);
  39192. v2i64 __builtin_msa_pcnt_d (v2i64);
  39193. v16i8 __builtin_msa_sat_s_b (v16i8, imm0_7);
  39194. v8i16 __builtin_msa_sat_s_h (v8i16, imm0_15);
  39195. v4i32 __builtin_msa_sat_s_w (v4i32, imm0_31);
  39196. v2i64 __builtin_msa_sat_s_d (v2i64, imm0_63);
  39197. v16u8 __builtin_msa_sat_u_b (v16u8, imm0_7);
  39198. v8u16 __builtin_msa_sat_u_h (v8u16, imm0_15);
  39199. v4u32 __builtin_msa_sat_u_w (v4u32, imm0_31);
  39200. v2u64 __builtin_msa_sat_u_d (v2u64, imm0_63);
  39201. v16i8 __builtin_msa_shf_b (v16i8, imm0_255);
  39202. v8i16 __builtin_msa_shf_h (v8i16, imm0_255);
  39203. v4i32 __builtin_msa_shf_w (v4i32, imm0_255);
  39204. v16i8 __builtin_msa_sld_b (v16i8, v16i8, i32);
  39205. v8i16 __builtin_msa_sld_h (v8i16, v8i16, i32);
  39206. v4i32 __builtin_msa_sld_w (v4i32, v4i32, i32);
  39207. v2i64 __builtin_msa_sld_d (v2i64, v2i64, i32);
  39208. v16i8 __builtin_msa_sldi_b (v16i8, v16i8, imm0_15);
  39209. v8i16 __builtin_msa_sldi_h (v8i16, v8i16, imm0_7);
  39210. v4i32 __builtin_msa_sldi_w (v4i32, v4i32, imm0_3);
  39211. v2i64 __builtin_msa_sldi_d (v2i64, v2i64, imm0_1);
  39212. v16i8 __builtin_msa_sll_b (v16i8, v16i8);
  39213. v8i16 __builtin_msa_sll_h (v8i16, v8i16);
  39214. v4i32 __builtin_msa_sll_w (v4i32, v4i32);
  39215. v2i64 __builtin_msa_sll_d (v2i64, v2i64);
  39216. v16i8 __builtin_msa_slli_b (v16i8, imm0_7);
  39217. v8i16 __builtin_msa_slli_h (v8i16, imm0_15);
  39218. v4i32 __builtin_msa_slli_w (v4i32, imm0_31);
  39219. v2i64 __builtin_msa_slli_d (v2i64, imm0_63);
  39220. v16i8 __builtin_msa_splat_b (v16i8, i32);
  39221. v8i16 __builtin_msa_splat_h (v8i16, i32);
  39222. v4i32 __builtin_msa_splat_w (v4i32, i32);
  39223. v2i64 __builtin_msa_splat_d (v2i64, i32);
  39224. v16i8 __builtin_msa_splati_b (v16i8, imm0_15);
  39225. v8i16 __builtin_msa_splati_h (v8i16, imm0_7);
  39226. v4i32 __builtin_msa_splati_w (v4i32, imm0_3);
  39227. v2i64 __builtin_msa_splati_d (v2i64, imm0_1);
  39228. v16i8 __builtin_msa_sra_b (v16i8, v16i8);
  39229. v8i16 __builtin_msa_sra_h (v8i16, v8i16);
  39230. v4i32 __builtin_msa_sra_w (v4i32, v4i32);
  39231. v2i64 __builtin_msa_sra_d (v2i64, v2i64);
  39232. v16i8 __builtin_msa_srai_b (v16i8, imm0_7);
  39233. v8i16 __builtin_msa_srai_h (v8i16, imm0_15);
  39234. v4i32 __builtin_msa_srai_w (v4i32, imm0_31);
  39235. v2i64 __builtin_msa_srai_d (v2i64, imm0_63);
  39236. v16i8 __builtin_msa_srar_b (v16i8, v16i8);
  39237. v8i16 __builtin_msa_srar_h (v8i16, v8i16);
  39238. v4i32 __builtin_msa_srar_w (v4i32, v4i32);
  39239. v2i64 __builtin_msa_srar_d (v2i64, v2i64);
  39240. v16i8 __builtin_msa_srari_b (v16i8, imm0_7);
  39241. v8i16 __builtin_msa_srari_h (v8i16, imm0_15);
  39242. v4i32 __builtin_msa_srari_w (v4i32, imm0_31);
  39243. v2i64 __builtin_msa_srari_d (v2i64, imm0_63);
  39244. v16i8 __builtin_msa_srl_b (v16i8, v16i8);
  39245. v8i16 __builtin_msa_srl_h (v8i16, v8i16);
  39246. v4i32 __builtin_msa_srl_w (v4i32, v4i32);
  39247. v2i64 __builtin_msa_srl_d (v2i64, v2i64);
  39248. v16i8 __builtin_msa_srli_b (v16i8, imm0_7);
  39249. v8i16 __builtin_msa_srli_h (v8i16, imm0_15);
  39250. v4i32 __builtin_msa_srli_w (v4i32, imm0_31);
  39251. v2i64 __builtin_msa_srli_d (v2i64, imm0_63);
  39252. v16i8 __builtin_msa_srlr_b (v16i8, v16i8);
  39253. v8i16 __builtin_msa_srlr_h (v8i16, v8i16);
  39254. v4i32 __builtin_msa_srlr_w (v4i32, v4i32);
  39255. v2i64 __builtin_msa_srlr_d (v2i64, v2i64);
  39256. v16i8 __builtin_msa_srlri_b (v16i8, imm0_7);
  39257. v8i16 __builtin_msa_srlri_h (v8i16, imm0_15);
  39258. v4i32 __builtin_msa_srlri_w (v4i32, imm0_31);
  39259. v2i64 __builtin_msa_srlri_d (v2i64, imm0_63);
  39260. void __builtin_msa_st_b (v16i8, void *, imm_n512_511);
  39261. void __builtin_msa_st_h (v8i16, void *, imm_n1024_1022);
  39262. void __builtin_msa_st_w (v4i32, void *, imm_n2048_2044);
  39263. void __builtin_msa_st_d (v2i64, void *, imm_n4096_4088);
  39264. v16i8 __builtin_msa_subs_s_b (v16i8, v16i8);
  39265. v8i16 __builtin_msa_subs_s_h (v8i16, v8i16);
  39266. v4i32 __builtin_msa_subs_s_w (v4i32, v4i32);
  39267. v2i64 __builtin_msa_subs_s_d (v2i64, v2i64);
  39268. v16u8 __builtin_msa_subs_u_b (v16u8, v16u8);
  39269. v8u16 __builtin_msa_subs_u_h (v8u16, v8u16);
  39270. v4u32 __builtin_msa_subs_u_w (v4u32, v4u32);
  39271. v2u64 __builtin_msa_subs_u_d (v2u64, v2u64);
  39272. v16u8 __builtin_msa_subsus_u_b (v16u8, v16i8);
  39273. v8u16 __builtin_msa_subsus_u_h (v8u16, v8i16);
  39274. v4u32 __builtin_msa_subsus_u_w (v4u32, v4i32);
  39275. v2u64 __builtin_msa_subsus_u_d (v2u64, v2i64);
  39276. v16i8 __builtin_msa_subsuu_s_b (v16u8, v16u8);
  39277. v8i16 __builtin_msa_subsuu_s_h (v8u16, v8u16);
  39278. v4i32 __builtin_msa_subsuu_s_w (v4u32, v4u32);
  39279. v2i64 __builtin_msa_subsuu_s_d (v2u64, v2u64);
  39280. v16i8 __builtin_msa_subv_b (v16i8, v16i8);
  39281. v8i16 __builtin_msa_subv_h (v8i16, v8i16);
  39282. v4i32 __builtin_msa_subv_w (v4i32, v4i32);
  39283. v2i64 __builtin_msa_subv_d (v2i64, v2i64);
  39284. v16i8 __builtin_msa_subvi_b (v16i8, imm0_31);
  39285. v8i16 __builtin_msa_subvi_h (v8i16, imm0_31);
  39286. v4i32 __builtin_msa_subvi_w (v4i32, imm0_31);
  39287. v2i64 __builtin_msa_subvi_d (v2i64, imm0_31);
  39288. v16i8 __builtin_msa_vshf_b (v16i8, v16i8, v16i8);
  39289. v8i16 __builtin_msa_vshf_h (v8i16, v8i16, v8i16);
  39290. v4i32 __builtin_msa_vshf_w (v4i32, v4i32, v4i32);
  39291. v2i64 __builtin_msa_vshf_d (v2i64, v2i64, v2i64);
  39292. v16u8 __builtin_msa_xor_v (v16u8, v16u8);
  39293. v16u8 __builtin_msa_xori_b (v16u8, imm0_255);
  39294. 
  39295. File: gcc.info, Node: Other MIPS Built-in Functions, Next: MSP430 Built-in Functions, Prev: MIPS SIMD Architecture (MSA) Support, Up: Target Builtins
  39296. 6.60.18 Other MIPS Built-in Functions
  39297. -------------------------------------
  39298. GCC provides other MIPS-specific built-in functions:
  39299. 'void __builtin_mips_cache (int OP, const volatile void *ADDR)'
  39300. Insert a 'cache' instruction with operands OP and ADDR. GCC
  39301. defines the preprocessor macro '___GCC_HAVE_BUILTIN_MIPS_CACHE'
  39302. when this function is available.
  39303. 'unsigned int __builtin_mips_get_fcsr (void)'
  39304. 'void __builtin_mips_set_fcsr (unsigned int VALUE)'
  39305. Get and set the contents of the floating-point control and status
  39306. register (FPU control register 31). These functions are only
  39307. available in hard-float code but can be called in both MIPS16 and
  39308. non-MIPS16 contexts.
  39309. '__builtin_mips_set_fcsr' can be used to change any bit of the
  39310. register except the condition codes, which GCC assumes are
  39311. preserved.
  39312. 
  39313. File: gcc.info, Node: MSP430 Built-in Functions, Next: NDS32 Built-in Functions, Prev: Other MIPS Built-in Functions, Up: Target Builtins
  39314. 6.60.19 MSP430 Built-in Functions
  39315. ---------------------------------
  39316. GCC provides a couple of special builtin functions to aid in the writing
  39317. of interrupt handlers in C.
  39318. '__bic_SR_register_on_exit (int MASK)'
  39319. This clears the indicated bits in the saved copy of the status
  39320. register currently residing on the stack. This only works inside
  39321. interrupt handlers and the changes to the status register will only
  39322. take affect once the handler returns.
  39323. '__bis_SR_register_on_exit (int MASK)'
  39324. This sets the indicated bits in the saved copy of the status
  39325. register currently residing on the stack. This only works inside
  39326. interrupt handlers and the changes to the status register will only
  39327. take affect once the handler returns.
  39328. '__delay_cycles (long long CYCLES)'
  39329. This inserts an instruction sequence that takes exactly CYCLES
  39330. cycles (between 0 and about 17E9) to complete. The inserted
  39331. sequence may use jumps, loops, or no-ops, and does not interfere
  39332. with any other instructions. Note that CYCLES must be a
  39333. compile-time constant integer - that is, you must pass a number,
  39334. not a variable that may be optimized to a constant later. The
  39335. number of cycles delayed by this builtin is exact.
  39336. 
  39337. File: gcc.info, Node: NDS32 Built-in Functions, Next: picoChip Built-in Functions, Prev: MSP430 Built-in Functions, Up: Target Builtins
  39338. 6.60.20 NDS32 Built-in Functions
  39339. --------------------------------
  39340. These built-in functions are available for the NDS32 target:
  39341. -- Built-in Function: void __builtin_nds32_isync (int *ADDR)
  39342. Insert an ISYNC instruction into the instruction stream where ADDR
  39343. is an instruction address for serialization.
  39344. -- Built-in Function: void __builtin_nds32_isb (void)
  39345. Insert an ISB instruction into the instruction stream.
  39346. -- Built-in Function: int __builtin_nds32_mfsr (int SR)
  39347. Return the content of a system register which is mapped by SR.
  39348. -- Built-in Function: int __builtin_nds32_mfusr (int USR)
  39349. Return the content of a user space register which is mapped by USR.
  39350. -- Built-in Function: void __builtin_nds32_mtsr (int VALUE, int SR)
  39351. Move the VALUE to a system register which is mapped by SR.
  39352. -- Built-in Function: void __builtin_nds32_mtusr (int VALUE, int USR)
  39353. Move the VALUE to a user space register which is mapped by USR.
  39354. -- Built-in Function: void __builtin_nds32_setgie_en (void)
  39355. Enable global interrupt.
  39356. -- Built-in Function: void __builtin_nds32_setgie_dis (void)
  39357. Disable global interrupt.
  39358. 
  39359. File: gcc.info, Node: picoChip Built-in Functions, Next: Basic PowerPC Built-in Functions, Prev: NDS32 Built-in Functions, Up: Target Builtins
  39360. 6.60.21 picoChip Built-in Functions
  39361. -----------------------------------
  39362. GCC provides an interface to selected machine instructions from the
  39363. picoChip instruction set.
  39364. 'int __builtin_sbc (int VALUE)'
  39365. Sign bit count. Return the number of consecutive bits in VALUE
  39366. that have the same value as the sign bit. The result is the number
  39367. of leading sign bits minus one, giving the number of redundant sign
  39368. bits in VALUE.
  39369. 'int __builtin_byteswap (int VALUE)'
  39370. Byte swap. Return the result of swapping the upper and lower bytes
  39371. of VALUE.
  39372. 'int __builtin_brev (int VALUE)'
  39373. Bit reversal. Return the result of reversing the bits in VALUE.
  39374. Bit 15 is swapped with bit 0, bit 14 is swapped with bit 1, and so
  39375. on.
  39376. 'int __builtin_adds (int X, int Y)'
  39377. Saturating addition. Return the result of adding X and Y, storing
  39378. the value 32767 if the result overflows.
  39379. 'int __builtin_subs (int X, int Y)'
  39380. Saturating subtraction. Return the result of subtracting Y from X,
  39381. storing the value -32768 if the result overflows.
  39382. 'void __builtin_halt (void)'
  39383. Halt. The processor stops execution. This built-in is useful for
  39384. implementing assertions.
  39385. 
  39386. File: gcc.info, Node: Basic PowerPC Built-in Functions, Next: PowerPC AltiVec/VSX Built-in Functions, Prev: picoChip Built-in Functions, Up: Target Builtins
  39387. 6.60.22 Basic PowerPC Built-in Functions
  39388. ----------------------------------------
  39389. * Menu:
  39390. * Basic PowerPC Built-in Functions Available on all Configurations::
  39391. * Basic PowerPC Built-in Functions Available on ISA 2.05::
  39392. * Basic PowerPC Built-in Functions Available on ISA 2.06::
  39393. * Basic PowerPC Built-in Functions Available on ISA 2.07::
  39394. * Basic PowerPC Built-in Functions Available on ISA 3.0::
  39395. * Basic PowerPC Built-in Functions Available on ISA 3.1::
  39396. This section describes PowerPC built-in functions that do not require
  39397. the inclusion of any special header files to declare prototypes or
  39398. provide macro definitions. The sections that follow describe additional
  39399. PowerPC built-in functions.
  39400. 
  39401. 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
  39402. 6.60.22.1 Basic PowerPC Built-in Functions Available on all Configurations
  39403. ..........................................................................
  39404. -- Built-in Function: void __builtin_cpu_init (void)
  39405. This function is a 'nop' on the PowerPC platform and is included
  39406. solely to maintain API compatibility with the x86 builtins.
  39407. -- Built-in Function: int __builtin_cpu_is (const char *CPUNAME)
  39408. This function returns a value of '1' if the run-time CPU is of type
  39409. CPUNAME and returns '0' otherwise
  39410. The '__builtin_cpu_is' function requires GLIBC 2.23 or newer which
  39411. exports the hardware capability bits. GCC defines the macro
  39412. '__BUILTIN_CPU_SUPPORTS__' if the '__builtin_cpu_supports' built-in
  39413. function is fully supported.
  39414. If GCC was configured to use a GLIBC before 2.23, the built-in
  39415. function '__builtin_cpu_is' always returns a 0 and the compiler
  39416. issues a warning.
  39417. The following CPU names can be detected:
  39418. 'power10'
  39419. IBM POWER10 Server CPU.
  39420. 'power9'
  39421. IBM POWER9 Server CPU.
  39422. 'power8'
  39423. IBM POWER8 Server CPU.
  39424. 'power7'
  39425. IBM POWER7 Server CPU.
  39426. 'power6x'
  39427. IBM POWER6 Server CPU (RAW mode).
  39428. 'power6'
  39429. IBM POWER6 Server CPU (Architected mode).
  39430. 'power5+'
  39431. IBM POWER5+ Server CPU.
  39432. 'power5'
  39433. IBM POWER5 Server CPU.
  39434. 'ppc970'
  39435. IBM 970 Server CPU (ie, Apple G5).
  39436. 'power4'
  39437. IBM POWER4 Server CPU.
  39438. 'ppca2'
  39439. IBM A2 64-bit Embedded CPU
  39440. 'ppc476'
  39441. IBM PowerPC 476FP 32-bit Embedded CPU.
  39442. 'ppc464'
  39443. IBM PowerPC 464 32-bit Embedded CPU.
  39444. 'ppc440'
  39445. PowerPC 440 32-bit Embedded CPU.
  39446. 'ppc405'
  39447. PowerPC 405 32-bit Embedded CPU.
  39448. 'ppc-cell-be'
  39449. IBM PowerPC Cell Broadband Engine Architecture CPU.
  39450. Here is an example:
  39451. #ifdef __BUILTIN_CPU_SUPPORTS__
  39452. if (__builtin_cpu_is ("power8"))
  39453. {
  39454. do_power8 (); // POWER8 specific implementation.
  39455. }
  39456. else
  39457. #endif
  39458. {
  39459. do_generic (); // Generic implementation.
  39460. }
  39461. -- Built-in Function: int __builtin_cpu_supports (const char *FEATURE)
  39462. This function returns a value of '1' if the run-time CPU supports
  39463. the HWCAP feature FEATURE and returns '0' otherwise.
  39464. The '__builtin_cpu_supports' function requires GLIBC 2.23 or newer
  39465. which exports the hardware capability bits. GCC defines the macro
  39466. '__BUILTIN_CPU_SUPPORTS__' if the '__builtin_cpu_supports' built-in
  39467. function is fully supported.
  39468. If GCC was configured to use a GLIBC before 2.23, the built-in
  39469. function '__builtin_cpu_suports' always returns a 0 and the
  39470. compiler issues a warning.
  39471. The following features can be detected:
  39472. '4xxmac'
  39473. 4xx CPU has a Multiply Accumulator.
  39474. 'altivec'
  39475. CPU has a SIMD/Vector Unit.
  39476. 'arch_2_05'
  39477. CPU supports ISA 2.05 (eg, POWER6)
  39478. 'arch_2_06'
  39479. CPU supports ISA 2.06 (eg, POWER7)
  39480. 'arch_2_07'
  39481. CPU supports ISA 2.07 (eg, POWER8)
  39482. 'arch_3_00'
  39483. CPU supports ISA 3.0 (eg, POWER9)
  39484. 'arch_3_1'
  39485. CPU supports ISA 3.1 (eg, POWER10)
  39486. 'archpmu'
  39487. CPU supports the set of compatible performance monitoring
  39488. events.
  39489. 'booke'
  39490. CPU supports the Embedded ISA category.
  39491. 'cellbe'
  39492. CPU has a CELL broadband engine.
  39493. 'darn'
  39494. CPU supports the 'darn' (deliver a random number) instruction.
  39495. 'dfp'
  39496. CPU has a decimal floating point unit.
  39497. 'dscr'
  39498. CPU supports the data stream control register.
  39499. 'ebb'
  39500. CPU supports event base branching.
  39501. 'efpdouble'
  39502. CPU has a SPE double precision floating point unit.
  39503. 'efpsingle'
  39504. CPU has a SPE single precision floating point unit.
  39505. 'fpu'
  39506. CPU has a floating point unit.
  39507. 'htm'
  39508. CPU has hardware transaction memory instructions.
  39509. 'htm-nosc'
  39510. Kernel aborts hardware transactions when a syscall is made.
  39511. 'htm-no-suspend'
  39512. CPU supports hardware transaction memory but does not support
  39513. the 'tsuspend.' instruction.
  39514. 'ic_snoop'
  39515. CPU supports icache snooping capabilities.
  39516. 'ieee128'
  39517. CPU supports 128-bit IEEE binary floating point instructions.
  39518. 'isel'
  39519. CPU supports the integer select instruction.
  39520. 'mma'
  39521. CPU supports the matrix-multiply assist instructions.
  39522. 'mmu'
  39523. CPU has a memory management unit.
  39524. 'notb'
  39525. CPU does not have a timebase (eg, 601 and 403gx).
  39526. 'pa6t'
  39527. CPU supports the PA Semi 6T CORE ISA.
  39528. 'power4'
  39529. CPU supports ISA 2.00 (eg, POWER4)
  39530. 'power5'
  39531. CPU supports ISA 2.02 (eg, POWER5)
  39532. 'power5+'
  39533. CPU supports ISA 2.03 (eg, POWER5+)
  39534. 'power6x'
  39535. CPU supports ISA 2.05 (eg, POWER6) extended opcodes mffgpr and
  39536. mftgpr.
  39537. 'ppc32'
  39538. CPU supports 32-bit mode execution.
  39539. 'ppc601'
  39540. CPU supports the old POWER ISA (eg, 601)
  39541. 'ppc64'
  39542. CPU supports 64-bit mode execution.
  39543. 'ppcle'
  39544. CPU supports a little-endian mode that uses address swizzling.
  39545. 'scv'
  39546. Kernel supports system call vectored.
  39547. 'smt'
  39548. CPU support simultaneous multi-threading.
  39549. 'spe'
  39550. CPU has a signal processing extension unit.
  39551. 'tar'
  39552. CPU supports the target address register.
  39553. 'true_le'
  39554. CPU supports true little-endian mode.
  39555. 'ucache'
  39556. CPU has unified I/D cache.
  39557. 'vcrypto'
  39558. CPU supports the vector cryptography instructions.
  39559. 'vsx'
  39560. CPU supports the vector-scalar extension.
  39561. Here is an example:
  39562. #ifdef __BUILTIN_CPU_SUPPORTS__
  39563. if (__builtin_cpu_supports ("fpu"))
  39564. {
  39565. asm("fadd %0,%1,%2" : "=d"(dst) : "d"(src1), "d"(src2));
  39566. }
  39567. else
  39568. #endif
  39569. {
  39570. dst = __fadd (src1, src2); // Software FP addition function.
  39571. }
  39572. The following built-in functions are also available on all PowerPC
  39573. processors:
  39574. uint64_t __builtin_ppc_get_timebase ();
  39575. unsigned long __builtin_ppc_mftb ();
  39576. double __builtin_unpack_ibm128 (__ibm128, int);
  39577. __ibm128 __builtin_pack_ibm128 (double, double);
  39578. double __builtin_mffs (void);
  39579. void __builtin_mtfsf (const int, double);
  39580. void __builtin_mtfsb0 (const int);
  39581. void __builtin_mtfsb1 (const int);
  39582. void __builtin_set_fpscr_rn (int);
  39583. The '__builtin_ppc_get_timebase' and '__builtin_ppc_mftb' functions
  39584. generate instructions to read the Time Base Register. The
  39585. '__builtin_ppc_get_timebase' function may generate multiple instructions
  39586. and always returns the 64 bits of the Time Base Register. The
  39587. '__builtin_ppc_mftb' function always generates one instruction and
  39588. returns the Time Base Register value as an unsigned long, throwing away
  39589. the most significant word on 32-bit environments. The '__builtin_mffs'
  39590. return the value of the FPSCR register. Note, ISA 3.0 supports the
  39591. '__builtin_mffsl()' which permits software to read the control and
  39592. non-sticky status bits in the FSPCR without the higher latency
  39593. associated with accessing the sticky status bits. The '__builtin_mtfsf'
  39594. takes a constant 8-bit integer field mask and a double precision
  39595. floating point argument and generates the 'mtfsf' (extended mnemonic)
  39596. instruction to write new values to selected fields of the FPSCR. The
  39597. '__builtin_mtfsb0' and '__builtin_mtfsb1' take the bit to change as an
  39598. argument. The valid bit range is between 0 and 31. The builtins map to
  39599. the 'mtfsb0' and 'mtfsb1' instructions which take the argument and add
  39600. 32. Hence these instructions only modify the FPSCR[32:63] bits by
  39601. changing the specified bit to a zero or one respectively. The
  39602. '__builtin_set_fpscr_rn' builtin allows changing both of the floating
  39603. point rounding mode bits. The argument is a 2-bit value. The argument
  39604. can either be a 'const int' or stored in a variable. The builtin uses
  39605. the ISA 3.0 instruction 'mffscrn' if available, otherwise it reads the
  39606. FPSCR, masks the current rounding mode bits out and OR's in the new
  39607. value.
  39608. 
  39609. 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
  39610. 6.60.22.2 Basic PowerPC Built-in Functions Available on ISA 2.05
  39611. ................................................................
  39612. The basic built-in functions described in this section are available on
  39613. the PowerPC family of processors starting with ISA 2.05 or later.
  39614. Unless specific options are explicitly disabled on the command line,
  39615. specifying option '-mcpu=power6' has the effect of enabling the
  39616. '-mpowerpc64', '-mpowerpc-gpopt', '-mpowerpc-gfxopt', '-mmfcrf',
  39617. '-mpopcntb', '-mfprnd', '-mcmpb', '-mhard-dfp', and '-mrecip-precision'
  39618. options. Specify the '-maltivec' option explicitly in combination with
  39619. the above options if desired.
  39620. The following functions require option '-mcmpb'.
  39621. unsigned long long __builtin_cmpb (unsigned long long int, unsigned long long int);
  39622. unsigned int __builtin_cmpb (unsigned int, unsigned int);
  39623. The '__builtin_cmpb' function performs a byte-wise compare on the
  39624. contents of its two arguments, returning the result of the byte-wise
  39625. comparison as the returned value. For each byte comparison, the
  39626. corresponding byte of the return value holds 0xff if the input bytes are
  39627. equal and 0 if the input bytes are not equal. If either of the
  39628. arguments to this built-in function is wider than 32 bits, the function
  39629. call expands into the form that expects 'unsigned long long int'
  39630. arguments which is only available on 64-bit targets.
  39631. The following built-in functions are available when hardware decimal
  39632. floating point ('-mhard-dfp') is available:
  39633. void __builtin_set_fpscr_drn(int);
  39634. _Decimal64 __builtin_ddedpd (int, _Decimal64);
  39635. _Decimal128 __builtin_ddedpdq (int, _Decimal128);
  39636. _Decimal64 __builtin_denbcd (int, _Decimal64);
  39637. _Decimal128 __builtin_denbcdq (int, _Decimal128);
  39638. _Decimal64 __builtin_diex (long long, _Decimal64);
  39639. _Decimal128 _builtin_diexq (long long, _Decimal128);
  39640. _Decimal64 __builtin_dscli (_Decimal64, int);
  39641. _Decimal128 __builtin_dscliq (_Decimal128, int);
  39642. _Decimal64 __builtin_dscri (_Decimal64, int);
  39643. _Decimal128 __builtin_dscriq (_Decimal128, int);
  39644. long long __builtin_dxex (_Decimal64);
  39645. long long __builtin_dxexq (_Decimal128);
  39646. _Decimal128 __builtin_pack_dec128 (unsigned long long, unsigned long long);
  39647. unsigned long long __builtin_unpack_dec128 (_Decimal128, int);
  39648. The __builtin_set_fpscr_drn builtin allows changing the three decimal
  39649. floating point rounding mode bits. The argument is a 3-bit value. The
  39650. argument can either be a const int or the value can be stored in
  39651. a variable.
  39652. The builtin uses the ISA 3.0 instruction mffscdrn if available.
  39653. Otherwise the builtin reads the FPSCR, masks the current decimal rounding
  39654. mode bits out and OR's in the new value.
  39655. The following functions require '-mhard-float', '-mpowerpc-gfxopt', and
  39656. '-mpopcntb' options.
  39657. double __builtin_recipdiv (double, double);
  39658. float __builtin_recipdivf (float, float);
  39659. double __builtin_rsqrt (double);
  39660. float __builtin_rsqrtf (float);
  39661. The 'vec_rsqrt', '__builtin_rsqrt', and '__builtin_rsqrtf' functions
  39662. generate multiple instructions to implement the reciprocal sqrt
  39663. functionality using reciprocal sqrt estimate instructions.
  39664. The '__builtin_recipdiv', and '__builtin_recipdivf' functions generate
  39665. multiple instructions to implement division using the reciprocal
  39666. estimate instructions.
  39667. The following functions require '-mhard-float' and '-mmultiple'
  39668. options.
  39669. The '__builtin_unpack_longdouble' function takes a 'long double'
  39670. argument and a compile time constant of 0 or 1. If the constant is 0,
  39671. the first 'double' within the 'long double' is returned, otherwise the
  39672. second 'double' is returned. The '__builtin_unpack_longdouble' function
  39673. is only available if 'long double' uses the IBM extended double
  39674. representation.
  39675. The '__builtin_pack_longdouble' function takes two 'double' arguments
  39676. and returns a 'long double' value that combines the two arguments. The
  39677. '__builtin_pack_longdouble' function is only available if 'long double'
  39678. uses the IBM extended double representation.
  39679. The '__builtin_unpack_ibm128' function takes a '__ibm128' argument and
  39680. a compile time constant of 0 or 1. If the constant is 0, the first
  39681. 'double' within the '__ibm128' is returned, otherwise the second
  39682. 'double' is returned.
  39683. The '__builtin_pack_ibm128' function takes two 'double' arguments and
  39684. returns a '__ibm128' value that combines the two arguments.
  39685. Additional built-in functions are available for the 64-bit PowerPC
  39686. family of processors, for efficient use of 128-bit floating point
  39687. ('__float128') values.
  39688. 
  39689. 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
  39690. 6.60.22.3 Basic PowerPC Built-in Functions Available on ISA 2.06
  39691. ................................................................
  39692. The basic built-in functions described in this section are available on
  39693. the PowerPC family of processors starting with ISA 2.05 or later.
  39694. Unless specific options are explicitly disabled on the command line,
  39695. specifying option '-mcpu=power7' has the effect of enabling all the same
  39696. options as for '-mcpu=power6' in addition to the '-maltivec',
  39697. '-mpopcntd', and '-mvsx' options.
  39698. The following basic built-in functions require '-mpopcntd':
  39699. unsigned int __builtin_addg6s (unsigned int, unsigned int);
  39700. long long __builtin_bpermd (long long, long long);
  39701. unsigned int __builtin_cbcdtd (unsigned int);
  39702. unsigned int __builtin_cdtbcd (unsigned int);
  39703. long long __builtin_divde (long long, long long);
  39704. unsigned long long __builtin_divdeu (unsigned long long, unsigned long long);
  39705. int __builtin_divwe (int, int);
  39706. unsigned int __builtin_divweu (unsigned int, unsigned int);
  39707. vector __int128 __builtin_pack_vector_int128 (long long, long long);
  39708. void __builtin_rs6000_speculation_barrier (void);
  39709. long long __builtin_unpack_vector_int128 (vector __int128, signed char);
  39710. Of these, the '__builtin_divde' and '__builtin_divdeu' functions
  39711. require a 64-bit environment.
  39712. The following basic built-in functions, which are also supported on x86
  39713. targets, require '-mfloat128'.
  39714. __float128 __builtin_fabsq (__float128);
  39715. __float128 __builtin_copysignq (__float128, __float128);
  39716. __float128 __builtin_infq (void);
  39717. __float128 __builtin_huge_valq (void);
  39718. __float128 __builtin_nanq (void);
  39719. __float128 __builtin_nansq (void);
  39720. __float128 __builtin_sqrtf128 (__float128);
  39721. __float128 __builtin_fmaf128 (__float128, __float128, __float128);
  39722. 
  39723. 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
  39724. 6.60.22.4 Basic PowerPC Built-in Functions Available on ISA 2.07
  39725. ................................................................
  39726. The basic built-in functions described in this section are available on
  39727. the PowerPC family of processors starting with ISA 2.07 or later.
  39728. Unless specific options are explicitly disabled on the command line,
  39729. specifying option '-mcpu=power8' has the effect of enabling all the same
  39730. options as for '-mcpu=power7' in addition to the '-mpower8-fusion',
  39731. '-mpower8-vector', '-mcrypto', '-mhtm', '-mquad-memory', and
  39732. '-mquad-memory-atomic' options.
  39733. This section intentionally empty.
  39734. 
  39735. File: gcc.info, Node: Basic PowerPC Built-in Functions Available on ISA 3.0, Next: Basic PowerPC Built-in Functions Available on ISA 3.1, Prev: Basic PowerPC Built-in Functions Available on ISA 2.07, Up: Basic PowerPC Built-in Functions
  39736. 6.60.22.5 Basic PowerPC Built-in Functions Available on ISA 3.0
  39737. ...............................................................
  39738. The basic built-in functions described in this section are available on
  39739. the PowerPC family of processors starting with ISA 3.0 or later. Unless
  39740. specific options are explicitly disabled on the command line, specifying
  39741. option '-mcpu=power9' has the effect of enabling all the same options as
  39742. for '-mcpu=power8' in addition to the '-misel' option.
  39743. The following built-in functions are available on Linux 64-bit systems
  39744. that use the ISA 3.0 instruction set ('-mcpu=power9'):
  39745. '__float128 __builtin_addf128_round_to_odd (__float128, __float128)'
  39746. Perform a 128-bit IEEE floating point add using round to odd as the
  39747. rounding mode.
  39748. '__float128 __builtin_subf128_round_to_odd (__float128, __float128)'
  39749. Perform a 128-bit IEEE floating point subtract using round to odd
  39750. as the rounding mode.
  39751. '__float128 __builtin_mulf128_round_to_odd (__float128, __float128)'
  39752. Perform a 128-bit IEEE floating point multiply using round to odd
  39753. as the rounding mode.
  39754. '__float128 __builtin_divf128_round_to_odd (__float128, __float128)'
  39755. Perform a 128-bit IEEE floating point divide using round to odd as
  39756. the rounding mode.
  39757. '__float128 __builtin_sqrtf128_round_to_odd (__float128)'
  39758. Perform a 128-bit IEEE floating point square root using round to
  39759. odd as the rounding mode.
  39760. '__float128 __builtin_fmaf128_round_to_odd (__float128, __float128, __float128)'
  39761. Perform a 128-bit IEEE floating point fused multiply and add
  39762. operation using round to odd as the rounding mode.
  39763. 'double __builtin_truncf128_round_to_odd (__float128)'
  39764. Convert a 128-bit IEEE floating point value to 'double' using round
  39765. to odd as the rounding mode.
  39766. The following additional built-in functions are also available for the
  39767. PowerPC family of processors, starting with ISA 3.0 or later:
  39768. long long __builtin_darn (void);
  39769. long long __builtin_darn_raw (void);
  39770. int __builtin_darn_32 (void);
  39771. The '__builtin_darn' and '__builtin_darn_raw' functions require a
  39772. 64-bit environment supporting ISA 3.0 or later. The '__builtin_darn'
  39773. function provides a 64-bit conditioned random number. The
  39774. '__builtin_darn_raw' function provides a 64-bit raw random number. The
  39775. '__builtin_darn_32' function provides a 32-bit conditioned random
  39776. number.
  39777. The following additional built-in functions are also available for the
  39778. PowerPC family of processors, starting with ISA 3.0 or later:
  39779. int __builtin_byte_in_set (unsigned char u, unsigned long long set);
  39780. int __builtin_byte_in_range (unsigned char u, unsigned int range);
  39781. int __builtin_byte_in_either_range (unsigned char u, unsigned int ranges);
  39782. int __builtin_dfp_dtstsfi_lt (unsigned int comparison, _Decimal64 value);
  39783. int __builtin_dfp_dtstsfi_lt (unsigned int comparison, _Decimal128 value);
  39784. int __builtin_dfp_dtstsfi_lt_dd (unsigned int comparison, _Decimal64 value);
  39785. int __builtin_dfp_dtstsfi_lt_td (unsigned int comparison, _Decimal128 value);
  39786. int __builtin_dfp_dtstsfi_gt (unsigned int comparison, _Decimal64 value);
  39787. int __builtin_dfp_dtstsfi_gt (unsigned int comparison, _Decimal128 value);
  39788. int __builtin_dfp_dtstsfi_gt_dd (unsigned int comparison, _Decimal64 value);
  39789. int __builtin_dfp_dtstsfi_gt_td (unsigned int comparison, _Decimal128 value);
  39790. int __builtin_dfp_dtstsfi_eq (unsigned int comparison, _Decimal64 value);
  39791. int __builtin_dfp_dtstsfi_eq (unsigned int comparison, _Decimal128 value);
  39792. int __builtin_dfp_dtstsfi_eq_dd (unsigned int comparison, _Decimal64 value);
  39793. int __builtin_dfp_dtstsfi_eq_td (unsigned int comparison, _Decimal128 value);
  39794. int __builtin_dfp_dtstsfi_ov (unsigned int comparison, _Decimal64 value);
  39795. int __builtin_dfp_dtstsfi_ov (unsigned int comparison, _Decimal128 value);
  39796. int __builtin_dfp_dtstsfi_ov_dd (unsigned int comparison, _Decimal64 value);
  39797. int __builtin_dfp_dtstsfi_ov_td (unsigned int comparison, _Decimal128 value);
  39798. double __builtin_mffsl(void);
  39799. The '__builtin_byte_in_set' function requires a 64-bit environment
  39800. supporting ISA 3.0 or later. This function returns a non-zero value if
  39801. and only if its 'u' argument exactly equals one of the eight bytes
  39802. contained within its 64-bit 'set' argument.
  39803. The '__builtin_byte_in_range' and '__builtin_byte_in_either_range'
  39804. require an environment supporting ISA 3.0 or later. For these two
  39805. functions, the 'range' argument is encoded as 4 bytes, organized as
  39806. 'hi_1:lo_1:hi_2:lo_2'. The '__builtin_byte_in_range' function returns a
  39807. non-zero value if and only if its 'u' argument is within the range
  39808. bounded between 'lo_2' and 'hi_2' inclusive. The
  39809. '__builtin_byte_in_either_range' function returns non-zero if and only
  39810. if its 'u' argument is within either the range bounded between 'lo_1'
  39811. and 'hi_1' inclusive or the range bounded between 'lo_2' and 'hi_2'
  39812. inclusive.
  39813. The '__builtin_dfp_dtstsfi_lt' function returns a non-zero value if and
  39814. only if the number of signficant digits of its 'value' argument is less
  39815. than its 'comparison' argument. The '__builtin_dfp_dtstsfi_lt_dd' and
  39816. '__builtin_dfp_dtstsfi_lt_td' functions behave similarly, but require
  39817. that the type of the 'value' argument be '__Decimal64' and
  39818. '__Decimal128' respectively.
  39819. The '__builtin_dfp_dtstsfi_gt' function returns a non-zero value if and
  39820. only if the number of signficant digits of its 'value' argument is
  39821. greater than its 'comparison' argument. The
  39822. '__builtin_dfp_dtstsfi_gt_dd' and '__builtin_dfp_dtstsfi_gt_td'
  39823. functions behave similarly, but require that the type of the 'value'
  39824. argument be '__Decimal64' and '__Decimal128' respectively.
  39825. The '__builtin_dfp_dtstsfi_eq' function returns a non-zero value if and
  39826. only if the number of signficant digits of its 'value' argument equals
  39827. its 'comparison' argument. The '__builtin_dfp_dtstsfi_eq_dd' and
  39828. '__builtin_dfp_dtstsfi_eq_td' functions behave similarly, but require
  39829. that the type of the 'value' argument be '__Decimal64' and
  39830. '__Decimal128' respectively.
  39831. The '__builtin_dfp_dtstsfi_ov' function returns a non-zero value if and
  39832. only if its 'value' argument has an undefined number of significant
  39833. digits, such as when 'value' is an encoding of 'NaN'. The
  39834. '__builtin_dfp_dtstsfi_ov_dd' and '__builtin_dfp_dtstsfi_ov_td'
  39835. functions behave similarly, but require that the type of the 'value'
  39836. argument be '__Decimal64' and '__Decimal128' respectively.
  39837. The '__builtin_mffsl' uses the ISA 3.0 'mffsl' instruction to read the
  39838. FPSCR. The instruction is a lower latency version of the 'mffs'
  39839. instruction. If the 'mffsl' instruction is not available, then the
  39840. builtin uses the older 'mffs' instruction to read the FPSCR.
  39841. 
  39842. File: gcc.info, Node: Basic PowerPC Built-in Functions Available on ISA 3.1, Prev: Basic PowerPC Built-in Functions Available on ISA 3.0, Up: Basic PowerPC Built-in Functions
  39843. 6.60.22.6 Basic PowerPC Built-in Functions Available on ISA 3.1
  39844. ...............................................................
  39845. The basic built-in functions described in this section are available on
  39846. the PowerPC family of processors starting with ISA 3.1. Unless specific
  39847. options are explicitly disabled on the command line, specifying option
  39848. '-mcpu=power10' has the effect of enabling all the same options as for
  39849. '-mcpu=power9'.
  39850. The following built-in functions are available on Linux 64-bit systems
  39851. that use a future architecture instruction set ('-mcpu=power10'):
  39852. unsigned long long int
  39853. __builtin_cfuged (unsigned long long int, unsigned long long int)
  39854. Perform a 64-bit centrifuge operation, as if implemented by the
  39855. 'cfuged' instruction.
  39856. unsigned long long int
  39857. __builtin_cntlzdm (unsigned long long int, unsigned long long int)
  39858. Perform a 64-bit count leading zeros operation under mask, as if
  39859. implemented by the 'cntlzdm' instruction.
  39860. unsigned long long int
  39861. __builtin_cnttzdm (unsigned long long int, unsigned long long int)
  39862. Perform a 64-bit count trailing zeros operation under mask, as if
  39863. implemented by the 'cnttzdm' instruction.
  39864. unsigned long long int
  39865. __builtin_pdepd (unsigned long long int, unsigned long long int)
  39866. Perform a 64-bit parallel bits deposit operation, as if implemented by
  39867. the 'pdepd' instruction.
  39868. unsigned long long int
  39869. __builtin_pextd (unsigned long long int, unsigned long long int)
  39870. Perform a 64-bit parallel bits extract operation, as if implemented by
  39871. the 'pextd' instruction.
  39872. vector signed __int128 vsx_xl_sext (signed long long, signed char *);
  39873. vector signed __int128 vsx_xl_sext (signed long long, signed short *);
  39874. vector signed __int128 vsx_xl_sext (signed long long, signed int *);
  39875. vector signed __int128 vsx_xl_sext (signed long long, signed long long *);
  39876. vector unsigned __int128 vsx_xl_zext (signed long long, unsigned char *);
  39877. vector unsigned __int128 vsx_xl_zext (signed long long, unsigned short *);
  39878. vector unsigned __int128 vsx_xl_zext (signed long long, unsigned int *);
  39879. vector unsigned __int128 vsx_xl_zext (signed long long, unsigned long long *);
  39880. Load (and sign extend) to an __int128 vector, as if implemented by the
  39881. ISA 3.1 'lxvrbx' 'lxvrhx' 'lxvrwx' 'lxvrdx' instructions.
  39882. void vec_xst_trunc (vector signed __int128, signed long long, signed char *);
  39883. void vec_xst_trunc (vector signed __int128, signed long long, signed short *);
  39884. void vec_xst_trunc (vector signed __int128, signed long long, signed int *);
  39885. void vec_xst_trunc (vector signed __int128, signed long long, signed long long *);
  39886. void vec_xst_trunc (vector unsigned __int128, signed long long, unsigned char *);
  39887. void vec_xst_trunc (vector unsigned __int128, signed long long, unsigned short *);
  39888. void vec_xst_trunc (vector unsigned __int128, signed long long, unsigned int *);
  39889. void vec_xst_trunc (vector unsigned __int128, signed long long, unsigned long long *);
  39890. Truncate and store the rightmost element of a vector, as if implemented
  39891. by the ISA 3.1 'stxvrbx' 'stxvrhx' 'stxvrwx' 'stxvrdx' instructions.
  39892. 
  39893. 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
  39894. 6.60.23 PowerPC AltiVec/VSX Built-in Functions
  39895. ----------------------------------------------
  39896. GCC provides an interface for the PowerPC family of processors to access
  39897. the AltiVec operations described in Motorola's AltiVec Programming
  39898. Interface Manual. The interface is made available by including
  39899. '<altivec.h>' and using '-maltivec' and '-mabi=altivec'. The interface
  39900. supports the following vector types.
  39901. vector unsigned char
  39902. vector signed char
  39903. vector bool char
  39904. vector unsigned short
  39905. vector signed short
  39906. vector bool short
  39907. vector pixel
  39908. vector unsigned int
  39909. vector signed int
  39910. vector bool int
  39911. vector float
  39912. GCC's implementation of the high-level language interface available
  39913. from C and C++ code differs from Motorola's documentation in several
  39914. ways.
  39915. * A vector constant is a list of constant expressions within curly
  39916. braces.
  39917. * A vector initializer requires no cast if the vector constant is of
  39918. the same type as the variable it is initializing.
  39919. * If 'signed' or 'unsigned' is omitted, the signedness of the vector
  39920. type is the default signedness of the base type. The default
  39921. varies depending on the operating system, so a portable program
  39922. should always specify the signedness.
  39923. * Compiling with '-maltivec' adds keywords '__vector', 'vector',
  39924. '__pixel', 'pixel', '__bool' and 'bool'. When compiling ISO C, the
  39925. context-sensitive substitution of the keywords 'vector', 'pixel'
  39926. and 'bool' is disabled. To use them, you must include
  39927. '<altivec.h>' instead.
  39928. * GCC allows using a 'typedef' name as the type specifier for a
  39929. vector type, but only under the following circumstances:
  39930. * When using '__vector' instead of 'vector'; for example,
  39931. typedef signed short int16;
  39932. __vector int16 data;
  39933. * When using 'vector' in keyword-and-predefine mode; for
  39934. example,
  39935. typedef signed short int16;
  39936. vector int16 data;
  39937. Note that keyword-and-predefine mode is enabled by disabling
  39938. GNU extensions (e.g., by using '-std=c11') and including
  39939. '<altivec.h>'.
  39940. * For C, overloaded functions are implemented with macros so the
  39941. following does not work:
  39942. vec_add ((vector signed int){1, 2, 3, 4}, foo);
  39943. Since 'vec_add' is a macro, the vector constant in the example is
  39944. treated as four separate arguments. Wrap the entire argument in
  39945. parentheses for this to work.
  39946. _Note:_ Only the '<altivec.h>' interface is supported. Internally, GCC
  39947. uses built-in functions to achieve the functionality in the
  39948. aforementioned header file, but they are not supported and are subject
  39949. to change without notice.
  39950. GCC complies with the Power Vector Intrinsic Programming Reference
  39951. (PVIPR), which may be found at
  39952. <https://openpowerfoundation.org/?resource_lib=power-vector-intrinsic-programming-reference>.
  39953. Chapter 4 of this document fully documents the vector API interfaces
  39954. that must be provided by compliant compilers. Programmers should
  39955. preferentially use the interfaces described therein. However,
  39956. historically GCC has provided additional interfaces for access to vector
  39957. instructions. These are briefly described below. Where the PVIPR
  39958. provides a portable interface, other functions in GCC that provide the
  39959. same capabilities should be considered deprecated.
  39960. The PVIPR documents the following overloaded functions:
  39961. 'vec_abs' 'vec_absd' 'vec_abss'
  39962. 'vec_add' 'vec_addc' 'vec_adde'
  39963. 'vec_addec' 'vec_adds' 'vec_all_eq'
  39964. 'vec_all_ge' 'vec_all_gt' 'vec_all_in'
  39965. 'vec_all_le' 'vec_all_lt' 'vec_all_nan'
  39966. 'vec_all_ne' 'vec_all_nge' 'vec_all_ngt'
  39967. 'vec_all_nle' 'vec_all_nlt' 'vec_all_numeric'
  39968. 'vec_and' 'vec_andc' 'vec_any_eq'
  39969. 'vec_any_ge' 'vec_any_gt' 'vec_any_le'
  39970. 'vec_any_lt' 'vec_any_nan' 'vec_any_ne'
  39971. 'vec_any_nge' 'vec_any_ngt' 'vec_any_nle'
  39972. 'vec_any_nlt' 'vec_any_numeric' 'vec_any_out'
  39973. 'vec_avg' 'vec_bperm' 'vec_ceil'
  39974. 'vec_cipher_be' 'vec_cipherlast_be' 'vec_cmpb'
  39975. 'vec_cmpeq' 'vec_cmpge' 'vec_cmpgt'
  39976. 'vec_cmple' 'vec_cmplt' 'vec_cmpne'
  39977. 'vec_cmpnez' 'vec_cntlz' 'vec_cntlz_lsbb'
  39978. 'vec_cnttz' 'vec_cnttz_lsbb' 'vec_cpsgn'
  39979. 'vec_ctf' 'vec_cts' 'vec_ctu'
  39980. 'vec_div' 'vec_double' 'vec_doublee'
  39981. 'vec_doubleh' 'vec_doublel' 'vec_doubleo'
  39982. 'vec_eqv' 'vec_expte' 'vec_extract'
  39983. 'vec_extract_exp' 'vec_extract_fp32_from_shorth''vec_extract_fp32_from_shortl'
  39984. 'vec_extract_sig' 'vec_extract_4b' 'vec_first_match_index'
  39985. 'vec_first_match_or_eos_index''vec_first_mismatch_index''vec_first_mismatch_or_eos_index'
  39986. 'vec_float' 'vec_float2' 'vec_floate'
  39987. 'vec_floato' 'vec_floor' 'vec_gb'
  39988. 'vec_insert' 'vec_insert_exp' 'vec_insert4b'
  39989. 'vec_ld' 'vec_lde' 'vec_ldl'
  39990. 'vec_loge' 'vec_madd' 'vec_madds'
  39991. 'vec_max' 'vec_mergee' 'vec_mergeh'
  39992. 'vec_mergel' 'vec_mergeo' 'vec_mfvscr'
  39993. 'vec_min' 'vec_mradds' 'vec_msub'
  39994. 'vec_msum' 'vec_msums' 'vec_mtvscr'
  39995. 'vec_mul' 'vec_mule' 'vec_mulo'
  39996. 'vec_nabs' 'vec_nand' 'vec_ncipher_be'
  39997. 'vec_ncipherlast_be' 'vec_nearbyint' 'vec_neg'
  39998. 'vec_nmadd' 'vec_nmsub' 'vec_nor'
  39999. 'vec_or' 'vec_orc' 'vec_pack'
  40000. 'vec_pack_to_short_fp32' 'vec_packpx' 'vec_packs'
  40001. 'vec_packsu' 'vec_parity_lsbb' 'vec_perm'
  40002. 'vec_permxor' 'vec_pmsum_be' 'vec_popcnt'
  40003. 'vec_re' 'vec_recipdiv' 'vec_revb'
  40004. 'vec_reve' 'vec_rint' 'vec_rl'
  40005. 'vec_rlmi' 'vec_rlnm' 'vec_round'
  40006. 'vec_rsqrt' 'vec_rsqrte' 'vec_sbox_be'
  40007. 'vec_sel' 'vec_shasigma_be' 'vec_signed'
  40008. 'vec_signed2' 'vec_signede' 'vec_signedo'
  40009. 'vec_sl' 'vec_sld' 'vec_sldw'
  40010. 'vec_sll' 'vec_slo' 'vec_slv'
  40011. 'vec_splat' 'vec_splat_s8' 'vec_splat_s16'
  40012. 'vec_splat_s32' 'vec_splat_u8' 'vec_splat_u16'
  40013. 'vec_splat_u32' 'vec_splats' 'vec_sqrt'
  40014. 'vec_sr' 'vec_sra' 'vec_srl'
  40015. 'vec_sro' 'vec_srv' 'vec_st'
  40016. 'vec_ste' 'vec_stl' 'vec_sub'
  40017. 'vec_subc' 'vec_sube' 'vec_subec'
  40018. 'vec_subs' 'vec_sum2s' 'vec_sum4s'
  40019. 'vec_sums' 'vec_test_data_class' 'vec_trunc'
  40020. 'vec_unpackh' 'vec_unpackl' 'vec_unsigned'
  40021. 'vec_unsigned2' 'vec_unsignede' 'vec_unsignedo'
  40022. 'vec_xl' 'vec_xl_be' 'vec_xl_len'
  40023. 'vec_xl_len_r' 'vec_xor' 'vec_xst'
  40024. 'vec_xst_be' 'vec_xst_len' 'vec_xst_len_r'
  40025. * Menu:
  40026. * PowerPC AltiVec Built-in Functions on ISA 2.05::
  40027. * PowerPC AltiVec Built-in Functions Available on ISA 2.06::
  40028. * PowerPC AltiVec Built-in Functions Available on ISA 2.07::
  40029. * PowerPC AltiVec Built-in Functions Available on ISA 3.0::
  40030. * PowerPC AltiVec Built-in Functions Available on ISA 3.1::
  40031. 
  40032. 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
  40033. 6.60.23.1 PowerPC AltiVec Built-in Functions on ISA 2.05
  40034. ........................................................
  40035. The following interfaces are supported for the generic and specific
  40036. AltiVec operations and the AltiVec predicates. In cases where there is
  40037. a direct mapping between generic and specific operations, only the
  40038. generic names are shown here, although the specific operations can also
  40039. be used.
  40040. Arguments that are documented as 'const int' require literal integral
  40041. values within the range required for that operation.
  40042. Only functions excluded from the PVIPR are listed here.
  40043. void vec_dss (const int);
  40044. void vec_dssall (void);
  40045. void vec_dst (const vector unsigned char *, int, const int);
  40046. void vec_dst (const vector signed char *, int, const int);
  40047. void vec_dst (const vector bool char *, int, const int);
  40048. void vec_dst (const vector unsigned short *, int, const int);
  40049. void vec_dst (const vector signed short *, int, const int);
  40050. void vec_dst (const vector bool short *, int, const int);
  40051. void vec_dst (const vector pixel *, int, const int);
  40052. void vec_dst (const vector unsigned int *, int, const int);
  40053. void vec_dst (const vector signed int *, int, const int);
  40054. void vec_dst (const vector bool int *, int, const int);
  40055. void vec_dst (const vector float *, int, const int);
  40056. void vec_dst (const unsigned char *, int, const int);
  40057. void vec_dst (const signed char *, int, const int);
  40058. void vec_dst (const unsigned short *, int, const int);
  40059. void vec_dst (const short *, int, const int);
  40060. void vec_dst (const unsigned int *, int, const int);
  40061. void vec_dst (const int *, int, const int);
  40062. void vec_dst (const float *, int, const int);
  40063. void vec_dstst (const vector unsigned char *, int, const int);
  40064. void vec_dstst (const vector signed char *, int, const int);
  40065. void vec_dstst (const vector bool char *, int, const int);
  40066. void vec_dstst (const vector unsigned short *, int, const int);
  40067. void vec_dstst (const vector signed short *, int, const int);
  40068. void vec_dstst (const vector bool short *, int, const int);
  40069. void vec_dstst (const vector pixel *, int, const int);
  40070. void vec_dstst (const vector unsigned int *, int, const int);
  40071. void vec_dstst (const vector signed int *, int, const int);
  40072. void vec_dstst (const vector bool int *, int, const int);
  40073. void vec_dstst (const vector float *, int, const int);
  40074. void vec_dstst (const unsigned char *, int, const int);
  40075. void vec_dstst (const signed char *, int, const int);
  40076. void vec_dstst (const unsigned short *, int, const int);
  40077. void vec_dstst (const short *, int, const int);
  40078. void vec_dstst (const unsigned int *, int, const int);
  40079. void vec_dstst (const int *, int, const int);
  40080. void vec_dstst (const unsigned long *, int, const int);
  40081. void vec_dstst (const long *, int, const int);
  40082. void vec_dstst (const float *, int, const int);
  40083. void vec_dststt (const vector unsigned char *, int, const int);
  40084. void vec_dststt (const vector signed char *, int, const int);
  40085. void vec_dststt (const vector bool char *, int, const int);
  40086. void vec_dststt (const vector unsigned short *, int, const int);
  40087. void vec_dststt (const vector signed short *, int, const int);
  40088. void vec_dststt (const vector bool short *, int, const int);
  40089. void vec_dststt (const vector pixel *, int, const int);
  40090. void vec_dststt (const vector unsigned int *, int, const int);
  40091. void vec_dststt (const vector signed int *, int, const int);
  40092. void vec_dststt (const vector bool int *, int, const int);
  40093. void vec_dststt (const vector float *, int, const int);
  40094. void vec_dststt (const unsigned char *, int, const int);
  40095. void vec_dststt (const signed char *, int, const int);
  40096. void vec_dststt (const unsigned short *, int, const int);
  40097. void vec_dststt (const short *, int, const int);
  40098. void vec_dststt (const unsigned int *, int, const int);
  40099. void vec_dststt (const int *, int, const int);
  40100. void vec_dststt (const float *, int, const int);
  40101. void vec_dstt (const vector unsigned char *, int, const int);
  40102. void vec_dstt (const vector signed char *, int, const int);
  40103. void vec_dstt (const vector bool char *, int, const int);
  40104. void vec_dstt (const vector unsigned short *, int, const int);
  40105. void vec_dstt (const vector signed short *, int, const int);
  40106. void vec_dstt (const vector bool short *, int, const int);
  40107. void vec_dstt (const vector pixel *, int, const int);
  40108. void vec_dstt (const vector unsigned int *, int, const int);
  40109. void vec_dstt (const vector signed int *, int, const int);
  40110. void vec_dstt (const vector bool int *, int, const int);
  40111. void vec_dstt (const vector float *, int, const int);
  40112. void vec_dstt (const unsigned char *, int, const int);
  40113. void vec_dstt (const signed char *, int, const int);
  40114. void vec_dstt (const unsigned short *, int, const int);
  40115. void vec_dstt (const short *, int, const int);
  40116. void vec_dstt (const unsigned int *, int, const int);
  40117. void vec_dstt (const int *, int, const int);
  40118. void vec_dstt (const float *, int, const int);
  40119. vector signed char vec_lvebx (int, char *);
  40120. vector unsigned char vec_lvebx (int, unsigned char *);
  40121. vector signed short vec_lvehx (int, short *);
  40122. vector unsigned short vec_lvehx (int, unsigned short *);
  40123. vector float vec_lvewx (int, float *);
  40124. vector signed int vec_lvewx (int, int *);
  40125. vector unsigned int vec_lvewx (int, unsigned int *);
  40126. vector unsigned char vec_lvsl (int, const unsigned char *);
  40127. vector unsigned char vec_lvsl (int, const signed char *);
  40128. vector unsigned char vec_lvsl (int, const unsigned short *);
  40129. vector unsigned char vec_lvsl (int, const short *);
  40130. vector unsigned char vec_lvsl (int, const unsigned int *);
  40131. vector unsigned char vec_lvsl (int, const int *);
  40132. vector unsigned char vec_lvsl (int, const float *);
  40133. vector unsigned char vec_lvsr (int, const unsigned char *);
  40134. vector unsigned char vec_lvsr (int, const signed char *);
  40135. vector unsigned char vec_lvsr (int, const unsigned short *);
  40136. vector unsigned char vec_lvsr (int, const short *);
  40137. vector unsigned char vec_lvsr (int, const unsigned int *);
  40138. vector unsigned char vec_lvsr (int, const int *);
  40139. vector unsigned char vec_lvsr (int, const float *);
  40140. void vec_stvebx (vector signed char, int, signed char *);
  40141. void vec_stvebx (vector unsigned char, int, unsigned char *);
  40142. void vec_stvebx (vector bool char, int, signed char *);
  40143. void vec_stvebx (vector bool char, int, unsigned char *);
  40144. void vec_stvehx (vector signed short, int, short *);
  40145. void vec_stvehx (vector unsigned short, int, unsigned short *);
  40146. void vec_stvehx (vector bool short, int, short *);
  40147. void vec_stvehx (vector bool short, int, unsigned short *);
  40148. void vec_stvewx (vector float, int, float *);
  40149. void vec_stvewx (vector signed int, int, int *);
  40150. void vec_stvewx (vector unsigned int, int, unsigned int *);
  40151. void vec_stvewx (vector bool int, int, int *);
  40152. void vec_stvewx (vector bool int, int, unsigned int *);
  40153. vector float vec_vaddfp (vector float, vector float);
  40154. vector signed char vec_vaddsbs (vector bool char, vector signed char);
  40155. vector signed char vec_vaddsbs (vector signed char, vector bool char);
  40156. vector signed char vec_vaddsbs (vector signed char, vector signed char);
  40157. vector signed short vec_vaddshs (vector bool short, vector signed short);
  40158. vector signed short vec_vaddshs (vector signed short, vector bool short);
  40159. vector signed short vec_vaddshs (vector signed short, vector signed short);
  40160. vector signed int vec_vaddsws (vector bool int, vector signed int);
  40161. vector signed int vec_vaddsws (vector signed int, vector bool int);
  40162. vector signed int vec_vaddsws (vector signed int, vector signed int);
  40163. vector signed char vec_vaddubm (vector bool char, vector signed char);
  40164. vector signed char vec_vaddubm (vector signed char, vector bool char);
  40165. vector signed char vec_vaddubm (vector signed char, vector signed char);
  40166. vector unsigned char vec_vaddubm (vector bool char, vector unsigned char);
  40167. vector unsigned char vec_vaddubm (vector unsigned char, vector bool char);
  40168. vector unsigned char vec_vaddubm (vector unsigned char, vector unsigned char);
  40169. vector unsigned char vec_vaddubs (vector bool char, vector unsigned char);
  40170. vector unsigned char vec_vaddubs (vector unsigned char, vector bool char);
  40171. vector unsigned char vec_vaddubs (vector unsigned char, vector unsigned char);
  40172. vector signed short vec_vadduhm (vector bool short, vector signed short);
  40173. vector signed short vec_vadduhm (vector signed short, vector bool short);
  40174. vector signed short vec_vadduhm (vector signed short, vector signed short);
  40175. vector unsigned short vec_vadduhm (vector bool short, vector unsigned short);
  40176. vector unsigned short vec_vadduhm (vector unsigned short, vector bool short);
  40177. vector unsigned short vec_vadduhm (vector unsigned short, vector unsigned short);
  40178. vector unsigned short vec_vadduhs (vector bool short, vector unsigned short);
  40179. vector unsigned short vec_vadduhs (vector unsigned short, vector bool short);
  40180. vector unsigned short vec_vadduhs (vector unsigned short, vector unsigned short);
  40181. vector signed int vec_vadduwm (vector bool int, vector signed int);
  40182. vector signed int vec_vadduwm (vector signed int, vector bool int);
  40183. vector signed int vec_vadduwm (vector signed int, vector signed int);
  40184. vector unsigned int vec_vadduwm (vector bool int, vector unsigned int);
  40185. vector unsigned int vec_vadduwm (vector unsigned int, vector bool int);
  40186. vector unsigned int vec_vadduwm (vector unsigned int, vector unsigned int);
  40187. vector unsigned int vec_vadduws (vector bool int, vector unsigned int);
  40188. vector unsigned int vec_vadduws (vector unsigned int, vector bool int);
  40189. vector unsigned int vec_vadduws (vector unsigned int, vector unsigned int);
  40190. vector signed char vec_vavgsb (vector signed char, vector signed char);
  40191. vector signed short vec_vavgsh (vector signed short, vector signed short);
  40192. vector signed int vec_vavgsw (vector signed int, vector signed int);
  40193. vector unsigned char vec_vavgub (vector unsigned char, vector unsigned char);
  40194. vector unsigned short vec_vavguh (vector unsigned short, vector unsigned short);
  40195. vector unsigned int vec_vavguw (vector unsigned int, vector unsigned int);
  40196. vector float vec_vcfsx (vector signed int, const int);
  40197. vector float vec_vcfux (vector unsigned int, const int);
  40198. vector bool int vec_vcmpeqfp (vector float, vector float);
  40199. vector bool char vec_vcmpequb (vector signed char, vector signed char);
  40200. vector bool char vec_vcmpequb (vector unsigned char, vector unsigned char);
  40201. vector bool short vec_vcmpequh (vector signed short, vector signed short);
  40202. vector bool short vec_vcmpequh (vector unsigned short, vector unsigned short);
  40203. vector bool int vec_vcmpequw (vector signed int, vector signed int);
  40204. vector bool int vec_vcmpequw (vector unsigned int, vector unsigned int);
  40205. vector bool int vec_vcmpgtfp (vector float, vector float);
  40206. vector bool char vec_vcmpgtsb (vector signed char, vector signed char);
  40207. vector bool short vec_vcmpgtsh (vector signed short, vector signed short);
  40208. vector bool int vec_vcmpgtsw (vector signed int, vector signed int);
  40209. vector bool char vec_vcmpgtub (vector unsigned char, vector unsigned char);
  40210. vector bool short vec_vcmpgtuh (vector unsigned short, vector unsigned short);
  40211. vector bool int vec_vcmpgtuw (vector unsigned int, vector unsigned int);
  40212. vector float vec_vmaxfp (vector float, vector float);
  40213. vector signed char vec_vmaxsb (vector bool char, vector signed char);
  40214. vector signed char vec_vmaxsb (vector signed char, vector bool char);
  40215. vector signed char vec_vmaxsb (vector signed char, vector signed char);
  40216. vector signed short vec_vmaxsh (vector bool short, vector signed short);
  40217. vector signed short vec_vmaxsh (vector signed short, vector bool short);
  40218. vector signed short vec_vmaxsh (vector signed short, vector signed short);
  40219. vector signed int vec_vmaxsw (vector bool int, vector signed int);
  40220. vector signed int vec_vmaxsw (vector signed int, vector bool int);
  40221. vector signed int vec_vmaxsw (vector signed int, vector signed int);
  40222. vector unsigned char vec_vmaxub (vector bool char, vector unsigned char);
  40223. vector unsigned char vec_vmaxub (vector unsigned char, vector bool char);
  40224. vector unsigned char vec_vmaxub (vector unsigned char, vector unsigned char);
  40225. vector unsigned short vec_vmaxuh (vector bool short, vector unsigned short);
  40226. vector unsigned short vec_vmaxuh (vector unsigned short, vector bool short);
  40227. vector unsigned short vec_vmaxuh (vector unsigned short, vector unsigned short);
  40228. vector unsigned int vec_vmaxuw (vector bool int, vector unsigned int);
  40229. vector unsigned int vec_vmaxuw (vector unsigned int, vector bool int);
  40230. vector unsigned int vec_vmaxuw (vector unsigned int, vector unsigned int);
  40231. vector float vec_vminfp (vector float, vector float);
  40232. vector signed char vec_vminsb (vector bool char, vector signed char);
  40233. vector signed char vec_vminsb (vector signed char, vector bool char);
  40234. vector signed char vec_vminsb (vector signed char, vector signed char);
  40235. vector signed short vec_vminsh (vector bool short, vector signed short);
  40236. vector signed short vec_vminsh (vector signed short, vector bool short);
  40237. vector signed short vec_vminsh (vector signed short, vector signed short);
  40238. vector signed int vec_vminsw (vector bool int, vector signed int);
  40239. vector signed int vec_vminsw (vector signed int, vector bool int);
  40240. vector signed int vec_vminsw (vector signed int, vector signed int);
  40241. vector unsigned char vec_vminub (vector bool char, vector unsigned char);
  40242. vector unsigned char vec_vminub (vector unsigned char, vector bool char);
  40243. vector unsigned char vec_vminub (vector unsigned char, vector unsigned char);
  40244. vector unsigned short vec_vminuh (vector bool short, vector unsigned short);
  40245. vector unsigned short vec_vminuh (vector unsigned short, vector bool short);
  40246. vector unsigned short vec_vminuh (vector unsigned short, vector unsigned short);
  40247. vector unsigned int vec_vminuw (vector bool int, vector unsigned int);
  40248. vector unsigned int vec_vminuw (vector unsigned int, vector bool int);
  40249. vector unsigned int vec_vminuw (vector unsigned int, vector unsigned int);
  40250. vector bool char vec_vmrghb (vector bool char, vector bool char);
  40251. vector signed char vec_vmrghb (vector signed char, vector signed char);
  40252. vector unsigned char vec_vmrghb (vector unsigned char, vector unsigned char);
  40253. vector bool short vec_vmrghh (vector bool short, vector bool short);
  40254. vector signed short vec_vmrghh (vector signed short, vector signed short);
  40255. vector unsigned short vec_vmrghh (vector unsigned short, vector unsigned short);
  40256. vector pixel vec_vmrghh (vector pixel, vector pixel);
  40257. vector float vec_vmrghw (vector float, vector float);
  40258. vector bool int vec_vmrghw (vector bool int, vector bool int);
  40259. vector signed int vec_vmrghw (vector signed int, vector signed int);
  40260. vector unsigned int vec_vmrghw (vector unsigned int, vector unsigned int);
  40261. vector bool char vec_vmrglb (vector bool char, vector bool char);
  40262. vector signed char vec_vmrglb (vector signed char, vector signed char);
  40263. vector unsigned char vec_vmrglb (vector unsigned char, vector unsigned char);
  40264. vector bool short vec_vmrglh (vector bool short, vector bool short);
  40265. vector signed short vec_vmrglh (vector signed short, vector signed short);
  40266. vector unsigned short vec_vmrglh (vector unsigned short, vector unsigned short);
  40267. vector pixel vec_vmrglh (vector pixel, vector pixel);
  40268. vector float vec_vmrglw (vector float, vector float);
  40269. vector signed int vec_vmrglw (vector signed int, vector signed int);
  40270. vector unsigned int vec_vmrglw (vector unsigned int, vector unsigned int);
  40271. vector bool int vec_vmrglw (vector bool int, vector bool int);
  40272. vector signed int vec_vmsummbm (vector signed char, vector unsigned char,
  40273. vector signed int);
  40274. vector signed int vec_vmsumshm (vector signed short, vector signed short,
  40275. vector signed int);
  40276. vector signed int vec_vmsumshs (vector signed short, vector signed short,
  40277. vector signed int);
  40278. vector unsigned int vec_vmsumubm (vector unsigned char, vector unsigned char,
  40279. vector unsigned int);
  40280. vector unsigned int vec_vmsumuhm (vector unsigned short, vector unsigned short,
  40281. vector unsigned int);
  40282. vector unsigned int vec_vmsumuhs (vector unsigned short, vector unsigned short,
  40283. vector unsigned int);
  40284. vector signed short vec_vmulesb (vector signed char, vector signed char);
  40285. vector signed int vec_vmulesh (vector signed short, vector signed short);
  40286. vector unsigned short vec_vmuleub (vector unsigned char, vector unsigned char);
  40287. vector unsigned int vec_vmuleuh (vector unsigned short, vector unsigned short);
  40288. vector signed short vec_vmulosb (vector signed char, vector signed char);
  40289. vector signed int vec_vmulosh (vector signed short, vector signed short);
  40290. vector unsigned short vec_vmuloub (vector unsigned char, vector unsigned char);
  40291. vector unsigned int vec_vmulouh (vector unsigned short, vector unsigned short);
  40292. vector signed char vec_vpkshss (vector signed short, vector signed short);
  40293. vector unsigned char vec_vpkshus (vector signed short, vector signed short);
  40294. vector signed short vec_vpkswss (vector signed int, vector signed int);
  40295. vector unsigned short vec_vpkswus (vector signed int, vector signed int);
  40296. vector bool char vec_vpkuhum (vector bool short, vector bool short);
  40297. vector signed char vec_vpkuhum (vector signed short, vector signed short);
  40298. vector unsigned char vec_vpkuhum (vector unsigned short, vector unsigned short);
  40299. vector unsigned char vec_vpkuhus (vector unsigned short, vector unsigned short);
  40300. vector bool short vec_vpkuwum (vector bool int, vector bool int);
  40301. vector signed short vec_vpkuwum (vector signed int, vector signed int);
  40302. vector unsigned short vec_vpkuwum (vector unsigned int, vector unsigned int);
  40303. vector unsigned short vec_vpkuwus (vector unsigned int, vector unsigned int);
  40304. vector signed char vec_vrlb (vector signed char, vector unsigned char);
  40305. vector unsigned char vec_vrlb (vector unsigned char, vector unsigned char);
  40306. vector signed short vec_vrlh (vector signed short, vector unsigned short);
  40307. vector unsigned short vec_vrlh (vector unsigned short, vector unsigned short);
  40308. vector signed int vec_vrlw (vector signed int, vector unsigned int);
  40309. vector unsigned int vec_vrlw (vector unsigned int, vector unsigned int);
  40310. vector signed char vec_vslb (vector signed char, vector unsigned char);
  40311. vector unsigned char vec_vslb (vector unsigned char, vector unsigned char);
  40312. vector signed short vec_vslh (vector signed short, vector unsigned short);
  40313. vector unsigned short vec_vslh (vector unsigned short, vector unsigned short);
  40314. vector signed int vec_vslw (vector signed int, vector unsigned int);
  40315. vector unsigned int vec_vslw (vector unsigned int, vector unsigned int);
  40316. vector signed char vec_vspltb (vector signed char, const int);
  40317. vector unsigned char vec_vspltb (vector unsigned char, const int);
  40318. vector bool char vec_vspltb (vector bool char, const int);
  40319. vector bool short vec_vsplth (vector bool short, const int);
  40320. vector signed short vec_vsplth (vector signed short, const int);
  40321. vector unsigned short vec_vsplth (vector unsigned short, const int);
  40322. vector pixel vec_vsplth (vector pixel, const int);
  40323. vector float vec_vspltw (vector float, const int);
  40324. vector signed int vec_vspltw (vector signed int, const int);
  40325. vector unsigned int vec_vspltw (vector unsigned int, const int);
  40326. vector bool int vec_vspltw (vector bool int, const int);
  40327. vector signed char vec_vsrab (vector signed char, vector unsigned char);
  40328. vector unsigned char vec_vsrab (vector unsigned char, vector unsigned char);
  40329. vector signed short vec_vsrah (vector signed short, vector unsigned short);
  40330. vector unsigned short vec_vsrah (vector unsigned short, vector unsigned short);
  40331. vector signed int vec_vsraw (vector signed int, vector unsigned int);
  40332. vector unsigned int vec_vsraw (vector unsigned int, vector unsigned int);
  40333. vector signed char vec_vsrb (vector signed char, vector unsigned char);
  40334. vector unsigned char vec_vsrb (vector unsigned char, vector unsigned char);
  40335. vector signed short vec_vsrh (vector signed short, vector unsigned short);
  40336. vector unsigned short vec_vsrh (vector unsigned short, vector unsigned short);
  40337. vector signed int vec_vsrw (vector signed int, vector unsigned int);
  40338. vector unsigned int vec_vsrw (vector unsigned int, vector unsigned int);
  40339. vector float vec_vsubfp (vector float, vector float);
  40340. vector signed char vec_vsubsbs (vector bool char, vector signed char);
  40341. vector signed char vec_vsubsbs (vector signed char, vector bool char);
  40342. vector signed char vec_vsubsbs (vector signed char, vector signed char);
  40343. vector signed short vec_vsubshs (vector bool short, vector signed short);
  40344. vector signed short vec_vsubshs (vector signed short, vector bool short);
  40345. vector signed short vec_vsubshs (vector signed short, vector signed short);
  40346. vector signed int vec_vsubsws (vector bool int, vector signed int);
  40347. vector signed int vec_vsubsws (vector signed int, vector bool int);
  40348. vector signed int vec_vsubsws (vector signed int, vector signed int);
  40349. vector signed char vec_vsububm (vector bool char, vector signed char);
  40350. vector signed char vec_vsububm (vector signed char, vector bool char);
  40351. vector signed char vec_vsububm (vector signed char, vector signed char);
  40352. vector unsigned char vec_vsububm (vector bool char, vector unsigned char);
  40353. vector unsigned char vec_vsububm (vector unsigned char, vector bool char);
  40354. vector unsigned char vec_vsububm (vector unsigned char, vector unsigned char);
  40355. vector unsigned char vec_vsububs (vector bool char, vector unsigned char);
  40356. vector unsigned char vec_vsububs (vector unsigned char, vector bool char);
  40357. vector unsigned char vec_vsububs (vector unsigned char, vector unsigned char);
  40358. vector signed short vec_vsubuhm (vector bool short, vector signed short);
  40359. vector signed short vec_vsubuhm (vector signed short, vector bool short);
  40360. vector signed short vec_vsubuhm (vector signed short, vector signed short);
  40361. vector unsigned short vec_vsubuhm (vector bool short, vector unsigned short);
  40362. vector unsigned short vec_vsubuhm (vector unsigned short, vector bool short);
  40363. vector unsigned short vec_vsubuhm (vector unsigned short, vector unsigned short);
  40364. vector unsigned short vec_vsubuhs (vector bool short, vector unsigned short);
  40365. vector unsigned short vec_vsubuhs (vector unsigned short, vector bool short);
  40366. vector unsigned short vec_vsubuhs (vector unsigned short, vector unsigned short);
  40367. vector signed int vec_vsubuwm (vector bool int, vector signed int);
  40368. vector signed int vec_vsubuwm (vector signed int, vector bool int);
  40369. vector signed int vec_vsubuwm (vector signed int, vector signed int);
  40370. vector unsigned int vec_vsubuwm (vector bool int, vector unsigned int);
  40371. vector unsigned int vec_vsubuwm (vector unsigned int, vector bool int);
  40372. vector unsigned int vec_vsubuwm (vector unsigned int, vector unsigned int);
  40373. vector unsigned int vec_vsubuws (vector bool int, vector unsigned int);
  40374. vector unsigned int vec_vsubuws (vector unsigned int, vector bool int);
  40375. vector unsigned int vec_vsubuws (vector unsigned int, vector unsigned int);
  40376. vector signed int vec_vsum4sbs (vector signed char, vector signed int);
  40377. vector signed int vec_vsum4shs (vector signed short, vector signed int);
  40378. vector unsigned int vec_vsum4ubs (vector unsigned char, vector unsigned int);
  40379. vector unsigned int vec_vupkhpx (vector pixel);
  40380. vector bool short vec_vupkhsb (vector bool char);
  40381. vector signed short vec_vupkhsb (vector signed char);
  40382. vector bool int vec_vupkhsh (vector bool short);
  40383. vector signed int vec_vupkhsh (vector signed short);
  40384. vector unsigned int vec_vupklpx (vector pixel);
  40385. vector bool short vec_vupklsb (vector bool char);
  40386. vector signed short vec_vupklsb (vector signed char);
  40387. vector bool int vec_vupklsh (vector bool short);
  40388. vector signed int vec_vupklsh (vector signed short);
  40389. 
  40390. 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
  40391. 6.60.23.2 PowerPC AltiVec Built-in Functions Available on ISA 2.06
  40392. ..................................................................
  40393. The AltiVec built-in functions described in this section are available
  40394. on the PowerPC family of processors starting with ISA 2.06 or later.
  40395. These are normally enabled by adding '-mvsx' to the command line.
  40396. When '-mvsx' is used, the following additional vector types are
  40397. implemented.
  40398. vector unsigned __int128
  40399. vector signed __int128
  40400. vector unsigned long long int
  40401. vector signed long long int
  40402. vector double
  40403. The long long types are only implemented for 64-bit code generation.
  40404. Only functions excluded from the PVIPR are listed here.
  40405. void vec_dst (const unsigned long *, int, const int);
  40406. void vec_dst (const long *, int, const int);
  40407. void vec_dststt (const unsigned long *, int, const int);
  40408. void vec_dststt (const long *, int, const int);
  40409. void vec_dstt (const unsigned long *, int, const int);
  40410. void vec_dstt (const long *, int, const int);
  40411. vector unsigned char vec_lvsl (int, const unsigned long *);
  40412. vector unsigned char vec_lvsl (int, const long *);
  40413. vector unsigned char vec_lvsr (int, const unsigned long *);
  40414. vector unsigned char vec_lvsr (int, const long *);
  40415. vector unsigned char vec_lvsl (int, const double *);
  40416. vector unsigned char vec_lvsr (int, const double *);
  40417. vector double vec_vsx_ld (int, const vector double *);
  40418. vector double vec_vsx_ld (int, const double *);
  40419. vector float vec_vsx_ld (int, const vector float *);
  40420. vector float vec_vsx_ld (int, const float *);
  40421. vector bool int vec_vsx_ld (int, const vector bool int *);
  40422. vector signed int vec_vsx_ld (int, const vector signed int *);
  40423. vector signed int vec_vsx_ld (int, const int *);
  40424. vector signed int vec_vsx_ld (int, const long *);
  40425. vector unsigned int vec_vsx_ld (int, const vector unsigned int *);
  40426. vector unsigned int vec_vsx_ld (int, const unsigned int *);
  40427. vector unsigned int vec_vsx_ld (int, const unsigned long *);
  40428. vector bool short vec_vsx_ld (int, const vector bool short *);
  40429. vector pixel vec_vsx_ld (int, const vector pixel *);
  40430. vector signed short vec_vsx_ld (int, const vector signed short *);
  40431. vector signed short vec_vsx_ld (int, const short *);
  40432. vector unsigned short vec_vsx_ld (int, const vector unsigned short *);
  40433. vector unsigned short vec_vsx_ld (int, const unsigned short *);
  40434. vector bool char vec_vsx_ld (int, const vector bool char *);
  40435. vector signed char vec_vsx_ld (int, const vector signed char *);
  40436. vector signed char vec_vsx_ld (int, const signed char *);
  40437. vector unsigned char vec_vsx_ld (int, const vector unsigned char *);
  40438. vector unsigned char vec_vsx_ld (int, const unsigned char *);
  40439. void vec_vsx_st (vector double, int, vector double *);
  40440. void vec_vsx_st (vector double, int, double *);
  40441. void vec_vsx_st (vector float, int, vector float *);
  40442. void vec_vsx_st (vector float, int, float *);
  40443. void vec_vsx_st (vector signed int, int, vector signed int *);
  40444. void vec_vsx_st (vector signed int, int, int *);
  40445. void vec_vsx_st (vector unsigned int, int, vector unsigned int *);
  40446. void vec_vsx_st (vector unsigned int, int, unsigned int *);
  40447. void vec_vsx_st (vector bool int, int, vector bool int *);
  40448. void vec_vsx_st (vector bool int, int, unsigned int *);
  40449. void vec_vsx_st (vector bool int, int, int *);
  40450. void vec_vsx_st (vector signed short, int, vector signed short *);
  40451. void vec_vsx_st (vector signed short, int, short *);
  40452. void vec_vsx_st (vector unsigned short, int, vector unsigned short *);
  40453. void vec_vsx_st (vector unsigned short, int, unsigned short *);
  40454. void vec_vsx_st (vector bool short, int, vector bool short *);
  40455. void vec_vsx_st (vector bool short, int, unsigned short *);
  40456. void vec_vsx_st (vector pixel, int, vector pixel *);
  40457. void vec_vsx_st (vector pixel, int, unsigned short *);
  40458. void vec_vsx_st (vector pixel, int, short *);
  40459. void vec_vsx_st (vector bool short, int, short *);
  40460. void vec_vsx_st (vector signed char, int, vector signed char *);
  40461. void vec_vsx_st (vector signed char, int, signed char *);
  40462. void vec_vsx_st (vector unsigned char, int, vector unsigned char *);
  40463. void vec_vsx_st (vector unsigned char, int, unsigned char *);
  40464. void vec_vsx_st (vector bool char, int, vector bool char *);
  40465. void vec_vsx_st (vector bool char, int, unsigned char *);
  40466. void vec_vsx_st (vector bool char, int, signed char *);
  40467. vector double vec_xxpermdi (vector double, vector double, const int);
  40468. vector float vec_xxpermdi (vector float, vector float, const int);
  40469. vector long long vec_xxpermdi (vector long long, vector long long, const int);
  40470. vector unsigned long long vec_xxpermdi (vector unsigned long long,
  40471. vector unsigned long long, const int);
  40472. vector int vec_xxpermdi (vector int, vector int, const int);
  40473. vector unsigned int vec_xxpermdi (vector unsigned int,
  40474. vector unsigned int, const int);
  40475. vector short vec_xxpermdi (vector short, vector short, const int);
  40476. vector unsigned short vec_xxpermdi (vector unsigned short,
  40477. vector unsigned short, const int);
  40478. vector signed char vec_xxpermdi (vector signed char, vector signed char,
  40479. const int);
  40480. vector unsigned char vec_xxpermdi (vector unsigned char,
  40481. vector unsigned char, const int);
  40482. vector double vec_xxsldi (vector double, vector double, int);
  40483. vector float vec_xxsldi (vector float, vector float, int);
  40484. vector long long vec_xxsldi (vector long long, vector long long, int);
  40485. vector unsigned long long vec_xxsldi (vector unsigned long long,
  40486. vector unsigned long long, int);
  40487. vector int vec_xxsldi (vector int, vector int, int);
  40488. vector unsigned int vec_xxsldi (vector unsigned int, vector unsigned int, int);
  40489. vector short vec_xxsldi (vector short, vector short, int);
  40490. vector unsigned short vec_xxsldi (vector unsigned short,
  40491. vector unsigned short, int);
  40492. vector signed char vec_xxsldi (vector signed char, vector signed char, int);
  40493. vector unsigned char vec_xxsldi (vector unsigned char,
  40494. vector unsigned char, int);
  40495. Note that the 'vec_ld' and 'vec_st' built-in functions always generate
  40496. the AltiVec 'LVX' and 'STVX' instructions even if the VSX instruction
  40497. set is available. The 'vec_vsx_ld' and 'vec_vsx_st' built-in functions
  40498. always generate the VSX 'LXVD2X', 'LXVW4X', 'STXVD2X', and 'STXVW4X'
  40499. instructions.
  40500. 
  40501. 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
  40502. 6.60.23.3 PowerPC AltiVec Built-in Functions Available on ISA 2.07
  40503. ..................................................................
  40504. If the ISA 2.07 additions to the vector/scalar (power8-vector)
  40505. instruction set are available, the following additional functions are
  40506. available for both 32-bit and 64-bit targets. For 64-bit targets, you
  40507. can use VECTOR LONG instead of VECTOR LONG LONG, VECTOR BOOL LONG
  40508. instead of VECTOR BOOL LONG LONG, and VECTOR UNSIGNED LONG instead of
  40509. VECTOR UNSIGNED LONG LONG.
  40510. Only functions excluded from the PVIPR are listed here.
  40511. vector long long vec_vaddudm (vector long long, vector long long);
  40512. vector long long vec_vaddudm (vector bool long long, vector long long);
  40513. vector long long vec_vaddudm (vector long long, vector bool long long);
  40514. vector unsigned long long vec_vaddudm (vector unsigned long long,
  40515. vector unsigned long long);
  40516. vector unsigned long long vec_vaddudm (vector bool unsigned long long,
  40517. vector unsigned long long);
  40518. vector unsigned long long vec_vaddudm (vector unsigned long long,
  40519. vector bool unsigned long long);
  40520. vector long long vec_vclz (vector long long);
  40521. vector unsigned long long vec_vclz (vector unsigned long long);
  40522. vector int vec_vclz (vector int);
  40523. vector unsigned int vec_vclz (vector int);
  40524. vector short vec_vclz (vector short);
  40525. vector unsigned short vec_vclz (vector unsigned short);
  40526. vector signed char vec_vclz (vector signed char);
  40527. vector unsigned char vec_vclz (vector unsigned char);
  40528. vector signed char vec_vclzb (vector signed char);
  40529. vector unsigned char vec_vclzb (vector unsigned char);
  40530. vector long long vec_vclzd (vector long long);
  40531. vector unsigned long long vec_vclzd (vector unsigned long long);
  40532. vector short vec_vclzh (vector short);
  40533. vector unsigned short vec_vclzh (vector unsigned short);
  40534. vector int vec_vclzw (vector int);
  40535. vector unsigned int vec_vclzw (vector int);
  40536. vector signed char vec_vgbbd (vector signed char);
  40537. vector unsigned char vec_vgbbd (vector unsigned char);
  40538. vector long long vec_vmaxsd (vector long long, vector long long);
  40539. vector unsigned long long vec_vmaxud (vector unsigned long long,
  40540. unsigned vector long long);
  40541. vector long long vec_vminsd (vector long long, vector long long);
  40542. vector unsigned long long vec_vminud (vector long long, vector long long);
  40543. vector int vec_vpksdss (vector long long, vector long long);
  40544. vector unsigned int vec_vpksdss (vector long long, vector long long);
  40545. vector unsigned int vec_vpkudus (vector unsigned long long,
  40546. vector unsigned long long);
  40547. vector int vec_vpkudum (vector long long, vector long long);
  40548. vector unsigned int vec_vpkudum (vector unsigned long long,
  40549. vector unsigned long long);
  40550. vector bool int vec_vpkudum (vector bool long long, vector bool long long);
  40551. vector long long vec_vpopcnt (vector long long);
  40552. vector unsigned long long vec_vpopcnt (vector unsigned long long);
  40553. vector int vec_vpopcnt (vector int);
  40554. vector unsigned int vec_vpopcnt (vector int);
  40555. vector short vec_vpopcnt (vector short);
  40556. vector unsigned short vec_vpopcnt (vector unsigned short);
  40557. vector signed char vec_vpopcnt (vector signed char);
  40558. vector unsigned char vec_vpopcnt (vector unsigned char);
  40559. vector signed char vec_vpopcntb (vector signed char);
  40560. vector unsigned char vec_vpopcntb (vector unsigned char);
  40561. vector long long vec_vpopcntd (vector long long);
  40562. vector unsigned long long vec_vpopcntd (vector unsigned long long);
  40563. vector short vec_vpopcnth (vector short);
  40564. vector unsigned short vec_vpopcnth (vector unsigned short);
  40565. vector int vec_vpopcntw (vector int);
  40566. vector unsigned int vec_vpopcntw (vector int);
  40567. vector long long vec_vrld (vector long long, vector unsigned long long);
  40568. vector unsigned long long vec_vrld (vector unsigned long long,
  40569. vector unsigned long long);
  40570. vector long long vec_vsld (vector long long, vector unsigned long long);
  40571. vector long long vec_vsld (vector unsigned long long,
  40572. vector unsigned long long);
  40573. vector long long vec_vsrad (vector long long, vector unsigned long long);
  40574. vector unsigned long long vec_vsrad (vector unsigned long long,
  40575. vector unsigned long long);
  40576. vector long long vec_vsrd (vector long long, vector unsigned long long);
  40577. vector unsigned long long char vec_vsrd (vector unsigned long long,
  40578. vector unsigned long long);
  40579. vector long long vec_vsubudm (vector long long, vector long long);
  40580. vector long long vec_vsubudm (vector bool long long, vector long long);
  40581. vector long long vec_vsubudm (vector long long, vector bool long long);
  40582. vector unsigned long long vec_vsubudm (vector unsigned long long,
  40583. vector unsigned long long);
  40584. vector unsigned long long vec_vsubudm (vector bool long long,
  40585. vector unsigned long long);
  40586. vector unsigned long long vec_vsubudm (vector unsigned long long,
  40587. vector bool long long);
  40588. vector long long vec_vupkhsw (vector int);
  40589. vector unsigned long long vec_vupkhsw (vector unsigned int);
  40590. vector long long vec_vupklsw (vector int);
  40591. vector unsigned long long vec_vupklsw (vector int);
  40592. If the ISA 2.07 additions to the vector/scalar (power8-vector)
  40593. instruction set are available, the following additional functions are
  40594. available for 64-bit targets. New vector types (VECTOR __INT128 and
  40595. VECTOR __UINT128) are available to hold the __INT128 and __UINT128 types
  40596. to use these builtins.
  40597. The normal vector extract, and set operations work on VECTOR __INT128
  40598. and VECTOR __UINT128 types, but the index value must be 0.
  40599. Only functions excluded from the PVIPR are listed here.
  40600. vector __int128 vec_vaddcuq (vector __int128, vector __int128);
  40601. vector __uint128 vec_vaddcuq (vector __uint128, vector __uint128);
  40602. vector __int128 vec_vadduqm (vector __int128, vector __int128);
  40603. vector __uint128 vec_vadduqm (vector __uint128, vector __uint128);
  40604. vector __int128 vec_vaddecuq (vector __int128, vector __int128,
  40605. vector __int128);
  40606. vector __uint128 vec_vaddecuq (vector __uint128, vector __uint128,
  40607. vector __uint128);
  40608. vector __int128 vec_vaddeuqm (vector __int128, vector __int128,
  40609. vector __int128);
  40610. vector __uint128 vec_vaddeuqm (vector __uint128, vector __uint128,
  40611. vector __uint128);
  40612. vector __int128 vec_vsubecuq (vector __int128, vector __int128,
  40613. vector __int128);
  40614. vector __uint128 vec_vsubecuq (vector __uint128, vector __uint128,
  40615. vector __uint128);
  40616. vector __int128 vec_vsubeuqm (vector __int128, vector __int128,
  40617. vector __int128);
  40618. vector __uint128 vec_vsubeuqm (vector __uint128, vector __uint128,
  40619. vector __uint128);
  40620. vector __int128 vec_vsubcuq (vector __int128, vector __int128);
  40621. vector __uint128 vec_vsubcuq (vector __uint128, vector __uint128);
  40622. __int128 vec_vsubuqm (__int128, __int128);
  40623. __uint128 vec_vsubuqm (__uint128, __uint128);
  40624. vector __int128 __builtin_bcdadd (vector __int128, vector __int128, const int);
  40625. vector unsigned char __builtin_bcdadd (vector unsigned char, vector unsigned char,
  40626. const int);
  40627. int __builtin_bcdadd_lt (vector __int128, vector __int128, const int);
  40628. int __builtin_bcdadd_lt (vector unsigned char, vector unsigned char, const int);
  40629. int __builtin_bcdadd_eq (vector __int128, vector __int128, const int);
  40630. int __builtin_bcdadd_eq (vector unsigned char, vector unsigned char, const int);
  40631. int __builtin_bcdadd_gt (vector __int128, vector __int128, const int);
  40632. int __builtin_bcdadd_gt (vector unsigned char, vector unsigned char, const int);
  40633. int __builtin_bcdadd_ov (vector __int128, vector __int128, const int);
  40634. int __builtin_bcdadd_ov (vector unsigned char, vector unsigned char, const int);
  40635. vector __int128 __builtin_bcdsub (vector __int128, vector __int128, const int);
  40636. vector unsigned char __builtin_bcdsub (vector unsigned char, vector unsigned char,
  40637. const int);
  40638. int __builtin_bcdsub_lt (vector __int128, vector __int128, const int);
  40639. int __builtin_bcdsub_lt (vector unsigned char, vector unsigned char, const int);
  40640. int __builtin_bcdsub_eq (vector __int128, vector __int128, const int);
  40641. int __builtin_bcdsub_eq (vector unsigned char, vector unsigned char, const int);
  40642. int __builtin_bcdsub_gt (vector __int128, vector __int128, const int);
  40643. int __builtin_bcdsub_gt (vector unsigned char, vector unsigned char, const int);
  40644. int __builtin_bcdsub_ov (vector __int128, vector __int128, const int);
  40645. int __builtin_bcdsub_ov (vector unsigned char, vector unsigned char, const int);
  40646. 
  40647. File: gcc.info, Node: PowerPC AltiVec Built-in Functions Available on ISA 3.0, Next: PowerPC AltiVec Built-in Functions Available on ISA 3.1, Prev: PowerPC AltiVec Built-in Functions Available on ISA 2.07, Up: PowerPC AltiVec/VSX Built-in Functions
  40648. 6.60.23.4 PowerPC AltiVec Built-in Functions Available on ISA 3.0
  40649. .................................................................
  40650. The following additional built-in functions are also available for the
  40651. PowerPC family of processors, starting with ISA 3.0 ('-mcpu=power9') or
  40652. later.
  40653. Only instructions excluded from the PVIPR are listed here.
  40654. unsigned int scalar_extract_exp (double source);
  40655. unsigned long long int scalar_extract_exp (__ieee128 source);
  40656. unsigned long long int scalar_extract_sig (double source);
  40657. unsigned __int128 scalar_extract_sig (__ieee128 source);
  40658. double scalar_insert_exp (unsigned long long int significand,
  40659. unsigned long long int exponent);
  40660. double scalar_insert_exp (double significand, unsigned long long int exponent);
  40661. ieee_128 scalar_insert_exp (unsigned __int128 significand,
  40662. unsigned long long int exponent);
  40663. ieee_128 scalar_insert_exp (ieee_128 significand, unsigned long long int exponent);
  40664. int scalar_cmp_exp_gt (double arg1, double arg2);
  40665. int scalar_cmp_exp_lt (double arg1, double arg2);
  40666. int scalar_cmp_exp_eq (double arg1, double arg2);
  40667. int scalar_cmp_exp_unordered (double arg1, double arg2);
  40668. bool scalar_test_data_class (float source, const int condition);
  40669. bool scalar_test_data_class (double source, const int condition);
  40670. bool scalar_test_data_class (__ieee128 source, const int condition);
  40671. bool scalar_test_neg (float source);
  40672. bool scalar_test_neg (double source);
  40673. bool scalar_test_neg (__ieee128 source);
  40674. The 'scalar_extract_exp' and 'scalar_extract_sig' functions require a
  40675. 64-bit environment supporting ISA 3.0 or later. The
  40676. 'scalar_extract_exp' and 'scalar_extract_sig' built-in functions return
  40677. the significand and the biased exponent value respectively of their
  40678. 'source' arguments. When supplied with a 64-bit 'source' argument, the
  40679. result returned by 'scalar_extract_sig' has the '0x0010000000000000' bit
  40680. set if the function's 'source' argument is in normalized form.
  40681. Otherwise, this bit is set to 0. When supplied with a 128-bit 'source'
  40682. argument, the '0x00010000000000000000000000000000' bit of the result is
  40683. treated similarly. Note that the sign of the significand is not
  40684. represented in the result returned from the 'scalar_extract_sig'
  40685. function. Use the 'scalar_test_neg' function to test the sign of its
  40686. 'double' argument.
  40687. The 'scalar_insert_exp' functions require a 64-bit environment
  40688. supporting ISA 3.0 or later. When supplied with a 64-bit first
  40689. argument, the 'scalar_insert_exp' built-in function returns a
  40690. double-precision floating point value that is constructed by assembling
  40691. the values of its 'significand' and 'exponent' arguments. The sign of
  40692. the result is copied from the most significant bit of the 'significand'
  40693. argument. The significand and exponent components of the result are
  40694. composed of the least significant 11 bits of the 'exponent' argument and
  40695. the least significant 52 bits of the 'significand' argument
  40696. respectively.
  40697. When supplied with a 128-bit first argument, the 'scalar_insert_exp'
  40698. built-in function returns a quad-precision ieee floating point value.
  40699. The sign bit of the result is copied from the most significant bit of
  40700. the 'significand' argument. The significand and exponent components of
  40701. the result are composed of the least significant 15 bits of the
  40702. 'exponent' argument and the least significant 112 bits of the
  40703. 'significand' argument respectively.
  40704. The 'scalar_cmp_exp_gt', 'scalar_cmp_exp_lt', 'scalar_cmp_exp_eq', and
  40705. 'scalar_cmp_exp_unordered' built-in functions return a non-zero value if
  40706. 'arg1' is greater than, less than, equal to, or not comparable to 'arg2'
  40707. respectively. The arguments are not comparable if one or the other
  40708. equals NaN (not a number).
  40709. The 'scalar_test_data_class' built-in function returns 1 if any of the
  40710. condition tests enabled by the value of the 'condition' variable are
  40711. true, and 0 otherwise. The 'condition' argument must be a compile-time
  40712. constant integer with value not exceeding 127. The 'condition' argument
  40713. is encoded as a bitmask with each bit enabling the testing of a
  40714. different condition, as characterized by the following:
  40715. 0x40 Test for NaN
  40716. 0x20 Test for +Infinity
  40717. 0x10 Test for -Infinity
  40718. 0x08 Test for +Zero
  40719. 0x04 Test for -Zero
  40720. 0x02 Test for +Denormal
  40721. 0x01 Test for -Denormal
  40722. The 'scalar_test_neg' built-in function returns 1 if its 'source'
  40723. argument holds a negative value, 0 otherwise.
  40724. The following built-in functions are also available for the PowerPC
  40725. family of processors, starting with ISA 3.0 or later ('-mcpu=power9').
  40726. These string functions are described separately in order to group the
  40727. descriptions closer to the function prototypes.
  40728. Only functions excluded from the PVIPR are listed here.
  40729. int vec_all_nez (vector signed char, vector signed char);
  40730. int vec_all_nez (vector unsigned char, vector unsigned char);
  40731. int vec_all_nez (vector signed short, vector signed short);
  40732. int vec_all_nez (vector unsigned short, vector unsigned short);
  40733. int vec_all_nez (vector signed int, vector signed int);
  40734. int vec_all_nez (vector unsigned int, vector unsigned int);
  40735. int vec_any_eqz (vector signed char, vector signed char);
  40736. int vec_any_eqz (vector unsigned char, vector unsigned char);
  40737. int vec_any_eqz (vector signed short, vector signed short);
  40738. int vec_any_eqz (vector unsigned short, vector unsigned short);
  40739. int vec_any_eqz (vector signed int, vector signed int);
  40740. int vec_any_eqz (vector unsigned int, vector unsigned int);
  40741. signed char vec_xlx (unsigned int index, vector signed char data);
  40742. unsigned char vec_xlx (unsigned int index, vector unsigned char data);
  40743. signed short vec_xlx (unsigned int index, vector signed short data);
  40744. unsigned short vec_xlx (unsigned int index, vector unsigned short data);
  40745. signed int vec_xlx (unsigned int index, vector signed int data);
  40746. unsigned int vec_xlx (unsigned int index, vector unsigned int data);
  40747. float vec_xlx (unsigned int index, vector float data);
  40748. signed char vec_xrx (unsigned int index, vector signed char data);
  40749. unsigned char vec_xrx (unsigned int index, vector unsigned char data);
  40750. signed short vec_xrx (unsigned int index, vector signed short data);
  40751. unsigned short vec_xrx (unsigned int index, vector unsigned short data);
  40752. signed int vec_xrx (unsigned int index, vector signed int data);
  40753. unsigned int vec_xrx (unsigned int index, vector unsigned int data);
  40754. float vec_xrx (unsigned int index, vector float data);
  40755. The 'vec_all_nez', 'vec_any_eqz', and 'vec_cmpnez' perform pairwise
  40756. comparisons between the elements at the same positions within their two
  40757. vector arguments. The 'vec_all_nez' function returns a non-zero value
  40758. if and only if all pairwise comparisons are not equal and no element of
  40759. either vector argument contains a zero. The 'vec_any_eqz' function
  40760. returns a non-zero value if and only if at least one pairwise comparison
  40761. is equal or if at least one element of either vector argument contains a
  40762. zero. The 'vec_cmpnez' function returns a vector of the same type as
  40763. its two arguments, within which each element consists of all ones to
  40764. denote that either the corresponding elements of the incoming arguments
  40765. are not equal or that at least one of the corresponding elements
  40766. contains zero. Otherwise, the element of the returned vector contains
  40767. all zeros.
  40768. The 'vec_xlx' and 'vec_xrx' functions extract the single element
  40769. selected by the 'index' argument from the vector represented by the
  40770. 'data' argument. The 'index' argument always specifies a byte offset,
  40771. regardless of the size of the vector element. With 'vec_xlx', 'index'
  40772. is the offset of the first byte of the element to be extracted. With
  40773. 'vec_xrx', 'index' represents the last byte of the element to be
  40774. extracted, measured from the right end of the vector. In other words,
  40775. the last byte of the element to be extracted is found at position '(15 -
  40776. index)'. There is no requirement that 'index' be a multiple of the
  40777. vector element size. However, if the size of the vector element added
  40778. to 'index' is greater than 15, the content of the returned value is
  40779. undefined.
  40780. The following functions are also available if the ISA 3.0 instruction
  40781. set additions ('-mcpu=power9') are available.
  40782. Only functions excluded from the PVIPR are listed here.
  40783. vector long long vec_vctz (vector long long);
  40784. vector unsigned long long vec_vctz (vector unsigned long long);
  40785. vector int vec_vctz (vector int);
  40786. vector unsigned int vec_vctz (vector int);
  40787. vector short vec_vctz (vector short);
  40788. vector unsigned short vec_vctz (vector unsigned short);
  40789. vector signed char vec_vctz (vector signed char);
  40790. vector unsigned char vec_vctz (vector unsigned char);
  40791. vector signed char vec_vctzb (vector signed char);
  40792. vector unsigned char vec_vctzb (vector unsigned char);
  40793. vector long long vec_vctzd (vector long long);
  40794. vector unsigned long long vec_vctzd (vector unsigned long long);
  40795. vector short vec_vctzh (vector short);
  40796. vector unsigned short vec_vctzh (vector unsigned short);
  40797. vector int vec_vctzw (vector int);
  40798. vector unsigned int vec_vctzw (vector int);
  40799. vector int vec_vprtyb (vector int);
  40800. vector unsigned int vec_vprtyb (vector unsigned int);
  40801. vector long long vec_vprtyb (vector long long);
  40802. vector unsigned long long vec_vprtyb (vector unsigned long long);
  40803. vector int vec_vprtybw (vector int);
  40804. vector unsigned int vec_vprtybw (vector unsigned int);
  40805. vector long long vec_vprtybd (vector long long);
  40806. vector unsigned long long vec_vprtybd (vector unsigned long long);
  40807. On 64-bit targets, if the ISA 3.0 additions ('-mcpu=power9') are
  40808. available:
  40809. vector long vec_vprtyb (vector long);
  40810. vector unsigned long vec_vprtyb (vector unsigned long);
  40811. vector __int128 vec_vprtyb (vector __int128);
  40812. vector __uint128 vec_vprtyb (vector __uint128);
  40813. vector long vec_vprtybd (vector long);
  40814. vector unsigned long vec_vprtybd (vector unsigned long);
  40815. vector __int128 vec_vprtybq (vector __int128);
  40816. vector __uint128 vec_vprtybd (vector __uint128);
  40817. The following built-in functions are available for the PowerPC family
  40818. of processors, starting with ISA 3.0 or later ('-mcpu=power9').
  40819. Only functions excluded from the PVIPR are listed here.
  40820. __vector unsigned char
  40821. vec_absdb (__vector unsigned char arg1, __vector unsigned char arg2);
  40822. __vector unsigned short
  40823. vec_absdh (__vector unsigned short arg1, __vector unsigned short arg2);
  40824. __vector unsigned int
  40825. vec_absdw (__vector unsigned int arg1, __vector unsigned int arg2);
  40826. The 'vec_absd', 'vec_absdb', 'vec_absdh', and 'vec_absdw' built-in
  40827. functions each computes the absolute differences of the pairs of vector
  40828. elements supplied in its two vector arguments, placing the absolute
  40829. differences into the corresponding elements of the vector result.
  40830. The following built-in functions are available for the PowerPC family
  40831. of processors, starting with ISA 3.0 or later ('-mcpu=power9'):
  40832. vector unsigned int vec_vrlnm (vector unsigned int, vector unsigned int);
  40833. vector unsigned long long vec_vrlnm (vector unsigned long long,
  40834. vector unsigned long long);
  40835. The result of 'vec_vrlnm' is obtained by rotating each element of the
  40836. first argument vector left and ANDing it with a mask. The second
  40837. argument vector contains the mask beginning in bits 11:15, the mask end
  40838. in bits 19:23, and the shift count in bits 27:31, of each element.
  40839. If the cryptographic instructions are enabled ('-mcrypto' or
  40840. '-mcpu=power8'), the following builtins are enabled.
  40841. Only functions excluded from the PVIPR are listed here.
  40842. vector unsigned long long __builtin_crypto_vsbox (vector unsigned long long);
  40843. vector unsigned long long __builtin_crypto_vcipher (vector unsigned long long,
  40844. vector unsigned long long);
  40845. vector unsigned long long __builtin_crypto_vcipherlast
  40846. (vector unsigned long long,
  40847. vector unsigned long long);
  40848. vector unsigned long long __builtin_crypto_vncipher (vector unsigned long long,
  40849. vector unsigned long long);
  40850. vector unsigned long long __builtin_crypto_vncipherlast (vector unsigned long long,
  40851. vector unsigned long long);
  40852. vector unsigned char __builtin_crypto_vpermxor (vector unsigned char,
  40853. vector unsigned char,
  40854. vector unsigned char);
  40855. vector unsigned short __builtin_crypto_vpermxor (vector unsigned short,
  40856. vector unsigned short,
  40857. vector unsigned short);
  40858. vector unsigned int __builtin_crypto_vpermxor (vector unsigned int,
  40859. vector unsigned int,
  40860. vector unsigned int);
  40861. vector unsigned long long __builtin_crypto_vpermxor (vector unsigned long long,
  40862. vector unsigned long long,
  40863. vector unsigned long long);
  40864. vector unsigned char __builtin_crypto_vpmsumb (vector unsigned char,
  40865. vector unsigned char);
  40866. vector unsigned short __builtin_crypto_vpmsumh (vector unsigned short,
  40867. vector unsigned short);
  40868. vector unsigned int __builtin_crypto_vpmsumw (vector unsigned int,
  40869. vector unsigned int);
  40870. vector unsigned long long __builtin_crypto_vpmsumd (vector unsigned long long,
  40871. vector unsigned long long);
  40872. vector unsigned long long __builtin_crypto_vshasigmad (vector unsigned long long,
  40873. int, int);
  40874. vector unsigned int __builtin_crypto_vshasigmaw (vector unsigned int, int, int);
  40875. The second argument to __BUILTIN_CRYPTO_VSHASIGMAD and
  40876. __BUILTIN_CRYPTO_VSHASIGMAW must be a constant integer that is 0 or 1.
  40877. The third argument to these built-in functions must be a constant
  40878. integer in the range of 0 to 15.
  40879. 
  40880. File: gcc.info, Node: PowerPC AltiVec Built-in Functions Available on ISA 3.1, Prev: PowerPC AltiVec Built-in Functions Available on ISA 3.0, Up: PowerPC AltiVec/VSX Built-in Functions
  40881. 6.60.23.5 PowerPC AltiVec Built-in Functions Available on ISA 3.1
  40882. .................................................................
  40883. The following additional built-in functions are also available for the
  40884. PowerPC family of processors, starting with ISA 3.1 ('-mcpu=power10'):
  40885. vector unsigned long long int
  40886. vec_cfuge (vector unsigned long long int, vector unsigned long long int)
  40887. Perform a vector centrifuge operation, as if implemented by the
  40888. 'vcfuged' instruction.
  40889. vector unsigned long long int
  40890. vec_cntlzm (vector unsigned long long int, vector unsigned long long int)
  40891. Perform a vector count leading zeros under bit mask operation, as if
  40892. implemented by the 'vclzdm' instruction.
  40893. vector unsigned long long int
  40894. vec_cnttzm (vector unsigned long long int, vector unsigned long long int)
  40895. Perform a vector count trailing zeros under bit mask operation, as if
  40896. implemented by the 'vctzdm' instruction.
  40897. vector signed char
  40898. vec_clrl (vector signed char a, unsigned int n)
  40899. vector unsigned char
  40900. vec_clrl (vector unsigned char a, unsigned int n)
  40901. Clear the left-most '(16 - n)' bytes of vector argument 'a', as if
  40902. implemented by the 'vclrlb' instruction on a big-endian target and by
  40903. the 'vclrrb' instruction on a little-endian target. A value of 'n' that
  40904. is greater than 16 is treated as if it equaled 16.
  40905. vector signed char
  40906. vec_clrr (vector signed char a, unsigned int n)
  40907. vector unsigned char
  40908. vec_clrr (vector unsigned char a, unsigned int n)
  40909. Clear the right-most '(16 - n)' bytes of vector argument 'a', as if
  40910. implemented by the 'vclrrb' instruction on a big-endian target and by
  40911. the 'vclrlb' instruction on a little-endian target. A value of 'n' that
  40912. is greater than 16 is treated as if it equaled 16.
  40913. vector unsigned long long int
  40914. vec_gnb (vector unsigned __int128, const unsigned char)
  40915. Perform a 128-bit vector gather operation, as if implemented by the
  40916. 'vgnb' instruction. The second argument must be a literal integer value
  40917. between 2 and 7 inclusive.
  40918. Vector Extract
  40919. vector unsigned long long int
  40920. vec_extractl (vector unsigned char, vector unsigned char, unsigned int)
  40921. vector unsigned long long int
  40922. vec_extractl (vector unsigned short, vector unsigned short, unsigned int)
  40923. vector unsigned long long int
  40924. vec_extractl (vector unsigned int, vector unsigned int, unsigned int)
  40925. vector unsigned long long int
  40926. vec_extractl (vector unsigned long long, vector unsigned long long, unsigned int)
  40927. Extract an element from two concatenated vectors starting at the given
  40928. byte index in natural-endian order, and place it zero-extended in
  40929. doubleword 1 of the result according to natural element order. If the
  40930. byte index is out of range for the data type, the intrinsic will be
  40931. rejected. For little-endian, this output will match the placement by
  40932. the hardware instruction, i.e., dword[0] in RTL notation. For
  40933. big-endian, an additional instruction is needed to move it from the
  40934. "left" doubleword to the "right" one. For little-endian, semantics
  40935. matching the 'vextdubvrx', 'vextduhvrx', 'vextduwvrx' instruction will
  40936. be generated, while for big-endian, semantics matching the 'vextdubvlx',
  40937. 'vextduhvlx', 'vextduwvlx' instructions will be generated. Note that
  40938. some fairly anomalous results can be generated if the byte index is not
  40939. aligned on an element boundary for the element being extracted. This is
  40940. a limitation of the bi-endian vector programming model is consistent
  40941. with the limitation on 'vec_perm'.
  40942. vector unsigned long long int
  40943. vec_extracth (vector unsigned char, vector unsigned char, unsigned int)
  40944. vector unsigned long long int
  40945. vec_extracth (vector unsigned short, vector unsigned short,
  40946. unsigned int)
  40947. vector unsigned long long int
  40948. vec_extracth (vector unsigned int, vector unsigned int, unsigned int)
  40949. vector unsigned long long int
  40950. vec_extracth (vector unsigned long long, vector unsigned long long,
  40951. unsigned int)
  40952. Extract an element from two concatenated vectors starting at the given
  40953. byte index. The index is based on big endian order for a little endian
  40954. system. Similarly, the index is based on little endian order for a big
  40955. endian system. The extraced elements are zero-extended and put in
  40956. doubleword 1 according to natural element order. If the byte index is
  40957. out of range for the data type, the intrinsic will be rejected. For
  40958. little-endian, this output will match the placement by the hardware
  40959. instruction (vextdubvrx, vextduhvrx, vextduwvrx, vextddvrx) i.e.,
  40960. dword[0] in RTL notation. For big-endian, an additional instruction is
  40961. needed to move it from the "left" doubleword to the "right" one. For
  40962. little-endian, semantics matching the 'vextdubvlx', 'vextduhvlx',
  40963. 'vextduwvlx' instructions will be generated, while for big-endian,
  40964. semantics matching the 'vextdubvrx', 'vextduhvrx', 'vextduwvrx'
  40965. instructions will be generated. Note that some fairly anomalous results
  40966. can be generated if the byte index is not aligned on the element
  40967. boundary for the element being extracted. This is a limitation of the
  40968. bi-endian vector programming model consistent with the limitation on
  40969. 'vec_perm'.
  40970. vector unsigned long long int
  40971. vec_pdep (vector unsigned long long int, vector unsigned long long int)
  40972. Perform a vector parallel bits deposit operation, as if implemented by
  40973. the 'vpdepd' instruction.
  40974. Vector Insert
  40975. vector unsigned char
  40976. vec_insertl (unsigned char, vector unsigned char, unsigned int);
  40977. vector unsigned short
  40978. vec_insertl (unsigned short, vector unsigned short, unsigned int);
  40979. vector unsigned int
  40980. vec_insertl (unsigned int, vector unsigned int, unsigned int);
  40981. vector unsigned long long
  40982. vec_insertl (unsigned long long, vector unsigned long long,
  40983. unsigned int);
  40984. vector unsigned char
  40985. vec_insertl (vector unsigned char, vector unsigned char, unsigned int;
  40986. vector unsigned short
  40987. vec_insertl (vector unsigned short, vector unsigned short,
  40988. unsigned int);
  40989. vector unsigned int
  40990. vec_insertl (vector unsigned int, vector unsigned int, unsigned int);
  40991. Let src be the first argument, when the first argument is a scalar, or
  40992. the rightmost element of the left doubleword of the first argument, when
  40993. the first argument is a vector. Insert the source into the destination
  40994. at the position given by the third argument, using natural element order
  40995. in the second argument. The rest of the second argument is unchanged.
  40996. If the byte index is greater than 14 for halfwords, greater than 12 for
  40997. words, or greater than 8 for doublewords the result is undefined. For
  40998. little-endian, the generated code will be semantically equivalent to
  40999. 'vins[bhwd]rx' instructions. Similarly for big-endian it will be
  41000. semantically equivalent to 'vins[bhwd]lx'. Note that some fairly
  41001. anomalous results can be generated if the byte index is not aligned on
  41002. an element boundary for the type of element being inserted.
  41003. vector unsigned char
  41004. vec_inserth (unsigned char, vector unsigned char, unsigned int);
  41005. vector unsigned short
  41006. vec_inserth (unsigned short, vector unsigned short, unsigned int);
  41007. vector unsigned int
  41008. vec_inserth (unsigned int, vector unsigned int, unsigned int);
  41009. vector unsigned long long
  41010. vec_inserth (unsigned long long, vector unsigned long long,
  41011. unsigned int);
  41012. vector unsigned char
  41013. vec_inserth (vector unsigned char, vector unsigned char, unsigned int);
  41014. vector unsigned short
  41015. vec_inserth (vector unsigned short, vector unsigned short,
  41016. unsigned int);
  41017. vector unsigned int
  41018. vec_inserth (vector unsigned int, vector unsigned int, unsigned int);
  41019. Let src be the first argument, when the first argument is a scalar, or
  41020. the rightmost element of the first argument, when the first argument is
  41021. a vector. Insert src into the second argument at the position
  41022. identified by the third argument, using opposite element order in the
  41023. second argument, and leaving the rest of the second argument unchanged.
  41024. If the byte index is greater than 14 for halfwords, 12 for words, or 8
  41025. for doublewords, the intrinsic will be rejected. Note that the
  41026. underlying hardware instruction uses the same register for the second
  41027. argument and the result. For little-endian, the code generation will be
  41028. semantically equivalent to 'vins[bhwd]lx', while for big-endian it will
  41029. be semantically equivalent to 'vins[bhwd]rx'. Note that some fairly
  41030. anomalous results can be generated if the byte index is not aligned on
  41031. an element boundary for the sort of element being inserted.
  41032. Vector Replace Element
  41033. vector signed int vec_replace_elt (vector signed int, signed int,
  41034. const int);
  41035. vector unsigned int vec_replace_elt (vector unsigned int,
  41036. unsigned int, const int);
  41037. vector float vec_replace_elt (vector float, float, const int);
  41038. vector signed long long vec_replace_elt (vector signed long long,
  41039. signed long long, const int);
  41040. vector unsigned long long vec_replace_elt (vector unsigned long long,
  41041. unsigned long long, const int);
  41042. vector double rec_replace_elt (vector double, double, const int);
  41043. The third argument (constrained to [0,3]) identifies the natural-endian
  41044. element number of the first argument that will be replaced by the second
  41045. argument to produce the result. The other elements of the first
  41046. argument will remain unchanged in the result.
  41047. If it's desirable to insert a word at an unaligned position, use
  41048. vec_replace_unaligned instead.
  41049. Vector Replace Unaligned
  41050. vector unsigned char vec_replace_unaligned (vector unsigned char,
  41051. signed int, const int);
  41052. vector unsigned char vec_replace_unaligned (vector unsigned char,
  41053. unsigned int, const int);
  41054. vector unsigned char vec_replace_unaligned (vector unsigned char,
  41055. float, const int);
  41056. vector unsigned char vec_replace_unaligned (vector unsigned char,
  41057. signed long long, const int);
  41058. vector unsigned char vec_replace_unaligned (vector unsigned char,
  41059. unsigned long long, const int);
  41060. vector unsigned char vec_replace_unaligned (vector unsigned char,
  41061. double, const int);
  41062. The second argument replaces a portion of the first argument to produce
  41063. the result, with the rest of the first argument unchanged in the result.
  41064. The third argument identifies the byte index (using left-to-right, or
  41065. big-endian order) where the high-order byte of the second argument will
  41066. be placed, with the remaining bytes of the second argument placed
  41067. naturally "to the right" of the high-order byte.
  41068. The programmer is responsible for understanding the endianness issues
  41069. involved with the first argument and the result.
  41070. Vector Shift Left Double Bit Immediate
  41071. vector signed char vec_sldb (vector signed char, vector signed char,
  41072. const unsigned int);
  41073. vector unsigned char vec_sldb (vector unsigned char,
  41074. vector unsigned char, const unsigned int);
  41075. vector signed short vec_sldb (vector signed short, vector signed short,
  41076. const unsigned int);
  41077. vector unsigned short vec_sldb (vector unsigned short,
  41078. vector unsigned short, const unsigned int);
  41079. vector signed int vec_sldb (vector signed int, vector signed int,
  41080. const unsigned int);
  41081. vector unsigned int vec_sldb (vector unsigned int, vector unsigned int,
  41082. const unsigned int);
  41083. vector signed long long vec_sldb (vector signed long long,
  41084. vector signed long long, const unsigned int);
  41085. vector unsigned long long vec_sldb (vector unsigned long long,
  41086. vector unsigned long long, const unsigned int);
  41087. Shift the combined input vectors left by the amount specified by the
  41088. low-order three bits of the third argument, and return the leftmost
  41089. remaining 128 bits. Code using this instruction must be endian-aware.
  41090. Vector Shift Right Double Bit Immediate
  41091. vector signed char vec_srdb (vector signed char, vector signed char,
  41092. const unsigned int);
  41093. vector unsigned char vec_srdb (vector unsigned char, vector unsigned char,
  41094. const unsigned int);
  41095. vector signed short vec_srdb (vector signed short, vector signed short,
  41096. const unsigned int);
  41097. vector unsigned short vec_srdb (vector unsigned short, vector unsigned short,
  41098. const unsigned int);
  41099. vector signed int vec_srdb (vector signed int, vector signed int,
  41100. const unsigned int);
  41101. vector unsigned int vec_srdb (vector unsigned int, vector unsigned int,
  41102. const unsigned int);
  41103. vector signed long long vec_srdb (vector signed long long,
  41104. vector signed long long, const unsigned int);
  41105. vector unsigned long long vec_srdb (vector unsigned long long,
  41106. vector unsigned long long, const unsigned int);
  41107. Shift the combined input vectors right by the amount specified by the
  41108. low-order three bits of the third argument, and return the remaining 128
  41109. bits. Code using this built-in must be endian-aware.
  41110. Vector Splat
  41111. vector signed int vec_splati (const signed int);
  41112. vector float vec_splati (const float);
  41113. Splat a 32-bit immediate into a vector of words.
  41114. vector double vec_splatid (const float);
  41115. Convert a single precision floating-point value to double-precision and
  41116. splat the result to a vector of double-precision floats.
  41117. vector signed int vec_splati_ins (vector signed int,
  41118. const unsigned int, const signed int);
  41119. vector unsigned int vec_splati_ins (vector unsigned int,
  41120. const unsigned int, const unsigned int);
  41121. vector float vec_splati_ins (vector float, const unsigned int,
  41122. const float);
  41123. Argument 2 must be either 0 or 1. Splat the value of argument 3 into
  41124. the word identified by argument 2 of each doubleword of argument 1 and
  41125. return the result. The other words of argument 1 are unchanged.
  41126. Vector Blend Variable
  41127. vector signed char vec_blendv (vector signed char, vector signed char,
  41128. vector unsigned char);
  41129. vector unsigned char vec_blendv (vector unsigned char,
  41130. vector unsigned char, vector unsigned char);
  41131. vector signed short vec_blendv (vector signed short,
  41132. vector signed short, vector unsigned short);
  41133. vector unsigned short vec_blendv (vector unsigned short,
  41134. vector unsigned short, vector unsigned short);
  41135. vector signed int vec_blendv (vector signed int, vector signed int,
  41136. vector unsigned int);
  41137. vector unsigned int vec_blendv (vector unsigned int,
  41138. vector unsigned int, vector unsigned int);
  41139. vector signed long long vec_blendv (vector signed long long,
  41140. vector signed long long, vector unsigned long long);
  41141. vector unsigned long long vec_blendv (vector unsigned long long,
  41142. vector unsigned long long, vector unsigned long long);
  41143. vector float vec_blendv (vector float, vector float,
  41144. vector unsigned int);
  41145. vector double vec_blendv (vector double, vector double,
  41146. vector unsigned long long);
  41147. Blend the first and second argument vectors according to the sign bits
  41148. of the corresponding elements of the third argument vector. This is
  41149. similar to the 'vsel' and 'xxsel' instructions but for bigger elements.
  41150. Vector Permute Extended
  41151. vector signed char vec_permx (vector signed char, vector signed char,
  41152. vector unsigned char, const int);
  41153. vector unsigned char vec_permx (vector unsigned char,
  41154. vector unsigned char, vector unsigned char, const int);
  41155. vector signed short vec_permx (vector signed short,
  41156. vector signed short, vector unsigned char, const int);
  41157. vector unsigned short vec_permx (vector unsigned short,
  41158. vector unsigned short, vector unsigned char, const int);
  41159. vector signed int vec_permx (vector signed int, vector signed int,
  41160. vector unsigned char, const int);
  41161. vector unsigned int vec_permx (vector unsigned int,
  41162. vector unsigned int, vector unsigned char, const int);
  41163. vector signed long long vec_permx (vector signed long long,
  41164. vector signed long long, vector unsigned char, const int);
  41165. vector unsigned long long vec_permx (vector unsigned long long,
  41166. vector unsigned long long, vector unsigned char, const int);
  41167. vector float (vector float, vector float, vector unsigned char,
  41168. const int);
  41169. vector double (vector double, vector double, vector unsigned char,
  41170. const int);
  41171. Perform a partial permute of the first two arguments, which form a
  41172. 32-byte section of an emulated vector up to 256 bytes wide, using the
  41173. partial permute control vector in the third argument. The fourth
  41174. argument (constrained to values of 0-7) identifies which 32-byte section
  41175. of the emulated vector is contained in the first two arguments.
  41176. vector unsigned long long int
  41177. vec_pext (vector unsigned long long int, vector unsigned long long int)
  41178. Perform a vector parallel bit extract operation, as if implemented by
  41179. the 'vpextd' instruction.
  41180. vector unsigned char vec_stril (vector unsigned char)
  41181. vector signed char vec_stril (vector signed char)
  41182. vector unsigned short vec_stril (vector unsigned short)
  41183. vector signed short vec_stril (vector signed short)
  41184. Isolate the left-most non-zero elements of the incoming vector
  41185. argument, replacing all elements to the right of the left-most zero
  41186. element found within the argument with zero. The typical implementation
  41187. uses the 'vstribl' or 'vstrihl' instruction on big-endian targets and
  41188. uses the 'vstribr' or 'vstrihr' instruction on little-endian targets.
  41189. int vec_stril_p (vector unsigned char)
  41190. int vec_stril_p (vector signed char)
  41191. int short vec_stril_p (vector unsigned short)
  41192. int vec_stril_p (vector signed short)
  41193. Return a non-zero value if and only if the argument contains a zero
  41194. element. The typical implementation uses the 'vstribl.' or 'vstrihl.'
  41195. instruction on big-endian targets and uses the 'vstribr.' or 'vstrihr.'
  41196. instruction on little-endian targets. Choose this built-in to check for
  41197. presence of zero element if the same argument is also passed to
  41198. 'vec_stril'.
  41199. vector unsigned char vec_strir (vector unsigned char)
  41200. vector signed char vec_strir (vector signed char)
  41201. vector unsigned short vec_strir (vector unsigned short)
  41202. vector signed short vec_strir (vector signed short)
  41203. Isolate the right-most non-zero elements of the incoming vector
  41204. argument, replacing all elements to the left of the right-most zero
  41205. element found within the argument with zero. The typical implementation
  41206. uses the 'vstribr' or 'vstrihr' instruction on big-endian targets and
  41207. uses the 'vstribl' or 'vstrihl' instruction on little-endian targets.
  41208. int vec_strir_p (vector unsigned char)
  41209. int vec_strir_p (vector signed char)
  41210. int short vec_strir_p (vector unsigned short)
  41211. int vec_strir_p (vector signed short)
  41212. Return a non-zero value if and only if the argument contains a zero
  41213. element. The typical implementation uses the 'vstribr.' or 'vstrihr.'
  41214. instruction on big-endian targets and uses the 'vstribl.' or 'vstrihl.'
  41215. instruction on little-endian targets. Choose this built-in to check for
  41216. presence of zero element if the same argument is also passed to
  41217. 'vec_strir'.
  41218. vector unsigned char
  41219. vec_ternarylogic (vector unsigned char, vector unsigned char,
  41220. vector unsigned char, const unsigned int)
  41221. vector unsigned short
  41222. vec_ternarylogic (vector unsigned short, vector unsigned short,
  41223. vector unsigned short, const unsigned int)
  41224. vector unsigned int
  41225. vec_ternarylogic (vector unsigned int, vector unsigned int,
  41226. vector unsigned int, const unsigned int)
  41227. vector unsigned long long int
  41228. vec_ternarylogic (vector unsigned long long int, vector unsigned long long int,
  41229. vector unsigned long long int, const unsigned int)
  41230. vector unsigned __int128
  41231. vec_ternarylogic (vector unsigned __int128, vector unsigned __int128,
  41232. vector unsigned __int128, const unsigned int)
  41233. Perform a 128-bit vector evaluate operation, as if implemented by the
  41234. 'xxeval' instruction. The fourth argument must be a literal integer
  41235. value between 0 and 255 inclusive.
  41236. vector unsigned char vec_genpcvm (vector unsigned char, const int)
  41237. vector unsigned short vec_genpcvm (vector unsigned short, const int)
  41238. vector unsigned int vec_genpcvm (vector unsigned int, const int)
  41239. vector unsigned int vec_genpcvm (vector unsigned long long int,
  41240. const int)
  41241. Vector Integer Multiply/Divide/Modulo
  41242. vector signed int
  41243. vec_mulh (vector signed int a, vector signed int b)
  41244. vector unsigned int
  41245. vec_mulh (vector unsigned int a, vector unsigned int b)
  41246. For each integer value 'i' from 0 to 3, do the following. The integer
  41247. value in word element 'i' of a is multiplied by the integer value in
  41248. word element 'i' of b. The high-order 32 bits of the 64-bit product are
  41249. placed into word element 'i' of the vector returned.
  41250. vector signed long long
  41251. vec_mulh (vector signed long long a, vector signed long long b)
  41252. vector unsigned long long
  41253. vec_mulh (vector unsigned long long a, vector unsigned long long b)
  41254. For each integer value 'i' from 0 to 1, do the following. The integer
  41255. value in doubleword element 'i' of a is multiplied by the integer value
  41256. in doubleword element 'i' of b. The high-order 64 bits of the 128-bit
  41257. product are placed into doubleword element 'i' of the vector returned.
  41258. vector unsigned long long
  41259. vec_mul (vector unsigned long long a, vector unsigned long long b)
  41260. vector signed long long
  41261. vec_mul (vector signed long long a, vector signed long long b)
  41262. For each integer value 'i' from 0 to 1, do the following. The integer
  41263. value in doubleword element 'i' of a is multiplied by the integer value
  41264. in doubleword element 'i' of b. The low-order 64 bits of the 128-bit
  41265. product are placed into doubleword element 'i' of the vector returned.
  41266. vector signed int
  41267. vec_div (vector signed int a, vector signed int b)
  41268. vector unsigned int
  41269. vec_div (vector unsigned int a, vector unsigned int b)
  41270. For each integer value 'i' from 0 to 3, do the following. The integer
  41271. in word element 'i' of a is divided by the integer in word element 'i'
  41272. of b. The unique integer quotient is placed into the word element 'i'
  41273. of the vector returned. If an attempt is made to perform any of the
  41274. divisions <anything> ÷ 0 then the quotient is undefined.
  41275. vector signed long long
  41276. vec_div (vector signed long long a, vector signed long long b)
  41277. vector unsigned long long
  41278. vec_div (vector unsigned long long a, vector unsigned long long b)
  41279. For each integer value 'i' from 0 to 1, do the following. The integer
  41280. in doubleword element 'i' of a is divided by the integer in doubleword
  41281. element 'i' of b. The unique integer quotient is placed into the
  41282. doubleword element 'i' of the vector returned. If an attempt is made to
  41283. perform any of the divisions 0x8000_0000_0000_0000 ÷ -1 or <anything> ÷
  41284. 0 then the quotient is undefined.
  41285. vector signed int
  41286. vec_dive (vector signed int a, vector signed int b)
  41287. vector unsigned int
  41288. vec_dive (vector unsigned int a, vector unsigned int b)
  41289. For each integer value 'i' from 0 to 3, do the following. The integer
  41290. in word element 'i' of a is shifted left by 32 bits, then divided by the
  41291. integer in word element 'i' of b. The unique integer quotient is placed
  41292. into the word element 'i' of the vector returned. If the quotient
  41293. cannot be represented in 32 bits, or if an attempt is made to perform
  41294. any of the divisions <anything> ÷ 0 then the quotient is undefined.
  41295. vector signed long long
  41296. vec_dive (vector signed long long a, vector signed long long b)
  41297. vector unsigned long long
  41298. vec_dive (vector unsigned long long a, vector unsigned long long b)
  41299. For each integer value 'i' from 0 to 1, do the following. The integer
  41300. in doubleword element 'i' of a is shifted left by 64 bits, then divided
  41301. by the integer in doubleword element 'i' of b. The unique integer
  41302. quotient is placed into the doubleword element 'i' of the vector
  41303. returned. If the quotient cannot be represented in 64 bits, or if an
  41304. attempt is made to perform <anything> ÷ 0 then the quotient is
  41305. undefined.
  41306. vector signed int
  41307. vec_mod (vector signed int a, vector signed int b)
  41308. vector unsigned int
  41309. vec_mod (vector unsigned int a, vector unsigned int b)
  41310. For each integer value 'i' from 0 to 3, do the following. The integer
  41311. in word element 'i' of a is divided by the integer in word element 'i'
  41312. of b. The unique integer remainder is placed into the word element 'i'
  41313. of the vector returned. If an attempt is made to perform any of the
  41314. divisions 0x8000_0000 ÷ -1 or <anything> ÷ 0 then the remainder is
  41315. undefined.
  41316. vector signed long long
  41317. vec_mod (vector signed long long a, vector signed long long b)
  41318. vector unsigned long long
  41319. vec_mod (vector unsigned long long a, vector unsigned long long b)
  41320. For each integer value 'i' from 0 to 1, do the following. The integer
  41321. in doubleword element 'i' of a is divided by the integer in doubleword
  41322. element 'i' of b. The unique integer remainder is placed into the
  41323. doubleword element 'i' of the vector returned. If an attempt is made to
  41324. perform <anything> ÷ 0 then the remainder is undefined.
  41325. Generate PCV from specified Mask size, as if implemented by the
  41326. 'xxgenpcvbm', 'xxgenpcvhm', 'xxgenpcvwm' instructions, where immediate
  41327. value is either 0, 1, 2 or 3.
  41328. 
  41329. 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
  41330. 6.60.24 PowerPC Hardware Transactional Memory Built-in Functions
  41331. ----------------------------------------------------------------
  41332. GCC provides two interfaces for accessing the Hardware Transactional
  41333. Memory (HTM) instructions available on some of the PowerPC family of
  41334. processors (eg, POWER8). The two interfaces come in a low level
  41335. interface, consisting of built-in functions specific to PowerPC and a
  41336. higher level interface consisting of inline functions that are common
  41337. between PowerPC and S/390.
  41338. 6.60.24.1 PowerPC HTM Low Level Built-in Functions
  41339. ..................................................
  41340. The following low level built-in functions are available with '-mhtm' or
  41341. '-mcpu=CPU' where CPU is 'power8' or later. They all generate the
  41342. machine instruction that is part of the name.
  41343. The HTM builtins (with the exception of '__builtin_tbegin') return the
  41344. full 4-bit condition register value set by their associated hardware
  41345. instruction. The header file 'htmintrin.h' defines some macros that can
  41346. be used to decipher the return value. The '__builtin_tbegin' builtin
  41347. returns a simple 'true' or 'false' value depending on whether a
  41348. transaction was successfully started or not. The arguments of the
  41349. builtins match exactly the type and order of the associated hardware
  41350. instruction's operands, except for the '__builtin_tcheck' builtin, which
  41351. does not take any input arguments. Refer to the ISA manual for a
  41352. description of each instruction's operands.
  41353. unsigned int __builtin_tbegin (unsigned int)
  41354. unsigned int __builtin_tend (unsigned int)
  41355. unsigned int __builtin_tabort (unsigned int)
  41356. unsigned int __builtin_tabortdc (unsigned int, unsigned int, unsigned int)
  41357. unsigned int __builtin_tabortdci (unsigned int, unsigned int, int)
  41358. unsigned int __builtin_tabortwc (unsigned int, unsigned int, unsigned int)
  41359. unsigned int __builtin_tabortwci (unsigned int, unsigned int, int)
  41360. unsigned int __builtin_tcheck (void)
  41361. unsigned int __builtin_treclaim (unsigned int)
  41362. unsigned int __builtin_trechkpt (void)
  41363. unsigned int __builtin_tsr (unsigned int)
  41364. In addition to the above HTM built-ins, we have added built-ins for
  41365. some common extended mnemonics of the HTM instructions:
  41366. unsigned int __builtin_tendall (void)
  41367. unsigned int __builtin_tresume (void)
  41368. unsigned int __builtin_tsuspend (void)
  41369. Note that the semantics of the above HTM builtins are required to mimic
  41370. the locking semantics used for critical sections. Builtins that are
  41371. used to create a new transaction or restart a suspended transaction must
  41372. have lock acquisition like semantics while those builtins that end or
  41373. suspend a transaction must have lock release like semantics.
  41374. Specifically, this must mimic lock semantics as specified by C++11, for
  41375. example: Lock acquisition is as-if an execution of
  41376. __atomic_exchange_n(&globallock,1,__ATOMIC_ACQUIRE) that returns 0, and
  41377. lock release is as-if an execution of
  41378. __atomic_store(&globallock,0,__ATOMIC_RELEASE), with globallock being an
  41379. implicit implementation-defined lock used for all transactions. The HTM
  41380. instructions associated with with the builtins inherently provide the
  41381. correct acquisition and release hardware barriers required. However,
  41382. the compiler must also be prohibited from moving loads and stores across
  41383. the builtins in a way that would violate their semantics. This has been
  41384. accomplished by adding memory barriers to the associated HTM
  41385. instructions (which is a conservative approach to provide acquire and
  41386. release semantics). Earlier versions of the compiler did not treat the
  41387. HTM instructions as memory barriers. A '__TM_FENCE__' macro has been
  41388. added, which can be used to determine whether the current compiler
  41389. treats HTM instructions as memory barriers or not. This allows the user
  41390. to explicitly add memory barriers to their code when using an older
  41391. version of the compiler.
  41392. The following set of built-in functions are available to gain access to
  41393. the HTM specific special purpose registers.
  41394. unsigned long __builtin_get_texasr (void)
  41395. unsigned long __builtin_get_texasru (void)
  41396. unsigned long __builtin_get_tfhar (void)
  41397. unsigned long __builtin_get_tfiar (void)
  41398. void __builtin_set_texasr (unsigned long);
  41399. void __builtin_set_texasru (unsigned long);
  41400. void __builtin_set_tfhar (unsigned long);
  41401. void __builtin_set_tfiar (unsigned long);
  41402. Example usage of these low level built-in functions may look like:
  41403. #include <htmintrin.h>
  41404. int num_retries = 10;
  41405. while (1)
  41406. {
  41407. if (__builtin_tbegin (0))
  41408. {
  41409. /* Transaction State Initiated. */
  41410. if (is_locked (lock))
  41411. __builtin_tabort (0);
  41412. ... transaction code...
  41413. __builtin_tend (0);
  41414. break;
  41415. }
  41416. else
  41417. {
  41418. /* Transaction State Failed. Use locks if the transaction
  41419. failure is "persistent" or we've tried too many times. */
  41420. if (num_retries-- <= 0
  41421. || _TEXASRU_FAILURE_PERSISTENT (__builtin_get_texasru ()))
  41422. {
  41423. acquire_lock (lock);
  41424. ... non transactional fallback path...
  41425. release_lock (lock);
  41426. break;
  41427. }
  41428. }
  41429. }
  41430. One final built-in function has been added that returns the value of
  41431. the 2-bit Transaction State field of the Machine Status Register (MSR)
  41432. as stored in 'CR0'.
  41433. unsigned long __builtin_ttest (void)
  41434. This built-in can be used to determine the current transaction state
  41435. using the following code example:
  41436. #include <htmintrin.h>
  41437. unsigned char tx_state = _HTM_STATE (__builtin_ttest ());
  41438. if (tx_state == _HTM_TRANSACTIONAL)
  41439. {
  41440. /* Code to use in transactional state. */
  41441. }
  41442. else if (tx_state == _HTM_NONTRANSACTIONAL)
  41443. {
  41444. /* Code to use in non-transactional state. */
  41445. }
  41446. else if (tx_state == _HTM_SUSPENDED)
  41447. {
  41448. /* Code to use in transaction suspended state. */
  41449. }
  41450. 6.60.24.2 PowerPC HTM High Level Inline Functions
  41451. .................................................
  41452. The following high level HTM interface is made available by including
  41453. '<htmxlintrin.h>' and using '-mhtm' or '-mcpu=CPU' where CPU is 'power8'
  41454. or later. This interface is common between PowerPC and S/390, allowing
  41455. users to write one HTM source implementation that can be compiled and
  41456. executed on either system.
  41457. long __TM_simple_begin (void)
  41458. long __TM_begin (void* const TM_buff)
  41459. long __TM_end (void)
  41460. void __TM_abort (void)
  41461. void __TM_named_abort (unsigned char const code)
  41462. void __TM_resume (void)
  41463. void __TM_suspend (void)
  41464. long __TM_is_user_abort (void* const TM_buff)
  41465. long __TM_is_named_user_abort (void* const TM_buff, unsigned char *code)
  41466. long __TM_is_illegal (void* const TM_buff)
  41467. long __TM_is_footprint_exceeded (void* const TM_buff)
  41468. long __TM_nesting_depth (void* const TM_buff)
  41469. long __TM_is_nested_too_deep(void* const TM_buff)
  41470. long __TM_is_conflict(void* const TM_buff)
  41471. long __TM_is_failure_persistent(void* const TM_buff)
  41472. long __TM_failure_address(void* const TM_buff)
  41473. long long __TM_failure_code(void* const TM_buff)
  41474. Using these common set of HTM inline functions, we can create a more
  41475. portable version of the HTM example in the previous section that will
  41476. work on either PowerPC or S/390:
  41477. #include <htmxlintrin.h>
  41478. int num_retries = 10;
  41479. TM_buff_type TM_buff;
  41480. while (1)
  41481. {
  41482. if (__TM_begin (TM_buff) == _HTM_TBEGIN_STARTED)
  41483. {
  41484. /* Transaction State Initiated. */
  41485. if (is_locked (lock))
  41486. __TM_abort ();
  41487. ... transaction code...
  41488. __TM_end ();
  41489. break;
  41490. }
  41491. else
  41492. {
  41493. /* Transaction State Failed. Use locks if the transaction
  41494. failure is "persistent" or we've tried too many times. */
  41495. if (num_retries-- <= 0
  41496. || __TM_is_failure_persistent (TM_buff))
  41497. {
  41498. acquire_lock (lock);
  41499. ... non transactional fallback path...
  41500. release_lock (lock);
  41501. break;
  41502. }
  41503. }
  41504. }
  41505. 
  41506. File: gcc.info, Node: PowerPC Atomic Memory Operation Functions, Next: PowerPC Matrix-Multiply Assist Built-in Functions, Prev: PowerPC Hardware Transactional Memory Built-in Functions, Up: Target Builtins
  41507. 6.60.25 PowerPC Atomic Memory Operation Functions
  41508. -------------------------------------------------
  41509. ISA 3.0 of the PowerPC added new atomic memory operation (amo)
  41510. instructions. GCC provides support for these instructions in 64-bit
  41511. environments. All of the functions are declared in the include file
  41512. 'amo.h'.
  41513. The functions supported are:
  41514. #include <amo.h>
  41515. uint32_t amo_lwat_add (uint32_t *, uint32_t);
  41516. uint32_t amo_lwat_xor (uint32_t *, uint32_t);
  41517. uint32_t amo_lwat_ior (uint32_t *, uint32_t);
  41518. uint32_t amo_lwat_and (uint32_t *, uint32_t);
  41519. uint32_t amo_lwat_umax (uint32_t *, uint32_t);
  41520. uint32_t amo_lwat_umin (uint32_t *, uint32_t);
  41521. uint32_t amo_lwat_swap (uint32_t *, uint32_t);
  41522. int32_t amo_lwat_sadd (int32_t *, int32_t);
  41523. int32_t amo_lwat_smax (int32_t *, int32_t);
  41524. int32_t amo_lwat_smin (int32_t *, int32_t);
  41525. int32_t amo_lwat_sswap (int32_t *, int32_t);
  41526. uint64_t amo_ldat_add (uint64_t *, uint64_t);
  41527. uint64_t amo_ldat_xor (uint64_t *, uint64_t);
  41528. uint64_t amo_ldat_ior (uint64_t *, uint64_t);
  41529. uint64_t amo_ldat_and (uint64_t *, uint64_t);
  41530. uint64_t amo_ldat_umax (uint64_t *, uint64_t);
  41531. uint64_t amo_ldat_umin (uint64_t *, uint64_t);
  41532. uint64_t amo_ldat_swap (uint64_t *, uint64_t);
  41533. int64_t amo_ldat_sadd (int64_t *, int64_t);
  41534. int64_t amo_ldat_smax (int64_t *, int64_t);
  41535. int64_t amo_ldat_smin (int64_t *, int64_t);
  41536. int64_t amo_ldat_sswap (int64_t *, int64_t);
  41537. void amo_stwat_add (uint32_t *, uint32_t);
  41538. void amo_stwat_xor (uint32_t *, uint32_t);
  41539. void amo_stwat_ior (uint32_t *, uint32_t);
  41540. void amo_stwat_and (uint32_t *, uint32_t);
  41541. void amo_stwat_umax (uint32_t *, uint32_t);
  41542. void amo_stwat_umin (uint32_t *, uint32_t);
  41543. void amo_stwat_sadd (int32_t *, int32_t);
  41544. void amo_stwat_smax (int32_t *, int32_t);
  41545. void amo_stwat_smin (int32_t *, int32_t);
  41546. void amo_stdat_add (uint64_t *, uint64_t);
  41547. void amo_stdat_xor (uint64_t *, uint64_t);
  41548. void amo_stdat_ior (uint64_t *, uint64_t);
  41549. void amo_stdat_and (uint64_t *, uint64_t);
  41550. void amo_stdat_umax (uint64_t *, uint64_t);
  41551. void amo_stdat_umin (uint64_t *, uint64_t);
  41552. void amo_stdat_sadd (int64_t *, int64_t);
  41553. void amo_stdat_smax (int64_t *, int64_t);
  41554. void amo_stdat_smin (int64_t *, int64_t);
  41555. 
  41556. File: gcc.info, Node: PowerPC Matrix-Multiply Assist Built-in Functions, Next: PRU Built-in Functions, Prev: PowerPC Atomic Memory Operation Functions, Up: Target Builtins
  41557. 6.60.26 PowerPC Matrix-Multiply Assist Built-in Functions
  41558. ---------------------------------------------------------
  41559. ISA 3.1 of the PowerPC added new Matrix-Multiply Assist (MMA)
  41560. instructions. GCC provides support for these instructions through the
  41561. following built-in functions which are enabled with the '-mmma' option.
  41562. The vec_t type below is defined to be a normal vector unsigned char
  41563. type. The uint2, uint4 and uint8 parameters are 2-bit, 4-bit and 8-bit
  41564. unsigned integer constants respectively. The compiler will verify that
  41565. they are constants and that their values are within range.
  41566. The built-in functions supported are:
  41567. void __builtin_mma_xvi4ger8 (__vector_quad *, vec_t, vec_t);
  41568. void __builtin_mma_xvi8ger4 (__vector_quad *, vec_t, vec_t);
  41569. void __builtin_mma_xvi16ger2 (__vector_quad *, vec_t, vec_t);
  41570. void __builtin_mma_xvi16ger2s (__vector_quad *, vec_t, vec_t);
  41571. void __builtin_mma_xvf16ger2 (__vector_quad *, vec_t, vec_t);
  41572. void __builtin_mma_xvbf16ger2 (__vector_quad *, vec_t, vec_t);
  41573. void __builtin_mma_xvf32ger (__vector_quad *, vec_t, vec_t);
  41574. void __builtin_mma_xvi4ger8pp (__vector_quad *, vec_t, vec_t);
  41575. void __builtin_mma_xvi8ger4pp (__vector_quad *, vec_t, vec_t);
  41576. void __builtin_mma_xvi8ger4spp(__vector_quad *, vec_t, vec_t);
  41577. void __builtin_mma_xvi16ger2pp (__vector_quad *, vec_t, vec_t);
  41578. void __builtin_mma_xvi16ger2spp (__vector_quad *, vec_t, vec_t);
  41579. void __builtin_mma_xvf16ger2pp (__vector_quad *, vec_t, vec_t);
  41580. void __builtin_mma_xvf16ger2pn (__vector_quad *, vec_t, vec_t);
  41581. void __builtin_mma_xvf16ger2np (__vector_quad *, vec_t, vec_t);
  41582. void __builtin_mma_xvf16ger2nn (__vector_quad *, vec_t, vec_t);
  41583. void __builtin_mma_xvbf16ger2pp (__vector_quad *, vec_t, vec_t);
  41584. void __builtin_mma_xvbf16ger2pn (__vector_quad *, vec_t, vec_t);
  41585. void __builtin_mma_xvbf16ger2np (__vector_quad *, vec_t, vec_t);
  41586. void __builtin_mma_xvbf16ger2nn (__vector_quad *, vec_t, vec_t);
  41587. void __builtin_mma_xvf32gerpp (__vector_quad *, vec_t, vec_t);
  41588. void __builtin_mma_xvf32gerpn (__vector_quad *, vec_t, vec_t);
  41589. void __builtin_mma_xvf32gernp (__vector_quad *, vec_t, vec_t);
  41590. void __builtin_mma_xvf32gernn (__vector_quad *, vec_t, vec_t);
  41591. void __builtin_mma_pmxvi4ger8 (__vector_quad *, vec_t, vec_t, uint4, uint4, uint8);
  41592. void __builtin_mma_pmxvi4ger8pp (__vector_quad *, vec_t, vec_t, uint4, uint4, uint8);
  41593. void __builtin_mma_pmxvi8ger4 (__vector_quad *, vec_t, vec_t, uint4, uint4, uint4);
  41594. void __builtin_mma_pmxvi8ger4pp (__vector_quad *, vec_t, vec_t, uint4, uint4, uint4);
  41595. void __builtin_mma_pmxvi8ger4spp(__vector_quad *, vec_t, vec_t, uint4, uint4, uint4);
  41596. void __builtin_mma_pmxvi16ger2 (__vector_quad *, vec_t, vec_t, uint4, uint4, uint2);
  41597. void __builtin_mma_pmxvi16ger2s (__vector_quad *, vec_t, vec_t, uint4, uint4, uint2);
  41598. void __builtin_mma_pmxvf16ger2 (__vector_quad *, vec_t, vec_t, uint4, uint4, uint2);
  41599. void __builtin_mma_pmxvbf16ger2 (__vector_quad *, vec_t, vec_t, uint4, uint4, uint2);
  41600. void __builtin_mma_pmxvi16ger2pp (__vector_quad *, vec_t, vec_t, uint4, uint4, uint2);
  41601. void __builtin_mma_pmxvi16ger2spp (__vector_quad *, vec_t, vec_t, uint4, uint4, uint2);
  41602. void __builtin_mma_pmxvf16ger2pp (__vector_quad *, vec_t, vec_t, uint4, uint4, uint2);
  41603. void __builtin_mma_pmxvf16ger2pn (__vector_quad *, vec_t, vec_t, uint4, uint4, uint2);
  41604. void __builtin_mma_pmxvf16ger2np (__vector_quad *, vec_t, vec_t, uint4, uint4, uint2);
  41605. void __builtin_mma_pmxvf16ger2nn (__vector_quad *, vec_t, vec_t, uint4, uint4, uint2);
  41606. void __builtin_mma_pmxvbf16ger2pp (__vector_quad *, vec_t, vec_t, uint4, uint4, uint2);
  41607. void __builtin_mma_pmxvbf16ger2pn (__vector_quad *, vec_t, vec_t, uint4, uint4, uint2);
  41608. void __builtin_mma_pmxvbf16ger2np (__vector_quad *, vec_t, vec_t, uint4, uint4, uint2);
  41609. void __builtin_mma_pmxvbf16ger2nn (__vector_quad *, vec_t, vec_t, uint4, uint4, uint2);
  41610. void __builtin_mma_pmxvf32ger (__vector_quad *, vec_t, vec_t, uint4, uint4);
  41611. void __builtin_mma_pmxvf32gerpp (__vector_quad *, vec_t, vec_t, uint4, uint4);
  41612. void __builtin_mma_pmxvf32gerpn (__vector_quad *, vec_t, vec_t, uint4, uint4);
  41613. void __builtin_mma_pmxvf32gernp (__vector_quad *, vec_t, vec_t, uint4, uint4);
  41614. void __builtin_mma_pmxvf32gernn (__vector_quad *, vec_t, vec_t, uint4, uint4);
  41615. void __builtin_mma_xvf64ger (__vector_quad *, __vector_pair, vec_t);
  41616. void __builtin_mma_xvf64gerpp (__vector_quad *, __vector_pair, vec_t);
  41617. void __builtin_mma_xvf64gerpn (__vector_quad *, __vector_pair, vec_t);
  41618. void __builtin_mma_xvf64gernp (__vector_quad *, __vector_pair, vec_t);
  41619. void __builtin_mma_xvf64gernn (__vector_quad *, __vector_pair, vec_t);
  41620. void __builtin_mma_pmxvf64ger (__vector_quad *, __vector_pair, vec_t, uint4, uint2);
  41621. void __builtin_mma_pmxvf64gerpp (__vector_quad *, __vector_pair, vec_t, uint4, uint2);
  41622. void __builtin_mma_pmxvf64gerpn (__vector_quad *, __vector_pair, vec_t, uint4, uint2);
  41623. void __builtin_mma_pmxvf64gernp (__vector_quad *, __vector_pair, vec_t, uint4, uint2);
  41624. void __builtin_mma_pmxvf64gernn (__vector_quad *, __vector_pair, vec_t, uint4, uint2);
  41625. void __builtin_mma_xxmtacc (__vector_quad *);
  41626. void __builtin_mma_xxmfacc (__vector_quad *);
  41627. void __builtin_mma_xxsetaccz (__vector_quad *);
  41628. void __builtin_mma_assemble_acc (__vector_quad *, vec_t, vec_t, vec_t, vec_t);
  41629. void __builtin_mma_disassemble_acc (void *, __vector_quad *);
  41630. void __builtin_vsx_assemble_pair (__vector_pair *, vec_t, vec_t);
  41631. void __builtin_vsx_disassemble_pair (void *, __vector_pair *);
  41632. vec_t __builtin_vsx_xvcvspbf16 (vec_t);
  41633. vec_t __builtin_vsx_xvcvbf16spn (vec_t);
  41634. 
  41635. File: gcc.info, Node: PRU Built-in Functions, Next: RISC-V Built-in Functions, Prev: PowerPC Matrix-Multiply Assist Built-in Functions, Up: Target Builtins
  41636. 6.60.27 PRU Built-in Functions
  41637. ------------------------------
  41638. GCC provides a couple of special builtin functions to aid in utilizing
  41639. special PRU instructions.
  41640. The built-in functions supported are:
  41641. '__delay_cycles (long long CYCLES)'
  41642. This inserts an instruction sequence that takes exactly CYCLES
  41643. cycles (between 0 and 0xffffffff) to complete. The inserted
  41644. sequence may use jumps, loops, or no-ops, and does not interfere
  41645. with any other instructions. Note that CYCLES must be a
  41646. compile-time constant integer - that is, you must pass a number,
  41647. not a variable that may be optimized to a constant later. The
  41648. number of cycles delayed by this builtin is exact.
  41649. '__halt (void)'
  41650. This inserts a HALT instruction to stop processor execution.
  41651. 'unsigned int __lmbd (unsigned int WORDVAL, unsigned int BITVAL)'
  41652. This inserts LMBD instruction to calculate the left-most bit with
  41653. value BITVAL in value WORDVAL. Only the least significant bit of
  41654. BITVAL is taken into account.
  41655. 
  41656. File: gcc.info, Node: RISC-V Built-in Functions, Next: RX Built-in Functions, Prev: PRU Built-in Functions, Up: Target Builtins
  41657. 6.60.28 RISC-V Built-in Functions
  41658. ---------------------------------
  41659. These built-in functions are available for the RISC-V family of
  41660. processors.
  41661. -- Built-in Function: void * __builtin_thread_pointer (void)
  41662. Returns the value that is currently set in the 'tp' register.
  41663. 
  41664. File: gcc.info, Node: RX Built-in Functions, Next: S/390 System z Built-in Functions, Prev: RISC-V Built-in Functions, Up: Target Builtins
  41665. 6.60.29 RX Built-in Functions
  41666. -----------------------------
  41667. GCC supports some of the RX instructions which cannot be expressed in
  41668. the C programming language via the use of built-in functions. The
  41669. following functions are supported:
  41670. -- Built-in Function: void __builtin_rx_brk (void)
  41671. Generates the 'brk' machine instruction.
  41672. -- Built-in Function: void __builtin_rx_clrpsw (int)
  41673. Generates the 'clrpsw' machine instruction to clear the specified
  41674. bit in the processor status word.
  41675. -- Built-in Function: void __builtin_rx_int (int)
  41676. Generates the 'int' machine instruction to generate an interrupt
  41677. with the specified value.
  41678. -- Built-in Function: void __builtin_rx_machi (int, int)
  41679. Generates the 'machi' machine instruction to add the result of
  41680. multiplying the top 16 bits of the two arguments into the
  41681. accumulator.
  41682. -- Built-in Function: void __builtin_rx_maclo (int, int)
  41683. Generates the 'maclo' machine instruction to add the result of
  41684. multiplying the bottom 16 bits of the two arguments into the
  41685. accumulator.
  41686. -- Built-in Function: void __builtin_rx_mulhi (int, int)
  41687. Generates the 'mulhi' machine instruction to place the result of
  41688. multiplying the top 16 bits of the two arguments into the
  41689. accumulator.
  41690. -- Built-in Function: void __builtin_rx_mullo (int, int)
  41691. Generates the 'mullo' machine instruction to place the result of
  41692. multiplying the bottom 16 bits of the two arguments into the
  41693. accumulator.
  41694. -- Built-in Function: int __builtin_rx_mvfachi (void)
  41695. Generates the 'mvfachi' machine instruction to read the top 32 bits
  41696. of the accumulator.
  41697. -- Built-in Function: int __builtin_rx_mvfacmi (void)
  41698. Generates the 'mvfacmi' machine instruction to read the middle 32
  41699. bits of the accumulator.
  41700. -- Built-in Function: int __builtin_rx_mvfc (int)
  41701. Generates the 'mvfc' machine instruction which reads the control
  41702. register specified in its argument and returns its value.
  41703. -- Built-in Function: void __builtin_rx_mvtachi (int)
  41704. Generates the 'mvtachi' machine instruction to set the top 32 bits
  41705. of the accumulator.
  41706. -- Built-in Function: void __builtin_rx_mvtaclo (int)
  41707. Generates the 'mvtaclo' machine instruction to set the bottom 32
  41708. bits of the accumulator.
  41709. -- Built-in Function: void __builtin_rx_mvtc (int reg, int val)
  41710. Generates the 'mvtc' machine instruction which sets control
  41711. register number 'reg' to 'val'.
  41712. -- Built-in Function: void __builtin_rx_mvtipl (int)
  41713. Generates the 'mvtipl' machine instruction set the interrupt
  41714. priority level.
  41715. -- Built-in Function: void __builtin_rx_racw (int)
  41716. Generates the 'racw' machine instruction to round the accumulator
  41717. according to the specified mode.
  41718. -- Built-in Function: int __builtin_rx_revw (int)
  41719. Generates the 'revw' machine instruction which swaps the bytes in
  41720. the argument so that bits 0-7 now occupy bits 8-15 and vice versa,
  41721. and also bits 16-23 occupy bits 24-31 and vice versa.
  41722. -- Built-in Function: void __builtin_rx_rmpa (void)
  41723. Generates the 'rmpa' machine instruction which initiates a repeated
  41724. multiply and accumulate sequence.
  41725. -- Built-in Function: void __builtin_rx_round (float)
  41726. Generates the 'round' machine instruction which returns the
  41727. floating-point argument rounded according to the current rounding
  41728. mode set in the floating-point status word register.
  41729. -- Built-in Function: int __builtin_rx_sat (int)
  41730. Generates the 'sat' machine instruction which returns the saturated
  41731. value of the argument.
  41732. -- Built-in Function: void __builtin_rx_setpsw (int)
  41733. Generates the 'setpsw' machine instruction to set the specified bit
  41734. in the processor status word.
  41735. -- Built-in Function: void __builtin_rx_wait (void)
  41736. Generates the 'wait' machine instruction.
  41737. 
  41738. File: gcc.info, Node: S/390 System z Built-in Functions, Next: SH Built-in Functions, Prev: RX Built-in Functions, Up: Target Builtins
  41739. 6.60.30 S/390 System z Built-in Functions
  41740. -----------------------------------------
  41741. -- Built-in Function: int __builtin_tbegin (void*)
  41742. Generates the 'tbegin' machine instruction starting a
  41743. non-constrained hardware transaction. If the parameter is non-NULL
  41744. the memory area is used to store the transaction diagnostic buffer
  41745. and will be passed as first operand to 'tbegin'. This buffer can
  41746. be defined using the 'struct __htm_tdb' C struct defined in
  41747. 'htmintrin.h' and must reside on a double-word boundary. The
  41748. second tbegin operand is set to '0xff0c'. This enables
  41749. save/restore of all GPRs and disables aborts for FPR and AR
  41750. manipulations inside the transaction body. The condition code set
  41751. by the tbegin instruction is returned as integer value. The tbegin
  41752. instruction by definition overwrites the content of all FPRs. The
  41753. compiler will generate code which saves and restores the FPRs. For
  41754. soft-float code it is recommended to used the '*_nofloat' variant.
  41755. In order to prevent a TDB from being written it is required to pass
  41756. a constant zero value as parameter. Passing a zero value through a
  41757. variable is not sufficient. Although modifications of access
  41758. registers inside the transaction will not trigger an transaction
  41759. abort it is not supported to actually modify them. Access
  41760. registers do not get saved when entering a transaction. They will
  41761. have undefined state when reaching the abort code.
  41762. Macros for the possible return codes of tbegin are defined in the
  41763. 'htmintrin.h' header file:
  41764. '_HTM_TBEGIN_STARTED'
  41765. 'tbegin' has been executed as part of normal processing. The
  41766. transaction body is supposed to be executed.
  41767. '_HTM_TBEGIN_INDETERMINATE'
  41768. The transaction was aborted due to an indeterminate condition which
  41769. might be persistent.
  41770. '_HTM_TBEGIN_TRANSIENT'
  41771. The transaction aborted due to a transient failure. The
  41772. transaction should be re-executed in that case.
  41773. '_HTM_TBEGIN_PERSISTENT'
  41774. The transaction aborted due to a persistent failure. Re-execution
  41775. under same circumstances will not be productive.
  41776. -- Macro: _HTM_FIRST_USER_ABORT_CODE
  41777. The '_HTM_FIRST_USER_ABORT_CODE' defined in 'htmintrin.h' specifies
  41778. the first abort code which can be used for '__builtin_tabort'.
  41779. Values below this threshold are reserved for machine use.
  41780. -- Data type: struct __htm_tdb
  41781. The 'struct __htm_tdb' defined in 'htmintrin.h' describes the
  41782. structure of the transaction diagnostic block as specified in the
  41783. Principles of Operation manual chapter 5-91.
  41784. -- Built-in Function: int __builtin_tbegin_nofloat (void*)
  41785. Same as '__builtin_tbegin' but without FPR saves and restores.
  41786. Using this variant in code making use of FPRs will leave the FPRs
  41787. in undefined state when entering the transaction abort handler
  41788. code.
  41789. -- Built-in Function: int __builtin_tbegin_retry (void*, int)
  41790. In addition to '__builtin_tbegin' a loop for transient failures is
  41791. generated. If tbegin returns a condition code of 2 the transaction
  41792. will be retried as often as specified in the second argument. The
  41793. perform processor assist instruction is used to tell the CPU about
  41794. the number of fails so far.
  41795. -- Built-in Function: int __builtin_tbegin_retry_nofloat (void*, int)
  41796. Same as '__builtin_tbegin_retry' but without FPR saves and
  41797. restores. Using this variant in code making use of FPRs will leave
  41798. the FPRs in undefined state when entering the transaction abort
  41799. handler code.
  41800. -- Built-in Function: void __builtin_tbeginc (void)
  41801. Generates the 'tbeginc' machine instruction starting a constrained
  41802. hardware transaction. The second operand is set to '0xff08'.
  41803. -- Built-in Function: int __builtin_tend (void)
  41804. Generates the 'tend' machine instruction finishing a transaction
  41805. and making the changes visible to other threads. The condition
  41806. code generated by tend is returned as integer value.
  41807. -- Built-in Function: void __builtin_tabort (int)
  41808. Generates the 'tabort' machine instruction with the specified abort
  41809. code. Abort codes from 0 through 255 are reserved and will result
  41810. in an error message.
  41811. -- Built-in Function: void __builtin_tx_assist (int)
  41812. Generates the 'ppa rX,rY,1' machine instruction. Where the integer
  41813. parameter is loaded into rX and a value of zero is loaded into rY.
  41814. The integer parameter specifies the number of times the transaction
  41815. repeatedly aborted.
  41816. -- Built-in Function: int __builtin_tx_nesting_depth (void)
  41817. Generates the 'etnd' machine instruction. The current nesting
  41818. depth is returned as integer value. For a nesting depth of 0 the
  41819. code is not executed as part of an transaction.
  41820. -- Built-in Function: void __builtin_non_tx_store (uint64_t *,
  41821. uint64_t)
  41822. Generates the 'ntstg' machine instruction. The second argument is
  41823. written to the first arguments location. The store operation will
  41824. not be rolled-back in case of an transaction abort.
  41825. 
  41826. 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
  41827. 6.60.31 SH Built-in Functions
  41828. -----------------------------
  41829. The following built-in functions are supported on the SH1, SH2, SH3 and
  41830. SH4 families of processors:
  41831. -- Built-in Function: void __builtin_set_thread_pointer (void *PTR)
  41832. Sets the 'GBR' register to the specified value PTR. This is
  41833. usually used by system code that manages threads and execution
  41834. contexts. The compiler normally does not generate code that
  41835. modifies the contents of 'GBR' and thus the value is preserved
  41836. across function calls. Changing the 'GBR' value in user code must
  41837. be done with caution, since the compiler might use 'GBR' in order
  41838. to access thread local variables.
  41839. -- Built-in Function: void * __builtin_thread_pointer (void)
  41840. Returns the value that is currently set in the 'GBR' register.
  41841. Memory loads and stores that use the thread pointer as a base
  41842. address are turned into 'GBR' based displacement loads and stores,
  41843. if possible. For example:
  41844. struct my_tcb
  41845. {
  41846. int a, b, c, d, e;
  41847. };
  41848. int get_tcb_value (void)
  41849. {
  41850. // Generate 'mov.l @(8,gbr),r0' instruction
  41851. return ((my_tcb*)__builtin_thread_pointer ())->c;
  41852. }
  41853. -- Built-in Function: unsigned int __builtin_sh_get_fpscr (void)
  41854. Returns the value that is currently set in the 'FPSCR' register.
  41855. -- Built-in Function: void __builtin_sh_set_fpscr (unsigned int VAL)
  41856. Sets the 'FPSCR' register to the specified value VAL, while
  41857. preserving the current values of the FR, SZ and PR bits.
  41858. 
  41859. File: gcc.info, Node: SPARC VIS Built-in Functions, Next: TI C6X Built-in Functions, Prev: SH Built-in Functions, Up: Target Builtins
  41860. 6.60.32 SPARC VIS Built-in Functions
  41861. ------------------------------------
  41862. GCC supports SIMD operations on the SPARC using both the generic vector
  41863. extensions (*note Vector Extensions::) as well as built-in functions for
  41864. the SPARC Visual Instruction Set (VIS). When you use the '-mvis' switch,
  41865. the VIS extension is exposed as the following built-in functions:
  41866. typedef int v1si __attribute__ ((vector_size (4)));
  41867. typedef int v2si __attribute__ ((vector_size (8)));
  41868. typedef short v4hi __attribute__ ((vector_size (8)));
  41869. typedef short v2hi __attribute__ ((vector_size (4)));
  41870. typedef unsigned char v8qi __attribute__ ((vector_size (8)));
  41871. typedef unsigned char v4qi __attribute__ ((vector_size (4)));
  41872. void __builtin_vis_write_gsr (int64_t);
  41873. int64_t __builtin_vis_read_gsr (void);
  41874. void * __builtin_vis_alignaddr (void *, long);
  41875. void * __builtin_vis_alignaddrl (void *, long);
  41876. int64_t __builtin_vis_faligndatadi (int64_t, int64_t);
  41877. v2si __builtin_vis_faligndatav2si (v2si, v2si);
  41878. v4hi __builtin_vis_faligndatav4hi (v4si, v4si);
  41879. v8qi __builtin_vis_faligndatav8qi (v8qi, v8qi);
  41880. v4hi __builtin_vis_fexpand (v4qi);
  41881. v4hi __builtin_vis_fmul8x16 (v4qi, v4hi);
  41882. v4hi __builtin_vis_fmul8x16au (v4qi, v2hi);
  41883. v4hi __builtin_vis_fmul8x16al (v4qi, v2hi);
  41884. v4hi __builtin_vis_fmul8sux16 (v8qi, v4hi);
  41885. v4hi __builtin_vis_fmul8ulx16 (v8qi, v4hi);
  41886. v2si __builtin_vis_fmuld8sux16 (v4qi, v2hi);
  41887. v2si __builtin_vis_fmuld8ulx16 (v4qi, v2hi);
  41888. v4qi __builtin_vis_fpack16 (v4hi);
  41889. v8qi __builtin_vis_fpack32 (v2si, v8qi);
  41890. v2hi __builtin_vis_fpackfix (v2si);
  41891. v8qi __builtin_vis_fpmerge (v4qi, v4qi);
  41892. int64_t __builtin_vis_pdist (v8qi, v8qi, int64_t);
  41893. long __builtin_vis_edge8 (void *, void *);
  41894. long __builtin_vis_edge8l (void *, void *);
  41895. long __builtin_vis_edge16 (void *, void *);
  41896. long __builtin_vis_edge16l (void *, void *);
  41897. long __builtin_vis_edge32 (void *, void *);
  41898. long __builtin_vis_edge32l (void *, void *);
  41899. long __builtin_vis_fcmple16 (v4hi, v4hi);
  41900. long __builtin_vis_fcmple32 (v2si, v2si);
  41901. long __builtin_vis_fcmpne16 (v4hi, v4hi);
  41902. long __builtin_vis_fcmpne32 (v2si, v2si);
  41903. long __builtin_vis_fcmpgt16 (v4hi, v4hi);
  41904. long __builtin_vis_fcmpgt32 (v2si, v2si);
  41905. long __builtin_vis_fcmpeq16 (v4hi, v4hi);
  41906. long __builtin_vis_fcmpeq32 (v2si, v2si);
  41907. v4hi __builtin_vis_fpadd16 (v4hi, v4hi);
  41908. v2hi __builtin_vis_fpadd16s (v2hi, v2hi);
  41909. v2si __builtin_vis_fpadd32 (v2si, v2si);
  41910. v1si __builtin_vis_fpadd32s (v1si, v1si);
  41911. v4hi __builtin_vis_fpsub16 (v4hi, v4hi);
  41912. v2hi __builtin_vis_fpsub16s (v2hi, v2hi);
  41913. v2si __builtin_vis_fpsub32 (v2si, v2si);
  41914. v1si __builtin_vis_fpsub32s (v1si, v1si);
  41915. long __builtin_vis_array8 (long, long);
  41916. long __builtin_vis_array16 (long, long);
  41917. long __builtin_vis_array32 (long, long);
  41918. When you use the '-mvis2' switch, the VIS version 2.0 built-in
  41919. functions also become available:
  41920. long __builtin_vis_bmask (long, long);
  41921. int64_t __builtin_vis_bshuffledi (int64_t, int64_t);
  41922. v2si __builtin_vis_bshufflev2si (v2si, v2si);
  41923. v4hi __builtin_vis_bshufflev2si (v4hi, v4hi);
  41924. v8qi __builtin_vis_bshufflev2si (v8qi, v8qi);
  41925. long __builtin_vis_edge8n (void *, void *);
  41926. long __builtin_vis_edge8ln (void *, void *);
  41927. long __builtin_vis_edge16n (void *, void *);
  41928. long __builtin_vis_edge16ln (void *, void *);
  41929. long __builtin_vis_edge32n (void *, void *);
  41930. long __builtin_vis_edge32ln (void *, void *);
  41931. When you use the '-mvis3' switch, the VIS version 3.0 built-in
  41932. functions also become available:
  41933. void __builtin_vis_cmask8 (long);
  41934. void __builtin_vis_cmask16 (long);
  41935. void __builtin_vis_cmask32 (long);
  41936. v4hi __builtin_vis_fchksm16 (v4hi, v4hi);
  41937. v4hi __builtin_vis_fsll16 (v4hi, v4hi);
  41938. v4hi __builtin_vis_fslas16 (v4hi, v4hi);
  41939. v4hi __builtin_vis_fsrl16 (v4hi, v4hi);
  41940. v4hi __builtin_vis_fsra16 (v4hi, v4hi);
  41941. v2si __builtin_vis_fsll16 (v2si, v2si);
  41942. v2si __builtin_vis_fslas16 (v2si, v2si);
  41943. v2si __builtin_vis_fsrl16 (v2si, v2si);
  41944. v2si __builtin_vis_fsra16 (v2si, v2si);
  41945. long __builtin_vis_pdistn (v8qi, v8qi);
  41946. v4hi __builtin_vis_fmean16 (v4hi, v4hi);
  41947. int64_t __builtin_vis_fpadd64 (int64_t, int64_t);
  41948. int64_t __builtin_vis_fpsub64 (int64_t, int64_t);
  41949. v4hi __builtin_vis_fpadds16 (v4hi, v4hi);
  41950. v2hi __builtin_vis_fpadds16s (v2hi, v2hi);
  41951. v4hi __builtin_vis_fpsubs16 (v4hi, v4hi);
  41952. v2hi __builtin_vis_fpsubs16s (v2hi, v2hi);
  41953. v2si __builtin_vis_fpadds32 (v2si, v2si);
  41954. v1si __builtin_vis_fpadds32s (v1si, v1si);
  41955. v2si __builtin_vis_fpsubs32 (v2si, v2si);
  41956. v1si __builtin_vis_fpsubs32s (v1si, v1si);
  41957. long __builtin_vis_fucmple8 (v8qi, v8qi);
  41958. long __builtin_vis_fucmpne8 (v8qi, v8qi);
  41959. long __builtin_vis_fucmpgt8 (v8qi, v8qi);
  41960. long __builtin_vis_fucmpeq8 (v8qi, v8qi);
  41961. float __builtin_vis_fhadds (float, float);
  41962. double __builtin_vis_fhaddd (double, double);
  41963. float __builtin_vis_fhsubs (float, float);
  41964. double __builtin_vis_fhsubd (double, double);
  41965. float __builtin_vis_fnhadds (float, float);
  41966. double __builtin_vis_fnhaddd (double, double);
  41967. int64_t __builtin_vis_umulxhi (int64_t, int64_t);
  41968. int64_t __builtin_vis_xmulx (int64_t, int64_t);
  41969. int64_t __builtin_vis_xmulxhi (int64_t, int64_t);
  41970. When you use the '-mvis4' switch, the VIS version 4.0 built-in
  41971. functions also become available:
  41972. v8qi __builtin_vis_fpadd8 (v8qi, v8qi);
  41973. v8qi __builtin_vis_fpadds8 (v8qi, v8qi);
  41974. v8qi __builtin_vis_fpaddus8 (v8qi, v8qi);
  41975. v4hi __builtin_vis_fpaddus16 (v4hi, v4hi);
  41976. v8qi __builtin_vis_fpsub8 (v8qi, v8qi);
  41977. v8qi __builtin_vis_fpsubs8 (v8qi, v8qi);
  41978. v8qi __builtin_vis_fpsubus8 (v8qi, v8qi);
  41979. v4hi __builtin_vis_fpsubus16 (v4hi, v4hi);
  41980. long __builtin_vis_fpcmple8 (v8qi, v8qi);
  41981. long __builtin_vis_fpcmpgt8 (v8qi, v8qi);
  41982. long __builtin_vis_fpcmpule16 (v4hi, v4hi);
  41983. long __builtin_vis_fpcmpugt16 (v4hi, v4hi);
  41984. long __builtin_vis_fpcmpule32 (v2si, v2si);
  41985. long __builtin_vis_fpcmpugt32 (v2si, v2si);
  41986. v8qi __builtin_vis_fpmax8 (v8qi, v8qi);
  41987. v4hi __builtin_vis_fpmax16 (v4hi, v4hi);
  41988. v2si __builtin_vis_fpmax32 (v2si, v2si);
  41989. v8qi __builtin_vis_fpmaxu8 (v8qi, v8qi);
  41990. v4hi __builtin_vis_fpmaxu16 (v4hi, v4hi);
  41991. v2si __builtin_vis_fpmaxu32 (v2si, v2si);
  41992. v8qi __builtin_vis_fpmin8 (v8qi, v8qi);
  41993. v4hi __builtin_vis_fpmin16 (v4hi, v4hi);
  41994. v2si __builtin_vis_fpmin32 (v2si, v2si);
  41995. v8qi __builtin_vis_fpminu8 (v8qi, v8qi);
  41996. v4hi __builtin_vis_fpminu16 (v4hi, v4hi);
  41997. v2si __builtin_vis_fpminu32 (v2si, v2si);
  41998. When you use the '-mvis4b' switch, the VIS version 4.0B built-in
  41999. functions also become available:
  42000. v8qi __builtin_vis_dictunpack8 (double, int);
  42001. v4hi __builtin_vis_dictunpack16 (double, int);
  42002. v2si __builtin_vis_dictunpack32 (double, int);
  42003. long __builtin_vis_fpcmple8shl (v8qi, v8qi, int);
  42004. long __builtin_vis_fpcmpgt8shl (v8qi, v8qi, int);
  42005. long __builtin_vis_fpcmpeq8shl (v8qi, v8qi, int);
  42006. long __builtin_vis_fpcmpne8shl (v8qi, v8qi, int);
  42007. long __builtin_vis_fpcmple16shl (v4hi, v4hi, int);
  42008. long __builtin_vis_fpcmpgt16shl (v4hi, v4hi, int);
  42009. long __builtin_vis_fpcmpeq16shl (v4hi, v4hi, int);
  42010. long __builtin_vis_fpcmpne16shl (v4hi, v4hi, int);
  42011. long __builtin_vis_fpcmple32shl (v2si, v2si, int);
  42012. long __builtin_vis_fpcmpgt32shl (v2si, v2si, int);
  42013. long __builtin_vis_fpcmpeq32shl (v2si, v2si, int);
  42014. long __builtin_vis_fpcmpne32shl (v2si, v2si, int);
  42015. long __builtin_vis_fpcmpule8shl (v8qi, v8qi, int);
  42016. long __builtin_vis_fpcmpugt8shl (v8qi, v8qi, int);
  42017. long __builtin_vis_fpcmpule16shl (v4hi, v4hi, int);
  42018. long __builtin_vis_fpcmpugt16shl (v4hi, v4hi, int);
  42019. long __builtin_vis_fpcmpule32shl (v2si, v2si, int);
  42020. long __builtin_vis_fpcmpugt32shl (v2si, v2si, int);
  42021. long __builtin_vis_fpcmpde8shl (v8qi, v8qi, int);
  42022. long __builtin_vis_fpcmpde16shl (v4hi, v4hi, int);
  42023. long __builtin_vis_fpcmpde32shl (v2si, v2si, int);
  42024. long __builtin_vis_fpcmpur8shl (v8qi, v8qi, int);
  42025. long __builtin_vis_fpcmpur16shl (v4hi, v4hi, int);
  42026. long __builtin_vis_fpcmpur32shl (v2si, v2si, int);
  42027. 
  42028. File: gcc.info, Node: TI C6X Built-in Functions, Next: TILE-Gx Built-in Functions, Prev: SPARC VIS Built-in Functions, Up: Target Builtins
  42029. 6.60.33 TI C6X Built-in Functions
  42030. ---------------------------------
  42031. GCC provides intrinsics to access certain instructions of the TI C6X
  42032. processors. These intrinsics, listed below, are available after
  42033. inclusion of the 'c6x_intrinsics.h' header file. They map directly to
  42034. C6X instructions.
  42035. int _sadd (int, int)
  42036. int _ssub (int, int)
  42037. int _sadd2 (int, int)
  42038. int _ssub2 (int, int)
  42039. long long _mpy2 (int, int)
  42040. long long _smpy2 (int, int)
  42041. int _add4 (int, int)
  42042. int _sub4 (int, int)
  42043. int _saddu4 (int, int)
  42044. int _smpy (int, int)
  42045. int _smpyh (int, int)
  42046. int _smpyhl (int, int)
  42047. int _smpylh (int, int)
  42048. int _sshl (int, int)
  42049. int _subc (int, int)
  42050. int _avg2 (int, int)
  42051. int _avgu4 (int, int)
  42052. int _clrr (int, int)
  42053. int _extr (int, int)
  42054. int _extru (int, int)
  42055. int _abs (int)
  42056. int _abs2 (int)
  42057. 
  42058. File: gcc.info, Node: TILE-Gx Built-in Functions, Next: TILEPro Built-in Functions, Prev: TI C6X Built-in Functions, Up: Target Builtins
  42059. 6.60.34 TILE-Gx Built-in Functions
  42060. ----------------------------------
  42061. GCC provides intrinsics to access every instruction of the TILE-Gx
  42062. processor. The intrinsics are of the form:
  42063. unsigned long long __insn_OP (...)
  42064. Where OP is the name of the instruction. Refer to the ISA manual for
  42065. the complete list of instructions.
  42066. GCC also provides intrinsics to directly access the network registers.
  42067. The intrinsics are:
  42068. unsigned long long __tile_idn0_receive (void)
  42069. unsigned long long __tile_idn1_receive (void)
  42070. unsigned long long __tile_udn0_receive (void)
  42071. unsigned long long __tile_udn1_receive (void)
  42072. unsigned long long __tile_udn2_receive (void)
  42073. unsigned long long __tile_udn3_receive (void)
  42074. void __tile_idn_send (unsigned long long)
  42075. void __tile_udn_send (unsigned long long)
  42076. The intrinsic 'void __tile_network_barrier (void)' is used to guarantee
  42077. that no network operations before it are reordered with those after it.
  42078. 
  42079. File: gcc.info, Node: TILEPro Built-in Functions, Next: x86 Built-in Functions, Prev: TILE-Gx Built-in Functions, Up: Target Builtins
  42080. 6.60.35 TILEPro Built-in Functions
  42081. ----------------------------------
  42082. GCC provides intrinsics to access every instruction of the TILEPro
  42083. processor. The intrinsics are of the form:
  42084. unsigned __insn_OP (...)
  42085. where OP is the name of the instruction. Refer to the ISA manual for
  42086. the complete list of instructions.
  42087. GCC also provides intrinsics to directly access the network registers.
  42088. The intrinsics are:
  42089. unsigned __tile_idn0_receive (void)
  42090. unsigned __tile_idn1_receive (void)
  42091. unsigned __tile_sn_receive (void)
  42092. unsigned __tile_udn0_receive (void)
  42093. unsigned __tile_udn1_receive (void)
  42094. unsigned __tile_udn2_receive (void)
  42095. unsigned __tile_udn3_receive (void)
  42096. void __tile_idn_send (unsigned)
  42097. void __tile_sn_send (unsigned)
  42098. void __tile_udn_send (unsigned)
  42099. The intrinsic 'void __tile_network_barrier (void)' is used to guarantee
  42100. that no network operations before it are reordered with those after it.
  42101. 
  42102. File: gcc.info, Node: x86 Built-in Functions, Next: x86 transactional memory intrinsics, Prev: TILEPro Built-in Functions, Up: Target Builtins
  42103. 6.60.36 x86 Built-in Functions
  42104. ------------------------------
  42105. These built-in functions are available for the x86-32 and x86-64 family
  42106. of computers, depending on the command-line switches used.
  42107. If you specify command-line switches such as '-msse', the compiler
  42108. could use the extended instruction sets even if the built-ins are not
  42109. used explicitly in the program. For this reason, applications that
  42110. perform run-time CPU detection must compile separate files for each
  42111. supported architecture, using the appropriate flags. In particular, the
  42112. file containing the CPU detection code should be compiled without these
  42113. options.
  42114. The following machine modes are available for use with MMX built-in
  42115. functions (*note Vector Extensions::): 'V2SI' for a vector of two 32-bit
  42116. integers, 'V4HI' for a vector of four 16-bit integers, and 'V8QI' for a
  42117. vector of eight 8-bit integers. Some of the built-in functions operate
  42118. on MMX registers as a whole 64-bit entity, these use 'V1DI' as their
  42119. mode.
  42120. If 3DNow! extensions are enabled, 'V2SF' is used as a mode for a vector
  42121. of two 32-bit floating-point values.
  42122. If SSE extensions are enabled, 'V4SF' is used for a vector of four
  42123. 32-bit floating-point values. Some instructions use a vector of four
  42124. 32-bit integers, these use 'V4SI'. Finally, some instructions operate
  42125. on an entire vector register, interpreting it as a 128-bit integer,
  42126. these use mode 'TI'.
  42127. The x86-32 and x86-64 family of processors use additional built-in
  42128. functions for efficient use of 'TF' ('__float128') 128-bit floating
  42129. point and 'TC' 128-bit complex floating-point values.
  42130. The following floating-point built-in functions are always available.
  42131. All of them implement the function that is part of the name.
  42132. __float128 __builtin_fabsq (__float128)
  42133. __float128 __builtin_copysignq (__float128, __float128)
  42134. The following built-in functions are always available.
  42135. '__float128 __builtin_infq (void)'
  42136. Similar to '__builtin_inf', except the return type is '__float128'.
  42137. '__float128 __builtin_huge_valq (void)'
  42138. Similar to '__builtin_huge_val', except the return type is
  42139. '__float128'.
  42140. '__float128 __builtin_nanq (void)'
  42141. Similar to '__builtin_nan', except the return type is '__float128'.
  42142. '__float128 __builtin_nansq (void)'
  42143. Similar to '__builtin_nans', except the return type is
  42144. '__float128'.
  42145. The following built-in function is always available.
  42146. 'void __builtin_ia32_pause (void)'
  42147. Generates the 'pause' machine instruction with a compiler memory
  42148. barrier.
  42149. The following built-in functions are always available and can be used
  42150. to check the target platform type.
  42151. -- Built-in Function: void __builtin_cpu_init (void)
  42152. This function runs the CPU detection code to check the type of CPU
  42153. and the features supported. This built-in function needs to be
  42154. invoked along with the built-in functions to check CPU type and
  42155. features, '__builtin_cpu_is' and '__builtin_cpu_supports', only
  42156. when used in a function that is executed before any constructors
  42157. are called. The CPU detection code is automatically executed in a
  42158. very high priority constructor.
  42159. For example, this function has to be used in 'ifunc' resolvers that
  42160. check for CPU type using the built-in functions '__builtin_cpu_is'
  42161. and '__builtin_cpu_supports', or in constructors on targets that
  42162. don't support constructor priority.
  42163. static void (*resolve_memcpy (void)) (void)
  42164. {
  42165. // ifunc resolvers fire before constructors, explicitly call the init
  42166. // function.
  42167. __builtin_cpu_init ();
  42168. if (__builtin_cpu_supports ("ssse3"))
  42169. return ssse3_memcpy; // super fast memcpy with ssse3 instructions.
  42170. else
  42171. return default_memcpy;
  42172. }
  42173. void *memcpy (void *, const void *, size_t)
  42174. __attribute__ ((ifunc ("resolve_memcpy")));
  42175. -- Built-in Function: int __builtin_cpu_is (const char *CPUNAME)
  42176. This function returns a positive integer if the run-time CPU is of
  42177. type CPUNAME and returns '0' otherwise. The following CPU names
  42178. can be detected:
  42179. 'amd'
  42180. AMD CPU.
  42181. 'intel'
  42182. Intel CPU.
  42183. 'atom'
  42184. Intel Atom CPU.
  42185. 'slm'
  42186. Intel Silvermont CPU.
  42187. 'core2'
  42188. Intel Core 2 CPU.
  42189. 'corei7'
  42190. Intel Core i7 CPU.
  42191. 'nehalem'
  42192. Intel Core i7 Nehalem CPU.
  42193. 'westmere'
  42194. Intel Core i7 Westmere CPU.
  42195. 'sandybridge'
  42196. Intel Core i7 Sandy Bridge CPU.
  42197. 'ivybridge'
  42198. Intel Core i7 Ivy Bridge CPU.
  42199. 'haswell'
  42200. Intel Core i7 Haswell CPU.
  42201. 'broadwell'
  42202. Intel Core i7 Broadwell CPU.
  42203. 'skylake'
  42204. Intel Core i7 Skylake CPU.
  42205. 'skylake-avx512'
  42206. Intel Core i7 Skylake AVX512 CPU.
  42207. 'cannonlake'
  42208. Intel Core i7 Cannon Lake CPU.
  42209. 'icelake-client'
  42210. Intel Core i7 Ice Lake Client CPU.
  42211. 'icelake-server'
  42212. Intel Core i7 Ice Lake Server CPU.
  42213. 'cascadelake'
  42214. Intel Core i7 Cascadelake CPU.
  42215. 'tigerlake'
  42216. Intel Core i7 Tigerlake CPU.
  42217. 'cooperlake'
  42218. Intel Core i7 Cooperlake CPU.
  42219. 'sapphirerapids'
  42220. Intel Core i7 sapphirerapids CPU.
  42221. 'alderlake'
  42222. Intel Core i7 Alderlake CPU.
  42223. 'rocketlake'
  42224. Intel Core i7 Rocketlake CPU.
  42225. 'bonnell'
  42226. Intel Atom Bonnell CPU.
  42227. 'silvermont'
  42228. Intel Atom Silvermont CPU.
  42229. 'goldmont'
  42230. Intel Atom Goldmont CPU.
  42231. 'goldmont-plus'
  42232. Intel Atom Goldmont Plus CPU.
  42233. 'tremont'
  42234. Intel Atom Tremont CPU.
  42235. 'knl'
  42236. Intel Knights Landing CPU.
  42237. 'knm'
  42238. Intel Knights Mill CPU.
  42239. 'amdfam10h'
  42240. AMD Family 10h CPU.
  42241. 'barcelona'
  42242. AMD Family 10h Barcelona CPU.
  42243. 'shanghai'
  42244. AMD Family 10h Shanghai CPU.
  42245. 'istanbul'
  42246. AMD Family 10h Istanbul CPU.
  42247. 'btver1'
  42248. AMD Family 14h CPU.
  42249. 'amdfam15h'
  42250. AMD Family 15h CPU.
  42251. 'bdver1'
  42252. AMD Family 15h Bulldozer version 1.
  42253. 'bdver2'
  42254. AMD Family 15h Bulldozer version 2.
  42255. 'bdver3'
  42256. AMD Family 15h Bulldozer version 3.
  42257. 'bdver4'
  42258. AMD Family 15h Bulldozer version 4.
  42259. 'btver2'
  42260. AMD Family 16h CPU.
  42261. 'amdfam17h'
  42262. AMD Family 17h CPU.
  42263. 'znver1'
  42264. AMD Family 17h Zen version 1.
  42265. 'znver2'
  42266. AMD Family 17h Zen version 2.
  42267. 'amdfam19h'
  42268. AMD Family 19h CPU.
  42269. 'znver3'
  42270. AMD Family 19h Zen version 3.
  42271. Here is an example:
  42272. if (__builtin_cpu_is ("corei7"))
  42273. {
  42274. do_corei7 (); // Core i7 specific implementation.
  42275. }
  42276. else
  42277. {
  42278. do_generic (); // Generic implementation.
  42279. }
  42280. -- Built-in Function: int __builtin_cpu_supports (const char *FEATURE)
  42281. This function returns a positive integer if the run-time CPU
  42282. supports FEATURE and returns '0' otherwise. The following features
  42283. can be detected:
  42284. 'cmov'
  42285. CMOV instruction.
  42286. 'mmx'
  42287. MMX instructions.
  42288. 'popcnt'
  42289. POPCNT instruction.
  42290. 'sse'
  42291. SSE instructions.
  42292. 'sse2'
  42293. SSE2 instructions.
  42294. 'sse3'
  42295. SSE3 instructions.
  42296. 'ssse3'
  42297. SSSE3 instructions.
  42298. 'sse4.1'
  42299. SSE4.1 instructions.
  42300. 'sse4.2'
  42301. SSE4.2 instructions.
  42302. 'avx'
  42303. AVX instructions.
  42304. 'avx2'
  42305. AVX2 instructions.
  42306. 'sse4a'
  42307. SSE4A instructions.
  42308. 'fma4'
  42309. FMA4 instructions.
  42310. 'xop'
  42311. XOP instructions.
  42312. 'fma'
  42313. FMA instructions.
  42314. 'avx512f'
  42315. AVX512F instructions.
  42316. 'bmi'
  42317. BMI instructions.
  42318. 'bmi2'
  42319. BMI2 instructions.
  42320. 'aes'
  42321. AES instructions.
  42322. 'pclmul'
  42323. PCLMUL instructions.
  42324. 'avx512vl'
  42325. AVX512VL instructions.
  42326. 'avx512bw'
  42327. AVX512BW instructions.
  42328. 'avx512dq'
  42329. AVX512DQ instructions.
  42330. 'avx512cd'
  42331. AVX512CD instructions.
  42332. 'avx512er'
  42333. AVX512ER instructions.
  42334. 'avx512pf'
  42335. AVX512PF instructions.
  42336. 'avx512vbmi'
  42337. AVX512VBMI instructions.
  42338. 'avx512ifma'
  42339. AVX512IFMA instructions.
  42340. 'avx5124vnniw'
  42341. AVX5124VNNIW instructions.
  42342. 'avx5124fmaps'
  42343. AVX5124FMAPS instructions.
  42344. 'avx512vpopcntdq'
  42345. AVX512VPOPCNTDQ instructions.
  42346. 'avx512vbmi2'
  42347. AVX512VBMI2 instructions.
  42348. 'gfni'
  42349. GFNI instructions.
  42350. 'vpclmulqdq'
  42351. VPCLMULQDQ instructions.
  42352. 'avx512vnni'
  42353. AVX512VNNI instructions.
  42354. 'avx512bitalg'
  42355. AVX512BITALG instructions.
  42356. Here is an example:
  42357. if (__builtin_cpu_supports ("popcnt"))
  42358. {
  42359. asm("popcnt %1,%0" : "=r"(count) : "rm"(n) : "cc");
  42360. }
  42361. else
  42362. {
  42363. count = generic_countbits (n); //generic implementation.
  42364. }
  42365. The following built-in functions are made available by '-mmmx'. All of
  42366. them generate the machine instruction that is part of the name.
  42367. v8qi __builtin_ia32_paddb (v8qi, v8qi)
  42368. v4hi __builtin_ia32_paddw (v4hi, v4hi)
  42369. v2si __builtin_ia32_paddd (v2si, v2si)
  42370. v8qi __builtin_ia32_psubb (v8qi, v8qi)
  42371. v4hi __builtin_ia32_psubw (v4hi, v4hi)
  42372. v2si __builtin_ia32_psubd (v2si, v2si)
  42373. v8qi __builtin_ia32_paddsb (v8qi, v8qi)
  42374. v4hi __builtin_ia32_paddsw (v4hi, v4hi)
  42375. v8qi __builtin_ia32_psubsb (v8qi, v8qi)
  42376. v4hi __builtin_ia32_psubsw (v4hi, v4hi)
  42377. v8qi __builtin_ia32_paddusb (v8qi, v8qi)
  42378. v4hi __builtin_ia32_paddusw (v4hi, v4hi)
  42379. v8qi __builtin_ia32_psubusb (v8qi, v8qi)
  42380. v4hi __builtin_ia32_psubusw (v4hi, v4hi)
  42381. v4hi __builtin_ia32_pmullw (v4hi, v4hi)
  42382. v4hi __builtin_ia32_pmulhw (v4hi, v4hi)
  42383. di __builtin_ia32_pand (di, di)
  42384. di __builtin_ia32_pandn (di,di)
  42385. di __builtin_ia32_por (di, di)
  42386. di __builtin_ia32_pxor (di, di)
  42387. v8qi __builtin_ia32_pcmpeqb (v8qi, v8qi)
  42388. v4hi __builtin_ia32_pcmpeqw (v4hi, v4hi)
  42389. v2si __builtin_ia32_pcmpeqd (v2si, v2si)
  42390. v8qi __builtin_ia32_pcmpgtb (v8qi, v8qi)
  42391. v4hi __builtin_ia32_pcmpgtw (v4hi, v4hi)
  42392. v2si __builtin_ia32_pcmpgtd (v2si, v2si)
  42393. v8qi __builtin_ia32_punpckhbw (v8qi, v8qi)
  42394. v4hi __builtin_ia32_punpckhwd (v4hi, v4hi)
  42395. v2si __builtin_ia32_punpckhdq (v2si, v2si)
  42396. v8qi __builtin_ia32_punpcklbw (v8qi, v8qi)
  42397. v4hi __builtin_ia32_punpcklwd (v4hi, v4hi)
  42398. v2si __builtin_ia32_punpckldq (v2si, v2si)
  42399. v8qi __builtin_ia32_packsswb (v4hi, v4hi)
  42400. v4hi __builtin_ia32_packssdw (v2si, v2si)
  42401. v8qi __builtin_ia32_packuswb (v4hi, v4hi)
  42402. v4hi __builtin_ia32_psllw (v4hi, v4hi)
  42403. v2si __builtin_ia32_pslld (v2si, v2si)
  42404. v1di __builtin_ia32_psllq (v1di, v1di)
  42405. v4hi __builtin_ia32_psrlw (v4hi, v4hi)
  42406. v2si __builtin_ia32_psrld (v2si, v2si)
  42407. v1di __builtin_ia32_psrlq (v1di, v1di)
  42408. v4hi __builtin_ia32_psraw (v4hi, v4hi)
  42409. v2si __builtin_ia32_psrad (v2si, v2si)
  42410. v4hi __builtin_ia32_psllwi (v4hi, int)
  42411. v2si __builtin_ia32_pslldi (v2si, int)
  42412. v1di __builtin_ia32_psllqi (v1di, int)
  42413. v4hi __builtin_ia32_psrlwi (v4hi, int)
  42414. v2si __builtin_ia32_psrldi (v2si, int)
  42415. v1di __builtin_ia32_psrlqi (v1di, int)
  42416. v4hi __builtin_ia32_psrawi (v4hi, int)
  42417. v2si __builtin_ia32_psradi (v2si, int)
  42418. The following built-in functions are made available either with
  42419. '-msse', or with '-m3dnowa'. All of them generate the machine
  42420. instruction that is part of the name.
  42421. v4hi __builtin_ia32_pmulhuw (v4hi, v4hi)
  42422. v8qi __builtin_ia32_pavgb (v8qi, v8qi)
  42423. v4hi __builtin_ia32_pavgw (v4hi, v4hi)
  42424. v1di __builtin_ia32_psadbw (v8qi, v8qi)
  42425. v8qi __builtin_ia32_pmaxub (v8qi, v8qi)
  42426. v4hi __builtin_ia32_pmaxsw (v4hi, v4hi)
  42427. v8qi __builtin_ia32_pminub (v8qi, v8qi)
  42428. v4hi __builtin_ia32_pminsw (v4hi, v4hi)
  42429. int __builtin_ia32_pmovmskb (v8qi)
  42430. void __builtin_ia32_maskmovq (v8qi, v8qi, char *)
  42431. void __builtin_ia32_movntq (di *, di)
  42432. void __builtin_ia32_sfence (void)
  42433. The following built-in functions are available when '-msse' is used.
  42434. All of them generate the machine instruction that is part of the name.
  42435. int __builtin_ia32_comieq (v4sf, v4sf)
  42436. int __builtin_ia32_comineq (v4sf, v4sf)
  42437. int __builtin_ia32_comilt (v4sf, v4sf)
  42438. int __builtin_ia32_comile (v4sf, v4sf)
  42439. int __builtin_ia32_comigt (v4sf, v4sf)
  42440. int __builtin_ia32_comige (v4sf, v4sf)
  42441. int __builtin_ia32_ucomieq (v4sf, v4sf)
  42442. int __builtin_ia32_ucomineq (v4sf, v4sf)
  42443. int __builtin_ia32_ucomilt (v4sf, v4sf)
  42444. int __builtin_ia32_ucomile (v4sf, v4sf)
  42445. int __builtin_ia32_ucomigt (v4sf, v4sf)
  42446. int __builtin_ia32_ucomige (v4sf, v4sf)
  42447. v4sf __builtin_ia32_addps (v4sf, v4sf)
  42448. v4sf __builtin_ia32_subps (v4sf, v4sf)
  42449. v4sf __builtin_ia32_mulps (v4sf, v4sf)
  42450. v4sf __builtin_ia32_divps (v4sf, v4sf)
  42451. v4sf __builtin_ia32_addss (v4sf, v4sf)
  42452. v4sf __builtin_ia32_subss (v4sf, v4sf)
  42453. v4sf __builtin_ia32_mulss (v4sf, v4sf)
  42454. v4sf __builtin_ia32_divss (v4sf, v4sf)
  42455. v4sf __builtin_ia32_cmpeqps (v4sf, v4sf)
  42456. v4sf __builtin_ia32_cmpltps (v4sf, v4sf)
  42457. v4sf __builtin_ia32_cmpleps (v4sf, v4sf)
  42458. v4sf __builtin_ia32_cmpgtps (v4sf, v4sf)
  42459. v4sf __builtin_ia32_cmpgeps (v4sf, v4sf)
  42460. v4sf __builtin_ia32_cmpunordps (v4sf, v4sf)
  42461. v4sf __builtin_ia32_cmpneqps (v4sf, v4sf)
  42462. v4sf __builtin_ia32_cmpnltps (v4sf, v4sf)
  42463. v4sf __builtin_ia32_cmpnleps (v4sf, v4sf)
  42464. v4sf __builtin_ia32_cmpngtps (v4sf, v4sf)
  42465. v4sf __builtin_ia32_cmpngeps (v4sf, v4sf)
  42466. v4sf __builtin_ia32_cmpordps (v4sf, v4sf)
  42467. v4sf __builtin_ia32_cmpeqss (v4sf, v4sf)
  42468. v4sf __builtin_ia32_cmpltss (v4sf, v4sf)
  42469. v4sf __builtin_ia32_cmpless (v4sf, v4sf)
  42470. v4sf __builtin_ia32_cmpunordss (v4sf, v4sf)
  42471. v4sf __builtin_ia32_cmpneqss (v4sf, v4sf)
  42472. v4sf __builtin_ia32_cmpnltss (v4sf, v4sf)
  42473. v4sf __builtin_ia32_cmpnless (v4sf, v4sf)
  42474. v4sf __builtin_ia32_cmpordss (v4sf, v4sf)
  42475. v4sf __builtin_ia32_maxps (v4sf, v4sf)
  42476. v4sf __builtin_ia32_maxss (v4sf, v4sf)
  42477. v4sf __builtin_ia32_minps (v4sf, v4sf)
  42478. v4sf __builtin_ia32_minss (v4sf, v4sf)
  42479. v4sf __builtin_ia32_andps (v4sf, v4sf)
  42480. v4sf __builtin_ia32_andnps (v4sf, v4sf)
  42481. v4sf __builtin_ia32_orps (v4sf, v4sf)
  42482. v4sf __builtin_ia32_xorps (v4sf, v4sf)
  42483. v4sf __builtin_ia32_movss (v4sf, v4sf)
  42484. v4sf __builtin_ia32_movhlps (v4sf, v4sf)
  42485. v4sf __builtin_ia32_movlhps (v4sf, v4sf)
  42486. v4sf __builtin_ia32_unpckhps (v4sf, v4sf)
  42487. v4sf __builtin_ia32_unpcklps (v4sf, v4sf)
  42488. v4sf __builtin_ia32_cvtpi2ps (v4sf, v2si)
  42489. v4sf __builtin_ia32_cvtsi2ss (v4sf, int)
  42490. v2si __builtin_ia32_cvtps2pi (v4sf)
  42491. int __builtin_ia32_cvtss2si (v4sf)
  42492. v2si __builtin_ia32_cvttps2pi (v4sf)
  42493. int __builtin_ia32_cvttss2si (v4sf)
  42494. v4sf __builtin_ia32_rcpps (v4sf)
  42495. v4sf __builtin_ia32_rsqrtps (v4sf)
  42496. v4sf __builtin_ia32_sqrtps (v4sf)
  42497. v4sf __builtin_ia32_rcpss (v4sf)
  42498. v4sf __builtin_ia32_rsqrtss (v4sf)
  42499. v4sf __builtin_ia32_sqrtss (v4sf)
  42500. v4sf __builtin_ia32_shufps (v4sf, v4sf, int)
  42501. void __builtin_ia32_movntps (float *, v4sf)
  42502. int __builtin_ia32_movmskps (v4sf)
  42503. The following built-in functions are available when '-msse' is used.
  42504. 'v4sf __builtin_ia32_loadups (float *)'
  42505. Generates the 'movups' machine instruction as a load from memory.
  42506. 'void __builtin_ia32_storeups (float *, v4sf)'
  42507. Generates the 'movups' machine instruction as a store to memory.
  42508. 'v4sf __builtin_ia32_loadss (float *)'
  42509. Generates the 'movss' machine instruction as a load from memory.
  42510. 'v4sf __builtin_ia32_loadhps (v4sf, const v2sf *)'
  42511. Generates the 'movhps' machine instruction as a load from memory.
  42512. 'v4sf __builtin_ia32_loadlps (v4sf, const v2sf *)'
  42513. Generates the 'movlps' machine instruction as a load from memory
  42514. 'void __builtin_ia32_storehps (v2sf *, v4sf)'
  42515. Generates the 'movhps' machine instruction as a store to memory.
  42516. 'void __builtin_ia32_storelps (v2sf *, v4sf)'
  42517. Generates the 'movlps' machine instruction as a store to memory.
  42518. The following built-in functions are available when '-msse2' is used.
  42519. All of them generate the machine instruction that is part of the name.
  42520. int __builtin_ia32_comisdeq (v2df, v2df)
  42521. int __builtin_ia32_comisdlt (v2df, v2df)
  42522. int __builtin_ia32_comisdle (v2df, v2df)
  42523. int __builtin_ia32_comisdgt (v2df, v2df)
  42524. int __builtin_ia32_comisdge (v2df, v2df)
  42525. int __builtin_ia32_comisdneq (v2df, v2df)
  42526. int __builtin_ia32_ucomisdeq (v2df, v2df)
  42527. int __builtin_ia32_ucomisdlt (v2df, v2df)
  42528. int __builtin_ia32_ucomisdle (v2df, v2df)
  42529. int __builtin_ia32_ucomisdgt (v2df, v2df)
  42530. int __builtin_ia32_ucomisdge (v2df, v2df)
  42531. int __builtin_ia32_ucomisdneq (v2df, v2df)
  42532. v2df __builtin_ia32_cmpeqpd (v2df, v2df)
  42533. v2df __builtin_ia32_cmpltpd (v2df, v2df)
  42534. v2df __builtin_ia32_cmplepd (v2df, v2df)
  42535. v2df __builtin_ia32_cmpgtpd (v2df, v2df)
  42536. v2df __builtin_ia32_cmpgepd (v2df, v2df)
  42537. v2df __builtin_ia32_cmpunordpd (v2df, v2df)
  42538. v2df __builtin_ia32_cmpneqpd (v2df, v2df)
  42539. v2df __builtin_ia32_cmpnltpd (v2df, v2df)
  42540. v2df __builtin_ia32_cmpnlepd (v2df, v2df)
  42541. v2df __builtin_ia32_cmpngtpd (v2df, v2df)
  42542. v2df __builtin_ia32_cmpngepd (v2df, v2df)
  42543. v2df __builtin_ia32_cmpordpd (v2df, v2df)
  42544. v2df __builtin_ia32_cmpeqsd (v2df, v2df)
  42545. v2df __builtin_ia32_cmpltsd (v2df, v2df)
  42546. v2df __builtin_ia32_cmplesd (v2df, v2df)
  42547. v2df __builtin_ia32_cmpunordsd (v2df, v2df)
  42548. v2df __builtin_ia32_cmpneqsd (v2df, v2df)
  42549. v2df __builtin_ia32_cmpnltsd (v2df, v2df)
  42550. v2df __builtin_ia32_cmpnlesd (v2df, v2df)
  42551. v2df __builtin_ia32_cmpordsd (v2df, v2df)
  42552. v2di __builtin_ia32_paddq (v2di, v2di)
  42553. v2di __builtin_ia32_psubq (v2di, v2di)
  42554. v2df __builtin_ia32_addpd (v2df, v2df)
  42555. v2df __builtin_ia32_subpd (v2df, v2df)
  42556. v2df __builtin_ia32_mulpd (v2df, v2df)
  42557. v2df __builtin_ia32_divpd (v2df, v2df)
  42558. v2df __builtin_ia32_addsd (v2df, v2df)
  42559. v2df __builtin_ia32_subsd (v2df, v2df)
  42560. v2df __builtin_ia32_mulsd (v2df, v2df)
  42561. v2df __builtin_ia32_divsd (v2df, v2df)
  42562. v2df __builtin_ia32_minpd (v2df, v2df)
  42563. v2df __builtin_ia32_maxpd (v2df, v2df)
  42564. v2df __builtin_ia32_minsd (v2df, v2df)
  42565. v2df __builtin_ia32_maxsd (v2df, v2df)
  42566. v2df __builtin_ia32_andpd (v2df, v2df)
  42567. v2df __builtin_ia32_andnpd (v2df, v2df)
  42568. v2df __builtin_ia32_orpd (v2df, v2df)
  42569. v2df __builtin_ia32_xorpd (v2df, v2df)
  42570. v2df __builtin_ia32_movsd (v2df, v2df)
  42571. v2df __builtin_ia32_unpckhpd (v2df, v2df)
  42572. v2df __builtin_ia32_unpcklpd (v2df, v2df)
  42573. v16qi __builtin_ia32_paddb128 (v16qi, v16qi)
  42574. v8hi __builtin_ia32_paddw128 (v8hi, v8hi)
  42575. v4si __builtin_ia32_paddd128 (v4si, v4si)
  42576. v2di __builtin_ia32_paddq128 (v2di, v2di)
  42577. v16qi __builtin_ia32_psubb128 (v16qi, v16qi)
  42578. v8hi __builtin_ia32_psubw128 (v8hi, v8hi)
  42579. v4si __builtin_ia32_psubd128 (v4si, v4si)
  42580. v2di __builtin_ia32_psubq128 (v2di, v2di)
  42581. v8hi __builtin_ia32_pmullw128 (v8hi, v8hi)
  42582. v8hi __builtin_ia32_pmulhw128 (v8hi, v8hi)
  42583. v2di __builtin_ia32_pand128 (v2di, v2di)
  42584. v2di __builtin_ia32_pandn128 (v2di, v2di)
  42585. v2di __builtin_ia32_por128 (v2di, v2di)
  42586. v2di __builtin_ia32_pxor128 (v2di, v2di)
  42587. v16qi __builtin_ia32_pavgb128 (v16qi, v16qi)
  42588. v8hi __builtin_ia32_pavgw128 (v8hi, v8hi)
  42589. v16qi __builtin_ia32_pcmpeqb128 (v16qi, v16qi)
  42590. v8hi __builtin_ia32_pcmpeqw128 (v8hi, v8hi)
  42591. v4si __builtin_ia32_pcmpeqd128 (v4si, v4si)
  42592. v16qi __builtin_ia32_pcmpgtb128 (v16qi, v16qi)
  42593. v8hi __builtin_ia32_pcmpgtw128 (v8hi, v8hi)
  42594. v4si __builtin_ia32_pcmpgtd128 (v4si, v4si)
  42595. v16qi __builtin_ia32_pmaxub128 (v16qi, v16qi)
  42596. v8hi __builtin_ia32_pmaxsw128 (v8hi, v8hi)
  42597. v16qi __builtin_ia32_pminub128 (v16qi, v16qi)
  42598. v8hi __builtin_ia32_pminsw128 (v8hi, v8hi)
  42599. v16qi __builtin_ia32_punpckhbw128 (v16qi, v16qi)
  42600. v8hi __builtin_ia32_punpckhwd128 (v8hi, v8hi)
  42601. v4si __builtin_ia32_punpckhdq128 (v4si, v4si)
  42602. v2di __builtin_ia32_punpckhqdq128 (v2di, v2di)
  42603. v16qi __builtin_ia32_punpcklbw128 (v16qi, v16qi)
  42604. v8hi __builtin_ia32_punpcklwd128 (v8hi, v8hi)
  42605. v4si __builtin_ia32_punpckldq128 (v4si, v4si)
  42606. v2di __builtin_ia32_punpcklqdq128 (v2di, v2di)
  42607. v16qi __builtin_ia32_packsswb128 (v8hi, v8hi)
  42608. v8hi __builtin_ia32_packssdw128 (v4si, v4si)
  42609. v16qi __builtin_ia32_packuswb128 (v8hi, v8hi)
  42610. v8hi __builtin_ia32_pmulhuw128 (v8hi, v8hi)
  42611. void __builtin_ia32_maskmovdqu (v16qi, v16qi)
  42612. v2df __builtin_ia32_loadupd (double *)
  42613. void __builtin_ia32_storeupd (double *, v2df)
  42614. v2df __builtin_ia32_loadhpd (v2df, double const *)
  42615. v2df __builtin_ia32_loadlpd (v2df, double const *)
  42616. int __builtin_ia32_movmskpd (v2df)
  42617. int __builtin_ia32_pmovmskb128 (v16qi)
  42618. void __builtin_ia32_movnti (int *, int)
  42619. void __builtin_ia32_movnti64 (long long int *, long long int)
  42620. void __builtin_ia32_movntpd (double *, v2df)
  42621. void __builtin_ia32_movntdq (v2df *, v2df)
  42622. v4si __builtin_ia32_pshufd (v4si, int)
  42623. v8hi __builtin_ia32_pshuflw (v8hi, int)
  42624. v8hi __builtin_ia32_pshufhw (v8hi, int)
  42625. v2di __builtin_ia32_psadbw128 (v16qi, v16qi)
  42626. v2df __builtin_ia32_sqrtpd (v2df)
  42627. v2df __builtin_ia32_sqrtsd (v2df)
  42628. v2df __builtin_ia32_shufpd (v2df, v2df, int)
  42629. v2df __builtin_ia32_cvtdq2pd (v4si)
  42630. v4sf __builtin_ia32_cvtdq2ps (v4si)
  42631. v4si __builtin_ia32_cvtpd2dq (v2df)
  42632. v2si __builtin_ia32_cvtpd2pi (v2df)
  42633. v4sf __builtin_ia32_cvtpd2ps (v2df)
  42634. v4si __builtin_ia32_cvttpd2dq (v2df)
  42635. v2si __builtin_ia32_cvttpd2pi (v2df)
  42636. v2df __builtin_ia32_cvtpi2pd (v2si)
  42637. int __builtin_ia32_cvtsd2si (v2df)
  42638. int __builtin_ia32_cvttsd2si (v2df)
  42639. long long __builtin_ia32_cvtsd2si64 (v2df)
  42640. long long __builtin_ia32_cvttsd2si64 (v2df)
  42641. v4si __builtin_ia32_cvtps2dq (v4sf)
  42642. v2df __builtin_ia32_cvtps2pd (v4sf)
  42643. v4si __builtin_ia32_cvttps2dq (v4sf)
  42644. v2df __builtin_ia32_cvtsi2sd (v2df, int)
  42645. v2df __builtin_ia32_cvtsi642sd (v2df, long long)
  42646. v4sf __builtin_ia32_cvtsd2ss (v4sf, v2df)
  42647. v2df __builtin_ia32_cvtss2sd (v2df, v4sf)
  42648. void __builtin_ia32_clflush (const void *)
  42649. void __builtin_ia32_lfence (void)
  42650. void __builtin_ia32_mfence (void)
  42651. v16qi __builtin_ia32_loaddqu (const char *)
  42652. void __builtin_ia32_storedqu (char *, v16qi)
  42653. v1di __builtin_ia32_pmuludq (v2si, v2si)
  42654. v2di __builtin_ia32_pmuludq128 (v4si, v4si)
  42655. v8hi __builtin_ia32_psllw128 (v8hi, v8hi)
  42656. v4si __builtin_ia32_pslld128 (v4si, v4si)
  42657. v2di __builtin_ia32_psllq128 (v2di, v2di)
  42658. v8hi __builtin_ia32_psrlw128 (v8hi, v8hi)
  42659. v4si __builtin_ia32_psrld128 (v4si, v4si)
  42660. v2di __builtin_ia32_psrlq128 (v2di, v2di)
  42661. v8hi __builtin_ia32_psraw128 (v8hi, v8hi)
  42662. v4si __builtin_ia32_psrad128 (v4si, v4si)
  42663. v2di __builtin_ia32_pslldqi128 (v2di, int)
  42664. v8hi __builtin_ia32_psllwi128 (v8hi, int)
  42665. v4si __builtin_ia32_pslldi128 (v4si, int)
  42666. v2di __builtin_ia32_psllqi128 (v2di, int)
  42667. v2di __builtin_ia32_psrldqi128 (v2di, int)
  42668. v8hi __builtin_ia32_psrlwi128 (v8hi, int)
  42669. v4si __builtin_ia32_psrldi128 (v4si, int)
  42670. v2di __builtin_ia32_psrlqi128 (v2di, int)
  42671. v8hi __builtin_ia32_psrawi128 (v8hi, int)
  42672. v4si __builtin_ia32_psradi128 (v4si, int)
  42673. v4si __builtin_ia32_pmaddwd128 (v8hi, v8hi)
  42674. v2di __builtin_ia32_movq128 (v2di)
  42675. The following built-in functions are available when '-msse3' is used.
  42676. All of them generate the machine instruction that is part of the name.
  42677. v2df __builtin_ia32_addsubpd (v2df, v2df)
  42678. v4sf __builtin_ia32_addsubps (v4sf, v4sf)
  42679. v2df __builtin_ia32_haddpd (v2df, v2df)
  42680. v4sf __builtin_ia32_haddps (v4sf, v4sf)
  42681. v2df __builtin_ia32_hsubpd (v2df, v2df)
  42682. v4sf __builtin_ia32_hsubps (v4sf, v4sf)
  42683. v16qi __builtin_ia32_lddqu (char const *)
  42684. void __builtin_ia32_monitor (void *, unsigned int, unsigned int)
  42685. v4sf __builtin_ia32_movshdup (v4sf)
  42686. v4sf __builtin_ia32_movsldup (v4sf)
  42687. void __builtin_ia32_mwait (unsigned int, unsigned int)
  42688. The following built-in functions are available when '-mssse3' is used.
  42689. All of them generate the machine instruction that is part of the name.
  42690. v2si __builtin_ia32_phaddd (v2si, v2si)
  42691. v4hi __builtin_ia32_phaddw (v4hi, v4hi)
  42692. v4hi __builtin_ia32_phaddsw (v4hi, v4hi)
  42693. v2si __builtin_ia32_phsubd (v2si, v2si)
  42694. v4hi __builtin_ia32_phsubw (v4hi, v4hi)
  42695. v4hi __builtin_ia32_phsubsw (v4hi, v4hi)
  42696. v4hi __builtin_ia32_pmaddubsw (v8qi, v8qi)
  42697. v4hi __builtin_ia32_pmulhrsw (v4hi, v4hi)
  42698. v8qi __builtin_ia32_pshufb (v8qi, v8qi)
  42699. v8qi __builtin_ia32_psignb (v8qi, v8qi)
  42700. v2si __builtin_ia32_psignd (v2si, v2si)
  42701. v4hi __builtin_ia32_psignw (v4hi, v4hi)
  42702. v1di __builtin_ia32_palignr (v1di, v1di, int)
  42703. v8qi __builtin_ia32_pabsb (v8qi)
  42704. v2si __builtin_ia32_pabsd (v2si)
  42705. v4hi __builtin_ia32_pabsw (v4hi)
  42706. The following built-in functions are available when '-mssse3' is used.
  42707. All of them generate the machine instruction that is part of the name.
  42708. v4si __builtin_ia32_phaddd128 (v4si, v4si)
  42709. v8hi __builtin_ia32_phaddw128 (v8hi, v8hi)
  42710. v8hi __builtin_ia32_phaddsw128 (v8hi, v8hi)
  42711. v4si __builtin_ia32_phsubd128 (v4si, v4si)
  42712. v8hi __builtin_ia32_phsubw128 (v8hi, v8hi)
  42713. v8hi __builtin_ia32_phsubsw128 (v8hi, v8hi)
  42714. v8hi __builtin_ia32_pmaddubsw128 (v16qi, v16qi)
  42715. v8hi __builtin_ia32_pmulhrsw128 (v8hi, v8hi)
  42716. v16qi __builtin_ia32_pshufb128 (v16qi, v16qi)
  42717. v16qi __builtin_ia32_psignb128 (v16qi, v16qi)
  42718. v4si __builtin_ia32_psignd128 (v4si, v4si)
  42719. v8hi __builtin_ia32_psignw128 (v8hi, v8hi)
  42720. v2di __builtin_ia32_palignr128 (v2di, v2di, int)
  42721. v16qi __builtin_ia32_pabsb128 (v16qi)
  42722. v4si __builtin_ia32_pabsd128 (v4si)
  42723. v8hi __builtin_ia32_pabsw128 (v8hi)
  42724. The following built-in functions are available when '-msse4.1' is used.
  42725. All of them generate the machine instruction that is part of the name.
  42726. v2df __builtin_ia32_blendpd (v2df, v2df, const int)
  42727. v4sf __builtin_ia32_blendps (v4sf, v4sf, const int)
  42728. v2df __builtin_ia32_blendvpd (v2df, v2df, v2df)
  42729. v4sf __builtin_ia32_blendvps (v4sf, v4sf, v4sf)
  42730. v2df __builtin_ia32_dppd (v2df, v2df, const int)
  42731. v4sf __builtin_ia32_dpps (v4sf, v4sf, const int)
  42732. v4sf __builtin_ia32_insertps128 (v4sf, v4sf, const int)
  42733. v2di __builtin_ia32_movntdqa (v2di *);
  42734. v16qi __builtin_ia32_mpsadbw128 (v16qi, v16qi, const int)
  42735. v8hi __builtin_ia32_packusdw128 (v4si, v4si)
  42736. v16qi __builtin_ia32_pblendvb128 (v16qi, v16qi, v16qi)
  42737. v8hi __builtin_ia32_pblendw128 (v8hi, v8hi, const int)
  42738. v2di __builtin_ia32_pcmpeqq (v2di, v2di)
  42739. v8hi __builtin_ia32_phminposuw128 (v8hi)
  42740. v16qi __builtin_ia32_pmaxsb128 (v16qi, v16qi)
  42741. v4si __builtin_ia32_pmaxsd128 (v4si, v4si)
  42742. v4si __builtin_ia32_pmaxud128 (v4si, v4si)
  42743. v8hi __builtin_ia32_pmaxuw128 (v8hi, v8hi)
  42744. v16qi __builtin_ia32_pminsb128 (v16qi, v16qi)
  42745. v4si __builtin_ia32_pminsd128 (v4si, v4si)
  42746. v4si __builtin_ia32_pminud128 (v4si, v4si)
  42747. v8hi __builtin_ia32_pminuw128 (v8hi, v8hi)
  42748. v4si __builtin_ia32_pmovsxbd128 (v16qi)
  42749. v2di __builtin_ia32_pmovsxbq128 (v16qi)
  42750. v8hi __builtin_ia32_pmovsxbw128 (v16qi)
  42751. v2di __builtin_ia32_pmovsxdq128 (v4si)
  42752. v4si __builtin_ia32_pmovsxwd128 (v8hi)
  42753. v2di __builtin_ia32_pmovsxwq128 (v8hi)
  42754. v4si __builtin_ia32_pmovzxbd128 (v16qi)
  42755. v2di __builtin_ia32_pmovzxbq128 (v16qi)
  42756. v8hi __builtin_ia32_pmovzxbw128 (v16qi)
  42757. v2di __builtin_ia32_pmovzxdq128 (v4si)
  42758. v4si __builtin_ia32_pmovzxwd128 (v8hi)
  42759. v2di __builtin_ia32_pmovzxwq128 (v8hi)
  42760. v2di __builtin_ia32_pmuldq128 (v4si, v4si)
  42761. v4si __builtin_ia32_pmulld128 (v4si, v4si)
  42762. int __builtin_ia32_ptestc128 (v2di, v2di)
  42763. int __builtin_ia32_ptestnzc128 (v2di, v2di)
  42764. int __builtin_ia32_ptestz128 (v2di, v2di)
  42765. v2df __builtin_ia32_roundpd (v2df, const int)
  42766. v4sf __builtin_ia32_roundps (v4sf, const int)
  42767. v2df __builtin_ia32_roundsd (v2df, v2df, const int)
  42768. v4sf __builtin_ia32_roundss (v4sf, v4sf, const int)
  42769. The following built-in functions are available when '-msse4.1' is used.
  42770. 'v4sf __builtin_ia32_vec_set_v4sf (v4sf, float, const int)'
  42771. Generates the 'insertps' machine instruction.
  42772. 'int __builtin_ia32_vec_ext_v16qi (v16qi, const int)'
  42773. Generates the 'pextrb' machine instruction.
  42774. 'v16qi __builtin_ia32_vec_set_v16qi (v16qi, int, const int)'
  42775. Generates the 'pinsrb' machine instruction.
  42776. 'v4si __builtin_ia32_vec_set_v4si (v4si, int, const int)'
  42777. Generates the 'pinsrd' machine instruction.
  42778. 'v2di __builtin_ia32_vec_set_v2di (v2di, long long, const int)'
  42779. Generates the 'pinsrq' machine instruction in 64bit mode.
  42780. The following built-in functions are changed to generate new SSE4.1
  42781. instructions when '-msse4.1' is used.
  42782. 'float __builtin_ia32_vec_ext_v4sf (v4sf, const int)'
  42783. Generates the 'extractps' machine instruction.
  42784. 'int __builtin_ia32_vec_ext_v4si (v4si, const int)'
  42785. Generates the 'pextrd' machine instruction.
  42786. 'long long __builtin_ia32_vec_ext_v2di (v2di, const int)'
  42787. Generates the 'pextrq' machine instruction in 64bit mode.
  42788. The following built-in functions are available when '-msse4.2' is used.
  42789. All of them generate the machine instruction that is part of the name.
  42790. v16qi __builtin_ia32_pcmpestrm128 (v16qi, int, v16qi, int, const int)
  42791. int __builtin_ia32_pcmpestri128 (v16qi, int, v16qi, int, const int)
  42792. int __builtin_ia32_pcmpestria128 (v16qi, int, v16qi, int, const int)
  42793. int __builtin_ia32_pcmpestric128 (v16qi, int, v16qi, int, const int)
  42794. int __builtin_ia32_pcmpestrio128 (v16qi, int, v16qi, int, const int)
  42795. int __builtin_ia32_pcmpestris128 (v16qi, int, v16qi, int, const int)
  42796. int __builtin_ia32_pcmpestriz128 (v16qi, int, v16qi, int, const int)
  42797. v16qi __builtin_ia32_pcmpistrm128 (v16qi, v16qi, const int)
  42798. int __builtin_ia32_pcmpistri128 (v16qi, v16qi, const int)
  42799. int __builtin_ia32_pcmpistria128 (v16qi, v16qi, const int)
  42800. int __builtin_ia32_pcmpistric128 (v16qi, v16qi, const int)
  42801. int __builtin_ia32_pcmpistrio128 (v16qi, v16qi, const int)
  42802. int __builtin_ia32_pcmpistris128 (v16qi, v16qi, const int)
  42803. int __builtin_ia32_pcmpistriz128 (v16qi, v16qi, const int)
  42804. v2di __builtin_ia32_pcmpgtq (v2di, v2di)
  42805. The following built-in functions are available when '-msse4.2' is used.
  42806. 'unsigned int __builtin_ia32_crc32qi (unsigned int, unsigned char)'
  42807. Generates the 'crc32b' machine instruction.
  42808. 'unsigned int __builtin_ia32_crc32hi (unsigned int, unsigned short)'
  42809. Generates the 'crc32w' machine instruction.
  42810. 'unsigned int __builtin_ia32_crc32si (unsigned int, unsigned int)'
  42811. Generates the 'crc32l' machine instruction.
  42812. 'unsigned long long __builtin_ia32_crc32di (unsigned long long, unsigned long long)'
  42813. Generates the 'crc32q' machine instruction.
  42814. The following built-in functions are changed to generate new SSE4.2
  42815. instructions when '-msse4.2' is used.
  42816. 'int __builtin_popcount (unsigned int)'
  42817. Generates the 'popcntl' machine instruction.
  42818. 'int __builtin_popcountl (unsigned long)'
  42819. Generates the 'popcntl' or 'popcntq' machine instruction, depending
  42820. on the size of 'unsigned long'.
  42821. 'int __builtin_popcountll (unsigned long long)'
  42822. Generates the 'popcntq' machine instruction.
  42823. The following built-in functions are available when '-mavx' is used.
  42824. All of them generate the machine instruction that is part of the name.
  42825. v4df __builtin_ia32_addpd256 (v4df,v4df)
  42826. v8sf __builtin_ia32_addps256 (v8sf,v8sf)
  42827. v4df __builtin_ia32_addsubpd256 (v4df,v4df)
  42828. v8sf __builtin_ia32_addsubps256 (v8sf,v8sf)
  42829. v4df __builtin_ia32_andnpd256 (v4df,v4df)
  42830. v8sf __builtin_ia32_andnps256 (v8sf,v8sf)
  42831. v4df __builtin_ia32_andpd256 (v4df,v4df)
  42832. v8sf __builtin_ia32_andps256 (v8sf,v8sf)
  42833. v4df __builtin_ia32_blendpd256 (v4df,v4df,int)
  42834. v8sf __builtin_ia32_blendps256 (v8sf,v8sf,int)
  42835. v4df __builtin_ia32_blendvpd256 (v4df,v4df,v4df)
  42836. v8sf __builtin_ia32_blendvps256 (v8sf,v8sf,v8sf)
  42837. v2df __builtin_ia32_cmppd (v2df,v2df,int)
  42838. v4df __builtin_ia32_cmppd256 (v4df,v4df,int)
  42839. v4sf __builtin_ia32_cmpps (v4sf,v4sf,int)
  42840. v8sf __builtin_ia32_cmpps256 (v8sf,v8sf,int)
  42841. v2df __builtin_ia32_cmpsd (v2df,v2df,int)
  42842. v4sf __builtin_ia32_cmpss (v4sf,v4sf,int)
  42843. v4df __builtin_ia32_cvtdq2pd256 (v4si)
  42844. v8sf __builtin_ia32_cvtdq2ps256 (v8si)
  42845. v4si __builtin_ia32_cvtpd2dq256 (v4df)
  42846. v4sf __builtin_ia32_cvtpd2ps256 (v4df)
  42847. v8si __builtin_ia32_cvtps2dq256 (v8sf)
  42848. v4df __builtin_ia32_cvtps2pd256 (v4sf)
  42849. v4si __builtin_ia32_cvttpd2dq256 (v4df)
  42850. v8si __builtin_ia32_cvttps2dq256 (v8sf)
  42851. v4df __builtin_ia32_divpd256 (v4df,v4df)
  42852. v8sf __builtin_ia32_divps256 (v8sf,v8sf)
  42853. v8sf __builtin_ia32_dpps256 (v8sf,v8sf,int)
  42854. v4df __builtin_ia32_haddpd256 (v4df,v4df)
  42855. v8sf __builtin_ia32_haddps256 (v8sf,v8sf)
  42856. v4df __builtin_ia32_hsubpd256 (v4df,v4df)
  42857. v8sf __builtin_ia32_hsubps256 (v8sf,v8sf)
  42858. v32qi __builtin_ia32_lddqu256 (pcchar)
  42859. v32qi __builtin_ia32_loaddqu256 (pcchar)
  42860. v4df __builtin_ia32_loadupd256 (pcdouble)
  42861. v8sf __builtin_ia32_loadups256 (pcfloat)
  42862. v2df __builtin_ia32_maskloadpd (pcv2df,v2df)
  42863. v4df __builtin_ia32_maskloadpd256 (pcv4df,v4df)
  42864. v4sf __builtin_ia32_maskloadps (pcv4sf,v4sf)
  42865. v8sf __builtin_ia32_maskloadps256 (pcv8sf,v8sf)
  42866. void __builtin_ia32_maskstorepd (pv2df,v2df,v2df)
  42867. void __builtin_ia32_maskstorepd256 (pv4df,v4df,v4df)
  42868. void __builtin_ia32_maskstoreps (pv4sf,v4sf,v4sf)
  42869. void __builtin_ia32_maskstoreps256 (pv8sf,v8sf,v8sf)
  42870. v4df __builtin_ia32_maxpd256 (v4df,v4df)
  42871. v8sf __builtin_ia32_maxps256 (v8sf,v8sf)
  42872. v4df __builtin_ia32_minpd256 (v4df,v4df)
  42873. v8sf __builtin_ia32_minps256 (v8sf,v8sf)
  42874. v4df __builtin_ia32_movddup256 (v4df)
  42875. int __builtin_ia32_movmskpd256 (v4df)
  42876. int __builtin_ia32_movmskps256 (v8sf)
  42877. v8sf __builtin_ia32_movshdup256 (v8sf)
  42878. v8sf __builtin_ia32_movsldup256 (v8sf)
  42879. v4df __builtin_ia32_mulpd256 (v4df,v4df)
  42880. v8sf __builtin_ia32_mulps256 (v8sf,v8sf)
  42881. v4df __builtin_ia32_orpd256 (v4df,v4df)
  42882. v8sf __builtin_ia32_orps256 (v8sf,v8sf)
  42883. v2df __builtin_ia32_pd_pd256 (v4df)
  42884. v4df __builtin_ia32_pd256_pd (v2df)
  42885. v4sf __builtin_ia32_ps_ps256 (v8sf)
  42886. v8sf __builtin_ia32_ps256_ps (v4sf)
  42887. int __builtin_ia32_ptestc256 (v4di,v4di,ptest)
  42888. int __builtin_ia32_ptestnzc256 (v4di,v4di,ptest)
  42889. int __builtin_ia32_ptestz256 (v4di,v4di,ptest)
  42890. v8sf __builtin_ia32_rcpps256 (v8sf)
  42891. v4df __builtin_ia32_roundpd256 (v4df,int)
  42892. v8sf __builtin_ia32_roundps256 (v8sf,int)
  42893. v8sf __builtin_ia32_rsqrtps_nr256 (v8sf)
  42894. v8sf __builtin_ia32_rsqrtps256 (v8sf)
  42895. v4df __builtin_ia32_shufpd256 (v4df,v4df,int)
  42896. v8sf __builtin_ia32_shufps256 (v8sf,v8sf,int)
  42897. v4si __builtin_ia32_si_si256 (v8si)
  42898. v8si __builtin_ia32_si256_si (v4si)
  42899. v4df __builtin_ia32_sqrtpd256 (v4df)
  42900. v8sf __builtin_ia32_sqrtps_nr256 (v8sf)
  42901. v8sf __builtin_ia32_sqrtps256 (v8sf)
  42902. void __builtin_ia32_storedqu256 (pchar,v32qi)
  42903. void __builtin_ia32_storeupd256 (pdouble,v4df)
  42904. void __builtin_ia32_storeups256 (pfloat,v8sf)
  42905. v4df __builtin_ia32_subpd256 (v4df,v4df)
  42906. v8sf __builtin_ia32_subps256 (v8sf,v8sf)
  42907. v4df __builtin_ia32_unpckhpd256 (v4df,v4df)
  42908. v8sf __builtin_ia32_unpckhps256 (v8sf,v8sf)
  42909. v4df __builtin_ia32_unpcklpd256 (v4df,v4df)
  42910. v8sf __builtin_ia32_unpcklps256 (v8sf,v8sf)
  42911. v4df __builtin_ia32_vbroadcastf128_pd256 (pcv2df)
  42912. v8sf __builtin_ia32_vbroadcastf128_ps256 (pcv4sf)
  42913. v4df __builtin_ia32_vbroadcastsd256 (pcdouble)
  42914. v4sf __builtin_ia32_vbroadcastss (pcfloat)
  42915. v8sf __builtin_ia32_vbroadcastss256 (pcfloat)
  42916. v2df __builtin_ia32_vextractf128_pd256 (v4df,int)
  42917. v4sf __builtin_ia32_vextractf128_ps256 (v8sf,int)
  42918. v4si __builtin_ia32_vextractf128_si256 (v8si,int)
  42919. v4df __builtin_ia32_vinsertf128_pd256 (v4df,v2df,int)
  42920. v8sf __builtin_ia32_vinsertf128_ps256 (v8sf,v4sf,int)
  42921. v8si __builtin_ia32_vinsertf128_si256 (v8si,v4si,int)
  42922. v4df __builtin_ia32_vperm2f128_pd256 (v4df,v4df,int)
  42923. v8sf __builtin_ia32_vperm2f128_ps256 (v8sf,v8sf,int)
  42924. v8si __builtin_ia32_vperm2f128_si256 (v8si,v8si,int)
  42925. v2df __builtin_ia32_vpermil2pd (v2df,v2df,v2di,int)
  42926. v4df __builtin_ia32_vpermil2pd256 (v4df,v4df,v4di,int)
  42927. v4sf __builtin_ia32_vpermil2ps (v4sf,v4sf,v4si,int)
  42928. v8sf __builtin_ia32_vpermil2ps256 (v8sf,v8sf,v8si,int)
  42929. v2df __builtin_ia32_vpermilpd (v2df,int)
  42930. v4df __builtin_ia32_vpermilpd256 (v4df,int)
  42931. v4sf __builtin_ia32_vpermilps (v4sf,int)
  42932. v8sf __builtin_ia32_vpermilps256 (v8sf,int)
  42933. v2df __builtin_ia32_vpermilvarpd (v2df,v2di)
  42934. v4df __builtin_ia32_vpermilvarpd256 (v4df,v4di)
  42935. v4sf __builtin_ia32_vpermilvarps (v4sf,v4si)
  42936. v8sf __builtin_ia32_vpermilvarps256 (v8sf,v8si)
  42937. int __builtin_ia32_vtestcpd (v2df,v2df,ptest)
  42938. int __builtin_ia32_vtestcpd256 (v4df,v4df,ptest)
  42939. int __builtin_ia32_vtestcps (v4sf,v4sf,ptest)
  42940. int __builtin_ia32_vtestcps256 (v8sf,v8sf,ptest)
  42941. int __builtin_ia32_vtestnzcpd (v2df,v2df,ptest)
  42942. int __builtin_ia32_vtestnzcpd256 (v4df,v4df,ptest)
  42943. int __builtin_ia32_vtestnzcps (v4sf,v4sf,ptest)
  42944. int __builtin_ia32_vtestnzcps256 (v8sf,v8sf,ptest)
  42945. int __builtin_ia32_vtestzpd (v2df,v2df,ptest)
  42946. int __builtin_ia32_vtestzpd256 (v4df,v4df,ptest)
  42947. int __builtin_ia32_vtestzps (v4sf,v4sf,ptest)
  42948. int __builtin_ia32_vtestzps256 (v8sf,v8sf,ptest)
  42949. void __builtin_ia32_vzeroall (void)
  42950. void __builtin_ia32_vzeroupper (void)
  42951. v4df __builtin_ia32_xorpd256 (v4df,v4df)
  42952. v8sf __builtin_ia32_xorps256 (v8sf,v8sf)
  42953. The following built-in functions are available when '-mavx2' is used.
  42954. All of them generate the machine instruction that is part of the name.
  42955. v32qi __builtin_ia32_mpsadbw256 (v32qi,v32qi,int)
  42956. v32qi __builtin_ia32_pabsb256 (v32qi)
  42957. v16hi __builtin_ia32_pabsw256 (v16hi)
  42958. v8si __builtin_ia32_pabsd256 (v8si)
  42959. v16hi __builtin_ia32_packssdw256 (v8si,v8si)
  42960. v32qi __builtin_ia32_packsswb256 (v16hi,v16hi)
  42961. v16hi __builtin_ia32_packusdw256 (v8si,v8si)
  42962. v32qi __builtin_ia32_packuswb256 (v16hi,v16hi)
  42963. v32qi __builtin_ia32_paddb256 (v32qi,v32qi)
  42964. v16hi __builtin_ia32_paddw256 (v16hi,v16hi)
  42965. v8si __builtin_ia32_paddd256 (v8si,v8si)
  42966. v4di __builtin_ia32_paddq256 (v4di,v4di)
  42967. v32qi __builtin_ia32_paddsb256 (v32qi,v32qi)
  42968. v16hi __builtin_ia32_paddsw256 (v16hi,v16hi)
  42969. v32qi __builtin_ia32_paddusb256 (v32qi,v32qi)
  42970. v16hi __builtin_ia32_paddusw256 (v16hi,v16hi)
  42971. v4di __builtin_ia32_palignr256 (v4di,v4di,int)
  42972. v4di __builtin_ia32_andsi256 (v4di,v4di)
  42973. v4di __builtin_ia32_andnotsi256 (v4di,v4di)
  42974. v32qi __builtin_ia32_pavgb256 (v32qi,v32qi)
  42975. v16hi __builtin_ia32_pavgw256 (v16hi,v16hi)
  42976. v32qi __builtin_ia32_pblendvb256 (v32qi,v32qi,v32qi)
  42977. v16hi __builtin_ia32_pblendw256 (v16hi,v16hi,int)
  42978. v32qi __builtin_ia32_pcmpeqb256 (v32qi,v32qi)
  42979. v16hi __builtin_ia32_pcmpeqw256 (v16hi,v16hi)
  42980. v8si __builtin_ia32_pcmpeqd256 (c8si,v8si)
  42981. v4di __builtin_ia32_pcmpeqq256 (v4di,v4di)
  42982. v32qi __builtin_ia32_pcmpgtb256 (v32qi,v32qi)
  42983. v16hi __builtin_ia32_pcmpgtw256 (16hi,v16hi)
  42984. v8si __builtin_ia32_pcmpgtd256 (v8si,v8si)
  42985. v4di __builtin_ia32_pcmpgtq256 (v4di,v4di)
  42986. v16hi __builtin_ia32_phaddw256 (v16hi,v16hi)
  42987. v8si __builtin_ia32_phaddd256 (v8si,v8si)
  42988. v16hi __builtin_ia32_phaddsw256 (v16hi,v16hi)
  42989. v16hi __builtin_ia32_phsubw256 (v16hi,v16hi)
  42990. v8si __builtin_ia32_phsubd256 (v8si,v8si)
  42991. v16hi __builtin_ia32_phsubsw256 (v16hi,v16hi)
  42992. v32qi __builtin_ia32_pmaddubsw256 (v32qi,v32qi)
  42993. v16hi __builtin_ia32_pmaddwd256 (v16hi,v16hi)
  42994. v32qi __builtin_ia32_pmaxsb256 (v32qi,v32qi)
  42995. v16hi __builtin_ia32_pmaxsw256 (v16hi,v16hi)
  42996. v8si __builtin_ia32_pmaxsd256 (v8si,v8si)
  42997. v32qi __builtin_ia32_pmaxub256 (v32qi,v32qi)
  42998. v16hi __builtin_ia32_pmaxuw256 (v16hi,v16hi)
  42999. v8si __builtin_ia32_pmaxud256 (v8si,v8si)
  43000. v32qi __builtin_ia32_pminsb256 (v32qi,v32qi)
  43001. v16hi __builtin_ia32_pminsw256 (v16hi,v16hi)
  43002. v8si __builtin_ia32_pminsd256 (v8si,v8si)
  43003. v32qi __builtin_ia32_pminub256 (v32qi,v32qi)
  43004. v16hi __builtin_ia32_pminuw256 (v16hi,v16hi)
  43005. v8si __builtin_ia32_pminud256 (v8si,v8si)
  43006. int __builtin_ia32_pmovmskb256 (v32qi)
  43007. v16hi __builtin_ia32_pmovsxbw256 (v16qi)
  43008. v8si __builtin_ia32_pmovsxbd256 (v16qi)
  43009. v4di __builtin_ia32_pmovsxbq256 (v16qi)
  43010. v8si __builtin_ia32_pmovsxwd256 (v8hi)
  43011. v4di __builtin_ia32_pmovsxwq256 (v8hi)
  43012. v4di __builtin_ia32_pmovsxdq256 (v4si)
  43013. v16hi __builtin_ia32_pmovzxbw256 (v16qi)
  43014. v8si __builtin_ia32_pmovzxbd256 (v16qi)
  43015. v4di __builtin_ia32_pmovzxbq256 (v16qi)
  43016. v8si __builtin_ia32_pmovzxwd256 (v8hi)
  43017. v4di __builtin_ia32_pmovzxwq256 (v8hi)
  43018. v4di __builtin_ia32_pmovzxdq256 (v4si)
  43019. v4di __builtin_ia32_pmuldq256 (v8si,v8si)
  43020. v16hi __builtin_ia32_pmulhrsw256 (v16hi, v16hi)
  43021. v16hi __builtin_ia32_pmulhuw256 (v16hi,v16hi)
  43022. v16hi __builtin_ia32_pmulhw256 (v16hi,v16hi)
  43023. v16hi __builtin_ia32_pmullw256 (v16hi,v16hi)
  43024. v8si __builtin_ia32_pmulld256 (v8si,v8si)
  43025. v4di __builtin_ia32_pmuludq256 (v8si,v8si)
  43026. v4di __builtin_ia32_por256 (v4di,v4di)
  43027. v16hi __builtin_ia32_psadbw256 (v32qi,v32qi)
  43028. v32qi __builtin_ia32_pshufb256 (v32qi,v32qi)
  43029. v8si __builtin_ia32_pshufd256 (v8si,int)
  43030. v16hi __builtin_ia32_pshufhw256 (v16hi,int)
  43031. v16hi __builtin_ia32_pshuflw256 (v16hi,int)
  43032. v32qi __builtin_ia32_psignb256 (v32qi,v32qi)
  43033. v16hi __builtin_ia32_psignw256 (v16hi,v16hi)
  43034. v8si __builtin_ia32_psignd256 (v8si,v8si)
  43035. v4di __builtin_ia32_pslldqi256 (v4di,int)
  43036. v16hi __builtin_ia32_psllwi256 (16hi,int)
  43037. v16hi __builtin_ia32_psllw256(v16hi,v8hi)
  43038. v8si __builtin_ia32_pslldi256 (v8si,int)
  43039. v8si __builtin_ia32_pslld256(v8si,v4si)
  43040. v4di __builtin_ia32_psllqi256 (v4di,int)
  43041. v4di __builtin_ia32_psllq256(v4di,v2di)
  43042. v16hi __builtin_ia32_psrawi256 (v16hi,int)
  43043. v16hi __builtin_ia32_psraw256 (v16hi,v8hi)
  43044. v8si __builtin_ia32_psradi256 (v8si,int)
  43045. v8si __builtin_ia32_psrad256 (v8si,v4si)
  43046. v4di __builtin_ia32_psrldqi256 (v4di, int)
  43047. v16hi __builtin_ia32_psrlwi256 (v16hi,int)
  43048. v16hi __builtin_ia32_psrlw256 (v16hi,v8hi)
  43049. v8si __builtin_ia32_psrldi256 (v8si,int)
  43050. v8si __builtin_ia32_psrld256 (v8si,v4si)
  43051. v4di __builtin_ia32_psrlqi256 (v4di,int)
  43052. v4di __builtin_ia32_psrlq256(v4di,v2di)
  43053. v32qi __builtin_ia32_psubb256 (v32qi,v32qi)
  43054. v32hi __builtin_ia32_psubw256 (v16hi,v16hi)
  43055. v8si __builtin_ia32_psubd256 (v8si,v8si)
  43056. v4di __builtin_ia32_psubq256 (v4di,v4di)
  43057. v32qi __builtin_ia32_psubsb256 (v32qi,v32qi)
  43058. v16hi __builtin_ia32_psubsw256 (v16hi,v16hi)
  43059. v32qi __builtin_ia32_psubusb256 (v32qi,v32qi)
  43060. v16hi __builtin_ia32_psubusw256 (v16hi,v16hi)
  43061. v32qi __builtin_ia32_punpckhbw256 (v32qi,v32qi)
  43062. v16hi __builtin_ia32_punpckhwd256 (v16hi,v16hi)
  43063. v8si __builtin_ia32_punpckhdq256 (v8si,v8si)
  43064. v4di __builtin_ia32_punpckhqdq256 (v4di,v4di)
  43065. v32qi __builtin_ia32_punpcklbw256 (v32qi,v32qi)
  43066. v16hi __builtin_ia32_punpcklwd256 (v16hi,v16hi)
  43067. v8si __builtin_ia32_punpckldq256 (v8si,v8si)
  43068. v4di __builtin_ia32_punpcklqdq256 (v4di,v4di)
  43069. v4di __builtin_ia32_pxor256 (v4di,v4di)
  43070. v4di __builtin_ia32_movntdqa256 (pv4di)
  43071. v4sf __builtin_ia32_vbroadcastss_ps (v4sf)
  43072. v8sf __builtin_ia32_vbroadcastss_ps256 (v4sf)
  43073. v4df __builtin_ia32_vbroadcastsd_pd256 (v2df)
  43074. v4di __builtin_ia32_vbroadcastsi256 (v2di)
  43075. v4si __builtin_ia32_pblendd128 (v4si,v4si)
  43076. v8si __builtin_ia32_pblendd256 (v8si,v8si)
  43077. v32qi __builtin_ia32_pbroadcastb256 (v16qi)
  43078. v16hi __builtin_ia32_pbroadcastw256 (v8hi)
  43079. v8si __builtin_ia32_pbroadcastd256 (v4si)
  43080. v4di __builtin_ia32_pbroadcastq256 (v2di)
  43081. v16qi __builtin_ia32_pbroadcastb128 (v16qi)
  43082. v8hi __builtin_ia32_pbroadcastw128 (v8hi)
  43083. v4si __builtin_ia32_pbroadcastd128 (v4si)
  43084. v2di __builtin_ia32_pbroadcastq128 (v2di)
  43085. v8si __builtin_ia32_permvarsi256 (v8si,v8si)
  43086. v4df __builtin_ia32_permdf256 (v4df,int)
  43087. v8sf __builtin_ia32_permvarsf256 (v8sf,v8sf)
  43088. v4di __builtin_ia32_permdi256 (v4di,int)
  43089. v4di __builtin_ia32_permti256 (v4di,v4di,int)
  43090. v4di __builtin_ia32_extract128i256 (v4di,int)
  43091. v4di __builtin_ia32_insert128i256 (v4di,v2di,int)
  43092. v8si __builtin_ia32_maskloadd256 (pcv8si,v8si)
  43093. v4di __builtin_ia32_maskloadq256 (pcv4di,v4di)
  43094. v4si __builtin_ia32_maskloadd (pcv4si,v4si)
  43095. v2di __builtin_ia32_maskloadq (pcv2di,v2di)
  43096. void __builtin_ia32_maskstored256 (pv8si,v8si,v8si)
  43097. void __builtin_ia32_maskstoreq256 (pv4di,v4di,v4di)
  43098. void __builtin_ia32_maskstored (pv4si,v4si,v4si)
  43099. void __builtin_ia32_maskstoreq (pv2di,v2di,v2di)
  43100. v8si __builtin_ia32_psllv8si (v8si,v8si)
  43101. v4si __builtin_ia32_psllv4si (v4si,v4si)
  43102. v4di __builtin_ia32_psllv4di (v4di,v4di)
  43103. v2di __builtin_ia32_psllv2di (v2di,v2di)
  43104. v8si __builtin_ia32_psrav8si (v8si,v8si)
  43105. v4si __builtin_ia32_psrav4si (v4si,v4si)
  43106. v8si __builtin_ia32_psrlv8si (v8si,v8si)
  43107. v4si __builtin_ia32_psrlv4si (v4si,v4si)
  43108. v4di __builtin_ia32_psrlv4di (v4di,v4di)
  43109. v2di __builtin_ia32_psrlv2di (v2di,v2di)
  43110. v2df __builtin_ia32_gathersiv2df (v2df, pcdouble,v4si,v2df,int)
  43111. v4df __builtin_ia32_gathersiv4df (v4df, pcdouble,v4si,v4df,int)
  43112. v2df __builtin_ia32_gatherdiv2df (v2df, pcdouble,v2di,v2df,int)
  43113. v4df __builtin_ia32_gatherdiv4df (v4df, pcdouble,v4di,v4df,int)
  43114. v4sf __builtin_ia32_gathersiv4sf (v4sf, pcfloat,v4si,v4sf,int)
  43115. v8sf __builtin_ia32_gathersiv8sf (v8sf, pcfloat,v8si,v8sf,int)
  43116. v4sf __builtin_ia32_gatherdiv4sf (v4sf, pcfloat,v2di,v4sf,int)
  43117. v4sf __builtin_ia32_gatherdiv4sf256 (v4sf, pcfloat,v4di,v4sf,int)
  43118. v2di __builtin_ia32_gathersiv2di (v2di, pcint64,v4si,v2di,int)
  43119. v4di __builtin_ia32_gathersiv4di (v4di, pcint64,v4si,v4di,int)
  43120. v2di __builtin_ia32_gatherdiv2di (v2di, pcint64,v2di,v2di,int)
  43121. v4di __builtin_ia32_gatherdiv4di (v4di, pcint64,v4di,v4di,int)
  43122. v4si __builtin_ia32_gathersiv4si (v4si, pcint,v4si,v4si,int)
  43123. v8si __builtin_ia32_gathersiv8si (v8si, pcint,v8si,v8si,int)
  43124. v4si __builtin_ia32_gatherdiv4si (v4si, pcint,v2di,v4si,int)
  43125. v4si __builtin_ia32_gatherdiv4si256 (v4si, pcint,v4di,v4si,int)
  43126. The following built-in functions are available when '-maes' is used.
  43127. All of them generate the machine instruction that is part of the name.
  43128. v2di __builtin_ia32_aesenc128 (v2di, v2di)
  43129. v2di __builtin_ia32_aesenclast128 (v2di, v2di)
  43130. v2di __builtin_ia32_aesdec128 (v2di, v2di)
  43131. v2di __builtin_ia32_aesdeclast128 (v2di, v2di)
  43132. v2di __builtin_ia32_aeskeygenassist128 (v2di, const int)
  43133. v2di __builtin_ia32_aesimc128 (v2di)
  43134. The following built-in function is available when '-mpclmul' is used.
  43135. 'v2di __builtin_ia32_pclmulqdq128 (v2di, v2di, const int)'
  43136. Generates the 'pclmulqdq' machine instruction.
  43137. The following built-in function is available when '-mfsgsbase' is used.
  43138. All of them generate the machine instruction that is part of the name.
  43139. unsigned int __builtin_ia32_rdfsbase32 (void)
  43140. unsigned long long __builtin_ia32_rdfsbase64 (void)
  43141. unsigned int __builtin_ia32_rdgsbase32 (void)
  43142. unsigned long long __builtin_ia32_rdgsbase64 (void)
  43143. void _writefsbase_u32 (unsigned int)
  43144. void _writefsbase_u64 (unsigned long long)
  43145. void _writegsbase_u32 (unsigned int)
  43146. void _writegsbase_u64 (unsigned long long)
  43147. The following built-in function is available when '-mrdrnd' is used.
  43148. All of them generate the machine instruction that is part of the name.
  43149. unsigned int __builtin_ia32_rdrand16_step (unsigned short *)
  43150. unsigned int __builtin_ia32_rdrand32_step (unsigned int *)
  43151. unsigned int __builtin_ia32_rdrand64_step (unsigned long long *)
  43152. The following built-in function is available when '-mptwrite' is used.
  43153. All of them generate the machine instruction that is part of the name.
  43154. void __builtin_ia32_ptwrite32 (unsigned)
  43155. void __builtin_ia32_ptwrite64 (unsigned long long)
  43156. The following built-in functions are available when '-msse4a' is used.
  43157. All of them generate the machine instruction that is part of the name.
  43158. void __builtin_ia32_movntsd (double *, v2df)
  43159. void __builtin_ia32_movntss (float *, v4sf)
  43160. v2di __builtin_ia32_extrq (v2di, v16qi)
  43161. v2di __builtin_ia32_extrqi (v2di, const unsigned int, const unsigned int)
  43162. v2di __builtin_ia32_insertq (v2di, v2di)
  43163. v2di __builtin_ia32_insertqi (v2di, v2di, const unsigned int, const unsigned int)
  43164. The following built-in functions are available when '-mxop' is used.
  43165. v2df __builtin_ia32_vfrczpd (v2df)
  43166. v4sf __builtin_ia32_vfrczps (v4sf)
  43167. v2df __builtin_ia32_vfrczsd (v2df)
  43168. v4sf __builtin_ia32_vfrczss (v4sf)
  43169. v4df __builtin_ia32_vfrczpd256 (v4df)
  43170. v8sf __builtin_ia32_vfrczps256 (v8sf)
  43171. v2di __builtin_ia32_vpcmov (v2di, v2di, v2di)
  43172. v2di __builtin_ia32_vpcmov_v2di (v2di, v2di, v2di)
  43173. v4si __builtin_ia32_vpcmov_v4si (v4si, v4si, v4si)
  43174. v8hi __builtin_ia32_vpcmov_v8hi (v8hi, v8hi, v8hi)
  43175. v16qi __builtin_ia32_vpcmov_v16qi (v16qi, v16qi, v16qi)
  43176. v2df __builtin_ia32_vpcmov_v2df (v2df, v2df, v2df)
  43177. v4sf __builtin_ia32_vpcmov_v4sf (v4sf, v4sf, v4sf)
  43178. v4di __builtin_ia32_vpcmov_v4di256 (v4di, v4di, v4di)
  43179. v8si __builtin_ia32_vpcmov_v8si256 (v8si, v8si, v8si)
  43180. v16hi __builtin_ia32_vpcmov_v16hi256 (v16hi, v16hi, v16hi)
  43181. v32qi __builtin_ia32_vpcmov_v32qi256 (v32qi, v32qi, v32qi)
  43182. v4df __builtin_ia32_vpcmov_v4df256 (v4df, v4df, v4df)
  43183. v8sf __builtin_ia32_vpcmov_v8sf256 (v8sf, v8sf, v8sf)
  43184. v16qi __builtin_ia32_vpcomeqb (v16qi, v16qi)
  43185. v8hi __builtin_ia32_vpcomeqw (v8hi, v8hi)
  43186. v4si __builtin_ia32_vpcomeqd (v4si, v4si)
  43187. v2di __builtin_ia32_vpcomeqq (v2di, v2di)
  43188. v16qi __builtin_ia32_vpcomequb (v16qi, v16qi)
  43189. v4si __builtin_ia32_vpcomequd (v4si, v4si)
  43190. v2di __builtin_ia32_vpcomequq (v2di, v2di)
  43191. v8hi __builtin_ia32_vpcomequw (v8hi, v8hi)
  43192. v8hi __builtin_ia32_vpcomeqw (v8hi, v8hi)
  43193. v16qi __builtin_ia32_vpcomfalseb (v16qi, v16qi)
  43194. v4si __builtin_ia32_vpcomfalsed (v4si, v4si)
  43195. v2di __builtin_ia32_vpcomfalseq (v2di, v2di)
  43196. v16qi __builtin_ia32_vpcomfalseub (v16qi, v16qi)
  43197. v4si __builtin_ia32_vpcomfalseud (v4si, v4si)
  43198. v2di __builtin_ia32_vpcomfalseuq (v2di, v2di)
  43199. v8hi __builtin_ia32_vpcomfalseuw (v8hi, v8hi)
  43200. v8hi __builtin_ia32_vpcomfalsew (v8hi, v8hi)
  43201. v16qi __builtin_ia32_vpcomgeb (v16qi, v16qi)
  43202. v4si __builtin_ia32_vpcomged (v4si, v4si)
  43203. v2di __builtin_ia32_vpcomgeq (v2di, v2di)
  43204. v16qi __builtin_ia32_vpcomgeub (v16qi, v16qi)
  43205. v4si __builtin_ia32_vpcomgeud (v4si, v4si)
  43206. v2di __builtin_ia32_vpcomgeuq (v2di, v2di)
  43207. v8hi __builtin_ia32_vpcomgeuw (v8hi, v8hi)
  43208. v8hi __builtin_ia32_vpcomgew (v8hi, v8hi)
  43209. v16qi __builtin_ia32_vpcomgtb (v16qi, v16qi)
  43210. v4si __builtin_ia32_vpcomgtd (v4si, v4si)
  43211. v2di __builtin_ia32_vpcomgtq (v2di, v2di)
  43212. v16qi __builtin_ia32_vpcomgtub (v16qi, v16qi)
  43213. v4si __builtin_ia32_vpcomgtud (v4si, v4si)
  43214. v2di __builtin_ia32_vpcomgtuq (v2di, v2di)
  43215. v8hi __builtin_ia32_vpcomgtuw (v8hi, v8hi)
  43216. v8hi __builtin_ia32_vpcomgtw (v8hi, v8hi)
  43217. v16qi __builtin_ia32_vpcomleb (v16qi, v16qi)
  43218. v4si __builtin_ia32_vpcomled (v4si, v4si)
  43219. v2di __builtin_ia32_vpcomleq (v2di, v2di)
  43220. v16qi __builtin_ia32_vpcomleub (v16qi, v16qi)
  43221. v4si __builtin_ia32_vpcomleud (v4si, v4si)
  43222. v2di __builtin_ia32_vpcomleuq (v2di, v2di)
  43223. v8hi __builtin_ia32_vpcomleuw (v8hi, v8hi)
  43224. v8hi __builtin_ia32_vpcomlew (v8hi, v8hi)
  43225. v16qi __builtin_ia32_vpcomltb (v16qi, v16qi)
  43226. v4si __builtin_ia32_vpcomltd (v4si, v4si)
  43227. v2di __builtin_ia32_vpcomltq (v2di, v2di)
  43228. v16qi __builtin_ia32_vpcomltub (v16qi, v16qi)
  43229. v4si __builtin_ia32_vpcomltud (v4si, v4si)
  43230. v2di __builtin_ia32_vpcomltuq (v2di, v2di)
  43231. v8hi __builtin_ia32_vpcomltuw (v8hi, v8hi)
  43232. v8hi __builtin_ia32_vpcomltw (v8hi, v8hi)
  43233. v16qi __builtin_ia32_vpcomneb (v16qi, v16qi)
  43234. v4si __builtin_ia32_vpcomned (v4si, v4si)
  43235. v2di __builtin_ia32_vpcomneq (v2di, v2di)
  43236. v16qi __builtin_ia32_vpcomneub (v16qi, v16qi)
  43237. v4si __builtin_ia32_vpcomneud (v4si, v4si)
  43238. v2di __builtin_ia32_vpcomneuq (v2di, v2di)
  43239. v8hi __builtin_ia32_vpcomneuw (v8hi, v8hi)
  43240. v8hi __builtin_ia32_vpcomnew (v8hi, v8hi)
  43241. v16qi __builtin_ia32_vpcomtrueb (v16qi, v16qi)
  43242. v4si __builtin_ia32_vpcomtrued (v4si, v4si)
  43243. v2di __builtin_ia32_vpcomtrueq (v2di, v2di)
  43244. v16qi __builtin_ia32_vpcomtrueub (v16qi, v16qi)
  43245. v4si __builtin_ia32_vpcomtrueud (v4si, v4si)
  43246. v2di __builtin_ia32_vpcomtrueuq (v2di, v2di)
  43247. v8hi __builtin_ia32_vpcomtrueuw (v8hi, v8hi)
  43248. v8hi __builtin_ia32_vpcomtruew (v8hi, v8hi)
  43249. v4si __builtin_ia32_vphaddbd (v16qi)
  43250. v2di __builtin_ia32_vphaddbq (v16qi)
  43251. v8hi __builtin_ia32_vphaddbw (v16qi)
  43252. v2di __builtin_ia32_vphadddq (v4si)
  43253. v4si __builtin_ia32_vphaddubd (v16qi)
  43254. v2di __builtin_ia32_vphaddubq (v16qi)
  43255. v8hi __builtin_ia32_vphaddubw (v16qi)
  43256. v2di __builtin_ia32_vphaddudq (v4si)
  43257. v4si __builtin_ia32_vphadduwd (v8hi)
  43258. v2di __builtin_ia32_vphadduwq (v8hi)
  43259. v4si __builtin_ia32_vphaddwd (v8hi)
  43260. v2di __builtin_ia32_vphaddwq (v8hi)
  43261. v8hi __builtin_ia32_vphsubbw (v16qi)
  43262. v2di __builtin_ia32_vphsubdq (v4si)
  43263. v4si __builtin_ia32_vphsubwd (v8hi)
  43264. v4si __builtin_ia32_vpmacsdd (v4si, v4si, v4si)
  43265. v2di __builtin_ia32_vpmacsdqh (v4si, v4si, v2di)
  43266. v2di __builtin_ia32_vpmacsdql (v4si, v4si, v2di)
  43267. v4si __builtin_ia32_vpmacssdd (v4si, v4si, v4si)
  43268. v2di __builtin_ia32_vpmacssdqh (v4si, v4si, v2di)
  43269. v2di __builtin_ia32_vpmacssdql (v4si, v4si, v2di)
  43270. v4si __builtin_ia32_vpmacsswd (v8hi, v8hi, v4si)
  43271. v8hi __builtin_ia32_vpmacssww (v8hi, v8hi, v8hi)
  43272. v4si __builtin_ia32_vpmacswd (v8hi, v8hi, v4si)
  43273. v8hi __builtin_ia32_vpmacsww (v8hi, v8hi, v8hi)
  43274. v4si __builtin_ia32_vpmadcsswd (v8hi, v8hi, v4si)
  43275. v4si __builtin_ia32_vpmadcswd (v8hi, v8hi, v4si)
  43276. v16qi __builtin_ia32_vpperm (v16qi, v16qi, v16qi)
  43277. v16qi __builtin_ia32_vprotb (v16qi, v16qi)
  43278. v4si __builtin_ia32_vprotd (v4si, v4si)
  43279. v2di __builtin_ia32_vprotq (v2di, v2di)
  43280. v8hi __builtin_ia32_vprotw (v8hi, v8hi)
  43281. v16qi __builtin_ia32_vpshab (v16qi, v16qi)
  43282. v4si __builtin_ia32_vpshad (v4si, v4si)
  43283. v2di __builtin_ia32_vpshaq (v2di, v2di)
  43284. v8hi __builtin_ia32_vpshaw (v8hi, v8hi)
  43285. v16qi __builtin_ia32_vpshlb (v16qi, v16qi)
  43286. v4si __builtin_ia32_vpshld (v4si, v4si)
  43287. v2di __builtin_ia32_vpshlq (v2di, v2di)
  43288. v8hi __builtin_ia32_vpshlw (v8hi, v8hi)
  43289. The following built-in functions are available when '-mfma4' is used.
  43290. All of them generate the machine instruction that is part of the name.
  43291. v2df __builtin_ia32_vfmaddpd (v2df, v2df, v2df)
  43292. v4sf __builtin_ia32_vfmaddps (v4sf, v4sf, v4sf)
  43293. v2df __builtin_ia32_vfmaddsd (v2df, v2df, v2df)
  43294. v4sf __builtin_ia32_vfmaddss (v4sf, v4sf, v4sf)
  43295. v2df __builtin_ia32_vfmsubpd (v2df, v2df, v2df)
  43296. v4sf __builtin_ia32_vfmsubps (v4sf, v4sf, v4sf)
  43297. v2df __builtin_ia32_vfmsubsd (v2df, v2df, v2df)
  43298. v4sf __builtin_ia32_vfmsubss (v4sf, v4sf, v4sf)
  43299. v2df __builtin_ia32_vfnmaddpd (v2df, v2df, v2df)
  43300. v4sf __builtin_ia32_vfnmaddps (v4sf, v4sf, v4sf)
  43301. v2df __builtin_ia32_vfnmaddsd (v2df, v2df, v2df)
  43302. v4sf __builtin_ia32_vfnmaddss (v4sf, v4sf, v4sf)
  43303. v2df __builtin_ia32_vfnmsubpd (v2df, v2df, v2df)
  43304. v4sf __builtin_ia32_vfnmsubps (v4sf, v4sf, v4sf)
  43305. v2df __builtin_ia32_vfnmsubsd (v2df, v2df, v2df)
  43306. v4sf __builtin_ia32_vfnmsubss (v4sf, v4sf, v4sf)
  43307. v2df __builtin_ia32_vfmaddsubpd (v2df, v2df, v2df)
  43308. v4sf __builtin_ia32_vfmaddsubps (v4sf, v4sf, v4sf)
  43309. v2df __builtin_ia32_vfmsubaddpd (v2df, v2df, v2df)
  43310. v4sf __builtin_ia32_vfmsubaddps (v4sf, v4sf, v4sf)
  43311. v4df __builtin_ia32_vfmaddpd256 (v4df, v4df, v4df)
  43312. v8sf __builtin_ia32_vfmaddps256 (v8sf, v8sf, v8sf)
  43313. v4df __builtin_ia32_vfmsubpd256 (v4df, v4df, v4df)
  43314. v8sf __builtin_ia32_vfmsubps256 (v8sf, v8sf, v8sf)
  43315. v4df __builtin_ia32_vfnmaddpd256 (v4df, v4df, v4df)
  43316. v8sf __builtin_ia32_vfnmaddps256 (v8sf, v8sf, v8sf)
  43317. v4df __builtin_ia32_vfnmsubpd256 (v4df, v4df, v4df)
  43318. v8sf __builtin_ia32_vfnmsubps256 (v8sf, v8sf, v8sf)
  43319. v4df __builtin_ia32_vfmaddsubpd256 (v4df, v4df, v4df)
  43320. v8sf __builtin_ia32_vfmaddsubps256 (v8sf, v8sf, v8sf)
  43321. v4df __builtin_ia32_vfmsubaddpd256 (v4df, v4df, v4df)
  43322. v8sf __builtin_ia32_vfmsubaddps256 (v8sf, v8sf, v8sf)
  43323. The following built-in functions are available when '-mlwp' is used.
  43324. void __builtin_ia32_llwpcb16 (void *);
  43325. void __builtin_ia32_llwpcb32 (void *);
  43326. void __builtin_ia32_llwpcb64 (void *);
  43327. void * __builtin_ia32_llwpcb16 (void);
  43328. void * __builtin_ia32_llwpcb32 (void);
  43329. void * __builtin_ia32_llwpcb64 (void);
  43330. void __builtin_ia32_lwpval16 (unsigned short, unsigned int, unsigned short)
  43331. void __builtin_ia32_lwpval32 (unsigned int, unsigned int, unsigned int)
  43332. void __builtin_ia32_lwpval64 (unsigned __int64, unsigned int, unsigned int)
  43333. unsigned char __builtin_ia32_lwpins16 (unsigned short, unsigned int, unsigned short)
  43334. unsigned char __builtin_ia32_lwpins32 (unsigned int, unsigned int, unsigned int)
  43335. unsigned char __builtin_ia32_lwpins64 (unsigned __int64, unsigned int, unsigned int)
  43336. The following built-in functions are available when '-mbmi' is used.
  43337. All of them generate the machine instruction that is part of the name.
  43338. unsigned int __builtin_ia32_bextr_u32(unsigned int, unsigned int);
  43339. unsigned long long __builtin_ia32_bextr_u64 (unsigned long long, unsigned long long);
  43340. The following built-in functions are available when '-mbmi2' is used.
  43341. All of them generate the machine instruction that is part of the name.
  43342. unsigned int _bzhi_u32 (unsigned int, unsigned int)
  43343. unsigned int _pdep_u32 (unsigned int, unsigned int)
  43344. unsigned int _pext_u32 (unsigned int, unsigned int)
  43345. unsigned long long _bzhi_u64 (unsigned long long, unsigned long long)
  43346. unsigned long long _pdep_u64 (unsigned long long, unsigned long long)
  43347. unsigned long long _pext_u64 (unsigned long long, unsigned long long)
  43348. The following built-in functions are available when '-mlzcnt' is used.
  43349. All of them generate the machine instruction that is part of the name.
  43350. unsigned short __builtin_ia32_lzcnt_u16(unsigned short);
  43351. unsigned int __builtin_ia32_lzcnt_u32(unsigned int);
  43352. unsigned long long __builtin_ia32_lzcnt_u64 (unsigned long long);
  43353. The following built-in functions are available when '-mfxsr' is used.
  43354. All of them generate the machine instruction that is part of the name.
  43355. void __builtin_ia32_fxsave (void *)
  43356. void __builtin_ia32_fxrstor (void *)
  43357. void __builtin_ia32_fxsave64 (void *)
  43358. void __builtin_ia32_fxrstor64 (void *)
  43359. The following built-in functions are available when '-mxsave' is used.
  43360. All of them generate the machine instruction that is part of the name.
  43361. void __builtin_ia32_xsave (void *, long long)
  43362. void __builtin_ia32_xrstor (void *, long long)
  43363. void __builtin_ia32_xsave64 (void *, long long)
  43364. void __builtin_ia32_xrstor64 (void *, long long)
  43365. The following built-in functions are available when '-mxsaveopt' is
  43366. used. All of them generate the machine instruction that is part of the
  43367. name.
  43368. void __builtin_ia32_xsaveopt (void *, long long)
  43369. void __builtin_ia32_xsaveopt64 (void *, long long)
  43370. The following built-in functions are available when '-mtbm' is used.
  43371. Both of them generate the immediate form of the bextr machine
  43372. instruction.
  43373. unsigned int __builtin_ia32_bextri_u32 (unsigned int,
  43374. const unsigned int);
  43375. unsigned long long __builtin_ia32_bextri_u64 (unsigned long long,
  43376. const unsigned long long);
  43377. The following built-in functions are available when '-m3dnow' is used.
  43378. All of them generate the machine instruction that is part of the name.
  43379. void __builtin_ia32_femms (void)
  43380. v8qi __builtin_ia32_pavgusb (v8qi, v8qi)
  43381. v2si __builtin_ia32_pf2id (v2sf)
  43382. v2sf __builtin_ia32_pfacc (v2sf, v2sf)
  43383. v2sf __builtin_ia32_pfadd (v2sf, v2sf)
  43384. v2si __builtin_ia32_pfcmpeq (v2sf, v2sf)
  43385. v2si __builtin_ia32_pfcmpge (v2sf, v2sf)
  43386. v2si __builtin_ia32_pfcmpgt (v2sf, v2sf)
  43387. v2sf __builtin_ia32_pfmax (v2sf, v2sf)
  43388. v2sf __builtin_ia32_pfmin (v2sf, v2sf)
  43389. v2sf __builtin_ia32_pfmul (v2sf, v2sf)
  43390. v2sf __builtin_ia32_pfrcp (v2sf)
  43391. v2sf __builtin_ia32_pfrcpit1 (v2sf, v2sf)
  43392. v2sf __builtin_ia32_pfrcpit2 (v2sf, v2sf)
  43393. v2sf __builtin_ia32_pfrsqrt (v2sf)
  43394. v2sf __builtin_ia32_pfsub (v2sf, v2sf)
  43395. v2sf __builtin_ia32_pfsubr (v2sf, v2sf)
  43396. v2sf __builtin_ia32_pi2fd (v2si)
  43397. v4hi __builtin_ia32_pmulhrw (v4hi, v4hi)
  43398. The following built-in functions are available when '-m3dnowa' is used.
  43399. All of them generate the machine instruction that is part of the name.
  43400. v2si __builtin_ia32_pf2iw (v2sf)
  43401. v2sf __builtin_ia32_pfnacc (v2sf, v2sf)
  43402. v2sf __builtin_ia32_pfpnacc (v2sf, v2sf)
  43403. v2sf __builtin_ia32_pi2fw (v2si)
  43404. v2sf __builtin_ia32_pswapdsf (v2sf)
  43405. v2si __builtin_ia32_pswapdsi (v2si)
  43406. The following built-in functions are available when '-mrtm' is used
  43407. They are used for restricted transactional memory. These are the
  43408. internal low level functions. Normally the functions in *note x86
  43409. transactional memory intrinsics:: should be used instead.
  43410. int __builtin_ia32_xbegin ()
  43411. void __builtin_ia32_xend ()
  43412. void __builtin_ia32_xabort (status)
  43413. int __builtin_ia32_xtest ()
  43414. The following built-in functions are available when '-mmwaitx' is used.
  43415. All of them generate the machine instruction that is part of the name.
  43416. void __builtin_ia32_monitorx (void *, unsigned int, unsigned int)
  43417. void __builtin_ia32_mwaitx (unsigned int, unsigned int, unsigned int)
  43418. The following built-in functions are available when '-mclzero' is used.
  43419. All of them generate the machine instruction that is part of the name.
  43420. void __builtin_i32_clzero (void *)
  43421. The following built-in functions are available when '-mpku' is used.
  43422. They generate reads and writes to PKRU.
  43423. void __builtin_ia32_wrpkru (unsigned int)
  43424. unsigned int __builtin_ia32_rdpkru ()
  43425. The following built-in functions are available when '-mshstk' option is
  43426. used. They support shadow stack machine instructions from Intel
  43427. Control-flow Enforcement Technology (CET). Each built-in function
  43428. generates the machine instruction that is part of the function's name.
  43429. These are the internal low-level functions. Normally the functions in
  43430. *note x86 control-flow protection intrinsics:: should be used instead.
  43431. unsigned int __builtin_ia32_rdsspd (void)
  43432. unsigned long long __builtin_ia32_rdsspq (void)
  43433. void __builtin_ia32_incsspd (unsigned int)
  43434. void __builtin_ia32_incsspq (unsigned long long)
  43435. void __builtin_ia32_saveprevssp(void);
  43436. void __builtin_ia32_rstorssp(void *);
  43437. void __builtin_ia32_wrssd(unsigned int, void *);
  43438. void __builtin_ia32_wrssq(unsigned long long, void *);
  43439. void __builtin_ia32_wrussd(unsigned int, void *);
  43440. void __builtin_ia32_wrussq(unsigned long long, void *);
  43441. void __builtin_ia32_setssbsy(void);
  43442. void __builtin_ia32_clrssbsy(void *);
  43443. 
  43444. File: gcc.info, Node: x86 transactional memory intrinsics, Next: x86 control-flow protection intrinsics, Prev: x86 Built-in Functions, Up: Target Builtins
  43445. 6.60.37 x86 Transactional Memory Intrinsics
  43446. -------------------------------------------
  43447. These hardware transactional memory intrinsics for x86 allow you to use
  43448. memory transactions with RTM (Restricted Transactional Memory). This
  43449. support is enabled with the '-mrtm' option. For using HLE (Hardware
  43450. Lock Elision) see *note x86 specific memory model extensions for
  43451. transactional memory:: instead.
  43452. A memory transaction commits all changes to memory in an atomic way, as
  43453. visible to other threads. If the transaction fails it is rolled back
  43454. and all side effects discarded.
  43455. Generally there is no guarantee that a memory transaction ever succeeds
  43456. and suitable fallback code always needs to be supplied.
  43457. -- RTM Function: unsigned _xbegin ()
  43458. Start a RTM (Restricted Transactional Memory) transaction. Returns
  43459. '_XBEGIN_STARTED' when the transaction started successfully (note
  43460. this is not 0, so the constant has to be explicitly tested).
  43461. If the transaction aborts, all side effects are undone and an abort
  43462. code encoded as a bit mask is returned. The following macros are
  43463. defined:
  43464. '_XABORT_EXPLICIT'
  43465. Transaction was explicitly aborted with '_xabort'. The
  43466. parameter passed to '_xabort' is available with
  43467. '_XABORT_CODE(status)'.
  43468. '_XABORT_RETRY'
  43469. Transaction retry is possible.
  43470. '_XABORT_CONFLICT'
  43471. Transaction abort due to a memory conflict with another
  43472. thread.
  43473. '_XABORT_CAPACITY'
  43474. Transaction abort due to the transaction using too much
  43475. memory.
  43476. '_XABORT_DEBUG'
  43477. Transaction abort due to a debug trap.
  43478. '_XABORT_NESTED'
  43479. Transaction abort in an inner nested transaction.
  43480. There is no guarantee any transaction ever succeeds, so there
  43481. always needs to be a valid fallback path.
  43482. -- RTM Function: void _xend ()
  43483. Commit the current transaction. When no transaction is active this
  43484. faults. All memory side effects of the transaction become visible
  43485. to other threads in an atomic manner.
  43486. -- RTM Function: int _xtest ()
  43487. Return a nonzero value if a transaction is currently active,
  43488. otherwise 0.
  43489. -- RTM Function: void _xabort (status)
  43490. Abort the current transaction. When no transaction is active this
  43491. is a no-op. The STATUS is an 8-bit constant; its value is encoded
  43492. in the return value from '_xbegin'.
  43493. Here is an example showing handling for '_XABORT_RETRY' and a fallback
  43494. path for other failures:
  43495. #include <immintrin.h>
  43496. int n_tries, max_tries;
  43497. unsigned status = _XABORT_EXPLICIT;
  43498. ...
  43499. for (n_tries = 0; n_tries < max_tries; n_tries++)
  43500. {
  43501. status = _xbegin ();
  43502. if (status == _XBEGIN_STARTED || !(status & _XABORT_RETRY))
  43503. break;
  43504. }
  43505. if (status == _XBEGIN_STARTED)
  43506. {
  43507. ... transaction code...
  43508. _xend ();
  43509. }
  43510. else
  43511. {
  43512. ... non-transactional fallback path...
  43513. }
  43514. Note that, in most cases, the transactional and non-transactional code
  43515. must synchronize together to ensure consistency.
  43516. 
  43517. File: gcc.info, Node: x86 control-flow protection intrinsics, Prev: x86 transactional memory intrinsics, Up: Target Builtins
  43518. 6.60.38 x86 Control-Flow Protection Intrinsics
  43519. ----------------------------------------------
  43520. -- CET Function: ret_type _get_ssp (void)
  43521. Get the current value of shadow stack pointer if shadow stack
  43522. support from Intel CET is enabled in the hardware or '0' otherwise.
  43523. The 'ret_type' is 'unsigned long long' for 64-bit targets and
  43524. 'unsigned int' for 32-bit targets.
  43525. -- CET Function: void _inc_ssp (unsigned int)
  43526. Increment the current shadow stack pointer by the size specified by
  43527. the function argument. The argument is masked to a byte value for
  43528. security reasons, so to increment by more than 255 bytes you must
  43529. call the function multiple times.
  43530. The shadow stack unwind code looks like:
  43531. #include <immintrin.h>
  43532. /* Unwind the shadow stack for EH. */
  43533. #define _Unwind_Frames_Extra(x) \
  43534. do \
  43535. { \
  43536. _Unwind_Word ssp = _get_ssp (); \
  43537. if (ssp != 0) \
  43538. { \
  43539. _Unwind_Word tmp = (x); \
  43540. while (tmp > 255) \
  43541. { \
  43542. _inc_ssp (tmp); \
  43543. tmp -= 255; \
  43544. } \
  43545. _inc_ssp (tmp); \
  43546. } \
  43547. } \
  43548. while (0)
  43549. This code runs unconditionally on all 64-bit processors. For 32-bit
  43550. processors the code runs on those that support multi-byte NOP
  43551. instructions.
  43552. 
  43553. File: gcc.info, Node: Target Format Checks, Next: Pragmas, Prev: Target Builtins, Up: C Extensions
  43554. 6.61 Format Checks Specific to Particular Target Machines
  43555. =========================================================
  43556. For some target machines, GCC supports additional options to the format
  43557. attribute (*note Declaring Attributes of Functions: Function
  43558. Attributes.).
  43559. * Menu:
  43560. * Solaris Format Checks::
  43561. * Darwin Format Checks::
  43562. 
  43563. File: gcc.info, Node: Solaris Format Checks, Next: Darwin Format Checks, Up: Target Format Checks
  43564. 6.61.1 Solaris Format Checks
  43565. ----------------------------
  43566. Solaris targets support the 'cmn_err' (or '__cmn_err__') format check.
  43567. 'cmn_err' accepts a subset of the standard 'printf' conversions, and the
  43568. two-argument '%b' conversion for displaying bit-fields. See the Solaris
  43569. man page for 'cmn_err' for more information.
  43570. 
  43571. File: gcc.info, Node: Darwin Format Checks, Prev: Solaris Format Checks, Up: Target Format Checks
  43572. 6.61.2 Darwin Format Checks
  43573. ---------------------------
  43574. In addition to the full set of format archetypes (attribute format style
  43575. arguments such as 'printf', 'scanf', 'strftime', and 'strfmon'), Darwin
  43576. targets also support the 'CFString' (or '__CFString__') archetype in the
  43577. 'format' attribute. Declarations with this archetype are parsed for
  43578. correct syntax and argument types. However, parsing of the format
  43579. string itself and validating arguments against it in calls to such
  43580. functions is currently not performed.
  43581. Additionally, 'CFStringRefs' (defined by the 'CoreFoundation' headers)
  43582. may also be used as format arguments. Note that the relevant headers
  43583. are only likely to be available on Darwin (OSX) installations. On such
  43584. installations, the XCode and system documentation provide descriptions
  43585. of 'CFString', 'CFStringRefs' and associated functions.
  43586. 
  43587. File: gcc.info, Node: Pragmas, Next: Unnamed Fields, Prev: Target Format Checks, Up: C Extensions
  43588. 6.62 Pragmas Accepted by GCC
  43589. ============================
  43590. GCC supports several types of pragmas, primarily in order to compile
  43591. code originally written for other compilers. Note that in general we do
  43592. not recommend the use of pragmas; *Note Function Attributes::, for
  43593. further explanation.
  43594. The GNU C preprocessor recognizes several pragmas in addition to the
  43595. compiler pragmas documented here. Refer to the CPP manual for more
  43596. information.
  43597. * Menu:
  43598. * AArch64 Pragmas::
  43599. * ARM Pragmas::
  43600. * M32C Pragmas::
  43601. * MeP Pragmas::
  43602. * PRU Pragmas::
  43603. * RS/6000 and PowerPC Pragmas::
  43604. * S/390 Pragmas::
  43605. * Darwin Pragmas::
  43606. * Solaris Pragmas::
  43607. * Symbol-Renaming Pragmas::
  43608. * Structure-Layout Pragmas::
  43609. * Weak Pragmas::
  43610. * Diagnostic Pragmas::
  43611. * Visibility Pragmas::
  43612. * Push/Pop Macro Pragmas::
  43613. * Function Specific Option Pragmas::
  43614. * Loop-Specific Pragmas::
  43615. 
  43616. File: gcc.info, Node: AArch64 Pragmas, Next: ARM Pragmas, Up: Pragmas
  43617. 6.62.1 AArch64 Pragmas
  43618. ----------------------
  43619. The pragmas defined by the AArch64 target correspond to the AArch64
  43620. target function attributes. They can be specified as below:
  43621. #pragma GCC target("string")
  43622. where 'STRING' can be any string accepted as an AArch64 target
  43623. attribute. *Note AArch64 Function Attributes::, for more details on the
  43624. permissible values of 'string'.
  43625. 
  43626. File: gcc.info, Node: ARM Pragmas, Next: M32C Pragmas, Prev: AArch64 Pragmas, Up: Pragmas
  43627. 6.62.2 ARM Pragmas
  43628. ------------------
  43629. The ARM target defines pragmas for controlling the default addition of
  43630. 'long_call' and 'short_call' attributes to functions. *Note Function
  43631. Attributes::, for information about the effects of these attributes.
  43632. 'long_calls'
  43633. Set all subsequent functions to have the 'long_call' attribute.
  43634. 'no_long_calls'
  43635. Set all subsequent functions to have the 'short_call' attribute.
  43636. 'long_calls_off'
  43637. Do not affect the 'long_call' or 'short_call' attributes of
  43638. subsequent functions.
  43639. 
  43640. File: gcc.info, Node: M32C Pragmas, Next: MeP Pragmas, Prev: ARM Pragmas, Up: Pragmas
  43641. 6.62.3 M32C Pragmas
  43642. -------------------
  43643. 'GCC memregs NUMBER'
  43644. Overrides the command-line option '-memregs=' for the current file.
  43645. Use with care! This pragma must be before any function in the
  43646. file, and mixing different memregs values in different objects may
  43647. make them incompatible. This pragma is useful when a
  43648. performance-critical function uses a memreg for temporary values,
  43649. as it may allow you to reduce the number of memregs used.
  43650. 'ADDRESS NAME ADDRESS'
  43651. For any declared symbols matching NAME, this does three things to
  43652. that symbol: it forces the symbol to be located at the given
  43653. address (a number), it forces the symbol to be volatile, and it
  43654. changes the symbol's scope to be static. This pragma exists for
  43655. compatibility with other compilers, but note that the common
  43656. '1234H' numeric syntax is not supported (use '0x1234' instead).
  43657. Example:
  43658. #pragma ADDRESS port3 0x103
  43659. char port3;
  43660. 
  43661. File: gcc.info, Node: MeP Pragmas, Next: PRU Pragmas, Prev: M32C Pragmas, Up: Pragmas
  43662. 6.62.4 MeP Pragmas
  43663. ------------------
  43664. 'custom io_volatile (on|off)'
  43665. Overrides the command-line option '-mio-volatile' for the current
  43666. file. Note that for compatibility with future GCC releases, this
  43667. option should only be used once before any 'io' variables in each
  43668. file.
  43669. 'GCC coprocessor available REGISTERS'
  43670. Specifies which coprocessor registers are available to the register
  43671. allocator. REGISTERS may be a single register, register range
  43672. separated by ellipses, or comma-separated list of those. Example:
  43673. #pragma GCC coprocessor available $c0...$c10, $c28
  43674. 'GCC coprocessor call_saved REGISTERS'
  43675. Specifies which coprocessor registers are to be saved and restored
  43676. by any function using them. REGISTERS may be a single register,
  43677. register range separated by ellipses, or comma-separated list of
  43678. those. Example:
  43679. #pragma GCC coprocessor call_saved $c4...$c6, $c31
  43680. 'GCC coprocessor subclass '(A|B|C|D)' = REGISTERS'
  43681. Creates and defines a register class. These register classes can
  43682. be used by inline 'asm' constructs. REGISTERS may be a single
  43683. register, register range separated by ellipses, or comma-separated
  43684. list of those. Example:
  43685. #pragma GCC coprocessor subclass 'B' = $c2, $c4, $c6
  43686. asm ("cpfoo %0" : "=B" (x));
  43687. 'GCC disinterrupt NAME , NAME ...'
  43688. For the named functions, the compiler adds code to disable
  43689. interrupts for the duration of those functions. If any functions
  43690. so named are not encountered in the source, a warning is emitted
  43691. that the pragma is not used. Examples:
  43692. #pragma disinterrupt foo
  43693. #pragma disinterrupt bar, grill
  43694. int foo () { ... }
  43695. 'GCC call NAME , NAME ...'
  43696. For the named functions, the compiler always uses a
  43697. register-indirect call model when calling the named functions.
  43698. Examples:
  43699. extern int foo ();
  43700. #pragma call foo
  43701. 
  43702. File: gcc.info, Node: PRU Pragmas, Next: RS/6000 and PowerPC Pragmas, Prev: MeP Pragmas, Up: Pragmas
  43703. 6.62.5 PRU Pragmas
  43704. ------------------
  43705. 'ctable_entry INDEX CONSTANT_ADDRESS'
  43706. Specifies that the PRU CTABLE entry given by INDEX has the value
  43707. CONSTANT_ADDRESS. This enables GCC to emit LBCO/SBCO instructions
  43708. when the load/store address is known and can be addressed with some
  43709. CTABLE entry. For example:
  43710. /* will compile to "sbco Rx, 2, 0x10, 4" */
  43711. #pragma ctable_entry 2 0x4802a000
  43712. *(unsigned int *)0x4802a010 = val;
  43713. 
  43714. File: gcc.info, Node: RS/6000 and PowerPC Pragmas, Next: S/390 Pragmas, Prev: PRU Pragmas, Up: Pragmas
  43715. 6.62.6 RS/6000 and PowerPC Pragmas
  43716. ----------------------------------
  43717. The RS/6000 and PowerPC targets define one pragma for controlling
  43718. whether or not the 'longcall' attribute is added to function
  43719. declarations by default. This pragma overrides the '-mlongcall' option,
  43720. but not the 'longcall' and 'shortcall' attributes. *Note RS/6000 and
  43721. PowerPC Options::, for more information about when long calls are and
  43722. are not necessary.
  43723. 'longcall (1)'
  43724. Apply the 'longcall' attribute to all subsequent function
  43725. declarations.
  43726. 'longcall (0)'
  43727. Do not apply the 'longcall' attribute to subsequent function
  43728. declarations.
  43729. 
  43730. File: gcc.info, Node: S/390 Pragmas, Next: Darwin Pragmas, Prev: RS/6000 and PowerPC Pragmas, Up: Pragmas
  43731. 6.62.7 S/390 Pragmas
  43732. --------------------
  43733. The pragmas defined by the S/390 target correspond to the S/390 target
  43734. function attributes and some the additional options:
  43735. 'zvector'
  43736. 'no-zvector'
  43737. Note that options of the pragma, unlike options of the target
  43738. attribute, do change the value of preprocessor macros like '__VEC__'.
  43739. They can be specified as below:
  43740. #pragma GCC target("string[,string]...")
  43741. #pragma GCC target("string"[,"string"]...)
  43742. 
  43743. File: gcc.info, Node: Darwin Pragmas, Next: Solaris Pragmas, Prev: S/390 Pragmas, Up: Pragmas
  43744. 6.62.8 Darwin Pragmas
  43745. ---------------------
  43746. The following pragmas are available for all architectures running the
  43747. Darwin operating system. These are useful for compatibility with other
  43748. Mac OS compilers.
  43749. 'mark TOKENS...'
  43750. This pragma is accepted, but has no effect.
  43751. 'options align=ALIGNMENT'
  43752. This pragma sets the alignment of fields in structures. The values
  43753. of ALIGNMENT may be 'mac68k', to emulate m68k alignment, or
  43754. 'power', to emulate PowerPC alignment. Uses of this pragma nest
  43755. properly; to restore the previous setting, use 'reset' for the
  43756. ALIGNMENT.
  43757. 'segment TOKENS...'
  43758. This pragma is accepted, but has no effect.
  43759. 'unused (VAR [, VAR]...)'
  43760. This pragma declares variables to be possibly unused. GCC does not
  43761. produce warnings for the listed variables. The effect is similar
  43762. to that of the 'unused' attribute, except that this pragma may
  43763. appear anywhere within the variables' scopes.
  43764. 
  43765. File: gcc.info, Node: Solaris Pragmas, Next: Symbol-Renaming Pragmas, Prev: Darwin Pragmas, Up: Pragmas
  43766. 6.62.9 Solaris Pragmas
  43767. ----------------------
  43768. The Solaris target supports '#pragma redefine_extname' (*note
  43769. Symbol-Renaming Pragmas::). It also supports additional '#pragma'
  43770. directives for compatibility with the system compiler.
  43771. 'align ALIGNMENT (VARIABLE [, VARIABLE]...)'
  43772. Increase the minimum alignment of each VARIABLE to ALIGNMENT. This
  43773. is the same as GCC's 'aligned' attribute *note Variable
  43774. Attributes::). Macro expansion occurs on the arguments to this
  43775. pragma when compiling C and Objective-C. It does not currently
  43776. occur when compiling C++, but this is a bug which may be fixed in a
  43777. future release.
  43778. 'fini (FUNCTION [, FUNCTION]...)'
  43779. This pragma causes each listed FUNCTION to be called after main, or
  43780. during shared module unloading, by adding a call to the '.fini'
  43781. section.
  43782. 'init (FUNCTION [, FUNCTION]...)'
  43783. This pragma causes each listed FUNCTION to be called during
  43784. initialization (before 'main') or during shared module loading, by
  43785. adding a call to the '.init' section.
  43786. 
  43787. File: gcc.info, Node: Symbol-Renaming Pragmas, Next: Structure-Layout Pragmas, Prev: Solaris Pragmas, Up: Pragmas
  43788. 6.62.10 Symbol-Renaming Pragmas
  43789. -------------------------------
  43790. GCC supports a '#pragma' directive that changes the name used in
  43791. assembly for a given declaration. While this pragma is supported on all
  43792. platforms, it is intended primarily to provide compatibility with the
  43793. Solaris system headers. This effect can also be achieved using the asm
  43794. labels extension (*note Asm Labels::).
  43795. 'redefine_extname OLDNAME NEWNAME'
  43796. This pragma gives the C function OLDNAME the assembly symbol
  43797. NEWNAME. The preprocessor macro '__PRAGMA_REDEFINE_EXTNAME' is
  43798. defined if this pragma is available (currently on all platforms).
  43799. This pragma and the 'asm' labels extension interact in a complicated
  43800. manner. Here are some corner cases you may want to be aware of:
  43801. 1. This pragma silently applies only to declarations with external
  43802. linkage. The 'asm' label feature does not have this restriction.
  43803. 2. In C++, this pragma silently applies only to declarations with "C"
  43804. linkage. Again, 'asm' labels do not have this restriction.
  43805. 3. If either of the ways of changing the assembly name of a
  43806. declaration are applied to a declaration whose assembly name has
  43807. already been determined (either by a previous use of one of these
  43808. features, or because the compiler needed the assembly name in order
  43809. to generate code), and the new name is different, a warning issues
  43810. and the name does not change.
  43811. 4. The OLDNAME used by '#pragma redefine_extname' is always the
  43812. C-language name.
  43813. 
  43814. File: gcc.info, Node: Structure-Layout Pragmas, Next: Weak Pragmas, Prev: Symbol-Renaming Pragmas, Up: Pragmas
  43815. 6.62.11 Structure-Layout Pragmas
  43816. --------------------------------
  43817. For compatibility with Microsoft Windows compilers, GCC supports a set
  43818. of '#pragma' directives that change the maximum alignment of members of
  43819. structures (other than zero-width bit-fields), unions, and classes
  43820. subsequently defined. The N value below always is required to be a
  43821. small power of two and specifies the new alignment in bytes.
  43822. 1. '#pragma pack(N)' simply sets the new alignment.
  43823. 2. '#pragma pack()' sets the alignment to the one that was in effect
  43824. when compilation started (see also command-line option
  43825. '-fpack-struct[=N]' *note Code Gen Options::).
  43826. 3. '#pragma pack(push[,N])' pushes the current alignment setting on an
  43827. internal stack and then optionally sets the new alignment.
  43828. 4. '#pragma pack(pop)' restores the alignment setting to the one saved
  43829. at the top of the internal stack (and removes that stack entry).
  43830. Note that '#pragma pack([N])' does not influence this internal
  43831. stack; thus it is possible to have '#pragma pack(push)' followed by
  43832. multiple '#pragma pack(N)' instances and finalized by a single
  43833. '#pragma pack(pop)'.
  43834. Some targets, e.g. x86 and PowerPC, support the '#pragma ms_struct'
  43835. directive which lays out structures and unions subsequently defined as
  43836. the documented '__attribute__ ((ms_struct))'.
  43837. 1. '#pragma ms_struct on' turns on the Microsoft layout.
  43838. 2. '#pragma ms_struct off' turns off the Microsoft layout.
  43839. 3. '#pragma ms_struct reset' goes back to the default layout.
  43840. Most targets also support the '#pragma scalar_storage_order' directive
  43841. which lays out structures and unions subsequently defined as the
  43842. documented '__attribute__ ((scalar_storage_order))'.
  43843. 1. '#pragma scalar_storage_order big-endian' sets the storage order of
  43844. the scalar fields to big-endian.
  43845. 2. '#pragma scalar_storage_order little-endian' sets the storage order
  43846. of the scalar fields to little-endian.
  43847. 3. '#pragma scalar_storage_order default' goes back to the endianness
  43848. that was in effect when compilation started (see also command-line
  43849. option '-fsso-struct=ENDIANNESS' *note C Dialect Options::).
  43850. 
  43851. File: gcc.info, Node: Weak Pragmas, Next: Diagnostic Pragmas, Prev: Structure-Layout Pragmas, Up: Pragmas
  43852. 6.62.12 Weak Pragmas
  43853. --------------------
  43854. For compatibility with SVR4, GCC supports a set of '#pragma' directives
  43855. for declaring symbols to be weak, and defining weak aliases.
  43856. '#pragma weak SYMBOL'
  43857. This pragma declares SYMBOL to be weak, as if the declaration had
  43858. the attribute of the same name. The pragma may appear before or
  43859. after the declaration of SYMBOL. It is not an error for SYMBOL to
  43860. never be defined at all.
  43861. '#pragma weak SYMBOL1 = SYMBOL2'
  43862. This pragma declares SYMBOL1 to be a weak alias of SYMBOL2. It is
  43863. an error if SYMBOL2 is not defined in the current translation unit.
  43864. 
  43865. File: gcc.info, Node: Diagnostic Pragmas, Next: Visibility Pragmas, Prev: Weak Pragmas, Up: Pragmas
  43866. 6.62.13 Diagnostic Pragmas
  43867. --------------------------
  43868. GCC allows the user to selectively enable or disable certain types of
  43869. diagnostics, and change the kind of the diagnostic. For example, a
  43870. project's policy might require that all sources compile with '-Werror'
  43871. but certain files might have exceptions allowing specific types of
  43872. warnings. Or, a project might selectively enable diagnostics and treat
  43873. them as errors depending on which preprocessor macros are defined.
  43874. '#pragma GCC diagnostic KIND OPTION'
  43875. Modifies the disposition of a diagnostic. Note that not all
  43876. diagnostics are modifiable; at the moment only warnings (normally
  43877. controlled by '-W...') can be controlled, and not all of them. Use
  43878. '-fdiagnostics-show-option' to determine which diagnostics are
  43879. controllable and which option controls them.
  43880. KIND is 'error' to treat this diagnostic as an error, 'warning' to
  43881. treat it like a warning (even if '-Werror' is in effect), or
  43882. 'ignored' if the diagnostic is to be ignored. OPTION is a double
  43883. quoted string that matches the command-line option.
  43884. #pragma GCC diagnostic warning "-Wformat"
  43885. #pragma GCC diagnostic error "-Wformat"
  43886. #pragma GCC diagnostic ignored "-Wformat"
  43887. Note that these pragmas override any command-line options. GCC
  43888. keeps track of the location of each pragma, and issues diagnostics
  43889. according to the state as of that point in the source file. Thus,
  43890. pragmas occurring after a line do not affect diagnostics caused by
  43891. that line.
  43892. '#pragma GCC diagnostic push'
  43893. '#pragma GCC diagnostic pop'
  43894. Causes GCC to remember the state of the diagnostics as of each
  43895. 'push', and restore to that point at each 'pop'. If a 'pop' has no
  43896. matching 'push', the command-line options are restored.
  43897. #pragma GCC diagnostic error "-Wuninitialized"
  43898. foo(a); /* error is given for this one */
  43899. #pragma GCC diagnostic push
  43900. #pragma GCC diagnostic ignored "-Wuninitialized"
  43901. foo(b); /* no diagnostic for this one */
  43902. #pragma GCC diagnostic pop
  43903. foo(c); /* error is given for this one */
  43904. #pragma GCC diagnostic pop
  43905. foo(d); /* depends on command-line options */
  43906. GCC also offers a simple mechanism for printing messages during
  43907. compilation.
  43908. '#pragma message STRING'
  43909. Prints STRING as a compiler message on compilation. The message is
  43910. informational only, and is neither a compilation warning nor an
  43911. error. Newlines can be included in the string by using the '\n'
  43912. escape sequence.
  43913. #pragma message "Compiling " __FILE__ "..."
  43914. STRING may be parenthesized, and is printed with location
  43915. information. For example,
  43916. #define DO_PRAGMA(x) _Pragma (#x)
  43917. #define TODO(x) DO_PRAGMA(message ("TODO - " #x))
  43918. TODO(Remember to fix this)
  43919. prints '/tmp/file.c:4: note: #pragma message: TODO - Remember to
  43920. fix this'.
  43921. '#pragma GCC error MESSAGE'
  43922. Generates an error message. This pragma _is_ considered to
  43923. indicate an error in the compilation, and it will be treated as
  43924. such.
  43925. Newlines can be included in the string by using the '\n' escape
  43926. sequence. They will be displayed as newlines even if the
  43927. '-fmessage-length' option is set to zero.
  43928. The error is only generated if the pragma is present in the code
  43929. after pre-processing has been completed. It does not matter
  43930. however if the code containing the pragma is unreachable:
  43931. #if 0
  43932. #pragma GCC error "this error is not seen"
  43933. #endif
  43934. void foo (void)
  43935. {
  43936. return;
  43937. #pragma GCC error "this error is seen"
  43938. }
  43939. '#pragma GCC warning MESSAGE'
  43940. This is just like 'pragma GCC error' except that a warning message
  43941. is issued instead of an error message. Unless '-Werror' is in
  43942. effect, in which case this pragma will generate an error as well.
  43943. 
  43944. File: gcc.info, Node: Visibility Pragmas, Next: Push/Pop Macro Pragmas, Prev: Diagnostic Pragmas, Up: Pragmas
  43945. 6.62.14 Visibility Pragmas
  43946. --------------------------
  43947. '#pragma GCC visibility push(VISIBILITY)'
  43948. '#pragma GCC visibility pop'
  43949. This pragma allows the user to set the visibility for multiple
  43950. declarations without having to give each a visibility attribute
  43951. (*note Function Attributes::).
  43952. In C++, '#pragma GCC visibility' affects only namespace-scope
  43953. declarations. Class members and template specializations are not
  43954. affected; if you want to override the visibility for a particular
  43955. member or instantiation, you must use an attribute.
  43956. 
  43957. File: gcc.info, Node: Push/Pop Macro Pragmas, Next: Function Specific Option Pragmas, Prev: Visibility Pragmas, Up: Pragmas
  43958. 6.62.15 Push/Pop Macro Pragmas
  43959. ------------------------------
  43960. For compatibility with Microsoft Windows compilers, GCC supports
  43961. '#pragma push_macro("MACRO_NAME")' and '#pragma
  43962. pop_macro("MACRO_NAME")'.
  43963. '#pragma push_macro("MACRO_NAME")'
  43964. This pragma saves the value of the macro named as MACRO_NAME to the
  43965. top of the stack for this macro.
  43966. '#pragma pop_macro("MACRO_NAME")'
  43967. This pragma sets the value of the macro named as MACRO_NAME to the
  43968. value on top of the stack for this macro. If the stack for
  43969. MACRO_NAME is empty, the value of the macro remains unchanged.
  43970. For example:
  43971. #define X 1
  43972. #pragma push_macro("X")
  43973. #undef X
  43974. #define X -1
  43975. #pragma pop_macro("X")
  43976. int x [X];
  43977. In this example, the definition of X as 1 is saved by '#pragma
  43978. push_macro' and restored by '#pragma pop_macro'.
  43979. 
  43980. File: gcc.info, Node: Function Specific Option Pragmas, Next: Loop-Specific Pragmas, Prev: Push/Pop Macro Pragmas, Up: Pragmas
  43981. 6.62.16 Function Specific Option Pragmas
  43982. ----------------------------------------
  43983. '#pragma GCC target (STRING, ...)'
  43984. This pragma allows you to set target-specific options for functions
  43985. defined later in the source file. One or more strings can be
  43986. specified. Each function that is defined after this point is
  43987. treated as if it had been declared with one 'target('STRING')'
  43988. attribute for each STRING argument. The parentheses around the
  43989. strings in the pragma are optional. *Note Function Attributes::,
  43990. for more information about the 'target' attribute and the attribute
  43991. syntax.
  43992. The '#pragma GCC target' pragma is presently implemented for x86,
  43993. ARM, AArch64, PowerPC, S/390, and Nios II targets only.
  43994. '#pragma GCC optimize (STRING, ...)'
  43995. This pragma allows you to set global optimization options for
  43996. functions defined later in the source file. One or more strings
  43997. can be specified. Each function that is defined after this point
  43998. is treated as if it had been declared with one 'optimize('STRING')'
  43999. attribute for each STRING argument. The parentheses around the
  44000. strings in the pragma are optional. *Note Function Attributes::,
  44001. for more information about the 'optimize' attribute and the
  44002. attribute syntax.
  44003. '#pragma GCC push_options'
  44004. '#pragma GCC pop_options'
  44005. These pragmas maintain a stack of the current target and
  44006. optimization options. It is intended for include files where you
  44007. temporarily want to switch to using a different '#pragma GCC
  44008. target' or '#pragma GCC optimize' and then to pop back to the
  44009. previous options.
  44010. '#pragma GCC reset_options'
  44011. This pragma clears the current '#pragma GCC target' and '#pragma
  44012. GCC optimize' to use the default switches as specified on the
  44013. command line.
  44014. 
  44015. File: gcc.info, Node: Loop-Specific Pragmas, Prev: Function Specific Option Pragmas, Up: Pragmas
  44016. 6.62.17 Loop-Specific Pragmas
  44017. -----------------------------
  44018. '#pragma GCC ivdep'
  44019. With this pragma, the programmer asserts that there are no
  44020. loop-carried dependencies which would prevent consecutive
  44021. iterations of the following loop from executing concurrently with
  44022. SIMD (single instruction multiple data) instructions.
  44023. For example, the compiler can only unconditionally vectorize the
  44024. following loop with the pragma:
  44025. void foo (int n, int *a, int *b, int *c)
  44026. {
  44027. int i, j;
  44028. #pragma GCC ivdep
  44029. for (i = 0; i < n; ++i)
  44030. a[i] = b[i] + c[i];
  44031. }
  44032. In this example, using the 'restrict' qualifier had the same
  44033. effect. In the following example, that would not be possible.
  44034. Assume k < -m or k >= m. Only with the pragma, the compiler knows
  44035. that it can unconditionally vectorize the following loop:
  44036. void ignore_vec_dep (int *a, int k, int c, int m)
  44037. {
  44038. #pragma GCC ivdep
  44039. for (int i = 0; i < m; i++)
  44040. a[i] = a[i + k] * c;
  44041. }
  44042. '#pragma GCC unroll N'
  44043. You can use this pragma to control how many times a loop should be
  44044. unrolled. It must be placed immediately before a 'for', 'while' or
  44045. 'do' loop or a '#pragma GCC ivdep', and applies only to the loop
  44046. that follows. N is an integer constant expression specifying the
  44047. unrolling factor. The values of 0 and 1 block any unrolling of the
  44048. loop.
  44049. 
  44050. File: gcc.info, Node: Unnamed Fields, Next: Thread-Local, Prev: Pragmas, Up: C Extensions
  44051. 6.63 Unnamed Structure and Union Fields
  44052. =======================================
  44053. As permitted by ISO C11 and for compatibility with other compilers, GCC
  44054. allows you to define a structure or union that contains, as fields,
  44055. structures and unions without names. For example:
  44056. struct {
  44057. int a;
  44058. union {
  44059. int b;
  44060. float c;
  44061. };
  44062. int d;
  44063. } foo;
  44064. In this example, you are able to access members of the unnamed union
  44065. with code like 'foo.b'. Note that only unnamed structs and unions are
  44066. allowed, you may not have, for example, an unnamed 'int'.
  44067. You must never create such structures that cause ambiguous field
  44068. definitions. For example, in this structure:
  44069. struct {
  44070. int a;
  44071. struct {
  44072. int a;
  44073. };
  44074. } foo;
  44075. it is ambiguous which 'a' is being referred to with 'foo.a'. The
  44076. compiler gives errors for such constructs.
  44077. Unless '-fms-extensions' is used, the unnamed field must be a structure
  44078. or union definition without a tag (for example, 'struct { int a; };').
  44079. If '-fms-extensions' is used, the field may also be a definition with a
  44080. tag such as 'struct foo { int a; };', a reference to a previously
  44081. defined structure or union such as 'struct foo;', or a reference to a
  44082. 'typedef' name for a previously defined structure or union type.
  44083. The option '-fplan9-extensions' enables '-fms-extensions' as well as
  44084. two other extensions. First, a pointer to a structure is automatically
  44085. converted to a pointer to an anonymous field for assignments and
  44086. function calls. For example:
  44087. struct s1 { int a; };
  44088. struct s2 { struct s1; };
  44089. extern void f1 (struct s1 *);
  44090. void f2 (struct s2 *p) { f1 (p); }
  44091. In the call to 'f1' inside 'f2', the pointer 'p' is converted into a
  44092. pointer to the anonymous field.
  44093. Second, when the type of an anonymous field is a 'typedef' for a
  44094. 'struct' or 'union', code may refer to the field using the name of the
  44095. 'typedef'.
  44096. typedef struct { int a; } s1;
  44097. struct s2 { s1; };
  44098. s1 f1 (struct s2 *p) { return p->s1; }
  44099. These usages are only permitted when they are not ambiguous.
  44100. 
  44101. File: gcc.info, Node: Thread-Local, Next: Binary constants, Prev: Unnamed Fields, Up: C Extensions
  44102. 6.64 Thread-Local Storage
  44103. =========================
  44104. Thread-local storage (TLS) is a mechanism by which variables are
  44105. allocated such that there is one instance of the variable per extant
  44106. thread. The runtime model GCC uses to implement this originates in the
  44107. IA-64 processor-specific ABI, but has since been migrated to other
  44108. processors as well. It requires significant support from the linker
  44109. ('ld'), dynamic linker ('ld.so'), and system libraries ('libc.so' and
  44110. 'libpthread.so'), so it is not available everywhere.
  44111. At the user level, the extension is visible with a new storage class
  44112. keyword: '__thread'. For example:
  44113. __thread int i;
  44114. extern __thread struct state s;
  44115. static __thread char *p;
  44116. The '__thread' specifier may be used alone, with the 'extern' or
  44117. 'static' specifiers, but with no other storage class specifier. When
  44118. used with 'extern' or 'static', '__thread' must appear immediately after
  44119. the other storage class specifier.
  44120. The '__thread' specifier may be applied to any global, file-scoped
  44121. static, function-scoped static, or static data member of a class. It
  44122. may not be applied to block-scoped automatic or non-static data member.
  44123. When the address-of operator is applied to a thread-local variable, it
  44124. is evaluated at run time and returns the address of the current thread's
  44125. instance of that variable. An address so obtained may be used by any
  44126. thread. When a thread terminates, any pointers to thread-local
  44127. variables in that thread become invalid.
  44128. No static initialization may refer to the address of a thread-local
  44129. variable.
  44130. In C++, if an initializer is present for a thread-local variable, it
  44131. must be a CONSTANT-EXPRESSION, as defined in 5.19.2 of the ANSI/ISO C++
  44132. standard.
  44133. See ELF Handling For Thread-Local Storage
  44134. (https://www.akkadia.org/drepper/tls.pdf) for a detailed explanation of
  44135. the four thread-local storage addressing models, and how the runtime is
  44136. expected to function.
  44137. * Menu:
  44138. * C99 Thread-Local Edits::
  44139. * C++98 Thread-Local Edits::
  44140. 
  44141. File: gcc.info, Node: C99 Thread-Local Edits, Next: C++98 Thread-Local Edits, Up: Thread-Local
  44142. 6.64.1 ISO/IEC 9899:1999 Edits for Thread-Local Storage
  44143. -------------------------------------------------------
  44144. The following are a set of changes to ISO/IEC 9899:1999 (aka C99) that
  44145. document the exact semantics of the language extension.
  44146. * '5.1.2 Execution environments'
  44147. Add new text after paragraph 1
  44148. Within either execution environment, a "thread" is a flow of
  44149. control within a program. It is implementation defined
  44150. whether or not there may be more than one thread associated
  44151. with a program. It is implementation defined how threads
  44152. beyond the first are created, the name and type of the
  44153. function called at thread startup, and how threads may be
  44154. terminated. However, objects with thread storage duration
  44155. shall be initialized before thread startup.
  44156. * '6.2.4 Storage durations of objects'
  44157. Add new text before paragraph 3
  44158. An object whose identifier is declared with the storage-class
  44159. specifier '__thread' has "thread storage duration". Its
  44160. lifetime is the entire execution of the thread, and its stored
  44161. value is initialized only once, prior to thread startup.
  44162. * '6.4.1 Keywords'
  44163. Add '__thread'.
  44164. * '6.7.1 Storage-class specifiers'
  44165. Add '__thread' to the list of storage class specifiers in paragraph
  44166. 1.
  44167. Change paragraph 2 to
  44168. With the exception of '__thread', at most one storage-class
  44169. specifier may be given [...]. The '__thread' specifier may be
  44170. used alone, or immediately following 'extern' or 'static'.
  44171. Add new text after paragraph 6
  44172. The declaration of an identifier for a variable that has block
  44173. scope that specifies '__thread' shall also specify either
  44174. 'extern' or 'static'.
  44175. The '__thread' specifier shall be used only with variables.
  44176. 
  44177. File: gcc.info, Node: C++98 Thread-Local Edits, Prev: C99 Thread-Local Edits, Up: Thread-Local
  44178. 6.64.2 ISO/IEC 14882:1998 Edits for Thread-Local Storage
  44179. --------------------------------------------------------
  44180. The following are a set of changes to ISO/IEC 14882:1998 (aka C++98)
  44181. that document the exact semantics of the language extension.
  44182. * [intro.execution]
  44183. New text after paragraph 4
  44184. A "thread" is a flow of control within the abstract machine.
  44185. It is implementation defined whether or not there may be more
  44186. than one thread.
  44187. New text after paragraph 7
  44188. It is unspecified whether additional action must be taken to
  44189. ensure when and whether side effects are visible to other
  44190. threads.
  44191. * [lex.key]
  44192. Add '__thread'.
  44193. * [basic.start.main]
  44194. Add after paragraph 5
  44195. The thread that begins execution at the 'main' function is
  44196. called the "main thread". It is implementation defined how
  44197. functions beginning threads other than the main thread are
  44198. designated or typed. A function so designated, as well as the
  44199. 'main' function, is called a "thread startup function". It is
  44200. implementation defined what happens if a thread startup
  44201. function returns. It is implementation defined what happens
  44202. to other threads when any thread calls 'exit'.
  44203. * [basic.start.init]
  44204. Add after paragraph 4
  44205. The storage for an object of thread storage duration shall be
  44206. statically initialized before the first statement of the
  44207. thread startup function. An object of thread storage duration
  44208. shall not require dynamic initialization.
  44209. * [basic.start.term]
  44210. Add after paragraph 3
  44211. The type of an object with thread storage duration shall not
  44212. have a non-trivial destructor, nor shall it be an array type
  44213. whose elements (directly or indirectly) have non-trivial
  44214. destructors.
  44215. * [basic.stc]
  44216. Add "thread storage duration" to the list in paragraph 1.
  44217. Change paragraph 2
  44218. Thread, static, and automatic storage durations are associated
  44219. with objects introduced by declarations [...].
  44220. Add '__thread' to the list of specifiers in paragraph 3.
  44221. * [basic.stc.thread]
  44222. New section before [basic.stc.static]
  44223. The keyword '__thread' applied to a non-local object gives the
  44224. object thread storage duration.
  44225. A local variable or class data member declared both 'static'
  44226. and '__thread' gives the variable or member thread storage
  44227. duration.
  44228. * [basic.stc.static]
  44229. Change paragraph 1
  44230. All objects that have neither thread storage duration, dynamic
  44231. storage duration nor are local [...].
  44232. * [dcl.stc]
  44233. Add '__thread' to the list in paragraph 1.
  44234. Change paragraph 1
  44235. With the exception of '__thread', at most one
  44236. STORAGE-CLASS-SPECIFIER shall appear in a given
  44237. DECL-SPECIFIER-SEQ. The '__thread' specifier may be used
  44238. alone, or immediately following the 'extern' or 'static'
  44239. specifiers. [...]
  44240. Add after paragraph 5
  44241. The '__thread' specifier can be applied only to the names of
  44242. objects and to anonymous unions.
  44243. * [class.mem]
  44244. Add after paragraph 6
  44245. Non-'static' members shall not be '__thread'.
  44246. 
  44247. File: gcc.info, Node: Binary constants, Prev: Thread-Local, Up: C Extensions
  44248. 6.65 Binary Constants using the '0b' Prefix
  44249. ===========================================
  44250. Integer constants can be written as binary constants, consisting of a
  44251. sequence of '0' and '1' digits, prefixed by '0b' or '0B'. This is
  44252. particularly useful in environments that operate a lot on the bit level
  44253. (like microcontrollers).
  44254. The following statements are identical:
  44255. i = 42;
  44256. i = 0x2a;
  44257. i = 052;
  44258. i = 0b101010;
  44259. The type of these constants follows the same rules as for octal or
  44260. hexadecimal integer constants, so suffixes like 'L' or 'UL' can be
  44261. applied.
  44262. 
  44263. File: gcc.info, Node: C++ Extensions, Next: Objective-C, Prev: C Extensions, Up: Top
  44264. 7 Extensions to the C++ Language
  44265. ********************************
  44266. The GNU compiler provides these extensions to the C++ language (and you
  44267. can also use most of the C language extensions in your C++ programs).
  44268. If you want to write code that checks whether these features are
  44269. available, you can test for the GNU compiler the same way as for C
  44270. programs: check for a predefined macro '__GNUC__'. You can also use
  44271. '__GNUG__' to test specifically for GNU C++ (*note Predefined Macros:
  44272. (cpp)Common Predefined Macros.).
  44273. * Menu:
  44274. * C++ Volatiles:: What constitutes an access to a volatile object.
  44275. * Restricted Pointers:: C99 restricted pointers and references.
  44276. * Vague Linkage:: Where G++ puts inlines, vtables and such.
  44277. * C++ Interface:: You can use a single C++ header file for both
  44278. declarations and definitions.
  44279. * Template Instantiation:: Methods for ensuring that exactly one copy of
  44280. each needed template instantiation is emitted.
  44281. * Bound member functions:: You can extract a function pointer to the
  44282. method denoted by a '->*' or '.*' expression.
  44283. * C++ Attributes:: Variable, function, and type attributes for C++ only.
  44284. * Function Multiversioning:: Declaring multiple function versions.
  44285. * Type Traits:: Compiler support for type traits.
  44286. * C++ Concepts:: Improved support for generic programming.
  44287. * Deprecated Features:: Things will disappear from G++.
  44288. * Backwards Compatibility:: Compatibilities with earlier definitions of C++.
  44289. 
  44290. File: gcc.info, Node: C++ Volatiles, Next: Restricted Pointers, Up: C++ Extensions
  44291. 7.1 When is a Volatile C++ Object Accessed?
  44292. ===========================================
  44293. The C++ standard differs from the C standard in its treatment of
  44294. volatile objects. It fails to specify what constitutes a volatile
  44295. access, except to say that C++ should behave in a similar manner to C
  44296. with respect to volatiles, where possible. However, the different
  44297. lvalueness of expressions between C and C++ complicate the behavior.
  44298. G++ behaves the same as GCC for volatile access, *Note Volatiles: C
  44299. Extensions, for a description of GCC's behavior.
  44300. The C and C++ language specifications differ when an object is accessed
  44301. in a void context:
  44302. volatile int *src = SOMEVALUE;
  44303. *src;
  44304. The C++ standard specifies that such expressions do not undergo lvalue
  44305. to rvalue conversion, and that the type of the dereferenced object may
  44306. be incomplete. The C++ standard does not specify explicitly that it is
  44307. lvalue to rvalue conversion that is responsible for causing an access.
  44308. There is reason to believe that it is, because otherwise certain simple
  44309. expressions become undefined. However, because it would surprise most
  44310. programmers, G++ treats dereferencing a pointer to volatile object of
  44311. complete type as GCC would do for an equivalent type in C. When the
  44312. object has incomplete type, G++ issues a warning; if you wish to force
  44313. an error, you must force a conversion to rvalue with, for instance, a
  44314. static cast.
  44315. When using a reference to volatile, G++ does not treat equivalent
  44316. expressions as accesses to volatiles, but instead issues a warning that
  44317. no volatile is accessed. The rationale for this is that otherwise it
  44318. becomes difficult to determine where volatile access occur, and not
  44319. possible to ignore the return value from functions returning volatile
  44320. references. Again, if you wish to force a read, cast the reference to
  44321. an rvalue.
  44322. G++ implements the same behavior as GCC does when assigning to a
  44323. volatile object--there is no reread of the assigned-to object, the
  44324. assigned rvalue is reused. Note that in C++ assignment expressions are
  44325. lvalues, and if used as an lvalue, the volatile object is referred to.
  44326. For instance, VREF refers to VOBJ, as expected, in the following
  44327. example:
  44328. volatile int vobj;
  44329. volatile int &vref = vobj = SOMETHING;
  44330. 
  44331. File: gcc.info, Node: Restricted Pointers, Next: Vague Linkage, Prev: C++ Volatiles, Up: C++ Extensions
  44332. 7.2 Restricting Pointer Aliasing
  44333. ================================
  44334. As with the C front end, G++ understands the C99 feature of restricted
  44335. pointers, specified with the '__restrict__', or '__restrict' type
  44336. qualifier. Because you cannot compile C++ by specifying the '-std=c99'
  44337. language flag, 'restrict' is not a keyword in C++.
  44338. In addition to allowing restricted pointers, you can specify restricted
  44339. references, which indicate that the reference is not aliased in the
  44340. local context.
  44341. void fn (int *__restrict__ rptr, int &__restrict__ rref)
  44342. {
  44343. /* ... */
  44344. }
  44345. In the body of 'fn', RPTR points to an unaliased integer and RREF refers
  44346. to a (different) unaliased integer.
  44347. You may also specify whether a member function's THIS pointer is
  44348. unaliased by using '__restrict__' as a member function qualifier.
  44349. void T::fn () __restrict__
  44350. {
  44351. /* ... */
  44352. }
  44353. Within the body of 'T::fn', THIS has the effective definition 'T
  44354. *__restrict__ const this'. Notice that the interpretation of a
  44355. '__restrict__' member function qualifier is different to that of 'const'
  44356. or 'volatile' qualifier, in that it is applied to the pointer rather
  44357. than the object. This is consistent with other compilers that implement
  44358. restricted pointers.
  44359. As with all outermost parameter qualifiers, '__restrict__' is ignored
  44360. in function definition matching. This means you only need to specify
  44361. '__restrict__' in a function definition, rather than in a function
  44362. prototype as well.
  44363. 
  44364. File: gcc.info, Node: Vague Linkage, Next: C++ Interface, Prev: Restricted Pointers, Up: C++ Extensions
  44365. 7.3 Vague Linkage
  44366. =================
  44367. There are several constructs in C++ that require space in the object
  44368. file but are not clearly tied to a single translation unit. We say that
  44369. these constructs have "vague linkage". Typically such constructs are
  44370. emitted wherever they are needed, though sometimes we can be more
  44371. clever.
  44372. Inline Functions
  44373. Inline functions are typically defined in a header file which can
  44374. be included in many different compilations. Hopefully they can
  44375. usually be inlined, but sometimes an out-of-line copy is necessary,
  44376. if the address of the function is taken or if inlining fails. In
  44377. general, we emit an out-of-line copy in all translation units where
  44378. one is needed. As an exception, we only emit inline virtual
  44379. functions with the vtable, since it always requires a copy.
  44380. Local static variables and string constants used in an inline
  44381. function are also considered to have vague linkage, since they must
  44382. be shared between all inlined and out-of-line instances of the
  44383. function.
  44384. VTables
  44385. C++ virtual functions are implemented in most compilers using a
  44386. lookup table, known as a vtable. The vtable contains pointers to
  44387. the virtual functions provided by a class, and each object of the
  44388. class contains a pointer to its vtable (or vtables, in some
  44389. multiple-inheritance situations). If the class declares any
  44390. non-inline, non-pure virtual functions, the first one is chosen as
  44391. the "key method" for the class, and the vtable is only emitted in
  44392. the translation unit where the key method is defined.
  44393. _Note:_ If the chosen key method is later defined as inline, the
  44394. vtable is still emitted in every translation unit that defines it.
  44395. Make sure that any inline virtuals are declared inline in the class
  44396. body, even if they are not defined there.
  44397. 'type_info' objects
  44398. C++ requires information about types to be written out in order to
  44399. implement 'dynamic_cast', 'typeid' and exception handling. For
  44400. polymorphic classes (classes with virtual functions), the
  44401. 'type_info' object is written out along with the vtable so that
  44402. 'dynamic_cast' can determine the dynamic type of a class object at
  44403. run time. For all other types, we write out the 'type_info' object
  44404. when it is used: when applying 'typeid' to an expression, throwing
  44405. an object, or referring to a type in a catch clause or exception
  44406. specification.
  44407. Template Instantiations
  44408. Most everything in this section also applies to template
  44409. instantiations, but there are other options as well. *Note Where's
  44410. the Template?: Template Instantiation.
  44411. When used with GNU ld version 2.8 or later on an ELF system such as
  44412. GNU/Linux or Solaris 2, or on Microsoft Windows, duplicate copies of
  44413. these constructs will be discarded at link time. This is known as
  44414. COMDAT support.
  44415. On targets that don't support COMDAT, but do support weak symbols, GCC
  44416. uses them. This way one copy overrides all the others, but the unused
  44417. copies still take up space in the executable.
  44418. For targets that do not support either COMDAT or weak symbols, most
  44419. entities with vague linkage are emitted as local symbols to avoid
  44420. duplicate definition errors from the linker. This does not happen for
  44421. local statics in inlines, however, as having multiple copies almost
  44422. certainly breaks things.
  44423. *Note Declarations and Definitions in One Header: C++ Interface, for
  44424. another way to control placement of these constructs.
  44425. 
  44426. File: gcc.info, Node: C++ Interface, Next: Template Instantiation, Prev: Vague Linkage, Up: C++ Extensions
  44427. 7.4 C++ Interface and Implementation Pragmas
  44428. ============================================
  44429. '#pragma interface' and '#pragma implementation' provide the user with a
  44430. way of explicitly directing the compiler to emit entities with vague
  44431. linkage (and debugging information) in a particular translation unit.
  44432. _Note:_ These '#pragma's have been superceded as of GCC 2.7.2 by COMDAT
  44433. support and the "key method" heuristic mentioned in *note Vague
  44434. Linkage::. Using them can actually cause your program to grow due to
  44435. unnecessary out-of-line copies of inline functions.
  44436. '#pragma interface'
  44437. '#pragma interface "SUBDIR/OBJECTS.h"'
  44438. Use this directive in _header files_ that define object classes, to
  44439. save space in most of the object files that use those classes.
  44440. Normally, local copies of certain information (backup copies of
  44441. inline member functions, debugging information, and the internal
  44442. tables that implement virtual functions) must be kept in each
  44443. object file that includes class definitions. You can use this
  44444. pragma to avoid such duplication. When a header file containing
  44445. '#pragma interface' is included in a compilation, this auxiliary
  44446. information is not generated (unless the main input source file
  44447. itself uses '#pragma implementation'). Instead, the object files
  44448. contain references to be resolved at link time.
  44449. The second form of this directive is useful for the case where you
  44450. have multiple headers with the same name in different directories.
  44451. If you use this form, you must specify the same string to '#pragma
  44452. implementation'.
  44453. '#pragma implementation'
  44454. '#pragma implementation "OBJECTS.h"'
  44455. Use this pragma in a _main input file_, when you want full output
  44456. from included header files to be generated (and made globally
  44457. visible). The included header file, in turn, should use '#pragma
  44458. interface'. Backup copies of inline member functions, debugging
  44459. information, and the internal tables used to implement virtual
  44460. functions are all generated in implementation files.
  44461. If you use '#pragma implementation' with no argument, it applies to
  44462. an include file with the same basename(1) as your source file. For
  44463. example, in 'allclass.cc', giving just '#pragma implementation' by
  44464. itself is equivalent to '#pragma implementation "allclass.h"'.
  44465. Use the string argument if you want a single implementation file to
  44466. include code from multiple header files. (You must also use
  44467. '#include' to include the header file; '#pragma implementation'
  44468. only specifies how to use the file--it doesn't actually include
  44469. it.)
  44470. There is no way to split up the contents of a single header file
  44471. into multiple implementation files.
  44472. '#pragma implementation' and '#pragma interface' also have an effect on
  44473. function inlining.
  44474. If you define a class in a header file marked with '#pragma interface',
  44475. the effect on an inline function defined in that class is similar to an
  44476. explicit 'extern' declaration--the compiler emits no code at all to
  44477. define an independent version of the function. Its definition is used
  44478. only for inlining with its callers.
  44479. Conversely, when you include the same header file in a main source file
  44480. that declares it as '#pragma implementation', the compiler emits code
  44481. for the function itself; this defines a version of the function that can
  44482. be found via pointers (or by callers compiled without inlining). If all
  44483. calls to the function can be inlined, you can avoid emitting the
  44484. function by compiling with '-fno-implement-inlines'. If any calls are
  44485. not inlined, you will get linker errors.
  44486. ---------- Footnotes ----------
  44487. (1) A file's "basename" is the name stripped of all leading path
  44488. information and of trailing suffixes, such as '.h' or '.C' or '.cc'.
  44489. 
  44490. File: gcc.info, Node: Template Instantiation, Next: Bound member functions, Prev: C++ Interface, Up: C++ Extensions
  44491. 7.5 Where's the Template?
  44492. =========================
  44493. C++ templates were the first language feature to require more
  44494. intelligence from the environment than was traditionally found on a UNIX
  44495. system. Somehow the compiler and linker have to make sure that each
  44496. template instance occurs exactly once in the executable if it is needed,
  44497. and not at all otherwise. There are two basic approaches to this
  44498. problem, which are referred to as the Borland model and the Cfront
  44499. model.
  44500. Borland model
  44501. Borland C++ solved the template instantiation problem by adding the
  44502. code equivalent of common blocks to their linker; the compiler
  44503. emits template instances in each translation unit that uses them,
  44504. and the linker collapses them together. The advantage of this
  44505. model is that the linker only has to consider the object files
  44506. themselves; there is no external complexity to worry about. The
  44507. disadvantage is that compilation time is increased because the
  44508. template code is being compiled repeatedly. Code written for this
  44509. model tends to include definitions of all templates in the header
  44510. file, since they must be seen to be instantiated.
  44511. Cfront model
  44512. The AT&T C++ translator, Cfront, solved the template instantiation
  44513. problem by creating the notion of a template repository, an
  44514. automatically maintained place where template instances are stored.
  44515. A more modern version of the repository works as follows: As
  44516. individual object files are built, the compiler places any template
  44517. definitions and instantiations encountered in the repository. At
  44518. link time, the link wrapper adds in the objects in the repository
  44519. and compiles any needed instances that were not previously emitted.
  44520. The advantages of this model are more optimal compilation speed and
  44521. the ability to use the system linker; to implement the Borland
  44522. model a compiler vendor also needs to replace the linker. The
  44523. disadvantages are vastly increased complexity, and thus potential
  44524. for error; for some code this can be just as transparent, but in
  44525. practice it can been very difficult to build multiple programs in
  44526. one directory and one program in multiple directories. Code
  44527. written for this model tends to separate definitions of non-inline
  44528. member templates into a separate file, which should be compiled
  44529. separately.
  44530. G++ implements the Borland model on targets where the linker supports
  44531. it, including ELF targets (such as GNU/Linux), Mac OS X and Microsoft
  44532. Windows. Otherwise G++ implements neither automatic model.
  44533. You have the following options for dealing with template
  44534. instantiations:
  44535. 1. Do nothing. Code written for the Borland model works fine, but
  44536. each translation unit contains instances of each of the templates
  44537. it uses. The duplicate instances will be discarded by the linker,
  44538. but in a large program, this can lead to an unacceptable amount of
  44539. code duplication in object files or shared libraries.
  44540. Duplicate instances of a template can be avoided by defining an
  44541. explicit instantiation in one object file, and preventing the
  44542. compiler from doing implicit instantiations in any other object
  44543. files by using an explicit instantiation declaration, using the
  44544. 'extern template' syntax:
  44545. extern template int max (int, int);
  44546. This syntax is defined in the C++ 2011 standard, but has been
  44547. supported by G++ and other compilers since well before 2011.
  44548. Explicit instantiations can be used for the largest or most
  44549. frequently duplicated instances, without having to know exactly
  44550. which other instances are used in the rest of the program. You can
  44551. scatter the explicit instantiations throughout your program,
  44552. perhaps putting them in the translation units where the instances
  44553. are used or the translation units that define the templates
  44554. themselves; you can put all of the explicit instantiations you need
  44555. into one big file; or you can create small files like
  44556. #include "Foo.h"
  44557. #include "Foo.cc"
  44558. template class Foo<int>;
  44559. template ostream& operator <<
  44560. (ostream&, const Foo<int>&);
  44561. for each of the instances you need, and create a template
  44562. instantiation library from those.
  44563. This is the simplest option, but also offers flexibility and
  44564. fine-grained control when necessary. It is also the most portable
  44565. alternative and programs using this approach will work with most
  44566. modern compilers.
  44567. 2. Compile your code with '-fno-implicit-templates' to disable the
  44568. implicit generation of template instances, and explicitly
  44569. instantiate all the ones you use. This approach requires more
  44570. knowledge of exactly which instances you need than do the others,
  44571. but it's less mysterious and allows greater control if you want to
  44572. ensure that only the intended instances are used.
  44573. If you are using Cfront-model code, you can probably get away with
  44574. not using '-fno-implicit-templates' when compiling files that don't
  44575. '#include' the member template definitions.
  44576. If you use one big file to do the instantiations, you may want to
  44577. compile it without '-fno-implicit-templates' so you get all of the
  44578. instances required by your explicit instantiations (but not by any
  44579. other files) without having to specify them as well.
  44580. In addition to forward declaration of explicit instantiations (with
  44581. 'extern'), G++ has extended the template instantiation syntax to
  44582. support instantiation of the compiler support data for a template
  44583. class (i.e. the vtable) without instantiating any of its members
  44584. (with 'inline'), and instantiation of only the static data members
  44585. of a template class, without the support data or member functions
  44586. (with 'static'):
  44587. inline template class Foo<int>;
  44588. static template class Foo<int>;
  44589. 
  44590. File: gcc.info, Node: Bound member functions, Next: C++ Attributes, Prev: Template Instantiation, Up: C++ Extensions
  44591. 7.6 Extracting the Function Pointer from a Bound Pointer to Member Function
  44592. ===========================================================================
  44593. In C++, pointer to member functions (PMFs) are implemented using a wide
  44594. pointer of sorts to handle all the possible call mechanisms; the PMF
  44595. needs to store information about how to adjust the 'this' pointer, and
  44596. if the function pointed to is virtual, where to find the vtable, and
  44597. where in the vtable to look for the member function. If you are using
  44598. PMFs in an inner loop, you should really reconsider that decision. If
  44599. that is not an option, you can extract the pointer to the function that
  44600. would be called for a given object/PMF pair and call it directly inside
  44601. the inner loop, to save a bit of time.
  44602. Note that you still pay the penalty for the call through a function
  44603. pointer; on most modern architectures, such a call defeats the branch
  44604. prediction features of the CPU. This is also true of normal virtual
  44605. function calls.
  44606. The syntax for this extension is
  44607. extern A a;
  44608. extern int (A::*fp)();
  44609. typedef int (*fptr)(A *);
  44610. fptr p = (fptr)(a.*fp);
  44611. For PMF constants (i.e. expressions of the form '&Klasse::Member'), no
  44612. object is needed to obtain the address of the function. They can be
  44613. converted to function pointers directly:
  44614. fptr p1 = (fptr)(&A::foo);
  44615. You must specify '-Wno-pmf-conversions' to use this extension.
  44616. 
  44617. File: gcc.info, Node: C++ Attributes, Next: Function Multiversioning, Prev: Bound member functions, Up: C++ Extensions
  44618. 7.7 C++-Specific Variable, Function, and Type Attributes
  44619. ========================================================
  44620. Some attributes only make sense for C++ programs.
  44621. 'abi_tag ("TAG", ...)'
  44622. The 'abi_tag' attribute can be applied to a function, variable, or
  44623. class declaration. It modifies the mangled name of the entity to
  44624. incorporate the tag name, in order to distinguish the function or
  44625. class from an earlier version with a different ABI; perhaps the
  44626. class has changed size, or the function has a different return type
  44627. that is not encoded in the mangled name.
  44628. The attribute can also be applied to an inline namespace, but does
  44629. not affect the mangled name of the namespace; in this case it is
  44630. only used for '-Wabi-tag' warnings and automatic tagging of
  44631. functions and variables. Tagging inline namespaces is generally
  44632. preferable to tagging individual declarations, but the latter is
  44633. sometimes necessary, such as when only certain members of a class
  44634. need to be tagged.
  44635. The argument can be a list of strings of arbitrary length. The
  44636. strings are sorted on output, so the order of the list is
  44637. unimportant.
  44638. A redeclaration of an entity must not add new ABI tags, since doing
  44639. so would change the mangled name.
  44640. The ABI tags apply to a name, so all instantiations and
  44641. specializations of a template have the same tags. The attribute
  44642. will be ignored if applied to an explicit specialization or
  44643. instantiation.
  44644. The '-Wabi-tag' flag enables a warning about a class which does not
  44645. have all the ABI tags used by its subobjects and virtual functions;
  44646. for users with code that needs to coexist with an earlier ABI,
  44647. using this option can help to find all affected types that need to
  44648. be tagged.
  44649. When a type involving an ABI tag is used as the type of a variable
  44650. or return type of a function where that tag is not already present
  44651. in the signature of the function, the tag is automatically applied
  44652. to the variable or function. '-Wabi-tag' also warns about this
  44653. situation; this warning can be avoided by explicitly tagging the
  44654. variable or function or moving it into a tagged inline namespace.
  44655. 'init_priority (PRIORITY)'
  44656. In Standard C++, objects defined at namespace scope are guaranteed
  44657. to be initialized in an order in strict accordance with that of
  44658. their definitions _in a given translation unit_. No guarantee is
  44659. made for initializations across translation units. However, GNU
  44660. C++ allows users to control the order of initialization of objects
  44661. defined at namespace scope with the 'init_priority' attribute by
  44662. specifying a relative PRIORITY, a constant integral expression
  44663. currently bounded between 101 and 65535 inclusive. Lower numbers
  44664. indicate a higher priority.
  44665. In the following example, 'A' would normally be created before 'B',
  44666. but the 'init_priority' attribute reverses that order:
  44667. Some_Class A __attribute__ ((init_priority (2000)));
  44668. Some_Class B __attribute__ ((init_priority (543)));
  44669. Note that the particular values of PRIORITY do not matter; only
  44670. their relative ordering.
  44671. 'warn_unused'
  44672. For C++ types with non-trivial constructors and/or destructors it
  44673. is impossible for the compiler to determine whether a variable of
  44674. this type is truly unused if it is not referenced. This type
  44675. attribute informs the compiler that variables of this type should
  44676. be warned about if they appear to be unused, just like variables of
  44677. fundamental types.
  44678. This attribute is appropriate for types which just represent a
  44679. value, such as 'std::string'; it is not appropriate for types which
  44680. control a resource, such as 'std::lock_guard'.
  44681. This attribute is also accepted in C, but it is unnecessary because
  44682. C does not have constructors or destructors.
  44683. 
  44684. File: gcc.info, Node: Function Multiversioning, Next: Type Traits, Prev: C++ Attributes, Up: C++ Extensions
  44685. 7.8 Function Multiversioning
  44686. ============================
  44687. With the GNU C++ front end, for x86 targets, you may specify multiple
  44688. versions of a function, where each function is specialized for a
  44689. specific target feature. At runtime, the appropriate version of the
  44690. function is automatically executed depending on the characteristics of
  44691. the execution platform. Here is an example.
  44692. __attribute__ ((target ("default")))
  44693. int foo ()
  44694. {
  44695. // The default version of foo.
  44696. return 0;
  44697. }
  44698. __attribute__ ((target ("sse4.2")))
  44699. int foo ()
  44700. {
  44701. // foo version for SSE4.2
  44702. return 1;
  44703. }
  44704. __attribute__ ((target ("arch=atom")))
  44705. int foo ()
  44706. {
  44707. // foo version for the Intel ATOM processor
  44708. return 2;
  44709. }
  44710. __attribute__ ((target ("arch=amdfam10")))
  44711. int foo ()
  44712. {
  44713. // foo version for the AMD Family 0x10 processors.
  44714. return 3;
  44715. }
  44716. int main ()
  44717. {
  44718. int (*p)() = &foo;
  44719. assert ((*p) () == foo ());
  44720. return 0;
  44721. }
  44722. In the above example, four versions of function foo are created. The
  44723. first version of foo with the target attribute "default" is the default
  44724. version. This version gets executed when no other target specific
  44725. version qualifies for execution on a particular platform. A new version
  44726. of foo is created by using the same function signature but with a
  44727. different target string. Function foo is called or a pointer to it is
  44728. taken just like a regular function. GCC takes care of doing the
  44729. dispatching to call the right version at runtime. Refer to the GCC wiki
  44730. on Function Multiversioning
  44731. (http://gcc.gnu.org/wiki/FunctionMultiVersioning) for more details.
  44732. 
  44733. File: gcc.info, Node: Type Traits, Next: C++ Concepts, Prev: Function Multiversioning, Up: C++ Extensions
  44734. 7.9 Type Traits
  44735. ===============
  44736. The C++ front end implements syntactic extensions that allow
  44737. compile-time determination of various characteristics of a type (or of a
  44738. pair of types).
  44739. '__has_nothrow_assign (type)'
  44740. If 'type' is 'const'-qualified or is a reference type then the
  44741. trait is 'false'. Otherwise if '__has_trivial_assign (type)' is
  44742. 'true' then the trait is 'true', else if 'type' is a cv-qualified
  44743. class or union type with copy assignment operators that are known
  44744. not to throw an exception then the trait is 'true', else it is
  44745. 'false'. Requires: 'type' shall be a complete type, (possibly
  44746. cv-qualified) 'void', or an array of unknown bound.
  44747. '__has_nothrow_copy (type)'
  44748. If '__has_trivial_copy (type)' is 'true' then the trait is 'true',
  44749. else if 'type' is a cv-qualified class or union type with copy
  44750. constructors that are known not to throw an exception then the
  44751. trait is 'true', else it is 'false'. Requires: 'type' shall be a
  44752. complete type, (possibly cv-qualified) 'void', or an array of
  44753. unknown bound.
  44754. '__has_nothrow_constructor (type)'
  44755. If '__has_trivial_constructor (type)' is 'true' then the trait is
  44756. 'true', else if 'type' is a cv class or union type (or array
  44757. thereof) with a default constructor that is known not to throw an
  44758. exception then the trait is 'true', else it is 'false'. Requires:
  44759. 'type' shall be a complete type, (possibly cv-qualified) 'void', or
  44760. an array of unknown bound.
  44761. '__has_trivial_assign (type)'
  44762. If 'type' is 'const'- qualified or is a reference type then the
  44763. trait is 'false'. Otherwise if '__is_pod (type)' is 'true' then
  44764. the trait is 'true', else if 'type' is a cv-qualified class or
  44765. union type with a trivial copy assignment ([class.copy]) then the
  44766. trait is 'true', else it is 'false'. Requires: 'type' shall be a
  44767. complete type, (possibly cv-qualified) 'void', or an array of
  44768. unknown bound.
  44769. '__has_trivial_copy (type)'
  44770. If '__is_pod (type)' is 'true' or 'type' is a reference type then
  44771. the trait is 'true', else if 'type' is a cv class or union type
  44772. with a trivial copy constructor ([class.copy]) then the trait is
  44773. 'true', else it is 'false'. Requires: 'type' shall be a complete
  44774. type, (possibly cv-qualified) 'void', or an array of unknown bound.
  44775. '__has_trivial_constructor (type)'
  44776. If '__is_pod (type)' is 'true' then the trait is 'true', else if
  44777. 'type' is a cv-qualified class or union type (or array thereof)
  44778. with a trivial default constructor ([class.ctor]) then the trait is
  44779. 'true', else it is 'false'. Requires: 'type' shall be a complete
  44780. type, (possibly cv-qualified) 'void', or an array of unknown bound.
  44781. '__has_trivial_destructor (type)'
  44782. If '__is_pod (type)' is 'true' or 'type' is a reference type then
  44783. the trait is 'true', else if 'type' is a cv class or union type (or
  44784. array thereof) with a trivial destructor ([class.dtor]) then the
  44785. trait is 'true', else it is 'false'. Requires: 'type' shall be a
  44786. complete type, (possibly cv-qualified) 'void', or an array of
  44787. unknown bound.
  44788. '__has_virtual_destructor (type)'
  44789. If 'type' is a class type with a virtual destructor ([class.dtor])
  44790. then the trait is 'true', else it is 'false'. Requires: 'type'
  44791. shall be a complete type, (possibly cv-qualified) 'void', or an
  44792. array of unknown bound.
  44793. '__is_abstract (type)'
  44794. If 'type' is an abstract class ([class.abstract]) then the trait is
  44795. 'true', else it is 'false'. Requires: 'type' shall be a complete
  44796. type, (possibly cv-qualified) 'void', or an array of unknown bound.
  44797. '__is_base_of (base_type, derived_type)'
  44798. If 'base_type' is a base class of 'derived_type' ([class.derived])
  44799. then the trait is 'true', otherwise it is 'false'. Top-level
  44800. cv-qualifications of 'base_type' and 'derived_type' are ignored.
  44801. For the purposes of this trait, a class type is considered is own
  44802. base. Requires: if '__is_class (base_type)' and '__is_class
  44803. (derived_type)' are 'true' and 'base_type' and 'derived_type' are
  44804. not the same type (disregarding cv-qualifiers), 'derived_type'
  44805. shall be a complete type. A diagnostic is produced if this
  44806. requirement is not met.
  44807. '__is_class (type)'
  44808. If 'type' is a cv-qualified class type, and not a union type
  44809. ([basic.compound]) the trait is 'true', else it is 'false'.
  44810. '__is_empty (type)'
  44811. If '__is_class (type)' is 'false' then the trait is 'false'.
  44812. Otherwise 'type' is considered empty if and only if: 'type' has no
  44813. non-static data members, or all non-static data members, if any,
  44814. are bit-fields of length 0, and 'type' has no virtual members, and
  44815. 'type' has no virtual base classes, and 'type' has no base classes
  44816. 'base_type' for which '__is_empty (base_type)' is 'false'.
  44817. Requires: 'type' shall be a complete type, (possibly cv-qualified)
  44818. 'void', or an array of unknown bound.
  44819. '__is_enum (type)'
  44820. If 'type' is a cv enumeration type ([basic.compound]) the trait is
  44821. 'true', else it is 'false'.
  44822. '__is_literal_type (type)'
  44823. If 'type' is a literal type ([basic.types]) the trait is 'true',
  44824. else it is 'false'. Requires: 'type' shall be a complete type,
  44825. (possibly cv-qualified) 'void', or an array of unknown bound.
  44826. '__is_pod (type)'
  44827. If 'type' is a cv POD type ([basic.types]) then the trait is
  44828. 'true', else it is 'false'. Requires: 'type' shall be a complete
  44829. type, (possibly cv-qualified) 'void', or an array of unknown bound.
  44830. '__is_polymorphic (type)'
  44831. If 'type' is a polymorphic class ([class.virtual]) then the trait
  44832. is 'true', else it is 'false'. Requires: 'type' shall be a
  44833. complete type, (possibly cv-qualified) 'void', or an array of
  44834. unknown bound.
  44835. '__is_standard_layout (type)'
  44836. If 'type' is a standard-layout type ([basic.types]) the trait is
  44837. 'true', else it is 'false'. Requires: 'type' shall be a complete
  44838. type, (possibly cv-qualified) 'void', or an array of unknown bound.
  44839. '__is_trivial (type)'
  44840. If 'type' is a trivial type ([basic.types]) the trait is 'true',
  44841. else it is 'false'. Requires: 'type' shall be a complete type,
  44842. (possibly cv-qualified) 'void', or an array of unknown bound.
  44843. '__is_union (type)'
  44844. If 'type' is a cv union type ([basic.compound]) the trait is
  44845. 'true', else it is 'false'.
  44846. '__underlying_type (type)'
  44847. The underlying type of 'type'. Requires: 'type' shall be an
  44848. enumeration type ([dcl.enum]).
  44849. '__integer_pack (length)'
  44850. When used as the pattern of a pack expansion within a template
  44851. definition, expands to a template argument pack containing integers
  44852. from '0' to 'length-1'. This is provided for efficient
  44853. implementation of 'std::make_integer_sequence'.
  44854. 
  44855. File: gcc.info, Node: C++ Concepts, Next: Deprecated Features, Prev: Type Traits, Up: C++ Extensions
  44856. 7.10 C++ Concepts
  44857. =================
  44858. C++ concepts provide much-improved support for generic programming. In
  44859. particular, they allow the specification of constraints on template
  44860. arguments. The constraints are used to extend the usual overloading and
  44861. partial specialization capabilities of the language, allowing generic
  44862. data structures and algorithms to be "refined" based on their properties
  44863. rather than their type names.
  44864. The following keywords are reserved for concepts.
  44865. 'assumes'
  44866. States an expression as an assumption, and if possible, verifies
  44867. that the assumption is valid. For example, 'assume(n > 0)'.
  44868. 'axiom'
  44869. Introduces an axiom definition. Axioms introduce requirements on
  44870. values.
  44871. 'forall'
  44872. Introduces a universally quantified object in an axiom. For
  44873. example, 'forall (int n) n + 0 == n').
  44874. 'concept'
  44875. Introduces a concept definition. Concepts are sets of syntactic
  44876. and semantic requirements on types and their values.
  44877. 'requires'
  44878. Introduces constraints on template arguments or requirements for a
  44879. member function of a class template.
  44880. The front end also exposes a number of internal mechanism that can be
  44881. used to simplify the writing of type traits. Note that some of these
  44882. traits are likely to be removed in the future.
  44883. '__is_same (type1, type2)'
  44884. A binary type trait: 'true' whenever the type arguments are the
  44885. same.
  44886. 
  44887. File: gcc.info, Node: Deprecated Features, Next: Backwards Compatibility, Prev: C++ Concepts, Up: C++ Extensions
  44888. 7.11 Deprecated Features
  44889. ========================
  44890. In the past, the GNU C++ compiler was extended to experiment with new
  44891. features, at a time when the C++ language was still evolving. Now that
  44892. the C++ standard is complete, some of those features are superseded by
  44893. superior alternatives. Using the old features might cause a warning in
  44894. some cases that the feature will be dropped in the future. In other
  44895. cases, the feature might be gone already.
  44896. G++ allows a virtual function returning 'void *' to be overridden by
  44897. one returning a different pointer type. This extension to the covariant
  44898. return type rules is now deprecated and will be removed from a future
  44899. version.
  44900. The use of default arguments in function pointers, function typedefs
  44901. and other places where they are not permitted by the standard is
  44902. deprecated and will be removed from a future version of G++.
  44903. G++ allows floating-point literals to appear in integral constant
  44904. expressions, e.g. ' enum E { e = int(2.2 * 3.7) } ' This extension is
  44905. deprecated and will be removed from a future version.
  44906. G++ allows static data members of const floating-point type to be
  44907. declared with an initializer in a class definition. The standard only
  44908. allows initializers for static members of const integral types and const
  44909. enumeration types so this extension has been deprecated and will be
  44910. removed from a future version.
  44911. G++ allows attributes to follow a parenthesized direct initializer,
  44912. e.g. ' int f (0) __attribute__ ((something)); ' This extension has been
  44913. ignored since G++ 3.3 and is deprecated.
  44914. G++ allows anonymous structs and unions to have members that are not
  44915. public non-static data members (i.e. fields). These extensions are
  44916. deprecated.
  44917. 
  44918. File: gcc.info, Node: Backwards Compatibility, Prev: Deprecated Features, Up: C++ Extensions
  44919. 7.12 Backwards Compatibility
  44920. ============================
  44921. Now that there is a definitive ISO standard C++, G++ has a specification
  44922. to adhere to. The C++ language evolved over time, and features that
  44923. used to be acceptable in previous drafts of the standard, such as the
  44924. ARM [Annotated C++ Reference Manual], are no longer accepted. In order
  44925. to allow compilation of C++ written to such drafts, G++ contains some
  44926. backwards compatibilities. _All such backwards compatibility features
  44927. are liable to disappear in future versions of G++._ They should be
  44928. considered deprecated. *Note Deprecated Features::.
  44929. 'Implicit C language'
  44930. Old C system header files did not contain an 'extern "C" {...}'
  44931. scope to set the language. On such systems, all system header
  44932. files are implicitly scoped inside a C language scope. Such
  44933. headers must correctly prototype function argument types, there is
  44934. no leeway for '()' to indicate an unspecified set of arguments.
  44935. 
  44936. File: gcc.info, Node: Objective-C, Next: Compatibility, Prev: C++ Extensions, Up: Top
  44937. 8 GNU Objective-C Features
  44938. **************************
  44939. This document is meant to describe some of the GNU Objective-C features.
  44940. It is not intended to teach you Objective-C. There are several resources
  44941. on the Internet that present the language.
  44942. * Menu:
  44943. * GNU Objective-C runtime API::
  44944. * Executing code before main::
  44945. * Type encoding::
  44946. * Garbage Collection::
  44947. * Constant string objects::
  44948. * compatibility_alias::
  44949. * Exceptions::
  44950. * Synchronization::
  44951. * Fast enumeration::
  44952. * Messaging with the GNU Objective-C runtime::
  44953. 
  44954. File: gcc.info, Node: GNU Objective-C runtime API, Next: Executing code before main, Up: Objective-C
  44955. 8.1 GNU Objective-C Runtime API
  44956. ===============================
  44957. This section is specific for the GNU Objective-C runtime. If you are
  44958. using a different runtime, you can skip it.
  44959. The GNU Objective-C runtime provides an API that allows you to interact
  44960. with the Objective-C runtime system, querying the live runtime
  44961. structures and even manipulating them. This allows you for example to
  44962. inspect and navigate classes, methods and protocols; to define new
  44963. classes or new methods, and even to modify existing classes or
  44964. protocols.
  44965. If you are using a "Foundation" library such as GNUstep-Base, this
  44966. library will provide you with a rich set of functionality to do most of
  44967. the inspection tasks, and you probably will only need direct access to
  44968. the GNU Objective-C runtime API to define new classes or methods.
  44969. * Menu:
  44970. * Modern GNU Objective-C runtime API::
  44971. * Traditional GNU Objective-C runtime API::
  44972. 
  44973. File: gcc.info, Node: Modern GNU Objective-C runtime API, Next: Traditional GNU Objective-C runtime API, Up: GNU Objective-C runtime API
  44974. 8.1.1 Modern GNU Objective-C Runtime API
  44975. ----------------------------------------
  44976. The GNU Objective-C runtime provides an API which is similar to the one
  44977. provided by the "Objective-C 2.0" Apple/NeXT Objective-C runtime. The
  44978. API is documented in the public header files of the GNU Objective-C
  44979. runtime:
  44980. * 'objc/objc.h': this is the basic Objective-C header file, defining
  44981. the basic Objective-C types such as 'id', 'Class' and 'BOOL'. You
  44982. have to include this header to do almost anything with Objective-C.
  44983. * 'objc/runtime.h': this header declares most of the public runtime
  44984. API functions allowing you to inspect and manipulate the
  44985. Objective-C runtime data structures. These functions are fairly
  44986. standardized across Objective-C runtimes and are almost identical
  44987. to the Apple/NeXT Objective-C runtime ones. It does not declare
  44988. functions in some specialized areas (constructing and forwarding
  44989. message invocations, threading) which are in the other headers
  44990. below. You have to include 'objc/objc.h' and 'objc/runtime.h' to
  44991. use any of the functions, such as 'class_getName()', declared in
  44992. 'objc/runtime.h'.
  44993. * 'objc/message.h': this header declares public functions used to
  44994. construct, deconstruct and forward message invocations. Because
  44995. messaging is done in quite a different way on different runtimes,
  44996. functions in this header are specific to the GNU Objective-C
  44997. runtime implementation.
  44998. * 'objc/objc-exception.h': this header declares some public functions
  44999. related to Objective-C exceptions. For example functions in this
  45000. header allow you to throw an Objective-C exception from plain C/C++
  45001. code.
  45002. * 'objc/objc-sync.h': this header declares some public functions
  45003. related to the Objective-C '@synchronized()' syntax, allowing you
  45004. to emulate an Objective-C '@synchronized()' block in plain C/C++
  45005. code.
  45006. * 'objc/thr.h': this header declares a public runtime API threading
  45007. layer that is only provided by the GNU Objective-C runtime. It
  45008. declares functions such as 'objc_mutex_lock()', which provide a
  45009. platform-independent set of threading functions.
  45010. The header files contain detailed documentation for each function in
  45011. the GNU Objective-C runtime API.
  45012. 
  45013. File: gcc.info, Node: Traditional GNU Objective-C runtime API, Prev: Modern GNU Objective-C runtime API, Up: GNU Objective-C runtime API
  45014. 8.1.2 Traditional GNU Objective-C Runtime API
  45015. ---------------------------------------------
  45016. The GNU Objective-C runtime used to provide a different API, which we
  45017. call the "traditional" GNU Objective-C runtime API. Functions belonging
  45018. to this API are easy to recognize because they use a different naming
  45019. convention, such as 'class_get_super_class()' (traditional API) instead
  45020. of 'class_getSuperclass()' (modern API). Software using this API
  45021. includes the file 'objc/objc-api.h' where it is declared.
  45022. Starting with GCC 4.7.0, the traditional GNU runtime API is no longer
  45023. available.
  45024. 
  45025. File: gcc.info, Node: Executing code before main, Next: Type encoding, Prev: GNU Objective-C runtime API, Up: Objective-C
  45026. 8.2 '+load': Executing Code before 'main'
  45027. =========================================
  45028. This section is specific for the GNU Objective-C runtime. If you are
  45029. using a different runtime, you can skip it.
  45030. The GNU Objective-C runtime provides a way that allows you to execute
  45031. code before the execution of the program enters the 'main' function.
  45032. The code is executed on a per-class and a per-category basis, through a
  45033. special class method '+load'.
  45034. This facility is very useful if you want to initialize global variables
  45035. which can be accessed by the program directly, without sending a message
  45036. to the class first. The usual way to initialize global variables, in
  45037. the '+initialize' method, might not be useful because '+initialize' is
  45038. only called when the first message is sent to a class object, which in
  45039. some cases could be too late.
  45040. Suppose for example you have a 'FileStream' class that declares
  45041. 'Stdin', 'Stdout' and 'Stderr' as global variables, like below:
  45042. FileStream *Stdin = nil;
  45043. FileStream *Stdout = nil;
  45044. FileStream *Stderr = nil;
  45045. @implementation FileStream
  45046. + (void)initialize
  45047. {
  45048. Stdin = [[FileStream new] initWithFd:0];
  45049. Stdout = [[FileStream new] initWithFd:1];
  45050. Stderr = [[FileStream new] initWithFd:2];
  45051. }
  45052. /* Other methods here */
  45053. @end
  45054. In this example, the initialization of 'Stdin', 'Stdout' and 'Stderr'
  45055. in '+initialize' occurs too late. The programmer can send a message to
  45056. one of these objects before the variables are actually initialized, thus
  45057. sending messages to the 'nil' object. The '+initialize' method which
  45058. actually initializes the global variables is not invoked until the first
  45059. message is sent to the class object. The solution would require these
  45060. variables to be initialized just before entering 'main'.
  45061. The correct solution of the above problem is to use the '+load' method
  45062. instead of '+initialize':
  45063. @implementation FileStream
  45064. + (void)load
  45065. {
  45066. Stdin = [[FileStream new] initWithFd:0];
  45067. Stdout = [[FileStream new] initWithFd:1];
  45068. Stderr = [[FileStream new] initWithFd:2];
  45069. }
  45070. /* Other methods here */
  45071. @end
  45072. The '+load' is a method that is not overridden by categories. If a
  45073. class and a category of it both implement '+load', both methods are
  45074. invoked. This allows some additional initializations to be performed in
  45075. a category.
  45076. This mechanism is not intended to be a replacement for '+initialize'.
  45077. You should be aware of its limitations when you decide to use it instead
  45078. of '+initialize'.
  45079. * Menu:
  45080. * What you can and what you cannot do in +load::
  45081. 
  45082. File: gcc.info, Node: What you can and what you cannot do in +load, Up: Executing code before main
  45083. 8.2.1 What You Can and Cannot Do in '+load'
  45084. -------------------------------------------
  45085. '+load' is to be used only as a last resort. Because it is executed
  45086. very early, most of the Objective-C runtime machinery will not be ready
  45087. when '+load' is executed; hence '+load' works best for executing C code
  45088. that is independent on the Objective-C runtime.
  45089. The '+load' implementation in the GNU runtime guarantees you the
  45090. following things:
  45091. * you can write whatever C code you like;
  45092. * you can allocate and send messages to objects whose class is
  45093. implemented in the same file;
  45094. * the '+load' implementation of all super classes of a class are
  45095. executed before the '+load' of that class is executed;
  45096. * the '+load' implementation of a class is executed before the
  45097. '+load' implementation of any category.
  45098. In particular, the following things, even if they can work in a
  45099. particular case, are not guaranteed:
  45100. * allocation of or sending messages to arbitrary objects;
  45101. * allocation of or sending messages to objects whose classes have a
  45102. category implemented in the same file;
  45103. * sending messages to Objective-C constant strings ('@"this is a
  45104. constant string"');
  45105. You should make no assumptions about receiving '+load' in sibling
  45106. classes when you write '+load' of a class. The order in which sibling
  45107. classes receive '+load' is not guaranteed.
  45108. The order in which '+load' and '+initialize' are called could be
  45109. problematic if this matters. If you don't allocate objects inside
  45110. '+load', it is guaranteed that '+load' is called before '+initialize'.
  45111. If you create an object inside '+load' the '+initialize' method of
  45112. object's class is invoked even if '+load' was not invoked. Note if you
  45113. explicitly call '+load' on a class, '+initialize' will be called first.
  45114. To avoid possible problems try to implement only one of these methods.
  45115. The '+load' method is also invoked when a bundle is dynamically loaded
  45116. into your running program. This happens automatically without any
  45117. intervening operation from you. When you write bundles and you need to
  45118. write '+load' you can safely create and send messages to objects whose
  45119. classes already exist in the running program. The same restrictions as
  45120. above apply to classes defined in bundle.
  45121. 
  45122. File: gcc.info, Node: Type encoding, Next: Garbage Collection, Prev: Executing code before main, Up: Objective-C
  45123. 8.3 Type Encoding
  45124. =================
  45125. This is an advanced section. Type encodings are used extensively by the
  45126. compiler and by the runtime, but you generally do not need to know about
  45127. them to use Objective-C.
  45128. The Objective-C compiler generates type encodings for all the types.
  45129. These type encodings are used at runtime to find out information about
  45130. selectors and methods and about objects and classes.
  45131. The types are encoded in the following way:
  45132. '_Bool' 'B'
  45133. 'char' 'c'
  45134. 'unsigned char' 'C'
  45135. 'short' 's'
  45136. 'unsigned short' 'S'
  45137. 'int' 'i'
  45138. 'unsigned int' 'I'
  45139. 'long' 'l'
  45140. 'unsigned long' 'L'
  45141. 'long long' 'q'
  45142. 'unsigned long 'Q'
  45143. long'
  45144. 'float' 'f'
  45145. 'double' 'd'
  45146. 'long double' 'D'
  45147. 'void' 'v'
  45148. 'id' '@'
  45149. 'Class' '#'
  45150. 'SEL' ':'
  45151. 'char*' '*'
  45152. 'enum' an 'enum' is encoded exactly as the integer type
  45153. that the compiler uses for it, which depends on the
  45154. enumeration values. Often the compiler users
  45155. 'unsigned int', which is then encoded as 'I'.
  45156. unknown type '?'
  45157. Complex types 'j' followed by the inner type. For example
  45158. '_Complex double' is encoded as "jd".
  45159. bit-fields 'b' followed by the starting position of the
  45160. bit-field, the type of the bit-field and the size of
  45161. the bit-field (the bit-fields encoding was changed
  45162. from the NeXT's compiler encoding, see below)
  45163. The encoding of bit-fields has changed to allow bit-fields to be
  45164. properly handled by the runtime functions that compute sizes and
  45165. alignments of types that contain bit-fields. The previous encoding
  45166. contained only the size of the bit-field. Using only this information
  45167. it is not possible to reliably compute the size occupied by the
  45168. bit-field. This is very important in the presence of the Boehm's
  45169. garbage collector because the objects are allocated using the typed
  45170. memory facility available in this collector. The typed memory
  45171. allocation requires information about where the pointers are located
  45172. inside the object.
  45173. The position in the bit-field is the position, counting in bits, of the
  45174. bit closest to the beginning of the structure.
  45175. The non-atomic types are encoded as follows:
  45176. pointers '^' followed by the pointed type.
  45177. arrays '[' followed by the number of elements in the array
  45178. followed by the type of the elements followed by ']'
  45179. structures '{' followed by the name of the structure (or '?' if the
  45180. structure is unnamed), the '=' sign, the type of the
  45181. members and by '}'
  45182. unions '(' followed by the name of the structure (or '?' if the
  45183. union is unnamed), the '=' sign, the type of the members
  45184. followed by ')'
  45185. vectors '![' followed by the vector_size (the number of bytes
  45186. composing the vector) followed by a comma, followed by
  45187. the alignment (in bytes) of the vector, followed by the
  45188. type of the elements followed by ']'
  45189. Here are some types and their encodings, as they are generated by the
  45190. compiler on an i386 machine:
  45191. Objective-C type Compiler encoding
  45192. int a[10]; '[10i]'
  45193. struct { '{?=i[3f]b128i3b131i2c}'
  45194. int i;
  45195. float f[3];
  45196. int a:3;
  45197. int b:2;
  45198. char c;
  45199. }
  45200. int a __attribute__ ((vector_size (16)));'![16,16i]' (alignment
  45201. depends on the machine)
  45202. In addition to the types the compiler also encodes the type specifiers.
  45203. The table below describes the encoding of the current Objective-C type
  45204. specifiers:
  45205. Specifier Encoding
  45206. 'const' 'r'
  45207. 'in' 'n'
  45208. 'inout' 'N'
  45209. 'out' 'o'
  45210. 'bycopy' 'O'
  45211. 'byref' 'R'
  45212. 'oneway' 'V'
  45213. The type specifiers are encoded just before the type. Unlike types
  45214. however, the type specifiers are only encoded when they appear in method
  45215. argument types.
  45216. Note how 'const' interacts with pointers:
  45217. Objective-C type Compiler encoding
  45218. const int 'ri'
  45219. const int* '^ri'
  45220. int *const 'r^i'
  45221. 'const int*' is a pointer to a 'const int', and so is encoded as '^ri'.
  45222. 'int* const', instead, is a 'const' pointer to an 'int', and so is
  45223. encoded as 'r^i'.
  45224. Finally, there is a complication when encoding 'const char *' versus
  45225. 'char * const'. Because 'char *' is encoded as '*' and not as '^c',
  45226. there is no way to express the fact that 'r' applies to the pointer or
  45227. to the pointee.
  45228. Hence, it is assumed as a convention that 'r*' means 'const char *'
  45229. (since it is what is most often meant), and there is no way to encode
  45230. 'char *const'. 'char *const' would simply be encoded as '*', and the
  45231. 'const' is lost.
  45232. * Menu:
  45233. * Legacy type encoding::
  45234. * @encode::
  45235. * Method signatures::
  45236. 
  45237. File: gcc.info, Node: Legacy type encoding, Next: @encode, Up: Type encoding
  45238. 8.3.1 Legacy Type Encoding
  45239. --------------------------
  45240. Unfortunately, historically GCC used to have a number of bugs in its
  45241. encoding code. The NeXT runtime expects GCC to emit type encodings in
  45242. this historical format (compatible with GCC-3.3), so when using the NeXT
  45243. runtime, GCC will introduce on purpose a number of incorrect encodings:
  45244. * the read-only qualifier of the pointee gets emitted before the '^'.
  45245. The read-only qualifier of the pointer itself gets ignored, unless
  45246. it is a typedef. Also, the 'r' is only emitted for the outermost
  45247. type.
  45248. * 32-bit longs are encoded as 'l' or 'L', but not always. For
  45249. typedefs, the compiler uses 'i' or 'I' instead if encoding a struct
  45250. field or a pointer.
  45251. * 'enum's are always encoded as 'i' (int) even if they are actually
  45252. unsigned or long.
  45253. In addition to that, the NeXT runtime uses a different encoding for
  45254. bitfields. It encodes them as 'b' followed by the size, without a bit
  45255. offset or the underlying field type.
  45256. 
  45257. File: gcc.info, Node: @encode, Next: Method signatures, Prev: Legacy type encoding, Up: Type encoding
  45258. 8.3.2 '@encode'
  45259. ---------------
  45260. GNU Objective-C supports the '@encode' syntax that allows you to create
  45261. a type encoding from a C/Objective-C type. For example, '@encode(int)'
  45262. is compiled by the compiler into '"i"'.
  45263. '@encode' does not support type qualifiers other than 'const'. For
  45264. example, '@encode(const char*)' is valid and is compiled into '"r*"',
  45265. while '@encode(bycopy char *)' is invalid and will cause a compilation
  45266. error.
  45267. 
  45268. File: gcc.info, Node: Method signatures, Prev: @encode, Up: Type encoding
  45269. 8.3.3 Method Signatures
  45270. -----------------------
  45271. This section documents the encoding of method types, which is rarely
  45272. needed to use Objective-C. You should skip it at a first reading; the
  45273. runtime provides functions that will work on methods and can walk
  45274. through the list of parameters and interpret them for you. These
  45275. functions are part of the public "API" and are the preferred way to
  45276. interact with method signatures from user code.
  45277. But if you need to debug a problem with method signatures and need to
  45278. know how they are implemented (i.e., the "ABI"), read on.
  45279. Methods have their "signature" encoded and made available to the
  45280. runtime. The "signature" encodes all the information required to
  45281. dynamically build invocations of the method at runtime: return type and
  45282. arguments.
  45283. The "signature" is a null-terminated string, composed of the following:
  45284. * The return type, including type qualifiers. For example, a method
  45285. returning 'int' would have 'i' here.
  45286. * The total size (in bytes) required to pass all the parameters.
  45287. This includes the two hidden parameters (the object 'self' and the
  45288. method selector '_cmd').
  45289. * Each argument, with the type encoding, followed by the offset (in
  45290. bytes) of the argument in the list of parameters.
  45291. For example, a method with no arguments and returning 'int' would have
  45292. the signature 'i8@0:4' if the size of a pointer is 4. The signature is
  45293. interpreted as follows: the 'i' is the return type (an 'int'), the '8'
  45294. is the total size of the parameters in bytes (two pointers each of size
  45295. 4), the '@0' is the first parameter (an object at byte offset '0') and
  45296. ':4' is the second parameter (a 'SEL' at byte offset '4').
  45297. You can easily find more examples by running the "strings" program on
  45298. an Objective-C object file compiled by GCC. You'll see a lot of strings
  45299. that look very much like 'i8@0:4'. They are signatures of Objective-C
  45300. methods.
  45301. 
  45302. File: gcc.info, Node: Garbage Collection, Next: Constant string objects, Prev: Type encoding, Up: Objective-C
  45303. 8.4 Garbage Collection
  45304. ======================
  45305. This section is specific for the GNU Objective-C runtime. If you are
  45306. using a different runtime, you can skip it.
  45307. Support for garbage collection with the GNU runtime has been added by
  45308. using a powerful conservative garbage collector, known as the
  45309. Boehm-Demers-Weiser conservative garbage collector.
  45310. To enable the support for it you have to configure the compiler using
  45311. an additional argument, '--enable-objc-gc'. This will build the
  45312. boehm-gc library, and build an additional runtime library which has
  45313. several enhancements to support the garbage collector. The new library
  45314. has a new name, 'libobjc_gc.a' to not conflict with the
  45315. non-garbage-collected library.
  45316. When the garbage collector is used, the objects are allocated using the
  45317. so-called typed memory allocation mechanism available in the
  45318. Boehm-Demers-Weiser collector. This mode requires precise information
  45319. on where pointers are located inside objects. This information is
  45320. computed once per class, immediately after the class has been
  45321. initialized.
  45322. There is a new runtime function 'class_ivar_set_gcinvisible()' which
  45323. can be used to declare a so-called "weak pointer" reference. Such a
  45324. pointer is basically hidden for the garbage collector; this can be
  45325. useful in certain situations, especially when you want to keep track of
  45326. the allocated objects, yet allow them to be collected. This kind of
  45327. pointers can only be members of objects, you cannot declare a global
  45328. pointer as a weak reference. Every type which is a pointer type can be
  45329. declared a weak pointer, including 'id', 'Class' and 'SEL'.
  45330. Here is an example of how to use this feature. Suppose you want to
  45331. implement a class whose instances hold a weak pointer reference; the
  45332. following class does this:
  45333. @interface WeakPointer : Object
  45334. {
  45335. const void* weakPointer;
  45336. }
  45337. - initWithPointer:(const void*)p;
  45338. - (const void*)weakPointer;
  45339. @end
  45340. @implementation WeakPointer
  45341. + (void)initialize
  45342. {
  45343. if (self == objc_lookUpClass ("WeakPointer"))
  45344. class_ivar_set_gcinvisible (self, "weakPointer", YES);
  45345. }
  45346. - initWithPointer:(const void*)p
  45347. {
  45348. weakPointer = p;
  45349. return self;
  45350. }
  45351. - (const void*)weakPointer
  45352. {
  45353. return weakPointer;
  45354. }
  45355. @end
  45356. Weak pointers are supported through a new type character specifier
  45357. represented by the '!' character. The 'class_ivar_set_gcinvisible()'
  45358. function adds or removes this specifier to the string type description
  45359. of the instance variable named as argument.
  45360. 
  45361. File: gcc.info, Node: Constant string objects, Next: compatibility_alias, Prev: Garbage Collection, Up: Objective-C
  45362. 8.5 Constant String Objects
  45363. ===========================
  45364. GNU Objective-C provides constant string objects that are generated
  45365. directly by the compiler. You declare a constant string object by
  45366. prefixing a C constant string with the character '@':
  45367. id myString = @"this is a constant string object";
  45368. The constant string objects are by default instances of the
  45369. 'NXConstantString' class which is provided by the GNU Objective-C
  45370. runtime. To get the definition of this class you must include the
  45371. 'objc/NXConstStr.h' header file.
  45372. User defined libraries may want to implement their own constant string
  45373. class. To be able to support them, the GNU Objective-C compiler
  45374. provides a new command line options
  45375. '-fconstant-string-class=CLASS-NAME'. The provided class should adhere
  45376. to a strict structure, the same as 'NXConstantString''s structure:
  45377. @interface MyConstantStringClass
  45378. {
  45379. Class isa;
  45380. char *c_string;
  45381. unsigned int len;
  45382. }
  45383. @end
  45384. 'NXConstantString' inherits from 'Object'; user class libraries may
  45385. choose to inherit the customized constant string class from a different
  45386. class than 'Object'. There is no requirement in the methods the
  45387. constant string class has to implement, but the final ivar layout of the
  45388. class must be the compatible with the given structure.
  45389. When the compiler creates the statically allocated constant string
  45390. object, the 'c_string' field will be filled by the compiler with the
  45391. string; the 'length' field will be filled by the compiler with the
  45392. string length; the 'isa' pointer will be filled with 'NULL' by the
  45393. compiler, and it will later be fixed up automatically at runtime by the
  45394. GNU Objective-C runtime library to point to the class which was set by
  45395. the '-fconstant-string-class' option when the object file is loaded (if
  45396. you wonder how it works behind the scenes, the name of the class to use,
  45397. and the list of static objects to fixup, are stored by the compiler in
  45398. the object file in a place where the GNU runtime library will find them
  45399. at runtime).
  45400. As a result, when a file is compiled with the '-fconstant-string-class'
  45401. option, all the constant string objects will be instances of the class
  45402. specified as argument to this option. It is possible to have multiple
  45403. compilation units referring to different constant string classes,
  45404. neither the compiler nor the linker impose any restrictions in doing
  45405. this.
  45406. 
  45407. File: gcc.info, Node: compatibility_alias, Next: Exceptions, Prev: Constant string objects, Up: Objective-C
  45408. 8.6 'compatibility_alias'
  45409. =========================
  45410. The keyword '@compatibility_alias' allows you to define a class name as
  45411. equivalent to another class name. For example:
  45412. @compatibility_alias WOApplication GSWApplication;
  45413. tells the compiler that each time it encounters 'WOApplication' as a
  45414. class name, it should replace it with 'GSWApplication' (that is,
  45415. 'WOApplication' is just an alias for 'GSWApplication').
  45416. There are some constraints on how this can be used--
  45417. * 'WOApplication' (the alias) must not be an existing class;
  45418. * 'GSWApplication' (the real class) must be an existing class.
  45419. 
  45420. File: gcc.info, Node: Exceptions, Next: Synchronization, Prev: compatibility_alias, Up: Objective-C
  45421. 8.7 Exceptions
  45422. ==============
  45423. GNU Objective-C provides exception support built into the language, as
  45424. in the following example:
  45425. @try {
  45426. ...
  45427. @throw expr;
  45428. ...
  45429. }
  45430. @catch (AnObjCClass *exc) {
  45431. ...
  45432. @throw expr;
  45433. ...
  45434. @throw;
  45435. ...
  45436. }
  45437. @catch (AnotherClass *exc) {
  45438. ...
  45439. }
  45440. @catch (id allOthers) {
  45441. ...
  45442. }
  45443. @finally {
  45444. ...
  45445. @throw expr;
  45446. ...
  45447. }
  45448. The '@throw' statement may appear anywhere in an Objective-C or
  45449. Objective-C++ program; when used inside of a '@catch' block, the
  45450. '@throw' may appear without an argument (as shown above), in which case
  45451. the object caught by the '@catch' will be rethrown.
  45452. Note that only (pointers to) Objective-C objects may be thrown and
  45453. caught using this scheme. When an object is thrown, it will be caught
  45454. by the nearest '@catch' clause capable of handling objects of that type,
  45455. analogously to how 'catch' blocks work in C++ and Java. A '@catch(id
  45456. ...)' clause (as shown above) may also be provided to catch any and all
  45457. Objective-C exceptions not caught by previous '@catch' clauses (if any).
  45458. The '@finally' clause, if present, will be executed upon exit from the
  45459. immediately preceding '@try ... @catch' section. This will happen
  45460. regardless of whether any exceptions are thrown, caught or rethrown
  45461. inside the '@try ... @catch' section, analogously to the behavior of the
  45462. 'finally' clause in Java.
  45463. There are several caveats to using the new exception mechanism:
  45464. * The '-fobjc-exceptions' command line option must be used when
  45465. compiling Objective-C files that use exceptions.
  45466. * With the GNU runtime, exceptions are always implemented as "native"
  45467. exceptions and it is recommended that the '-fexceptions' and
  45468. '-shared-libgcc' options are used when linking.
  45469. * With the NeXT runtime, although currently designed to be binary
  45470. compatible with 'NS_HANDLER'-style idioms provided by the
  45471. 'NSException' class, the new exceptions can only be used on Mac OS
  45472. X 10.3 (Panther) and later systems, due to additional functionality
  45473. needed in the NeXT Objective-C runtime.
  45474. * As mentioned above, the new exceptions do not support handling
  45475. types other than Objective-C objects. Furthermore, when used from
  45476. Objective-C++, the Objective-C exception model does not
  45477. interoperate with C++ exceptions at this time. This means you
  45478. cannot '@throw' an exception from Objective-C and 'catch' it in
  45479. C++, or vice versa (i.e., 'throw ... @catch').
  45480. 
  45481. File: gcc.info, Node: Synchronization, Next: Fast enumeration, Prev: Exceptions, Up: Objective-C
  45482. 8.8 Synchronization
  45483. ===================
  45484. GNU Objective-C provides support for synchronized blocks:
  45485. @synchronized (ObjCClass *guard) {
  45486. ...
  45487. }
  45488. Upon entering the '@synchronized' block, a thread of execution shall
  45489. first check whether a lock has been placed on the corresponding 'guard'
  45490. object by another thread. If it has, the current thread shall wait
  45491. until the other thread relinquishes its lock. Once 'guard' becomes
  45492. available, the current thread will place its own lock on it, execute the
  45493. code contained in the '@synchronized' block, and finally relinquish the
  45494. lock (thereby making 'guard' available to other threads).
  45495. Unlike Java, Objective-C does not allow for entire methods to be marked
  45496. '@synchronized'. Note that throwing exceptions out of '@synchronized'
  45497. blocks is allowed, and will cause the guarding object to be unlocked
  45498. properly.
  45499. Because of the interactions between synchronization and exception
  45500. handling, you can only use '@synchronized' when compiling with
  45501. exceptions enabled, that is with the command line option
  45502. '-fobjc-exceptions'.
  45503. 
  45504. File: gcc.info, Node: Fast enumeration, Next: Messaging with the GNU Objective-C runtime, Prev: Synchronization, Up: Objective-C
  45505. 8.9 Fast Enumeration
  45506. ====================
  45507. * Menu:
  45508. * Using fast enumeration::
  45509. * c99-like fast enumeration syntax::
  45510. * Fast enumeration details::
  45511. * Fast enumeration protocol::
  45512. 
  45513. File: gcc.info, Node: Using fast enumeration, Next: c99-like fast enumeration syntax, Up: Fast enumeration
  45514. 8.9.1 Using Fast Enumeration
  45515. ----------------------------
  45516. GNU Objective-C provides support for the fast enumeration syntax:
  45517. id array = ...;
  45518. id object;
  45519. for (object in array)
  45520. {
  45521. /* Do something with 'object' */
  45522. }
  45523. 'array' needs to be an Objective-C object (usually a collection object,
  45524. for example an array, a dictionary or a set) which implements the "Fast
  45525. Enumeration Protocol" (see below). If you are using a Foundation
  45526. library such as GNUstep Base or Apple Cocoa Foundation, all collection
  45527. objects in the library implement this protocol and can be used in this
  45528. way.
  45529. The code above would iterate over all objects in 'array'. For each of
  45530. them, it assigns it to 'object', then executes the 'Do something with
  45531. 'object'' statements.
  45532. Here is a fully worked-out example using a Foundation library (which
  45533. provides the implementation of 'NSArray', 'NSString' and 'NSLog'):
  45534. NSArray *array = [NSArray arrayWithObjects: @"1", @"2", @"3", nil];
  45535. NSString *object;
  45536. for (object in array)
  45537. NSLog (@"Iterating over %@", object);
  45538. 
  45539. File: gcc.info, Node: c99-like fast enumeration syntax, Next: Fast enumeration details, Prev: Using fast enumeration, Up: Fast enumeration
  45540. 8.9.2 C99-Like Fast Enumeration Syntax
  45541. --------------------------------------
  45542. A c99-like declaration syntax is also allowed:
  45543. id array = ...;
  45544. for (id object in array)
  45545. {
  45546. /* Do something with 'object' */
  45547. }
  45548. this is completely equivalent to:
  45549. id array = ...;
  45550. {
  45551. id object;
  45552. for (object in array)
  45553. {
  45554. /* Do something with 'object' */
  45555. }
  45556. }
  45557. but can save some typing.
  45558. Note that the option '-std=c99' is not required to allow this syntax in
  45559. Objective-C.
  45560. 
  45561. File: gcc.info, Node: Fast enumeration details, Next: Fast enumeration protocol, Prev: c99-like fast enumeration syntax, Up: Fast enumeration
  45562. 8.9.3 Fast Enumeration Details
  45563. ------------------------------
  45564. Here is a more technical description with the gory details. Consider
  45565. the code
  45566. for (OBJECT EXPRESSION in COLLECTION EXPRESSION)
  45567. {
  45568. STATEMENTS
  45569. }
  45570. here is what happens when you run it:
  45571. * 'COLLECTION EXPRESSION' is evaluated exactly once and the result is
  45572. used as the collection object to iterate over. This means it is
  45573. safe to write code such as 'for (object in [NSDictionary
  45574. keyEnumerator]) ...'.
  45575. * the iteration is implemented by the compiler by repeatedly getting
  45576. batches of objects from the collection object using the fast
  45577. enumeration protocol (see below), then iterating over all objects
  45578. in the batch. This is faster than a normal enumeration where
  45579. objects are retrieved one by one (hence the name "fast
  45580. enumeration").
  45581. * if there are no objects in the collection, then 'OBJECT EXPRESSION'
  45582. is set to 'nil' and the loop immediately terminates.
  45583. * if there are objects in the collection, then for each object in the
  45584. collection (in the order they are returned) 'OBJECT EXPRESSION' is
  45585. set to the object, then 'STATEMENTS' are executed.
  45586. * 'STATEMENTS' can contain 'break' and 'continue' commands, which
  45587. will abort the iteration or skip to the next loop iteration as
  45588. expected.
  45589. * when the iteration ends because there are no more objects to
  45590. iterate over, 'OBJECT EXPRESSION' is set to 'nil'. This allows you
  45591. to determine whether the iteration finished because a 'break'
  45592. command was used (in which case 'OBJECT EXPRESSION' will remain set
  45593. to the last object that was iterated over) or because it iterated
  45594. over all the objects (in which case 'OBJECT EXPRESSION' will be set
  45595. to 'nil').
  45596. * 'STATEMENTS' must not make any changes to the collection object; if
  45597. they do, it is a hard error and the fast enumeration terminates by
  45598. invoking 'objc_enumerationMutation', a runtime function that
  45599. normally aborts the program but which can be customized by
  45600. Foundation libraries via 'objc_set_mutation_handler' to do
  45601. something different, such as raising an exception.
  45602. 
  45603. File: gcc.info, Node: Fast enumeration protocol, Prev: Fast enumeration details, Up: Fast enumeration
  45604. 8.9.4 Fast Enumeration Protocol
  45605. -------------------------------
  45606. If you want your own collection object to be usable with fast
  45607. enumeration, you need to have it implement the method
  45608. - (unsigned long) countByEnumeratingWithState: (NSFastEnumerationState *)state
  45609. objects: (id *)objects
  45610. count: (unsigned long)len;
  45611. where 'NSFastEnumerationState' must be defined in your code as follows:
  45612. typedef struct
  45613. {
  45614. unsigned long state;
  45615. id *itemsPtr;
  45616. unsigned long *mutationsPtr;
  45617. unsigned long extra[5];
  45618. } NSFastEnumerationState;
  45619. If no 'NSFastEnumerationState' is defined in your code, the compiler
  45620. will automatically replace 'NSFastEnumerationState *' with 'struct
  45621. __objcFastEnumerationState *', where that type is silently defined by
  45622. the compiler in an identical way. This can be confusing and we
  45623. recommend that you define 'NSFastEnumerationState' (as shown above)
  45624. instead.
  45625. The method is called repeatedly during a fast enumeration to retrieve
  45626. batches of objects. Each invocation of the method should retrieve the
  45627. next batch of objects.
  45628. The return value of the method is the number of objects in the current
  45629. batch; this should not exceed 'len', which is the maximum size of a
  45630. batch as requested by the caller. The batch itself is returned in the
  45631. 'itemsPtr' field of the 'NSFastEnumerationState' struct.
  45632. To help with returning the objects, the 'objects' array is a C array
  45633. preallocated by the caller (on the stack) of size 'len'. In many cases
  45634. you can put the objects you want to return in that 'objects' array, then
  45635. do 'itemsPtr = objects'. But you don't have to; if your collection
  45636. already has the objects to return in some form of C array, it could
  45637. return them from there instead.
  45638. The 'state' and 'extra' fields of the 'NSFastEnumerationState'
  45639. structure allows your collection object to keep track of the state of
  45640. the enumeration. In a simple array implementation, 'state' may keep
  45641. track of the index of the last object that was returned, and 'extra' may
  45642. be unused.
  45643. The 'mutationsPtr' field of the 'NSFastEnumerationState' is used to
  45644. keep track of mutations. It should point to a number; before working on
  45645. each object, the fast enumeration loop will check that this number has
  45646. not changed. If it has, a mutation has happened and the fast
  45647. enumeration will abort. So, 'mutationsPtr' could be set to point to
  45648. some sort of version number of your collection, which is increased by
  45649. one every time there is a change (for example when an object is added or
  45650. removed). Or, if you are content with less strict mutation checks, it
  45651. could point to the number of objects in your collection or some other
  45652. value that can be checked to perform an approximate check that the
  45653. collection has not been mutated.
  45654. Finally, note how we declared the 'len' argument and the return value
  45655. to be of type 'unsigned long'. They could also be declared to be of
  45656. type 'unsigned int' and everything would still work.
  45657. 
  45658. File: gcc.info, Node: Messaging with the GNU Objective-C runtime, Prev: Fast enumeration, Up: Objective-C
  45659. 8.10 Messaging with the GNU Objective-C Runtime
  45660. ===============================================
  45661. This section is specific for the GNU Objective-C runtime. If you are
  45662. using a different runtime, you can skip it.
  45663. The implementation of messaging in the GNU Objective-C runtime is
  45664. designed to be portable, and so is based on standard C.
  45665. Sending a message in the GNU Objective-C runtime is composed of two
  45666. separate steps. First, there is a call to the lookup function,
  45667. 'objc_msg_lookup ()' (or, in the case of messages to super,
  45668. 'objc_msg_lookup_super ()'). This runtime function takes as argument
  45669. the receiver and the selector of the method to be called; it returns the
  45670. 'IMP', that is a pointer to the function implementing the method. The
  45671. second step of method invocation consists of casting this pointer
  45672. function to the appropriate function pointer type, and calling the
  45673. function pointed to it with the right arguments.
  45674. For example, when the compiler encounters a method invocation such as
  45675. '[object init]', it compiles it into a call to 'objc_msg_lookup (object,
  45676. @selector(init))' followed by a cast of the returned value to the
  45677. appropriate function pointer type, and then it calls it.
  45678. * Menu:
  45679. * Dynamically registering methods::
  45680. * Forwarding hook::
  45681. 
  45682. File: gcc.info, Node: Dynamically registering methods, Next: Forwarding hook, Up: Messaging with the GNU Objective-C runtime
  45683. 8.10.1 Dynamically Registering Methods
  45684. --------------------------------------
  45685. If 'objc_msg_lookup()' does not find a suitable method implementation,
  45686. because the receiver does not implement the required method, it tries to
  45687. see if the class can dynamically register the method.
  45688. To do so, the runtime checks if the class of the receiver implements
  45689. the method
  45690. + (BOOL) resolveInstanceMethod: (SEL)selector;
  45691. in the case of an instance method, or
  45692. + (BOOL) resolveClassMethod: (SEL)selector;
  45693. in the case of a class method. If the class implements it, the runtime
  45694. invokes it, passing as argument the selector of the original method, and
  45695. if it returns 'YES', the runtime tries the lookup again, which could now
  45696. succeed if a matching method was added dynamically by
  45697. '+resolveInstanceMethod:' or '+resolveClassMethod:'.
  45698. This allows classes to dynamically register methods (by adding them to
  45699. the class using 'class_addMethod') when they are first called. To do
  45700. so, a class should implement '+resolveInstanceMethod:' (or, depending on
  45701. the case, '+resolveClassMethod:') and have it recognize the selectors of
  45702. methods that can be registered dynamically at runtime, register them,
  45703. and return 'YES'. It should return 'NO' for methods that it does not
  45704. dynamically registered at runtime.
  45705. If '+resolveInstanceMethod:' (or '+resolveClassMethod:') is not
  45706. implemented or returns 'NO', the runtime then tries the forwarding hook.
  45707. Support for '+resolveInstanceMethod:' and 'resolveClassMethod:' was
  45708. added to the GNU Objective-C runtime in GCC version 4.6.
  45709. 
  45710. File: gcc.info, Node: Forwarding hook, Prev: Dynamically registering methods, Up: Messaging with the GNU Objective-C runtime
  45711. 8.10.2 Forwarding Hook
  45712. ----------------------
  45713. The GNU Objective-C runtime provides a hook, called
  45714. '__objc_msg_forward2', which is called by 'objc_msg_lookup()' when it
  45715. cannot find a method implementation in the runtime tables and after
  45716. calling '+resolveInstanceMethod:' and '+resolveClassMethod:' has been
  45717. attempted and did not succeed in dynamically registering the method.
  45718. To configure the hook, you set the global variable
  45719. '__objc_msg_forward2' to a function with the same argument and return
  45720. types of 'objc_msg_lookup()'. When 'objc_msg_lookup()' cannot find a
  45721. method implementation, it invokes the hook function you provided to get
  45722. a method implementation to return. So, in practice
  45723. '__objc_msg_forward2' allows you to extend 'objc_msg_lookup()' by adding
  45724. some custom code that is called to do a further lookup when no standard
  45725. method implementation can be found using the normal lookup.
  45726. This hook is generally reserved for "Foundation" libraries such as
  45727. GNUstep Base, which use it to implement their high-level method
  45728. forwarding API, typically based around the 'forwardInvocation:' method.
  45729. So, unless you are implementing your own "Foundation" library, you
  45730. should not set this hook.
  45731. In a typical forwarding implementation, the '__objc_msg_forward2' hook
  45732. function determines the argument and return type of the method that is
  45733. being looked up, and then creates a function that takes these arguments
  45734. and has that return type, and returns it to the caller. Creating this
  45735. function is non-trivial and is typically performed using a dedicated
  45736. library such as 'libffi'.
  45737. The forwarding method implementation thus created is returned by
  45738. 'objc_msg_lookup()' and is executed as if it was a normal method
  45739. implementation. When the forwarding method implementation is called, it
  45740. is usually expected to pack all arguments into some sort of object
  45741. (typically, an 'NSInvocation' in a "Foundation" library), and hand it
  45742. over to the programmer ('forwardInvocation:') who is then allowed to
  45743. manipulate the method invocation using a high-level API provided by the
  45744. "Foundation" library. For example, the programmer may want to examine
  45745. the method invocation arguments and name and potentially change them
  45746. before forwarding the method invocation to one or more local objects
  45747. ('performInvocation:') or even to remote objects (by using Distributed
  45748. Objects or some other mechanism). When all this completes, the return
  45749. value is passed back and must be returned correctly to the original
  45750. caller.
  45751. Note that the GNU Objective-C runtime currently provides no support for
  45752. method forwarding or method invocations other than the
  45753. '__objc_msg_forward2' hook.
  45754. If the forwarding hook does not exist or returns 'NULL', the runtime
  45755. currently attempts forwarding using an older, deprecated API, and if
  45756. that fails, it aborts the program. In future versions of the GNU
  45757. Objective-C runtime, the runtime will immediately abort.
  45758. 
  45759. File: gcc.info, Node: Compatibility, Next: Gcov, Prev: Objective-C, Up: Top
  45760. 9 Binary Compatibility
  45761. **********************
  45762. Binary compatibility encompasses several related concepts:
  45763. "application binary interface (ABI)"
  45764. The set of runtime conventions followed by all of the tools that
  45765. deal with binary representations of a program, including compilers,
  45766. assemblers, linkers, and language runtime support. Some ABIs are
  45767. formal with a written specification, possibly designed by multiple
  45768. interested parties. Others are simply the way things are actually
  45769. done by a particular set of tools.
  45770. "ABI conformance"
  45771. A compiler conforms to an ABI if it generates code that follows all
  45772. of the specifications enumerated by that ABI. A library conforms
  45773. to an ABI if it is implemented according to that ABI. An
  45774. application conforms to an ABI if it is built using tools that
  45775. conform to that ABI and does not contain source code that
  45776. specifically changes behavior specified by the ABI.
  45777. "calling conventions"
  45778. Calling conventions are a subset of an ABI that specify of how
  45779. arguments are passed and function results are returned.
  45780. "interoperability"
  45781. Different sets of tools are interoperable if they generate files
  45782. that can be used in the same program. The set of tools includes
  45783. compilers, assemblers, linkers, libraries, header files, startup
  45784. files, and debuggers. Binaries produced by different sets of tools
  45785. are not interoperable unless they implement the same ABI. This
  45786. applies to different versions of the same tools as well as tools
  45787. from different vendors.
  45788. "intercallability"
  45789. Whether a function in a binary built by one set of tools can call a
  45790. function in a binary built by a different set of tools is a subset
  45791. of interoperability.
  45792. "implementation-defined features"
  45793. Language standards include lists of implementation-defined features
  45794. whose behavior can vary from one implementation to another. Some
  45795. of these features are normally covered by a platform's ABI and
  45796. others are not. The features that are not covered by an ABI
  45797. generally affect how a program behaves, but not intercallability.
  45798. "compatibility"
  45799. Conformance to the same ABI and the same behavior of
  45800. implementation-defined features are both relevant for
  45801. compatibility.
  45802. The application binary interface implemented by a C or C++ compiler
  45803. affects code generation and runtime support for:
  45804. * size and alignment of data types
  45805. * layout of structured types
  45806. * calling conventions
  45807. * register usage conventions
  45808. * interfaces for runtime arithmetic support
  45809. * object file formats
  45810. In addition, the application binary interface implemented by a C++
  45811. compiler affects code generation and runtime support for:
  45812. * name mangling
  45813. * exception handling
  45814. * invoking constructors and destructors
  45815. * layout, alignment, and padding of classes
  45816. * layout and alignment of virtual tables
  45817. Some GCC compilation options cause the compiler to generate code that
  45818. does not conform to the platform's default ABI. Other options cause
  45819. different program behavior for implementation-defined features that are
  45820. not covered by an ABI. These options are provided for consistency with
  45821. other compilers that do not follow the platform's default ABI or the
  45822. usual behavior of implementation-defined features for the platform. Be
  45823. very careful about using such options.
  45824. Most platforms have a well-defined ABI that covers C code, but ABIs
  45825. that cover C++ functionality are not yet common.
  45826. Starting with GCC 3.2, GCC binary conventions for C++ are based on a
  45827. written, vendor-neutral C++ ABI that was designed to be specific to
  45828. 64-bit Itanium but also includes generic specifications that apply to
  45829. any platform. This C++ ABI is also implemented by other compiler
  45830. vendors on some platforms, notably GNU/Linux and BSD systems. We have
  45831. tried hard to provide a stable ABI that will be compatible with future
  45832. GCC releases, but it is possible that we will encounter problems that
  45833. make this difficult. Such problems could include different
  45834. interpretations of the C++ ABI by different vendors, bugs in the ABI, or
  45835. bugs in the implementation of the ABI in different compilers. GCC's
  45836. '-Wabi' switch warns when G++ generates code that is probably not
  45837. compatible with the C++ ABI.
  45838. The C++ library used with a C++ compiler includes the Standard C++
  45839. Library, with functionality defined in the C++ Standard, plus language
  45840. runtime support. The runtime support is included in a C++ ABI, but
  45841. there is no formal ABI for the Standard C++ Library. Two
  45842. implementations of that library are interoperable if one follows the
  45843. de-facto ABI of the other and if they are both built with the same
  45844. compiler, or with compilers that conform to the same ABI for C++
  45845. compiler and runtime support.
  45846. When G++ and another C++ compiler conform to the same C++ ABI, but the
  45847. implementations of the Standard C++ Library that they normally use do
  45848. not follow the same ABI for the Standard C++ Library, object files built
  45849. with those compilers can be used in the same program only if they use
  45850. the same C++ library. This requires specifying the location of the C++
  45851. library header files when invoking the compiler whose usual library is
  45852. not being used. The location of GCC's C++ header files depends on how
  45853. the GCC build was configured, but can be seen by using the G++ '-v'
  45854. option. With default configuration options for G++ 3.3 the compile line
  45855. for a different C++ compiler needs to include
  45856. -IGCC_INSTALL_DIRECTORY/include/c++/3.3
  45857. Similarly, compiling code with G++ that must use a C++ library other
  45858. than the GNU C++ library requires specifying the location of the header
  45859. files for that other library.
  45860. The most straightforward way to link a program to use a particular C++
  45861. library is to use a C++ driver that specifies that C++ library by
  45862. default. The 'g++' driver, for example, tells the linker where to find
  45863. GCC's C++ library ('libstdc++') plus the other libraries and startup
  45864. files it needs, in the proper order.
  45865. If a program must use a different C++ library and it's not possible to
  45866. do the final link using a C++ driver that uses that library by default,
  45867. it is necessary to tell 'g++' the location and name of that library. It
  45868. might also be necessary to specify different startup files and other
  45869. runtime support libraries, and to suppress the use of GCC's support
  45870. libraries with one or more of the options '-nostdlib', '-nostartfiles',
  45871. and '-nodefaultlibs'.
  45872. 
  45873. File: gcc.info, Node: Gcov, Next: Gcov-tool, Prev: Compatibility, Up: Top
  45874. 10 'gcov'--a Test Coverage Program
  45875. **********************************
  45876. 'gcov' is a tool you can use in conjunction with GCC to test code
  45877. coverage in your programs.
  45878. * Menu:
  45879. * Gcov Intro:: Introduction to gcov.
  45880. * Invoking Gcov:: How to use gcov.
  45881. * Gcov and Optimization:: Using gcov with GCC optimization.
  45882. * Gcov Data Files:: The files used by gcov.
  45883. * Cross-profiling:: Data file relocation.
  45884. 
  45885. File: gcc.info, Node: Gcov Intro, Next: Invoking Gcov, Up: Gcov
  45886. 10.1 Introduction to 'gcov'
  45887. ===========================
  45888. 'gcov' is a test coverage program. Use it in concert with GCC to
  45889. analyze your programs to help create more efficient, faster running code
  45890. and to discover untested parts of your program. You can use 'gcov' as a
  45891. profiling tool to help discover where your optimization efforts will
  45892. best affect your code. You can also use 'gcov' along with the other
  45893. profiling tool, 'gprof', to assess which parts of your code use the
  45894. greatest amount of computing time.
  45895. Profiling tools help you analyze your code's performance. Using a
  45896. profiler such as 'gcov' or 'gprof', you can find out some basic
  45897. performance statistics, such as:
  45898. * how often each line of code executes
  45899. * what lines of code are actually executed
  45900. * how much computing time each section of code uses
  45901. Once you know these things about how your code works when compiled, you
  45902. can look at each module to see which modules should be optimized.
  45903. 'gcov' helps you determine where to work on optimization.
  45904. Software developers also use coverage testing in concert with
  45905. testsuites, to make sure software is actually good enough for a release.
  45906. Testsuites can verify that a program works as expected; a coverage
  45907. program tests to see how much of the program is exercised by the
  45908. testsuite. Developers can then determine what kinds of test cases need
  45909. to be added to the testsuites to create both better testing and a better
  45910. final product.
  45911. You should compile your code without optimization if you plan to use
  45912. 'gcov' because the optimization, by combining some lines of code into
  45913. one function, may not give you as much information as you need to look
  45914. for 'hot spots' where the code is using a great deal of computer time.
  45915. Likewise, because 'gcov' accumulates statistics by line (at the lowest
  45916. resolution), it works best with a programming style that places only one
  45917. statement on each line. If you use complicated macros that expand to
  45918. loops or to other control structures, the statistics are less
  45919. helpful--they only report on the line where the macro call appears. If
  45920. your complex macros behave like functions, you can replace them with
  45921. inline functions to solve this problem.
  45922. 'gcov' creates a logfile called 'SOURCEFILE.gcov' which indicates how
  45923. many times each line of a source file 'SOURCEFILE.c' has executed. You
  45924. can use these logfiles along with 'gprof' to aid in fine-tuning the
  45925. performance of your programs. 'gprof' gives timing information you can
  45926. use along with the information you get from 'gcov'.
  45927. 'gcov' works only on code compiled with GCC. It is not compatible with
  45928. any other profiling or test coverage mechanism.
  45929. 
  45930. File: gcc.info, Node: Invoking Gcov, Next: Gcov and Optimization, Prev: Gcov Intro, Up: Gcov
  45931. 10.2 Invoking 'gcov'
  45932. ====================
  45933. gcov [OPTIONS] FILES
  45934. 'gcov' accepts the following options:
  45935. '-a'
  45936. '--all-blocks'
  45937. Write individual execution counts for every basic block. Normally
  45938. gcov outputs execution counts only for the main blocks of a line.
  45939. With this option you can determine if blocks within a single line
  45940. are not being executed.
  45941. '-b'
  45942. '--branch-probabilities'
  45943. Write branch frequencies to the output file, and write branch
  45944. summary info to the standard output. This option allows you to see
  45945. how often each branch in your program was taken. Unconditional
  45946. branches will not be shown, unless the '-u' option is given.
  45947. '-c'
  45948. '--branch-counts'
  45949. Write branch frequencies as the number of branches taken, rather
  45950. than the percentage of branches taken.
  45951. '-d'
  45952. '--display-progress'
  45953. Display the progress on the standard output.
  45954. '-f'
  45955. '--function-summaries'
  45956. Output summaries for each function in addition to the file level
  45957. summary.
  45958. '-h'
  45959. '--help'
  45960. Display help about using 'gcov' (on the standard output), and exit
  45961. without doing any further processing.
  45962. '-j'
  45963. '--json-format'
  45964. Output gcov file in an easy-to-parse JSON intermediate format which
  45965. does not require source code for generation. The JSON file is
  45966. compressed with gzip compression algorithm and the files have
  45967. '.gcov.json.gz' extension.
  45968. Structure of the JSON is following:
  45969. {
  45970. "current_working_directory": CURRENT_WORKING_DIRECTORY,
  45971. "data_file": DATA_FILE,
  45972. "format_version": FORMAT_VERSION,
  45973. "gcc_version": GCC_VERSION
  45974. "files": [FILE]
  45975. }
  45976. Fields of the root element have following semantics:
  45977. * CURRENT_WORKING_DIRECTORY: working directory where a
  45978. compilation unit was compiled
  45979. * DATA_FILE: name of the data file (GCDA)
  45980. * FORMAT_VERSION: semantic version of the format
  45981. * GCC_VERSION: version of the GCC compiler
  45982. Each FILE has the following form:
  45983. {
  45984. "file": FILE_NAME,
  45985. "functions": [FUNCTION],
  45986. "lines": [LINE]
  45987. }
  45988. Fields of the FILE element have following semantics:
  45989. * FILE_NAME: name of the source file
  45990. Each FUNCTION has the following form:
  45991. {
  45992. "blocks": BLOCKS,
  45993. "blocks_executed": BLOCKS_EXECUTED,
  45994. "demangled_name": "DEMANGLED_NAME,
  45995. "end_column": END_COLUMN,
  45996. "end_line": END_LINE,
  45997. "execution_count": EXECUTION_COUNT,
  45998. "name": NAME,
  45999. "start_column": START_COLUMN
  46000. "start_line": START_LINE
  46001. }
  46002. Fields of the FUNCTION element have following semantics:
  46003. * BLOCKS: number of blocks that are in the function
  46004. * BLOCKS_EXECUTED: number of executed blocks of the function
  46005. * DEMANGLED_NAME: demangled name of the function
  46006. * END_COLUMN: column in the source file where the function ends
  46007. * END_LINE: line in the source file where the function ends
  46008. * EXECUTION_COUNT: number of executions of the function
  46009. * NAME: name of the function
  46010. * START_COLUMN: column in the source file where the function
  46011. begins
  46012. * START_LINE: line in the source file where the function begins
  46013. Note that line numbers and column numbers number from 1. In the
  46014. current implementation, START_LINE and START_COLUMN do not include
  46015. any template parameters and the leading return type but that this
  46016. is likely to be fixed in the future.
  46017. Each LINE has the following form:
  46018. {
  46019. "branches": [BRANCH],
  46020. "count": COUNT,
  46021. "line_number": LINE_NUMBER,
  46022. "unexecuted_block": UNEXECUTED_BLOCK
  46023. "function_name": FUNCTION_NAME,
  46024. }
  46025. Branches are present only with -B option. Fields of the LINE
  46026. element have following semantics:
  46027. * COUNT: number of executions of the line
  46028. * LINE_NUMBER: line number
  46029. * UNEXECUTED_BLOCK: flag whether the line contains an unexecuted
  46030. block (not all statements on the line are executed)
  46031. * FUNCTION_NAME: a name of a function this LINE belongs to (for
  46032. a line with an inlined statements can be not set)
  46033. Each BRANCH has the following form:
  46034. {
  46035. "count": COUNT,
  46036. "fallthrough": FALLTHROUGH,
  46037. "throw": THROW
  46038. }
  46039. Fields of the BRANCH element have following semantics:
  46040. * COUNT: number of executions of the branch
  46041. * FALLTHROUGH: true when the branch is a fall through branch
  46042. * THROW: true when the branch is an exceptional branch
  46043. '-H'
  46044. '--human-readable'
  46045. Write counts in human readable format (like 24.6k).
  46046. '-k'
  46047. '--use-colors'
  46048. Use colors for lines of code that have zero coverage. We use red
  46049. color for non-exceptional lines and cyan for exceptional. Same
  46050. colors are used for basic blocks with '-a' option.
  46051. '-l'
  46052. '--long-file-names'
  46053. Create long file names for included source files. For example, if
  46054. the header file 'x.h' contains code, and was included in the file
  46055. 'a.c', then running 'gcov' on the file 'a.c' will produce an output
  46056. file called 'a.c##x.h.gcov' instead of 'x.h.gcov'. This can be
  46057. useful if 'x.h' is included in multiple source files and you want
  46058. to see the individual contributions. If you use the '-p' option,
  46059. both the including and included file names will be complete path
  46060. names.
  46061. '-m'
  46062. '--demangled-names'
  46063. Display demangled function names in output. The default is to show
  46064. mangled function names.
  46065. '-n'
  46066. '--no-output'
  46067. Do not create the 'gcov' output file.
  46068. '-o DIRECTORY|FILE'
  46069. '--object-directory DIRECTORY'
  46070. '--object-file FILE'
  46071. Specify either the directory containing the gcov data files, or the
  46072. object path name. The '.gcno', and '.gcda' data files are searched
  46073. for using this option. If a directory is specified, the data files
  46074. are in that directory and named after the input file name, without
  46075. its extension. If a file is specified here, the data files are
  46076. named after that file, without its extension.
  46077. '-p'
  46078. '--preserve-paths'
  46079. Preserve complete path information in the names of generated
  46080. '.gcov' files. Without this option, just the filename component is
  46081. used. With this option, all directories are used, with '/'
  46082. characters translated to '#' characters, '.' directory components
  46083. removed and unremoveable '..' components renamed to '^'. This is
  46084. useful if sourcefiles are in several different directories.
  46085. '-q'
  46086. '--use-hotness-colors'
  46087. Emit perf-like colored output for hot lines. Legend of the color
  46088. scale is printed at the very beginning of the output file.
  46089. '-r'
  46090. '--relative-only'
  46091. Only output information about source files with a relative pathname
  46092. (after source prefix elision). Absolute paths are usually system
  46093. header files and coverage of any inline functions therein is
  46094. normally uninteresting.
  46095. '-s DIRECTORY'
  46096. '--source-prefix DIRECTORY'
  46097. A prefix for source file names to remove when generating the output
  46098. coverage files. This option is useful when building in a separate
  46099. directory, and the pathname to the source directory is not wanted
  46100. when determining the output file names. Note that this prefix
  46101. detection is applied before determining whether the source file is
  46102. absolute.
  46103. '-t'
  46104. '--stdout'
  46105. Output to standard output instead of output files.
  46106. '-u'
  46107. '--unconditional-branches'
  46108. When branch probabilities are given, include those of unconditional
  46109. branches. Unconditional branches are normally not interesting.
  46110. '-v'
  46111. '--version'
  46112. Display the 'gcov' version number (on the standard output), and
  46113. exit without doing any further processing.
  46114. '-w'
  46115. '--verbose'
  46116. Print verbose informations related to basic blocks and arcs.
  46117. '-x'
  46118. '--hash-filenames'
  46119. When using -PRESERVE-PATHS, gcov uses the full pathname of the
  46120. source files to create an output filename. This can lead to long
  46121. filenames that can overflow filesystem limits. This option creates
  46122. names of the form 'SOURCE-FILE##MD5.gcov', where the SOURCE-FILE
  46123. component is the final filename part and the MD5 component is
  46124. calculated from the full mangled name that would have been used
  46125. otherwise. The option is an alternative to the -PRESERVE-PATHS on
  46126. systems which have a filesystem limit.
  46127. 'gcov' should be run with the current directory the same as that when
  46128. you invoked the compiler. Otherwise it will not be able to locate the
  46129. source files. 'gcov' produces files called 'MANGLEDNAME.gcov' in the
  46130. current directory. These contain the coverage information of the source
  46131. file they correspond to. One '.gcov' file is produced for each source
  46132. (or header) file containing code, which was compiled to produce the data
  46133. files. The MANGLEDNAME part of the output file name is usually simply
  46134. the source file name, but can be something more complicated if the '-l'
  46135. or '-p' options are given. Refer to those options for details.
  46136. If you invoke 'gcov' with multiple input files, the contributions from
  46137. each input file are summed. Typically you would invoke it with the same
  46138. list of files as the final link of your executable.
  46139. The '.gcov' files contain the ':' separated fields along with program
  46140. source code. The format is
  46141. EXECUTION_COUNT:LINE_NUMBER:SOURCE LINE TEXT
  46142. Additional block information may succeed each line, when requested by
  46143. command line option. The EXECUTION_COUNT is '-' for lines containing no
  46144. code. Unexecuted lines are marked '#####' or '=====', depending on
  46145. whether they are reachable by non-exceptional paths or only exceptional
  46146. paths such as C++ exception handlers, respectively. Given the '-a'
  46147. option, unexecuted blocks are marked '$$$$$' or '%%%%%', depending on
  46148. whether a basic block is reachable via non-exceptional or exceptional
  46149. paths. Executed basic blocks having a statement with zero
  46150. EXECUTION_COUNT end with '*' character and are colored with magenta
  46151. color with the '-k' option. This functionality is not supported in Ada.
  46152. Note that GCC can completely remove the bodies of functions that are
  46153. not needed - for instance if they are inlined everywhere. Such
  46154. functions are marked with '-', which can be confusing. Use the
  46155. '-fkeep-inline-functions' and '-fkeep-static-functions' options to
  46156. retain these functions and allow gcov to properly show their
  46157. EXECUTION_COUNT.
  46158. Some lines of information at the start have LINE_NUMBER of zero. These
  46159. preamble lines are of the form
  46160. -:0:TAG:VALUE
  46161. The ordering and number of these preamble lines will be augmented as
  46162. 'gcov' development progresses -- do not rely on them remaining
  46163. unchanged. Use TAG to locate a particular preamble line.
  46164. The additional block information is of the form
  46165. TAG INFORMATION
  46166. The INFORMATION is human readable, but designed to be simple enough for
  46167. machine parsing too.
  46168. When printing percentages, 0% and 100% are only printed when the values
  46169. are _exactly_ 0% and 100% respectively. Other values which would
  46170. conventionally be rounded to 0% or 100% are instead printed as the
  46171. nearest non-boundary value.
  46172. When using 'gcov', you must first compile your program with a special
  46173. GCC option '--coverage'. This tells the compiler to generate additional
  46174. information needed by gcov (basically a flow graph of the program) and
  46175. also includes additional code in the object files for generating the
  46176. extra profiling information needed by gcov. These additional files are
  46177. placed in the directory where the object file is located.
  46178. Running the program will cause profile output to be generated. For
  46179. each source file compiled with '-fprofile-arcs', an accompanying '.gcda'
  46180. file will be placed in the object file directory.
  46181. Running 'gcov' with your program's source file names as arguments will
  46182. now produce a listing of the code along with frequency of execution for
  46183. each line. For example, if your program is called 'tmp.cpp', this is
  46184. what you see when you use the basic 'gcov' facility:
  46185. $ g++ --coverage tmp.cpp -c
  46186. $ g++ --coverage tmp.o
  46187. $ a.out
  46188. $ gcov tmp.cpp -m
  46189. File 'tmp.cpp'
  46190. Lines executed:92.86% of 14
  46191. Creating 'tmp.cpp.gcov'
  46192. The file 'tmp.cpp.gcov' contains output from 'gcov'. Here is a sample:
  46193. -: 0:Source:tmp.cpp
  46194. -: 0:Working directory:/home/gcc/testcase
  46195. -: 0:Graph:tmp.gcno
  46196. -: 0:Data:tmp.gcda
  46197. -: 0:Runs:1
  46198. -: 0:Programs:1
  46199. -: 1:#include <stdio.h>
  46200. -: 2:
  46201. -: 3:template<class T>
  46202. -: 4:class Foo
  46203. -: 5:{
  46204. -: 6: public:
  46205. 1*: 7: Foo(): b (1000) {}
  46206. ------------------
  46207. Foo<char>::Foo():
  46208. #####: 7: Foo(): b (1000) {}
  46209. ------------------
  46210. Foo<int>::Foo():
  46211. 1: 7: Foo(): b (1000) {}
  46212. ------------------
  46213. 2*: 8: void inc () { b++; }
  46214. ------------------
  46215. Foo<char>::inc():
  46216. #####: 8: void inc () { b++; }
  46217. ------------------
  46218. Foo<int>::inc():
  46219. 2: 8: void inc () { b++; }
  46220. ------------------
  46221. -: 9:
  46222. -: 10: private:
  46223. -: 11: int b;
  46224. -: 12:};
  46225. -: 13:
  46226. -: 14:template class Foo<int>;
  46227. -: 15:template class Foo<char>;
  46228. -: 16:
  46229. -: 17:int
  46230. 1: 18:main (void)
  46231. -: 19:{
  46232. -: 20: int i, total;
  46233. 1: 21: Foo<int> counter;
  46234. -: 22:
  46235. 1: 23: counter.inc();
  46236. 1: 24: counter.inc();
  46237. 1: 25: total = 0;
  46238. -: 26:
  46239. 11: 27: for (i = 0; i < 10; i++)
  46240. 10: 28: total += i;
  46241. -: 29:
  46242. 1*: 30: int v = total > 100 ? 1 : 2;
  46243. -: 31:
  46244. 1: 32: if (total != 45)
  46245. #####: 33: printf ("Failure\n");
  46246. -: 34: else
  46247. 1: 35: printf ("Success\n");
  46248. 1: 36: return 0;
  46249. -: 37:}
  46250. Note that line 7 is shown in the report multiple times. First
  46251. occurrence presents total number of execution of the line and the next
  46252. two belong to instances of class Foo constructors. As you can also see,
  46253. line 30 contains some unexecuted basic blocks and thus execution count
  46254. has asterisk symbol.
  46255. When you use the '-a' option, you will get individual block counts, and
  46256. the output looks like this:
  46257. -: 0:Source:tmp.cpp
  46258. -: 0:Working directory:/home/gcc/testcase
  46259. -: 0:Graph:tmp.gcno
  46260. -: 0:Data:tmp.gcda
  46261. -: 0:Runs:1
  46262. -: 0:Programs:1
  46263. -: 1:#include <stdio.h>
  46264. -: 2:
  46265. -: 3:template<class T>
  46266. -: 4:class Foo
  46267. -: 5:{
  46268. -: 6: public:
  46269. 1*: 7: Foo(): b (1000) {}
  46270. ------------------
  46271. Foo<char>::Foo():
  46272. #####: 7: Foo(): b (1000) {}
  46273. ------------------
  46274. Foo<int>::Foo():
  46275. 1: 7: Foo(): b (1000) {}
  46276. ------------------
  46277. 2*: 8: void inc () { b++; }
  46278. ------------------
  46279. Foo<char>::inc():
  46280. #####: 8: void inc () { b++; }
  46281. ------------------
  46282. Foo<int>::inc():
  46283. 2: 8: void inc () { b++; }
  46284. ------------------
  46285. -: 9:
  46286. -: 10: private:
  46287. -: 11: int b;
  46288. -: 12:};
  46289. -: 13:
  46290. -: 14:template class Foo<int>;
  46291. -: 15:template class Foo<char>;
  46292. -: 16:
  46293. -: 17:int
  46294. 1: 18:main (void)
  46295. -: 19:{
  46296. -: 20: int i, total;
  46297. 1: 21: Foo<int> counter;
  46298. 1: 21-block 0
  46299. -: 22:
  46300. 1: 23: counter.inc();
  46301. 1: 23-block 0
  46302. 1: 24: counter.inc();
  46303. 1: 24-block 0
  46304. 1: 25: total = 0;
  46305. -: 26:
  46306. 11: 27: for (i = 0; i < 10; i++)
  46307. 1: 27-block 0
  46308. 11: 27-block 1
  46309. 10: 28: total += i;
  46310. 10: 28-block 0
  46311. -: 29:
  46312. 1*: 30: int v = total > 100 ? 1 : 2;
  46313. 1: 30-block 0
  46314. %%%%%: 30-block 1
  46315. 1: 30-block 2
  46316. -: 31:
  46317. 1: 32: if (total != 45)
  46318. 1: 32-block 0
  46319. #####: 33: printf ("Failure\n");
  46320. %%%%%: 33-block 0
  46321. -: 34: else
  46322. 1: 35: printf ("Success\n");
  46323. 1: 35-block 0
  46324. 1: 36: return 0;
  46325. 1: 36-block 0
  46326. -: 37:}
  46327. In this mode, each basic block is only shown on one line - the last
  46328. line of the block. A multi-line block will only contribute to the
  46329. execution count of that last line, and other lines will not be shown to
  46330. contain code, unless previous blocks end on those lines. The total
  46331. execution count of a line is shown and subsequent lines show the
  46332. execution counts for individual blocks that end on that line. After
  46333. each block, the branch and call counts of the block will be shown, if
  46334. the '-b' option is given.
  46335. Because of the way GCC instruments calls, a call count can be shown
  46336. after a line with no individual blocks. As you can see, line 33
  46337. contains a basic block that was not executed.
  46338. When you use the '-b' option, your output looks like this:
  46339. -: 0:Source:tmp.cpp
  46340. -: 0:Working directory:/home/gcc/testcase
  46341. -: 0:Graph:tmp.gcno
  46342. -: 0:Data:tmp.gcda
  46343. -: 0:Runs:1
  46344. -: 0:Programs:1
  46345. -: 1:#include <stdio.h>
  46346. -: 2:
  46347. -: 3:template<class T>
  46348. -: 4:class Foo
  46349. -: 5:{
  46350. -: 6: public:
  46351. 1*: 7: Foo(): b (1000) {}
  46352. ------------------
  46353. Foo<char>::Foo():
  46354. function Foo<char>::Foo() called 0 returned 0% blocks executed 0%
  46355. #####: 7: Foo(): b (1000) {}
  46356. ------------------
  46357. Foo<int>::Foo():
  46358. function Foo<int>::Foo() called 1 returned 100% blocks executed 100%
  46359. 1: 7: Foo(): b (1000) {}
  46360. ------------------
  46361. 2*: 8: void inc () { b++; }
  46362. ------------------
  46363. Foo<char>::inc():
  46364. function Foo<char>::inc() called 0 returned 0% blocks executed 0%
  46365. #####: 8: void inc () { b++; }
  46366. ------------------
  46367. Foo<int>::inc():
  46368. function Foo<int>::inc() called 2 returned 100% blocks executed 100%
  46369. 2: 8: void inc () { b++; }
  46370. ------------------
  46371. -: 9:
  46372. -: 10: private:
  46373. -: 11: int b;
  46374. -: 12:};
  46375. -: 13:
  46376. -: 14:template class Foo<int>;
  46377. -: 15:template class Foo<char>;
  46378. -: 16:
  46379. -: 17:int
  46380. function main called 1 returned 100% blocks executed 81%
  46381. 1: 18:main (void)
  46382. -: 19:{
  46383. -: 20: int i, total;
  46384. 1: 21: Foo<int> counter;
  46385. call 0 returned 100%
  46386. branch 1 taken 100% (fallthrough)
  46387. branch 2 taken 0% (throw)
  46388. -: 22:
  46389. 1: 23: counter.inc();
  46390. call 0 returned 100%
  46391. branch 1 taken 100% (fallthrough)
  46392. branch 2 taken 0% (throw)
  46393. 1: 24: counter.inc();
  46394. call 0 returned 100%
  46395. branch 1 taken 100% (fallthrough)
  46396. branch 2 taken 0% (throw)
  46397. 1: 25: total = 0;
  46398. -: 26:
  46399. 11: 27: for (i = 0; i < 10; i++)
  46400. branch 0 taken 91% (fallthrough)
  46401. branch 1 taken 9%
  46402. 10: 28: total += i;
  46403. -: 29:
  46404. 1*: 30: int v = total > 100 ? 1 : 2;
  46405. branch 0 taken 0% (fallthrough)
  46406. branch 1 taken 100%
  46407. -: 31:
  46408. 1: 32: if (total != 45)
  46409. branch 0 taken 0% (fallthrough)
  46410. branch 1 taken 100%
  46411. #####: 33: printf ("Failure\n");
  46412. call 0 never executed
  46413. branch 1 never executed
  46414. branch 2 never executed
  46415. -: 34: else
  46416. 1: 35: printf ("Success\n");
  46417. call 0 returned 100%
  46418. branch 1 taken 100% (fallthrough)
  46419. branch 2 taken 0% (throw)
  46420. 1: 36: return 0;
  46421. -: 37:}
  46422. For each function, a line is printed showing how many times the
  46423. function is called, how many times it returns and what percentage of the
  46424. function's blocks were executed.
  46425. For each basic block, a line is printed after the last line of the
  46426. basic block describing the branch or call that ends the basic block.
  46427. There can be multiple branches and calls listed for a single source line
  46428. if there are multiple basic blocks that end on that line. In this case,
  46429. the branches and calls are each given a number. There is no simple way
  46430. to map these branches and calls back to source constructs. In general,
  46431. though, the lowest numbered branch or call will correspond to the
  46432. leftmost construct on the source line.
  46433. For a branch, if it was executed at least once, then a percentage
  46434. indicating the number of times the branch was taken divided by the
  46435. number of times the branch was executed will be printed. Otherwise, the
  46436. message "never executed" is printed.
  46437. For a call, if it was executed at least once, then a percentage
  46438. indicating the number of times the call returned divided by the number
  46439. of times the call was executed will be printed. This will usually be
  46440. 100%, but may be less for functions that call 'exit' or 'longjmp', and
  46441. thus may not return every time they are called.
  46442. The execution counts are cumulative. If the example program were
  46443. executed again without removing the '.gcda' file, the count for the
  46444. number of times each line in the source was executed would be added to
  46445. the results of the previous run(s). This is potentially useful in
  46446. several ways. For example, it could be used to accumulate data over a
  46447. number of program runs as part of a test verification suite, or to
  46448. provide more accurate long-term information over a large number of
  46449. program runs.
  46450. The data in the '.gcda' files is saved immediately before the program
  46451. exits. For each source file compiled with '-fprofile-arcs', the
  46452. profiling code first attempts to read in an existing '.gcda' file; if
  46453. the file doesn't match the executable (differing number of basic block
  46454. counts) it will ignore the contents of the file. It then adds in the
  46455. new execution counts and finally writes the data to the file.
  46456. 
  46457. File: gcc.info, Node: Gcov and Optimization, Next: Gcov Data Files, Prev: Invoking Gcov, Up: Gcov
  46458. 10.3 Using 'gcov' with GCC Optimization
  46459. =======================================
  46460. If you plan to use 'gcov' to help optimize your code, you must first
  46461. compile your program with a special GCC option '--coverage'. Aside from
  46462. that, you can use any other GCC options; but if you want to prove that
  46463. every single line in your program was executed, you should not compile
  46464. with optimization at the same time. On some machines the optimizer can
  46465. eliminate some simple code lines by combining them with other lines.
  46466. For example, code like this:
  46467. if (a != b)
  46468. c = 1;
  46469. else
  46470. c = 0;
  46471. can be compiled into one instruction on some machines. In this case,
  46472. there is no way for 'gcov' to calculate separate execution counts for
  46473. each line because there isn't separate code for each line. Hence the
  46474. 'gcov' output looks like this if you compiled the program with
  46475. optimization:
  46476. 100: 12:if (a != b)
  46477. 100: 13: c = 1;
  46478. 100: 14:else
  46479. 100: 15: c = 0;
  46480. The output shows that this block of code, combined by optimization,
  46481. executed 100 times. In one sense this result is correct, because there
  46482. was only one instruction representing all four of these lines. However,
  46483. the output does not indicate how many times the result was 0 and how
  46484. many times the result was 1.
  46485. Inlineable functions can create unexpected line counts. Line counts
  46486. are shown for the source code of the inlineable function, but what is
  46487. shown depends on where the function is inlined, or if it is not inlined
  46488. at all.
  46489. If the function is not inlined, the compiler must emit an out of line
  46490. copy of the function, in any object file that needs it. If 'fileA.o'
  46491. and 'fileB.o' both contain out of line bodies of a particular inlineable
  46492. function, they will also both contain coverage counts for that function.
  46493. When 'fileA.o' and 'fileB.o' are linked together, the linker will, on
  46494. many systems, select one of those out of line bodies for all calls to
  46495. that function, and remove or ignore the other. Unfortunately, it will
  46496. not remove the coverage counters for the unused function body. Hence
  46497. when instrumented, all but one use of that function will show zero
  46498. counts.
  46499. If the function is inlined in several places, the block structure in
  46500. each location might not be the same. For instance, a condition might
  46501. now be calculable at compile time in some instances. Because the
  46502. coverage of all the uses of the inline function will be shown for the
  46503. same source lines, the line counts themselves might seem inconsistent.
  46504. Long-running applications can use the '__gcov_reset' and '__gcov_dump'
  46505. facilities to restrict profile collection to the program region of
  46506. interest. Calling '__gcov_reset(void)' will clear all profile counters
  46507. to zero, and calling '__gcov_dump(void)' will cause the profile
  46508. information collected at that point to be dumped to '.gcda' output
  46509. files. Instrumented applications use a static destructor with priority
  46510. 99 to invoke the '__gcov_dump' function. Thus '__gcov_dump' is executed
  46511. after all user defined static destructors, as well as handlers
  46512. registered with 'atexit'. If an executable loads a dynamic shared
  46513. object via dlopen functionality, '-Wl,--dynamic-list-data' is needed to
  46514. dump all profile data.
  46515. Profiling run-time library reports various errors related to profile
  46516. manipulation and profile saving. Errors are printed into standard error
  46517. output or 'GCOV_ERROR_FILE' file, if environment variable is used. In
  46518. order to terminate immediately after an errors occurs set
  46519. 'GCOV_EXIT_AT_ERROR' environment variable. That can help users to find
  46520. profile clashing which leads to a misleading profile.
  46521. 
  46522. File: gcc.info, Node: Gcov Data Files, Next: Cross-profiling, Prev: Gcov and Optimization, Up: Gcov
  46523. 10.4 Brief Description of 'gcov' Data Files
  46524. ===========================================
  46525. 'gcov' uses two files for profiling. The names of these files are
  46526. derived from the original _object_ file by substituting the file suffix
  46527. with either '.gcno', or '.gcda'. The files contain coverage and profile
  46528. data stored in a platform-independent format. The '.gcno' files are
  46529. placed in the same directory as the object file. By default, the
  46530. '.gcda' files are also stored in the same directory as the object file,
  46531. but the GCC '-fprofile-dir' option may be used to store the '.gcda'
  46532. files in a separate directory.
  46533. The '.gcno' notes file is generated when the source file is compiled
  46534. with the GCC '-ftest-coverage' option. It contains information to
  46535. reconstruct the basic block graphs and assign source line numbers to
  46536. blocks.
  46537. The '.gcda' count data file is generated when a program containing
  46538. object files built with the GCC '-fprofile-arcs' option is executed. A
  46539. separate '.gcda' file is created for each object file compiled with this
  46540. option. It contains arc transition counts, value profile counts, and
  46541. some summary information.
  46542. It is not recommended to access the coverage files directly. Consumers
  46543. should use the intermediate format that is provided by 'gcov' tool via
  46544. '--json-format' option.
  46545. 
  46546. File: gcc.info, Node: Cross-profiling, Prev: Gcov Data Files, Up: Gcov
  46547. 10.5 Data File Relocation to Support Cross-Profiling
  46548. ====================================================
  46549. Running the program will cause profile output to be generated. For each
  46550. source file compiled with '-fprofile-arcs', an accompanying '.gcda' file
  46551. will be placed in the object file directory. That implicitly requires
  46552. running the program on the same system as it was built or having the
  46553. same absolute directory structure on the target system. The program
  46554. will try to create the needed directory structure, if it is not already
  46555. present.
  46556. To support cross-profiling, a program compiled with '-fprofile-arcs'
  46557. can relocate the data files based on two environment variables:
  46558. * GCOV_PREFIX contains the prefix to add to the absolute paths in the
  46559. object file. Prefix can be absolute, or relative. The default is
  46560. no prefix.
  46561. * GCOV_PREFIX_STRIP indicates the how many initial directory names to
  46562. strip off the hardwired absolute paths. Default value is 0.
  46563. _Note:_ If GCOV_PREFIX_STRIP is set without GCOV_PREFIX is
  46564. undefined, then a relative path is made out of the hardwired
  46565. absolute paths.
  46566. For example, if the object file '/user/build/foo.o' was built with
  46567. '-fprofile-arcs', the final executable will try to create the data file
  46568. '/user/build/foo.gcda' when running on the target system. This will
  46569. fail if the corresponding directory does not exist and it is unable to
  46570. create it. This can be overcome by, for example, setting the
  46571. environment as 'GCOV_PREFIX=/target/run' and 'GCOV_PREFIX_STRIP=1'.
  46572. Such a setting will name the data file '/target/run/build/foo.gcda'.
  46573. You must move the data files to the expected directory tree in order to
  46574. use them for profile directed optimizations ('-fprofile-use'), or to use
  46575. the 'gcov' tool.
  46576. 
  46577. File: gcc.info, Node: Gcov-tool, Next: Gcov-dump, Prev: Gcov, Up: Top
  46578. 11 'gcov-tool'--an Offline Gcda Profile Processing Tool
  46579. *******************************************************
  46580. 'gcov-tool' is a tool you can use in conjunction with GCC to manipulate
  46581. or process gcda profile files offline.
  46582. * Menu:
  46583. * Gcov-tool Intro:: Introduction to gcov-tool.
  46584. * Invoking Gcov-tool:: How to use gcov-tool.
  46585. 
  46586. File: gcc.info, Node: Gcov-tool Intro, Next: Invoking Gcov-tool, Up: Gcov-tool
  46587. 11.1 Introduction to 'gcov-tool'
  46588. ================================
  46589. 'gcov-tool' is an offline tool to process gcc's gcda profile files.
  46590. Current gcov-tool supports the following functionalities:
  46591. * merge two sets of profiles with weights.
  46592. * read one set of profile and rewrite profile contents. One can
  46593. scale or normalize the count values.
  46594. Examples of the use cases for this tool are:
  46595. * Collect the profiles for different set of inputs, and use this tool
  46596. to merge them. One can specify the weight to factor in the
  46597. relative importance of each input.
  46598. * Rewrite the profile after removing a subset of the gcda files,
  46599. while maintaining the consistency of the summary and the histogram.
  46600. * It can also be used to debug or libgcov code as the tools shares
  46601. the majority code as the runtime library.
  46602. Note that for the merging operation, this profile generated offline may
  46603. contain slight different values from the online merged profile. Here
  46604. are a list of typical differences:
  46605. * histogram difference: This offline tool recomputes the histogram
  46606. after merging the counters. The resulting histogram, therefore, is
  46607. precise. The online merging does not have this capability - the
  46608. histogram is merged from two histograms and the result is an
  46609. approximation.
  46610. * summary checksum difference: Summary checksum uses a CRC32
  46611. operation. The value depends on the link list order of gcov-info
  46612. objects. This order is different in gcov-tool from that in the
  46613. online merge. It's expected to have different summary checksums.
  46614. It does not really matter as the compiler does not use this
  46615. checksum anywhere.
  46616. * value profile counter values difference: Some counter values for
  46617. value profile are runtime dependent, like heap addresses. It's
  46618. normal to see some difference in these kind of counters.
  46619. 
  46620. File: gcc.info, Node: Invoking Gcov-tool, Prev: Gcov-tool Intro, Up: Gcov-tool
  46621. 11.2 Invoking 'gcov-tool'
  46622. =========================
  46623. gcov-tool [GLOBAL-OPTIONS] SUB_COMMAND [SUB_COMMAND-OPTIONS] PROFILE_DIR
  46624. 'gcov-tool' accepts the following options:
  46625. '-h'
  46626. '--help'
  46627. Display help about using 'gcov-tool' (on the standard output), and
  46628. exit without doing any further processing.
  46629. '-v'
  46630. '--version'
  46631. Display the 'gcov-tool' version number (on the standard output),
  46632. and exit without doing any further processing.
  46633. 'merge'
  46634. Merge two profile directories.
  46635. '-o DIRECTORY'
  46636. '--output DIRECTORY'
  46637. Set the output profile directory. Default output directory
  46638. name is MERGED_PROFILE.
  46639. '-v'
  46640. '--verbose'
  46641. Set the verbose mode.
  46642. '-w W1,W2'
  46643. '--weight W1,W2'
  46644. Set the merge weights of the DIRECTORY1 and DIRECTORY2,
  46645. respectively. The default weights are 1 for both.
  46646. 'rewrite'
  46647. Read the specified profile directory and rewrite to a new
  46648. directory.
  46649. '-n LONG_LONG_VALUE'
  46650. '--normalize <long_long_value>'
  46651. Normalize the profile. The specified value is the max counter
  46652. value in the new profile.
  46653. '-o DIRECTORY'
  46654. '--output DIRECTORY'
  46655. Set the output profile directory. Default output name is
  46656. REWRITE_PROFILE.
  46657. '-s FLOAT_OR_SIMPLE-FRAC_VALUE'
  46658. '--scale FLOAT_OR_SIMPLE-FRAC_VALUE'
  46659. Scale the profile counters. The specified value can be in
  46660. floating point value, or simple fraction value form, such 1,
  46661. 2, 2/3, and 5/3.
  46662. '-v'
  46663. '--verbose'
  46664. Set the verbose mode.
  46665. 'overlap'
  46666. Compute the overlap score between the two specified profile
  46667. directories. The overlap score is computed based on the arc
  46668. profiles. It is defined as the sum of min (p1_counter[i] /
  46669. p1_sum_all, p2_counter[i] / p2_sum_all), for all arc counter i,
  46670. where p1_counter[i] and p2_counter[i] are two matched counters and
  46671. p1_sum_all and p2_sum_all are the sum of counter values in profile
  46672. 1 and profile 2, respectively.
  46673. '-f'
  46674. '--function'
  46675. Print function level overlap score.
  46676. '-F'
  46677. '--fullname'
  46678. Print full gcda filename.
  46679. '-h'
  46680. '--hotonly'
  46681. Only print info for hot objects/functions.
  46682. '-o'
  46683. '--object'
  46684. Print object level overlap score.
  46685. '-t FLOAT'
  46686. '--hot_threshold <float>'
  46687. Set the threshold for hot counter value.
  46688. '-v'
  46689. '--verbose'
  46690. Set the verbose mode.
  46691. 
  46692. File: gcc.info, Node: Gcov-dump, Next: lto-dump, Prev: Gcov-tool, Up: Top
  46693. 12 'gcov-dump'--an Offline Gcda and Gcno Profile Dump Tool
  46694. **********************************************************
  46695. * Menu:
  46696. * Gcov-dump Intro:: Introduction to gcov-dump.
  46697. * Invoking Gcov-dump:: How to use gcov-dump.
  46698. 
  46699. File: gcc.info, Node: Gcov-dump Intro, Next: Invoking Gcov-dump, Up: Gcov-dump
  46700. 12.1 Introduction to 'gcov-dump'
  46701. ================================
  46702. 'gcov-dump' is a tool you can use in conjunction with GCC to dump
  46703. content of gcda and gcno profile files offline.
  46704. 
  46705. File: gcc.info, Node: Invoking Gcov-dump, Prev: Gcov-dump Intro, Up: Gcov-dump
  46706. 12.2 Invoking 'gcov-dump'
  46707. =========================
  46708. Usage: gcov-dump [OPTION] ... GCOVFILES
  46709. 'gcov-dump' accepts the following options:
  46710. '-h'
  46711. '--help'
  46712. Display help about using 'gcov-dump' (on the standard output), and
  46713. exit without doing any further processing.
  46714. '-l'
  46715. '--long'
  46716. Dump content of records.
  46717. '-p'
  46718. '--positions'
  46719. Dump positions of records.
  46720. '-r'
  46721. '--raw'
  46722. Print content records in raw format.
  46723. '-v'
  46724. '--version'
  46725. Display the 'gcov-dump' version number (on the standard output),
  46726. and exit without doing any further processing.
  46727. 
  46728. File: gcc.info, Node: lto-dump, Next: Trouble, Prev: Gcov-dump, Up: Top
  46729. 13 'lto-dump'--Tool for dumping LTO object files.
  46730. *************************************************
  46731. * Menu:
  46732. * lto-dump Intro:: Introduction to lto-dump.
  46733. * Invoking lto-dump:: How to use lto-dump.
  46734. 
  46735. File: gcc.info, Node: lto-dump Intro, Next: Invoking lto-dump, Up: lto-dump
  46736. 13.1 Introduction to 'lto-dump'
  46737. ===============================
  46738. 'lto-dump' is a tool you can use in conjunction with GCC to dump link
  46739. time optimization object files.
  46740. 
  46741. File: gcc.info, Node: Invoking lto-dump, Prev: lto-dump Intro, Up: lto-dump
  46742. 13.2 Invoking 'lto-dump'
  46743. ========================
  46744. Usage: lto-dump [OPTION] ... OBJFILES
  46745. 'lto-dump' accepts the following options:
  46746. '-list'
  46747. Dumps list of details of functions and variables.
  46748. '-demangle'
  46749. Dump the demangled output.
  46750. '-defined-only'
  46751. Dump only the defined symbols.
  46752. '-print-value'
  46753. Dump initial values of the variables.
  46754. '-name-sort'
  46755. Sort the symbols alphabetically.
  46756. '-size-sort'
  46757. Sort the symbols according to size.
  46758. '-reverse-sort'
  46759. Dump the symbols in reverse order.
  46760. '-no-sort'
  46761. Dump the symbols in order of occurrence.
  46762. '-symbol='
  46763. Dump the details of specific symbol.
  46764. '-objects'
  46765. Dump the details of LTO objects.
  46766. '-type-stats'
  46767. Dump the statistics of tree types.
  46768. '-tree-stats'
  46769. Dump the statistics of trees.
  46770. '-gimple-stats'
  46771. Dump the statistics of gimple statements.
  46772. '-dump-level='
  46773. For deciding the optimization level of body.
  46774. '-dump-body='
  46775. Dump the specific gimple body.
  46776. '-help'
  46777. Display the dump tool help.
  46778. 
  46779. File: gcc.info, Node: Trouble, Next: Bugs, Prev: lto-dump, Up: Top
  46780. 14 Known Causes of Trouble with GCC
  46781. ***********************************
  46782. This section describes known problems that affect users of GCC. Most of
  46783. these are not GCC bugs per se--if they were, we would fix them. But the
  46784. result for a user may be like the result of a bug.
  46785. Some of these problems are due to bugs in other software, some are
  46786. missing features that are too much work to add, and some are places
  46787. where people's opinions differ as to what is best.
  46788. * Menu:
  46789. * Actual Bugs:: Bugs we will fix later.
  46790. * Interoperation:: Problems using GCC with other compilers,
  46791. and with certain linkers, assemblers and debuggers.
  46792. * Incompatibilities:: GCC is incompatible with traditional C.
  46793. * Fixed Headers:: GCC uses corrected versions of system header files.
  46794. This is necessary, but doesn't always work smoothly.
  46795. * Standard Libraries:: GCC uses the system C library, which might not be
  46796. compliant with the ISO C standard.
  46797. * Disappointments:: Regrettable things we cannot change, but not quite bugs.
  46798. * C++ Misunderstandings:: Common misunderstandings with GNU C++.
  46799. * Non-bugs:: Things we think are right, but some others disagree.
  46800. * Warnings and Errors:: Which problems in your code get warnings,
  46801. and which get errors.
  46802. 
  46803. File: gcc.info, Node: Actual Bugs, Next: Interoperation, Up: Trouble
  46804. 14.1 Actual Bugs We Haven't Fixed Yet
  46805. =====================================
  46806. * The 'fixincludes' script interacts badly with automounters; if the
  46807. directory of system header files is automounted, it tends to be
  46808. unmounted while 'fixincludes' is running. This would seem to be a
  46809. bug in the automounter. We don't know any good way to work around
  46810. it.
  46811. 
  46812. File: gcc.info, Node: Interoperation, Next: Incompatibilities, Prev: Actual Bugs, Up: Trouble
  46813. 14.2 Interoperation
  46814. ===================
  46815. This section lists various difficulties encountered in using GCC
  46816. together with other compilers or with the assemblers, linkers, libraries
  46817. and debuggers on certain systems.
  46818. * On many platforms, GCC supports a different ABI for C++ than do
  46819. other compilers, so the object files compiled by GCC cannot be used
  46820. with object files generated by another C++ compiler.
  46821. An area where the difference is most apparent is name mangling.
  46822. The use of different name mangling is intentional, to protect you
  46823. from more subtle problems. Compilers differ as to many internal
  46824. details of C++ implementation, including: how class instances are
  46825. laid out, how multiple inheritance is implemented, and how virtual
  46826. function calls are handled. If the name encoding were made the
  46827. same, your programs would link against libraries provided from
  46828. other compilers--but the programs would then crash when run.
  46829. Incompatible libraries are then detected at link time, rather than
  46830. at run time.
  46831. * On some BSD systems, including some versions of Ultrix, use of
  46832. profiling causes static variable destructors (currently used only
  46833. in C++) not to be run.
  46834. * On a SPARC, GCC aligns all values of type 'double' on an 8-byte
  46835. boundary, and it expects every 'double' to be so aligned. The Sun
  46836. compiler usually gives 'double' values 8-byte alignment, with one
  46837. exception: function arguments of type 'double' may not be aligned.
  46838. As a result, if a function compiled with Sun CC takes the address
  46839. of an argument of type 'double' and passes this pointer of type
  46840. 'double *' to a function compiled with GCC, dereferencing the
  46841. pointer may cause a fatal signal.
  46842. One way to solve this problem is to compile your entire program
  46843. with GCC. Another solution is to modify the function that is
  46844. compiled with Sun CC to copy the argument into a local variable;
  46845. local variables are always properly aligned. A third solution is
  46846. to modify the function that uses the pointer to dereference it via
  46847. the following function 'access_double' instead of directly with
  46848. '*':
  46849. inline double
  46850. access_double (double *unaligned_ptr)
  46851. {
  46852. union d2i { double d; int i[2]; };
  46853. union d2i *p = (union d2i *) unaligned_ptr;
  46854. union d2i u;
  46855. u.i[0] = p->i[0];
  46856. u.i[1] = p->i[1];
  46857. return u.d;
  46858. }
  46859. Storing into the pointer can be done likewise with the same union.
  46860. * On Solaris, the 'malloc' function in the 'libmalloc.a' library may
  46861. allocate memory that is only 4 byte aligned. Since GCC on the
  46862. SPARC assumes that doubles are 8 byte aligned, this may result in a
  46863. fatal signal if doubles are stored in memory allocated by the
  46864. 'libmalloc.a' library.
  46865. The solution is to not use the 'libmalloc.a' library. Use instead
  46866. 'malloc' and related functions from 'libc.a'; they do not have this
  46867. problem.
  46868. * On the HP PA machine, ADB sometimes fails to work on functions
  46869. compiled with GCC. Specifically, it fails to work on functions
  46870. that use 'alloca' or variable-size arrays. This is because GCC
  46871. doesn't generate HP-UX unwind descriptors for such functions. It
  46872. may even be impossible to generate them.
  46873. * Debugging ('-g') is not supported on the HP PA machine, unless you
  46874. use the preliminary GNU tools.
  46875. * Taking the address of a label may generate errors from the HP-UX PA
  46876. assembler. GAS for the PA does not have this problem.
  46877. * Using floating point parameters for indirect calls to static
  46878. functions will not work when using the HP assembler. There simply
  46879. is no way for GCC to specify what registers hold arguments for
  46880. static functions when using the HP assembler. GAS for the PA does
  46881. not have this problem.
  46882. * In extremely rare cases involving some very large functions you may
  46883. receive errors from the HP linker complaining about an out of
  46884. bounds unconditional branch offset. This used to occur more often
  46885. in previous versions of GCC, but is now exceptionally rare. If you
  46886. should run into it, you can work around by making your function
  46887. smaller.
  46888. * GCC compiled code sometimes emits warnings from the HP-UX assembler
  46889. of the form:
  46890. (warning) Use of GR3 when
  46891. frame >= 8192 may cause conflict.
  46892. These warnings are harmless and can be safely ignored.
  46893. * In extremely rare cases involving some very large functions you may
  46894. receive errors from the AIX Assembler complaining about a
  46895. displacement that is too large. If you should run into it, you can
  46896. work around by making your function smaller.
  46897. * The 'libstdc++.a' library in GCC relies on the SVR4 dynamic linker
  46898. semantics which merges global symbols between libraries and
  46899. applications, especially necessary for C++ streams functionality.
  46900. This is not the default behavior of AIX shared libraries and
  46901. dynamic linking. 'libstdc++.a' is built on AIX with
  46902. "runtime-linking" enabled so that symbol merging can occur. To
  46903. utilize this feature, the application linked with 'libstdc++.a'
  46904. must include the '-Wl,-brtl' flag on the link line. G++ cannot
  46905. impose this because this option may interfere with the semantics of
  46906. the user program and users may not always use 'g++' to link his or
  46907. her application. Applications are not required to use the
  46908. '-Wl,-brtl' flag on the link line--the rest of the 'libstdc++.a'
  46909. library which is not dependent on the symbol merging semantics will
  46910. continue to function correctly.
  46911. * An application can interpose its own definition of functions for
  46912. functions invoked by 'libstdc++.a' with "runtime-linking" enabled
  46913. on AIX. To accomplish this the application must be linked with
  46914. "runtime-linking" option and the functions explicitly must be
  46915. exported by the application ('-Wl,-brtl,-bE:exportfile').
  46916. * AIX on the RS/6000 provides support (NLS) for environments outside
  46917. of the United States. Compilers and assemblers use NLS to support
  46918. locale-specific representations of various objects including
  46919. floating-point numbers ('.' vs ',' for separating decimal
  46920. fractions). There have been problems reported where the library
  46921. linked with GCC does not produce the same floating-point formats
  46922. that the assembler accepts. If you have this problem, set the
  46923. 'LANG' environment variable to 'C' or 'En_US'.
  46924. * Even if you specify '-fdollars-in-identifiers', you cannot
  46925. successfully use '$' in identifiers on the RS/6000 due to a
  46926. restriction in the IBM assembler. GAS supports these identifiers.
  46927. 
  46928. File: gcc.info, Node: Incompatibilities, Next: Fixed Headers, Prev: Interoperation, Up: Trouble
  46929. 14.3 Incompatibilities of GCC
  46930. =============================
  46931. There are several noteworthy incompatibilities between GNU C and K&R
  46932. (non-ISO) versions of C.
  46933. * GCC normally makes string constants read-only. If several
  46934. identical-looking string constants are used, GCC stores only one
  46935. copy of the string.
  46936. One consequence is that you cannot call 'mktemp' with a string
  46937. constant argument. The function 'mktemp' always alters the string
  46938. its argument points to.
  46939. Another consequence is that 'sscanf' does not work on some very old
  46940. systems when passed a string constant as its format control string
  46941. or input. This is because 'sscanf' incorrectly tries to write into
  46942. the string constant. Likewise 'fscanf' and 'scanf'.
  46943. The solution to these problems is to change the program to use
  46944. 'char'-array variables with initialization strings for these
  46945. purposes instead of string constants.
  46946. * '-2147483648' is positive.
  46947. This is because 2147483648 cannot fit in the type 'int', so
  46948. (following the ISO C rules) its data type is 'unsigned long int'.
  46949. Negating this value yields 2147483648 again.
  46950. * GCC does not substitute macro arguments when they appear inside of
  46951. string constants. For example, the following macro in GCC
  46952. #define foo(a) "a"
  46953. will produce output '"a"' regardless of what the argument A is.
  46954. * When you use 'setjmp' and 'longjmp', the only automatic variables
  46955. guaranteed to remain valid are those declared 'volatile'. This is
  46956. a consequence of automatic register allocation. Consider this
  46957. function:
  46958. jmp_buf j;
  46959. foo ()
  46960. {
  46961. int a, b;
  46962. a = fun1 ();
  46963. if (setjmp (j))
  46964. return a;
  46965. a = fun2 ();
  46966. /* 'longjmp (j)' may occur in 'fun3'. */
  46967. return a + fun3 ();
  46968. }
  46969. Here 'a' may or may not be restored to its first value when the
  46970. 'longjmp' occurs. If 'a' is allocated in a register, then its
  46971. first value is restored; otherwise, it keeps the last value stored
  46972. in it.
  46973. If you use the '-W' option with the '-O' option, you will get a
  46974. warning when GCC thinks such a problem might be possible.
  46975. * Programs that use preprocessing directives in the middle of macro
  46976. arguments do not work with GCC. For example, a program like this
  46977. will not work:
  46978. foobar (
  46979. #define luser
  46980. hack)
  46981. ISO C does not permit such a construct.
  46982. * K&R compilers allow comments to cross over an inclusion boundary
  46983. (i.e. started in an include file and ended in the including file).
  46984. * Declarations of external variables and functions within a block
  46985. apply only to the block containing the declaration. In other
  46986. words, they have the same scope as any other declaration in the
  46987. same place.
  46988. In some other C compilers, an 'extern' declaration affects all the
  46989. rest of the file even if it happens within a block.
  46990. * In traditional C, you can combine 'long', etc., with a typedef
  46991. name, as shown here:
  46992. typedef int foo;
  46993. typedef long foo bar;
  46994. In ISO C, this is not allowed: 'long' and other type modifiers
  46995. require an explicit 'int'.
  46996. * PCC allows typedef names to be used as function parameters.
  46997. * Traditional C allows the following erroneous pair of declarations
  46998. to appear together in a given scope:
  46999. typedef int foo;
  47000. typedef foo foo;
  47001. * GCC treats all characters of identifiers as significant. According
  47002. to K&R-1 (2.2), "No more than the first eight characters are
  47003. significant, although more may be used.". Also according to K&R-1
  47004. (2.2), "An identifier is a sequence of letters and digits; the
  47005. first character must be a letter. The underscore _ counts as a
  47006. letter.", but GCC also allows dollar signs in identifiers.
  47007. * PCC allows whitespace in the middle of compound assignment
  47008. operators such as '+='. GCC, following the ISO standard, does not
  47009. allow this.
  47010. * GCC complains about unterminated character constants inside of
  47011. preprocessing conditionals that fail. Some programs have English
  47012. comments enclosed in conditionals that are guaranteed to fail; if
  47013. these comments contain apostrophes, GCC will probably report an
  47014. error. For example, this code would produce an error:
  47015. #if 0
  47016. You can't expect this to work.
  47017. #endif
  47018. The best solution to such a problem is to put the text into an
  47019. actual C comment delimited by '/*...*/'.
  47020. * Many user programs contain the declaration 'long time ();'. In the
  47021. past, the system header files on many systems did not actually
  47022. declare 'time', so it did not matter what type your program
  47023. declared it to return. But in systems with ISO C headers, 'time'
  47024. is declared to return 'time_t', and if that is not the same as
  47025. 'long', then 'long time ();' is erroneous.
  47026. The solution is to change your program to use appropriate system
  47027. headers ('<time.h>' on systems with ISO C headers) and not to
  47028. declare 'time' if the system header files declare it, or failing
  47029. that to use 'time_t' as the return type of 'time'.
  47030. * When compiling functions that return 'float', PCC converts it to a
  47031. double. GCC actually returns a 'float'. If you are concerned with
  47032. PCC compatibility, you should declare your functions to return
  47033. 'double'; you might as well say what you mean.
  47034. * When compiling functions that return structures or unions, GCC
  47035. output code normally uses a method different from that used on most
  47036. versions of Unix. As a result, code compiled with GCC cannot call
  47037. a structure-returning function compiled with PCC, and vice versa.
  47038. The method used by GCC is as follows: a structure or union which is
  47039. 1, 2, 4 or 8 bytes long is returned like a scalar. A structure or
  47040. union with any other size is stored into an address supplied by the
  47041. caller (usually in a special, fixed register, but on some machines
  47042. it is passed on the stack). The target hook
  47043. 'TARGET_STRUCT_VALUE_RTX' tells GCC where to pass this address.
  47044. By contrast, PCC on most target machines returns structures and
  47045. unions of any size by copying the data into an area of static
  47046. storage, and then returning the address of that storage as if it
  47047. were a pointer value. The caller must copy the data from that
  47048. memory area to the place where the value is wanted. GCC does not
  47049. use this method because it is slower and nonreentrant.
  47050. On some newer machines, PCC uses a reentrant convention for all
  47051. structure and union returning. GCC on most of these machines uses
  47052. a compatible convention when returning structures and unions in
  47053. memory, but still returns small structures and unions in registers.
  47054. You can tell GCC to use a compatible convention for all structure
  47055. and union returning with the option '-fpcc-struct-return'.
  47056. * GCC complains about program fragments such as '0x74ae-0x4000' which
  47057. appear to be two hexadecimal constants separated by the minus
  47058. operator. Actually, this string is a single "preprocessing token".
  47059. Each such token must correspond to one token in C. Since this does
  47060. not, GCC prints an error message. Although it may appear obvious
  47061. that what is meant is an operator and two values, the ISO C
  47062. standard specifically requires that this be treated as erroneous.
  47063. A "preprocessing token" is a "preprocessing number" if it begins
  47064. with a digit and is followed by letters, underscores, digits,
  47065. periods and 'e+', 'e-', 'E+', 'E-', 'p+', 'p-', 'P+', or 'P-'
  47066. character sequences. (In strict C90 mode, the sequences 'p+',
  47067. 'p-', 'P+' and 'P-' cannot appear in preprocessing numbers.)
  47068. To make the above program fragment valid, place whitespace in front
  47069. of the minus sign. This whitespace will end the preprocessing
  47070. number.
  47071. 
  47072. File: gcc.info, Node: Fixed Headers, Next: Standard Libraries, Prev: Incompatibilities, Up: Trouble
  47073. 14.4 Fixed Header Files
  47074. =======================
  47075. GCC needs to install corrected versions of some system header files.
  47076. This is because most target systems have some header files that won't
  47077. work with GCC unless they are changed. Some have bugs, some are
  47078. incompatible with ISO C, and some depend on special features of other
  47079. compilers.
  47080. Installing GCC automatically creates and installs the fixed header
  47081. files, by running a program called 'fixincludes'. Normally, you don't
  47082. need to pay attention to this. But there are cases where it doesn't do
  47083. the right thing automatically.
  47084. * If you update the system's header files, such as by installing a
  47085. new system version, the fixed header files of GCC are not
  47086. automatically updated. They can be updated using the 'mkheaders'
  47087. script installed in 'LIBEXECDIR/gcc/TARGET/VERSION/install-tools/'.
  47088. * On some systems, header file directories contain machine-specific
  47089. symbolic links in certain places. This makes it possible to share
  47090. most of the header files among hosts running the same version of
  47091. the system on different machine models.
  47092. The programs that fix the header files do not understand this
  47093. special way of using symbolic links; therefore, the directory of
  47094. fixed header files is good only for the machine model used to build
  47095. it.
  47096. It is possible to make separate sets of fixed header files for the
  47097. different machine models, and arrange a structure of symbolic links
  47098. so as to use the proper set, but you'll have to do this by hand.
  47099. 
  47100. File: gcc.info, Node: Standard Libraries, Next: Disappointments, Prev: Fixed Headers, Up: Trouble
  47101. 14.5 Standard Libraries
  47102. =======================
  47103. GCC by itself attempts to be a conforming freestanding implementation.
  47104. *Note Language Standards Supported by GCC: Standards, for details of
  47105. what this means. Beyond the library facilities required of such an
  47106. implementation, the rest of the C library is supplied by the vendor of
  47107. the operating system. If that C library doesn't conform to the C
  47108. standards, then your programs might get warnings (especially when using
  47109. '-Wall') that you don't expect.
  47110. For example, the 'sprintf' function on SunOS 4.1.3 returns 'char *'
  47111. while the C standard says that 'sprintf' returns an 'int'. The
  47112. 'fixincludes' program could make the prototype for this function match
  47113. the Standard, but that would be wrong, since the function will still
  47114. return 'char *'.
  47115. If you need a Standard compliant library, then you need to find one, as
  47116. GCC does not provide one. The GNU C library (called 'glibc') provides
  47117. ISO C, POSIX, BSD, SystemV and X/Open compatibility for GNU/Linux and
  47118. HURD-based GNU systems; no recent version of it supports other systems,
  47119. though some very old versions did. Version 2.2 of the GNU C library
  47120. includes nearly complete C99 support. You could also ask your operating
  47121. system vendor if newer libraries are available.
  47122. 
  47123. File: gcc.info, Node: Disappointments, Next: C++ Misunderstandings, Prev: Standard Libraries, Up: Trouble
  47124. 14.6 Disappointments and Misunderstandings
  47125. ==========================================
  47126. These problems are perhaps regrettable, but we don't know any practical
  47127. way around them.
  47128. * Certain local variables aren't recognized by debuggers when you
  47129. compile with optimization.
  47130. This occurs because sometimes GCC optimizes the variable out of
  47131. existence. There is no way to tell the debugger how to compute the
  47132. value such a variable "would have had", and it is not clear that
  47133. would be desirable anyway. So GCC simply does not mention the
  47134. eliminated variable when it writes debugging information.
  47135. You have to expect a certain amount of disagreement between the
  47136. executable and your source code, when you use optimization.
  47137. * Users often think it is a bug when GCC reports an error for code
  47138. like this:
  47139. int foo (struct mumble *);
  47140. struct mumble { ... };
  47141. int foo (struct mumble *x)
  47142. { ... }
  47143. This code really is erroneous, because the scope of 'struct mumble'
  47144. in the prototype is limited to the argument list containing it. It
  47145. does not refer to the 'struct mumble' defined with file scope
  47146. immediately below--they are two unrelated types with similar names
  47147. in different scopes.
  47148. But in the definition of 'foo', the file-scope type is used because
  47149. that is available to be inherited. Thus, the definition and the
  47150. prototype do not match, and you get an error.
  47151. This behavior may seem silly, but it's what the ISO standard
  47152. specifies. It is easy enough for you to make your code work by
  47153. moving the definition of 'struct mumble' above the prototype. It's
  47154. not worth being incompatible with ISO C just to avoid an error for
  47155. the example shown above.
  47156. * Accesses to bit-fields even in volatile objects works by accessing
  47157. larger objects, such as a byte or a word. You cannot rely on what
  47158. size of object is accessed in order to read or write the bit-field;
  47159. it may even vary for a given bit-field according to the precise
  47160. usage.
  47161. If you care about controlling the amount of memory that is
  47162. accessed, use volatile but do not use bit-fields.
  47163. * GCC comes with shell scripts to fix certain known problems in
  47164. system header files. They install corrected copies of various
  47165. header files in a special directory where only GCC will normally
  47166. look for them. The scripts adapt to various systems by searching
  47167. all the system header files for the problem cases that we know
  47168. about.
  47169. If new system header files are installed, nothing automatically
  47170. arranges to update the corrected header files. They can be updated
  47171. using the 'mkheaders' script installed in
  47172. 'LIBEXECDIR/gcc/TARGET/VERSION/install-tools/'.
  47173. * On 68000 and x86 systems, for instance, you can get paradoxical
  47174. results if you test the precise values of floating point numbers.
  47175. For example, you can find that a floating point value which is not
  47176. a NaN is not equal to itself. This results from the fact that the
  47177. floating point registers hold a few more bits of precision than fit
  47178. in a 'double' in memory. Compiled code moves values between memory
  47179. and floating point registers at its convenience, and moving them
  47180. into memory truncates them.
  47181. You can partially avoid this problem by using the '-ffloat-store'
  47182. option (*note Optimize Options::).
  47183. * On AIX and other platforms without weak symbol support, templates
  47184. need to be instantiated explicitly and symbols for static members
  47185. of templates will not be generated.
  47186. * On AIX, GCC scans object files and library archives for static
  47187. constructors and destructors when linking an application before the
  47188. linker prunes unreferenced symbols. This is necessary to prevent
  47189. the AIX linker from mistakenly assuming that static constructor or
  47190. destructor are unused and removing them before the scanning can
  47191. occur. All static constructors and destructors found will be
  47192. referenced even though the modules in which they occur may not be
  47193. used by the program. This may lead to both increased executable
  47194. size and unexpected symbol references.
  47195. 
  47196. File: gcc.info, Node: C++ Misunderstandings, Next: Non-bugs, Prev: Disappointments, Up: Trouble
  47197. 14.7 Common Misunderstandings with GNU C++
  47198. ==========================================
  47199. C++ is a complex language and an evolving one, and its standard
  47200. definition (the ISO C++ standard) was only recently completed. As a
  47201. result, your C++ compiler may occasionally surprise you, even when its
  47202. behavior is correct. This section discusses some areas that frequently
  47203. give rise to questions of this sort.
  47204. * Menu:
  47205. * Static Definitions:: Static member declarations are not definitions
  47206. * Name lookup:: Name lookup, templates, and accessing members of base classes
  47207. * Temporaries:: Temporaries may vanish before you expect
  47208. * Copy Assignment:: Copy Assignment operators copy virtual bases twice
  47209. 
  47210. File: gcc.info, Node: Static Definitions, Next: Name lookup, Up: C++ Misunderstandings
  47211. 14.7.1 Declare _and_ Define Static Members
  47212. ------------------------------------------
  47213. When a class has static data members, it is not enough to _declare_ the
  47214. static member; you must also _define_ it. For example:
  47215. class Foo
  47216. {
  47217. ...
  47218. void method();
  47219. static int bar;
  47220. };
  47221. This declaration only establishes that the class 'Foo' has an 'int'
  47222. named 'Foo::bar', and a member function named 'Foo::method'. But you
  47223. still need to define _both_ 'method' and 'bar' elsewhere. According to
  47224. the ISO standard, you must supply an initializer in one (and only one)
  47225. source file, such as:
  47226. int Foo::bar = 0;
  47227. Other C++ compilers may not correctly implement the standard behavior.
  47228. As a result, when you switch to 'g++' from one of these compilers, you
  47229. may discover that a program that appeared to work correctly in fact does
  47230. not conform to the standard: 'g++' reports as undefined symbols any
  47231. static data members that lack definitions.
  47232. 
  47233. File: gcc.info, Node: Name lookup, Next: Temporaries, Prev: Static Definitions, Up: C++ Misunderstandings
  47234. 14.7.2 Name Lookup, Templates, and Accessing Members of Base Classes
  47235. --------------------------------------------------------------------
  47236. The C++ standard prescribes that all names that are not dependent on
  47237. template parameters are bound to their present definitions when parsing
  47238. a template function or class.(1) Only names that are dependent are
  47239. looked up at the point of instantiation. For example, consider
  47240. void foo(double);
  47241. struct A {
  47242. template <typename T>
  47243. void f () {
  47244. foo (1); // 1
  47245. int i = N; // 2
  47246. T t;
  47247. t.bar(); // 3
  47248. foo (t); // 4
  47249. }
  47250. static const int N;
  47251. };
  47252. Here, the names 'foo' and 'N' appear in a context that does not depend
  47253. on the type of 'T'. The compiler will thus require that they are
  47254. defined in the context of use in the template, not only before the point
  47255. of instantiation, and will here use '::foo(double)' and 'A::N',
  47256. respectively. In particular, it will convert the integer value to a
  47257. 'double' when passing it to '::foo(double)'.
  47258. Conversely, 'bar' and the call to 'foo' in the fourth marked line are
  47259. used in contexts that do depend on the type of 'T', so they are only
  47260. looked up at the point of instantiation, and you can provide
  47261. declarations for them after declaring the template, but before
  47262. instantiating it. In particular, if you instantiate 'A::f<int>', the
  47263. last line will call an overloaded '::foo(int)' if one was provided, even
  47264. if after the declaration of 'struct A'.
  47265. This distinction between lookup of dependent and non-dependent names is
  47266. called two-stage (or dependent) name lookup. G++ implements it since
  47267. version 3.4.
  47268. Two-stage name lookup sometimes leads to situations with behavior
  47269. different from non-template codes. The most common is probably this:
  47270. template <typename T> struct Base {
  47271. int i;
  47272. };
  47273. template <typename T> struct Derived : public Base<T> {
  47274. int get_i() { return i; }
  47275. };
  47276. In 'get_i()', 'i' is not used in a dependent context, so the compiler
  47277. will look for a name declared at the enclosing namespace scope (which is
  47278. the global scope here). It will not look into the base class, since
  47279. that is dependent and you may declare specializations of 'Base' even
  47280. after declaring 'Derived', so the compiler cannot really know what 'i'
  47281. would refer to. If there is no global variable 'i', then you will get
  47282. an error message.
  47283. In order to make it clear that you want the member of the base class,
  47284. you need to defer lookup until instantiation time, at which the base
  47285. class is known. For this, you need to access 'i' in a dependent
  47286. context, by either using 'this->i' (remember that 'this' is of type
  47287. 'Derived<T>*', so is obviously dependent), or using 'Base<T>::i'.
  47288. Alternatively, 'Base<T>::i' might be brought into scope by a
  47289. 'using'-declaration.
  47290. Another, similar example involves calling member functions of a base
  47291. class:
  47292. template <typename T> struct Base {
  47293. int f();
  47294. };
  47295. template <typename T> struct Derived : Base<T> {
  47296. int g() { return f(); };
  47297. };
  47298. Again, the call to 'f()' is not dependent on template arguments (there
  47299. are no arguments that depend on the type 'T', and it is also not
  47300. otherwise specified that the call should be in a dependent context).
  47301. Thus a global declaration of such a function must be available, since
  47302. the one in the base class is not visible until instantiation time. The
  47303. compiler will consequently produce the following error message:
  47304. x.cc: In member function `int Derived<T>::g()':
  47305. x.cc:6: error: there are no arguments to `f' that depend on a template
  47306. parameter, so a declaration of `f' must be available
  47307. x.cc:6: error: (if you use `-fpermissive', G++ will accept your code, but
  47308. allowing the use of an undeclared name is deprecated)
  47309. To make the code valid either use 'this->f()', or 'Base<T>::f()'.
  47310. Using the '-fpermissive' flag will also let the compiler accept the
  47311. code, by marking all function calls for which no declaration is visible
  47312. at the time of definition of the template for later lookup at
  47313. instantiation time, as if it were a dependent call. We do not recommend
  47314. using '-fpermissive' to work around invalid code, and it will also only
  47315. catch cases where functions in base classes are called, not where
  47316. variables in base classes are used (as in the example above).
  47317. Note that some compilers (including G++ versions prior to 3.4) get
  47318. these examples wrong and accept above code without an error. Those
  47319. compilers do not implement two-stage name lookup correctly.
  47320. ---------- Footnotes ----------
  47321. (1) The C++ standard just uses the term "dependent" for names that
  47322. depend on the type or value of template parameters. This shorter term
  47323. will also be used in the rest of this section.
  47324. 
  47325. File: gcc.info, Node: Temporaries, Next: Copy Assignment, Prev: Name lookup, Up: C++ Misunderstandings
  47326. 14.7.3 Temporaries May Vanish Before You Expect
  47327. -----------------------------------------------
  47328. It is dangerous to use pointers or references to _portions_ of a
  47329. temporary object. The compiler may very well delete the object before
  47330. you expect it to, leaving a pointer to garbage. The most common place
  47331. where this problem crops up is in classes like string classes,
  47332. especially ones that define a conversion function to type 'char *' or
  47333. 'const char *'--which is one reason why the standard 'string' class
  47334. requires you to call the 'c_str' member function. However, any class
  47335. that returns a pointer to some internal structure is potentially subject
  47336. to this problem.
  47337. For example, a program may use a function 'strfunc' that returns
  47338. 'string' objects, and another function 'charfunc' that operates on
  47339. pointers to 'char':
  47340. string strfunc ();
  47341. void charfunc (const char *);
  47342. void
  47343. f ()
  47344. {
  47345. const char *p = strfunc().c_str();
  47346. ...
  47347. charfunc (p);
  47348. ...
  47349. charfunc (p);
  47350. }
  47351. In this situation, it may seem reasonable to save a pointer to the C
  47352. string returned by the 'c_str' member function and use that rather than
  47353. call 'c_str' repeatedly. However, the temporary string created by the
  47354. call to 'strfunc' is destroyed after 'p' is initialized, at which point
  47355. 'p' is left pointing to freed memory.
  47356. Code like this may run successfully under some other compilers,
  47357. particularly obsolete cfront-based compilers that delete temporaries
  47358. along with normal local variables. However, the GNU C++ behavior is
  47359. standard-conforming, so if your program depends on late destruction of
  47360. temporaries it is not portable.
  47361. The safe way to write such code is to give the temporary a name, which
  47362. forces it to remain until the end of the scope of the name. For
  47363. example:
  47364. const string& tmp = strfunc ();
  47365. charfunc (tmp.c_str ());
  47366. 
  47367. File: gcc.info, Node: Copy Assignment, Prev: Temporaries, Up: C++ Misunderstandings
  47368. 14.7.4 Implicit Copy-Assignment for Virtual Bases
  47369. -------------------------------------------------
  47370. When a base class is virtual, only one subobject of the base class
  47371. belongs to each full object. Also, the constructors and destructors are
  47372. invoked only once, and called from the most-derived class. However,
  47373. such objects behave unspecified when being assigned. For example:
  47374. struct Base{
  47375. char *name;
  47376. Base(char *n) : name(strdup(n)){}
  47377. Base& operator= (const Base& other){
  47378. free (name);
  47379. name = strdup (other.name);
  47380. }
  47381. };
  47382. struct A:virtual Base{
  47383. int val;
  47384. A():Base("A"){}
  47385. };
  47386. struct B:virtual Base{
  47387. int bval;
  47388. B():Base("B"){}
  47389. };
  47390. struct Derived:public A, public B{
  47391. Derived():Base("Derived"){}
  47392. };
  47393. void func(Derived &d1, Derived &d2)
  47394. {
  47395. d1 = d2;
  47396. }
  47397. The C++ standard specifies that 'Base::Base' is only called once when
  47398. constructing or copy-constructing a Derived object. It is unspecified
  47399. whether 'Base::operator=' is called more than once when the implicit
  47400. copy-assignment for Derived objects is invoked (as it is inside 'func'
  47401. in the example).
  47402. G++ implements the "intuitive" algorithm for copy-assignment: assign
  47403. all direct bases, then assign all members. In that algorithm, the
  47404. virtual base subobject can be encountered more than once. In the
  47405. example, copying proceeds in the following order: 'val', 'name' (via
  47406. 'strdup'), 'bval', and 'name' again.
  47407. If application code relies on copy-assignment, a user-defined
  47408. copy-assignment operator removes any uncertainties. With such an
  47409. operator, the application can define whether and how the virtual base
  47410. subobject is assigned.
  47411. 
  47412. File: gcc.info, Node: Non-bugs, Next: Warnings and Errors, Prev: C++ Misunderstandings, Up: Trouble
  47413. 14.8 Certain Changes We Don't Want to Make
  47414. ==========================================
  47415. This section lists changes that people frequently request, but which we
  47416. do not make because we think GCC is better without them.
  47417. * Checking the number and type of arguments to a function which has
  47418. an old-fashioned definition and no prototype.
  47419. Such a feature would work only occasionally--only for calls that
  47420. appear in the same file as the called function, following the
  47421. definition. The only way to check all calls reliably is to add a
  47422. prototype for the function. But adding a prototype eliminates the
  47423. motivation for this feature. So the feature is not worthwhile.
  47424. * Warning about using an expression whose type is signed as a shift
  47425. count.
  47426. Shift count operands are probably signed more often than unsigned.
  47427. Warning about this would cause far more annoyance than good.
  47428. * Warning about assigning a signed value to an unsigned variable.
  47429. Such assignments must be very common; warning about them would
  47430. cause more annoyance than good.
  47431. * Warning when a non-void function value is ignored.
  47432. C contains many standard functions that return a value that most
  47433. programs choose to ignore. One obvious example is 'printf'.
  47434. Warning about this practice only leads the defensive programmer to
  47435. clutter programs with dozens of casts to 'void'. Such casts are
  47436. required so frequently that they become visual noise. Writing
  47437. those casts becomes so automatic that they no longer convey useful
  47438. information about the intentions of the programmer. For functions
  47439. where the return value should never be ignored, use the
  47440. 'warn_unused_result' function attribute (*note Function
  47441. Attributes::).
  47442. * Making '-fshort-enums' the default.
  47443. This would cause storage layout to be incompatible with most other
  47444. C compilers. And it doesn't seem very important, given that you
  47445. can get the same result in other ways. The case where it matters
  47446. most is when the enumeration-valued object is inside a structure,
  47447. and in that case you can specify a field width explicitly.
  47448. * Making bit-fields unsigned by default on particular machines where
  47449. "the ABI standard" says to do so.
  47450. The ISO C standard leaves it up to the implementation whether a
  47451. bit-field declared plain 'int' is signed or not. This in effect
  47452. creates two alternative dialects of C.
  47453. The GNU C compiler supports both dialects; you can specify the
  47454. signed dialect with '-fsigned-bitfields' and the unsigned dialect
  47455. with '-funsigned-bitfields'. However, this leaves open the
  47456. question of which dialect to use by default.
  47457. Currently, the preferred dialect makes plain bit-fields signed,
  47458. because this is simplest. Since 'int' is the same as 'signed int'
  47459. in every other context, it is cleanest for them to be the same in
  47460. bit-fields as well.
  47461. Some computer manufacturers have published Application Binary
  47462. Interface standards which specify that plain bit-fields should be
  47463. unsigned. It is a mistake, however, to say anything about this
  47464. issue in an ABI. This is because the handling of plain bit-fields
  47465. distinguishes two dialects of C. Both dialects are meaningful on
  47466. every type of machine. Whether a particular object file was
  47467. compiled using signed bit-fields or unsigned is of no concern to
  47468. other object files, even if they access the same bit-fields in the
  47469. same data structures.
  47470. A given program is written in one or the other of these two
  47471. dialects. The program stands a chance to work on most any machine
  47472. if it is compiled with the proper dialect. It is unlikely to work
  47473. at all if compiled with the wrong dialect.
  47474. Many users appreciate the GNU C compiler because it provides an
  47475. environment that is uniform across machines. These users would be
  47476. inconvenienced if the compiler treated plain bit-fields differently
  47477. on certain machines.
  47478. Occasionally users write programs intended only for a particular
  47479. machine type. On these occasions, the users would benefit if the
  47480. GNU C compiler were to support by default the same dialect as the
  47481. other compilers on that machine. But such applications are rare.
  47482. And users writing a program to run on more than one type of machine
  47483. cannot possibly benefit from this kind of compatibility.
  47484. This is why GCC does and will treat plain bit-fields in the same
  47485. fashion on all types of machines (by default).
  47486. There are some arguments for making bit-fields unsigned by default
  47487. on all machines. If, for example, this becomes a universal de
  47488. facto standard, it would make sense for GCC to go along with it.
  47489. This is something to be considered in the future.
  47490. (Of course, users strongly concerned about portability should
  47491. indicate explicitly in each bit-field whether it is signed or not.
  47492. In this way, they write programs which have the same meaning in
  47493. both C dialects.)
  47494. * Undefining '__STDC__' when '-ansi' is not used.
  47495. Currently, GCC defines '__STDC__' unconditionally. This provides
  47496. good results in practice.
  47497. Programmers normally use conditionals on '__STDC__' to ask whether
  47498. it is safe to use certain features of ISO C, such as function
  47499. prototypes or ISO token concatenation. Since plain 'gcc' supports
  47500. all the features of ISO C, the correct answer to these questions is
  47501. "yes".
  47502. Some users try to use '__STDC__' to check for the availability of
  47503. certain library facilities. This is actually incorrect usage in an
  47504. ISO C program, because the ISO C standard says that a conforming
  47505. freestanding implementation should define '__STDC__' even though it
  47506. does not have the library facilities. 'gcc -ansi -pedantic' is a
  47507. conforming freestanding implementation, and it is therefore
  47508. required to define '__STDC__', even though it does not come with an
  47509. ISO C library.
  47510. Sometimes people say that defining '__STDC__' in a compiler that
  47511. does not completely conform to the ISO C standard somehow violates
  47512. the standard. This is illogical. The standard is a standard for
  47513. compilers that claim to support ISO C, such as 'gcc -ansi'--not for
  47514. other compilers such as plain 'gcc'. Whatever the ISO C standard
  47515. says is relevant to the design of plain 'gcc' without '-ansi' only
  47516. for pragmatic reasons, not as a requirement.
  47517. GCC normally defines '__STDC__' to be 1, and in addition defines
  47518. '__STRICT_ANSI__' if you specify the '-ansi' option, or a '-std'
  47519. option for strict conformance to some version of ISO C. On some
  47520. hosts, system include files use a different convention, where
  47521. '__STDC__' is normally 0, but is 1 if the user specifies strict
  47522. conformance to the C Standard. GCC follows the host convention
  47523. when processing system include files, but when processing user
  47524. files it follows the usual GNU C convention.
  47525. * Undefining '__STDC__' in C++.
  47526. Programs written to compile with C++-to-C translators get the value
  47527. of '__STDC__' that goes with the C compiler that is subsequently
  47528. used. These programs must test '__STDC__' to determine what kind
  47529. of C preprocessor that compiler uses: whether they should
  47530. concatenate tokens in the ISO C fashion or in the traditional
  47531. fashion.
  47532. These programs work properly with GNU C++ if '__STDC__' is defined.
  47533. They would not work otherwise.
  47534. In addition, many header files are written to provide prototypes in
  47535. ISO C but not in traditional C. Many of these header files can
  47536. work without change in C++ provided '__STDC__' is defined. If
  47537. '__STDC__' is not defined, they will all fail, and will all need to
  47538. be changed to test explicitly for C++ as well.
  47539. * Deleting "empty" loops.
  47540. Historically, GCC has not deleted "empty" loops under the
  47541. assumption that the most likely reason you would put one in a
  47542. program is to have a delay, so deleting them will not make real
  47543. programs run any faster.
  47544. However, the rationale here is that optimization of a nonempty loop
  47545. cannot produce an empty one. This held for carefully written C
  47546. compiled with less powerful optimizers but is not always the case
  47547. for carefully written C++ or with more powerful optimizers. Thus
  47548. GCC will remove operations from loops whenever it can determine
  47549. those operations are not externally visible (apart from the time
  47550. taken to execute them, of course). In case the loop can be proved
  47551. to be finite, GCC will also remove the loop itself.
  47552. Be aware of this when performing timing tests, for instance the
  47553. following loop can be completely removed, provided
  47554. 'some_expression' can provably not change any global state.
  47555. {
  47556. int sum = 0;
  47557. int ix;
  47558. for (ix = 0; ix != 10000; ix++)
  47559. sum += some_expression;
  47560. }
  47561. Even though 'sum' is accumulated in the loop, no use is made of
  47562. that summation, so the accumulation can be removed.
  47563. * Making side effects happen in the same order as in some other
  47564. compiler.
  47565. It is never safe to depend on the order of evaluation of side
  47566. effects. For example, a function call like this may very well
  47567. behave differently from one compiler to another:
  47568. void func (int, int);
  47569. int i = 2;
  47570. func (i++, i++);
  47571. There is no guarantee (in either the C or the C++ standard language
  47572. definitions) that the increments will be evaluated in any
  47573. particular order. Either increment might happen first. 'func'
  47574. might get the arguments '2, 3', or it might get '3, 2', or even '2,
  47575. 2'.
  47576. * Making certain warnings into errors by default.
  47577. Some ISO C testsuites report failure when the compiler does not
  47578. produce an error message for a certain program.
  47579. ISO C requires a "diagnostic" message for certain kinds of invalid
  47580. programs, but a warning is defined by GCC to count as a diagnostic.
  47581. If GCC produces a warning but not an error, that is correct ISO C
  47582. support. If testsuites call this "failure", they should be run
  47583. with the GCC option '-pedantic-errors', which will turn these
  47584. warnings into errors.
  47585. 
  47586. File: gcc.info, Node: Warnings and Errors, Prev: Non-bugs, Up: Trouble
  47587. 14.9 Warning Messages and Error Messages
  47588. ========================================
  47589. The GNU compiler can produce two kinds of diagnostics: errors and
  47590. warnings. Each kind has a different purpose:
  47591. "Errors" report problems that make it impossible to compile your
  47592. program. GCC reports errors with the source file name and line
  47593. number where the problem is apparent.
  47594. "Warnings" report other unusual conditions in your code that _may_
  47595. indicate a problem, although compilation can (and does) proceed.
  47596. Warning messages also report the source file name and line number,
  47597. but include the text 'warning:' to distinguish them from error
  47598. messages.
  47599. Warnings may indicate danger points where you should check to make sure
  47600. that your program really does what you intend; or the use of obsolete
  47601. features; or the use of nonstandard features of GNU C or C++. Many
  47602. warnings are issued only if you ask for them, with one of the '-W'
  47603. options (for instance, '-Wall' requests a variety of useful warnings).
  47604. GCC always tries to compile your program if possible; it never
  47605. gratuitously rejects a program whose meaning is clear merely because
  47606. (for instance) it fails to conform to a standard. In some cases,
  47607. however, the C and C++ standards specify that certain extensions are
  47608. forbidden, and a diagnostic _must_ be issued by a conforming compiler.
  47609. The '-pedantic' option tells GCC to issue warnings in such cases;
  47610. '-pedantic-errors' says to make them errors instead. This does not mean
  47611. that _all_ non-ISO constructs get warnings or errors.
  47612. *Note Options to Request or Suppress Warnings: Warning Options, for
  47613. more detail on these and related command-line options.
  47614. 
  47615. File: gcc.info, Node: Bugs, Next: Service, Prev: Trouble, Up: Top
  47616. 15 Reporting Bugs
  47617. *****************
  47618. Your bug reports play an essential role in making GCC reliable.
  47619. When you encounter a problem, the first thing to do is to see if it is
  47620. already known. *Note Trouble::. If it isn't known, then you should
  47621. report the problem.
  47622. * Menu:
  47623. * Criteria: Bug Criteria. Have you really found a bug?
  47624. * Reporting: Bug Reporting. How to report a bug effectively.
  47625. 
  47626. File: gcc.info, Node: Bug Criteria, Next: Bug Reporting, Up: Bugs
  47627. 15.1 Have You Found a Bug?
  47628. ==========================
  47629. If you are not sure whether you have found a bug, here are some
  47630. guidelines:
  47631. * If the compiler gets a fatal signal, for any input whatever, that
  47632. is a compiler bug. Reliable compilers never crash.
  47633. * If the compiler produces invalid assembly code, for any input
  47634. whatever (except an 'asm' statement), that is a compiler bug,
  47635. unless the compiler reports errors (not just warnings) which would
  47636. ordinarily prevent the assembler from being run.
  47637. * If the compiler produces valid assembly code that does not
  47638. correctly execute the input source code, that is a compiler bug.
  47639. However, you must double-check to make sure, because you may have a
  47640. program whose behavior is undefined, which happened by chance to
  47641. give the desired results with another C or C++ compiler.
  47642. For example, in many nonoptimizing compilers, you can write 'x;' at
  47643. the end of a function instead of 'return x;', with the same
  47644. results. But the value of the function is undefined if 'return' is
  47645. omitted; it is not a bug when GCC produces different results.
  47646. Problems often result from expressions with two increment
  47647. operators, as in 'f (*p++, *p++)'. Your previous compiler might
  47648. have interpreted that expression the way you intended; GCC might
  47649. interpret it another way. Neither compiler is wrong. The bug is
  47650. in your code.
  47651. After you have localized the error to a single source line, it
  47652. should be easy to check for these things. If your program is
  47653. correct and well defined, you have found a compiler bug.
  47654. * If the compiler produces an error message for valid input, that is
  47655. a compiler bug.
  47656. * If the compiler does not produce an error message for invalid
  47657. input, that is a compiler bug. However, you should note that your
  47658. idea of "invalid input" might be someone else's idea of "an
  47659. extension" or "support for traditional practice".
  47660. * If you are an experienced user of one of the languages GCC
  47661. supports, your suggestions for improvement of GCC are welcome in
  47662. any case.
  47663. 
  47664. File: gcc.info, Node: Bug Reporting, Prev: Bug Criteria, Up: Bugs
  47665. 15.2 How and Where to Report Bugs
  47666. =================================
  47667. Bugs should be reported to the bug database at
  47668. <https://gcc.gnu.org/bugs/>.
  47669. 
  47670. File: gcc.info, Node: Service, Next: Contributing, Prev: Bugs, Up: Top
  47671. 16 How To Get Help with GCC
  47672. ***************************
  47673. If you need help installing, using or changing GCC, there are two ways
  47674. to find it:
  47675. * Send a message to a suitable network mailing list. First try
  47676. <gcc-help@gcc.gnu.org> (for help installing or using GCC), and if
  47677. that brings no response, try <gcc@gcc.gnu.org>. For help changing
  47678. GCC, ask <gcc@gcc.gnu.org>. If you think you have found a bug in
  47679. GCC, please report it following the instructions at *note Bug
  47680. Reporting::.
  47681. * Look in the service directory for someone who might help you for a
  47682. fee. The service directory is found at
  47683. <https://www.fsf.org/resources/service>.
  47684. For further information, see <http://gcc.gnu.org/faq.html#support>.
  47685. 
  47686. File: gcc.info, Node: Contributing, Next: Funding, Prev: Service, Up: Top
  47687. 17 Contributing to GCC Development
  47688. **********************************
  47689. If you would like to help pretest GCC releases to assure they work well,
  47690. current development sources are available via Git (see
  47691. <http://gcc.gnu.org/git.html>). Source and binary snapshots are also
  47692. available for FTP; see <http://gcc.gnu.org/snapshots.html>.
  47693. If you would like to work on improvements to GCC, please read the
  47694. advice at these URLs:
  47695. <http://gcc.gnu.org/contribute.html>
  47696. <http://gcc.gnu.org/contributewhy.html>
  47697. for information on how to make useful contributions and avoid
  47698. duplication of effort. Suggested projects are listed at
  47699. <http://gcc.gnu.org/projects/>.
  47700. 
  47701. File: gcc.info, Node: Funding, Next: GNU Project, Prev: Contributing, Up: Top
  47702. Funding Free Software
  47703. *********************
  47704. If you want to have more free software a few years from now, it makes
  47705. sense for you to help encourage people to contribute funds for its
  47706. development. The most effective approach known is to encourage
  47707. commercial redistributors to donate.
  47708. Users of free software systems can boost the pace of development by
  47709. encouraging for-a-fee distributors to donate part of their selling price
  47710. to free software developers--the Free Software Foundation, and others.
  47711. The way to convince distributors to do this is to demand it and expect
  47712. it from them. So when you compare distributors, judge them partly by
  47713. how much they give to free software development. Show distributors they
  47714. must compete to be the one who gives the most.
  47715. To make this approach work, you must insist on numbers that you can
  47716. compare, such as, "We will donate ten dollars to the Frobnitz project
  47717. for each disk sold." Don't be satisfied with a vague promise, such as
  47718. "A portion of the profits are donated," since it doesn't give a basis
  47719. for comparison.
  47720. Even a precise fraction "of the profits from this disk" is not very
  47721. meaningful, since creative accounting and unrelated business decisions
  47722. can greatly alter what fraction of the sales price counts as profit. If
  47723. the price you pay is $50, ten percent of the profit is probably less
  47724. than a dollar; it might be a few cents, or nothing at all.
  47725. Some redistributors do development work themselves. This is useful
  47726. too; but to keep everyone honest, you need to inquire how much they do,
  47727. and what kind. Some kinds of development make much more long-term
  47728. difference than others. For example, maintaining a separate version of
  47729. a program contributes very little; maintaining the standard version of a
  47730. program for the whole community contributes much. Easy new ports
  47731. contribute little, since someone else would surely do them; difficult
  47732. ports such as adding a new CPU to the GNU Compiler Collection contribute
  47733. more; major new features or packages contribute the most.
  47734. By establishing the idea that supporting further development is "the
  47735. proper thing to do" when distributing free software for a fee, we can
  47736. assure a steady flow of resources into making more free software.
  47737. Copyright (C) 1994 Free Software Foundation, Inc.
  47738. Verbatim copying and redistribution of this section is permitted
  47739. without royalty; alteration is not permitted.
  47740. 
  47741. File: gcc.info, Node: GNU Project, Next: Copying, Prev: Funding, Up: Top
  47742. The GNU Project and GNU/Linux
  47743. *****************************
  47744. The GNU Project was launched in 1984 to develop a complete Unix-like
  47745. operating system which is free software: the GNU system. (GNU is a
  47746. recursive acronym for "GNU's Not Unix"; it is pronounced "guh-NEW".)
  47747. Variants of the GNU operating system, which use the kernel Linux, are
  47748. now widely used; though these systems are often referred to as "Linux",
  47749. they are more accurately called GNU/Linux systems.
  47750. For more information, see:
  47751. <http://www.gnu.org/>
  47752. <http://www.gnu.org/gnu/linux-and-gnu.html>
  47753. 
  47754. File: gcc.info, Node: Copying, Next: GNU Free Documentation License, Prev: GNU Project, Up: Top
  47755. GNU General Public License
  47756. **************************
  47757. Version 3, 29 June 2007
  47758. Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
  47759. Everyone is permitted to copy and distribute verbatim copies of this
  47760. license document, but changing it is not allowed.
  47761. Preamble
  47762. ========
  47763. The GNU General Public License is a free, copyleft license for software
  47764. and other kinds of works.
  47765. The licenses for most software and other practical works are designed
  47766. to take away your freedom to share and change the works. By contrast,
  47767. the GNU General Public License is intended to guarantee your freedom to
  47768. share and change all versions of a program-to make sure it remains free
  47769. software for all its users. We, the Free Software Foundation, use the
  47770. GNU General Public License for most of our software; it applies also to
  47771. any other work released this way by its authors. You can apply it to
  47772. your programs, too.
  47773. When we speak of free software, we are referring to freedom, not price.
  47774. Our General Public Licenses are designed to make sure that you have the
  47775. freedom to distribute copies of free software (and charge for them if
  47776. you wish), that you receive source code or can get it if you want it,
  47777. that you can change the software or use pieces of it in new free
  47778. programs, and that you know you can do these things.
  47779. To protect your rights, we need to prevent others from denying you
  47780. these rights or asking you to surrender the rights. Therefore, you have
  47781. certain responsibilities if you distribute copies of the software, or if
  47782. you modify it: responsibilities to respect the freedom of others.
  47783. For example, if you distribute copies of such a program, whether gratis
  47784. or for a fee, you must pass on to the recipients the same freedoms that
  47785. you received. You must make sure that they, too, receive or can get the
  47786. source code. And you must show them these terms so they know their
  47787. rights.
  47788. Developers that use the GNU GPL protect your rights with two steps: (1)
  47789. assert copyright on the software, and (2) offer you this License giving
  47790. you legal permission to copy, distribute and/or modify it.
  47791. For the developers' and authors' protection, the GPL clearly explains
  47792. that there is no warranty for this free software. For both users' and
  47793. authors' sake, the GPL requires that modified versions be marked as
  47794. changed, so that their problems will not be attributed erroneously to
  47795. authors of previous versions.
  47796. Some devices are designed to deny users access to install or run
  47797. modified versions of the software inside them, although the manufacturer
  47798. can do so. This is fundamentally incompatible with the aim of
  47799. protecting users' freedom to change the software. The systematic
  47800. pattern of such abuse occurs in the area of products for individuals to
  47801. use, which is precisely where it is most unacceptable. Therefore, we
  47802. have designed this version of the GPL to prohibit the practice for those
  47803. products. If such problems arise substantially in other domains, we
  47804. stand ready to extend this provision to those domains in future versions
  47805. of the GPL, as needed to protect the freedom of users.
  47806. Finally, every program is threatened constantly by software patents.
  47807. States should not allow patents to restrict development and use of
  47808. software on general-purpose computers, but in those that do, we wish to
  47809. avoid the special danger that patents applied to a free program could
  47810. make it effectively proprietary. To prevent this, the GPL assures that
  47811. patents cannot be used to render the program non-free.
  47812. The precise terms and conditions for copying, distribution and
  47813. modification follow.
  47814. TERMS AND CONDITIONS
  47815. ====================
  47816. 0. Definitions.
  47817. "This License" refers to version 3 of the GNU General Public
  47818. License.
  47819. "Copyright" also means copyright-like laws that apply to other
  47820. kinds of works, such as semiconductor masks.
  47821. "The Program" refers to any copyrightable work licensed under this
  47822. License. Each licensee is addressed as "you". "Licensees" and
  47823. "recipients" may be individuals or organizations.
  47824. To "modify" a work means to copy from or adapt all or part of the
  47825. work in a fashion requiring copyright permission, other than the
  47826. making of an exact copy. The resulting work is called a "modified
  47827. version" of the earlier work or a work "based on" the earlier work.
  47828. A "covered work" means either the unmodified Program or a work
  47829. based on the Program.
  47830. To "propagate" a work means to do anything with it that, without
  47831. permission, would make you directly or secondarily liable for
  47832. infringement under applicable copyright law, except executing it on
  47833. a computer or modifying a private copy. Propagation includes
  47834. copying, distribution (with or without modification), making
  47835. available to the public, and in some countries other activities as
  47836. well.
  47837. To "convey" a work means any kind of propagation that enables other
  47838. parties to make or receive copies. Mere interaction with a user
  47839. through a computer network, with no transfer of a copy, is not
  47840. conveying.
  47841. An interactive user interface displays "Appropriate Legal Notices"
  47842. to the extent that it includes a convenient and prominently visible
  47843. feature that (1) displays an appropriate copyright notice, and (2)
  47844. tells the user that there is no warranty for the work (except to
  47845. the extent that warranties are provided), that licensees may convey
  47846. the work under this License, and how to view a copy of this
  47847. License. If the interface presents a list of user commands or
  47848. options, such as a menu, a prominent item in the list meets this
  47849. criterion.
  47850. 1. Source Code.
  47851. The "source code" for a work means the preferred form of the work
  47852. for making modifications to it. "Object code" means any non-source
  47853. form of a work.
  47854. A "Standard Interface" means an interface that either is an
  47855. official standard defined by a recognized standards body, or, in
  47856. the case of interfaces specified for a particular programming
  47857. language, one that is widely used among developers working in that
  47858. language.
  47859. The "System Libraries" of an executable work include anything,
  47860. other than the work as a whole, that (a) is included in the normal
  47861. form of packaging a Major Component, but which is not part of that
  47862. Major Component, and (b) serves only to enable use of the work with
  47863. that Major Component, or to implement a Standard Interface for
  47864. which an implementation is available to the public in source code
  47865. form. A "Major Component", in this context, means a major
  47866. essential component (kernel, window system, and so on) of the
  47867. specific operating system (if any) on which the executable work
  47868. runs, or a compiler used to produce the work, or an object code
  47869. interpreter used to run it.
  47870. The "Corresponding Source" for a work in object code form means all
  47871. the source code needed to generate, install, and (for an executable
  47872. work) run the object code and to modify the work, including scripts
  47873. to control those activities. However, it does not include the
  47874. work's System Libraries, or general-purpose tools or generally
  47875. available free programs which are used unmodified in performing
  47876. those activities but which are not part of the work. For example,
  47877. Corresponding Source includes interface definition files associated
  47878. with source files for the work, and the source code for shared
  47879. libraries and dynamically linked subprograms that the work is
  47880. specifically designed to require, such as by intimate data
  47881. communication or control flow between those subprograms and other
  47882. parts of the work.
  47883. The Corresponding Source need not include anything that users can
  47884. regenerate automatically from other parts of the Corresponding
  47885. Source.
  47886. The Corresponding Source for a work in source code form is that
  47887. same work.
  47888. 2. Basic Permissions.
  47889. All rights granted under this License are granted for the term of
  47890. copyright on the Program, and are irrevocable provided the stated
  47891. conditions are met. This License explicitly affirms your unlimited
  47892. permission to run the unmodified Program. The output from running
  47893. a covered work is covered by this License only if the output, given
  47894. its content, constitutes a covered work. This License acknowledges
  47895. your rights of fair use or other equivalent, as provided by
  47896. copyright law.
  47897. You may make, run and propagate covered works that you do not
  47898. convey, without conditions so long as your license otherwise
  47899. remains in force. You may convey covered works to others for the
  47900. sole purpose of having them make modifications exclusively for you,
  47901. or provide you with facilities for running those works, provided
  47902. that you comply with the terms of this License in conveying all
  47903. material for which you do not control copyright. Those thus making
  47904. or running the covered works for you must do so exclusively on your
  47905. behalf, under your direction and control, on terms that prohibit
  47906. them from making any copies of your copyrighted material outside
  47907. their relationship with you.
  47908. Conveying under any other circumstances is permitted solely under
  47909. the conditions stated below. Sublicensing is not allowed; section
  47910. 10 makes it unnecessary.
  47911. 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
  47912. No covered work shall be deemed part of an effective technological
  47913. measure under any applicable law fulfilling obligations under
  47914. article 11 of the WIPO copyright treaty adopted on 20 December
  47915. 1996, or similar laws prohibiting or restricting circumvention of
  47916. such measures.
  47917. When you convey a covered work, you waive any legal power to forbid
  47918. circumvention of technological measures to the extent such
  47919. circumvention is effected by exercising rights under this License
  47920. with respect to the covered work, and you disclaim any intention to
  47921. limit operation or modification of the work as a means of
  47922. enforcing, against the work's users, your or third parties' legal
  47923. rights to forbid circumvention of technological measures.
  47924. 4. Conveying Verbatim Copies.
  47925. You may convey verbatim copies of the Program's source code as you
  47926. receive it, in any medium, provided that you conspicuously and
  47927. appropriately publish on each copy an appropriate copyright notice;
  47928. keep intact all notices stating that this License and any
  47929. non-permissive terms added in accord with section 7 apply to the
  47930. code; keep intact all notices of the absence of any warranty; and
  47931. give all recipients a copy of this License along with the Program.
  47932. You may charge any price or no price for each copy that you convey,
  47933. and you may offer support or warranty protection for a fee.
  47934. 5. Conveying Modified Source Versions.
  47935. You may convey a work based on the Program, or the modifications to
  47936. produce it from the Program, in the form of source code under the
  47937. terms of section 4, provided that you also meet all of these
  47938. conditions:
  47939. a. The work must carry prominent notices stating that you
  47940. modified it, and giving a relevant date.
  47941. b. The work must carry prominent notices stating that it is
  47942. released under this License and any conditions added under
  47943. section 7. This requirement modifies the requirement in
  47944. section 4 to "keep intact all notices".
  47945. c. You must license the entire work, as a whole, under this
  47946. License to anyone who comes into possession of a copy. This
  47947. License will therefore apply, along with any applicable
  47948. section 7 additional terms, to the whole of the work, and all
  47949. its parts, regardless of how they are packaged. This License
  47950. gives no permission to license the work in any other way, but
  47951. it does not invalidate such permission if you have separately
  47952. received it.
  47953. d. If the work has interactive user interfaces, each must display
  47954. Appropriate Legal Notices; however, if the Program has
  47955. interactive interfaces that do not display Appropriate Legal
  47956. Notices, your work need not make them do so.
  47957. A compilation of a covered work with other separate and independent
  47958. works, which are not by their nature extensions of the covered
  47959. work, and which are not combined with it such as to form a larger
  47960. program, in or on a volume of a storage or distribution medium, is
  47961. called an "aggregate" if the compilation and its resulting
  47962. copyright are not used to limit the access or legal rights of the
  47963. compilation's users beyond what the individual works permit.
  47964. Inclusion of a covered work in an aggregate does not cause this
  47965. License to apply to the other parts of the aggregate.
  47966. 6. Conveying Non-Source Forms.
  47967. You may convey a covered work in object code form under the terms
  47968. of sections 4 and 5, provided that you also convey the
  47969. machine-readable Corresponding Source under the terms of this
  47970. License, in one of these ways:
  47971. a. Convey the object code in, or embodied in, a physical product
  47972. (including a physical distribution medium), accompanied by the
  47973. Corresponding Source fixed on a durable physical medium
  47974. customarily used for software interchange.
  47975. b. Convey the object code in, or embodied in, a physical product
  47976. (including a physical distribution medium), accompanied by a
  47977. written offer, valid for at least three years and valid for as
  47978. long as you offer spare parts or customer support for that
  47979. product model, to give anyone who possesses the object code
  47980. either (1) a copy of the Corresponding Source for all the
  47981. software in the product that is covered by this License, on a
  47982. durable physical medium customarily used for software
  47983. interchange, for a price no more than your reasonable cost of
  47984. physically performing this conveying of source, or (2) access
  47985. to copy the Corresponding Source from a network server at no
  47986. charge.
  47987. c. Convey individual copies of the object code with a copy of the
  47988. written offer to provide the Corresponding Source. This
  47989. alternative is allowed only occasionally and noncommercially,
  47990. and only if you received the object code with such an offer,
  47991. in accord with subsection 6b.
  47992. d. Convey the object code by offering access from a designated
  47993. place (gratis or for a charge), and offer equivalent access to
  47994. the Corresponding Source in the same way through the same
  47995. place at no further charge. You need not require recipients
  47996. to copy the Corresponding Source along with the object code.
  47997. If the place to copy the object code is a network server, the
  47998. Corresponding Source may be on a different server (operated by
  47999. you or a third party) that supports equivalent copying
  48000. facilities, provided you maintain clear directions next to the
  48001. object code saying where to find the Corresponding Source.
  48002. Regardless of what server hosts the Corresponding Source, you
  48003. remain obligated to ensure that it is available for as long as
  48004. needed to satisfy these requirements.
  48005. e. Convey the object code using peer-to-peer transmission,
  48006. provided you inform other peers where the object code and
  48007. Corresponding Source of the work are being offered to the
  48008. general public at no charge under subsection 6d.
  48009. A separable portion of the object code, whose source code is
  48010. excluded from the Corresponding Source as a System Library, need
  48011. not be included in conveying the object code work.
  48012. A "User Product" is either (1) a "consumer product", which means
  48013. any tangible personal property which is normally used for personal,
  48014. family, or household purposes, or (2) anything designed or sold for
  48015. incorporation into a dwelling. In determining whether a product is
  48016. a consumer product, doubtful cases shall be resolved in favor of
  48017. coverage. For a particular product received by a particular user,
  48018. "normally used" refers to a typical or common use of that class of
  48019. product, regardless of the status of the particular user or of the
  48020. way in which the particular user actually uses, or expects or is
  48021. expected to use, the product. A product is a consumer product
  48022. regardless of whether the product has substantial commercial,
  48023. industrial or non-consumer uses, unless such uses represent the
  48024. only significant mode of use of the product.
  48025. "Installation Information" for a User Product means any methods,
  48026. procedures, authorization keys, or other information required to
  48027. install and execute modified versions of a covered work in that
  48028. User Product from a modified version of its Corresponding Source.
  48029. The information must suffice to ensure that the continued
  48030. functioning of the modified object code is in no case prevented or
  48031. interfered with solely because modification has been made.
  48032. If you convey an object code work under this section in, or with,
  48033. or specifically for use in, a User Product, and the conveying
  48034. occurs as part of a transaction in which the right of possession
  48035. and use of the User Product is transferred to the recipient in
  48036. perpetuity or for a fixed term (regardless of how the transaction
  48037. is characterized), the Corresponding Source conveyed under this
  48038. section must be accompanied by the Installation Information. But
  48039. this requirement does not apply if neither you nor any third party
  48040. retains the ability to install modified object code on the User
  48041. Product (for example, the work has been installed in ROM).
  48042. The requirement to provide Installation Information does not
  48043. include a requirement to continue to provide support service,
  48044. warranty, or updates for a work that has been modified or installed
  48045. by the recipient, or for the User Product in which it has been
  48046. modified or installed. Access to a network may be denied when the
  48047. modification itself materially and adversely affects the operation
  48048. of the network or violates the rules and protocols for
  48049. communication across the network.
  48050. Corresponding Source conveyed, and Installation Information
  48051. provided, in accord with this section must be in a format that is
  48052. publicly documented (and with an implementation available to the
  48053. public in source code form), and must require no special password
  48054. or key for unpacking, reading or copying.
  48055. 7. Additional Terms.
  48056. "Additional permissions" are terms that supplement the terms of
  48057. this License by making exceptions from one or more of its
  48058. conditions. Additional permissions that are applicable to the
  48059. entire Program shall be treated as though they were included in
  48060. this License, to the extent that they are valid under applicable
  48061. law. If additional permissions apply only to part of the Program,
  48062. that part may be used separately under those permissions, but the
  48063. entire Program remains governed by this License without regard to
  48064. the additional permissions.
  48065. When you convey a copy of a covered work, you may at your option
  48066. remove any additional permissions from that copy, or from any part
  48067. of it. (Additional permissions may be written to require their own
  48068. removal in certain cases when you modify the work.) You may place
  48069. additional permissions on material, added by you to a covered work,
  48070. for which you have or can give appropriate copyright permission.
  48071. Notwithstanding any other provision of this License, for material
  48072. you add to a covered work, you may (if authorized by the copyright
  48073. holders of that material) supplement the terms of this License with
  48074. terms:
  48075. a. Disclaiming warranty or limiting liability differently from
  48076. the terms of sections 15 and 16 of this License; or
  48077. b. Requiring preservation of specified reasonable legal notices
  48078. or author attributions in that material or in the Appropriate
  48079. Legal Notices displayed by works containing it; or
  48080. c. Prohibiting misrepresentation of the origin of that material,
  48081. or requiring that modified versions of such material be marked
  48082. in reasonable ways as different from the original version; or
  48083. d. Limiting the use for publicity purposes of names of licensors
  48084. or authors of the material; or
  48085. e. Declining to grant rights under trademark law for use of some
  48086. trade names, trademarks, or service marks; or
  48087. f. Requiring indemnification of licensors and authors of that
  48088. material by anyone who conveys the material (or modified
  48089. versions of it) with contractual assumptions of liability to
  48090. the recipient, for any liability that these contractual
  48091. assumptions directly impose on those licensors and authors.
  48092. All other non-permissive additional terms are considered "further
  48093. restrictions" within the meaning of section 10. If the Program as
  48094. you received it, or any part of it, contains a notice stating that
  48095. it is governed by this License along with a term that is a further
  48096. restriction, you may remove that term. If a license document
  48097. contains a further restriction but permits relicensing or conveying
  48098. under this License, you may add to a covered work material governed
  48099. by the terms of that license document, provided that the further
  48100. restriction does not survive such relicensing or conveying.
  48101. If you add terms to a covered work in accord with this section, you
  48102. must place, in the relevant source files, a statement of the
  48103. additional terms that apply to those files, or a notice indicating
  48104. where to find the applicable terms.
  48105. Additional terms, permissive or non-permissive, may be stated in
  48106. the form of a separately written license, or stated as exceptions;
  48107. the above requirements apply either way.
  48108. 8. Termination.
  48109. You may not propagate or modify a covered work except as expressly
  48110. provided under this License. Any attempt otherwise to propagate or
  48111. modify it is void, and will automatically terminate your rights
  48112. under this License (including any patent licenses granted under the
  48113. third paragraph of section 11).
  48114. However, if you cease all violation of this License, then your
  48115. license from a particular copyright holder is reinstated (a)
  48116. provisionally, unless and until the copyright holder explicitly and
  48117. finally terminates your license, and (b) permanently, if the
  48118. copyright holder fails to notify you of the violation by some
  48119. reasonable means prior to 60 days after the cessation.
  48120. Moreover, your license from a particular copyright holder is
  48121. reinstated permanently if the copyright holder notifies you of the
  48122. violation by some reasonable means, this is the first time you have
  48123. received notice of violation of this License (for any work) from
  48124. that copyright holder, and you cure the violation prior to 30 days
  48125. after your receipt of the notice.
  48126. Termination of your rights under this section does not terminate
  48127. the licenses of parties who have received copies or rights from you
  48128. under this License. If your rights have been terminated and not
  48129. permanently reinstated, you do not qualify to receive new licenses
  48130. for the same material under section 10.
  48131. 9. Acceptance Not Required for Having Copies.
  48132. You are not required to accept this License in order to receive or
  48133. run a copy of the Program. Ancillary propagation of a covered work
  48134. occurring solely as a consequence of using peer-to-peer
  48135. transmission to receive a copy likewise does not require
  48136. acceptance. However, nothing other than this License grants you
  48137. permission to propagate or modify any covered work. These actions
  48138. infringe copyright if you do not accept this License. Therefore,
  48139. by modifying or propagating a covered work, you indicate your
  48140. acceptance of this License to do so.
  48141. 10. Automatic Licensing of Downstream Recipients.
  48142. Each time you convey a covered work, the recipient automatically
  48143. receives a license from the original licensors, to run, modify and
  48144. propagate that work, subject to this License. You are not
  48145. responsible for enforcing compliance by third parties with this
  48146. License.
  48147. An "entity transaction" is a transaction transferring control of an
  48148. organization, or substantially all assets of one, or subdividing an
  48149. organization, or merging organizations. If propagation of a
  48150. covered work results from an entity transaction, each party to that
  48151. transaction who receives a copy of the work also receives whatever
  48152. licenses to the work the party's predecessor in interest had or
  48153. could give under the previous paragraph, plus a right to possession
  48154. of the Corresponding Source of the work from the predecessor in
  48155. interest, if the predecessor has it or can get it with reasonable
  48156. efforts.
  48157. You may not impose any further restrictions on the exercise of the
  48158. rights granted or affirmed under this License. For example, you
  48159. may not impose a license fee, royalty, or other charge for exercise
  48160. of rights granted under this License, and you may not initiate
  48161. litigation (including a cross-claim or counterclaim in a lawsuit)
  48162. alleging that any patent claim is infringed by making, using,
  48163. selling, offering for sale, or importing the Program or any portion
  48164. of it.
  48165. 11. Patents.
  48166. A "contributor" is a copyright holder who authorizes use under this
  48167. License of the Program or a work on which the Program is based.
  48168. The work thus licensed is called the contributor's "contributor
  48169. version".
  48170. A contributor's "essential patent claims" are all patent claims
  48171. owned or controlled by the contributor, whether already acquired or
  48172. hereafter acquired, that would be infringed by some manner,
  48173. permitted by this License, of making, using, or selling its
  48174. contributor version, but do not include claims that would be
  48175. infringed only as a consequence of further modification of the
  48176. contributor version. For purposes of this definition, "control"
  48177. includes the right to grant patent sublicenses in a manner
  48178. consistent with the requirements of this License.
  48179. Each contributor grants you a non-exclusive, worldwide,
  48180. royalty-free patent license under the contributor's essential
  48181. patent claims, to make, use, sell, offer for sale, import and
  48182. otherwise run, modify and propagate the contents of its contributor
  48183. version.
  48184. In the following three paragraphs, a "patent license" is any
  48185. express agreement or commitment, however denominated, not to
  48186. enforce a patent (such as an express permission to practice a
  48187. patent or covenant not to sue for patent infringement). To "grant"
  48188. such a patent license to a party means to make such an agreement or
  48189. commitment not to enforce a patent against the party.
  48190. If you convey a covered work, knowingly relying on a patent
  48191. license, and the Corresponding Source of the work is not available
  48192. for anyone to copy, free of charge and under the terms of this
  48193. License, through a publicly available network server or other
  48194. readily accessible means, then you must either (1) cause the
  48195. Corresponding Source to be so available, or (2) arrange to deprive
  48196. yourself of the benefit of the patent license for this particular
  48197. work, or (3) arrange, in a manner consistent with the requirements
  48198. of this License, to extend the patent license to downstream
  48199. recipients. "Knowingly relying" means you have actual knowledge
  48200. that, but for the patent license, your conveying the covered work
  48201. in a country, or your recipient's use of the covered work in a
  48202. country, would infringe one or more identifiable patents in that
  48203. country that you have reason to believe are valid.
  48204. If, pursuant to or in connection with a single transaction or
  48205. arrangement, you convey, or propagate by procuring conveyance of, a
  48206. covered work, and grant a patent license to some of the parties
  48207. receiving the covered work authorizing them to use, propagate,
  48208. modify or convey a specific copy of the covered work, then the
  48209. patent license you grant is automatically extended to all
  48210. recipients of the covered work and works based on it.
  48211. A patent license is "discriminatory" if it does not include within
  48212. the scope of its coverage, prohibits the exercise of, or is
  48213. conditioned on the non-exercise of one or more of the rights that
  48214. are specifically granted under this License. You may not convey a
  48215. covered work if you are a party to an arrangement with a third
  48216. party that is in the business of distributing software, under which
  48217. you make payment to the third party based on the extent of your
  48218. activity of conveying the work, and under which the third party
  48219. grants, to any of the parties who would receive the covered work
  48220. from you, a discriminatory patent license (a) in connection with
  48221. copies of the covered work conveyed by you (or copies made from
  48222. those copies), or (b) primarily for and in connection with specific
  48223. products or compilations that contain the covered work, unless you
  48224. entered into that arrangement, or that patent license was granted,
  48225. prior to 28 March 2007.
  48226. Nothing in this License shall be construed as excluding or limiting
  48227. any implied license or other defenses to infringement that may
  48228. otherwise be available to you under applicable patent law.
  48229. 12. No Surrender of Others' Freedom.
  48230. If conditions are imposed on you (whether by court order, agreement
  48231. or otherwise) that contradict the conditions of this License, they
  48232. do not excuse you from the conditions of this License. If you
  48233. cannot convey a covered work so as to satisfy simultaneously your
  48234. obligations under this License and any other pertinent obligations,
  48235. then as a consequence you may not convey it at all. For example,
  48236. if you agree to terms that obligate you to collect a royalty for
  48237. further conveying from those to whom you convey the Program, the
  48238. only way you could satisfy both those terms and this License would
  48239. be to refrain entirely from conveying the Program.
  48240. 13. Use with the GNU Affero General Public License.
  48241. Notwithstanding any other provision of this License, you have
  48242. permission to link or combine any covered work with a work licensed
  48243. under version 3 of the GNU Affero General Public License into a
  48244. single combined work, and to convey the resulting work. The terms
  48245. of this License will continue to apply to the part which is the
  48246. covered work, but the special requirements of the GNU Affero
  48247. General Public License, section 13, concerning interaction through
  48248. a network will apply to the combination as such.
  48249. 14. Revised Versions of this License.
  48250. The Free Software Foundation may publish revised and/or new
  48251. versions of the GNU General Public License from time to time. Such
  48252. new versions will be similar in spirit to the present version, but
  48253. may differ in detail to address new problems or concerns.
  48254. Each version is given a distinguishing version number. If the
  48255. Program specifies that a certain numbered version of the GNU
  48256. General Public License "or any later version" applies to it, you
  48257. have the option of following the terms and conditions either of
  48258. that numbered version or of any later version published by the Free
  48259. Software Foundation. If the Program does not specify a version
  48260. number of the GNU General Public License, you may choose any
  48261. version ever published by the Free Software Foundation.
  48262. If the Program specifies that a proxy can decide which future
  48263. versions of the GNU General Public License can be used, that
  48264. proxy's public statement of acceptance of a version permanently
  48265. authorizes you to choose that version for the Program.
  48266. Later license versions may give you additional or different
  48267. permissions. However, no additional obligations are imposed on any
  48268. author or copyright holder as a result of your choosing to follow a
  48269. later version.
  48270. 15. Disclaimer of Warranty.
  48271. THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
  48272. APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE
  48273. COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS"
  48274. WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED,
  48275. INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  48276. MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE
  48277. RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU.
  48278. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL
  48279. NECESSARY SERVICING, REPAIR OR CORRECTION.
  48280. 16. Limitation of Liability.
  48281. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
  48282. WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES
  48283. AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR
  48284. DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
  48285. CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE
  48286. THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA
  48287. BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
  48288. PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
  48289. PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF
  48290. THE POSSIBILITY OF SUCH DAMAGES.
  48291. 17. Interpretation of Sections 15 and 16.
  48292. If the disclaimer of warranty and limitation of liability provided
  48293. above cannot be given local legal effect according to their terms,
  48294. reviewing courts shall apply local law that most closely
  48295. approximates an absolute waiver of all civil liability in
  48296. connection with the Program, unless a warranty or assumption of
  48297. liability accompanies a copy of the Program in return for a fee.
  48298. END OF TERMS AND CONDITIONS
  48299. ===========================
  48300. How to Apply These Terms to Your New Programs
  48301. =============================================
  48302. If you develop a new program, and you want it to be of the greatest
  48303. possible use to the public, the best way to achieve this is to make it
  48304. free software which everyone can redistribute and change under these
  48305. terms.
  48306. To do so, attach the following notices to the program. It is safest to
  48307. attach them to the start of each source file to most effectively state
  48308. the exclusion of warranty; and each file should have at least the
  48309. "copyright" line and a pointer to where the full notice is found.
  48310. ONE LINE TO GIVE THE PROGRAM'S NAME AND A BRIEF IDEA OF WHAT IT DOES.
  48311. Copyright (C) YEAR NAME OF AUTHOR
  48312. This program is free software: you can redistribute it and/or modify
  48313. it under the terms of the GNU General Public License as published by
  48314. the Free Software Foundation, either version 3 of the License, or (at
  48315. your option) any later version.
  48316. This program is distributed in the hope that it will be useful, but
  48317. WITHOUT ANY WARRANTY; without even the implied warranty of
  48318. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  48319. General Public License for more details.
  48320. You should have received a copy of the GNU General Public License
  48321. along with this program. If not, see <http://www.gnu.org/licenses/>.
  48322. Also add information on how to contact you by electronic and paper
  48323. mail.
  48324. If the program does terminal interaction, make it output a short notice
  48325. like this when it starts in an interactive mode:
  48326. PROGRAM Copyright (C) YEAR NAME OF AUTHOR
  48327. This program comes with ABSOLUTELY NO WARRANTY; for details type 'show w'.
  48328. This is free software, and you are welcome to redistribute it
  48329. under certain conditions; type 'show c' for details.
  48330. The hypothetical commands 'show w' and 'show c' should show the
  48331. appropriate parts of the General Public License. Of course, your
  48332. program's commands might be different; for a GUI interface, you would
  48333. use an "about box".
  48334. You should also get your employer (if you work as a programmer) or
  48335. school, if any, to sign a "copyright disclaimer" for the program, if
  48336. necessary. For more information on this, and how to apply and follow
  48337. the GNU GPL, see <http://www.gnu.org/licenses/>.
  48338. The GNU General Public License does not permit incorporating your
  48339. program into proprietary programs. If your program is a subroutine
  48340. library, you may consider it more useful to permit linking proprietary
  48341. applications with the library. If this is what you want to do, use the
  48342. GNU Lesser General Public License instead of this License. But first,
  48343. please read <https://www.gnu.org/licenses/why-not-lgpl.html>.
  48344. 
  48345. File: gcc.info, Node: GNU Free Documentation License, Next: Contributors, Prev: Copying, Up: Top
  48346. GNU Free Documentation License
  48347. ******************************
  48348. Version 1.3, 3 November 2008
  48349. Copyright (C) 2000, 2001, 2002, 2007, 2008 Free Software Foundation, Inc.
  48350. <http://fsf.org/>
  48351. Everyone is permitted to copy and distribute verbatim copies
  48352. of this license document, but changing it is not allowed.
  48353. 0. PREAMBLE
  48354. The purpose of this License is to make a manual, textbook, or other
  48355. functional and useful document "free" in the sense of freedom: to
  48356. assure everyone the effective freedom to copy and redistribute it,
  48357. with or without modifying it, either commercially or
  48358. noncommercially. Secondarily, this License preserves for the
  48359. author and publisher a way to get credit for their work, while not
  48360. being considered responsible for modifications made by others.
  48361. This License is a kind of "copyleft", which means that derivative
  48362. works of the document must themselves be free in the same sense.
  48363. It complements the GNU General Public License, which is a copyleft
  48364. license designed for free software.
  48365. We have designed this License in order to use it for manuals for
  48366. free software, because free software needs free documentation: a
  48367. free program should come with manuals providing the same freedoms
  48368. that the software does. But this License is not limited to
  48369. software manuals; it can be used for any textual work, regardless
  48370. of subject matter or whether it is published as a printed book. We
  48371. recommend this License principally for works whose purpose is
  48372. instruction or reference.
  48373. 1. APPLICABILITY AND DEFINITIONS
  48374. This License applies to any manual or other work, in any medium,
  48375. that contains a notice placed by the copyright holder saying it can
  48376. be distributed under the terms of this License. Such a notice
  48377. grants a world-wide, royalty-free license, unlimited in duration,
  48378. to use that work under the conditions stated herein. The
  48379. "Document", below, refers to any such manual or work. Any member
  48380. of the public is a licensee, and is addressed as "you". You accept
  48381. the license if you copy, modify or distribute the work in a way
  48382. requiring permission under copyright law.
  48383. A "Modified Version" of the Document means any work containing the
  48384. Document or a portion of it, either copied verbatim, or with
  48385. modifications and/or translated into another language.
  48386. A "Secondary Section" is a named appendix or a front-matter section
  48387. of the Document that deals exclusively with the relationship of the
  48388. publishers or authors of the Document to the Document's overall
  48389. subject (or to related matters) and contains nothing that could
  48390. fall directly within that overall subject. (Thus, if the Document
  48391. is in part a textbook of mathematics, a Secondary Section may not
  48392. explain any mathematics.) The relationship could be a matter of
  48393. historical connection with the subject or with related matters, or
  48394. of legal, commercial, philosophical, ethical or political position
  48395. regarding them.
  48396. The "Invariant Sections" are certain Secondary Sections whose
  48397. titles are designated, as being those of Invariant Sections, in the
  48398. notice that says that the Document is released under this License.
  48399. If a section does not fit the above definition of Secondary then it
  48400. is not allowed to be designated as Invariant. The Document may
  48401. contain zero Invariant Sections. If the Document does not identify
  48402. any Invariant Sections then there are none.
  48403. The "Cover Texts" are certain short passages of text that are
  48404. listed, as Front-Cover Texts or Back-Cover Texts, in the notice
  48405. that says that the Document is released under this License. A
  48406. Front-Cover Text may be at most 5 words, and a Back-Cover Text may
  48407. be at most 25 words.
  48408. A "Transparent" copy of the Document means a machine-readable copy,
  48409. represented in a format whose specification is available to the
  48410. general public, that is suitable for revising the document
  48411. straightforwardly with generic text editors or (for images composed
  48412. of pixels) generic paint programs or (for drawings) some widely
  48413. available drawing editor, and that is suitable for input to text
  48414. formatters or for automatic translation to a variety of formats
  48415. suitable for input to text formatters. A copy made in an otherwise
  48416. Transparent file format whose markup, or absence of markup, has
  48417. been arranged to thwart or discourage subsequent modification by
  48418. readers is not Transparent. An image format is not Transparent if
  48419. used for any substantial amount of text. A copy that is not
  48420. "Transparent" is called "Opaque".
  48421. Examples of suitable formats for Transparent copies include plain
  48422. ASCII without markup, Texinfo input format, LaTeX input format,
  48423. SGML or XML using a publicly available DTD, and standard-conforming
  48424. simple HTML, PostScript or PDF designed for human modification.
  48425. Examples of transparent image formats include PNG, XCF and JPG.
  48426. Opaque formats include proprietary formats that can be read and
  48427. edited only by proprietary word processors, SGML or XML for which
  48428. the DTD and/or processing tools are not generally available, and
  48429. the machine-generated HTML, PostScript or PDF produced by some word
  48430. processors for output purposes only.
  48431. The "Title Page" means, for a printed book, the title page itself,
  48432. plus such following pages as are needed to hold, legibly, the
  48433. material this License requires to appear in the title page. For
  48434. works in formats which do not have any title page as such, "Title
  48435. Page" means the text near the most prominent appearance of the
  48436. work's title, preceding the beginning of the body of the text.
  48437. The "publisher" means any person or entity that distributes copies
  48438. of the Document to the public.
  48439. A section "Entitled XYZ" means a named subunit of the Document
  48440. whose title either is precisely XYZ or contains XYZ in parentheses
  48441. following text that translates XYZ in another language. (Here XYZ
  48442. stands for a specific section name mentioned below, such as
  48443. "Acknowledgements", "Dedications", "Endorsements", or "History".)
  48444. To "Preserve the Title" of such a section when you modify the
  48445. Document means that it remains a section "Entitled XYZ" according
  48446. to this definition.
  48447. The Document may include Warranty Disclaimers next to the notice
  48448. which states that this License applies to the Document. These
  48449. Warranty Disclaimers are considered to be included by reference in
  48450. this License, but only as regards disclaiming warranties: any other
  48451. implication that these Warranty Disclaimers may have is void and
  48452. has no effect on the meaning of this License.
  48453. 2. VERBATIM COPYING
  48454. You may copy and distribute the Document in any medium, either
  48455. commercially or noncommercially, provided that this License, the
  48456. copyright notices, and the license notice saying this License
  48457. applies to the Document are reproduced in all copies, and that you
  48458. add no other conditions whatsoever to those of this License. You
  48459. may not use technical measures to obstruct or control the reading
  48460. or further copying of the copies you make or distribute. However,
  48461. you may accept compensation in exchange for copies. If you
  48462. distribute a large enough number of copies you must also follow the
  48463. conditions in section 3.
  48464. You may also lend copies, under the same conditions stated above,
  48465. and you may publicly display copies.
  48466. 3. COPYING IN QUANTITY
  48467. If you publish printed copies (or copies in media that commonly
  48468. have printed covers) of the Document, numbering more than 100, and
  48469. the Document's license notice requires Cover Texts, you must
  48470. enclose the copies in covers that carry, clearly and legibly, all
  48471. these Cover Texts: Front-Cover Texts on the front cover, and
  48472. Back-Cover Texts on the back cover. Both covers must also clearly
  48473. and legibly identify you as the publisher of these copies. The
  48474. front cover must present the full title with all words of the title
  48475. equally prominent and visible. You may add other material on the
  48476. covers in addition. Copying with changes limited to the covers, as
  48477. long as they preserve the title of the Document and satisfy these
  48478. conditions, can be treated as verbatim copying in other respects.
  48479. If the required texts for either cover are too voluminous to fit
  48480. legibly, you should put the first ones listed (as many as fit
  48481. reasonably) on the actual cover, and continue the rest onto
  48482. adjacent pages.
  48483. If you publish or distribute Opaque copies of the Document
  48484. numbering more than 100, you must either include a machine-readable
  48485. Transparent copy along with each Opaque copy, or state in or with
  48486. each Opaque copy a computer-network location from which the general
  48487. network-using public has access to download using public-standard
  48488. network protocols a complete Transparent copy of the Document, free
  48489. of added material. If you use the latter option, you must take
  48490. reasonably prudent steps, when you begin distribution of Opaque
  48491. copies in quantity, to ensure that this Transparent copy will
  48492. remain thus accessible at the stated location until at least one
  48493. year after the last time you distribute an Opaque copy (directly or
  48494. through your agents or retailers) of that edition to the public.
  48495. It is requested, but not required, that you contact the authors of
  48496. the Document well before redistributing any large number of copies,
  48497. to give them a chance to provide you with an updated version of the
  48498. Document.
  48499. 4. MODIFICATIONS
  48500. You may copy and distribute a Modified Version of the Document
  48501. under the conditions of sections 2 and 3 above, provided that you
  48502. release the Modified Version under precisely this License, with the
  48503. Modified Version filling the role of the Document, thus licensing
  48504. distribution and modification of the Modified Version to whoever
  48505. possesses a copy of it. In addition, you must do these things in
  48506. the Modified Version:
  48507. A. Use in the Title Page (and on the covers, if any) a title
  48508. distinct from that of the Document, and from those of previous
  48509. versions (which should, if there were any, be listed in the
  48510. History section of the Document). You may use the same title
  48511. as a previous version if the original publisher of that
  48512. version gives permission.
  48513. B. List on the Title Page, as authors, one or more persons or
  48514. entities responsible for authorship of the modifications in
  48515. the Modified Version, together with at least five of the
  48516. principal authors of the Document (all of its principal
  48517. authors, if it has fewer than five), unless they release you
  48518. from this requirement.
  48519. C. State on the Title page the name of the publisher of the
  48520. Modified Version, as the publisher.
  48521. D. Preserve all the copyright notices of the Document.
  48522. E. Add an appropriate copyright notice for your modifications
  48523. adjacent to the other copyright notices.
  48524. F. Include, immediately after the copyright notices, a license
  48525. notice giving the public permission to use the Modified
  48526. Version under the terms of this License, in the form shown in
  48527. the Addendum below.
  48528. G. Preserve in that license notice the full lists of Invariant
  48529. Sections and required Cover Texts given in the Document's
  48530. license notice.
  48531. H. Include an unaltered copy of this License.
  48532. I. Preserve the section Entitled "History", Preserve its Title,
  48533. and add to it an item stating at least the title, year, new
  48534. authors, and publisher of the Modified Version as given on the
  48535. Title Page. If there is no section Entitled "History" in the
  48536. Document, create one stating the title, year, authors, and
  48537. publisher of the Document as given on its Title Page, then add
  48538. an item describing the Modified Version as stated in the
  48539. previous sentence.
  48540. J. Preserve the network location, if any, given in the Document
  48541. for public access to a Transparent copy of the Document, and
  48542. likewise the network locations given in the Document for
  48543. previous versions it was based on. These may be placed in the
  48544. "History" section. You may omit a network location for a work
  48545. that was published at least four years before the Document
  48546. itself, or if the original publisher of the version it refers
  48547. to gives permission.
  48548. K. For any section Entitled "Acknowledgements" or "Dedications",
  48549. Preserve the Title of the section, and preserve in the section
  48550. all the substance and tone of each of the contributor
  48551. acknowledgements and/or dedications given therein.
  48552. L. Preserve all the Invariant Sections of the Document, unaltered
  48553. in their text and in their titles. Section numbers or the
  48554. equivalent are not considered part of the section titles.
  48555. M. Delete any section Entitled "Endorsements". Such a section
  48556. may not be included in the Modified Version.
  48557. N. Do not retitle any existing section to be Entitled
  48558. "Endorsements" or to conflict in title with any Invariant
  48559. Section.
  48560. O. Preserve any Warranty Disclaimers.
  48561. If the Modified Version includes new front-matter sections or
  48562. appendices that qualify as Secondary Sections and contain no
  48563. material copied from the Document, you may at your option designate
  48564. some or all of these sections as invariant. To do this, add their
  48565. titles to the list of Invariant Sections in the Modified Version's
  48566. license notice. These titles must be distinct from any other
  48567. section titles.
  48568. You may add a section Entitled "Endorsements", provided it contains
  48569. nothing but endorsements of your Modified Version by various
  48570. parties--for example, statements of peer review or that the text
  48571. has been approved by an organization as the authoritative
  48572. definition of a standard.
  48573. You may add a passage of up to five words as a Front-Cover Text,
  48574. and a passage of up to 25 words as a Back-Cover Text, to the end of
  48575. the list of Cover Texts in the Modified Version. Only one passage
  48576. of Front-Cover Text and one of Back-Cover Text may be added by (or
  48577. through arrangements made by) any one entity. If the Document
  48578. already includes a cover text for the same cover, previously added
  48579. by you or by arrangement made by the same entity you are acting on
  48580. behalf of, you may not add another; but you may replace the old
  48581. one, on explicit permission from the previous publisher that added
  48582. the old one.
  48583. The author(s) and publisher(s) of the Document do not by this
  48584. License give permission to use their names for publicity for or to
  48585. assert or imply endorsement of any Modified Version.
  48586. 5. COMBINING DOCUMENTS
  48587. You may combine the Document with other documents released under
  48588. this License, under the terms defined in section 4 above for
  48589. modified versions, provided that you include in the combination all
  48590. of the Invariant Sections of all of the original documents,
  48591. unmodified, and list them all as Invariant Sections of your
  48592. combined work in its license notice, and that you preserve all
  48593. their Warranty Disclaimers.
  48594. The combined work need only contain one copy of this License, and
  48595. multiple identical Invariant Sections may be replaced with a single
  48596. copy. If there are multiple Invariant Sections with the same name
  48597. but different contents, make the title of each such section unique
  48598. by adding at the end of it, in parentheses, the name of the
  48599. original author or publisher of that section if known, or else a
  48600. unique number. Make the same adjustment to the section titles in
  48601. the list of Invariant Sections in the license notice of the
  48602. combined work.
  48603. In the combination, you must combine any sections Entitled
  48604. "History" in the various original documents, forming one section
  48605. Entitled "History"; likewise combine any sections Entitled
  48606. "Acknowledgements", and any sections Entitled "Dedications". You
  48607. must delete all sections Entitled "Endorsements."
  48608. 6. COLLECTIONS OF DOCUMENTS
  48609. You may make a collection consisting of the Document and other
  48610. documents released under this License, and replace the individual
  48611. copies of this License in the various documents with a single copy
  48612. that is included in the collection, provided that you follow the
  48613. rules of this License for verbatim copying of each of the documents
  48614. in all other respects.
  48615. You may extract a single document from such a collection, and
  48616. distribute it individually under this License, provided you insert
  48617. a copy of this License into the extracted document, and follow this
  48618. License in all other respects regarding verbatim copying of that
  48619. document.
  48620. 7. AGGREGATION WITH INDEPENDENT WORKS
  48621. A compilation of the Document or its derivatives with other
  48622. separate and independent documents or works, in or on a volume of a
  48623. storage or distribution medium, is called an "aggregate" if the
  48624. copyright resulting from the compilation is not used to limit the
  48625. legal rights of the compilation's users beyond what the individual
  48626. works permit. When the Document is included in an aggregate, this
  48627. License does not apply to the other works in the aggregate which
  48628. are not themselves derivative works of the Document.
  48629. If the Cover Text requirement of section 3 is applicable to these
  48630. copies of the Document, then if the Document is less than one half
  48631. of the entire aggregate, the Document's Cover Texts may be placed
  48632. on covers that bracket the Document within the aggregate, or the
  48633. electronic equivalent of covers if the Document is in electronic
  48634. form. Otherwise they must appear on printed covers that bracket
  48635. the whole aggregate.
  48636. 8. TRANSLATION
  48637. Translation is considered a kind of modification, so you may
  48638. distribute translations of the Document under the terms of section
  48639. 4. Replacing Invariant Sections with translations requires special
  48640. permission from their copyright holders, but you may include
  48641. translations of some or all Invariant Sections in addition to the
  48642. original versions of these Invariant Sections. You may include a
  48643. translation of this License, and all the license notices in the
  48644. Document, and any Warranty Disclaimers, provided that you also
  48645. include the original English version of this License and the
  48646. original versions of those notices and disclaimers. In case of a
  48647. disagreement between the translation and the original version of
  48648. this License or a notice or disclaimer, the original version will
  48649. prevail.
  48650. If a section in the Document is Entitled "Acknowledgements",
  48651. "Dedications", or "History", the requirement (section 4) to
  48652. Preserve its Title (section 1) will typically require changing the
  48653. actual title.
  48654. 9. TERMINATION
  48655. You may not copy, modify, sublicense, or distribute the Document
  48656. except as expressly provided under this License. Any attempt
  48657. otherwise to copy, modify, sublicense, or distribute it is void,
  48658. and will automatically terminate your rights under this License.
  48659. However, if you cease all violation of this License, then your
  48660. license from a particular copyright holder is reinstated (a)
  48661. provisionally, unless and until the copyright holder explicitly and
  48662. finally terminates your license, and (b) permanently, if the
  48663. copyright holder fails to notify you of the violation by some
  48664. reasonable means prior to 60 days after the cessation.
  48665. Moreover, your license from a particular copyright holder is
  48666. reinstated permanently if the copyright holder notifies you of the
  48667. violation by some reasonable means, this is the first time you have
  48668. received notice of violation of this License (for any work) from
  48669. that copyright holder, and you cure the violation prior to 30 days
  48670. after your receipt of the notice.
  48671. Termination of your rights under this section does not terminate
  48672. the licenses of parties who have received copies or rights from you
  48673. under this License. If your rights have been terminated and not
  48674. permanently reinstated, receipt of a copy of some or all of the
  48675. same material does not give you any rights to use it.
  48676. 10. FUTURE REVISIONS OF THIS LICENSE
  48677. The Free Software Foundation may publish new, revised versions of
  48678. the GNU Free Documentation License from time to time. Such new
  48679. versions will be similar in spirit to the present version, but may
  48680. differ in detail to address new problems or concerns. See
  48681. <http://www.gnu.org/copyleft/>.
  48682. Each version of the License is given a distinguishing version
  48683. number. If the Document specifies that a particular numbered
  48684. version of this License "or any later version" applies to it, you
  48685. have the option of following the terms and conditions either of
  48686. that specified version or of any later version that has been
  48687. published (not as a draft) by the Free Software Foundation. If the
  48688. Document does not specify a version number of this License, you may
  48689. choose any version ever published (not as a draft) by the Free
  48690. Software Foundation. If the Document specifies that a proxy can
  48691. decide which future versions of this License can be used, that
  48692. proxy's public statement of acceptance of a version permanently
  48693. authorizes you to choose that version for the Document.
  48694. 11. RELICENSING
  48695. "Massive Multiauthor Collaboration Site" (or "MMC Site") means any
  48696. World Wide Web server that publishes copyrightable works and also
  48697. provides prominent facilities for anybody to edit those works. A
  48698. public wiki that anybody can edit is an example of such a server.
  48699. A "Massive Multiauthor Collaboration" (or "MMC") contained in the
  48700. site means any set of copyrightable works thus published on the MMC
  48701. site.
  48702. "CC-BY-SA" means the Creative Commons Attribution-Share Alike 3.0
  48703. license published by Creative Commons Corporation, a not-for-profit
  48704. corporation with a principal place of business in San Francisco,
  48705. California, as well as future copyleft versions of that license
  48706. published by that same organization.
  48707. "Incorporate" means to publish or republish a Document, in whole or
  48708. in part, as part of another Document.
  48709. An MMC is "eligible for relicensing" if it is licensed under this
  48710. License, and if all works that were first published under this
  48711. License somewhere other than this MMC, and subsequently
  48712. incorporated in whole or in part into the MMC, (1) had no cover
  48713. texts or invariant sections, and (2) were thus incorporated prior
  48714. to November 1, 2008.
  48715. The operator of an MMC Site may republish an MMC contained in the
  48716. site under CC-BY-SA on the same site at any time before August 1,
  48717. 2009, provided the MMC is eligible for relicensing.
  48718. ADDENDUM: How to use this License for your documents
  48719. ====================================================
  48720. To use this License in a document you have written, include a copy of
  48721. the License in the document and put the following copyright and license
  48722. notices just after the title page:
  48723. Copyright (C) YEAR YOUR NAME.
  48724. Permission is granted to copy, distribute and/or modify this document
  48725. under the terms of the GNU Free Documentation License, Version 1.3
  48726. or any later version published by the Free Software Foundation;
  48727. with no Invariant Sections, no Front-Cover Texts, and no Back-Cover
  48728. Texts. A copy of the license is included in the section entitled ``GNU
  48729. Free Documentation License''.
  48730. If you have Invariant Sections, Front-Cover Texts and Back-Cover Texts,
  48731. replace the "with...Texts." line with this:
  48732. with the Invariant Sections being LIST THEIR TITLES, with
  48733. the Front-Cover Texts being LIST, and with the Back-Cover Texts
  48734. being LIST.
  48735. If you have Invariant Sections without Cover Texts, or some other
  48736. combination of the three, merge those two alternatives to suit the
  48737. situation.
  48738. If your document contains nontrivial examples of program code, we
  48739. recommend releasing these examples in parallel under your choice of free
  48740. software license, such as the GNU General Public License, to permit
  48741. their use in free software.
  48742. 
  48743. File: gcc.info, Node: Contributors, Next: Option Index, Prev: GNU Free Documentation License, Up: Top
  48744. Contributors to GCC
  48745. *******************
  48746. The GCC project would like to thank its many contributors. Without them
  48747. the project would not have been nearly as successful as it has been.
  48748. Any omissions in this list are accidental. Feel free to contact
  48749. <law@redhat.com> or <gerald@pfeifer.com> if you have been left out or
  48750. some of your contributions are not listed. Please keep this list in
  48751. alphabetical order.
  48752. * Analog Devices helped implement the support for complex data types
  48753. and iterators.
  48754. * John David Anglin for threading-related fixes and improvements to
  48755. libstdc++-v3, and the HP-UX port.
  48756. * James van Artsdalen wrote the code that makes efficient use of the
  48757. Intel 80387 register stack.
  48758. * Abramo and Roberto Bagnara for the SysV68 Motorola 3300 Delta
  48759. Series port.
  48760. * Alasdair Baird for various bug fixes.
  48761. * Giovanni Bajo for analyzing lots of complicated C++ problem
  48762. reports.
  48763. * Peter Barada for his work to improve code generation for new
  48764. ColdFire cores.
  48765. * Gerald Baumgartner added the signature extension to the C++ front
  48766. end.
  48767. * Godmar Back for his Java improvements and encouragement.
  48768. * Scott Bambrough for help porting the Java compiler.
  48769. * Wolfgang Bangerth for processing tons of bug reports.
  48770. * Jon Beniston for his Microsoft Windows port of Java and port to
  48771. Lattice Mico32.
  48772. * Daniel Berlin for better DWARF 2 support, faster/better
  48773. optimizations, improved alias analysis, plus migrating GCC to
  48774. Bugzilla.
  48775. * Geoff Berry for his Java object serialization work and various
  48776. patches.
  48777. * David Binderman tests weekly snapshots of GCC trunk against Fedora
  48778. Rawhide for several architectures.
  48779. * Laurynas Biveinis for memory management work and DJGPP port fixes.
  48780. * Uros Bizjak for the implementation of x87 math built-in functions
  48781. and for various middle end and i386 back end improvements and bug
  48782. fixes.
  48783. * Eric Blake for helping to make GCJ and libgcj conform to the
  48784. specifications.
  48785. * Janne Blomqvist for contributions to GNU Fortran.
  48786. * Hans-J. Boehm for his garbage collector, IA-64 libffi port, and
  48787. other Java work.
  48788. * Segher Boessenkool for helping maintain the PowerPC port and the
  48789. instruction combiner plus various contributions to the middle end.
  48790. * Neil Booth for work on cpplib, lang hooks, debug hooks and other
  48791. miscellaneous clean-ups.
  48792. * Steven Bosscher for integrating the GNU Fortran front end into GCC
  48793. and for contributing to the tree-ssa branch.
  48794. * Eric Botcazou for fixing middle- and backend bugs left and right.
  48795. * Per Bothner for his direction via the steering committee and
  48796. various improvements to the infrastructure for supporting new
  48797. languages. Chill front end implementation. Initial
  48798. implementations of cpplib, fix-header, config.guess, libio, and
  48799. past C++ library (libg++) maintainer. Dreaming up, designing and
  48800. implementing much of GCJ.
  48801. * Devon Bowen helped port GCC to the Tahoe.
  48802. * Don Bowman for mips-vxworks contributions.
  48803. * James Bowman for the FT32 port.
  48804. * Dave Brolley for work on cpplib and Chill.
  48805. * Paul Brook for work on the ARM architecture and maintaining GNU
  48806. Fortran.
  48807. * Robert Brown implemented the support for Encore 32000 systems.
  48808. * Christian Bruel for improvements to local store elimination.
  48809. * Herman A.J. ten Brugge for various fixes.
  48810. * Joerg Brunsmann for Java compiler hacking and help with the GCJ
  48811. FAQ.
  48812. * Joe Buck for his direction via the steering committee from its
  48813. creation to 2013.
  48814. * Iain Buclaw for the D frontend.
  48815. * Craig Burley for leadership of the G77 Fortran effort.
  48816. * Tobias Burnus for contributions to GNU Fortran.
  48817. * Stephan Buys for contributing Doxygen notes for libstdc++.
  48818. * Paolo Carlini for libstdc++ work: lots of efficiency improvements
  48819. to the C++ strings, streambufs and formatted I/O, hard detective
  48820. work on the frustrating localization issues, and keeping up with
  48821. the problem reports.
  48822. * John Carr for his alias work, SPARC hacking, infrastructure
  48823. improvements, previous contributions to the steering committee,
  48824. loop optimizations, etc.
  48825. * Stephane Carrez for 68HC11 and 68HC12 ports.
  48826. * Steve Chamberlain for support for the Renesas SH and H8 processors
  48827. and the PicoJava processor, and for GCJ config fixes.
  48828. * Glenn Chambers for help with the GCJ FAQ.
  48829. * John-Marc Chandonia for various libgcj patches.
  48830. * Denis Chertykov for contributing and maintaining the AVR port, the
  48831. first GCC port for an 8-bit architecture.
  48832. * Kito Cheng for his work on the RISC-V port, including bringing up
  48833. the test suite and maintenance.
  48834. * Scott Christley for his Objective-C contributions.
  48835. * Eric Christopher for his Java porting help and clean-ups.
  48836. * Branko Cibej for more warning contributions.
  48837. * The GNU Classpath project for all of their merged runtime code.
  48838. * Nick Clifton for arm, mcore, fr30, v850, m32r, msp430 rx work,
  48839. '--help', and other random hacking.
  48840. * Michael Cook for libstdc++ cleanup patches to reduce warnings.
  48841. * R. Kelley Cook for making GCC buildable from a read-only directory
  48842. as well as other miscellaneous build process and documentation
  48843. clean-ups.
  48844. * Ralf Corsepius for SH testing and minor bug fixing.
  48845. * François-Xavier Coudert for contributions to GNU Fortran.
  48846. * Stan Cox for care and feeding of the x86 port and lots of behind
  48847. the scenes hacking.
  48848. * Alex Crain provided changes for the 3b1.
  48849. * Ian Dall for major improvements to the NS32k port.
  48850. * Paul Dale for his work to add uClinux platform support to the m68k
  48851. backend.
  48852. * Palmer Dabbelt for his work maintaining the RISC-V port.
  48853. * Dario Dariol contributed the four varieties of sample programs that
  48854. print a copy of their source.
  48855. * Russell Davidson for fstream and stringstream fixes in libstdc++.
  48856. * Bud Davis for work on the G77 and GNU Fortran compilers.
  48857. * Mo DeJong for GCJ and libgcj bug fixes.
  48858. * Jerry DeLisle for contributions to GNU Fortran.
  48859. * DJ Delorie for the DJGPP port, build and libiberty maintenance,
  48860. various bug fixes, and the M32C, MeP, MSP430, and RL78 ports.
  48861. * Arnaud Desitter for helping to debug GNU Fortran.
  48862. * Gabriel Dos Reis for contributions to G++, contributions and
  48863. maintenance of GCC diagnostics infrastructure, libstdc++-v3,
  48864. including 'valarray<>', 'complex<>', maintaining the numerics
  48865. library (including that pesky '<limits>' :-) and keeping up-to-date
  48866. anything to do with numbers.
  48867. * Ulrich Drepper for his work on glibc, testing of GCC using glibc,
  48868. ISO C99 support, CFG dumping support, etc., plus support of the C++
  48869. runtime libraries including for all kinds of C interface issues,
  48870. contributing and maintaining 'complex<>', sanity checking and
  48871. disbursement, configuration architecture, libio maintenance, and
  48872. early math work.
  48873. * François Dumont for his work on libstdc++-v3, especially
  48874. maintaining and improving 'debug-mode' and associative and
  48875. unordered containers.
  48876. * Zdenek Dvorak for a new loop unroller and various fixes.
  48877. * Michael Eager for his work on the Xilinx MicroBlaze port.
  48878. * Richard Earnshaw for his ongoing work with the ARM.
  48879. * David Edelsohn for his direction via the steering committee,
  48880. ongoing work with the RS6000/PowerPC port, help cleaning up Haifa
  48881. loop changes, doing the entire AIX port of libstdc++ with his bare
  48882. hands, and for ensuring GCC properly keeps working on AIX.
  48883. * Kevin Ediger for the floating point formatting of num_put::do_put
  48884. in libstdc++.
  48885. * Phil Edwards for libstdc++ work including configuration hackery,
  48886. documentation maintainer, chief breaker of the web pages, the
  48887. occasional iostream bug fix, and work on shared library symbol
  48888. versioning.
  48889. * Paul Eggert for random hacking all over GCC.
  48890. * Mark Elbrecht for various DJGPP improvements, and for libstdc++
  48891. configuration support for locales and fstream-related fixes.
  48892. * Vadim Egorov for libstdc++ fixes in strings, streambufs, and
  48893. iostreams.
  48894. * Christian Ehrhardt for dealing with bug reports.
  48895. * Ben Elliston for his work to move the Objective-C runtime into its
  48896. own subdirectory and for his work on autoconf.
  48897. * Revital Eres for work on the PowerPC 750CL port.
  48898. * Marc Espie for OpenBSD support.
  48899. * Doug Evans for much of the global optimization framework, arc,
  48900. m32r, and SPARC work.
  48901. * Christopher Faylor for his work on the Cygwin port and for caring
  48902. and feeding the gcc.gnu.org box and saving its users tons of spam.
  48903. * Fred Fish for BeOS support and Ada fixes.
  48904. * Ivan Fontes Garcia for the Portuguese translation of the GCJ FAQ.
  48905. * Peter Gerwinski for various bug fixes and the Pascal front end.
  48906. * Kaveh R. Ghazi for his direction via the steering committee,
  48907. amazing work to make '-W -Wall -W* -Werror' useful, and testing GCC
  48908. on a plethora of platforms. Kaveh extends his gratitude to the
  48909. CAIP Center at Rutgers University for providing him with computing
  48910. resources to work on Free Software from the late 1980s to 2010.
  48911. * John Gilmore for a donation to the FSF earmarked improving GNU
  48912. Java.
  48913. * Judy Goldberg for c++ contributions.
  48914. * Torbjorn Granlund for various fixes and the c-torture testsuite,
  48915. multiply- and divide-by-constant optimization, improved long long
  48916. support, improved leaf function register allocation, and his
  48917. direction via the steering committee.
  48918. * Jonny Grant for improvements to 'collect2's' '--help'
  48919. documentation.
  48920. * Anthony Green for his '-Os' contributions, the moxie port, and Java
  48921. front end work.
  48922. * Stu Grossman for gdb hacking, allowing GCJ developers to debug Java
  48923. code.
  48924. * Michael K. Gschwind contributed the port to the PDP-11.
  48925. * Richard Biener for his ongoing middle-end contributions and bug
  48926. fixes and for release management.
  48927. * Ron Guilmette implemented the 'protoize' and 'unprotoize' tools,
  48928. the support for DWARF 1 symbolic debugging information, and much of
  48929. the support for System V Release 4. He has also worked heavily on
  48930. the Intel 386 and 860 support.
  48931. * Sumanth Gundapaneni for contributing the CR16 port.
  48932. * Mostafa Hagog for Swing Modulo Scheduling (SMS) and post reload
  48933. GCSE.
  48934. * Bruno Haible for improvements in the runtime overhead for EH, new
  48935. warnings and assorted bug fixes.
  48936. * Andrew Haley for his amazing Java compiler and library efforts.
  48937. * Chris Hanson assisted in making GCC work on HP-UX for the 9000
  48938. series 300.
  48939. * Michael Hayes for various thankless work he's done trying to get
  48940. the c30/c40 ports functional. Lots of loop and unroll improvements
  48941. and fixes.
  48942. * Dara Hazeghi for wading through myriads of target-specific bug
  48943. reports.
  48944. * Kate Hedstrom for staking the G77 folks with an initial testsuite.
  48945. * Richard Henderson for his ongoing SPARC, alpha, ia32, and ia64
  48946. work, loop opts, and generally fixing lots of old problems we've
  48947. ignored for years, flow rewrite and lots of further stuff,
  48948. including reviewing tons of patches.
  48949. * Aldy Hernandez for working on the PowerPC port, SIMD support, and
  48950. various fixes.
  48951. * Nobuyuki Hikichi of Software Research Associates, Tokyo,
  48952. contributed the support for the Sony NEWS machine.
  48953. * Kazu Hirata for caring and feeding the Renesas H8/300 port and
  48954. various fixes.
  48955. * Katherine Holcomb for work on GNU Fortran.
  48956. * Manfred Hollstein for his ongoing work to keep the m88k alive, lots
  48957. of testing and bug fixing, particularly of GCC configury code.
  48958. * Steve Holmgren for MachTen patches.
  48959. * Mat Hostetter for work on the TILE-Gx and TILEPro ports.
  48960. * Jan Hubicka for his x86 port improvements.
  48961. * Falk Hueffner for working on C and optimization bug reports.
  48962. * Bernardo Innocenti for his m68k work, including merging of ColdFire
  48963. improvements and uClinux support.
  48964. * Christian Iseli for various bug fixes.
  48965. * Kamil Iskra for general m68k hacking.
  48966. * Lee Iverson for random fixes and MIPS testing.
  48967. * Balaji V. Iyer for Cilk+ development and merging.
  48968. * Andreas Jaeger for testing and benchmarking of GCC and various bug
  48969. fixes.
  48970. * Martin Jambor for his work on inter-procedural optimizations, the
  48971. switch conversion pass, and scalar replacement of aggregates.
  48972. * Jakub Jelinek for his SPARC work and sibling call optimizations as
  48973. well as lots of bug fixes and test cases, and for improving the
  48974. Java build system.
  48975. * Janis Johnson for ia64 testing and fixes, her quality improvement
  48976. sidetracks, and web page maintenance.
  48977. * Kean Johnston for SCO OpenServer support and various fixes.
  48978. * Tim Josling for the sample language treelang based originally on
  48979. Richard Kenner's "toy" language.
  48980. * Nicolai Josuttis for additional libstdc++ documentation.
  48981. * Klaus Kaempf for his ongoing work to make alpha-vms a viable
  48982. target.
  48983. * Steven G. Kargl for work on GNU Fortran.
  48984. * David Kashtan of SRI adapted GCC to VMS.
  48985. * Ryszard Kabatek for many, many libstdc++ bug fixes and
  48986. optimizations of strings, especially member functions, and for
  48987. auto_ptr fixes.
  48988. * Geoffrey Keating for his ongoing work to make the PPC work for
  48989. GNU/Linux and his automatic regression tester.
  48990. * Brendan Kehoe for his ongoing work with G++ and for a lot of early
  48991. work in just about every part of libstdc++.
  48992. * Oliver M. Kellogg of Deutsche Aerospace contributed the port to the
  48993. MIL-STD-1750A.
  48994. * Richard Kenner of the New York University Ultracomputer Research
  48995. Laboratory wrote the machine descriptions for the AMD 29000, the
  48996. DEC Alpha, the IBM RT PC, and the IBM RS/6000 as well as the
  48997. support for instruction attributes. He also made changes to better
  48998. support RISC processors including changes to common subexpression
  48999. elimination, strength reduction, function calling sequence
  49000. handling, and condition code support, in addition to generalizing
  49001. the code for frame pointer elimination and delay slot scheduling.
  49002. Richard Kenner was also the head maintainer of GCC for several
  49003. years.
  49004. * Mumit Khan for various contributions to the Cygwin and Mingw32
  49005. ports and maintaining binary releases for Microsoft Windows hosts,
  49006. and for massive libstdc++ porting work to Cygwin/Mingw32.
  49007. * Robin Kirkham for cpu32 support.
  49008. * Mark Klein for PA improvements.
  49009. * Thomas Koenig for various bug fixes.
  49010. * Bruce Korb for the new and improved fixincludes code.
  49011. * Benjamin Kosnik for his G++ work and for leading the libstdc++-v3
  49012. effort.
  49013. * Maxim Kuvyrkov for contributions to the instruction scheduler, the
  49014. Android and m68k/Coldfire ports, and optimizations.
  49015. * Charles LaBrec contributed the support for the Integrated Solutions
  49016. 68020 system.
  49017. * Asher Langton and Mike Kumbera for contributing Cray pointer
  49018. support to GNU Fortran, and for other GNU Fortran improvements.
  49019. * Jeff Law for his direction via the steering committee, coordinating
  49020. the entire egcs project and GCC 2.95, rolling out snapshots and
  49021. releases, handling merges from GCC2, reviewing tons of patches that
  49022. might have fallen through the cracks else, and random but extensive
  49023. hacking.
  49024. * Walter Lee for work on the TILE-Gx and TILEPro ports.
  49025. * Marc Lehmann for his direction via the steering committee and
  49026. helping with analysis and improvements of x86 performance.
  49027. * Victor Leikehman for work on GNU Fortran.
  49028. * Ted Lemon wrote parts of the RTL reader and printer.
  49029. * Kriang Lerdsuwanakij for C++ improvements including template as
  49030. template parameter support, and many C++ fixes.
  49031. * Warren Levy for tremendous work on libgcj (Java Runtime Library)
  49032. and random work on the Java front end.
  49033. * Alain Lichnewsky ported GCC to the MIPS CPU.
  49034. * Oskar Liljeblad for hacking on AWT and his many Java bug reports
  49035. and patches.
  49036. * Robert Lipe for OpenServer support, new testsuites, testing, etc.
  49037. * Chen Liqin for various S+core related fixes/improvement, and for
  49038. maintaining the S+core port.
  49039. * Martin Liska for his work on identical code folding, the
  49040. sanitizers, HSA, general bug fixing and for running automated
  49041. regression testing of GCC and reporting numerous bugs.
  49042. * Weiwen Liu for testing and various bug fixes.
  49043. * Manuel López-Ibáñez for improving '-Wconversion' and many other
  49044. diagnostics fixes and improvements.
  49045. * Dave Love for his ongoing work with the Fortran front end and
  49046. runtime libraries.
  49047. * Martin von Löwis for internal consistency checking infrastructure,
  49048. various C++ improvements including namespace support, and tons of
  49049. assistance with libstdc++/compiler merges.
  49050. * H.J. Lu for his previous contributions to the steering committee,
  49051. many x86 bug reports, prototype patches, and keeping the GNU/Linux
  49052. ports working.
  49053. * Greg McGary for random fixes and (someday) bounded pointers.
  49054. * Andrew MacLeod for his ongoing work in building a real EH system,
  49055. various code generation improvements, work on the global optimizer,
  49056. etc.
  49057. * Vladimir Makarov for hacking some ugly i960 problems, PowerPC
  49058. hacking improvements to compile-time performance, overall knowledge
  49059. and direction in the area of instruction scheduling, design and
  49060. implementation of the automaton based instruction scheduler and
  49061. design and implementation of the integrated and local register
  49062. allocators.
  49063. * David Malcolm for his work on improving GCC diagnostics, JIT,
  49064. self-tests and unit testing.
  49065. * Bob Manson for his behind the scenes work on dejagnu.
  49066. * John Marino for contributing the DragonFly BSD port.
  49067. * Philip Martin for lots of libstdc++ string and vector iterator
  49068. fixes and improvements, and string clean up and testsuites.
  49069. * Michael Matz for his work on dominance tree discovery, the x86-64
  49070. port, link-time optimization framework and general optimization
  49071. improvements.
  49072. * All of the Mauve project contributors for Java test code.
  49073. * Bryce McKinlay for numerous GCJ and libgcj fixes and improvements.
  49074. * Adam Megacz for his work on the Microsoft Windows port of GCJ.
  49075. * Michael Meissner for LRS framework, ia32, m32r, v850, m88k, MIPS,
  49076. powerpc, haifa, ECOFF debug support, and other assorted hacking.
  49077. * Jason Merrill for his direction via the steering committee and
  49078. leading the G++ effort.
  49079. * Martin Michlmayr for testing GCC on several architectures using the
  49080. entire Debian archive.
  49081. * David Miller for his direction via the steering committee, lots of
  49082. SPARC work, improvements in jump.c and interfacing with the Linux
  49083. kernel developers.
  49084. * Gary Miller ported GCC to Charles River Data Systems machines.
  49085. * Alfred Minarik for libstdc++ string and ios bug fixes, and turning
  49086. the entire libstdc++ testsuite namespace-compatible.
  49087. * Mark Mitchell for his direction via the steering committee,
  49088. mountains of C++ work, load/store hoisting out of loops, alias
  49089. analysis improvements, ISO C 'restrict' support, and serving as
  49090. release manager from 2000 to 2011.
  49091. * Alan Modra for various GNU/Linux bits and testing.
  49092. * Toon Moene for his direction via the steering committee, Fortran
  49093. maintenance, and his ongoing work to make us make Fortran run fast.
  49094. * Jason Molenda for major help in the care and feeding of all the
  49095. services on the gcc.gnu.org (formerly egcs.cygnus.com)
  49096. machine--mail, web services, ftp services, etc etc. Doing all this
  49097. work on scrap paper and the backs of envelopes would have been...
  49098. difficult.
  49099. * Catherine Moore for fixing various ugly problems we have sent her
  49100. way, including the haifa bug which was killing the Alpha & PowerPC
  49101. Linux kernels.
  49102. * Mike Moreton for his various Java patches.
  49103. * David Mosberger-Tang for various Alpha improvements, and for the
  49104. initial IA-64 port.
  49105. * Stephen Moshier contributed the floating point emulator that
  49106. assists in cross-compilation and permits support for floating point
  49107. numbers wider than 64 bits and for ISO C99 support.
  49108. * Bill Moyer for his behind the scenes work on various issues.
  49109. * Philippe De Muyter for his work on the m68k port.
  49110. * Joseph S. Myers for his work on the PDP-11 port, format checking
  49111. and ISO C99 support, and continuous emphasis on (and contributions
  49112. to) documentation.
  49113. * Nathan Myers for his work on libstdc++-v3: architecture and
  49114. authorship through the first three snapshots, including
  49115. implementation of locale infrastructure, string, shadow C headers,
  49116. and the initial project documentation (DESIGN, CHECKLIST, and so
  49117. forth). Later, more work on MT-safe string and shadow headers.
  49118. * Felix Natter for documentation on porting libstdc++.
  49119. * Nathanael Nerode for cleaning up the configuration/build process.
  49120. * NeXT, Inc. donated the front end that supports the Objective-C
  49121. language.
  49122. * Hans-Peter Nilsson for the CRIS and MMIX ports, improvements to the
  49123. search engine setup, various documentation fixes and other small
  49124. fixes.
  49125. * Geoff Noer for his work on getting cygwin native builds working.
  49126. * Vegard Nossum for running automated regression testing of GCC and
  49127. reporting numerous bugs.
  49128. * Diego Novillo for his work on Tree SSA, OpenMP, SPEC performance
  49129. tracking web pages, GIMPLE tuples, and assorted fixes.
  49130. * David O'Brien for the FreeBSD/alpha, FreeBSD/AMD x86-64,
  49131. FreeBSD/ARM, FreeBSD/PowerPC, and FreeBSD/SPARC64 ports and related
  49132. infrastructure improvements.
  49133. * Alexandre Oliva for various build infrastructure improvements,
  49134. scripts and amazing testing work, including keeping libtool issues
  49135. sane and happy.
  49136. * Stefan Olsson for work on mt_alloc.
  49137. * Melissa O'Neill for various NeXT fixes.
  49138. * Rainer Orth for random MIPS work, including improvements to GCC's
  49139. o32 ABI support, improvements to dejagnu's MIPS support, Java
  49140. configuration clean-ups and porting work, and maintaining the IRIX,
  49141. Solaris 2, and Tru64 UNIX ports.
  49142. * Steven Pemberton for his contribution of 'enquire' which allowed
  49143. GCC to determine various properties of the floating point unit and
  49144. generate 'float.h' in older versions of GCC.
  49145. * Hartmut Penner for work on the s390 port.
  49146. * Paul Petersen wrote the machine description for the Alliant FX/8.
  49147. * Alexandre Petit-Bianco for implementing much of the Java compiler
  49148. and continued Java maintainership.
  49149. * Matthias Pfaller for major improvements to the NS32k port.
  49150. * Gerald Pfeifer for his direction via the steering committee,
  49151. pointing out lots of problems we need to solve, maintenance of the
  49152. web pages, and taking care of documentation maintenance in general.
  49153. * Marek Polacek for his work on the C front end, the sanitizers and
  49154. general bug fixing.
  49155. * Andrew Pinski for processing bug reports by the dozen.
  49156. * Ovidiu Predescu for his work on the Objective-C front end and
  49157. runtime libraries.
  49158. * Jerry Quinn for major performance improvements in C++ formatted
  49159. I/O.
  49160. * Ken Raeburn for various improvements to checker, MIPS ports and
  49161. various cleanups in the compiler.
  49162. * Rolf W. Rasmussen for hacking on AWT.
  49163. * David Reese of Sun Microsystems contributed to the Solaris on
  49164. PowerPC port.
  49165. * John Regehr for running automated regression testing of GCC and
  49166. reporting numerous bugs.
  49167. * Volker Reichelt for running automated regression testing of GCC and
  49168. reporting numerous bugs and for keeping up with the problem
  49169. reports.
  49170. * Joern Rennecke for maintaining the sh port, loop, regmove & reload
  49171. hacking and developing and maintaining the Epiphany port.
  49172. * Loren J. Rittle for improvements to libstdc++-v3 including the
  49173. FreeBSD port, threading fixes, thread-related configury changes,
  49174. critical threading documentation, and solutions to really tricky
  49175. I/O problems, as well as keeping GCC properly working on FreeBSD
  49176. and continuous testing.
  49177. * Craig Rodrigues for processing tons of bug reports.
  49178. * Ola Rönnerup for work on mt_alloc.
  49179. * Gavin Romig-Koch for lots of behind the scenes MIPS work.
  49180. * David Ronis inspired and encouraged Craig to rewrite the G77
  49181. documentation in texinfo format by contributing a first pass at a
  49182. translation of the old 'g77-0.5.16/f/DOC' file.
  49183. * Ken Rose for fixes to GCC's delay slot filling code.
  49184. * Ira Rosen for her contributions to the auto-vectorizer.
  49185. * Paul Rubin wrote most of the preprocessor.
  49186. * Pétur Runólfsson for major performance improvements in C++
  49187. formatted I/O and large file support in C++ filebuf.
  49188. * Chip Salzenberg for libstdc++ patches and improvements to locales,
  49189. traits, Makefiles, libio, libtool hackery, and "long long" support.
  49190. * Juha Sarlin for improvements to the H8 code generator.
  49191. * Greg Satz assisted in making GCC work on HP-UX for the 9000 series
  49192. 300.
  49193. * Roger Sayle for improvements to constant folding and GCC's RTL
  49194. optimizers as well as for fixing numerous bugs.
  49195. * Bradley Schatz for his work on the GCJ FAQ.
  49196. * Peter Schauer wrote the code to allow debugging to work on the
  49197. Alpha.
  49198. * William Schelter did most of the work on the Intel 80386 support.
  49199. * Tobias Schlüter for work on GNU Fortran.
  49200. * Bernd Schmidt for various code generation improvements and major
  49201. work in the reload pass, serving as release manager for GCC 2.95.3,
  49202. and work on the Blackfin and C6X ports.
  49203. * Peter Schmid for constant testing of libstdc++--especially
  49204. application testing, going above and beyond what was requested for
  49205. the release criteria--and libstdc++ header file tweaks.
  49206. * Jason Schroeder for jcf-dump patches.
  49207. * Andreas Schwab for his work on the m68k port.
  49208. * Lars Segerlund for work on GNU Fortran.
  49209. * Dodji Seketeli for numerous C++ bug fixes and debug info
  49210. improvements.
  49211. * Tim Shen for major work on '<regex>'.
  49212. * Joel Sherrill for his direction via the steering committee, RTEMS
  49213. contributions and RTEMS testing.
  49214. * Nathan Sidwell for many C++ fixes/improvements.
  49215. * Jeffrey Siegal for helping RMS with the original design of GCC,
  49216. some code which handles the parse tree and RTL data structures,
  49217. constant folding and help with the original VAX & m68k ports.
  49218. * Kenny Simpson for prompting libstdc++ fixes due to defect reports
  49219. from the LWG (thereby keeping GCC in line with updates from the
  49220. ISO).
  49221. * Franz Sirl for his ongoing work with making the PPC port stable for
  49222. GNU/Linux.
  49223. * Andrey Slepuhin for assorted AIX hacking.
  49224. * Trevor Smigiel for contributing the SPU port.
  49225. * Christopher Smith did the port for Convex machines.
  49226. * Danny Smith for his major efforts on the Mingw (and Cygwin) ports.
  49227. Retired from GCC maintainership August 2010, having mentored two
  49228. new maintainers into the role.
  49229. * Randy Smith finished the Sun FPA support.
  49230. * Ed Smith-Rowland for his continuous work on libstdc++-v3, special
  49231. functions, '<random>', and various improvements to C++11 features.
  49232. * Scott Snyder for queue, iterator, istream, and string fixes and
  49233. libstdc++ testsuite entries. Also for providing the patch to G77
  49234. to add rudimentary support for 'INTEGER*1', 'INTEGER*2', and
  49235. 'LOGICAL*1'.
  49236. * Zdenek Sojka for running automated regression testing of GCC and
  49237. reporting numerous bugs.
  49238. * Arseny Solokha for running automated regression testing of GCC and
  49239. reporting numerous bugs.
  49240. * Jayant Sonar for contributing the CR16 port.
  49241. * Brad Spencer for contributions to the GLIBCPP_FORCE_NEW technique.
  49242. * Richard Stallman, for writing the original GCC and launching the
  49243. GNU project.
  49244. * Jan Stein of the Chalmers Computer Society provided support for
  49245. Genix, as well as part of the 32000 machine description.
  49246. * Gerhard Steinmetz for running automated regression testing of GCC
  49247. and reporting numerous bugs.
  49248. * Nigel Stephens for various mips16 related fixes/improvements.
  49249. * Jonathan Stone wrote the machine description for the Pyramid
  49250. computer.
  49251. * Graham Stott for various infrastructure improvements.
  49252. * John Stracke for his Java HTTP protocol fixes.
  49253. * Mike Stump for his Elxsi port, G++ contributions over the years and
  49254. more recently his vxworks contributions
  49255. * Jeff Sturm for Java porting help, bug fixes, and encouragement.
  49256. * Zhendong Su for running automated regression testing of GCC and
  49257. reporting numerous bugs.
  49258. * Chengnian Sun for running automated regression testing of GCC and
  49259. reporting numerous bugs.
  49260. * Shigeya Suzuki for this fixes for the bsdi platforms.
  49261. * Ian Lance Taylor for the Go frontend, the initial mips16 and mips64
  49262. support, general configury hacking, fixincludes, etc.
  49263. * Holger Teutsch provided the support for the Clipper CPU.
  49264. * Gary Thomas for his ongoing work to make the PPC work for
  49265. GNU/Linux.
  49266. * Paul Thomas for contributions to GNU Fortran.
  49267. * Philipp Thomas for random bug fixes throughout the compiler
  49268. * Jason Thorpe for thread support in libstdc++ on NetBSD.
  49269. * Kresten Krab Thorup wrote the run time support for the Objective-C
  49270. language and the fantastic Java bytecode interpreter.
  49271. * Michael Tiemann for random bug fixes, the first instruction
  49272. scheduler, initial C++ support, function integration, NS32k, SPARC
  49273. and M88k machine description work, delay slot scheduling.
  49274. * Andreas Tobler for his work porting libgcj to Darwin.
  49275. * Teemu Torma for thread safe exception handling support.
  49276. * Leonard Tower wrote parts of the parser, RTL generator, and RTL
  49277. definitions, and of the VAX machine description.
  49278. * Daniel Towner and Hariharan Sandanagobalane contributed and
  49279. maintain the picoChip port.
  49280. * Tom Tromey for internationalization support and for his many Java
  49281. contributions and libgcj maintainership.
  49282. * Lassi Tuura for improvements to config.guess to determine HP
  49283. processor types.
  49284. * Petter Urkedal for libstdc++ CXXFLAGS, math, and algorithms fixes.
  49285. * Andy Vaught for the design and initial implementation of the GNU
  49286. Fortran front end.
  49287. * Brent Verner for work with the libstdc++ cshadow files and their
  49288. associated configure steps.
  49289. * Todd Vierling for contributions for NetBSD ports.
  49290. * Andrew Waterman for contributing the RISC-V port, as well as
  49291. maintaining it.
  49292. * Jonathan Wakely for contributing libstdc++ Doxygen notes and XHTML
  49293. guidance and maintaining libstdc++.
  49294. * Dean Wakerley for converting the install documentation from HTML to
  49295. texinfo in time for GCC 3.0.
  49296. * Krister Walfridsson for random bug fixes.
  49297. * Feng Wang for contributions to GNU Fortran.
  49298. * Stephen M. Webb for time and effort on making libstdc++ shadow
  49299. files work with the tricky Solaris 8+ headers, and for pushing the
  49300. build-time header tree. Also, for starting and driving the
  49301. '<regex>' effort.
  49302. * John Wehle for various improvements for the x86 code generator,
  49303. related infrastructure improvements to help x86 code generation,
  49304. value range propagation and other work, WE32k port.
  49305. * Ulrich Weigand for work on the s390 port.
  49306. * Janus Weil for contributions to GNU Fortran.
  49307. * Zack Weinberg for major work on cpplib and various other bug fixes.
  49308. * Matt Welsh for help with Linux Threads support in GCJ.
  49309. * Urban Widmark for help fixing java.io.
  49310. * Mark Wielaard for new Java library code and his work integrating
  49311. with Classpath.
  49312. * Dale Wiles helped port GCC to the Tahoe.
  49313. * Bob Wilson from Tensilica, Inc. for the Xtensa port.
  49314. * Jim Wilson for his direction via the steering committee, tackling
  49315. hard problems in various places that nobody else wanted to work on,
  49316. strength reduction and other loop optimizations.
  49317. * Paul Woegerer and Tal Agmon for the CRX port.
  49318. * Carlo Wood for various fixes.
  49319. * Tom Wood for work on the m88k port.
  49320. * Chung-Ju Wu for his work on the Andes NDS32 port.
  49321. * Canqun Yang for work on GNU Fortran.
  49322. * Masanobu Yuhara of Fujitsu Laboratories implemented the machine
  49323. description for the Tron architecture (specifically, the Gmicro).
  49324. * Kevin Zachmann helped port GCC to the Tahoe.
  49325. * Ayal Zaks for Swing Modulo Scheduling (SMS).
  49326. * Qirun Zhang for running automated regression testing of GCC and
  49327. reporting numerous bugs.
  49328. * Xiaoqiang Zhang for work on GNU Fortran.
  49329. * Gilles Zunino for help porting Java to Irix.
  49330. The following people are recognized for their contributions to GNAT,
  49331. the Ada front end of GCC:
  49332. * Bernard Banner
  49333. * Romain Berrendonner
  49334. * Geert Bosch
  49335. * Emmanuel Briot
  49336. * Joel Brobecker
  49337. * Ben Brosgol
  49338. * Vincent Celier
  49339. * Arnaud Charlet
  49340. * Chien Chieng
  49341. * Cyrille Comar
  49342. * Cyrille Crozes
  49343. * Robert Dewar
  49344. * Gary Dismukes
  49345. * Robert Duff
  49346. * Ed Falis
  49347. * Ramon Fernandez
  49348. * Sam Figueroa
  49349. * Vasiliy Fofanov
  49350. * Michael Friess
  49351. * Franco Gasperoni
  49352. * Ted Giering
  49353. * Matthew Gingell
  49354. * Laurent Guerby
  49355. * Jerome Guitton
  49356. * Olivier Hainque
  49357. * Jerome Hugues
  49358. * Hristian Kirtchev
  49359. * Jerome Lambourg
  49360. * Bruno Leclerc
  49361. * Albert Lee
  49362. * Sean McNeil
  49363. * Javier Miranda
  49364. * Laurent Nana
  49365. * Pascal Obry
  49366. * Dong-Ik Oh
  49367. * Laurent Pautet
  49368. * Brett Porter
  49369. * Thomas Quinot
  49370. * Nicolas Roche
  49371. * Pat Rogers
  49372. * Jose Ruiz
  49373. * Douglas Rupp
  49374. * Sergey Rybin
  49375. * Gail Schenker
  49376. * Ed Schonberg
  49377. * Nicolas Setton
  49378. * Samuel Tardieu
  49379. The following people are recognized for their contributions of new
  49380. features, bug reports, testing and integration of classpath/libgcj for
  49381. GCC version 4.1:
  49382. * Lillian Angel for 'JTree' implementation and lots Free Swing
  49383. additions and bug fixes.
  49384. * Wolfgang Baer for 'GapContent' bug fixes.
  49385. * Anthony Balkissoon for 'JList', Free Swing 1.5 updates and mouse
  49386. event fixes, lots of Free Swing work including 'JTable' editing.
  49387. * Stuart Ballard for RMI constant fixes.
  49388. * Goffredo Baroncelli for 'HTTPURLConnection' fixes.
  49389. * Gary Benson for 'MessageFormat' fixes.
  49390. * Daniel Bonniot for 'Serialization' fixes.
  49391. * Chris Burdess for lots of gnu.xml and http protocol fixes, 'StAX'
  49392. and 'DOM xml:id' support.
  49393. * Ka-Hing Cheung for 'TreePath' and 'TreeSelection' fixes.
  49394. * Archie Cobbs for build fixes, VM interface updates,
  49395. 'URLClassLoader' updates.
  49396. * Kelley Cook for build fixes.
  49397. * Martin Cordova for Suggestions for better 'SocketTimeoutException'.
  49398. * David Daney for 'BitSet' bug fixes, 'HttpURLConnection' rewrite and
  49399. improvements.
  49400. * Thomas Fitzsimmons for lots of upgrades to the gtk+ AWT and Cairo
  49401. 2D support. Lots of imageio framework additions, lots of AWT and
  49402. Free Swing bug fixes.
  49403. * Jeroen Frijters for 'ClassLoader' and nio cleanups, serialization
  49404. fixes, better 'Proxy' support, bug fixes and IKVM integration.
  49405. * Santiago Gala for 'AccessControlContext' fixes.
  49406. * Nicolas Geoffray for 'VMClassLoader' and 'AccessController'
  49407. improvements.
  49408. * David Gilbert for 'basic' and 'metal' icon and plaf support and
  49409. lots of documenting, Lots of Free Swing and metal theme additions.
  49410. 'MetalIconFactory' implementation.
  49411. * Anthony Green for 'MIDI' framework, 'ALSA' and 'DSSI' providers.
  49412. * Andrew Haley for 'Serialization' and 'URLClassLoader' fixes, gcj
  49413. build speedups.
  49414. * Kim Ho for 'JFileChooser' implementation.
  49415. * Andrew John Hughes for 'Locale' and net fixes, URI RFC2986 updates,
  49416. 'Serialization' fixes, 'Properties' XML support and generic branch
  49417. work, VMIntegration guide update.
  49418. * Bastiaan Huisman for 'TimeZone' bug fixing.
  49419. * Andreas Jaeger for mprec updates.
  49420. * Paul Jenner for better '-Werror' support.
  49421. * Ito Kazumitsu for 'NetworkInterface' implementation and updates.
  49422. * Roman Kennke for 'BoxLayout', 'GrayFilter' and 'SplitPane', plus
  49423. bug fixes all over. Lots of Free Swing work including styled text.
  49424. * Simon Kitching for 'String' cleanups and optimization suggestions.
  49425. * Michael Koch for configuration fixes, 'Locale' updates, bug and
  49426. build fixes.
  49427. * Guilhem Lavaux for configuration, thread and channel fixes and
  49428. Kaffe integration. JCL native 'Pointer' updates. Logger bug
  49429. fixes.
  49430. * David Lichteblau for JCL support library global/local reference
  49431. cleanups.
  49432. * Aaron Luchko for JDWP updates and documentation fixes.
  49433. * Ziga Mahkovec for 'Graphics2D' upgraded to Cairo 0.5 and new regex
  49434. features.
  49435. * Sven de Marothy for BMP imageio support, CSS and 'TextLayout'
  49436. fixes. 'GtkImage' rewrite, 2D, awt, free swing and date/time fixes
  49437. and implementing the Qt4 peers.
  49438. * Casey Marshall for crypto algorithm fixes, 'FileChannel' lock,
  49439. 'SystemLogger' and 'FileHandler' rotate implementations, NIO
  49440. 'FileChannel.map' support, security and policy updates.
  49441. * Bryce McKinlay for RMI work.
  49442. * Audrius Meskauskas for lots of Free Corba, RMI and HTML work plus
  49443. testing and documenting.
  49444. * Kalle Olavi Niemitalo for build fixes.
  49445. * Rainer Orth for build fixes.
  49446. * Andrew Overholt for 'File' locking fixes.
  49447. * Ingo Proetel for 'Image', 'Logger' and 'URLClassLoader' updates.
  49448. * Olga Rodimina for 'MenuSelectionManager' implementation.
  49449. * Jan Roehrich for 'BasicTreeUI' and 'JTree' fixes.
  49450. * Julian Scheid for documentation updates and gjdoc support.
  49451. * Christian Schlichtherle for zip fixes and cleanups.
  49452. * Robert Schuster for documentation updates and beans fixes,
  49453. 'TreeNode' enumerations and 'ActionCommand' and various fixes, XML
  49454. and URL, AWT and Free Swing bug fixes.
  49455. * Keith Seitz for lots of JDWP work.
  49456. * Christian Thalinger for 64-bit cleanups, Configuration and VM
  49457. interface fixes and 'CACAO' integration, 'fdlibm' updates.
  49458. * Gael Thomas for 'VMClassLoader' boot packages support suggestions.
  49459. * Andreas Tobler for Darwin and Solaris testing and fixing, 'Qt4'
  49460. support for Darwin/OS X, 'Graphics2D' support, 'gtk+' updates.
  49461. * Dalibor Topic for better 'DEBUG' support, build cleanups and Kaffe
  49462. integration. 'Qt4' build infrastructure, 'SHA1PRNG' and
  49463. 'GdkPixbugDecoder' updates.
  49464. * Tom Tromey for Eclipse integration, generics work, lots of bug
  49465. fixes and gcj integration including coordinating The Big Merge.
  49466. * Mark Wielaard for bug fixes, packaging and release management,
  49467. 'Clipboard' implementation, system call interrupts and network
  49468. timeouts and 'GdkPixpufDecoder' fixes.
  49469. In addition to the above, all of which also contributed time and energy
  49470. in testing GCC, we would like to thank the following for their
  49471. contributions to testing:
  49472. * Michael Abd-El-Malek
  49473. * Thomas Arend
  49474. * Bonzo Armstrong
  49475. * Steven Ashe
  49476. * Chris Baldwin
  49477. * David Billinghurst
  49478. * Jim Blandy
  49479. * Stephane Bortzmeyer
  49480. * Horst von Brand
  49481. * Frank Braun
  49482. * Rodney Brown
  49483. * Sidney Cadot
  49484. * Bradford Castalia
  49485. * Robert Clark
  49486. * Jonathan Corbet
  49487. * Ralph Doncaster
  49488. * Richard Emberson
  49489. * Levente Farkas
  49490. * Graham Fawcett
  49491. * Mark Fernyhough
  49492. * Robert A. French
  49493. * Jörgen Freyh
  49494. * Mark K. Gardner
  49495. * Charles-Antoine Gauthier
  49496. * Yung Shing Gene
  49497. * David Gilbert
  49498. * Simon Gornall
  49499. * Fred Gray
  49500. * John Griffin
  49501. * Patrik Hagglund
  49502. * Phil Hargett
  49503. * Amancio Hasty
  49504. * Takafumi Hayashi
  49505. * Bryan W. Headley
  49506. * Kevin B. Hendricks
  49507. * Joep Jansen
  49508. * Christian Joensson
  49509. * Michel Kern
  49510. * David Kidd
  49511. * Tobias Kuipers
  49512. * Anand Krishnaswamy
  49513. * A. O. V. Le Blanc
  49514. * llewelly
  49515. * Damon Love
  49516. * Brad Lucier
  49517. * Matthias Klose
  49518. * Martin Knoblauch
  49519. * Rick Lutowski
  49520. * Jesse Macnish
  49521. * Stefan Morrell
  49522. * Anon A. Mous
  49523. * Matthias Mueller
  49524. * Pekka Nikander
  49525. * Rick Niles
  49526. * Jon Olson
  49527. * Magnus Persson
  49528. * Chris Pollard
  49529. * Richard Polton
  49530. * Derk Reefman
  49531. * David Rees
  49532. * Paul Reilly
  49533. * Tom Reilly
  49534. * Torsten Rueger
  49535. * Danny Sadinoff
  49536. * Marc Schifer
  49537. * Erik Schnetter
  49538. * Wayne K. Schroll
  49539. * David Schuler
  49540. * Vin Shelton
  49541. * Tim Souder
  49542. * Adam Sulmicki
  49543. * Bill Thorson
  49544. * George Talbot
  49545. * Pedro A. M. Vazquez
  49546. * Gregory Warnes
  49547. * Ian Watson
  49548. * David E. Young
  49549. * And many others
  49550. And finally we'd like to thank everyone who uses the compiler, provides
  49551. feedback and generally reminds us why we're doing this work in the first
  49552. place.
  49553. 
  49554. File: gcc.info, Node: Option Index, Next: Keyword Index, Prev: Contributors, Up: Top
  49555. Option Index
  49556. ************
  49557. GCC's command line options are indexed here without any initial '-' or
  49558. '--'. Where an option has both positive and negative forms (such as
  49559. '-fOPTION' and '-fno-OPTION'), relevant entries in the manual are
  49560. indexed under the most appropriate form; it may sometimes be useful to
  49561. look up both forms.
  49562. �[index�]
  49563. * Menu:
  49564. * ###: Overall Options. (line 475)
  49565. * 80387: x86 Options. (line 578)
  49566. * A: Preprocessor Options.
  49567. (line 335)
  49568. * allowable_client: Darwin Options. (line 196)
  49569. * all_load: Darwin Options. (line 110)
  49570. * analyzer: Static Analyzer Options.
  49571. (line 7)
  49572. * ansi: Standards. (line 13)
  49573. * ansi <1>: C Dialect Options. (line 11)
  49574. * ansi <2>: Other Builtins. (line 31)
  49575. * ansi <3>: Non-bugs. (line 107)
  49576. * arch_errors_fatal: Darwin Options. (line 114)
  49577. * aux-info: C Dialect Options. (line 241)
  49578. * B: Directory Options. (line 122)
  49579. * Bdynamic: VxWorks Options. (line 22)
  49580. * bind_at_load: Darwin Options. (line 118)
  49581. * block-ops-unaligned-vsx: RS/6000 and PowerPC Options.
  49582. (line 949)
  49583. * Bstatic: VxWorks Options. (line 22)
  49584. * bundle: Darwin Options. (line 123)
  49585. * bundle_loader: Darwin Options. (line 127)
  49586. * c: Overall Options. (line 169)
  49587. * C: Preprocessor Options.
  49588. (line 344)
  49589. * c <1>: Link Options. (line 20)
  49590. * CC: Preprocessor Options.
  49591. (line 356)
  49592. * client_name: Darwin Options. (line 196)
  49593. * compatibility_version: Darwin Options. (line 196)
  49594. * coverage: Instrumentation Options.
  49595. (line 50)
  49596. * current_version: Darwin Options. (line 196)
  49597. * D: Preprocessor Options.
  49598. (line 19)
  49599. * d: Preprocessor Options.
  49600. (line 410)
  49601. * d <1>: Developer Options. (line 52)
  49602. * da: Developer Options. (line 246)
  49603. * dA: Developer Options. (line 249)
  49604. * dD: Preprocessor Options.
  49605. (line 434)
  49606. * dD <1>: Developer Options. (line 253)
  49607. * dead_strip: Darwin Options. (line 196)
  49608. * dependency-file: Darwin Options. (line 196)
  49609. * dH: Developer Options. (line 257)
  49610. * dI: Preprocessor Options.
  49611. (line 444)
  49612. * dM: Preprocessor Options.
  49613. (line 419)
  49614. * dN: Preprocessor Options.
  49615. (line 440)
  49616. * dp: Developer Options. (line 260)
  49617. * dP: Developer Options. (line 265)
  49618. * dU: Preprocessor Options.
  49619. (line 448)
  49620. * dump-analyzer-exploded-nodes: Static Analyzer Options.
  49621. (line 364)
  49622. * dump-analyzer-exploded-nodes-2: Static Analyzer Options.
  49623. (line 368)
  49624. * dump-analyzer-exploded-nodes-3: Static Analyzer Options.
  49625. (line 372)
  49626. * dump-analyzer-feasibility: Static Analyzer Options.
  49627. (line 377)
  49628. * dumpbase: Overall Options. (line 256)
  49629. * dumpbase-ext: Overall Options. (line 329)
  49630. * dumpdir: Overall Options. (line 357)
  49631. * dumpfullversion: Developer Options. (line 1014)
  49632. * dumpmachine: Developer Options. (line 1002)
  49633. * dumpspecs: Developer Options. (line 1019)
  49634. * dumpversion: Developer Options. (line 1006)
  49635. * dx: Developer Options. (line 269)
  49636. * dylib_file: Darwin Options. (line 196)
  49637. * dylinker_install_name: Darwin Options. (line 196)
  49638. * dynamic: Darwin Options. (line 196)
  49639. * dynamiclib: Darwin Options. (line 131)
  49640. * E: Overall Options. (line 190)
  49641. * E <1>: Link Options. (line 20)
  49642. * e: Link Options. (line 169)
  49643. * EB: ARC Options. (line 595)
  49644. * EB <1>: C-SKY Options. (line 29)
  49645. * EB <2>: MIPS Options. (line 7)
  49646. * EL: ARC Options. (line 602)
  49647. * EL <1>: C-SKY Options. (line 31)
  49648. * EL <2>: MIPS Options. (line 10)
  49649. * entry: Link Options. (line 169)
  49650. * exported_symbols_list: Darwin Options. (line 196)
  49651. * F: Darwin Options. (line 31)
  49652. * fabi-compat-version: C++ Dialect Options.
  49653. (line 92)
  49654. * fabi-version: C++ Dialect Options.
  49655. (line 24)
  49656. * faccess-control: C++ Dialect Options.
  49657. (line 108)
  49658. * fada-spec-parent: Overall Options. (line 658)
  49659. * faggressive-loop-optimizations: Optimize Options. (line 547)
  49660. * falign-functions: Optimize Options. (line 1683)
  49661. * falign-jumps: Optimize Options. (line 1765)
  49662. * falign-labels: Optimize Options. (line 1724)
  49663. * falign-loops: Optimize Options. (line 1744)
  49664. * faligned-new: C++ Dialect Options.
  49665. (line 112)
  49666. * fallow-parameterless-variadic-functions: C Dialect Options.
  49667. (line 257)
  49668. * fallow-store-data-races: Optimize Options. (line 1785)
  49669. * fanalyzer: Static Analyzer Options.
  49670. (line 7)
  49671. * fanalyzer-call-summaries: Static Analyzer Options.
  49672. (line 238)
  49673. * fanalyzer-checker: Static Analyzer Options.
  49674. (line 247)
  49675. * fanalyzer-feasibility: Static Analyzer Options.
  49676. (line 255)
  49677. * fanalyzer-fine-grained: Static Analyzer Options.
  49678. (line 265)
  49679. * fanalyzer-show-duplicate-count: Static Analyzer Options.
  49680. (line 275)
  49681. * fanalyzer-state-merge: Static Analyzer Options.
  49682. (line 282)
  49683. * fanalyzer-state-purge: Static Analyzer Options.
  49684. (line 290)
  49685. * fanalyzer-transitivity: Static Analyzer Options.
  49686. (line 301)
  49687. * fasan-shadow-offset: Instrumentation Options.
  49688. (line 513)
  49689. * fasm: C Dialect Options. (line 264)
  49690. * fassociative-math: Optimize Options. (line 2322)
  49691. * fasynchronous-unwind-tables: Code Gen Options. (line 156)
  49692. * fauto-inc-dec: Optimize Options. (line 569)
  49693. * fauto-profile: Optimize Options. (line 2197)
  49694. * fbit-tests: Code Gen Options. (line 422)
  49695. * fbranch-count-reg: Optimize Options. (line 421)
  49696. * fbranch-probabilities: Optimize Options. (line 2468)
  49697. * fbuiltin: C Dialect Options. (line 278)
  49698. * fcall-saved: Code Gen Options. (line 452)
  49699. * fcall-used: Code Gen Options. (line 438)
  49700. * fcaller-saves: Optimize Options. (line 927)
  49701. * fcallgraph-info: Developer Options. (line 34)
  49702. * fcf-protection: Instrumentation Options.
  49703. (line 586)
  49704. * fchar8_t: C++ Dialect Options.
  49705. (line 122)
  49706. * fcheck-new: C++ Dialect Options.
  49707. (line 165)
  49708. * fchecking: Developer Options. (line 716)
  49709. * fcode-hoisting: Optimize Options. (line 968)
  49710. * fcombine-stack-adjustments: Optimize Options. (line 939)
  49711. * fcommon: Code Gen Options. (line 231)
  49712. * fcommon <1>: Common Variable Attributes.
  49713. (line 176)
  49714. * fcompare-debug: Developer Options. (line 788)
  49715. * fcompare-debug-second: Developer Options. (line 814)
  49716. * fcompare-elim: Optimize Options. (line 2127)
  49717. * fconcepts: C++ Dialect Options.
  49718. (line 176)
  49719. * fconcepts-ts: C++ Dialect Options.
  49720. (line 176)
  49721. * fcond-mismatch: C Dialect Options. (line 406)
  49722. * fconserve-stack: Optimize Options. (line 958)
  49723. * fconstant-string-class: Objective-C and Objective-C++ Dialect Options.
  49724. (line 30)
  49725. * fconstexpr-cache-depth: C++ Dialect Options.
  49726. (line 192)
  49727. * fconstexpr-depth: C++ Dialect Options.
  49728. (line 186)
  49729. * fconstexpr-loop-limit: C++ Dialect Options.
  49730. (line 202)
  49731. * fconstexpr-ops-limit: C++ Dialect Options.
  49732. (line 207)
  49733. * fcoroutines: C++ Dialect Options.
  49734. (line 216)
  49735. * fcprop-registers: Optimize Options. (line 2139)
  49736. * fcrossjumping: Optimize Options. (line 562)
  49737. * fcse-follow-jumps: Optimize Options. (line 481)
  49738. * fcse-skip-blocks: Optimize Options. (line 490)
  49739. * fcx-fortran-rules: Optimize Options. (line 2455)
  49740. * fcx-limited-range: Optimize Options. (line 2443)
  49741. * fdata-sections: Optimize Options. (line 2606)
  49742. * fdbg-cnt: Developer Options. (line 924)
  49743. * fdbg-cnt-list: Developer Options. (line 921)
  49744. * fdce: Optimize Options. (line 575)
  49745. * fdebug-cpp: Preprocessor Options.
  49746. (line 455)
  49747. * fdebug-prefix-map: Debugging Options. (line 142)
  49748. * fdebug-types-section: Debugging Options. (line 204)
  49749. * fdeclone-ctor-dtor: Optimize Options. (line 598)
  49750. * fdefer-pop: Optimize Options. (line 222)
  49751. * fdelayed-branch: Optimize Options. (line 751)
  49752. * fdelete-dead-exceptions: Code Gen Options. (line 141)
  49753. * fdelete-null-pointer-checks: Optimize Options. (line 609)
  49754. * fdevirtualize: Optimize Options. (line 630)
  49755. * fdevirtualize-at-ltrans: Optimize Options. (line 647)
  49756. * fdevirtualize-speculatively: Optimize Options. (line 637)
  49757. * fdiagnostics-color: Diagnostic Message Formatting Options.
  49758. (line 55)
  49759. * fdiagnostics-column-origin: Diagnostic Message Formatting Options.
  49760. (line 432)
  49761. * fdiagnostics-column-unit: Diagnostic Message Formatting Options.
  49762. (line 413)
  49763. * fdiagnostics-format: Diagnostic Message Formatting Options.
  49764. (line 439)
  49765. * fdiagnostics-generate-patch: Diagnostic Message Formatting Options.
  49766. (line 255)
  49767. * fdiagnostics-minimum-margin-width: Diagnostic Message Formatting Options.
  49768. (line 224)
  49769. * fdiagnostics-parseable-fixits: Diagnostic Message Formatting Options.
  49770. (line 228)
  49771. * fdiagnostics-path-format: Diagnostic Message Formatting Options.
  49772. (line 305)
  49773. * fdiagnostics-show-caret: Diagnostic Message Formatting Options.
  49774. (line 188)
  49775. * fdiagnostics-show-cwe: Diagnostic Message Formatting Options.
  49776. (line 210)
  49777. * fdiagnostics-show-labels: Diagnostic Message Formatting Options.
  49778. (line 197)
  49779. * fdiagnostics-show-line-numbers: Diagnostic Message Formatting Options.
  49780. (line 219)
  49781. * fdiagnostics-show-location: Diagnostic Message Formatting Options.
  49782. (line 40)
  49783. * fdiagnostics-show-option: Diagnostic Message Formatting Options.
  49784. (line 182)
  49785. * fdiagnostics-show-path-depths: Diagnostic Message Formatting Options.
  49786. (line 396)
  49787. * fdiagnostics-show-template-tree: Diagnostic Message Formatting Options.
  49788. (line 273)
  49789. * fdiagnostics-urls: Diagnostic Message Formatting Options.
  49790. (line 144)
  49791. * fdirectives-only: Preprocessor Options.
  49792. (line 205)
  49793. * fdisable-: Developer Options. (line 647)
  49794. * fdollars-in-identifiers: Preprocessor Options.
  49795. (line 226)
  49796. * fdollars-in-identifiers <1>: Interoperation. (line 141)
  49797. * fdpic: SH Options. (line 388)
  49798. * fdse: Optimize Options. (line 579)
  49799. * fdump-ada-spec: Overall Options. (line 653)
  49800. * fdump-analyzer: Static Analyzer Options.
  49801. (line 346)
  49802. * fdump-analyzer-callgraph: Static Analyzer Options.
  49803. (line 355)
  49804. * fdump-analyzer-exploded-graph: Static Analyzer Options.
  49805. (line 359)
  49806. * fdump-analyzer-json: Static Analyzer Options.
  49807. (line 383)
  49808. * fdump-analyzer-state-purge: Static Analyzer Options.
  49809. (line 387)
  49810. * fdump-analyzer-stderr: Static Analyzer Options.
  49811. (line 351)
  49812. * fdump-analyzer-supergraph: Static Analyzer Options.
  49813. (line 393)
  49814. * fdump-debug: Developer Options. (line 273)
  49815. * fdump-earlydebug: Developer Options. (line 277)
  49816. * fdump-final-insns: Developer Options. (line 782)
  49817. * fdump-go-spec: Overall Options. (line 662)
  49818. * fdump-ipa: Developer Options. (line 303)
  49819. * fdump-lang: Developer Options. (line 332)
  49820. * fdump-lang <1>: Developer Options. (line 339)
  49821. * fdump-lang-all: Developer Options. (line 339)
  49822. * fdump-noaddr: Developer Options. (line 281)
  49823. * fdump-passes: Developer Options. (line 364)
  49824. * fdump-rtl-alignments: Developer Options. (line 65)
  49825. * fdump-rtl-all: Developer Options. (line 246)
  49826. * fdump-rtl-asmcons: Developer Options. (line 68)
  49827. * fdump-rtl-auto_inc_dec: Developer Options. (line 72)
  49828. * fdump-rtl-barriers: Developer Options. (line 76)
  49829. * fdump-rtl-bbpart: Developer Options. (line 79)
  49830. * fdump-rtl-bbro: Developer Options. (line 82)
  49831. * fdump-rtl-btl2: Developer Options. (line 86)
  49832. * fdump-rtl-btl2 <1>: Developer Options. (line 86)
  49833. * fdump-rtl-bypass: Developer Options. (line 90)
  49834. * fdump-rtl-ce1: Developer Options. (line 101)
  49835. * fdump-rtl-ce2: Developer Options. (line 101)
  49836. * fdump-rtl-ce3: Developer Options. (line 101)
  49837. * fdump-rtl-combine: Developer Options. (line 93)
  49838. * fdump-rtl-compgotos: Developer Options. (line 96)
  49839. * fdump-rtl-cprop_hardreg: Developer Options. (line 105)
  49840. * fdump-rtl-csa: Developer Options. (line 108)
  49841. * fdump-rtl-cse1: Developer Options. (line 112)
  49842. * fdump-rtl-cse2: Developer Options. (line 112)
  49843. * fdump-rtl-dbr: Developer Options. (line 119)
  49844. * fdump-rtl-dce: Developer Options. (line 116)
  49845. * fdump-rtl-dce1: Developer Options. (line 123)
  49846. * fdump-rtl-dce2: Developer Options. (line 123)
  49847. * fdump-rtl-dfinish: Developer Options. (line 242)
  49848. * fdump-rtl-dfinit: Developer Options. (line 242)
  49849. * fdump-rtl-eh: Developer Options. (line 127)
  49850. * fdump-rtl-eh_ranges: Developer Options. (line 130)
  49851. * fdump-rtl-expand: Developer Options. (line 133)
  49852. * fdump-rtl-fwprop1: Developer Options. (line 137)
  49853. * fdump-rtl-fwprop2: Developer Options. (line 137)
  49854. * fdump-rtl-gcse1: Developer Options. (line 142)
  49855. * fdump-rtl-gcse2: Developer Options. (line 142)
  49856. * fdump-rtl-init-regs: Developer Options. (line 146)
  49857. * fdump-rtl-initvals: Developer Options. (line 149)
  49858. * fdump-rtl-into_cfglayout: Developer Options. (line 152)
  49859. * fdump-rtl-ira: Developer Options. (line 155)
  49860. * fdump-rtl-jump: Developer Options. (line 158)
  49861. * fdump-rtl-loop2: Developer Options. (line 161)
  49862. * fdump-rtl-mach: Developer Options. (line 165)
  49863. * fdump-rtl-mode_sw: Developer Options. (line 169)
  49864. * fdump-rtl-outof_cfglayout: Developer Options. (line 175)
  49865. * fdump-rtl-PASS: Developer Options. (line 52)
  49866. * fdump-rtl-peephole2: Developer Options. (line 178)
  49867. * fdump-rtl-postreload: Developer Options. (line 181)
  49868. * fdump-rtl-pro_and_epilogue: Developer Options. (line 184)
  49869. * fdump-rtl-ree: Developer Options. (line 192)
  49870. * fdump-rtl-regclass: Developer Options. (line 242)
  49871. * fdump-rtl-rnreg: Developer Options. (line 172)
  49872. * fdump-rtl-sched1: Developer Options. (line 188)
  49873. * fdump-rtl-sched2: Developer Options. (line 188)
  49874. * fdump-rtl-seqabstr: Developer Options. (line 195)
  49875. * fdump-rtl-shorten: Developer Options. (line 198)
  49876. * fdump-rtl-sibling: Developer Options. (line 201)
  49877. * fdump-rtl-sms: Developer Options. (line 212)
  49878. * fdump-rtl-split1: Developer Options. (line 208)
  49879. * fdump-rtl-split2: Developer Options. (line 208)
  49880. * fdump-rtl-split3: Developer Options. (line 208)
  49881. * fdump-rtl-split4: Developer Options. (line 208)
  49882. * fdump-rtl-split5: Developer Options. (line 208)
  49883. * fdump-rtl-stack: Developer Options. (line 216)
  49884. * fdump-rtl-subreg1: Developer Options. (line 222)
  49885. * fdump-rtl-subreg2: Developer Options. (line 222)
  49886. * fdump-rtl-subregs_of_mode_finish: Developer Options. (line 242)
  49887. * fdump-rtl-subregs_of_mode_init: Developer Options. (line 242)
  49888. * fdump-rtl-unshare: Developer Options. (line 226)
  49889. * fdump-rtl-vartrack: Developer Options. (line 229)
  49890. * fdump-rtl-vregs: Developer Options. (line 232)
  49891. * fdump-rtl-web: Developer Options. (line 235)
  49892. * fdump-statistics: Developer Options. (line 368)
  49893. * fdump-tree: Developer Options. (line 381)
  49894. * fdump-tree-all: Developer Options. (line 381)
  49895. * fdump-unnumbered: Developer Options. (line 291)
  49896. * fdump-unnumbered-links: Developer Options. (line 297)
  49897. * fdwarf2-cfi-asm: Debugging Options. (line 409)
  49898. * fearly-inlining: Optimize Options. (line 321)
  49899. * felide-constructors: C++ Dialect Options.
  49900. (line 219)
  49901. * felide-type: Diagnostic Message Formatting Options.
  49902. (line 293)
  49903. * feliminate-unused-debug-symbols: Debugging Options. (line 122)
  49904. * feliminate-unused-debug-types: Debugging Options. (line 413)
  49905. * femit-class-debug-always: Debugging Options. (line 127)
  49906. * femit-struct-debug-baseonly: Debugging Options. (line 340)
  49907. * femit-struct-debug-detailed: Debugging Options. (line 367)
  49908. * femit-struct-debug-reduced: Debugging Options. (line 353)
  49909. * fenable-: Developer Options. (line 647)
  49910. * fenforce-eh-specs: C++ Dialect Options.
  49911. (line 230)
  49912. * fexceptions: Code Gen Options. (line 119)
  49913. * fexcess-precision: Optimize Options. (line 2248)
  49914. * fexec-charset: Preprocessor Options.
  49915. (line 273)
  49916. * fexpensive-optimizations: Optimize Options. (line 654)
  49917. * fext-numeric-literals: C++ Dialect Options.
  49918. (line 521)
  49919. * fextended-identifiers: Preprocessor Options.
  49920. (line 229)
  49921. * fextern-tls-init: C++ Dialect Options.
  49922. (line 240)
  49923. * ffast-math: Optimize Options. (line 2272)
  49924. * ffat-lto-objects: Optimize Options. (line 2104)
  49925. * ffile-prefix-map: Overall Options. (line 633)
  49926. * ffinite-loops: Optimize Options. (line 1215)
  49927. * ffinite-math-only: Optimize Options. (line 2349)
  49928. * ffix-and-continue: Darwin Options. (line 104)
  49929. * ffixed: Code Gen Options. (line 426)
  49930. * ffloat-store: Optimize Options. (line 2234)
  49931. * ffloat-store <1>: Disappointments. (line 77)
  49932. * fforward-propagate: Optimize Options. (line 229)
  49933. * ffp-contract: Optimize Options. (line 238)
  49934. * ffp-int-builtin-inexact: Optimize Options. (line 2421)
  49935. * ffreestanding: Standards. (line 99)
  49936. * ffreestanding <1>: C Dialect Options. (line 326)
  49937. * ffreestanding <2>: Warning Options. (line 416)
  49938. * ffreestanding <3>: Common Function Attributes.
  49939. (line 430)
  49940. * ffunction-cse: Optimize Options. (line 435)
  49941. * ffunction-sections: Optimize Options. (line 2606)
  49942. * fgcse: Optimize Options. (line 504)
  49943. * fgcse-after-reload: Optimize Options. (line 540)
  49944. * fgcse-las: Optimize Options. (line 533)
  49945. * fgcse-lm: Optimize Options. (line 515)
  49946. * fgcse-sm: Optimize Options. (line 524)
  49947. * fgimple: C Dialect Options. (line 312)
  49948. * fgnu-keywords: C++ Dialect Options.
  49949. (line 260)
  49950. * fgnu-runtime: Objective-C and Objective-C++ Dialect Options.
  49951. (line 39)
  49952. * fgnu-tm: C Dialect Options. (line 363)
  49953. * fgnu-unique: Code Gen Options. (line 162)
  49954. * fgnu89-inline: C Dialect Options. (line 202)
  49955. * fgraphite-identity: Optimize Options. (line 1257)
  49956. * fguess-branch-probability: Optimize Options. (line 1563)
  49957. * fhoist-adjacent-loads: Optimize Options. (line 998)
  49958. * fhosted: C Dialect Options. (line 318)
  49959. * fident: Code Gen Options. (line 252)
  49960. * fif-conversion: Optimize Options. (line 583)
  49961. * fif-conversion2: Optimize Options. (line 592)
  49962. * fiji: AMD GCN Options. (line 13)
  49963. * filelist: Darwin Options. (line 196)
  49964. * fimplement-inlines: C++ Dialect Options.
  49965. (line 280)
  49966. * fimplicit-inline-templates: C++ Dialect Options.
  49967. (line 274)
  49968. * fimplicit-templates: C++ Dialect Options.
  49969. (line 266)
  49970. * findirect-data: Darwin Options. (line 104)
  49971. * findirect-inlining: Optimize Options. (line 293)
  49972. * finhibit-size-directive: Code Gen Options. (line 255)
  49973. * finline: Optimize Options. (line 276)
  49974. * finline-functions: Optimize Options. (line 301)
  49975. * finline-functions-called-once: Optimize Options. (line 313)
  49976. * finline-limit: Optimize Options. (line 337)
  49977. * finline-small-functions: Optimize Options. (line 284)
  49978. * finput-charset: Preprocessor Options.
  49979. (line 286)
  49980. * finstrument-functions: Instrumentation Options.
  49981. (line 788)
  49982. * finstrument-functions <1>: Common Function Attributes.
  49983. (line 793)
  49984. * finstrument-functions-exclude-file-list: Instrumentation Options.
  49985. (line 824)
  49986. * finstrument-functions-exclude-function-list: Instrumentation Options.
  49987. (line 845)
  49988. * fipa-bit-cp: Optimize Options. (line 1065)
  49989. * fipa-cp: Optimize Options. (line 1046)
  49990. * fipa-cp-clone: Optimize Options. (line 1055)
  49991. * fipa-icf: Optimize Options. (line 1075)
  49992. * fipa-modref: Optimize Options. (line 1039)
  49993. * fipa-profile: Optimize Options. (line 1031)
  49994. * fipa-pta: Optimize Options. (line 1025)
  49995. * fipa-pure-const: Optimize Options. (line 1009)
  49996. * fipa-ra: Optimize Options. (line 945)
  49997. * fipa-reference: Optimize Options. (line 1013)
  49998. * fipa-reference-addressable: Optimize Options. (line 1017)
  49999. * fipa-sra: Optimize Options. (line 330)
  50000. * fipa-stack-alignment: Optimize Options. (line 1021)
  50001. * fipa-vrp: Optimize Options. (line 1070)
  50002. * fira-algorithm: Optimize Options. (line 688)
  50003. * fira-hoist-pressure: Optimize Options. (line 717)
  50004. * fira-loop-pressure: Optimize Options. (line 724)
  50005. * fira-region: Optimize Options. (line 696)
  50006. * fira-share-save-slots: Optimize Options. (line 732)
  50007. * fira-share-spill-slots: Optimize Options. (line 738)
  50008. * fira-verbose: Developer Options. (line 851)
  50009. * fisolate-erroneous-paths-attribute: Optimize Options. (line 1157)
  50010. * fisolate-erroneous-paths-dereference: Optimize Options. (line 1149)
  50011. * fivar-visibility: Objective-C and Objective-C++ Dialect Options.
  50012. (line 161)
  50013. * fivopts: Optimize Options. (line 1382)
  50014. * fjump-tables: Code Gen Options. (line 414)
  50015. * fkeep-inline-dllexport: Optimize Options. (line 362)
  50016. * fkeep-inline-functions: Optimize Options. (line 368)
  50017. * fkeep-inline-functions <1>: Inline. (line 51)
  50018. * fkeep-static-consts: Optimize Options. (line 379)
  50019. * fkeep-static-functions: Optimize Options. (line 375)
  50020. * flang-info-include-translate: C++ Dialect Options.
  50021. (line 537)
  50022. * flang-info-include-translate-not: C++ Dialect Options.
  50023. (line 537)
  50024. * flang-info-module-cmi: C++ Dialect Options.
  50025. (line 546)
  50026. * flarge-source-files: Preprocessor Options.
  50027. (line 495)
  50028. * flat_namespace: Darwin Options. (line 196)
  50029. * flax-vector-conversions: C Dialect Options. (line 411)
  50030. * fleading-underscore: Code Gen Options. (line 482)
  50031. * flifetime-dse: Optimize Options. (line 668)
  50032. * flinker-output: Link Options. (line 25)
  50033. * flive-patching: Optimize Options. (line 1089)
  50034. * flive-range-shrinkage: Optimize Options. (line 683)
  50035. * flocal-ivars: Objective-C and Objective-C++ Dialect Options.
  50036. (line 152)
  50037. * floop-block: Optimize Options. (line 1251)
  50038. * floop-interchange: Optimize Options. (line 1335)
  50039. * floop-nest-optimize: Optimize Options. (line 1265)
  50040. * floop-parallelize-all: Optimize Options. (line 1271)
  50041. * floop-strip-mine: Optimize Options. (line 1251)
  50042. * floop-unroll-and-jam: Optimize Options. (line 1352)
  50043. * flra-remat: Optimize Options. (line 744)
  50044. * flto: Optimize Options. (line 1843)
  50045. * flto-compression-level: Optimize Options. (line 2075)
  50046. * flto-partition: Optimize Options. (line 2061)
  50047. * flto-report: Developer Options. (line 857)
  50048. * flto-report-wpa: Developer Options. (line 865)
  50049. * fmacro-prefix-map: Preprocessor Options.
  50050. (line 264)
  50051. * fmath-errno: Optimize Options. (line 2286)
  50052. * fmax-errors: Warning Options. (line 18)
  50053. * fmax-include-depth: Preprocessor Options.
  50054. (line 238)
  50055. * fmem-report: Developer Options. (line 869)
  50056. * fmem-report-wpa: Developer Options. (line 873)
  50057. * fmerge-all-constants: Optimize Options. (line 398)
  50058. * fmerge-constants: Optimize Options. (line 388)
  50059. * fmerge-debug-strings: Debugging Options. (line 135)
  50060. * fmessage-length: Diagnostic Message Formatting Options.
  50061. (line 14)
  50062. * fmodule-header: C++ Dialect Options.
  50063. (line 294)
  50064. * fmodule-implicit-inline: C++ Dialect Options.
  50065. (line 297)
  50066. * fmodule-lazy: C++ Dialect Options.
  50067. (line 307)
  50068. * fmodule-mapper: C++ Dialect Options.
  50069. (line 315)
  50070. * fmodule-only: C++ Dialect Options.
  50071. (line 320)
  50072. * fmodules-ts: C++ Dialect Options.
  50073. (line 286)
  50074. * fmodulo-sched: Optimize Options. (line 409)
  50075. * fmodulo-sched-allow-regmoves: Optimize Options. (line 414)
  50076. * fmove-loop-invariants: Optimize Options. (line 2566)
  50077. * fms-extensions: C Dialect Options. (line 378)
  50078. * fms-extensions <1>: C++ Dialect Options.
  50079. (line 324)
  50080. * fms-extensions <2>: Unnamed Fields. (line 36)
  50081. * fnew-inheriting-ctors: C++ Dialect Options.
  50082. (line 329)
  50083. * fnew-ttp-matching: C++ Dialect Options.
  50084. (line 335)
  50085. * fnext-runtime: Objective-C and Objective-C++ Dialect Options.
  50086. (line 43)
  50087. * fnil-receivers: Objective-C and Objective-C++ Dialect Options.
  50088. (line 49)
  50089. * fno-access-control: C++ Dialect Options.
  50090. (line 108)
  50091. * fno-allocation-dce: Optimize Options. (line 1782)
  50092. * fno-analyzer: Static Analyzer Options.
  50093. (line 7)
  50094. * fno-analyzer-call-summaries: Static Analyzer Options.
  50095. (line 238)
  50096. * fno-analyzer-feasibility: Static Analyzer Options.
  50097. (line 255)
  50098. * fno-analyzer-fine-grained: Static Analyzer Options.
  50099. (line 265)
  50100. * fno-analyzer-show-duplicate-count: Static Analyzer Options.
  50101. (line 275)
  50102. * fno-analyzer-state-merge: Static Analyzer Options.
  50103. (line 282)
  50104. * fno-analyzer-state-purge: Static Analyzer Options.
  50105. (line 290)
  50106. * fno-analyzer-transitivity: Static Analyzer Options.
  50107. (line 301)
  50108. * fno-asm: C Dialect Options. (line 264)
  50109. * fno-bit-tests: Code Gen Options. (line 422)
  50110. * fno-branch-count-reg: Optimize Options. (line 421)
  50111. * fno-builtin: C Dialect Options. (line 278)
  50112. * fno-builtin <1>: Warning Options. (line 416)
  50113. * fno-builtin <2>: Common Function Attributes.
  50114. (line 430)
  50115. * fno-builtin <3>: Other Builtins. (line 21)
  50116. * fno-canonical-system-headers: Preprocessor Options.
  50117. (line 234)
  50118. * fno-char8_t: C++ Dialect Options.
  50119. (line 122)
  50120. * fno-checking: Developer Options. (line 716)
  50121. * fno-common: Code Gen Options. (line 231)
  50122. * fno-common <1>: Common Variable Attributes.
  50123. (line 176)
  50124. * fno-compare-debug: Developer Options. (line 788)
  50125. * fno-debug-types-section: Debugging Options. (line 204)
  50126. * fno-default-inline: Inline. (line 68)
  50127. * fno-defer-pop: Optimize Options. (line 222)
  50128. * fno-diagnostics-show-caret: Diagnostic Message Formatting Options.
  50129. (line 188)
  50130. * fno-diagnostics-show-cwe: Diagnostic Message Formatting Options.
  50131. (line 210)
  50132. * fno-diagnostics-show-labels: Diagnostic Message Formatting Options.
  50133. (line 197)
  50134. * fno-diagnostics-show-line-numbers: Diagnostic Message Formatting Options.
  50135. (line 219)
  50136. * fno-diagnostics-show-option: Diagnostic Message Formatting Options.
  50137. (line 182)
  50138. * fno-dwarf2-cfi-asm: Debugging Options. (line 409)
  50139. * fno-elide-constructors: C++ Dialect Options.
  50140. (line 219)
  50141. * fno-elide-type: Diagnostic Message Formatting Options.
  50142. (line 293)
  50143. * fno-eliminate-unused-debug-symbols: Debugging Options. (line 122)
  50144. * fno-eliminate-unused-debug-types: Debugging Options. (line 413)
  50145. * fno-enforce-eh-specs: C++ Dialect Options.
  50146. (line 230)
  50147. * fno-ext-numeric-literals: C++ Dialect Options.
  50148. (line 521)
  50149. * fno-extern-tls-init: C++ Dialect Options.
  50150. (line 240)
  50151. * fno-finite-loops: Optimize Options. (line 1215)
  50152. * fno-fp-int-builtin-inexact: Optimize Options. (line 2421)
  50153. * fno-function-cse: Optimize Options. (line 435)
  50154. * fno-gnu-keywords: C++ Dialect Options.
  50155. (line 260)
  50156. * fno-gnu-unique: Code Gen Options. (line 162)
  50157. * fno-guess-branch-probability: Optimize Options. (line 1563)
  50158. * fno-ident: Code Gen Options. (line 252)
  50159. * fno-implement-inlines: C++ Dialect Options.
  50160. (line 280)
  50161. * fno-implement-inlines <1>: C++ Interface. (line 66)
  50162. * fno-implicit-inline-templates: C++ Dialect Options.
  50163. (line 274)
  50164. * fno-implicit-templates: C++ Dialect Options.
  50165. (line 266)
  50166. * fno-implicit-templates <1>: Template Instantiation.
  50167. (line 94)
  50168. * fno-inline: Optimize Options. (line 276)
  50169. * fno-ira-share-save-slots: Optimize Options. (line 732)
  50170. * fno-ira-share-spill-slots: Optimize Options. (line 738)
  50171. * fno-jump-tables: Code Gen Options. (line 414)
  50172. * fno-keep-inline-dllexport: Optimize Options. (line 362)
  50173. * fno-lifetime-dse: Optimize Options. (line 668)
  50174. * fno-local-ivars: Objective-C and Objective-C++ Dialect Options.
  50175. (line 152)
  50176. * fno-math-errno: Optimize Options. (line 2286)
  50177. * fno-merge-debug-strings: Debugging Options. (line 135)
  50178. * fno-module-lazy: C++ Dialect Options.
  50179. (line 307)
  50180. * fno-modules-ts: C++ Dialect Options.
  50181. (line 286)
  50182. * fno-nil-receivers: Objective-C and Objective-C++ Dialect Options.
  50183. (line 49)
  50184. * fno-nonansi-builtins: C++ Dialect Options.
  50185. (line 342)
  50186. * fno-operator-names: C++ Dialect Options.
  50187. (line 358)
  50188. * fno-optional-diags: C++ Dialect Options.
  50189. (line 362)
  50190. * fno-peephole: Optimize Options. (line 1554)
  50191. * fno-peephole2: Optimize Options. (line 1554)
  50192. * fno-plt: Code Gen Options. (line 396)
  50193. * fno-pretty-templates: C++ Dialect Options.
  50194. (line 372)
  50195. * fno-printf-return-value: Optimize Options. (line 1531)
  50196. * fno-rtti: C++ Dialect Options.
  50197. (line 384)
  50198. * fno-sanitize-recover: Instrumentation Options.
  50199. (line 522)
  50200. * fno-sanitize=all: Instrumentation Options.
  50201. (line 507)
  50202. * fno-sched-interblock: Optimize Options. (line 777)
  50203. * fno-sched-spec: Optimize Options. (line 782)
  50204. * fno-set-stack-executable: x86 Windows Options.
  50205. (line 46)
  50206. * fno-show-column: Diagnostic Message Formatting Options.
  50207. (line 408)
  50208. * fno-signed-bitfields: C Dialect Options. (line 444)
  50209. * fno-signed-zeros: Optimize Options. (line 2361)
  50210. * fno-stack-limit: Instrumentation Options.
  50211. (line 700)
  50212. * fno-threadsafe-statics: C++ Dialect Options.
  50213. (line 439)
  50214. * fno-toplevel-reorder: Optimize Options. (line 1808)
  50215. * fno-trapping-math: Optimize Options. (line 2371)
  50216. * fno-unsigned-bitfields: C Dialect Options. (line 444)
  50217. * fno-use-cxa-get-exception-ptr: C++ Dialect Options.
  50218. (line 452)
  50219. * fno-var-tracking-assignments: Debugging Options. (line 162)
  50220. * fno-var-tracking-assignments-toggle: Developer Options. (line 835)
  50221. * fno-weak: C++ Dialect Options.
  50222. (line 514)
  50223. * fno-working-directory: Preprocessor Options.
  50224. (line 321)
  50225. * fno-writable-relocated-rdata: x86 Windows Options.
  50226. (line 53)
  50227. * fno-zero-initialized-in-bss: Optimize Options. (line 446)
  50228. * fnon-call-exceptions: Code Gen Options. (line 133)
  50229. * fnonansi-builtins: C++ Dialect Options.
  50230. (line 342)
  50231. * fnothrow-opt: C++ Dialect Options.
  50232. (line 347)
  50233. * fobjc-abi-version: Objective-C and Objective-C++ Dialect Options.
  50234. (line 56)
  50235. * fobjc-call-cxx-cdtors: Objective-C and Objective-C++ Dialect Options.
  50236. (line 67)
  50237. * fobjc-direct-dispatch: Objective-C and Objective-C++ Dialect Options.
  50238. (line 92)
  50239. * fobjc-exceptions: Objective-C and Objective-C++ Dialect Options.
  50240. (line 96)
  50241. * fobjc-gc: Objective-C and Objective-C++ Dialect Options.
  50242. (line 104)
  50243. * fobjc-nilcheck: Objective-C and Objective-C++ Dialect Options.
  50244. (line 110)
  50245. * fobjc-std: Objective-C and Objective-C++ Dialect Options.
  50246. (line 119)
  50247. * fomit-frame-pointer: Optimize Options. (line 249)
  50248. * fopenacc: C Dialect Options. (line 337)
  50249. * fopenacc-dim: C Dialect Options. (line 345)
  50250. * fopenmp: C Dialect Options. (line 351)
  50251. * fopenmp-simd: C Dialect Options. (line 359)
  50252. * foperator-names: C++ Dialect Options.
  50253. (line 358)
  50254. * fopt-info: Developer Options. (line 487)
  50255. * foptimize-sibling-calls: Optimize Options. (line 264)
  50256. * foptimize-strlen: Optimize Options. (line 269)
  50257. * foptional-diags: C++ Dialect Options.
  50258. (line 362)
  50259. * force_cpusubtype_ALL: Darwin Options. (line 135)
  50260. * force_flat_namespace: Darwin Options. (line 196)
  50261. * fpack-struct: Code Gen Options. (line 469)
  50262. * fpartial-inlining: Optimize Options. (line 1506)
  50263. * fpatchable-function-entry: Instrumentation Options.
  50264. (line 857)
  50265. * fpcc-struct-return: Code Gen Options. (line 175)
  50266. * fpcc-struct-return <1>: Incompatibilities. (line 170)
  50267. * fpch-deps: Preprocessor Options.
  50268. (line 296)
  50269. * fpch-preprocess: Preprocessor Options.
  50270. (line 304)
  50271. * fpeel-loops: Optimize Options. (line 2558)
  50272. * fpeephole: Optimize Options. (line 1554)
  50273. * fpeephole2: Optimize Options. (line 1554)
  50274. * fpermissive: C++ Dialect Options.
  50275. (line 367)
  50276. * fpermitted-flt-eval-methods: C Dialect Options. (line 219)
  50277. * fpermitted-flt-eval-methods=c11: C Dialect Options. (line 219)
  50278. * fpermitted-flt-eval-methods=ts-18661-3: C Dialect Options. (line 219)
  50279. * fpic: Code Gen Options. (line 353)
  50280. * fPIC: Code Gen Options. (line 374)
  50281. * fpie: Code Gen Options. (line 387)
  50282. * fPIE: Code Gen Options. (line 387)
  50283. * fplan9-extensions: C Dialect Options. (line 396)
  50284. * fplan9-extensions <1>: Unnamed Fields. (line 43)
  50285. * fplt: Code Gen Options. (line 396)
  50286. * fplugin: Overall Options. (line 642)
  50287. * fplugin-arg: Overall Options. (line 649)
  50288. * fpost-ipa-mem-report: Developer Options. (line 878)
  50289. * fpre-ipa-mem-report: Developer Options. (line 877)
  50290. * fpredictive-commoning: Optimize Options. (line 1513)
  50291. * fprefetch-loop-arrays: Optimize Options. (line 1521)
  50292. * fpreprocessed: Preprocessor Options.
  50293. (line 192)
  50294. * fpretty-templates: C++ Dialect Options.
  50295. (line 372)
  50296. * fprintf-return-value: Optimize Options. (line 1531)
  50297. * fprofile-abs-path: Instrumentation Options.
  50298. (line 106)
  50299. * fprofile-arcs: Instrumentation Options.
  50300. (line 30)
  50301. * fprofile-arcs <1>: Other Builtins. (line 591)
  50302. * fprofile-correction: Optimize Options. (line 2146)
  50303. * fprofile-dir: Instrumentation Options.
  50304. (line 112)
  50305. * fprofile-exclude-files: Instrumentation Options.
  50306. (line 227)
  50307. * fprofile-filter-files: Instrumentation Options.
  50308. (line 219)
  50309. * fprofile-generate: Instrumentation Options.
  50310. (line 137)
  50311. * fprofile-info-section: Instrumentation Options.
  50312. (line 155)
  50313. * fprofile-note: Instrumentation Options.
  50314. (line 181)
  50315. * fprofile-partial-training: Optimize Options. (line 2155)
  50316. * fprofile-prefix-path: Instrumentation Options.
  50317. (line 187)
  50318. * fprofile-reorder-functions: Optimize Options. (line 2498)
  50319. * fprofile-report: Developer Options. (line 882)
  50320. * fprofile-reproducible: Instrumentation Options.
  50321. (line 236)
  50322. * fprofile-update: Instrumentation Options.
  50323. (line 202)
  50324. * fprofile-use: Optimize Options. (line 2169)
  50325. * fprofile-values: Optimize Options. (line 2488)
  50326. * fpu: RX Options. (line 17)
  50327. * frandom-seed: Developer Options. (line 721)
  50328. * freciprocal-math: Optimize Options. (line 2339)
  50329. * frecord-gcc-switches: Code Gen Options. (line 341)
  50330. * free: Optimize Options. (line 660)
  50331. * freg-struct-return: Code Gen Options. (line 193)
  50332. * frename-registers: Optimize Options. (line 2517)
  50333. * freorder-blocks: Optimize Options. (line 1584)
  50334. * freorder-blocks-algorithm: Optimize Options. (line 1590)
  50335. * freorder-blocks-and-partition: Optimize Options. (line 1601)
  50336. * freorder-functions: Optimize Options. (line 1618)
  50337. * freplace-objc-classes: Objective-C and Objective-C++ Dialect Options.
  50338. (line 130)
  50339. * freport-bug: Developer Options. (line 287)
  50340. * frerun-cse-after-loop: Optimize Options. (line 498)
  50341. * freschedule-modulo-scheduled-loops: Optimize Options. (line 876)
  50342. * frounding-math: Optimize Options. (line 2386)
  50343. * frtti: C++ Dialect Options.
  50344. (line 384)
  50345. * fsanitize-address-use-after-scope: Instrumentation Options.
  50346. (line 558)
  50347. * fsanitize-coverage=trace-cmp: Instrumentation Options.
  50348. (line 573)
  50349. * fsanitize-coverage=trace-pc: Instrumentation Options.
  50350. (line 569)
  50351. * fsanitize-recover: Instrumentation Options.
  50352. (line 522)
  50353. * fsanitize-sections: Instrumentation Options.
  50354. (line 518)
  50355. * fsanitize-undefined-trap-on-error: Instrumentation Options.
  50356. (line 562)
  50357. * fsanitize=address: Instrumentation Options.
  50358. (line 264)
  50359. * fsanitize=alignment: Instrumentation Options.
  50360. (line 433)
  50361. * fsanitize=bool: Instrumentation Options.
  50362. (line 471)
  50363. * fsanitize=bounds: Instrumentation Options.
  50364. (line 420)
  50365. * fsanitize=bounds-strict: Instrumentation Options.
  50366. (line 426)
  50367. * fsanitize=builtin: Instrumentation Options.
  50368. (line 495)
  50369. * fsanitize=enum: Instrumentation Options.
  50370. (line 476)
  50371. * fsanitize=float-cast-overflow: Instrumentation Options.
  50372. (line 451)
  50373. * fsanitize=float-divide-by-zero: Instrumentation Options.
  50374. (line 445)
  50375. * fsanitize=hwaddress: Instrumentation Options.
  50376. (line 284)
  50377. * fsanitize=integer-divide-by-zero: Instrumentation Options.
  50378. (line 383)
  50379. * fsanitize=kernel-address: Instrumentation Options.
  50380. (line 280)
  50381. * fsanitize=kernel-hwaddress: Instrumentation Options.
  50382. (line 298)
  50383. * fsanitize=leak: Instrumentation Options.
  50384. (line 348)
  50385. * fsanitize=nonnull-attribute: Instrumentation Options.
  50386. (line 459)
  50387. * fsanitize=null: Instrumentation Options.
  50388. (line 397)
  50389. * fsanitize=object-size: Instrumentation Options.
  50390. (line 440)
  50391. * fsanitize=pointer-compare: Instrumentation Options.
  50392. (line 314)
  50393. * fsanitize=pointer-overflow: Instrumentation Options.
  50394. (line 489)
  50395. * fsanitize=pointer-subtract: Instrumentation Options.
  50396. (line 324)
  50397. * fsanitize=return: Instrumentation Options.
  50398. (line 405)
  50399. * fsanitize=returns-nonnull-attribute: Instrumentation Options.
  50400. (line 465)
  50401. * fsanitize=shift: Instrumentation Options.
  50402. (line 363)
  50403. * fsanitize=shift-base: Instrumentation Options.
  50404. (line 376)
  50405. * fsanitize=shift-exponent: Instrumentation Options.
  50406. (line 371)
  50407. * fsanitize=signed-integer-overflow: Instrumentation Options.
  50408. (line 411)
  50409. * fsanitize=thread: Instrumentation Options.
  50410. (line 334)
  50411. * fsanitize=undefined: Instrumentation Options.
  50412. (line 358)
  50413. * fsanitize=unreachable: Instrumentation Options.
  50414. (line 387)
  50415. * fsanitize=vla-bound: Instrumentation Options.
  50416. (line 393)
  50417. * fsanitize=vptr: Instrumentation Options.
  50418. (line 482)
  50419. * fsave-optimization-record: Developer Options. (line 593)
  50420. * fsched-critical-path-heuristic: Optimize Options. (line 842)
  50421. * fsched-dep-count-heuristic: Optimize Options. (line 869)
  50422. * fsched-group-heuristic: Optimize Options. (line 836)
  50423. * fsched-interblock: Optimize Options. (line 777)
  50424. * fsched-last-insn-heuristic: Optimize Options. (line 862)
  50425. * fsched-pressure: Optimize Options. (line 787)
  50426. * fsched-rank-heuristic: Optimize Options. (line 855)
  50427. * fsched-spec: Optimize Options. (line 782)
  50428. * fsched-spec-insn-heuristic: Optimize Options. (line 848)
  50429. * fsched-spec-load: Optimize Options. (line 796)
  50430. * fsched-spec-load-dangerous: Optimize Options. (line 801)
  50431. * fsched-stalled-insns: Optimize Options. (line 807)
  50432. * fsched-stalled-insns-dep: Optimize Options. (line 817)
  50433. * fsched-verbose: Developer Options. (line 633)
  50434. * fsched2-use-superblocks: Optimize Options. (line 826)
  50435. * fschedule-fusion: Optimize Options. (line 2527)
  50436. * fschedule-insns: Optimize Options. (line 758)
  50437. * fschedule-insns2: Optimize Options. (line 768)
  50438. * fsection-anchors: Optimize Options. (line 2639)
  50439. * fsel-sched-pipelining: Optimize Options. (line 889)
  50440. * fsel-sched-pipelining-outer-loops: Optimize Options. (line 894)
  50441. * fselective-scheduling: Optimize Options. (line 881)
  50442. * fselective-scheduling2: Optimize Options. (line 885)
  50443. * fsemantic-interposition: Optimize Options. (line 899)
  50444. * fset-stack-executable: x86 Windows Options.
  50445. (line 46)
  50446. * fshort-enums: Code Gen Options. (line 211)
  50447. * fshort-enums <1>: Structures unions enumerations and bit-fields implementation.
  50448. (line 48)
  50449. * fshort-enums <2>: Common Type Attributes.
  50450. (line 288)
  50451. * fshort-enums <3>: Non-bugs. (line 42)
  50452. * fshort-wchar: Code Gen Options. (line 221)
  50453. * fshow-column: Diagnostic Message Formatting Options.
  50454. (line 408)
  50455. * fshrink-wrap: Optimize Options. (line 916)
  50456. * fshrink-wrap-separate: Optimize Options. (line 921)
  50457. * fsignaling-nans: Optimize Options. (line 2406)
  50458. * fsigned-bitfields: C Dialect Options. (line 444)
  50459. * fsigned-bitfields <1>: Non-bugs. (line 57)
  50460. * fsigned-char: C Dialect Options. (line 434)
  50461. * fsigned-char <1>: Characters implementation.
  50462. (line 31)
  50463. * fsigned-zeros: Optimize Options. (line 2361)
  50464. * fsimd-cost-model: Optimize Options. (line 1463)
  50465. * fsingle-precision-constant: Optimize Options. (line 2439)
  50466. * fsized-deallocation: C++ Dialect Options.
  50467. (line 399)
  50468. * fsplit-ivs-in-unroller: Optimize Options. (line 1484)
  50469. * fsplit-loops: Optimize Options. (line 2570)
  50470. * fsplit-paths: Optimize Options. (line 1479)
  50471. * fsplit-stack: Instrumentation Options.
  50472. (line 717)
  50473. * fsplit-stack <1>: Common Function Attributes.
  50474. (line 843)
  50475. * fsplit-wide-types: Optimize Options. (line 467)
  50476. * fsplit-wide-types-early: Optimize Options. (line 475)
  50477. * fssa-backprop: Optimize Options. (line 1181)
  50478. * fssa-phiopt: Optimize Options. (line 1187)
  50479. * fsso-struct: C Dialect Options. (line 450)
  50480. * fstack-check: Instrumentation Options.
  50481. (line 643)
  50482. * fstack-clash-protection: Instrumentation Options.
  50483. (line 685)
  50484. * fstack-limit-register: Instrumentation Options.
  50485. (line 700)
  50486. * fstack-limit-symbol: Instrumentation Options.
  50487. (line 700)
  50488. * fstack-protector: Instrumentation Options.
  50489. (line 618)
  50490. * fstack-protector-all: Instrumentation Options.
  50491. (line 629)
  50492. * fstack-protector-explicit: Instrumentation Options.
  50493. (line 639)
  50494. * fstack-protector-strong: Instrumentation Options.
  50495. (line 632)
  50496. * fstack-usage: Developer Options. (line 886)
  50497. * fstack_reuse: Code Gen Options. (line 15)
  50498. * fstats: Developer Options. (line 915)
  50499. * fstdarg-opt: Optimize Options. (line 2635)
  50500. * fstore-merging: Optimize Options. (line 1406)
  50501. * fstrict-aliasing: Optimize Options. (line 1633)
  50502. * fstrict-enums: C++ Dialect Options.
  50503. (line 409)
  50504. * fstrict-overflow: Code Gen Options. (line 115)
  50505. * fstrict-volatile-bitfields: Code Gen Options. (line 592)
  50506. * fstrong-eval-order: C++ Dialect Options.
  50507. (line 418)
  50508. * fsync-libcalls: Code Gen Options. (line 624)
  50509. * fsyntax-only: Warning Options. (line 14)
  50510. * ftabstop: Preprocessor Options.
  50511. (line 241)
  50512. * ftemplate-backtrace-limit: C++ Dialect Options.
  50513. (line 426)
  50514. * ftemplate-depth: C++ Dialect Options.
  50515. (line 430)
  50516. * ftest-coverage: Instrumentation Options.
  50517. (line 97)
  50518. * fthread-jumps: Optimize Options. (line 458)
  50519. * fthreadsafe-statics: C++ Dialect Options.
  50520. (line 439)
  50521. * ftime-report: Developer Options. (line 843)
  50522. * ftime-report-details: Developer Options. (line 847)
  50523. * ftls-model: Code Gen Options. (line 493)
  50524. * ftoplevel-reorder: Optimize Options. (line 1808)
  50525. * ftracer: Optimize Options. (line 2535)
  50526. * ftrack-macro-expansion: Preprocessor Options.
  50527. (line 247)
  50528. * ftrampolines: Code Gen Options. (line 504)
  50529. * ftrapping-math: Optimize Options. (line 2371)
  50530. * ftrapv: Code Gen Options. (line 91)
  50531. * ftree-bit-ccp: Optimize Options. (line 1169)
  50532. * ftree-builtin-call-dce: Optimize Options. (line 1209)
  50533. * ftree-ccp: Optimize Options. (line 1176)
  50534. * ftree-ch: Optimize Options. (line 1238)
  50535. * ftree-coalesce-vars: Optimize Options. (line 1277)
  50536. * ftree-copy-prop: Optimize Options. (line 1004)
  50537. * ftree-dce: Optimize Options. (line 1205)
  50538. * ftree-dominator-opts: Optimize Options. (line 1224)
  50539. * ftree-dse: Optimize Options. (line 1231)
  50540. * ftree-forwprop: Optimize Options. (line 983)
  50541. * ftree-fre: Optimize Options. (line 987)
  50542. * ftree-loop-distribute-patterns: Optimize Options. (line 1313)
  50543. * ftree-loop-distribution: Optimize Options. (line 1294)
  50544. * ftree-loop-if-convert: Optimize Options. (line 1287)
  50545. * ftree-loop-im: Optimize Options. (line 1358)
  50546. * ftree-loop-ivcanon: Optimize Options. (line 1367)
  50547. * ftree-loop-linear: Optimize Options. (line 1251)
  50548. * ftree-loop-optimize: Optimize Options. (line 1245)
  50549. * ftree-loop-vectorize: Optimize Options. (line 1432)
  50550. * ftree-parallelize-loops: Optimize Options. (line 1387)
  50551. * ftree-partial-pre: Optimize Options. (line 979)
  50552. * ftree-phiprop: Optimize Options. (line 994)
  50553. * ftree-pre: Optimize Options. (line 975)
  50554. * ftree-pta: Optimize Options. (line 1396)
  50555. * ftree-reassoc: Optimize Options. (line 964)
  50556. * ftree-scev-cprop: Optimize Options. (line 1373)
  50557. * ftree-sink: Optimize Options. (line 1165)
  50558. * ftree-slp-vectorize: Optimize Options. (line 1437)
  50559. * ftree-slsr: Optimize Options. (line 1421)
  50560. * ftree-sra: Optimize Options. (line 1400)
  50561. * ftree-switch-conversion: Optimize Options. (line 1192)
  50562. * ftree-tail-merge: Optimize Options. (line 1197)
  50563. * ftree-ter: Optimize Options. (line 1413)
  50564. * ftree-vectorize: Optimize Options. (line 1427)
  50565. * ftree-vrp: Optimize Options. (line 1470)
  50566. * funconstrained-commons: Optimize Options. (line 556)
  50567. * funit-at-a-time: Optimize Options. (line 1801)
  50568. * funroll-all-loops: Optimize Options. (line 2552)
  50569. * funroll-loops: Optimize Options. (line 2542)
  50570. * funsafe-math-optimizations: Optimize Options. (line 2304)
  50571. * funsigned-bitfields: C Dialect Options. (line 444)
  50572. * funsigned-bitfields <1>: Structures unions enumerations and bit-fields implementation.
  50573. (line 17)
  50574. * funsigned-bitfields <2>: Non-bugs. (line 57)
  50575. * funsigned-char: C Dialect Options. (line 416)
  50576. * funsigned-char <1>: Characters implementation.
  50577. (line 31)
  50578. * funswitch-loops: Optimize Options. (line 2576)
  50579. * funwind-tables: Code Gen Options. (line 149)
  50580. * fuse-cxa-atexit: C++ Dialect Options.
  50581. (line 445)
  50582. * fuse-cxa-get-exception-ptr: C++ Dialect Options.
  50583. (line 452)
  50584. * fuse-ld=bfd: Link Options. (line 74)
  50585. * fuse-ld=gold: Link Options. (line 77)
  50586. * fuse-ld=lld: Link Options. (line 80)
  50587. * fuse-linker-plugin: Optimize Options. (line 2086)
  50588. * fvar-tracking: Debugging Options. (line 152)
  50589. * fvar-tracking-assignments: Debugging Options. (line 162)
  50590. * fvar-tracking-assignments-toggle: Developer Options. (line 835)
  50591. * fvariable-expansion-in-unroller: Optimize Options. (line 1498)
  50592. * fvect-cost-model: Optimize Options. (line 1442)
  50593. * fverbose-asm: Code Gen Options. (line 262)
  50594. * fversion-loops-for-strides: Optimize Options. (line 2583)
  50595. * fvisibility: Code Gen Options. (line 528)
  50596. * fvisibility-inlines-hidden: C++ Dialect Options.
  50597. (line 457)
  50598. * fvisibility-ms-compat: C++ Dialect Options.
  50599. (line 485)
  50600. * fvpt: Optimize Options. (line 2505)
  50601. * fvtable-verify: Instrumentation Options.
  50602. (line 735)
  50603. * fvtv-counts: Instrumentation Options.
  50604. (line 771)
  50605. * fvtv-debug: Instrumentation Options.
  50606. (line 758)
  50607. * fweak: C++ Dialect Options.
  50608. (line 514)
  50609. * fweb: Optimize Options. (line 1821)
  50610. * fwhole-program: Optimize Options. (line 1832)
  50611. * fwide-exec-charset: Preprocessor Options.
  50612. (line 278)
  50613. * fworking-directory: Preprocessor Options.
  50614. (line 321)
  50615. * fwrapv: Code Gen Options. (line 99)
  50616. * fwrapv-pointer: Code Gen Options. (line 109)
  50617. * fwritable-relocated-rdata: x86 Windows Options.
  50618. (line 53)
  50619. * fzero-call-used-regs: Optimize Options. (line 2663)
  50620. * fzero-initialized-in-bss: Optimize Options. (line 446)
  50621. * fzero-link: Objective-C and Objective-C++ Dialect Options.
  50622. (line 140)
  50623. * g: Debugging Options. (line 25)
  50624. * G: ARC Options. (line 414)
  50625. * G <1>: M32R/D Options. (line 57)
  50626. * G <2>: MIPS Options. (line 460)
  50627. * G <3>: Nios II Options. (line 9)
  50628. * G <4>: RS/6000 and PowerPC Options.
  50629. (line 714)
  50630. * G <5>: System V Options. (line 10)
  50631. * gas-loc-support: Debugging Options. (line 233)
  50632. * gas-locview-support: Debugging Options. (line 249)
  50633. * gcolumn-info: Debugging Options. (line 261)
  50634. * gdescribe-dies: Debugging Options. (line 191)
  50635. * gdwarf: Debugging Options. (line 45)
  50636. * gdwarf32: Debugging Options. (line 181)
  50637. * gdwarf64: Debugging Options. (line 181)
  50638. * gen-decls: Objective-C and Objective-C++ Dialect Options.
  50639. (line 166)
  50640. * gfull: Darwin Options. (line 69)
  50641. * ggdb: Debugging Options. (line 38)
  50642. * ggnu-pubnames: Debugging Options. (line 199)
  50643. * ginline-points: Debugging Options. (line 320)
  50644. * ginternal-reset-location-views: Debugging Options. (line 309)
  50645. * gno-as-loc-support: Debugging Options. (line 245)
  50646. * gno-column-info: Debugging Options. (line 261)
  50647. * gno-inline-points: Debugging Options. (line 320)
  50648. * gno-internal-reset-location-views: Debugging Options. (line 309)
  50649. * gno-record-gcc-switches: Debugging Options. (line 214)
  50650. * gno-statement-frontiers: Debugging Options. (line 266)
  50651. * gno-strict-dwarf: Debugging Options. (line 229)
  50652. * gno-variable-location-views: Debugging Options. (line 277)
  50653. * gpubnames: Debugging Options. (line 196)
  50654. * grecord-gcc-switches: Debugging Options. (line 214)
  50655. * gsplit-dwarf: Debugging Options. (line 173)
  50656. * gstabs: Debugging Options. (line 64)
  50657. * gstabs+: Debugging Options. (line 72)
  50658. * gstatement-frontiers: Debugging Options. (line 266)
  50659. * gstrict-dwarf: Debugging Options. (line 223)
  50660. * gtoggle: Developer Options. (line 827)
  50661. * gused: Darwin Options. (line 64)
  50662. * gvariable-location-views: Debugging Options. (line 277)
  50663. * gvariable-location-views=incompat5: Debugging Options. (line 277)
  50664. * gvms: Debugging Options. (line 91)
  50665. * gxcoff: Debugging Options. (line 78)
  50666. * gxcoff+: Debugging Options. (line 83)
  50667. * gz: Debugging Options. (line 329)
  50668. * H: Preprocessor Options.
  50669. (line 403)
  50670. * headerpad_max_install_names: Darwin Options. (line 196)
  50671. * help: Overall Options. (line 481)
  50672. * I: Directory Options. (line 13)
  50673. * I-: Directory Options. (line 65)
  50674. * idirafter: Directory Options. (line 13)
  50675. * iframework: Darwin Options. (line 57)
  50676. * imacros: Preprocessor Options.
  50677. (line 57)
  50678. * image_base: Darwin Options. (line 196)
  50679. * imultilib: Directory Options. (line 98)
  50680. * include: Preprocessor Options.
  50681. (line 46)
  50682. * init: Darwin Options. (line 196)
  50683. * install_name: Darwin Options. (line 196)
  50684. * iplugindir=: Directory Options. (line 113)
  50685. * iprefix: Directory Options. (line 80)
  50686. * iquote: Directory Options. (line 13)
  50687. * isysroot: Directory Options. (line 92)
  50688. * isystem: Directory Options. (line 13)
  50689. * iwithprefix: Directory Options. (line 86)
  50690. * iwithprefixbefore: Directory Options. (line 86)
  50691. * keep_private_externs: Darwin Options. (line 196)
  50692. * l: Link Options. (line 84)
  50693. * L: Directory Options. (line 118)
  50694. * lobjc: Link Options. (line 110)
  50695. * M: Preprocessor Options.
  50696. (line 77)
  50697. * m: RS/6000 and PowerPC Options.
  50698. (line 521)
  50699. * m1: SH Options. (line 9)
  50700. * m10: PDP-11 Options. (line 29)
  50701. * m128bit-long-double: x86 Options. (line 630)
  50702. * m16: x86 Options. (line 1482)
  50703. * m16-bit: CRIS Options. (line 63)
  50704. * m16-bit <1>: NDS32 Options. (line 51)
  50705. * m1reg-: Adapteva Epiphany Options.
  50706. (line 131)
  50707. * m2: SH Options. (line 12)
  50708. * m210: MCore Options. (line 43)
  50709. * m2a: SH Options. (line 30)
  50710. * m2a-nofpu: SH Options. (line 18)
  50711. * m2a-single: SH Options. (line 26)
  50712. * m2a-single-only: SH Options. (line 22)
  50713. * m3: SH Options. (line 34)
  50714. * m31: S/390 and zSeries Options.
  50715. (line 86)
  50716. * m32: RS/6000 and PowerPC Options.
  50717. (line 245)
  50718. * m32 <1>: SPARC Options. (line 315)
  50719. * m32 <2>: TILE-Gx Options. (line 23)
  50720. * m32 <3>: TILEPro Options. (line 13)
  50721. * m32 <4>: x86 Options. (line 1482)
  50722. * m32-bit: CRIS Options. (line 63)
  50723. * m32bit-doubles: RL78 Options. (line 73)
  50724. * m32bit-doubles <1>: RX Options. (line 10)
  50725. * m32r: M32R/D Options. (line 15)
  50726. * m32r2: M32R/D Options. (line 9)
  50727. * m32rx: M32R/D Options. (line 12)
  50728. * m340: MCore Options. (line 43)
  50729. * m3dnow: x86 Options. (line 853)
  50730. * m3dnowa: x86 Options. (line 854)
  50731. * m3e: SH Options. (line 37)
  50732. * m4: SH Options. (line 51)
  50733. * m4-100: SH Options. (line 54)
  50734. * m4-100-nofpu: SH Options. (line 57)
  50735. * m4-100-single: SH Options. (line 61)
  50736. * m4-100-single-only: SH Options. (line 65)
  50737. * m4-200: SH Options. (line 69)
  50738. * m4-200-nofpu: SH Options. (line 72)
  50739. * m4-200-single: SH Options. (line 76)
  50740. * m4-200-single-only: SH Options. (line 80)
  50741. * m4-300: SH Options. (line 84)
  50742. * m4-300-nofpu: SH Options. (line 87)
  50743. * m4-300-single: SH Options. (line 91)
  50744. * m4-300-single-only: SH Options. (line 95)
  50745. * m4-340: SH Options. (line 99)
  50746. * m4-500: SH Options. (line 102)
  50747. * m4-nofpu: SH Options. (line 40)
  50748. * m4-single: SH Options. (line 47)
  50749. * m4-single-only: SH Options. (line 43)
  50750. * m40: PDP-11 Options. (line 23)
  50751. * m45: PDP-11 Options. (line 26)
  50752. * m4a: SH Options. (line 118)
  50753. * m4a-nofpu: SH Options. (line 106)
  50754. * m4a-single: SH Options. (line 114)
  50755. * m4a-single-only: SH Options. (line 110)
  50756. * m4al: SH Options. (line 121)
  50757. * m4byte-functions: MCore Options. (line 27)
  50758. * m5200: M680x0 Options. (line 144)
  50759. * m5206e: M680x0 Options. (line 153)
  50760. * m528x: M680x0 Options. (line 157)
  50761. * m5307: M680x0 Options. (line 161)
  50762. * m5407: M680x0 Options. (line 165)
  50763. * m64: Nvidia PTX Options. (line 9)
  50764. * m64 <1>: RS/6000 and PowerPC Options.
  50765. (line 245)
  50766. * m64 <2>: S/390 and zSeries Options.
  50767. (line 86)
  50768. * m64 <3>: SPARC Options. (line 315)
  50769. * m64 <4>: TILE-Gx Options. (line 23)
  50770. * m64 <5>: x86 Options. (line 1482)
  50771. * m64bit-doubles: RL78 Options. (line 73)
  50772. * m64bit-doubles <1>: RX Options. (line 10)
  50773. * m68000: M680x0 Options. (line 93)
  50774. * m68010: M680x0 Options. (line 101)
  50775. * m68020: M680x0 Options. (line 107)
  50776. * m68020-40: M680x0 Options. (line 175)
  50777. * m68020-60: M680x0 Options. (line 184)
  50778. * m68030: M680x0 Options. (line 112)
  50779. * m68040: M680x0 Options. (line 117)
  50780. * m68060: M680x0 Options. (line 126)
  50781. * m68881: M680x0 Options. (line 194)
  50782. * m8-bit: CRIS Options. (line 63)
  50783. * m8bit-idiv: x86 Options. (line 1403)
  50784. * m8byte-align: V850 Options. (line 170)
  50785. * m96bit-long-double: x86 Options. (line 630)
  50786. * mA6: ARC Options. (line 23)
  50787. * mA7: ARC Options. (line 30)
  50788. * mabi: AArch64 Options. (line 9)
  50789. * mabi <1>: ARM Options. (line 9)
  50790. * mabi <2>: PRU Options. (line 28)
  50791. * mabi <3>: RISC-V Options. (line 17)
  50792. * mabi <4>: RS/6000 and PowerPC Options.
  50793. (line 552)
  50794. * mabi <5>: x86 Options. (line 1096)
  50795. * mabi <6>: Xtensa Options. (line 103)
  50796. * mabi=32: MIPS Options. (line 156)
  50797. * mabi=64: MIPS Options. (line 156)
  50798. * mabi=call0: Xtensa Options. (line 108)
  50799. * mabi=eabi: MIPS Options. (line 156)
  50800. * mabi=elfv1: RS/6000 and PowerPC Options.
  50801. (line 574)
  50802. * mabi=elfv2: RS/6000 and PowerPC Options.
  50803. (line 580)
  50804. * mabi=gnu: MMIX Options. (line 20)
  50805. * mabi=ibmlongdouble: RS/6000 and PowerPC Options.
  50806. (line 558)
  50807. * mabi=ieeelongdouble: RS/6000 and PowerPC Options.
  50808. (line 566)
  50809. * mabi=mmixware: MMIX Options. (line 20)
  50810. * mabi=n32: MIPS Options. (line 156)
  50811. * mabi=o64: MIPS Options. (line 156)
  50812. * mabi=windowed: Xtensa Options. (line 115)
  50813. * mabicalls: MIPS Options. (line 192)
  50814. * mabm: x86 Options. (line 856)
  50815. * mabort-on-noreturn: ARM Options. (line 751)
  50816. * mabs=2008: MIPS Options. (line 300)
  50817. * mabs=legacy: MIPS Options. (line 300)
  50818. * mabsdata: AVR Options. (line 162)
  50819. * mabsdiff: MeP Options. (line 7)
  50820. * mac0: PDP-11 Options. (line 16)
  50821. * macc-4: FRV Options. (line 139)
  50822. * macc-8: FRV Options. (line 143)
  50823. * maccumulate-args: AVR Options. (line 169)
  50824. * maccumulate-outgoing-args: SH Options. (line 314)
  50825. * maccumulate-outgoing-args <1>: x86 Options. (line 1140)
  50826. * maddress-mode=long: x86 Options. (line 1532)
  50827. * maddress-mode=short: x86 Options. (line 1537)
  50828. * mads: RS/6000 and PowerPC Options.
  50829. (line 614)
  50830. * madx: x86 Options. (line 857)
  50831. * maes: x86 Options. (line 834)
  50832. * maix-struct-return: RS/6000 and PowerPC Options.
  50833. (line 545)
  50834. * maix32: RS/6000 and PowerPC Options.
  50835. (line 283)
  50836. * maix64: RS/6000 and PowerPC Options.
  50837. (line 283)
  50838. * malign-300: H8/300 Options. (line 41)
  50839. * malign-call: ARC Options. (line 433)
  50840. * malign-data: RISC-V Options. (line 151)
  50841. * malign-data <1>: x86 Options. (line 670)
  50842. * malign-double: x86 Options. (line 615)
  50843. * malign-int: M680x0 Options. (line 261)
  50844. * malign-labels: FRV Options. (line 128)
  50845. * malign-loops: M32R/D Options. (line 73)
  50846. * malign-natural: RS/6000 and PowerPC Options.
  50847. (line 321)
  50848. * malign-power: RS/6000 and PowerPC Options.
  50849. (line 321)
  50850. * malign-stringops: x86 Options. (line 1276)
  50851. * mall-opts: MeP Options. (line 11)
  50852. * malloc-cc: FRV Options. (line 31)
  50853. * mallow-string-insns: RX Options. (line 150)
  50854. * mallregs: RL78 Options. (line 66)
  50855. * maltivec: RS/6000 and PowerPC Options.
  50856. (line 136)
  50857. * mam33: MN10300 Options. (line 17)
  50858. * mam33-2: MN10300 Options. (line 24)
  50859. * mam34: MN10300 Options. (line 27)
  50860. * mamx-bf16: x86 Options. (line 894)
  50861. * mamx-int8: x86 Options. (line 893)
  50862. * mamx-tile: x86 Options. (line 892)
  50863. * manchor: C-SKY Options. (line 126)
  50864. * mandroid: GNU/Linux Options. (line 26)
  50865. * mannotate-align: ARC Options. (line 382)
  50866. * mapcs: ARM Options. (line 21)
  50867. * mapcs-frame: ARM Options. (line 13)
  50868. * mapp-regs: SPARC Options. (line 10)
  50869. * mapp-regs <1>: V850 Options. (line 181)
  50870. * mARC600: ARC Options. (line 23)
  50871. * mARC601: ARC Options. (line 27)
  50872. * mARC700: ARC Options. (line 30)
  50873. * march: AArch64 Options. (line 150)
  50874. * march <1>: AMD GCN Options. (line 9)
  50875. * march <2>: ARM Options. (line 80)
  50876. * march <3>: C6X Options. (line 7)
  50877. * march <4>: CRIS Options. (line 10)
  50878. * march <5>: HPPA Options. (line 9)
  50879. * march <6>: HPPA Options. (line 162)
  50880. * march <7>: M680x0 Options. (line 12)
  50881. * march <8>: MIPS Options. (line 14)
  50882. * march <9>: NDS32 Options. (line 64)
  50883. * march <10>: Nios II Options. (line 94)
  50884. * march <11>: Nvidia PTX Options. (line 13)
  50885. * march <12>: RISC-V Options. (line 54)
  50886. * march <13>: S/390 and zSeries Options.
  50887. (line 148)
  50888. * march <14>: x86 Options. (line 9)
  50889. * march=: C-SKY Options. (line 9)
  50890. * marclinux: ARC Options. (line 388)
  50891. * marclinux_prof: ARC Options. (line 394)
  50892. * margonaut: ARC Options. (line 591)
  50893. * marm: ARM Options. (line 823)
  50894. * mas100-syntax: RX Options. (line 76)
  50895. * masm-hex: MSP430 Options. (line 9)
  50896. * masm-syntax-unified: ARM Options. (line 922)
  50897. * masm=DIALECT: x86 Options. (line 564)
  50898. * matomic: ARC Options. (line 155)
  50899. * matomic-model=MODEL: SH Options. (line 193)
  50900. * mauto-litpools: Xtensa Options. (line 60)
  50901. * mauto-modify-reg: ARC Options. (line 436)
  50902. * mauto-pic: IA-64 Options. (line 50)
  50903. * maverage: MeP Options. (line 16)
  50904. * mavoid-indexed-addresses: RS/6000 and PowerPC Options.
  50905. (line 360)
  50906. * mavx: x86 Options. (line 822)
  50907. * mavx2: x86 Options. (line 823)
  50908. * mavx256-split-unaligned-load: x86 Options. (line 1411)
  50909. * mavx256-split-unaligned-store: x86 Options. (line 1411)
  50910. * mavx5124fmaps: x86 Options. (line 886)
  50911. * mavx5124vnniw: x86 Options. (line 889)
  50912. * mavx512bf16: x86 Options. (line 873)
  50913. * mavx512bitalg: x86 Options. (line 878)
  50914. * mavx512bw: x86 Options. (line 829)
  50915. * mavx512cd: x86 Options. (line 827)
  50916. * mavx512dq: x86 Options. (line 830)
  50917. * mavx512er: x86 Options. (line 826)
  50918. * mavx512f: x86 Options. (line 824)
  50919. * mavx512ifma: x86 Options. (line 831)
  50920. * mavx512pf: x86 Options. (line 825)
  50921. * mavx512vbmi: x86 Options. (line 832)
  50922. * mavx512vbmi2: x86 Options. (line 872)
  50923. * mavx512vl: x86 Options. (line 828)
  50924. * mavx512vnni: x86 Options. (line 887)
  50925. * mavx512vp2intersect: x86 Options. (line 885)
  50926. * mavx512vpopcntdq: x86 Options. (line 884)
  50927. * mavxvnni: x86 Options. (line 888)
  50928. * max-vect-align: Adapteva Epiphany Options.
  50929. (line 119)
  50930. * mb: SH Options. (line 126)
  50931. * mbackchain: S/390 and zSeries Options.
  50932. (line 35)
  50933. * mbarrel-shift-enabled: LM32 Options. (line 9)
  50934. * mbarrel-shifter: ARC Options. (line 10)
  50935. * mbarrel_shifter: ARC Options. (line 608)
  50936. * mbase-addresses: MMIX Options. (line 53)
  50937. * mbased=: MeP Options. (line 20)
  50938. * mbbit-peephole: ARC Options. (line 439)
  50939. * mbe8: ARM Options. (line 72)
  50940. * mbig: RS/6000 and PowerPC Options.
  50941. (line 440)
  50942. * mbig-endian: AArch64 Options. (line 20)
  50943. * mbig-endian <1>: ARC Options. (line 594)
  50944. * mbig-endian <2>: ARM Options. (line 67)
  50945. * mbig-endian <3>: C6X Options. (line 13)
  50946. * mbig-endian <4>: C-SKY Options. (line 28)
  50947. * mbig-endian <5>: eBPF Options. (line 22)
  50948. * mbig-endian <6>: IA-64 Options. (line 9)
  50949. * mbig-endian <7>: MCore Options. (line 39)
  50950. * mbig-endian <8>: MicroBlaze Options. (line 56)
  50951. * mbig-endian <9>: NDS32 Options. (line 9)
  50952. * mbig-endian <10>: RISC-V Options. (line 157)
  50953. * mbig-endian <11>: RS/6000 and PowerPC Options.
  50954. (line 440)
  50955. * mbig-endian <12>: TILE-Gx Options. (line 29)
  50956. * mbig-endian-data: RX Options. (line 42)
  50957. * mbig-switch: V850 Options. (line 176)
  50958. * mbigtable: SH Options. (line 141)
  50959. * mbionic: GNU/Linux Options. (line 22)
  50960. * mbit-align: RS/6000 and PowerPC Options.
  50961. (line 392)
  50962. * mbit-ops: CR16 Options. (line 25)
  50963. * mbitfield: M680x0 Options. (line 231)
  50964. * mbitops: MeP Options. (line 26)
  50965. * mbitops <1>: SH Options. (line 145)
  50966. * mblock-compare-inline-limit: RS/6000 and PowerPC Options.
  50967. (line 694)
  50968. * mblock-compare-inline-loop-limit: RS/6000 and PowerPC Options.
  50969. (line 700)
  50970. * mblock-move-inline-limit: RS/6000 and PowerPC Options.
  50971. (line 688)
  50972. * mbmi: x86 Options. (line 858)
  50973. * mbmi2: x86 Options. (line 859)
  50974. * mboard: OpenRISC Options. (line 9)
  50975. * mbranch-cost: Adapteva Epiphany Options.
  50976. (line 18)
  50977. * mbranch-cost <1>: AVR Options. (line 184)
  50978. * mbranch-cost <2>: MIPS Options. (line 785)
  50979. * mbranch-cost <3>: RISC-V Options. (line 9)
  50980. * mbranch-cost=: C-SKY Options. (line 159)
  50981. * mbranch-cost=NUM: SH Options. (line 334)
  50982. * mbranch-cost=NUMBER: M32R/D Options. (line 82)
  50983. * mbranch-index: ARC Options. (line 329)
  50984. * mbranch-likely: MIPS Options. (line 792)
  50985. * mbranch-predict: MMIX Options. (line 48)
  50986. * mbranch-protection: AArch64 Options. (line 264)
  50987. * mbss-plt: RS/6000 and PowerPC Options.
  50988. (line 160)
  50989. * mbuild-constants: DEC Alpha Options. (line 141)
  50990. * mbwx: DEC Alpha Options. (line 163)
  50991. * mbypass-cache: Nios II Options. (line 103)
  50992. * mc68000: M680x0 Options. (line 93)
  50993. * mc68020: M680x0 Options. (line 107)
  50994. * mc=: MeP Options. (line 31)
  50995. * mcache: C-SKY Options. (line 93)
  50996. * mcache-block-size: NDS32 Options. (line 60)
  50997. * mcache-volatile: Nios II Options. (line 109)
  50998. * mcall-eabi: RS/6000 and PowerPC Options.
  50999. (line 515)
  51000. * mcall-freebsd: RS/6000 and PowerPC Options.
  51001. (line 529)
  51002. * mcall-linux: RS/6000 and PowerPC Options.
  51003. (line 525)
  51004. * mcall-ms2sysv-xlogues: x86 Options. (line 1116)
  51005. * mcall-netbsd: RS/6000 and PowerPC Options.
  51006. (line 533)
  51007. * mcall-netbsd <1>: RS/6000 and PowerPC Options.
  51008. (line 537)
  51009. * mcall-prologues: AVR Options. (line 189)
  51010. * mcall-sysv: RS/6000 and PowerPC Options.
  51011. (line 507)
  51012. * mcall-sysv-eabi: RS/6000 and PowerPC Options.
  51013. (line 515)
  51014. * mcall-sysv-noeabi: RS/6000 and PowerPC Options.
  51015. (line 518)
  51016. * mcallee-super-interworking: ARM Options. (line 852)
  51017. * mcaller-copies: HPPA Options. (line 23)
  51018. * mcaller-super-interworking: ARM Options. (line 859)
  51019. * mcallgraph-data: MCore Options. (line 31)
  51020. * mcase-vector-pcrel: ARC Options. (line 448)
  51021. * mcbcond: SPARC Options. (line 260)
  51022. * mcbranch-force-delay-slot: SH Options. (line 349)
  51023. * mcc-init: CRIS Options. (line 41)
  51024. * mccrt: C-SKY Options. (line 155)
  51025. * mcfv4e: M680x0 Options. (line 169)
  51026. * mcheck-zero-division: MIPS Options. (line 570)
  51027. * mcix: DEC Alpha Options. (line 163)
  51028. * mcld: x86 Options. (line 949)
  51029. * mcldemote: x86 Options. (line 890)
  51030. * mclear-hwcap: Solaris 2 Options. (line 9)
  51031. * mclflushopt: x86 Options. (line 836)
  51032. * mclip: MeP Options. (line 35)
  51033. * mclwb: x86 Options. (line 837)
  51034. * mclzero: x86 Options. (line 870)
  51035. * mcmodel: NDS32 Options. (line 67)
  51036. * mcmodel <1>: SPARC Options. (line 320)
  51037. * mcmodel=kernel: x86 Options. (line 1516)
  51038. * mcmodel=large: AArch64 Options. (line 45)
  51039. * mcmodel=large <1>: RS/6000 and PowerPC Options.
  51040. (line 130)
  51041. * mcmodel=large <2>: TILE-Gx Options. (line 14)
  51042. * mcmodel=large <3>: x86 Options. (line 1528)
  51043. * mcmodel=medany: RISC-V Options. (line 129)
  51044. * mcmodel=medium: RS/6000 and PowerPC Options.
  51045. (line 125)
  51046. * mcmodel=medium <1>: x86 Options. (line 1521)
  51047. * mcmodel=medlow: RISC-V Options. (line 122)
  51048. * mcmodel=small: AArch64 Options. (line 39)
  51049. * mcmodel=small <1>: RS/6000 and PowerPC Options.
  51050. (line 121)
  51051. * mcmodel=small <2>: TILE-Gx Options. (line 9)
  51052. * mcmodel=small <3>: x86 Options. (line 1510)
  51053. * mcmodel=tiny: AArch64 Options. (line 34)
  51054. * mcmov: NDS32 Options. (line 21)
  51055. * mcmov <1>: OpenRISC Options. (line 45)
  51056. * mcmove: Adapteva Epiphany Options.
  51057. (line 23)
  51058. * mcmpb: RS/6000 and PowerPC Options.
  51059. (line 25)
  51060. * mcmse: ARM Options. (line 951)
  51061. * mcode-density: ARC Options. (line 163)
  51062. * mcode-density-frame: ARC Options. (line 509)
  51063. * mcode-readable: MIPS Options. (line 530)
  51064. * mcode-region: MSP430 Options. (line 150)
  51065. * mcompact-branches=always: MIPS Options. (line 804)
  51066. * mcompact-branches=never: MIPS Options. (line 804)
  51067. * mcompact-branches=optimal: MIPS Options. (line 804)
  51068. * mcompact-casesi: ARC Options. (line 452)
  51069. * mcompat-align-parm: RS/6000 and PowerPC Options.
  51070. (line 899)
  51071. * mcompress: FT32 Options. (line 26)
  51072. * mcond-exec: FRV Options. (line 187)
  51073. * mcond-move: FRV Options. (line 159)
  51074. * mconfig=: MeP Options. (line 39)
  51075. * mconsole: x86 Windows Options.
  51076. (line 9)
  51077. * mconst-align: CRIS Options. (line 54)
  51078. * mconst16: Xtensa Options. (line 10)
  51079. * mconstant-gp: IA-64 Options. (line 46)
  51080. * mconstpool: C-SKY Options. (line 143)
  51081. * mcop: MeP Options. (line 48)
  51082. * mcop32: MeP Options. (line 53)
  51083. * mcop64: MeP Options. (line 56)
  51084. * mcorea: Blackfin Options. (line 154)
  51085. * mcoreb: Blackfin Options. (line 161)
  51086. * mcp: C-SKY Options. (line 90)
  51087. * mcpu: AArch64 Options. (line 220)
  51088. * mcpu <1>: ARC Options. (line 18)
  51089. * mcpu <2>: ARM Options. (line 621)
  51090. * mcpu <3>: CRIS Options. (line 10)
  51091. * mcpu <4>: DEC Alpha Options. (line 215)
  51092. * mcpu <5>: FRV Options. (line 258)
  51093. * mcpu <6>: M680x0 Options. (line 28)
  51094. * mcpu <7>: picoChip Options. (line 9)
  51095. * mcpu <8>: RISC-V Options. (line 65)
  51096. * mcpu <9>: RL78 Options. (line 32)
  51097. * mcpu <10>: RS/6000 and PowerPC Options.
  51098. (line 62)
  51099. * mcpu <11>: RX Options. (line 30)
  51100. * mcpu <12>: SPARC Options. (line 115)
  51101. * mcpu <13>: TILE-Gx Options. (line 18)
  51102. * mcpu <14>: TILEPro Options. (line 9)
  51103. * mcpu <15>: Visium Options. (line 33)
  51104. * mcpu <16>: x86 Options. (line 510)
  51105. * mcpu32: M680x0 Options. (line 135)
  51106. * mcpu=: Blackfin Options. (line 7)
  51107. * mcpu= <1>: C-SKY Options. (line 14)
  51108. * mcpu= <2>: M32C Options. (line 7)
  51109. * mcpu= <3>: MicroBlaze Options. (line 20)
  51110. * mcpu= <4>: MSP430 Options. (line 72)
  51111. * mcr16c: CR16 Options. (line 14)
  51112. * mcr16cplus: CR16 Options. (line 14)
  51113. * mcrc: MIPS Options. (line 416)
  51114. * mcrc32: x86 Options. (line 1017)
  51115. * mcrypto: RS/6000 and PowerPC Options.
  51116. (line 177)
  51117. * mcsync-anomaly: Blackfin Options. (line 57)
  51118. * mcsync-anomaly <1>: Blackfin Options. (line 63)
  51119. * mctor-dtor: NDS32 Options. (line 81)
  51120. * mcustom-fpu-cfg: Nios II Options. (line 259)
  51121. * mcustom-INSN: Nios II Options. (line 139)
  51122. * mcx16: x86 Options. (line 990)
  51123. * MD: Preprocessor Options.
  51124. (line 172)
  51125. * mdalign: SH Options. (line 132)
  51126. * mdata-align: CRIS Options. (line 54)
  51127. * mdata-model: CR16 Options. (line 28)
  51128. * mdata-region: MSP430 Options. (line 150)
  51129. * mdc: MeP Options. (line 62)
  51130. * mdebug: M32R/D Options. (line 69)
  51131. * mdebug <1>: S/390 and zSeries Options.
  51132. (line 144)
  51133. * mdebug <2>: Visium Options. (line 7)
  51134. * mdebug-main=PREFIX: VMS Options. (line 13)
  51135. * mdec-asm: PDP-11 Options. (line 46)
  51136. * mdisable-callt: V850 Options. (line 92)
  51137. * mdisable-fpregs: HPPA Options. (line 34)
  51138. * mdisable-indexing: HPPA Options. (line 40)
  51139. * mdiv: C-SKY Options. (line 109)
  51140. * mdiv <1>: M680x0 Options. (line 206)
  51141. * mdiv <2>: MCore Options. (line 15)
  51142. * mdiv <3>: MeP Options. (line 65)
  51143. * mdiv <4>: RISC-V Options. (line 49)
  51144. * mdiv-rem: ARC Options. (line 160)
  51145. * mdiv=STRATEGY: SH Options. (line 284)
  51146. * mdivide-breaks: MIPS Options. (line 576)
  51147. * mdivide-enabled: LM32 Options. (line 12)
  51148. * mdivide-traps: MIPS Options. (line 576)
  51149. * mdivsi3_libfunc=NAME: SH Options. (line 320)
  51150. * mdll: x86 Windows Options.
  51151. (line 16)
  51152. * mdlmzb: RS/6000 and PowerPC Options.
  51153. (line 385)
  51154. * mdmx: MIPS Options. (line 376)
  51155. * mdouble: AVR Options. (line 194)
  51156. * mdouble <1>: FRV Options. (line 48)
  51157. * mdouble-float: C-SKY Options. (line 58)
  51158. * mdouble-float <1>: MIPS Options. (line 288)
  51159. * mdouble-float <2>: OpenRISC Options. (line 33)
  51160. * mdpfp: ARC Options. (line 99)
  51161. * mdpfp-compact: ARC Options. (line 100)
  51162. * mdpfp-fast: ARC Options. (line 104)
  51163. * mdpfp_compact: ARC Options. (line 611)
  51164. * mdpfp_fast: ARC Options. (line 614)
  51165. * mdsp: C-SKY Options. (line 102)
  51166. * mdsp <1>: MIPS Options. (line 353)
  51167. * mdsp-packa: ARC Options. (line 335)
  51168. * mdspr2: MIPS Options. (line 359)
  51169. * mdsp_packa: ARC Options. (line 617)
  51170. * mdump-tune-features: x86 Options. (line 931)
  51171. * mdvbf: ARC Options. (line 340)
  51172. * mdwarf2-asm: IA-64 Options. (line 94)
  51173. * mdword: FRV Options. (line 40)
  51174. * mdword <1>: FRV Options. (line 44)
  51175. * mdynamic-no-pic: RS/6000 and PowerPC Options.
  51176. (line 445)
  51177. * mea: ARC Options. (line 112)
  51178. * mEA: ARC Options. (line 620)
  51179. * meabi: RS/6000 and PowerPC Options.
  51180. (line 633)
  51181. * mearly-cbranchsi: ARC Options. (line 474)
  51182. * mearly-stop-bits: IA-64 Options. (line 100)
  51183. * meb: MeP Options. (line 68)
  51184. * meb <1>: Moxie Options. (line 7)
  51185. * meb <2>: Nios II Options. (line 90)
  51186. * meb <3>: Score Options. (line 9)
  51187. * medsp: C-SKY Options. (line 103)
  51188. * mel: MeP Options. (line 71)
  51189. * mel <1>: Moxie Options. (line 11)
  51190. * mel <2>: Nios II Options. (line 90)
  51191. * mel <3>: Score Options. (line 12)
  51192. * melf: CRIS Options. (line 86)
  51193. * melf <1>: MMIX Options. (line 43)
  51194. * melrw: C-SKY Options. (line 76)
  51195. * memb: RS/6000 and PowerPC Options.
  51196. (line 628)
  51197. * membedded-data: MIPS Options. (line 517)
  51198. * memregs=: M32C Options. (line 21)
  51199. * menqcmd: x86 Options. (line 881)
  51200. * mep: V850 Options. (line 16)
  51201. * mepsilon: MMIX Options. (line 15)
  51202. * mesa: S/390 and zSeries Options.
  51203. (line 94)
  51204. * metrax100: CRIS Options. (line 26)
  51205. * metrax4: CRIS Options. (line 26)
  51206. * meva: MIPS Options. (line 403)
  51207. * mexpand-adddi: ARC Options. (line 477)
  51208. * mexplicit-relocs: DEC Alpha Options. (line 176)
  51209. * mexplicit-relocs <1>: MIPS Options. (line 561)
  51210. * mexr: H8/300 Options. (line 28)
  51211. * mexr <1>: H8/300 Options. (line 33)
  51212. * mext-perf: NDS32 Options. (line 27)
  51213. * mext-perf2: NDS32 Options. (line 33)
  51214. * mext-string: NDS32 Options. (line 39)
  51215. * mextern-sdata: MIPS Options. (line 480)
  51216. * MF: Preprocessor Options.
  51217. (line 111)
  51218. * mf16c: x86 Options. (line 841)
  51219. * mfancy-math-387: x86 Options. (line 605)
  51220. * mfast-fp: Blackfin Options. (line 130)
  51221. * mfast-indirect-calls: HPPA Options. (line 52)
  51222. * mfast-sw-div: Nios II Options. (line 115)
  51223. * mfaster-structs: SPARC Options. (line 91)
  51224. * mfdiv: RISC-V Options. (line 42)
  51225. * mfdivdu: C-SKY Options. (line 64)
  51226. * mfdpic: ARM Options. (line 958)
  51227. * mfdpic <1>: FRV Options. (line 72)
  51228. * mfentry: x86 Options. (line 1350)
  51229. * mfentry-name: x86 Options. (line 1381)
  51230. * mfentry-section: x86 Options. (line 1385)
  51231. * mfix: DEC Alpha Options. (line 163)
  51232. * mfix-24k: MIPS Options. (line 641)
  51233. * mfix-and-continue: Darwin Options. (line 104)
  51234. * mfix-at697f: SPARC Options. (line 294)
  51235. * mfix-cortex-a53-835769: AArch64 Options. (line 90)
  51236. * mfix-cortex-a53-843419: AArch64 Options. (line 97)
  51237. * mfix-cortex-m3-ldrd: ARM Options. (line 893)
  51238. * mfix-gr712rc: SPARC Options. (line 307)
  51239. * mfix-r10000: MIPS Options. (line 663)
  51240. * mfix-r4000: MIPS Options. (line 647)
  51241. * mfix-r4400: MIPS Options. (line 657)
  51242. * mfix-r5900: MIPS Options. (line 674)
  51243. * mfix-rm7000: MIPS Options. (line 684)
  51244. * mfix-sb1: MIPS Options. (line 709)
  51245. * mfix-ut699: SPARC Options. (line 299)
  51246. * mfix-ut700: SPARC Options. (line 303)
  51247. * mfix-vr4120: MIPS Options. (line 689)
  51248. * mfix-vr4130: MIPS Options. (line 702)
  51249. * mfixed-cc: FRV Options. (line 35)
  51250. * mfixed-range: HPPA Options. (line 59)
  51251. * mfixed-range <1>: IA-64 Options. (line 105)
  51252. * mfixed-range <2>: SH Options. (line 327)
  51253. * mflat: SPARC Options. (line 22)
  51254. * mflip-mips16: MIPS Options. (line 128)
  51255. * mflip-thumb: ARM Options. (line 835)
  51256. * mfloat-abi: ARM Options. (line 41)
  51257. * mfloat-abi <1>: C-SKY Options. (line 35)
  51258. * mfloat-ieee: DEC Alpha Options. (line 171)
  51259. * mfloat-vax: DEC Alpha Options. (line 171)
  51260. * mfloat128: RS/6000 and PowerPC Options.
  51261. (line 214)
  51262. * mfloat128-hardware: RS/6000 and PowerPC Options.
  51263. (line 236)
  51264. * mflush-func: MIPS Options. (line 776)
  51265. * mflush-func=NAME: M32R/D Options. (line 93)
  51266. * mflush-trap=NUMBER: M32R/D Options. (line 86)
  51267. * mfma: x86 Options. (line 842)
  51268. * mfma4: x86 Options. (line 845)
  51269. * mfmaf: SPARC Options. (line 267)
  51270. * mfmovd: SH Options. (line 148)
  51271. * mforce-indirect-call: x86 Options. (line 1105)
  51272. * mforce-no-pic: Xtensa Options. (line 41)
  51273. * mfp-exceptions: MIPS Options. (line 824)
  51274. * mfp-mode: Adapteva Epiphany Options.
  51275. (line 71)
  51276. * mfp-reg: DEC Alpha Options. (line 25)
  51277. * mfp-ret-in-387: x86 Options. (line 595)
  51278. * mfp-rounding-mode: DEC Alpha Options. (line 85)
  51279. * mfp-trap-mode: DEC Alpha Options. (line 63)
  51280. * mfp16-format: ARM Options. (line 729)
  51281. * mfp32: MIPS Options. (line 258)
  51282. * mfp64: MIPS Options. (line 261)
  51283. * mfpmath: Optimize Options. (line 2265)
  51284. * mfpmath <1>: x86 Options. (line 513)
  51285. * mfpr-32: FRV Options. (line 15)
  51286. * mfpr-64: FRV Options. (line 19)
  51287. * mfprnd: RS/6000 and PowerPC Options.
  51288. (line 25)
  51289. * mfpu: ARC Options. (line 231)
  51290. * mfpu <1>: ARM Options. (line 701)
  51291. * mfpu <2>: PDP-11 Options. (line 9)
  51292. * mfpu <3>: SPARC Options. (line 34)
  51293. * mfpu <4>: Visium Options. (line 19)
  51294. * mfpu=: C-SKY Options. (line 69)
  51295. * mfpxx: MIPS Options. (line 264)
  51296. * mfract-convert-truncate: AVR Options. (line 284)
  51297. * mframe-header-opt: MIPS Options. (line 885)
  51298. * mfriz: RS/6000 and PowerPC Options.
  51299. (line 870)
  51300. * mfsca: SH Options. (line 365)
  51301. * mfsgsbase: x86 Options. (line 838)
  51302. * mfsmuld: SPARC Options. (line 274)
  51303. * mfsrra: SH Options. (line 374)
  51304. * mft32b: FT32 Options. (line 23)
  51305. * mfull-regs: NDS32 Options. (line 18)
  51306. * mfull-toc: RS/6000 and PowerPC Options.
  51307. (line 256)
  51308. * mfunction-return: x86 Options. (line 1453)
  51309. * mfused-madd: IA-64 Options. (line 88)
  51310. * mfused-madd <1>: MIPS Options. (line 624)
  51311. * mfused-madd <2>: RS/6000 and PowerPC Options.
  51312. (line 369)
  51313. * mfused-madd <3>: S/390 and zSeries Options.
  51314. (line 182)
  51315. * mfused-madd <4>: SH Options. (line 356)
  51316. * mfused-madd <5>: Xtensa Options. (line 19)
  51317. * mfxsr: x86 Options. (line 861)
  51318. * MG: Preprocessor Options.
  51319. (line 122)
  51320. * mg: VAX Options. (line 17)
  51321. * mg10: RL78 Options. (line 62)
  51322. * mg13: RL78 Options. (line 62)
  51323. * mg14: RL78 Options. (line 62)
  51324. * mgas: HPPA Options. (line 75)
  51325. * mgas-isr-prologues: AVR Options. (line 202)
  51326. * mgcc-abi: V850 Options. (line 148)
  51327. * mgeneral-regs-only: AArch64 Options. (line 24)
  51328. * mgeneral-regs-only <1>: ARM Options. (line 57)
  51329. * mgeneral-regs-only <2>: x86 Options. (line 1429)
  51330. * mgfni: x86 Options. (line 874)
  51331. * mghs: V850 Options. (line 127)
  51332. * mginv: MIPS Options. (line 421)
  51333. * mglibc: GNU/Linux Options. (line 9)
  51334. * mgnu: VAX Options. (line 13)
  51335. * mgnu-as: IA-64 Options. (line 18)
  51336. * mgnu-asm: PDP-11 Options. (line 49)
  51337. * mgnu-attribute: RS/6000 and PowerPC Options.
  51338. (line 587)
  51339. * mgnu-ld: HPPA Options. (line 111)
  51340. * mgnu-ld <1>: IA-64 Options. (line 23)
  51341. * mgomp: Nvidia PTX Options. (line 53)
  51342. * mgotplt: CRIS Options. (line 80)
  51343. * mgp32: MIPS Options. (line 252)
  51344. * mgp64: MIPS Options. (line 255)
  51345. * mgpopt: MIPS Options. (line 502)
  51346. * mgpopt <1>: Nios II Options. (line 16)
  51347. * mgpr-32: FRV Options. (line 7)
  51348. * mgpr-64: FRV Options. (line 11)
  51349. * mgprel-ro: FRV Options. (line 99)
  51350. * mgprel-sec: Nios II Options. (line 65)
  51351. * mh: H8/300 Options. (line 14)
  51352. * mhal: Nios II Options. (line 332)
  51353. * mhalf-reg-file: Adapteva Epiphany Options.
  51354. (line 9)
  51355. * mhard-dfp: RS/6000 and PowerPC Options.
  51356. (line 25)
  51357. * mhard-dfp <1>: S/390 and zSeries Options.
  51358. (line 20)
  51359. * mhard-div: OpenRISC Options. (line 19)
  51360. * mhard-float: C-SKY Options. (line 51)
  51361. * mhard-float <1>: FRV Options. (line 23)
  51362. * mhard-float <2>: M680x0 Options. (line 194)
  51363. * mhard-float <3>: MicroBlaze Options. (line 10)
  51364. * mhard-float <4>: MIPS Options. (line 267)
  51365. * mhard-float <5>: OpenRISC Options. (line 29)
  51366. * mhard-float <6>: RS/6000 and PowerPC Options.
  51367. (line 333)
  51368. * mhard-float <7>: S/390 and zSeries Options.
  51369. (line 11)
  51370. * mhard-float <8>: SPARC Options. (line 34)
  51371. * mhard-float <9>: V850 Options. (line 113)
  51372. * mhard-float <10>: Visium Options. (line 19)
  51373. * mhard-float <11>: x86 Options. (line 578)
  51374. * mhard-mul: OpenRISC Options. (line 24)
  51375. * mhard-quad-float: SPARC Options. (line 55)
  51376. * mharden-sls: AArch64 Options. (line 277)
  51377. * mhardlit: MCore Options. (line 10)
  51378. * mhigh-registers: C-SKY Options. (line 120)
  51379. * mhle: x86 Options. (line 867)
  51380. * mhotpatch: S/390 and zSeries Options.
  51381. (line 217)
  51382. * mhp-ld: HPPA Options. (line 123)
  51383. * mhreset: x86 Options. (line 895)
  51384. * mhtm: RS/6000 and PowerPC Options.
  51385. (line 183)
  51386. * mhtm <1>: S/390 and zSeries Options.
  51387. (line 104)
  51388. * mhw-div: Nios II Options. (line 124)
  51389. * mhw-mul: Nios II Options. (line 124)
  51390. * mhw-mulx: Nios II Options. (line 124)
  51391. * mhwmult=: MSP430 Options. (line 93)
  51392. * miamcu: x86 Options. (line 1482)
  51393. * micplb: Blackfin Options. (line 175)
  51394. * mid-shared-library: Blackfin Options. (line 78)
  51395. * mid-shared-library <1>: Blackfin Options. (line 85)
  51396. * mieee: DEC Alpha Options. (line 39)
  51397. * mieee <1>: SH Options. (line 165)
  51398. * mieee-conformant: DEC Alpha Options. (line 134)
  51399. * mieee-fp: x86 Options. (line 572)
  51400. * mieee-with-inexact: DEC Alpha Options. (line 52)
  51401. * milp32: IA-64 Options. (line 121)
  51402. * mimadd: MIPS Options. (line 617)
  51403. * mimpure-text: Solaris 2 Options. (line 15)
  51404. * mincoming-stack-boundary: x86 Options. (line 788)
  51405. * mindexed-loads: ARC Options. (line 481)
  51406. * mindirect-branch: x86 Options. (line 1434)
  51407. * mindirect-branch-register: x86 Options. (line 1472)
  51408. * minline-all-stringops: x86 Options. (line 1281)
  51409. * minline-float-divide-max-throughput: IA-64 Options. (line 58)
  51410. * minline-float-divide-min-latency: IA-64 Options. (line 54)
  51411. * minline-ic_invalidate: SH Options. (line 174)
  51412. * minline-int-divide: IA-64 Options. (line 73)
  51413. * minline-int-divide-max-throughput: IA-64 Options. (line 69)
  51414. * minline-int-divide-min-latency: IA-64 Options. (line 65)
  51415. * minline-plt: Blackfin Options. (line 135)
  51416. * minline-plt <1>: FRV Options. (line 81)
  51417. * minline-sqrt-max-throughput: IA-64 Options. (line 80)
  51418. * minline-sqrt-min-latency: IA-64 Options. (line 76)
  51419. * minline-stringops-dynamically: x86 Options. (line 1289)
  51420. * minrt: MSP430 Options. (line 115)
  51421. * minrt <1>: PRU Options. (line 9)
  51422. * minsert-sched-nops: RS/6000 and PowerPC Options.
  51423. (line 485)
  51424. * minstrument-return: x86 Options. (line 1369)
  51425. * mint-register: RX Options. (line 100)
  51426. * mint16: PDP-11 Options. (line 33)
  51427. * mint32: CR16 Options. (line 22)
  51428. * mint32 <1>: H8/300 Options. (line 38)
  51429. * mint32 <2>: PDP-11 Options. (line 37)
  51430. * mint8: AVR Options. (line 211)
  51431. * minterlink-compressed: MIPS Options. (line 135)
  51432. * minterlink-mips16: MIPS Options. (line 147)
  51433. * mio-volatile: MeP Options. (line 74)
  51434. * mips1: MIPS Options. (line 80)
  51435. * mips16: MIPS Options. (line 120)
  51436. * mips2: MIPS Options. (line 83)
  51437. * mips3: MIPS Options. (line 86)
  51438. * mips32: MIPS Options. (line 92)
  51439. * mips32r3: MIPS Options. (line 95)
  51440. * mips32r5: MIPS Options. (line 98)
  51441. * mips32r6: MIPS Options. (line 101)
  51442. * mips3d: MIPS Options. (line 382)
  51443. * mips4: MIPS Options. (line 89)
  51444. * mips64: MIPS Options. (line 104)
  51445. * mips64r2: MIPS Options. (line 107)
  51446. * mips64r3: MIPS Options. (line 110)
  51447. * mips64r5: MIPS Options. (line 113)
  51448. * mips64r6: MIPS Options. (line 116)
  51449. * mirq-ctrl-saved: ARC Options. (line 296)
  51450. * misel: RS/6000 and PowerPC Options.
  51451. (line 166)
  51452. * misize: ARC Options. (line 379)
  51453. * misize <1>: SH Options. (line 186)
  51454. * misr-vector-size: NDS32 Options. (line 57)
  51455. * missue-rate=NUMBER: M32R/D Options. (line 79)
  51456. * mistack: C-SKY Options. (line 81)
  51457. * mivc2: MeP Options. (line 59)
  51458. * mjli-alawys: ARC Options. (line 14)
  51459. * mjsr: RX Options. (line 169)
  51460. * mjump-in-delay: HPPA Options. (line 30)
  51461. * mkernel: Darwin Options. (line 82)
  51462. * mkernel <1>: eBPF Options. (line 13)
  51463. * mkl: x86 Options. (line 896)
  51464. * mknuthdiv: MMIX Options. (line 32)
  51465. * ml: MeP Options. (line 78)
  51466. * ml <1>: SH Options. (line 129)
  51467. * mlarge: MSP430 Options. (line 82)
  51468. * mlarge-data: DEC Alpha Options. (line 187)
  51469. * mlarge-data-threshold: x86 Options. (line 677)
  51470. * mlarge-text: DEC Alpha Options. (line 205)
  51471. * mleadz: MeP Options. (line 81)
  51472. * mleaf-id-shared-library: Blackfin Options. (line 89)
  51473. * mleaf-id-shared-library <1>: Blackfin Options. (line 95)
  51474. * mlibfuncs: MMIX Options. (line 10)
  51475. * mlibrary-pic: FRV Options. (line 135)
  51476. * mlinked-fp: FRV Options. (line 116)
  51477. * mlinker-opt: HPPA Options. (line 85)
  51478. * mlinux: CRIS Options. (line 90)
  51479. * mlittle: RS/6000 and PowerPC Options.
  51480. (line 434)
  51481. * mlittle-endian: AArch64 Options. (line 30)
  51482. * mlittle-endian <1>: ARC Options. (line 601)
  51483. * mlittle-endian <2>: ARM Options. (line 63)
  51484. * mlittle-endian <3>: C6X Options. (line 16)
  51485. * mlittle-endian <4>: C-SKY Options. (line 30)
  51486. * mlittle-endian <5>: eBPF Options. (line 25)
  51487. * mlittle-endian <6>: IA-64 Options. (line 13)
  51488. * mlittle-endian <7>: MCore Options. (line 39)
  51489. * mlittle-endian <8>: MicroBlaze Options. (line 59)
  51490. * mlittle-endian <9>: NDS32 Options. (line 12)
  51491. * mlittle-endian <10>: RISC-V Options. (line 161)
  51492. * mlittle-endian <11>: RS/6000 and PowerPC Options.
  51493. (line 434)
  51494. * mlittle-endian <12>: TILE-Gx Options. (line 29)
  51495. * mlittle-endian-data: RX Options. (line 42)
  51496. * mliw: MN10300 Options. (line 54)
  51497. * mll64: ARC Options. (line 167)
  51498. * mllsc: MIPS Options. (line 339)
  51499. * mload-store-pairs: MIPS Options. (line 590)
  51500. * mlocal-sdata: MIPS Options. (line 468)
  51501. * mlock: ARC Options. (line 345)
  51502. * mlong-calls: Adapteva Epiphany Options.
  51503. (line 55)
  51504. * mlong-calls <1>: ARC Options. (line 402)
  51505. * mlong-calls <2>: ARM Options. (line 756)
  51506. * mlong-calls <3>: Blackfin Options. (line 118)
  51507. * mlong-calls <4>: FRV Options. (line 122)
  51508. * mlong-calls <5>: HPPA Options. (line 136)
  51509. * mlong-calls <6>: MIPS Options. (line 603)
  51510. * mlong-calls <7>: V850 Options. (line 10)
  51511. * mlong-double: AVR Options. (line 194)
  51512. * mlong-double-128: S/390 and zSeries Options.
  51513. (line 29)
  51514. * mlong-double-128 <1>: x86 Options. (line 656)
  51515. * mlong-double-64: S/390 and zSeries Options.
  51516. (line 29)
  51517. * mlong-double-64 <1>: x86 Options. (line 656)
  51518. * mlong-double-80: x86 Options. (line 656)
  51519. * mlong-jump-table-offsets: M680x0 Options. (line 339)
  51520. * mlong-jumps: V850 Options. (line 108)
  51521. * mlong-load-store: HPPA Options. (line 66)
  51522. * mlong32: MIPS Options. (line 443)
  51523. * mlong64: MIPS Options. (line 438)
  51524. * mlongcall: RS/6000 and PowerPC Options.
  51525. (line 728)
  51526. * mlongcalls: Xtensa Options. (line 87)
  51527. * mloongson-ext: MIPS Options. (line 430)
  51528. * mloongson-ext2: MIPS Options. (line 434)
  51529. * mloongson-mmi: MIPS Options. (line 425)
  51530. * mloop: PRU Options. (line 25)
  51531. * mloop <1>: V850 Options. (line 121)
  51532. * mlow-precision-div: AArch64 Options. (line 120)
  51533. * mlow-precision-recip-sqrt: AArch64 Options. (line 103)
  51534. * mlow-precision-sqrt: AArch64 Options. (line 111)
  51535. * mlow64k: Blackfin Options. (line 67)
  51536. * mlp64: IA-64 Options. (line 121)
  51537. * mlpc-width: ARC Options. (line 313)
  51538. * mlra: ARC Options. (line 486)
  51539. * mlra <1>: FT32 Options. (line 16)
  51540. * mlra <2>: PDP-11 Options. (line 52)
  51541. * mlra <3>: SPARC Options. (line 111)
  51542. * mlra-priority-compact: ARC Options. (line 494)
  51543. * mlra-priority-noncompact: ARC Options. (line 497)
  51544. * mlra-priority-none: ARC Options. (line 491)
  51545. * mlwp: x86 Options. (line 852)
  51546. * mlxc1-sxc1: MIPS Options. (line 895)
  51547. * mlzcnt: x86 Options. (line 860)
  51548. * MM: Preprocessor Options.
  51549. (line 102)
  51550. * mm: MeP Options. (line 84)
  51551. * mmac: CR16 Options. (line 9)
  51552. * mmac <1>: Score Options. (line 21)
  51553. * mmac-24: ARC Options. (line 354)
  51554. * mmac-d16: ARC Options. (line 350)
  51555. * mmac_24: ARC Options. (line 623)
  51556. * mmac_d16: ARC Options. (line 626)
  51557. * mmad: MIPS Options. (line 612)
  51558. * mmadd4: MIPS Options. (line 900)
  51559. * mmain-is-OS_task: AVR Options. (line 217)
  51560. * mmainkernel: Nvidia PTX Options. (line 18)
  51561. * mmalloc64: VMS Options. (line 17)
  51562. * mmanual-endbr: x86 Options. (line 1110)
  51563. * mmax: DEC Alpha Options. (line 163)
  51564. * mmax-constant-size: RX Options. (line 82)
  51565. * mmax-inline-shift=: MSP430 Options. (line 134)
  51566. * mmax-stack-frame: CRIS Options. (line 22)
  51567. * mmcount-ra-address: MIPS Options. (line 872)
  51568. * mmcu: AVR Options. (line 9)
  51569. * mmcu <1>: MIPS Options. (line 399)
  51570. * mmcu <2>: PRU Options. (line 17)
  51571. * mmcu=: MSP430 Options. (line 14)
  51572. * MMD: Preprocessor Options.
  51573. (line 188)
  51574. * mmedia: FRV Options. (line 56)
  51575. * mmedium-calls: ARC Options. (line 406)
  51576. * mmemcpy: MicroBlaze Options. (line 13)
  51577. * mmemcpy <1>: MIPS Options. (line 597)
  51578. * mmemcpy-strategy=STRATEGY: x86 Options. (line 1311)
  51579. * mmemory-latency: DEC Alpha Options. (line 268)
  51580. * mmemory-model: SPARC Options. (line 348)
  51581. * mmemset-strategy=STRATEGY: x86 Options. (line 1323)
  51582. * mmfcrf: RS/6000 and PowerPC Options.
  51583. (line 25)
  51584. * mmicromips: MIPS Options. (line 387)
  51585. * mmillicode: ARC Options. (line 500)
  51586. * mminimal-toc: RS/6000 and PowerPC Options.
  51587. (line 256)
  51588. * mminmax: MeP Options. (line 87)
  51589. * mmixed-code: ARC Options. (line 514)
  51590. * mmma: RS/6000 and PowerPC Options.
  51591. (line 944)
  51592. * mmmx: x86 Options. (line 813)
  51593. * mmodel=large: M32R/D Options. (line 33)
  51594. * mmodel=medium: M32R/D Options. (line 27)
  51595. * mmodel=small: M32R/D Options. (line 18)
  51596. * mmovbe: x86 Options. (line 1009)
  51597. * mmovdir64b: x86 Options. (line 880)
  51598. * mmovdiri: x86 Options. (line 879)
  51599. * mmp: C-SKY Options. (line 87)
  51600. * mmpy: ARC Options. (line 117)
  51601. * mmpy-option: ARC Options. (line 173)
  51602. * mms-bitfields: x86 Options. (line 1156)
  51603. * mmt: MIPS Options. (line 395)
  51604. * mmul: RL78 Options. (line 15)
  51605. * mmul-bug-workaround: CRIS Options. (line 31)
  51606. * mmul.x: Moxie Options. (line 14)
  51607. * mmul32x16: ARC Options. (line 121)
  51608. * mmul64: ARC Options. (line 124)
  51609. * mmuladd: FRV Options. (line 64)
  51610. * mmulhw: RS/6000 and PowerPC Options.
  51611. (line 378)
  51612. * mmult: MeP Options. (line 90)
  51613. * mmult-bug: MN10300 Options. (line 9)
  51614. * mmultcost: ARC Options. (line 576)
  51615. * mmulti-cond-exec: FRV Options. (line 215)
  51616. * mmulticore: Blackfin Options. (line 139)
  51617. * mmultiple: RS/6000 and PowerPC Options.
  51618. (line 339)
  51619. * mmultiple-stld: C-SKY Options. (line 137)
  51620. * mmusl: GNU/Linux Options. (line 18)
  51621. * mmvcle: S/390 and zSeries Options.
  51622. (line 138)
  51623. * mmvme: RS/6000 and PowerPC Options.
  51624. (line 609)
  51625. * mmwaitx: x86 Options. (line 869)
  51626. * mn: H8/300 Options. (line 20)
  51627. * mn-flash: AVR Options. (line 222)
  51628. * mnan=2008: MIPS Options. (line 320)
  51629. * mnan=legacy: MIPS Options. (line 320)
  51630. * mneeded: x86 Options. (line 1543)
  51631. * mneon-for-64bits: ARM Options. (line 913)
  51632. * mnested-cond-exec: FRV Options. (line 230)
  51633. * mnewlib: OpenRISC Options. (line 13)
  51634. * mnhwloop: Score Options. (line 15)
  51635. * mno-16-bit: NDS32 Options. (line 54)
  51636. * mno-4byte-functions: MCore Options. (line 27)
  51637. * mno-8byte-align: V850 Options. (line 170)
  51638. * mno-abicalls: MIPS Options. (line 192)
  51639. * mno-ac0: PDP-11 Options. (line 20)
  51640. * mno-align-double: x86 Options. (line 615)
  51641. * mno-align-int: M680x0 Options. (line 261)
  51642. * mno-align-loops: M32R/D Options. (line 76)
  51643. * mno-align-stringops: x86 Options. (line 1276)
  51644. * mno-allow-string-insns: RX Options. (line 150)
  51645. * mno-altivec: RS/6000 and PowerPC Options.
  51646. (line 136)
  51647. * mno-am33: MN10300 Options. (line 20)
  51648. * mno-app-regs: SPARC Options. (line 10)
  51649. * mno-app-regs <1>: V850 Options. (line 185)
  51650. * mno-as100-syntax: RX Options. (line 76)
  51651. * mno-auto-litpools: Xtensa Options. (line 60)
  51652. * mno-avoid-indexed-addresses: RS/6000 and PowerPC Options.
  51653. (line 360)
  51654. * mno-backchain: S/390 and zSeries Options.
  51655. (line 35)
  51656. * mno-base-addresses: MMIX Options. (line 53)
  51657. * mno-bit-align: RS/6000 and PowerPC Options.
  51658. (line 392)
  51659. * mno-bitfield: M680x0 Options. (line 227)
  51660. * mno-branch-likely: MIPS Options. (line 792)
  51661. * mno-branch-predict: MMIX Options. (line 48)
  51662. * mno-brcc: ARC Options. (line 442)
  51663. * mno-bwx: DEC Alpha Options. (line 163)
  51664. * mno-bypass-cache: Nios II Options. (line 103)
  51665. * mno-cache-volatile: Nios II Options. (line 109)
  51666. * mno-call-ms2sysv-xlogues: x86 Options. (line 1116)
  51667. * mno-callgraph-data: MCore Options. (line 31)
  51668. * mno-cbcond: SPARC Options. (line 260)
  51669. * mno-check-zero-division: MIPS Options. (line 570)
  51670. * mno-cix: DEC Alpha Options. (line 163)
  51671. * mno-clearbss: MicroBlaze Options. (line 16)
  51672. * mno-cmov: NDS32 Options. (line 24)
  51673. * mno-cmpb: RS/6000 and PowerPC Options.
  51674. (line 25)
  51675. * mno-cond-exec: ARC Options. (line 456)
  51676. * mno-cond-exec <1>: FRV Options. (line 194)
  51677. * mno-cond-move: FRV Options. (line 166)
  51678. * mno-const-align: CRIS Options. (line 54)
  51679. * mno-const16: Xtensa Options. (line 10)
  51680. * mno-crc: MIPS Options. (line 416)
  51681. * mno-crt0: MN10300 Options. (line 43)
  51682. * mno-crt0 <1>: Moxie Options. (line 18)
  51683. * mno-crypto: RS/6000 and PowerPC Options.
  51684. (line 177)
  51685. * mno-csync-anomaly: Blackfin Options. (line 63)
  51686. * mno-custom-INSN: Nios II Options. (line 139)
  51687. * mno-data-align: CRIS Options. (line 54)
  51688. * mno-debug: S/390 and zSeries Options.
  51689. (line 144)
  51690. * mno-default: x86 Options. (line 945)
  51691. * mno-disable-callt: V850 Options. (line 92)
  51692. * mno-div: M680x0 Options. (line 206)
  51693. * mno-div <1>: MCore Options. (line 15)
  51694. * mno-dlmzb: RS/6000 and PowerPC Options.
  51695. (line 385)
  51696. * mno-double: FRV Options. (line 52)
  51697. * mno-dpfp-lrsr: ARC Options. (line 108)
  51698. * mno-dsp: MIPS Options. (line 353)
  51699. * mno-dspr2: MIPS Options. (line 359)
  51700. * mno-dwarf2-asm: IA-64 Options. (line 94)
  51701. * mno-dword: FRV Options. (line 44)
  51702. * mno-eabi: RS/6000 and PowerPC Options.
  51703. (line 633)
  51704. * mno-early-stop-bits: IA-64 Options. (line 100)
  51705. * mno-eflags: FRV Options. (line 155)
  51706. * mno-embedded-data: MIPS Options. (line 517)
  51707. * mno-ep: V850 Options. (line 16)
  51708. * mno-epsilon: MMIX Options. (line 15)
  51709. * mno-eva: MIPS Options. (line 403)
  51710. * mno-explicit-relocs: DEC Alpha Options. (line 176)
  51711. * mno-explicit-relocs <1>: MIPS Options. (line 561)
  51712. * mno-exr: H8/300 Options. (line 33)
  51713. * mno-ext-perf: NDS32 Options. (line 30)
  51714. * mno-ext-perf2: NDS32 Options. (line 36)
  51715. * mno-ext-string: NDS32 Options. (line 42)
  51716. * mno-extern-sdata: MIPS Options. (line 480)
  51717. * mno-fancy-math-387: x86 Options. (line 605)
  51718. * mno-fast-sw-div: Nios II Options. (line 115)
  51719. * mno-faster-structs: SPARC Options. (line 91)
  51720. * mno-fdpic: ARM Options. (line 958)
  51721. * mno-fix: DEC Alpha Options. (line 163)
  51722. * mno-fix-24k: MIPS Options. (line 641)
  51723. * mno-fix-cortex-a53-835769: AArch64 Options. (line 90)
  51724. * mno-fix-cortex-a53-843419: AArch64 Options. (line 97)
  51725. * mno-fix-r10000: MIPS Options. (line 663)
  51726. * mno-fix-r4000: MIPS Options. (line 647)
  51727. * mno-fix-r4400: MIPS Options. (line 657)
  51728. * mno-flat: SPARC Options. (line 22)
  51729. * mno-float: MIPS Options. (line 274)
  51730. * mno-float128: RS/6000 and PowerPC Options.
  51731. (line 214)
  51732. * mno-float128-hardware: RS/6000 and PowerPC Options.
  51733. (line 236)
  51734. * mno-flush-func: M32R/D Options. (line 98)
  51735. * mno-flush-trap: M32R/D Options. (line 90)
  51736. * mno-fmaf: SPARC Options. (line 267)
  51737. * mno-fp-in-toc: RS/6000 and PowerPC Options.
  51738. (line 256)
  51739. * mno-fp-regs: DEC Alpha Options. (line 25)
  51740. * mno-fp-ret-in-387: x86 Options. (line 595)
  51741. * mno-fprnd: RS/6000 and PowerPC Options.
  51742. (line 25)
  51743. * mno-fpu: SPARC Options. (line 39)
  51744. * mno-fpu <1>: Visium Options. (line 24)
  51745. * mno-fsca: SH Options. (line 365)
  51746. * mno-fsmuld: SPARC Options. (line 274)
  51747. * mno-fsrra: SH Options. (line 374)
  51748. * mno-fused-madd: IA-64 Options. (line 88)
  51749. * mno-fused-madd <1>: MIPS Options. (line 624)
  51750. * mno-fused-madd <2>: RS/6000 and PowerPC Options.
  51751. (line 369)
  51752. * mno-fused-madd <3>: S/390 and zSeries Options.
  51753. (line 182)
  51754. * mno-fused-madd <4>: SH Options. (line 356)
  51755. * mno-fused-madd <5>: Xtensa Options. (line 19)
  51756. * mno-ginv: MIPS Options. (line 421)
  51757. * mno-gnu-as: IA-64 Options. (line 18)
  51758. * mno-gnu-attribute: RS/6000 and PowerPC Options.
  51759. (line 587)
  51760. * mno-gnu-ld: IA-64 Options. (line 23)
  51761. * mno-gotplt: CRIS Options. (line 80)
  51762. * mno-gpopt: MIPS Options. (line 502)
  51763. * mno-gpopt <1>: Nios II Options. (line 16)
  51764. * mno-hard-dfp: RS/6000 and PowerPC Options.
  51765. (line 25)
  51766. * mno-hard-dfp <1>: S/390 and zSeries Options.
  51767. (line 20)
  51768. * mno-hardlit: MCore Options. (line 10)
  51769. * mno-htm: RS/6000 and PowerPC Options.
  51770. (line 183)
  51771. * mno-htm <1>: S/390 and zSeries Options.
  51772. (line 104)
  51773. * mno-hw-div: Nios II Options. (line 124)
  51774. * mno-hw-mul: Nios II Options. (line 124)
  51775. * mno-hw-mulx: Nios II Options. (line 124)
  51776. * mno-id-shared-library: Blackfin Options. (line 85)
  51777. * mno-ieee: SH Options. (line 165)
  51778. * mno-ieee-fp: x86 Options. (line 572)
  51779. * mno-imadd: MIPS Options. (line 617)
  51780. * mno-inline-float-divide: IA-64 Options. (line 62)
  51781. * mno-inline-int-divide: IA-64 Options. (line 73)
  51782. * mno-inline-sqrt: IA-64 Options. (line 84)
  51783. * mno-int16: PDP-11 Options. (line 37)
  51784. * mno-int32: PDP-11 Options. (line 33)
  51785. * mno-interlink-compressed: MIPS Options. (line 135)
  51786. * mno-interlink-mips16: MIPS Options. (line 147)
  51787. * mno-interrupts: AVR Options. (line 225)
  51788. * mno-isel: RS/6000 and PowerPC Options.
  51789. (line 166)
  51790. * mno-jsr: RX Options. (line 169)
  51791. * mno-knuthdiv: MMIX Options. (line 32)
  51792. * mno-leaf-id-shared-library: Blackfin Options. (line 95)
  51793. * mno-libfuncs: MMIX Options. (line 10)
  51794. * mno-liw: MN10300 Options. (line 59)
  51795. * mno-llsc: MIPS Options. (line 339)
  51796. * mno-load-store-pairs: MIPS Options. (line 590)
  51797. * mno-local-sdata: MIPS Options. (line 468)
  51798. * mno-long-calls: ARM Options. (line 756)
  51799. * mno-long-calls <1>: Blackfin Options. (line 118)
  51800. * mno-long-calls <2>: HPPA Options. (line 136)
  51801. * mno-long-calls <3>: MIPS Options. (line 603)
  51802. * mno-long-calls <4>: V850 Options. (line 10)
  51803. * mno-long-jumps: V850 Options. (line 108)
  51804. * mno-longcall: RS/6000 and PowerPC Options.
  51805. (line 728)
  51806. * mno-longcalls: Xtensa Options. (line 87)
  51807. * mno-loongson-ext: MIPS Options. (line 430)
  51808. * mno-loongson-ext2: MIPS Options. (line 434)
  51809. * mno-loongson-mmi: MIPS Options. (line 425)
  51810. * mno-low-precision-div: AArch64 Options. (line 120)
  51811. * mno-low-precision-recip-sqrt: AArch64 Options. (line 103)
  51812. * mno-low-precision-sqrt: AArch64 Options. (line 111)
  51813. * mno-low64k: Blackfin Options. (line 71)
  51814. * mno-lra: SPARC Options. (line 111)
  51815. * mno-lsim: FR30 Options. (line 14)
  51816. * mno-lsim <1>: MCore Options. (line 46)
  51817. * mno-mad: MIPS Options. (line 612)
  51818. * mno-max: DEC Alpha Options. (line 163)
  51819. * mno-mcount-ra-address: MIPS Options. (line 872)
  51820. * mno-mcu: MIPS Options. (line 399)
  51821. * mno-mdmx: MIPS Options. (line 376)
  51822. * mno-media: FRV Options. (line 60)
  51823. * mno-memcpy: MIPS Options. (line 597)
  51824. * mno-mfcrf: RS/6000 and PowerPC Options.
  51825. (line 25)
  51826. * mno-mips16: MIPS Options. (line 120)
  51827. * mno-mips3d: MIPS Options. (line 382)
  51828. * mno-mma: RS/6000 and PowerPC Options.
  51829. (line 944)
  51830. * mno-mmicromips: MIPS Options. (line 387)
  51831. * Mno-modules: Preprocessor Options.
  51832. (line 132)
  51833. * mno-mpy: ARC Options. (line 117)
  51834. * mno-ms-bitfields: x86 Options. (line 1156)
  51835. * mno-mt: MIPS Options. (line 395)
  51836. * mno-mul-bug-workaround: CRIS Options. (line 31)
  51837. * mno-muladd: FRV Options. (line 68)
  51838. * mno-mulhw: RS/6000 and PowerPC Options.
  51839. (line 378)
  51840. * mno-mult-bug: MN10300 Options. (line 13)
  51841. * mno-multi-cond-exec: FRV Options. (line 223)
  51842. * mno-multiple: RS/6000 and PowerPC Options.
  51843. (line 339)
  51844. * mno-mvcle: S/390 and zSeries Options.
  51845. (line 138)
  51846. * mno-nested-cond-exec: FRV Options. (line 237)
  51847. * mno-odd-spreg: MIPS Options. (line 293)
  51848. * mno-omit-leaf-frame-pointer: AArch64 Options. (line 58)
  51849. * mno-optimize-membar: FRV Options. (line 249)
  51850. * mno-opts: MeP Options. (line 93)
  51851. * mno-pack: FRV Options. (line 151)
  51852. * mno-packed-stack: S/390 and zSeries Options.
  51853. (line 54)
  51854. * mno-paired-single: MIPS Options. (line 370)
  51855. * mno-pc-relative-literal-loads: AArch64 Options. (line 250)
  51856. * mno-pcrel: RS/6000 and PowerPC Options.
  51857. (line 932)
  51858. * mno-pic: IA-64 Options. (line 26)
  51859. * mno-pid: RX Options. (line 117)
  51860. * mno-plt: MIPS Options. (line 219)
  51861. * mno-pltseq: RS/6000 and PowerPC Options.
  51862. (line 765)
  51863. * mno-popc: SPARC Options. (line 281)
  51864. * mno-popcntb: RS/6000 and PowerPC Options.
  51865. (line 25)
  51866. * mno-popcntd: RS/6000 and PowerPC Options.
  51867. (line 25)
  51868. * mno-postinc: Adapteva Epiphany Options.
  51869. (line 109)
  51870. * mno-postmodify: Adapteva Epiphany Options.
  51871. (line 109)
  51872. * mno-power8-fusion: RS/6000 and PowerPC Options.
  51873. (line 189)
  51874. * mno-power8-vector: RS/6000 and PowerPC Options.
  51875. (line 195)
  51876. * mno-powerpc-gfxopt: RS/6000 and PowerPC Options.
  51877. (line 25)
  51878. * mno-powerpc-gpopt: RS/6000 and PowerPC Options.
  51879. (line 25)
  51880. * mno-powerpc64: RS/6000 and PowerPC Options.
  51881. (line 25)
  51882. * mno-prefixed: RS/6000 and PowerPC Options.
  51883. (line 939)
  51884. * mno-prolog-function: V850 Options. (line 23)
  51885. * mno-prologue-epilogue: CRIS Options. (line 70)
  51886. * mno-prototype: RS/6000 and PowerPC Options.
  51887. (line 593)
  51888. * mno-push-args: x86 Options. (line 1133)
  51889. * mno-quad-memory: RS/6000 and PowerPC Options.
  51890. (line 202)
  51891. * mno-quad-memory-atomic: RS/6000 and PowerPC Options.
  51892. (line 208)
  51893. * mno-readonly-in-sdata: RS/6000 and PowerPC Options.
  51894. (line 684)
  51895. * mno-red-zone: x86 Options. (line 1502)
  51896. * mno-register-names: IA-64 Options. (line 37)
  51897. * mno-regnames: RS/6000 and PowerPC Options.
  51898. (line 722)
  51899. * mno-relax: PRU Options. (line 21)
  51900. * mno-relax <1>: V850 Options. (line 103)
  51901. * mno-relax-immediate: MCore Options. (line 19)
  51902. * mno-relocatable: RS/6000 and PowerPC Options.
  51903. (line 408)
  51904. * mno-relocatable-lib: RS/6000 and PowerPC Options.
  51905. (line 419)
  51906. * mno-renesas: SH Options. (line 155)
  51907. * mno-round-nearest: Adapteva Epiphany Options.
  51908. (line 51)
  51909. * mno-save-mduc-in-interrupts: RL78 Options. (line 79)
  51910. * mno-scc: FRV Options. (line 180)
  51911. * mno-sched-ar-data-spec: IA-64 Options. (line 135)
  51912. * mno-sched-ar-in-data-spec: IA-64 Options. (line 157)
  51913. * mno-sched-br-data-spec: IA-64 Options. (line 128)
  51914. * mno-sched-br-in-data-spec: IA-64 Options. (line 150)
  51915. * mno-sched-control-spec: IA-64 Options. (line 142)
  51916. * mno-sched-count-spec-in-critical-path: IA-64 Options. (line 185)
  51917. * mno-sched-in-control-spec: IA-64 Options. (line 164)
  51918. * mno-sched-prefer-non-control-spec-insns: IA-64 Options. (line 178)
  51919. * mno-sched-prefer-non-data-spec-insns: IA-64 Options. (line 171)
  51920. * mno-sched-prolog: ARM Options. (line 32)
  51921. * mno-sdata: ARC Options. (line 420)
  51922. * mno-sdata <1>: IA-64 Options. (line 42)
  51923. * mno-sdata <2>: RS/6000 and PowerPC Options.
  51924. (line 679)
  51925. * mno-sep-data: Blackfin Options. (line 113)
  51926. * mno-serialize-volatile: Xtensa Options. (line 35)
  51927. * mno-setlb: MN10300 Options. (line 69)
  51928. * mno-short: M680x0 Options. (line 222)
  51929. * mno-side-effects: CRIS Options. (line 45)
  51930. * mno-sim: RX Options. (line 71)
  51931. * mno-single-exit: MMIX Options. (line 65)
  51932. * mno-slow-bytes: MCore Options. (line 35)
  51933. * mno-small-exec: S/390 and zSeries Options.
  51934. (line 79)
  51935. * mno-smartmips: MIPS Options. (line 366)
  51936. * mno-soft-cmpsf: Adapteva Epiphany Options.
  51937. (line 29)
  51938. * mno-soft-float: DEC Alpha Options. (line 10)
  51939. * mno-space-regs: HPPA Options. (line 45)
  51940. * mno-specld-anomaly: Blackfin Options. (line 53)
  51941. * mno-split-addresses: MIPS Options. (line 555)
  51942. * mno-split-lohi: Adapteva Epiphany Options.
  51943. (line 109)
  51944. * mno-stack-align: CRIS Options. (line 54)
  51945. * mno-stack-bias: SPARC Options. (line 372)
  51946. * mno-std-struct-return: SPARC Options. (line 102)
  51947. * mno-strict-align: AArch64 Options. (line 52)
  51948. * mno-strict-align <1>: M680x0 Options. (line 280)
  51949. * mno-strict-align <2>: RS/6000 and PowerPC Options.
  51950. (line 403)
  51951. * mno-subxc: SPARC Options. (line 288)
  51952. * mno-sum-in-toc: RS/6000 and PowerPC Options.
  51953. (line 256)
  51954. * mno-sym32: MIPS Options. (line 453)
  51955. * mno-target-align: Xtensa Options. (line 74)
  51956. * mno-text-section-literals: Xtensa Options. (line 47)
  51957. * mno-tls-markers: RS/6000 and PowerPC Options.
  51958. (line 777)
  51959. * mno-toc: RS/6000 and PowerPC Options.
  51960. (line 428)
  51961. * mno-toplevel-symbols: MMIX Options. (line 39)
  51962. * mno-tpf-trace: S/390 and zSeries Options.
  51963. (line 168)
  51964. * mno-tpf-trace-skip: S/390 and zSeries Options.
  51965. (line 174)
  51966. * mno-unaligned-access: ARM Options. (line 900)
  51967. * mno-unaligned-doubles: SPARC Options. (line 73)
  51968. * mno-uninit-const-in-rodata: MIPS Options. (line 525)
  51969. * mno-update: RS/6000 and PowerPC Options.
  51970. (line 350)
  51971. * mno-user-mode: SPARC Options. (line 85)
  51972. * mno-usermode: SH Options. (line 274)
  51973. * mno-v3push: NDS32 Options. (line 48)
  51974. * mno-v8plus: SPARC Options. (line 214)
  51975. * mno-vect-double: Adapteva Epiphany Options.
  51976. (line 115)
  51977. * mno-virt: MIPS Options. (line 407)
  51978. * mno-vis: SPARC Options. (line 221)
  51979. * mno-vis2: SPARC Options. (line 227)
  51980. * mno-vis3: SPARC Options. (line 235)
  51981. * mno-vis4: SPARC Options. (line 243)
  51982. * mno-vis4b: SPARC Options. (line 251)
  51983. * mno-vliw-branch: FRV Options. (line 208)
  51984. * mno-volatile-asm-stop: IA-64 Options. (line 32)
  51985. * mno-volatile-cache: ARC Options. (line 429)
  51986. * mno-vrsave: RS/6000 and PowerPC Options.
  51987. (line 152)
  51988. * mno-vsx: RS/6000 and PowerPC Options.
  51989. (line 171)
  51990. * mno-vx: S/390 and zSeries Options.
  51991. (line 112)
  51992. * mno-warn-devices-csv: MSP430 Options. (line 168)
  51993. * mno-warn-mcu: MSP430 Options. (line 65)
  51994. * mno-warn-multiple-fast-interrupts: RX Options. (line 143)
  51995. * mno-wide-bitfields: MCore Options. (line 23)
  51996. * mno-xgot: M680x0 Options. (line 312)
  51997. * mno-xgot <1>: MIPS Options. (line 229)
  51998. * mno-xl-compat: RS/6000 and PowerPC Options.
  51999. (line 291)
  52000. * mno-xpa: MIPS Options. (line 411)
  52001. * mno-zdcbranch: SH Options. (line 341)
  52002. * mno-zero-extend: MMIX Options. (line 26)
  52003. * mno-zvector: S/390 and zSeries Options.
  52004. (line 123)
  52005. * mnobitfield: M680x0 Options. (line 227)
  52006. * mnodiv: FT32 Options. (line 20)
  52007. * mnomacsave: SH Options. (line 160)
  52008. * mnop-fun-dllimport: x86 Windows Options.
  52009. (line 22)
  52010. * mnop-mcount: x86 Options. (line 1363)
  52011. * mnopm: FT32 Options. (line 29)
  52012. * mnops: Adapteva Epiphany Options.
  52013. (line 26)
  52014. * mnorm: ARC Options. (line 128)
  52015. * modd-spreg: MIPS Options. (line 293)
  52016. * momit-leaf-frame-pointer: AArch64 Options. (line 58)
  52017. * momit-leaf-frame-pointer <1>: Blackfin Options. (line 43)
  52018. * momit-leaf-frame-pointer <2>: x86 Options. (line 1327)
  52019. * mone-byte-bool: Darwin Options. (line 90)
  52020. * moptimize: Nvidia PTX Options. (line 22)
  52021. * moptimize-membar: FRV Options. (line 244)
  52022. * moptimize-membar <1>: FRV Options. (line 249)
  52023. * moverride: AArch64 Options. (line 237)
  52024. * MP: Preprocessor Options.
  52025. (line 135)
  52026. * mpa-risc-1-0: HPPA Options. (line 19)
  52027. * mpa-risc-1-1: HPPA Options. (line 19)
  52028. * mpa-risc-2-0: HPPA Options. (line 19)
  52029. * mpack: FRV Options. (line 147)
  52030. * mpacked-stack: S/390 and zSeries Options.
  52031. (line 54)
  52032. * mpadstruct: SH Options. (line 189)
  52033. * mpaired-single: MIPS Options. (line 370)
  52034. * mpc-relative-literal-loads: AArch64 Options. (line 250)
  52035. * mpc32: x86 Options. (line 737)
  52036. * mpc64: x86 Options. (line 737)
  52037. * mpc80: x86 Options. (line 737)
  52038. * mpclmul: x86 Options. (line 835)
  52039. * mpconfig: x86 Options. (line 843)
  52040. * mpcrel: M680x0 Options. (line 272)
  52041. * mpcrel <1>: RS/6000 and PowerPC Options.
  52042. (line 932)
  52043. * mpdebug: CRIS Options. (line 35)
  52044. * mpe: RS/6000 and PowerPC Options.
  52045. (line 310)
  52046. * mpe-aligned-commons: x86 Windows Options.
  52047. (line 59)
  52048. * mpic-data-is-text-relative: ARM Options. (line 793)
  52049. * mpic-data-is-text-relative <1>: MicroBlaze Options. (line 70)
  52050. * mpic-register: ARM Options. (line 786)
  52051. * mpid: RX Options. (line 117)
  52052. * mpku: x86 Options. (line 871)
  52053. * mplt: MIPS Options. (line 219)
  52054. * mpltseq: RS/6000 and PowerPC Options.
  52055. (line 765)
  52056. * mpointer-size=SIZE: VMS Options. (line 20)
  52057. * mpointers-to-nested-functions: RS/6000 and PowerPC Options.
  52058. (line 878)
  52059. * mpoke-function-name: ARM Options. (line 801)
  52060. * mpopc: SPARC Options. (line 281)
  52061. * mpopcnt: x86 Options. (line 855)
  52062. * mpopcntb: RS/6000 and PowerPC Options.
  52063. (line 25)
  52064. * mpopcntd: RS/6000 and PowerPC Options.
  52065. (line 25)
  52066. * mportable-runtime: HPPA Options. (line 71)
  52067. * mpostinc: Adapteva Epiphany Options.
  52068. (line 109)
  52069. * mpostmodify: Adapteva Epiphany Options.
  52070. (line 109)
  52071. * mpower8-fusion: RS/6000 and PowerPC Options.
  52072. (line 189)
  52073. * mpower8-vector: RS/6000 and PowerPC Options.
  52074. (line 195)
  52075. * mpowerpc-gfxopt: RS/6000 and PowerPC Options.
  52076. (line 25)
  52077. * mpowerpc-gpopt: RS/6000 and PowerPC Options.
  52078. (line 25)
  52079. * mpowerpc64: RS/6000 and PowerPC Options.
  52080. (line 25)
  52081. * mprefer-avx128: x86 Options. (line 969)
  52082. * mprefer-short-insn-regs: Adapteva Epiphany Options.
  52083. (line 13)
  52084. * mprefer-vector-width: x86 Options. (line 973)
  52085. * mprefergot: SH Options. (line 268)
  52086. * mpreferred-stack-boundary: RISC-V Options. (line 88)
  52087. * mpreferred-stack-boundary <1>: x86 Options. (line 767)
  52088. * mprefetchwt1: x86 Options. (line 848)
  52089. * mprefixed: RS/6000 and PowerPC Options.
  52090. (line 939)
  52091. * mpretend-cmove: SH Options. (line 383)
  52092. * mprfchw: x86 Options. (line 846)
  52093. * mprint-tune-info: ARM Options. (line 934)
  52094. * mprioritize-restricted-insns: RS/6000 and PowerPC Options.
  52095. (line 457)
  52096. * mprolog-function: V850 Options. (line 23)
  52097. * mprologue-epilogue: CRIS Options. (line 70)
  52098. * mprototype: RS/6000 and PowerPC Options.
  52099. (line 593)
  52100. * mptwrite: x86 Options. (line 839)
  52101. * mpure-code: ARM Options. (line 944)
  52102. * mpush-args: x86 Options. (line 1133)
  52103. * mpushpop: C-SKY Options. (line 130)
  52104. * MQ: Preprocessor Options.
  52105. (line 162)
  52106. * mq-class: ARC Options. (line 519)
  52107. * mquad-memory: RS/6000 and PowerPC Options.
  52108. (line 202)
  52109. * mquad-memory-atomic: RS/6000 and PowerPC Options.
  52110. (line 208)
  52111. * mr0rel-sec: Nios II Options. (line 76)
  52112. * mr10k-cache-barrier: MIPS Options. (line 714)
  52113. * mRcq: ARC Options. (line 523)
  52114. * mRcw: ARC Options. (line 527)
  52115. * mrdpid: x86 Options. (line 847)
  52116. * mrdrnd: x86 Options. (line 840)
  52117. * mrdseed: x86 Options. (line 849)
  52118. * mreadonly-in-sdata: RS/6000 and PowerPC Options.
  52119. (line 684)
  52120. * mrecip: RS/6000 and PowerPC Options.
  52121. (line 785)
  52122. * mrecip <1>: x86 Options. (line 1023)
  52123. * mrecip-precision: RS/6000 and PowerPC Options.
  52124. (line 842)
  52125. * mrecip=opt: RS/6000 and PowerPC Options.
  52126. (line 798)
  52127. * mrecip=opt <1>: x86 Options. (line 1045)
  52128. * mrecord-mcount: x86 Options. (line 1357)
  52129. * mrecord-return: x86 Options. (line 1377)
  52130. * mred-zone: x86 Options. (line 1502)
  52131. * mreduced-regs: NDS32 Options. (line 15)
  52132. * mregister-names: IA-64 Options. (line 37)
  52133. * mregnames: RS/6000 and PowerPC Options.
  52134. (line 722)
  52135. * mregparm: x86 Options. (line 707)
  52136. * mrelax: AVR Options. (line 229)
  52137. * mrelax <1>: H8/300 Options. (line 9)
  52138. * mrelax <2>: MN10300 Options. (line 46)
  52139. * mrelax <3>: MSP430 Options. (line 88)
  52140. * mrelax <4>: NDS32 Options. (line 84)
  52141. * mrelax <5>: RX Options. (line 95)
  52142. * mrelax <6>: SH Options. (line 137)
  52143. * mrelax <7>: V850 Options. (line 103)
  52144. * mrelax-immediate: MCore Options. (line 19)
  52145. * mrelax-pic-calls: MIPS Options. (line 859)
  52146. * mrelocatable: RS/6000 and PowerPC Options.
  52147. (line 408)
  52148. * mrelocatable-lib: RS/6000 and PowerPC Options.
  52149. (line 419)
  52150. * mrenesas: SH Options. (line 152)
  52151. * mrepeat: MeP Options. (line 96)
  52152. * mrestrict-it: ARM Options. (line 928)
  52153. * mreturn-pointer-on-d0: MN10300 Options. (line 36)
  52154. * mrf16: ARC Options. (line 324)
  52155. * mrgf-banked-regs: ARC Options. (line 304)
  52156. * mrh850-abi: V850 Options. (line 127)
  52157. * mrl78: RL78 Options. (line 62)
  52158. * mrmw: AVR Options. (line 243)
  52159. * mror: OpenRISC Options. (line 49)
  52160. * mrori: OpenRISC Options. (line 54)
  52161. * mround-nearest: Adapteva Epiphany Options.
  52162. (line 51)
  52163. * mrtd: M680x0 Options. (line 236)
  52164. * mrtd <1>: x86 Options. (line 683)
  52165. * mrtd <2>: x86 Function Attributes.
  52166. (line 9)
  52167. * mrtm: x86 Options. (line 866)
  52168. * mrtp: VxWorks Options. (line 11)
  52169. * mrtsc: ARC Options. (line 358)
  52170. * ms: H8/300 Options. (line 17)
  52171. * ms <1>: MeP Options. (line 100)
  52172. * ms2600: H8/300 Options. (line 24)
  52173. * msahf: x86 Options. (line 999)
  52174. * msatur: MeP Options. (line 105)
  52175. * msave-acc-in-interrupts: RX Options. (line 109)
  52176. * msave-mduc-in-interrupts: RL78 Options. (line 79)
  52177. * msave-restore: RISC-V Options. (line 102)
  52178. * msave-toc-indirect: RS/6000 and PowerPC Options.
  52179. (line 890)
  52180. * mscc: FRV Options. (line 173)
  52181. * msched-ar-data-spec: IA-64 Options. (line 135)
  52182. * msched-ar-in-data-spec: IA-64 Options. (line 157)
  52183. * msched-br-data-spec: IA-64 Options. (line 128)
  52184. * msched-br-in-data-spec: IA-64 Options. (line 150)
  52185. * msched-control-spec: IA-64 Options. (line 142)
  52186. * msched-costly-dep: RS/6000 and PowerPC Options.
  52187. (line 464)
  52188. * msched-count-spec-in-critical-path: IA-64 Options. (line 185)
  52189. * msched-fp-mem-deps-zero-cost: IA-64 Options. (line 202)
  52190. * msched-in-control-spec: IA-64 Options. (line 164)
  52191. * msched-max-memory-insns: IA-64 Options. (line 211)
  52192. * msched-max-memory-insns-hard-limit: IA-64 Options. (line 217)
  52193. * msched-prefer-non-control-spec-insns: IA-64 Options. (line 178)
  52194. * msched-prefer-non-data-spec-insns: IA-64 Options. (line 171)
  52195. * msched-prolog: ARM Options. (line 32)
  52196. * msched-prolog <1>: C-SKY Options. (line 164)
  52197. * msched-spec-ldc: IA-64 Options. (line 191)
  52198. * msched-spec-ldc <1>: IA-64 Options. (line 194)
  52199. * msched-stop-bits-after-every-cycle: IA-64 Options. (line 198)
  52200. * mschedule: HPPA Options. (line 78)
  52201. * mscore5: Score Options. (line 25)
  52202. * mscore5u: Score Options. (line 28)
  52203. * mscore7: Score Options. (line 31)
  52204. * mscore7d: Score Options. (line 35)
  52205. * msda: V850 Options. (line 40)
  52206. * msdata: ARC Options. (line 420)
  52207. * msdata <1>: IA-64 Options. (line 42)
  52208. * msdata <2>: RS/6000 and PowerPC Options.
  52209. (line 666)
  52210. * msdata=all: C6X Options. (line 30)
  52211. * msdata=data: RS/6000 and PowerPC Options.
  52212. (line 671)
  52213. * msdata=default: C6X Options. (line 22)
  52214. * msdata=default <1>: RS/6000 and PowerPC Options.
  52215. (line 666)
  52216. * msdata=eabi: RS/6000 and PowerPC Options.
  52217. (line 647)
  52218. * msdata=none: C6X Options. (line 35)
  52219. * msdata=none <1>: M32R/D Options. (line 40)
  52220. * msdata=none <2>: RS/6000 and PowerPC Options.
  52221. (line 679)
  52222. * msdata=sdata: M32R/D Options. (line 49)
  52223. * msdata=sysv: RS/6000 and PowerPC Options.
  52224. (line 657)
  52225. * msdata=use: M32R/D Options. (line 53)
  52226. * msdram: Blackfin Options. (line 169)
  52227. * msdram <1>: MeP Options. (line 110)
  52228. * msecure-plt: RS/6000 and PowerPC Options.
  52229. (line 155)
  52230. * msecurity: C-SKY Options. (line 96)
  52231. * msel-sched-dont-check-control-spec: IA-64 Options. (line 207)
  52232. * msep-data: Blackfin Options. (line 107)
  52233. * msep-data <1>: Blackfin Options. (line 113)
  52234. * mserialize: x86 Options. (line 891)
  52235. * mserialize-volatile: Xtensa Options. (line 35)
  52236. * msetlb: MN10300 Options. (line 64)
  52237. * msext: OpenRISC Options. (line 59)
  52238. * msfimm: OpenRISC Options. (line 63)
  52239. * msgx: x86 Options. (line 850)
  52240. * msha: x86 Options. (line 833)
  52241. * mshared-library-id: Blackfin Options. (line 100)
  52242. * mshftimm: OpenRISC Options. (line 68)
  52243. * mshort: M680x0 Options. (line 216)
  52244. * mshort-calls: AVR Options. (line 247)
  52245. * mshorten-memrefs: RISC-V Options. (line 108)
  52246. * mshstk: x86 Options. (line 1013)
  52247. * mside-effects: CRIS Options. (line 45)
  52248. * msign-extend-enabled: LM32 Options. (line 18)
  52249. * msign-return-address: AArch64 Options. (line 256)
  52250. * msilicon-errata: MSP430 Options. (line 159)
  52251. * msilicon-errata-warn: MSP430 Options. (line 163)
  52252. * msim: Blackfin Options. (line 36)
  52253. * msim <1>: C6X Options. (line 19)
  52254. * msim <2>: CR16 Options. (line 18)
  52255. * msim <3>: C-SKY Options. (line 170)
  52256. * msim <4>: FT32 Options. (line 9)
  52257. * msim <5>: M32C Options. (line 13)
  52258. * msim <6>: MeP Options. (line 114)
  52259. * msim <7>: MSP430 Options. (line 77)
  52260. * msim <8>: RL78 Options. (line 7)
  52261. * msim <9>: RS/6000 and PowerPC Options.
  52262. (line 603)
  52263. * msim <10>: RX Options. (line 71)
  52264. * msim <11>: Visium Options. (line 13)
  52265. * msim <12>: Xstormy16 Options. (line 9)
  52266. * msimd: ARC Options. (line 141)
  52267. * msimnovec: MeP Options. (line 117)
  52268. * msingle-exit: MMIX Options. (line 65)
  52269. * msingle-float: MIPS Options. (line 284)
  52270. * msingle-pic-base: ARM Options. (line 780)
  52271. * msingle-pic-base <1>: RS/6000 and PowerPC Options.
  52272. (line 451)
  52273. * msio: HPPA Options. (line 105)
  52274. * msize-level: ARC Options. (line 531)
  52275. * mskip-rax-setup: x86 Options. (line 1390)
  52276. * mslow-bytes: MCore Options. (line 35)
  52277. * mslow-flash-data: ARM Options. (line 916)
  52278. * msmall: MSP430 Options. (line 85)
  52279. * msmall-data: DEC Alpha Options. (line 187)
  52280. * msmall-data-limit: RISC-V Options. (line 97)
  52281. * msmall-data-limit <1>: RX Options. (line 47)
  52282. * msmall-divides: MicroBlaze Options. (line 38)
  52283. * msmall-exec: S/390 and zSeries Options.
  52284. (line 79)
  52285. * msmall-model: FR30 Options. (line 9)
  52286. * msmall-text: DEC Alpha Options. (line 205)
  52287. * msmall16: Adapteva Epiphany Options.
  52288. (line 66)
  52289. * msmallc: Nios II Options. (line 338)
  52290. * msmart: C-SKY Options. (line 113)
  52291. * msmartmips: MIPS Options. (line 366)
  52292. * msoft-cmpsf: Adapteva Epiphany Options.
  52293. (line 29)
  52294. * msoft-div: OpenRISC Options. (line 19)
  52295. * msoft-float: ARC Options. (line 145)
  52296. * msoft-float <1>: C-SKY Options. (line 52)
  52297. * msoft-float <2>: DEC Alpha Options. (line 10)
  52298. * msoft-float <3>: FRV Options. (line 27)
  52299. * msoft-float <4>: HPPA Options. (line 91)
  52300. * msoft-float <5>: M680x0 Options. (line 200)
  52301. * msoft-float <6>: MicroBlaze Options. (line 7)
  52302. * msoft-float <7>: MIPS Options. (line 270)
  52303. * msoft-float <8>: OpenRISC Options. (line 29)
  52304. * msoft-float <9>: PDP-11 Options. (line 13)
  52305. * msoft-float <10>: RS/6000 and PowerPC Options.
  52306. (line 333)
  52307. * msoft-float <11>: S/390 and zSeries Options.
  52308. (line 11)
  52309. * msoft-float <12>: SPARC Options. (line 39)
  52310. * msoft-float <13>: V850 Options. (line 113)
  52311. * msoft-float <14>: Visium Options. (line 24)
  52312. * msoft-float <15>: x86 Options. (line 582)
  52313. * msoft-mul: OpenRISC Options. (line 24)
  52314. * msoft-quad-float: SPARC Options. (line 59)
  52315. * msoft-stack: Nvidia PTX Options. (line 26)
  52316. * msp8: AVR Options. (line 254)
  52317. * mspace: V850 Options. (line 30)
  52318. * mspace-regs: HPPA Options. (line 45)
  52319. * mspecld-anomaly: Blackfin Options. (line 48)
  52320. * mspecld-anomaly <1>: Blackfin Options. (line 53)
  52321. * mspfp: ARC Options. (line 132)
  52322. * mspfp-compact: ARC Options. (line 133)
  52323. * mspfp-fast: ARC Options. (line 137)
  52324. * mspfp_compact: ARC Options. (line 629)
  52325. * mspfp_fast: ARC Options. (line 632)
  52326. * msplit: PDP-11 Options. (line 40)
  52327. * msplit-addresses: MIPS Options. (line 555)
  52328. * msplit-lohi: Adapteva Epiphany Options.
  52329. (line 109)
  52330. * msplit-vecmove-early: Adapteva Epiphany Options.
  52331. (line 126)
  52332. * msse: x86 Options. (line 814)
  52333. * msse2: x86 Options. (line 815)
  52334. * msse2avx: x86 Options. (line 1345)
  52335. * msse3: x86 Options. (line 816)
  52336. * msse4: x86 Options. (line 818)
  52337. * msse4.1: x86 Options. (line 820)
  52338. * msse4.2: x86 Options. (line 821)
  52339. * msse4a: x86 Options. (line 819)
  52340. * msseregparm: x86 Options. (line 718)
  52341. * mssse3: x86 Options. (line 817)
  52342. * mstack-align: CRIS Options. (line 54)
  52343. * mstack-bias: SPARC Options. (line 372)
  52344. * mstack-check-l1: Blackfin Options. (line 74)
  52345. * mstack-guard: S/390 and zSeries Options.
  52346. (line 201)
  52347. * mstack-increment: MCore Options. (line 50)
  52348. * mstack-offset: Adapteva Epiphany Options.
  52349. (line 37)
  52350. * mstack-protector-guard: AArch64 Options. (line 64)
  52351. * mstack-protector-guard <1>: RISC-V Options. (line 168)
  52352. * mstack-protector-guard <2>: RS/6000 and PowerPC Options.
  52353. (line 916)
  52354. * mstack-protector-guard <3>: x86 Options. (line 1416)
  52355. * mstack-protector-guard-offset: AArch64 Options. (line 64)
  52356. * mstack-protector-guard-offset <1>: RISC-V Options. (line 168)
  52357. * mstack-protector-guard-offset <2>: RS/6000 and PowerPC Options.
  52358. (line 916)
  52359. * mstack-protector-guard-offset <3>: x86 Options. (line 1416)
  52360. * mstack-protector-guard-reg: AArch64 Options. (line 64)
  52361. * mstack-protector-guard-reg <1>: RISC-V Options. (line 168)
  52362. * mstack-protector-guard-reg <2>: RS/6000 and PowerPC Options.
  52363. (line 916)
  52364. * mstack-protector-guard-reg <3>: x86 Options. (line 1416)
  52365. * mstack-protector-guard-symbol: RS/6000 and PowerPC Options.
  52366. (line 916)
  52367. * mstack-size: AMD GCN Options. (line 23)
  52368. * mstack-size <1>: C-SKY Options. (line 150)
  52369. * mstack-size <2>: S/390 and zSeries Options.
  52370. (line 201)
  52371. * mstackrealign: x86 Options. (line 758)
  52372. * mstd-struct-return: SPARC Options. (line 102)
  52373. * mstrict-align: AArch64 Options. (line 52)
  52374. * mstrict-align <1>: M680x0 Options. (line 280)
  52375. * mstrict-align <2>: RISC-V Options. (line 117)
  52376. * mstrict-align <3>: RS/6000 and PowerPC Options.
  52377. (line 403)
  52378. * mstrict-X: AVR Options. (line 267)
  52379. * mstring-compare-inline-limit: RS/6000 and PowerPC Options.
  52380. (line 708)
  52381. * mstringop-strategy=ALG: x86 Options. (line 1293)
  52382. * mstructure-size-boundary: ARM Options. (line 735)
  52383. * msubxc: SPARC Options. (line 288)
  52384. * msv-mode: Visium Options. (line 52)
  52385. * msve-vector-bits: AArch64 Options. (line 285)
  52386. * msvr4-struct-return: RS/6000 and PowerPC Options.
  52387. (line 548)
  52388. * mswap: ARC Options. (line 152)
  52389. * mswape: ARC Options. (line 363)
  52390. * msym32: MIPS Options. (line 453)
  52391. * msynci: MIPS Options. (line 845)
  52392. * msys-crt0: Nios II Options. (line 342)
  52393. * msys-lib: Nios II Options. (line 346)
  52394. * MT: Preprocessor Options.
  52395. (line 147)
  52396. * mtarget-align: Xtensa Options. (line 74)
  52397. * mtas: SH Options. (line 259)
  52398. * mtbm: x86 Options. (line 868)
  52399. * mtda: V850 Options. (line 34)
  52400. * mtelephony: ARC Options. (line 368)
  52401. * mtext-section-literals: Xtensa Options. (line 47)
  52402. * mtf: MeP Options. (line 121)
  52403. * mthread: x86 Windows Options.
  52404. (line 26)
  52405. * mthreads: x86 Options. (line 1148)
  52406. * mthumb: ARM Options. (line 823)
  52407. * mthumb-interwork: ARM Options. (line 24)
  52408. * mtiny-printf: MSP430 Options. (line 122)
  52409. * mtiny-stack: AVR Options. (line 281)
  52410. * mtiny=: MeP Options. (line 125)
  52411. * mTLS: FRV Options. (line 90)
  52412. * mtls: FRV Options. (line 94)
  52413. * mtls-dialect: ARM Options. (line 875)
  52414. * mtls-dialect <1>: x86 Options. (line 1126)
  52415. * mtls-dialect=desc: AArch64 Options. (line 77)
  52416. * mtls-dialect=traditional: AArch64 Options. (line 81)
  52417. * mtls-direct-seg-refs: x86 Options. (line 1335)
  52418. * mtls-markers: RS/6000 and PowerPC Options.
  52419. (line 777)
  52420. * mtls-size: AArch64 Options. (line 85)
  52421. * mtls-size <1>: IA-64 Options. (line 112)
  52422. * mtoc: RS/6000 and PowerPC Options.
  52423. (line 428)
  52424. * mtomcat-stats: FRV Options. (line 254)
  52425. * mtoplevel-symbols: MMIX Options. (line 39)
  52426. * mtp: ARM Options. (line 867)
  52427. * mtp-regno: ARC Options. (line 170)
  52428. * mtpcs-frame: ARM Options. (line 840)
  52429. * mtpcs-leaf-frame: ARM Options. (line 846)
  52430. * mtpf-trace: S/390 and zSeries Options.
  52431. (line 168)
  52432. * mtpf-trace-skip: S/390 and zSeries Options.
  52433. (line 174)
  52434. * mtraceback: RS/6000 and PowerPC Options.
  52435. (line 541)
  52436. * mtrap-precision: DEC Alpha Options. (line 109)
  52437. * mtrust: C-SKY Options. (line 99)
  52438. * mtsxldtrk: x86 Options. (line 883)
  52439. * mtune: AArch64 Options. (line 186)
  52440. * mtune <1>: AMD GCN Options. (line 10)
  52441. * mtune <2>: ARC Options. (line 552)
  52442. * mtune <3>: ARC Options. (line 635)
  52443. * mtune <4>: ARM Options. (line 571)
  52444. * mtune <5>: CRIS Options. (line 16)
  52445. * mtune <6>: DEC Alpha Options. (line 259)
  52446. * mtune <7>: IA-64 Options. (line 116)
  52447. * mtune <8>: M680x0 Options. (line 68)
  52448. * mtune <9>: MIPS Options. (line 66)
  52449. * mtune <10>: MN10300 Options. (line 30)
  52450. * mtune <11>: RISC-V Options. (line 73)
  52451. * mtune <12>: RS/6000 and PowerPC Options.
  52452. (line 113)
  52453. * mtune <13>: S/390 and zSeries Options.
  52454. (line 161)
  52455. * mtune <14>: SPARC Options. (line 199)
  52456. * mtune <15>: Visium Options. (line 47)
  52457. * mtune <16>: x86 Options. (line 456)
  52458. * mtune-ctrl=FEATURE-LIST: x86 Options. (line 936)
  52459. * muclibc: GNU/Linux Options. (line 14)
  52460. * muintr: x86 Options. (line 882)
  52461. * muls: Score Options. (line 18)
  52462. * multcost: ARC Options. (line 640)
  52463. * multcost=NUMBER: SH Options. (line 281)
  52464. * multilib-library-pic: FRV Options. (line 110)
  52465. * multiply-enabled: LM32 Options. (line 15)
  52466. * multiply_defined: Darwin Options. (line 196)
  52467. * multiply_defined_unused: Darwin Options. (line 196)
  52468. * multi_module: Darwin Options. (line 196)
  52469. * munalign-prob-threshold: ARC Options. (line 580)
  52470. * munaligned-access: ARM Options. (line 900)
  52471. * munaligned-doubles: SPARC Options. (line 73)
  52472. * municode: x86 Windows Options.
  52473. (line 30)
  52474. * muniform-simt: Nvidia PTX Options. (line 38)
  52475. * muninit-const-in-rodata: MIPS Options. (line 525)
  52476. * munix: VAX Options. (line 9)
  52477. * munix-asm: PDP-11 Options. (line 43)
  52478. * munordered-float: OpenRISC Options. (line 39)
  52479. * mupdate: RS/6000 and PowerPC Options.
  52480. (line 350)
  52481. * muser-enabled: LM32 Options. (line 21)
  52482. * muser-mode: SPARC Options. (line 85)
  52483. * muser-mode <1>: Visium Options. (line 57)
  52484. * musermode: SH Options. (line 274)
  52485. * mv3push: NDS32 Options. (line 45)
  52486. * mv850: V850 Options. (line 49)
  52487. * mv850e: V850 Options. (line 79)
  52488. * mv850e1: V850 Options. (line 70)
  52489. * mv850e2: V850 Options. (line 66)
  52490. * mv850e2v3: V850 Options. (line 61)
  52491. * mv850e2v4: V850 Options. (line 57)
  52492. * mv850e3v5: V850 Options. (line 52)
  52493. * mv850es: V850 Options. (line 75)
  52494. * mv8plus: SPARC Options. (line 214)
  52495. * mvaes: x86 Options. (line 875)
  52496. * mvdsp: C-SKY Options. (line 104)
  52497. * mveclibabi: RS/6000 and PowerPC Options.
  52498. (line 851)
  52499. * mveclibabi <1>: x86 Options. (line 1074)
  52500. * mvect-double: Adapteva Epiphany Options.
  52501. (line 115)
  52502. * mvect8-ret-in-mem: x86 Options. (line 728)
  52503. * mverbose-cost-dump: AArch64 Options. (line 245)
  52504. * mverbose-cost-dump <1>: ARM Options. (line 940)
  52505. * mvirt: MIPS Options. (line 407)
  52506. * mvis: SPARC Options. (line 221)
  52507. * mvis2: SPARC Options. (line 227)
  52508. * mvis3: SPARC Options. (line 235)
  52509. * mvis4: SPARC Options. (line 243)
  52510. * mvis4b: SPARC Options. (line 251)
  52511. * mvliw-branch: FRV Options. (line 201)
  52512. * mvms-return-codes: VMS Options. (line 9)
  52513. * mvolatile-asm-stop: IA-64 Options. (line 32)
  52514. * mvolatile-cache: ARC Options. (line 425)
  52515. * mvolatile-cache <1>: ARC Options. (line 429)
  52516. * mvpclmulqdq: x86 Options. (line 877)
  52517. * mvr4130-align: MIPS Options. (line 834)
  52518. * mvrsave: RS/6000 and PowerPC Options.
  52519. (line 152)
  52520. * mvsx: RS/6000 and PowerPC Options.
  52521. (line 171)
  52522. * mvx: S/390 and zSeries Options.
  52523. (line 112)
  52524. * mvxworks: RS/6000 and PowerPC Options.
  52525. (line 624)
  52526. * mvzeroupper: x86 Options. (line 963)
  52527. * mwaitpkg: x86 Options. (line 876)
  52528. * mwarn-devices-csv: MSP430 Options. (line 168)
  52529. * mwarn-dynamicstack: S/390 and zSeries Options.
  52530. (line 195)
  52531. * mwarn-framesize: S/390 and zSeries Options.
  52532. (line 187)
  52533. * mwarn-mcu: MSP430 Options. (line 65)
  52534. * mwarn-multiple-fast-interrupts: RX Options. (line 143)
  52535. * mwbnoinvd: x86 Options. (line 844)
  52536. * mwide-bitfields: MCore Options. (line 23)
  52537. * mwidekl: x86 Options. (line 897)
  52538. * mwin32: x86 Windows Options.
  52539. (line 35)
  52540. * mwindows: x86 Windows Options.
  52541. (line 41)
  52542. * mword-relocations: ARM Options. (line 886)
  52543. * mx32: x86 Options. (line 1482)
  52544. * mxgot: M680x0 Options. (line 312)
  52545. * mxgot <1>: MIPS Options. (line 229)
  52546. * mxl-barrel-shift: MicroBlaze Options. (line 32)
  52547. * mxl-compat: RS/6000 and PowerPC Options.
  52548. (line 291)
  52549. * mxl-float-convert: MicroBlaze Options. (line 50)
  52550. * mxl-float-sqrt: MicroBlaze Options. (line 53)
  52551. * mxl-gp-opt: MicroBlaze Options. (line 44)
  52552. * mxl-multiply-high: MicroBlaze Options. (line 47)
  52553. * mxl-pattern-compare: MicroBlaze Options. (line 35)
  52554. * mxl-reorder: MicroBlaze Options. (line 62)
  52555. * mxl-soft-div: MicroBlaze Options. (line 29)
  52556. * mxl-soft-mul: MicroBlaze Options. (line 26)
  52557. * mxl-stack-check: MicroBlaze Options. (line 41)
  52558. * mxop: x86 Options. (line 851)
  52559. * mxpa: MIPS Options. (line 411)
  52560. * mxsave: x86 Options. (line 862)
  52561. * mxsavec: x86 Options. (line 864)
  52562. * mxsaveopt: x86 Options. (line 863)
  52563. * mxsaves: x86 Options. (line 865)
  52564. * mxy: ARC Options. (line 373)
  52565. * myellowknife: RS/6000 and PowerPC Options.
  52566. (line 619)
  52567. * mzarch: S/390 and zSeries Options.
  52568. (line 94)
  52569. * mzda: V850 Options. (line 45)
  52570. * mzdcbranch: SH Options. (line 341)
  52571. * mzero-extend: MMIX Options. (line 26)
  52572. * mzvector: S/390 and zSeries Options.
  52573. (line 123)
  52574. * no-80387: x86 Options. (line 582)
  52575. * no-block-ops-unaligned-vsx: RS/6000 and PowerPC Options.
  52576. (line 949)
  52577. * no-canonical-prefixes: Directory Options. (line 164)
  52578. * no-integrated-cpp: Preprocessor Options.
  52579. (line 483)
  52580. * no-pie: Link Options. (line 181)
  52581. * no-sysroot-suffix: Directory Options. (line 183)
  52582. * noall_load: Darwin Options. (line 196)
  52583. * nocpp: MIPS Options. (line 636)
  52584. * nodefaultlibs: Link Options. (line 119)
  52585. * nodevicelib: AVR Options. (line 288)
  52586. * nodevicespecs: AVR Options. (line 291)
  52587. * nofixprebinding: Darwin Options. (line 196)
  52588. * nofpu: RX Options. (line 17)
  52589. * nolibc: Link Options. (line 131)
  52590. * nolibdld: HPPA Options. (line 188)
  52591. * nomultidefs: Darwin Options. (line 196)
  52592. * non-static: VxWorks Options. (line 16)
  52593. * noprebind: Darwin Options. (line 196)
  52594. * noseglinkedit: Darwin Options. (line 196)
  52595. * nostartfiles: Link Options. (line 114)
  52596. * nostdinc: Directory Options. (line 102)
  52597. * nostdinc++: C++ Dialect Options.
  52598. (line 530)
  52599. * nostdinc++ <1>: Directory Options. (line 108)
  52600. * nostdlib: Link Options. (line 143)
  52601. * no_dead_strip_inits_and_terms: Darwin Options. (line 196)
  52602. * o: Overall Options. (line 197)
  52603. * O: Optimize Options. (line 39)
  52604. * O0: Optimize Options. (line 165)
  52605. * O1: Optimize Options. (line 39)
  52606. * O2: Optimize Options. (line 96)
  52607. * O3: Optimize Options. (line 144)
  52608. * Ofast: Optimize Options. (line 181)
  52609. * Og: Optimize Options. (line 189)
  52610. * Os: Optimize Options. (line 169)
  52611. * p: Instrumentation Options.
  52612. (line 20)
  52613. * P: Preprocessor Options.
  52614. (line 368)
  52615. * p <1>: Common Function Attributes.
  52616. (line 793)
  52617. * pagezero_size: Darwin Options. (line 196)
  52618. * param: Optimize Options. (line 2676)
  52619. * pass-exit-codes: Overall Options. (line 600)
  52620. * pedantic: Standards. (line 13)
  52621. * pedantic <1>: Warning Options. (line 86)
  52622. * pedantic <2>: C Extensions. (line 6)
  52623. * pedantic <3>: Alternate Keywords. (line 30)
  52624. * pedantic <4>: Warnings and Errors.
  52625. (line 25)
  52626. * pedantic-errors: Standards. (line 13)
  52627. * pedantic-errors <1>: Warning Options. (line 129)
  52628. * pedantic-errors <2>: Non-bugs. (line 216)
  52629. * pedantic-errors <3>: Warnings and Errors.
  52630. (line 25)
  52631. * pg: Instrumentation Options.
  52632. (line 20)
  52633. * pg <1>: Common Function Attributes.
  52634. (line 793)
  52635. * pie: Link Options. (line 175)
  52636. * pipe: Overall Options. (line 608)
  52637. * plt: RISC-V Options. (line 13)
  52638. * prebind: Darwin Options. (line 196)
  52639. * prebind_all_twolevel_modules: Darwin Options. (line 196)
  52640. * print-file-name: Developer Options. (line 935)
  52641. * print-libgcc-file-name: Developer Options. (line 969)
  52642. * print-multi-directory: Developer Options. (line 941)
  52643. * print-multi-lib: Developer Options. (line 946)
  52644. * print-multi-os-directory: Developer Options. (line 953)
  52645. * print-multiarch: Developer Options. (line 962)
  52646. * print-objc-runtime-info: Objective-C and Objective-C++ Dialect Options.
  52647. (line 227)
  52648. * print-prog-name: Developer Options. (line 966)
  52649. * print-search-dirs: Developer Options. (line 977)
  52650. * print-sysroot: Developer Options. (line 990)
  52651. * print-sysroot-headers-suffix: Developer Options. (line 997)
  52652. * private_bundle: Darwin Options. (line 196)
  52653. * pthread: Preprocessor Options.
  52654. (line 70)
  52655. * pthread <1>: Link Options. (line 192)
  52656. * pthreads: Solaris 2 Options. (line 30)
  52657. * Q: Developer Options. (line 839)
  52658. * Qn: System V Options. (line 18)
  52659. * Qy: System V Options. (line 14)
  52660. * r: Link Options. (line 199)
  52661. * rdynamic: Link Options. (line 203)
  52662. * read_only_relocs: Darwin Options. (line 196)
  52663. * remap: Preprocessor Options.
  52664. (line 399)
  52665. * S: Overall Options. (line 180)
  52666. * S <1>: Link Options. (line 20)
  52667. * s: Link Options. (line 210)
  52668. * save-temps: Developer Options. (line 735)
  52669. * save-temps=cwd: Developer Options. (line 746)
  52670. * save-temps=obj: Developer Options. (line 749)
  52671. * sectalign: Darwin Options. (line 196)
  52672. * sectcreate: Darwin Options. (line 196)
  52673. * sectobjectsymbols: Darwin Options. (line 196)
  52674. * sectobjectsymbols <1>: Darwin Options. (line 196)
  52675. * sectorder: Darwin Options. (line 196)
  52676. * seg1addr: Darwin Options. (line 196)
  52677. * segaddr: Darwin Options. (line 196)
  52678. * seglinkedit: Darwin Options. (line 196)
  52679. * segprot: Darwin Options. (line 196)
  52680. * segs_read_only_addr: Darwin Options. (line 196)
  52681. * segs_read_only_addr <1>: Darwin Options. (line 196)
  52682. * segs_read_write_addr: Darwin Options. (line 196)
  52683. * segs_read_write_addr <1>: Darwin Options. (line 196)
  52684. * seg_addr_table: Darwin Options. (line 196)
  52685. * seg_addr_table_filename: Darwin Options. (line 196)
  52686. * shared: Link Options. (line 219)
  52687. * shared-libgcc: Link Options. (line 227)
  52688. * short-calls: Adapteva Epiphany Options.
  52689. (line 61)
  52690. * sim: CRIS Options. (line 94)
  52691. * sim2: CRIS Options. (line 100)
  52692. * single_module: Darwin Options. (line 196)
  52693. * specs: Overall Options. (line 614)
  52694. * static: Link Options. (line 214)
  52695. * static <1>: Darwin Options. (line 196)
  52696. * static <2>: HPPA Options. (line 192)
  52697. * static-libasan: Link Options. (line 261)
  52698. * static-libgcc: Link Options. (line 227)
  52699. * static-liblsan: Link Options. (line 277)
  52700. * static-libstdc++: Link Options. (line 294)
  52701. * static-libtsan: Link Options. (line 269)
  52702. * static-libubsan: Link Options. (line 285)
  52703. * static-pie: Link Options. (line 184)
  52704. * std: Standards. (line 13)
  52705. * std <1>: C Dialect Options. (line 46)
  52706. * std <2>: Other Builtins. (line 31)
  52707. * std <3>: Non-bugs. (line 107)
  52708. * stdlib: C++ Dialect Options.
  52709. (line 553)
  52710. * sub_library: Darwin Options. (line 196)
  52711. * sub_umbrella: Darwin Options. (line 196)
  52712. * symbolic: Link Options. (line 305)
  52713. * sysroot: Directory Options. (line 168)
  52714. * T: Link Options. (line 311)
  52715. * target-help: Overall Options. (line 490)
  52716. * threads: HPPA Options. (line 205)
  52717. * time: Developer Options. (line 755)
  52718. * tno-android-cc: GNU/Linux Options. (line 36)
  52719. * tno-android-ld: GNU/Linux Options. (line 40)
  52720. * traditional: Preprocessor Options.
  52721. (line 375)
  52722. * traditional <1>: Incompatibilities. (line 6)
  52723. * traditional-cpp: Preprocessor Options.
  52724. (line 375)
  52725. * trigraphs: Preprocessor Options.
  52726. (line 385)
  52727. * twolevel_namespace: Darwin Options. (line 196)
  52728. * U: Preprocessor Options.
  52729. (line 42)
  52730. * u: Link Options. (line 343)
  52731. * umbrella: Darwin Options. (line 196)
  52732. * undef: Preprocessor Options.
  52733. (line 66)
  52734. * undefined: Darwin Options. (line 196)
  52735. * unexported_symbols_list: Darwin Options. (line 196)
  52736. * v: Overall Options. (line 469)
  52737. * version: Overall Options. (line 597)
  52738. * w: Warning Options. (line 25)
  52739. * W: Warning Options. (line 215)
  52740. * W <1>: Warning Options. (line 2761)
  52741. * W <2>: Warning Options. (line 2869)
  52742. * W <3>: Incompatibilities. (line 64)
  52743. * Wa: Assembler Options. (line 9)
  52744. * Wabi: Warning Options. (line 260)
  52745. * Wabi-tag: C++ Dialect Options.
  52746. (line 565)
  52747. * Wabsolute-value: Warning Options. (line 2275)
  52748. * Waddr-space-convert: AVR Options. (line 306)
  52749. * Waddress: Warning Options. (line 2631)
  52750. * Waddress-of-packed-member: Warning Options. (line 2644)
  52751. * Waggregate-return: Warning Options. (line 2672)
  52752. * Waggressive-loop-optimizations: Warning Options. (line 2677)
  52753. * Waligned-new: C++ Dialect Options.
  52754. (line 1146)
  52755. * Wall: Warning Options. (line 138)
  52756. * Wall <1>: Standard Libraries. (line 6)
  52757. * Walloc-size-larger-than=: Warning Options. (line 1674)
  52758. * Walloc-zero: Warning Options. (line 1664)
  52759. * Walloca: Warning Options. (line 1689)
  52760. * Walloca-larger-than=: Warning Options. (line 1692)
  52761. * Wanalyzer-double-fclose: Static Analyzer Options.
  52762. (line 52)
  52763. * Wanalyzer-double-free: Static Analyzer Options.
  52764. (line 59)
  52765. * Wanalyzer-exposure-through-output-file: Static Analyzer Options.
  52766. (line 67)
  52767. * Wanalyzer-file-leak: Static Analyzer Options.
  52768. (line 75)
  52769. * Wanalyzer-free-of-non-heap: Static Analyzer Options.
  52770. (line 82)
  52771. * Wanalyzer-malloc-leak: Static Analyzer Options.
  52772. (line 90)
  52773. * Wanalyzer-mismatching-deallocation: Static Analyzer Options.
  52774. (line 98)
  52775. * Wanalyzer-null-argument: Static Analyzer Options.
  52776. (line 124)
  52777. * Wanalyzer-null-dereference: Static Analyzer Options.
  52778. (line 132)
  52779. * Wanalyzer-possible-null-argument: Static Analyzer Options.
  52780. (line 109)
  52781. * Wanalyzer-possible-null-dereference: Static Analyzer Options.
  52782. (line 117)
  52783. * Wanalyzer-shift-count-negative: Static Analyzer Options.
  52784. (line 139)
  52785. * Wanalyzer-shift-count-overflow: Static Analyzer Options.
  52786. (line 151)
  52787. * Wanalyzer-stale-setjmp-buffer: Static Analyzer Options.
  52788. (line 164)
  52789. * Wanalyzer-tainted-array-index: Static Analyzer Options.
  52790. (line 178)
  52791. * Wanalyzer-too-complex: Static Analyzer Options.
  52792. (line 42)
  52793. * Wanalyzer-unsafe-call-within-signal-handler: Static Analyzer Options.
  52794. (line 187)
  52795. * Wanalyzer-use-after-free: Static Analyzer Options.
  52796. (line 195)
  52797. * Wanalyzer-use-of-pointer-in-stale-stack-frame: Static Analyzer Options.
  52798. (line 203)
  52799. * Wanalyzer-write-to-const: Static Analyzer Options.
  52800. (line 210)
  52801. * Wanalyzer-write-to-string-literal: Static Analyzer Options.
  52802. (line 220)
  52803. * Warith-conversion: Warning Options. (line 1757)
  52804. * Warray-bounds: Warning Options. (line 1770)
  52805. * Wassign-intercept: Objective-C and Objective-C++ Dialect Options.
  52806. (line 170)
  52807. * Wattribute-alias: Warning Options. (line 1831)
  52808. * Wattribute-warning: Warning Options. (line 2840)
  52809. * Wattributes: Warning Options. (line 2682)
  52810. * Wbad-function-cast: Warning Options. (line 2344)
  52811. * Wbool-compare: Warning Options. (line 1863)
  52812. * Wbool-operation: Warning Options. (line 1872)
  52813. * Wbuiltin-declaration-mismatch: Warning Options. (line 2688)
  52814. * Wbuiltin-macro-redefined: Warning Options. (line 2709)
  52815. * Wc++-compat: Warning Options. (line 2372)
  52816. * Wc++11-compat: Warning Options. (line 2377)
  52817. * Wc++14-compat: Warning Options. (line 2383)
  52818. * Wc++17-compat: Warning Options. (line 2387)
  52819. * Wc++20-compat: Warning Options. (line 2391)
  52820. * Wc11-c2x-compat: Warning Options. (line 2364)
  52821. * Wc90-c99-compat: Warning Options. (line 2349)
  52822. * Wc99-c11-compat: Warning Options. (line 2356)
  52823. * Wcast-align: Warning Options. (line 2411)
  52824. * Wcast-align=strict: Warning Options. (line 2417)
  52825. * Wcast-function-type: Warning Options. (line 2422)
  52826. * Wcast-qual: Warning Options. (line 2395)
  52827. * Wcatch-value: C++ Dialect Options.
  52828. (line 1193)
  52829. * Wchar-subscripts: Warning Options. (line 370)
  52830. * Wclass-conversion: C++ Dialect Options.
  52831. (line 1124)
  52832. * Wclass-memaccess: C++ Dialect Options.
  52833. (line 751)
  52834. * Wclobbered: Warning Options. (line 2448)
  52835. * Wcomma-subscript: C++ Dialect Options.
  52836. (line 570)
  52837. * Wcomment: Warning Options. (line 2286)
  52838. * Wcomments: Warning Options. (line 2286)
  52839. * Wconditionally-supported: C++ Dialect Options.
  52840. (line 1201)
  52841. * Wconversion: Warning Options. (line 2452)
  52842. * Wconversion-null: C++ Dialect Options.
  52843. (line 1278)
  52844. * Wcoverage-mismatch: Warning Options. (line 375)
  52845. * Wcpp: Warning Options. (line 389)
  52846. * Wctad-maybe-unsupported: C++ Dialect Options.
  52847. (line 582)
  52848. * Wctor-dtor-privacy: C++ Dialect Options.
  52849. (line 598)
  52850. * Wdangling-else: Warning Options. (line 2473)
  52851. * Wdate-time: Warning Options. (line 2507)
  52852. * Wdeclaration-after-statement: Warning Options. (line 2092)
  52853. * Wdelete-incomplete: C++ Dialect Options.
  52854. (line 1204)
  52855. * Wdelete-non-virtual-dtor: C++ Dialect Options.
  52856. (line 605)
  52857. * Wdeprecated: Warning Options. (line 2847)
  52858. * Wdeprecated-copy: C++ Dialect Options.
  52859. (line 612)
  52860. * Wdeprecated-declarations: Warning Options. (line 2851)
  52861. * Wdeprecated-enum-enum-conversion: C++ Dialect Options.
  52862. (line 620)
  52863. * Wdeprecated-enum-float-conversion: C++ Dialect Options.
  52864. (line 634)
  52865. * Wdesignated-init: Warning Options. (line 3139)
  52866. * Wdisabled-optimization: Warning Options. (line 3090)
  52867. * Wdiscarded-array-qualifiers: Warning Options. (line 1911)
  52868. * Wdiscarded-qualifiers: Warning Options. (line 1905)
  52869. * Wdiv-by-zero: Warning Options. (line 1952)
  52870. * Wdouble-promotion: Warning Options. (line 393)
  52871. * Wduplicate-decl-specifier: Warning Options. (line 411)
  52872. * Wduplicated-branches: Warning Options. (line 1882)
  52873. * Wduplicated-cond: Warning Options. (line 1893)
  52874. * weak_reference_mismatches: Darwin Options. (line 196)
  52875. * Weffc++: C++ Dialect Options.
  52876. (line 917)
  52877. * Wempty-body: Warning Options. (line 2512)
  52878. * Wendif-labels: Warning Options. (line 2330)
  52879. * Wendif-labels <1>: Warning Options. (line 2516)
  52880. * Wenum-compare: Warning Options. (line 2519)
  52881. * Wenum-conversion: Warning Options. (line 2525)
  52882. * Werror: Warning Options. (line 28)
  52883. * Werror=: Warning Options. (line 31)
  52884. * Wexceptions: C++ Dialect Options.
  52885. (line 945)
  52886. * Wexpansion-to-defined: Warning Options. (line 2305)
  52887. * Wextra: Warning Options. (line 215)
  52888. * Wextra <1>: Warning Options. (line 2761)
  52889. * Wextra <2>: Warning Options. (line 2869)
  52890. * Wextra-semi: C++ Dialect Options.
  52891. (line 1209)
  52892. * Wfatal-errors: Warning Options. (line 48)
  52893. * Wfloat-conversion: Warning Options. (line 2553)
  52894. * Wfloat-equal: Warning Options. (line 1992)
  52895. * Wformat: Warning Options. (line 416)
  52896. * Wformat <1>: Warning Options. (line 441)
  52897. * Wformat <2>: Warning Options. (line 1635)
  52898. * Wformat <3>: Common Function Attributes.
  52899. (line 390)
  52900. * Wformat-contains-nul: Warning Options. (line 455)
  52901. * Wformat-extra-args: Warning Options. (line 459)
  52902. * Wformat-nonliteral: Warning Options. (line 552)
  52903. * Wformat-nonliteral <1>: Common Function Attributes.
  52904. (line 455)
  52905. * Wformat-overflow: Warning Options. (line 473)
  52906. * Wformat-overflow <1>: Warning Options. (line 484)
  52907. * Wformat-security: Warning Options. (line 557)
  52908. * Wformat-signedness: Warning Options. (line 568)
  52909. * Wformat-truncation: Warning Options. (line 573)
  52910. * Wformat-truncation <1>: Warning Options. (line 585)
  52911. * Wformat-y2k: Warning Options. (line 596)
  52912. * Wformat-zero-length: Warning Options. (line 548)
  52913. * Wformat=: Warning Options. (line 416)
  52914. * Wformat=1: Warning Options. (line 441)
  52915. * Wformat=2: Warning Options. (line 450)
  52916. * Wframe-address: Warning Options. (line 1899)
  52917. * Wframe-larger-than=: Warning Options. (line 2166)
  52918. * Wfree-nonheap-object: Warning Options. (line 2183)
  52919. * whatsloaded: Darwin Options. (line 196)
  52920. * whyload: Darwin Options. (line 196)
  52921. * Wif-not-aligned: Warning Options. (line 769)
  52922. * Wignored-attributes: Warning Options. (line 784)
  52923. * Wignored-qualifiers: Warning Options. (line 773)
  52924. * Wimplicit: Warning Options. (line 647)
  52925. * Wimplicit-fallthrough: Warning Options. (line 651)
  52926. * Wimplicit-fallthrough=: Warning Options. (line 656)
  52927. * Wimplicit-function-declaration: Warning Options. (line 641)
  52928. * Wimplicit-int: Warning Options. (line 636)
  52929. * Winaccessible-base: C++ Dialect Options.
  52930. (line 1213)
  52931. * Wincompatible-pointer-types: Warning Options. (line 1917)
  52932. * Winherited-variadic-ctor: C++ Dialect Options.
  52933. (line 1224)
  52934. * Winit-list-lifetime: C++ Dialect Options.
  52935. (line 648)
  52936. * Winit-self: Warning Options. (line 621)
  52937. * Winline: Warning Options. (line 2962)
  52938. * Winline <1>: Inline. (line 60)
  52939. * Wint-conversion: Warning Options. (line 1923)
  52940. * Wint-in-bool-context: Warning Options. (line 2975)
  52941. * Wint-to-pointer-cast: Warning Options. (line 2983)
  52942. * Winvalid-imported-macros: C++ Dialect Options.
  52943. (line 683)
  52944. * Winvalid-memory-model: Warning Options. (line 1279)
  52945. * Winvalid-offsetof: C++ Dialect Options.
  52946. (line 1229)
  52947. * Winvalid-pch: Warning Options. (line 2992)
  52948. * Wjump-misses-init: Warning Options. (line 2530)
  52949. * Wl: Link Options. (line 335)
  52950. * Wlarger-than-BYTE-SIZE: Warning Options. (line 2151)
  52951. * Wlarger-than=: Warning Options. (line 2151)
  52952. * Wliteral-suffix: C++ Dialect Options.
  52953. (line 689)
  52954. * Wlogical-not-parentheses: Warning Options. (line 2657)
  52955. * Wlogical-op: Warning Options. (line 2649)
  52956. * Wlong-long: Warning Options. (line 2996)
  52957. * Wlto-type-mismatch: Warning Options. (line 3133)
  52958. * Wmain: Warning Options. (line 791)
  52959. * Wmaybe-uninitialized: Warning Options. (line 1296)
  52960. * Wmemset-elt-size: Warning Options. (line 2612)
  52961. * Wmemset-transposed-args: Warning Options. (line 2620)
  52962. * Wmisleading-indentation: Warning Options. (line 798)
  52963. * Wmismatched-dealloc: Warning Options. (line 905)
  52964. * Wmismatched-new-delete: C++ Dialect Options.
  52965. (line 1008)
  52966. * Wmismatched-tags: C++ Dialect Options.
  52967. (line 1039)
  52968. * Wmissing-attributes: Warning Options. (line 832)
  52969. * Wmissing-braces: Warning Options. (line 876)
  52970. * Wmissing-declarations: Warning Options. (line 2751)
  52971. * Wmissing-field-initializers: Warning Options. (line 2761)
  52972. * Wmissing-format-attribute: Warning Options. (line 1635)
  52973. * Wmissing-include-dirs: Warning Options. (line 886)
  52974. * Wmissing-noreturn: Warning Options. (line 1621)
  52975. * Wmissing-parameter-type: Warning Options. (line 2733)
  52976. * Wmissing-profile: Warning Options. (line 889)
  52977. * Wmissing-prototypes: Warning Options. (line 2741)
  52978. * Wmisspelled-isr: AVR Options. (line 311)
  52979. * Wmultichar: Warning Options. (line 2791)
  52980. * Wmultiple-inheritance: C++ Dialect Options.
  52981. (line 1064)
  52982. * Wmultistatement-macros: Warning Options. (line 936)
  52983. * Wnamespaces: C++ Dialect Options.
  52984. (line 1087)
  52985. * Wnarrowing: C++ Dialect Options.
  52986. (line 715)
  52987. * Wnested-externs: Warning Options. (line 2959)
  52988. * Wno-abi: Warning Options. (line 260)
  52989. * Wno-absolute-value: Warning Options. (line 2275)
  52990. * Wno-addr-space-convert: AVR Options. (line 306)
  52991. * Wno-address: Warning Options. (line 2631)
  52992. * Wno-address-of-packed-member: Warning Options. (line 2644)
  52993. * Wno-aggregate-return: Warning Options. (line 2672)
  52994. * Wno-aggressive-loop-optimizations: Warning Options. (line 2677)
  52995. * Wno-aligned-new: C++ Dialect Options.
  52996. (line 1146)
  52997. * Wno-all: Warning Options. (line 138)
  52998. * Wno-alloc-size-larger-than: Warning Options. (line 1674)
  52999. * Wno-alloc-size-larger-than <1>: Warning Options. (line 1685)
  53000. * Wno-alloc-zero: Warning Options. (line 1664)
  53001. * Wno-alloca: Warning Options. (line 1689)
  53002. * Wno-alloca-larger-than: Warning Options. (line 1692)
  53003. * Wno-alloca-larger-than <1>: Warning Options. (line 1753)
  53004. * Wno-analyzer-double-fclose: Static Analyzer Options.
  53005. (line 52)
  53006. * Wno-analyzer-double-free: Static Analyzer Options.
  53007. (line 59)
  53008. * Wno-analyzer-exposure-through-output-file: Static Analyzer Options.
  53009. (line 67)
  53010. * Wno-analyzer-file-leak: Static Analyzer Options.
  53011. (line 75)
  53012. * Wno-analyzer-free-of-non-heap: Static Analyzer Options.
  53013. (line 82)
  53014. * Wno-analyzer-malloc-leak: Static Analyzer Options.
  53015. (line 90)
  53016. * Wno-analyzer-mismatching-deallocation: Static Analyzer Options.
  53017. (line 98)
  53018. * Wno-analyzer-null-argument: Static Analyzer Options.
  53019. (line 124)
  53020. * Wno-analyzer-null-dereference: Static Analyzer Options.
  53021. (line 132)
  53022. * Wno-analyzer-possible-null-argument: Static Analyzer Options.
  53023. (line 109)
  53024. * Wno-analyzer-possible-null-dereference: Static Analyzer Options.
  53025. (line 117)
  53026. * Wno-analyzer-shift-count-negative: Static Analyzer Options.
  53027. (line 139)
  53028. * Wno-analyzer-shift-count-overflow: Static Analyzer Options.
  53029. (line 151)
  53030. * Wno-analyzer-stale-setjmp-buffer: Static Analyzer Options.
  53031. (line 164)
  53032. * Wno-analyzer-tainted-array-index: Static Analyzer Options.
  53033. (line 178)
  53034. * Wno-analyzer-too-complex: Static Analyzer Options.
  53035. (line 42)
  53036. * Wno-analyzer-unsafe-call-within-signal-handler: Static Analyzer Options.
  53037. (line 187)
  53038. * Wno-analyzer-use-after-free: Static Analyzer Options.
  53039. (line 195)
  53040. * Wno-analyzer-use-of-pointer-in-stale-stack-frame: Static Analyzer Options.
  53041. (line 203)
  53042. * Wno-analyzer-write-to-const: Static Analyzer Options.
  53043. (line 210)
  53044. * Wno-analyzer-write-to-string-literal: Static Analyzer Options.
  53045. (line 220)
  53046. * Wno-arith-conversion: Warning Options. (line 1757)
  53047. * Wno-array-bounds: Warning Options. (line 1770)
  53048. * Wno-array-parameter: Warning Options. (line 1787)
  53049. * Wno-assign-intercept: Objective-C and Objective-C++ Dialect Options.
  53050. (line 170)
  53051. * Wno-attribute-alias: Warning Options. (line 1831)
  53052. * Wno-attribute-warning: Warning Options. (line 2840)
  53053. * Wno-attributes: Warning Options. (line 2682)
  53054. * Wno-bad-function-cast: Warning Options. (line 2344)
  53055. * Wno-bool-compare: Warning Options. (line 1863)
  53056. * Wno-bool-operation: Warning Options. (line 1872)
  53057. * Wno-builtin-declaration-mismatch: Warning Options. (line 2688)
  53058. * Wno-builtin-macro-redefined: Warning Options. (line 2709)
  53059. * Wno-c++-compat: Warning Options. (line 2372)
  53060. * Wno-c++11-compat: Warning Options. (line 2377)
  53061. * Wno-c++14-compat: Warning Options. (line 2383)
  53062. * Wno-c++17-compat: Warning Options. (line 2387)
  53063. * Wno-c++20-compat: Warning Options. (line 2391)
  53064. * Wno-c11-c2x-compat: Warning Options. (line 2364)
  53065. * Wno-c90-c99-compat: Warning Options. (line 2349)
  53066. * Wno-c99-c11-compat: Warning Options. (line 2356)
  53067. * Wno-cast-align: Warning Options. (line 2411)
  53068. * Wno-cast-function-type: Warning Options. (line 2422)
  53069. * Wno-cast-qual: Warning Options. (line 2395)
  53070. * Wno-catch-value: C++ Dialect Options.
  53071. (line 1193)
  53072. * Wno-char-subscripts: Warning Options. (line 370)
  53073. * Wno-class-conversion: C++ Dialect Options.
  53074. (line 1124)
  53075. * Wno-class-memaccess: C++ Dialect Options.
  53076. (line 751)
  53077. * Wno-clobbered: Warning Options. (line 2448)
  53078. * Wno-comma-subscript: C++ Dialect Options.
  53079. (line 570)
  53080. * Wno-conditionally-supported: C++ Dialect Options.
  53081. (line 1201)
  53082. * Wno-conversion: Warning Options. (line 2452)
  53083. * Wno-conversion-null: C++ Dialect Options.
  53084. (line 1278)
  53085. * Wno-coverage-mismatch: Warning Options. (line 375)
  53086. * Wno-cpp: Warning Options. (line 389)
  53087. * Wno-ctad-maybe-unsupported: C++ Dialect Options.
  53088. (line 582)
  53089. * Wno-ctor-dtor-privacy: C++ Dialect Options.
  53090. (line 598)
  53091. * Wno-dangling-else: Warning Options. (line 2473)
  53092. * Wno-date-time: Warning Options. (line 2507)
  53093. * Wno-declaration-after-statement: Warning Options. (line 2092)
  53094. * Wno-delete-incomplete: C++ Dialect Options.
  53095. (line 1204)
  53096. * Wno-delete-non-virtual-dtor: C++ Dialect Options.
  53097. (line 605)
  53098. * Wno-deprecated: Warning Options. (line 2847)
  53099. * Wno-deprecated-copy: C++ Dialect Options.
  53100. (line 612)
  53101. * Wno-deprecated-declarations: Warning Options. (line 2851)
  53102. * Wno-deprecated-enum-enum-conversion: C++ Dialect Options.
  53103. (line 620)
  53104. * Wno-deprecated-enum-float-conversion: C++ Dialect Options.
  53105. (line 634)
  53106. * Wno-designated-init: Warning Options. (line 3139)
  53107. * Wno-disabled-optimization: Warning Options. (line 3090)
  53108. * Wno-discarded-array-qualifiers: Warning Options. (line 1911)
  53109. * Wno-discarded-qualifiers: Warning Options. (line 1905)
  53110. * Wno-div-by-zero: Warning Options. (line 1952)
  53111. * Wno-double-promotion: Warning Options. (line 393)
  53112. * Wno-duplicate-decl-specifier: Warning Options. (line 411)
  53113. * Wno-duplicated-branches: Warning Options. (line 1882)
  53114. * Wno-duplicated-cond: Warning Options. (line 1893)
  53115. * Wno-effc++: C++ Dialect Options.
  53116. (line 917)
  53117. * Wno-empty-body: Warning Options. (line 2512)
  53118. * Wno-endif-labels: Warning Options. (line 2330)
  53119. * Wno-endif-labels <1>: Warning Options. (line 2516)
  53120. * Wno-enum-compare: Warning Options. (line 2519)
  53121. * Wno-enum-conversion: Warning Options. (line 2525)
  53122. * Wno-error: Warning Options. (line 28)
  53123. * Wno-error=: Warning Options. (line 31)
  53124. * Wno-exceptions: C++ Dialect Options.
  53125. (line 945)
  53126. * Wno-extra: Warning Options. (line 215)
  53127. * Wno-extra <1>: Warning Options. (line 2761)
  53128. * Wno-extra <2>: Warning Options. (line 2869)
  53129. * Wno-extra-semi: C++ Dialect Options.
  53130. (line 1209)
  53131. * Wno-fatal-errors: Warning Options. (line 48)
  53132. * Wno-float-conversion: Warning Options. (line 2553)
  53133. * Wno-float-equal: Warning Options. (line 1992)
  53134. * Wno-format: Warning Options. (line 416)
  53135. * Wno-format <1>: Warning Options. (line 1635)
  53136. * Wno-format-contains-nul: Warning Options. (line 455)
  53137. * Wno-format-extra-args: Warning Options. (line 459)
  53138. * Wno-format-nonliteral: Warning Options. (line 552)
  53139. * Wno-format-overflow: Warning Options. (line 473)
  53140. * Wno-format-overflow <1>: Warning Options. (line 484)
  53141. * Wno-format-security: Warning Options. (line 557)
  53142. * Wno-format-signedness: Warning Options. (line 568)
  53143. * Wno-format-truncation: Warning Options. (line 573)
  53144. * Wno-format-truncation <1>: Warning Options. (line 585)
  53145. * Wno-format-y2k: Warning Options. (line 596)
  53146. * Wno-format-zero-length: Warning Options. (line 548)
  53147. * Wno-frame-address: Warning Options. (line 1899)
  53148. * Wno-frame-larger-than: Warning Options. (line 2166)
  53149. * Wno-frame-larger-than <1>: Warning Options. (line 2179)
  53150. * Wno-free-nonheap-object: Warning Options. (line 2183)
  53151. * Wno-if-not-aligned: Warning Options. (line 769)
  53152. * Wno-ignored-attributes: Warning Options. (line 784)
  53153. * Wno-ignored-qualifiers: Warning Options. (line 773)
  53154. * Wno-implicit: Warning Options. (line 647)
  53155. * Wno-implicit-fallthrough: Warning Options. (line 651)
  53156. * Wno-implicit-function-declaration: Warning Options. (line 641)
  53157. * Wno-implicit-int: Warning Options. (line 636)
  53158. * Wno-inaccessible-base: C++ Dialect Options.
  53159. (line 1213)
  53160. * Wno-incompatible-pointer-types: Warning Options. (line 1917)
  53161. * Wno-inherited-variadic-ctor: C++ Dialect Options.
  53162. (line 1224)
  53163. * Wno-init-list-lifetime: C++ Dialect Options.
  53164. (line 648)
  53165. * Wno-init-self: Warning Options. (line 621)
  53166. * Wno-inline: Warning Options. (line 2962)
  53167. * Wno-int-conversion: Warning Options. (line 1923)
  53168. * Wno-int-in-bool-context: Warning Options. (line 2975)
  53169. * Wno-int-to-pointer-cast: Warning Options. (line 2983)
  53170. * Wno-invalid-imported-macros: C++ Dialect Options.
  53171. (line 683)
  53172. * Wno-invalid-memory-model: Warning Options. (line 1279)
  53173. * Wno-invalid-offsetof: C++ Dialect Options.
  53174. (line 1229)
  53175. * Wno-invalid-pch: Warning Options. (line 2992)
  53176. * Wno-jump-misses-init: Warning Options. (line 2530)
  53177. * Wno-larger-than: Warning Options. (line 2162)
  53178. * Wno-literal-suffix: C++ Dialect Options.
  53179. (line 689)
  53180. * Wno-logical-not-parentheses: Warning Options. (line 2657)
  53181. * Wno-logical-op: Warning Options. (line 2649)
  53182. * Wno-long-long: Warning Options. (line 2996)
  53183. * Wno-lto-type-mismatch: Warning Options. (line 3133)
  53184. * Wno-main: Warning Options. (line 791)
  53185. * Wno-maybe-uninitialized: Warning Options. (line 1296)
  53186. * Wno-memset-elt-size: Warning Options. (line 2612)
  53187. * Wno-memset-transposed-args: Warning Options. (line 2620)
  53188. * Wno-misleading-indentation: Warning Options. (line 798)
  53189. * Wno-mismatched-dealloc: Warning Options. (line 905)
  53190. * Wno-mismatched-new-delete: C++ Dialect Options.
  53191. (line 1008)
  53192. * Wno-mismatched-tags: C++ Dialect Options.
  53193. (line 1039)
  53194. * Wno-missing-attributes: Warning Options. (line 832)
  53195. * Wno-missing-braces: Warning Options. (line 876)
  53196. * Wno-missing-declarations: Warning Options. (line 2751)
  53197. * Wno-missing-field-initializers: Warning Options. (line 2761)
  53198. * Wno-missing-format-attribute: Warning Options. (line 1635)
  53199. * Wno-missing-include-dirs: Warning Options. (line 886)
  53200. * Wno-missing-noreturn: Warning Options. (line 1621)
  53201. * Wno-missing-parameter-type: Warning Options. (line 2733)
  53202. * Wno-missing-profile: Warning Options. (line 889)
  53203. * Wno-missing-prototypes: Warning Options. (line 2741)
  53204. * Wno-misspelled-isr: AVR Options. (line 311)
  53205. * Wno-multichar: Warning Options. (line 2791)
  53206. * Wno-multiple-inheritance: C++ Dialect Options.
  53207. (line 1064)
  53208. * Wno-multistatement-macros: Warning Options. (line 936)
  53209. * Wno-namespaces: C++ Dialect Options.
  53210. (line 1087)
  53211. * Wno-narrowing: C++ Dialect Options.
  53212. (line 715)
  53213. * Wno-nested-externs: Warning Options. (line 2959)
  53214. * Wno-noexcept: C++ Dialect Options.
  53215. (line 731)
  53216. * Wno-noexcept-type: C++ Dialect Options.
  53217. (line 737)
  53218. * Wno-non-template-friend: C++ Dialect Options.
  53219. (line 957)
  53220. * Wno-non-virtual-dtor: C++ Dialect Options.
  53221. (line 771)
  53222. * Wno-nonnull: Warning Options. (line 600)
  53223. * Wno-nonnull-compare: Warning Options. (line 607)
  53224. * Wno-normalized: Warning Options. (line 2797)
  53225. * Wno-null-dereference: Warning Options. (line 614)
  53226. * Wno-odr: Warning Options. (line 2860)
  53227. * Wno-old-style-cast: C++ Dialect Options.
  53228. (line 966)
  53229. * Wno-old-style-declaration: Warning Options. (line 2720)
  53230. * Wno-old-style-definition: Warning Options. (line 2726)
  53231. * Wno-openmp-simd: Warning Options. (line 2864)
  53232. * Wno-overflow: Warning Options. (line 2857)
  53233. * Wno-overlength-strings: Warning Options. (line 3110)
  53234. * Wno-overloaded-virtual: C++ Dialect Options.
  53235. (line 972)
  53236. * Wno-override-init: Warning Options. (line 2869)
  53237. * Wno-override-init-side-effects: Warning Options. (line 2877)
  53238. * Wno-packed: Warning Options. (line 2882)
  53239. * Wno-packed-bitfield-compat: Warning Options. (line 2899)
  53240. * Wno-packed-not-aligned: Warning Options. (line 2916)
  53241. * Wno-padded: Warning Options. (line 2929)
  53242. * Wno-parentheses: Warning Options. (line 956)
  53243. * Wno-pedantic: Warning Options. (line 86)
  53244. * Wno-pedantic-ms-format: Warning Options. (line 2234)
  53245. * Wno-pessimizing-move: C++ Dialect Options.
  53246. (line 800)
  53247. * Wno-placement-new: C++ Dialect Options.
  53248. (line 1157)
  53249. * Wno-pmf-conversions: C++ Dialect Options.
  53250. (line 991)
  53251. * Wno-pmf-conversions <1>: Bound member functions.
  53252. (line 35)
  53253. * Wno-pointer-arith: Warning Options. (line 2240)
  53254. * Wno-pointer-compare: Warning Options. (line 2247)
  53255. * Wno-pointer-sign: Warning Options. (line 3099)
  53256. * Wno-pointer-to-int-cast: Warning Options. (line 2988)
  53257. * Wno-pragmas: Warning Options. (line 1356)
  53258. * Wno-prio-ctor-dtor: Warning Options. (line 1361)
  53259. * Wno-property-assign-default: Objective-C and Objective-C++ Dialect Options.
  53260. (line 174)
  53261. * Wno-protocol: Objective-C and Objective-C++ Dialect Options.
  53262. (line 178)
  53263. * Wno-range-loop-construct: C++ Dialect Options.
  53264. (line 861)
  53265. * Wno-redundant-decls: Warning Options. (line 2936)
  53266. * Wno-redundant-move: C++ Dialect Options.
  53267. (line 822)
  53268. * Wno-redundant-tags: C++ Dialect Options.
  53269. (line 890)
  53270. * Wno-register: C++ Dialect Options.
  53271. (line 779)
  53272. * Wno-reorder: C++ Dialect Options.
  53273. (line 786)
  53274. * Wno-restrict: Warning Options. (line 2940)
  53275. * Wno-return-local-addr: Warning Options. (line 1036)
  53276. * Wno-return-type: Warning Options. (line 1040)
  53277. * Wno-scalar-storage-order: Warning Options. (line 2559)
  53278. * Wno-selector: Objective-C and Objective-C++ Dialect Options.
  53279. (line 195)
  53280. * Wno-sequence-point: Warning Options. (line 983)
  53281. * Wno-shadow: Warning Options. (line 2098)
  53282. * Wno-shadow-ivar: Warning Options. (line 2109)
  53283. * Wno-shift-count-negative: Warning Options. (line 1061)
  53284. * Wno-shift-count-overflow: Warning Options. (line 1065)
  53285. * Wno-shift-negative-value: Warning Options. (line 1069)
  53286. * Wno-shift-overflow: Warning Options. (line 1074)
  53287. * Wno-sign-compare: Warning Options. (line 2541)
  53288. * Wno-sign-conversion: Warning Options. (line 2547)
  53289. * Wno-sign-promo: C++ Dialect Options.
  53290. (line 995)
  53291. * Wno-sized-deallocation: C++ Dialect Options.
  53292. (line 1241)
  53293. * Wno-sizeof-array-argument: Warning Options. (line 2607)
  53294. * Wno-sizeof-array-div: Warning Options. (line 2563)
  53295. * Wno-sizeof-pointer-div: Warning Options. (line 2577)
  53296. * Wno-sizeof-pointer-memaccess: Warning Options. (line 2585)
  53297. * Wno-stack-protector: Warning Options. (line 3105)
  53298. * Wno-stack-usage: Warning Options. (line 2200)
  53299. * Wno-stack-usage <1>: Warning Options. (line 2224)
  53300. * Wno-strict-aliasing: Warning Options. (line 1369)
  53301. * Wno-strict-null-sentinel: C++ Dialect Options.
  53302. (line 950)
  53303. * Wno-strict-overflow: Warning Options. (line 1408)
  53304. * Wno-strict-prototypes: Warning Options. (line 2714)
  53305. * Wno-strict-selector-match: Objective-C and Objective-C++ Dialect Options.
  53306. (line 207)
  53307. * Wno-string-compare: Warning Options. (line 1456)
  53308. * Wno-stringop-overflow: Warning Options. (line 1478)
  53309. * Wno-stringop-overflow <1>: Warning Options. (line 1517)
  53310. * Wno-stringop-overread: Warning Options. (line 1555)
  53311. * Wno-stringop-truncation: Warning Options. (line 1562)
  53312. * Wno-subobject-linkage: C++ Dialect Options.
  53313. (line 904)
  53314. * Wno-suggest-attribute=: Warning Options. (line 1613)
  53315. * Wno-suggest-attribute=cold: Warning Options. (line 1656)
  53316. * Wno-suggest-attribute=const: Warning Options. (line 1621)
  53317. * Wno-suggest-attribute=format: Warning Options. (line 1635)
  53318. * Wno-suggest-attribute=malloc: Warning Options. (line 1621)
  53319. * Wno-suggest-attribute=noreturn: Warning Options. (line 1621)
  53320. * Wno-suggest-attribute=pure: Warning Options. (line 1621)
  53321. * Wno-suggest-final-methods: C++ Dialect Options.
  53322. (line 1261)
  53323. * Wno-suggest-final-types: C++ Dialect Options.
  53324. (line 1252)
  53325. * Wno-suggest-override: C++ Dialect Options.
  53326. (line 1271)
  53327. * Wno-switch: Warning Options. (line 1090)
  53328. * Wno-switch-bool: Warning Options. (line 1110)
  53329. * Wno-switch-default: Warning Options. (line 1098)
  53330. * Wno-switch-enum: Warning Options. (line 1101)
  53331. * Wno-switch-outside-range: Warning Options. (line 1121)
  53332. * Wno-switch-unreachable: Warning Options. (line 1126)
  53333. * Wno-sync-nand: Warning Options. (line 1150)
  53334. * Wno-system-headers: Warning Options. (line 1957)
  53335. * Wno-tautological-compare: Warning Options. (line 1968)
  53336. * Wno-templates: C++ Dialect Options.
  53337. (line 1001)
  53338. * Wno-terminate: C++ Dialect Options.
  53339. (line 1094)
  53340. * Wno-traditional: Warning Options. (line 2007)
  53341. * Wno-traditional-conversion: Warning Options. (line 2084)
  53342. * Wno-trampolines: Warning Options. (line 1982)
  53343. * Wno-tsan: Warning Options. (line 2260)
  53344. * Wno-type-limits: Warning Options. (line 2268)
  53345. * Wno-undeclared-selector: Objective-C and Objective-C++ Dialect Options.
  53346. (line 215)
  53347. * Wno-undef: Warning Options. (line 2301)
  53348. * Wno-uninitialized: Warning Options. (line 1251)
  53349. * Wno-unknown-pragmas: Warning Options. (line 1349)
  53350. * Wno-unsafe-loop-optimizations: Warning Options. (line 2228)
  53351. * Wno-unsuffixed-float-constants: Warning Options. (line 3125)
  53352. * Wno-unused: Warning Options. (line 1244)
  53353. * Wno-unused-but-set-parameter: Warning Options. (line 1155)
  53354. * Wno-unused-but-set-variable: Warning Options. (line 1164)
  53355. * Wno-unused-const-variable: Warning Options. (line 1211)
  53356. * Wno-unused-function: Warning Options. (line 1174)
  53357. * Wno-unused-label: Warning Options. (line 1179)
  53358. * Wno-unused-local-typedefs: Warning Options. (line 1186)
  53359. * Wno-unused-parameter: Warning Options. (line 1190)
  53360. * Wno-unused-result: Warning Options. (line 1197)
  53361. * Wno-unused-value: Warning Options. (line 1234)
  53362. * Wno-unused-variable: Warning Options. (line 1202)
  53363. * Wno-useless-cast: C++ Dialect Options.
  53364. (line 1275)
  53365. * Wno-varargs: Warning Options. (line 3007)
  53366. * Wno-variadic-macros: Warning Options. (line 3001)
  53367. * Wno-vector-operation-performance: Warning Options. (line 3012)
  53368. * Wno-vexing-parse: C++ Dialect Options.
  53369. (line 1098)
  53370. * Wno-virtual-inheritance: C++ Dialect Options.
  53371. (line 1071)
  53372. * Wno-virtual-move-assign: C++ Dialect Options.
  53373. (line 1078)
  53374. * Wno-vla: Warning Options. (line 3022)
  53375. * Wno-vla-larger-than: Warning Options. (line 3026)
  53376. * Wno-vla-larger-than <1>: Warning Options. (line 3043)
  53377. * Wno-vla-parameter: Warning Options. (line 3047)
  53378. * Wno-volatile: C++ Dialect Options.
  53379. (line 1129)
  53380. * Wno-volatile-register-var: Warning Options. (line 3084)
  53381. * Wno-write-strings: Warning Options. (line 2435)
  53382. * Wno-zero-as-null-pointer-constant: C++ Dialect Options.
  53383. (line 1142)
  53384. * Wnoexcept: C++ Dialect Options.
  53385. (line 731)
  53386. * Wnoexcept-type: C++ Dialect Options.
  53387. (line 737)
  53388. * Wnon-template-friend: C++ Dialect Options.
  53389. (line 957)
  53390. * Wnon-virtual-dtor: C++ Dialect Options.
  53391. (line 771)
  53392. * Wnonnull: Warning Options. (line 600)
  53393. * Wnonnull-compare: Warning Options. (line 607)
  53394. * Wnormalized: Warning Options. (line 2797)
  53395. * Wnormalized=: Warning Options. (line 2797)
  53396. * Wnull-dereference: Warning Options. (line 614)
  53397. * Wobjc-root-class: Objective-C and Objective-C++ Dialect Options.
  53398. (line 188)
  53399. * Wodr: Warning Options. (line 2860)
  53400. * Wold-style-cast: C++ Dialect Options.
  53401. (line 966)
  53402. * Wold-style-declaration: Warning Options. (line 2720)
  53403. * Wold-style-definition: Warning Options. (line 2726)
  53404. * Wopenmp-simd: Warning Options. (line 2864)
  53405. * Woverflow: Warning Options. (line 2857)
  53406. * Woverlength-strings: Warning Options. (line 3110)
  53407. * Woverloaded-virtual: C++ Dialect Options.
  53408. (line 972)
  53409. * Woverride-init: Warning Options. (line 2869)
  53410. * Woverride-init-side-effects: Warning Options. (line 2877)
  53411. * Wp: Preprocessor Options.
  53412. (line 463)
  53413. * Wpacked: Warning Options. (line 2882)
  53414. * Wpacked-bitfield-compat: Warning Options. (line 2899)
  53415. * Wpacked-not-aligned: Warning Options. (line 2916)
  53416. * Wpadded: Warning Options. (line 2929)
  53417. * Wparentheses: Warning Options. (line 956)
  53418. * Wpedantic: Warning Options. (line 86)
  53419. * Wpedantic-ms-format: Warning Options. (line 2234)
  53420. * Wpessimizing-move: C++ Dialect Options.
  53421. (line 800)
  53422. * Wplacement-new: C++ Dialect Options.
  53423. (line 1157)
  53424. * Wpmf-conversions: C++ Dialect Options.
  53425. (line 991)
  53426. * Wpointer-arith: Warning Options. (line 2240)
  53427. * Wpointer-arith <1>: Pointer Arith. (line 13)
  53428. * Wpointer-compare: Warning Options. (line 2247)
  53429. * Wpointer-sign: Warning Options. (line 3099)
  53430. * Wpointer-to-int-cast: Warning Options. (line 2988)
  53431. * Wpragmas: Warning Options. (line 1356)
  53432. * Wprio-ctor-dtor: Warning Options. (line 1361)
  53433. * Wproperty-assign-default: Objective-C and Objective-C++ Dialect Options.
  53434. (line 174)
  53435. * Wprotocol: Objective-C and Objective-C++ Dialect Options.
  53436. (line 178)
  53437. * Wrange-loop-construct: C++ Dialect Options.
  53438. (line 861)
  53439. * wrapper: Overall Options. (line 623)
  53440. * Wredundant-decls: Warning Options. (line 2936)
  53441. * Wredundant-move: C++ Dialect Options.
  53442. (line 822)
  53443. * Wredundant-tags: C++ Dialect Options.
  53444. (line 890)
  53445. * Wregister: C++ Dialect Options.
  53446. (line 779)
  53447. * Wreorder: C++ Dialect Options.
  53448. (line 786)
  53449. * Wrestrict: Warning Options. (line 2940)
  53450. * Wreturn-local-addr: Warning Options. (line 1036)
  53451. * Wreturn-type: Warning Options. (line 1040)
  53452. * Wscalar-storage-order: Warning Options. (line 2559)
  53453. * Wselector: Objective-C and Objective-C++ Dialect Options.
  53454. (line 195)
  53455. * Wsequence-point: Warning Options. (line 983)
  53456. * Wshadow: Warning Options. (line 2098)
  53457. * Wshadow-ivar: Warning Options. (line 2109)
  53458. * Wshadow=compatible-local: Warning Options. (line 2120)
  53459. * Wshadow=global: Warning Options. (line 2113)
  53460. * Wshadow=local: Warning Options. (line 2116)
  53461. * Wshift-count-negative: Warning Options. (line 1061)
  53462. * Wshift-count-overflow: Warning Options. (line 1065)
  53463. * Wshift-negative-value: Warning Options. (line 1069)
  53464. * Wshift-overflow: Warning Options. (line 1074)
  53465. * Wsign-compare: Warning Options. (line 2541)
  53466. * Wsign-conversion: Warning Options. (line 2547)
  53467. * Wsign-promo: C++ Dialect Options.
  53468. (line 995)
  53469. * Wsized-deallocation: C++ Dialect Options.
  53470. (line 1241)
  53471. * Wsizeof-array-argument: Warning Options. (line 2607)
  53472. * Wsizeof-array-div: Warning Options. (line 2563)
  53473. * Wsizeof-pointer-div: Warning Options. (line 2577)
  53474. * Wsizeof-pointer-memaccess: Warning Options. (line 2585)
  53475. * Wstack-protector: Warning Options. (line 3105)
  53476. * Wstack-usage: Warning Options. (line 2200)
  53477. * Wstrict-aliasing: Warning Options. (line 1369)
  53478. * Wstrict-aliasing=n: Warning Options. (line 1376)
  53479. * Wstrict-null-sentinel: C++ Dialect Options.
  53480. (line 950)
  53481. * Wstrict-overflow: Warning Options. (line 1408)
  53482. * Wstrict-prototypes: Warning Options. (line 2714)
  53483. * Wstrict-selector-match: Objective-C and Objective-C++ Dialect Options.
  53484. (line 207)
  53485. * Wstring-compare: Warning Options. (line 1456)
  53486. * Wstringop-overflow: Warning Options. (line 1478)
  53487. * Wstringop-overflow <1>: Warning Options. (line 1517)
  53488. * Wstringop-overread: Warning Options. (line 1555)
  53489. * Wstringop-truncation: Warning Options. (line 1562)
  53490. * Wsubobject-linkage: C++ Dialect Options.
  53491. (line 904)
  53492. * Wsuggest-attribute=: Warning Options. (line 1613)
  53493. * Wsuggest-attribute=cold: Warning Options. (line 1656)
  53494. * Wsuggest-attribute=const: Warning Options. (line 1621)
  53495. * Wsuggest-attribute=format: Warning Options. (line 1635)
  53496. * Wsuggest-attribute=malloc: Warning Options. (line 1621)
  53497. * Wsuggest-attribute=noreturn: Warning Options. (line 1621)
  53498. * Wsuggest-attribute=pure: Warning Options. (line 1621)
  53499. * Wsuggest-final-methods: C++ Dialect Options.
  53500. (line 1261)
  53501. * Wsuggest-final-types: C++ Dialect Options.
  53502. (line 1252)
  53503. * Wsuggest-override: C++ Dialect Options.
  53504. (line 1271)
  53505. * Wswitch: Warning Options. (line 1090)
  53506. * Wswitch-bool: Warning Options. (line 1110)
  53507. * Wswitch-default: Warning Options. (line 1098)
  53508. * Wswitch-enum: Warning Options. (line 1101)
  53509. * Wswitch-outside-range: Warning Options. (line 1121)
  53510. * Wswitch-unreachable: Warning Options. (line 1126)
  53511. * Wsync-nand: Warning Options. (line 1150)
  53512. * Wsystem-headers: Warning Options. (line 1957)
  53513. * Wtautological-compare: Warning Options. (line 1968)
  53514. * Wtemplates: C++ Dialect Options.
  53515. (line 1001)
  53516. * Wterminate: C++ Dialect Options.
  53517. (line 1094)
  53518. * Wtraditional: Warning Options. (line 2007)
  53519. * Wtraditional-conversion: Warning Options. (line 2084)
  53520. * Wtrampolines: Warning Options. (line 1982)
  53521. * Wtrigraphs: Warning Options. (line 2291)
  53522. * Wtsan: Warning Options. (line 2260)
  53523. * Wtype-limits: Warning Options. (line 2268)
  53524. * Wundeclared-selector: Objective-C and Objective-C++ Dialect Options.
  53525. (line 215)
  53526. * Wundef: Warning Options. (line 2301)
  53527. * Wuninitialized: Warning Options. (line 1251)
  53528. * Wunknown-pragmas: Warning Options. (line 1349)
  53529. * Wunsafe-loop-optimizations: Warning Options. (line 2228)
  53530. * Wunsuffixed-float-constants: Warning Options. (line 3125)
  53531. * Wunused: Warning Options. (line 1244)
  53532. * Wunused-but-set-parameter: Warning Options. (line 1155)
  53533. * Wunused-but-set-variable: Warning Options. (line 1164)
  53534. * Wunused-const-variable: Warning Options. (line 1211)
  53535. * Wunused-function: Warning Options. (line 1174)
  53536. * Wunused-label: Warning Options. (line 1179)
  53537. * Wunused-local-typedefs: Warning Options. (line 1186)
  53538. * Wunused-macros: Warning Options. (line 2311)
  53539. * Wunused-parameter: Warning Options. (line 1190)
  53540. * Wunused-result: Warning Options. (line 1197)
  53541. * Wunused-value: Warning Options. (line 1234)
  53542. * Wunused-variable: Warning Options. (line 1202)
  53543. * Wuseless-cast: C++ Dialect Options.
  53544. (line 1275)
  53545. * Wvarargs: Warning Options. (line 3007)
  53546. * Wvariadic-macros: Warning Options. (line 3001)
  53547. * Wvector-operation-performance: Warning Options. (line 3012)
  53548. * Wvexing-parse: C++ Dialect Options.
  53549. (line 1098)
  53550. * Wvirtual-inheritance: C++ Dialect Options.
  53551. (line 1071)
  53552. * Wvirtual-move-assign: C++ Dialect Options.
  53553. (line 1078)
  53554. * Wvla: Warning Options. (line 3022)
  53555. * Wvla-larger-than=: Warning Options. (line 3026)
  53556. * Wvolatile: C++ Dialect Options.
  53557. (line 1129)
  53558. * Wvolatile-register-var: Warning Options. (line 3084)
  53559. * Wwrite-strings: Warning Options. (line 2435)
  53560. * Wzero-as-null-pointer-constant: C++ Dialect Options.
  53561. (line 1142)
  53562. * Wzero-length-bounds: Warning Options. (line 1929)
  53563. * Wzero-length-bounds <1>: Warning Options. (line 1929)
  53564. * x: Overall Options. (line 138)
  53565. * Xassembler: Assembler Options. (line 13)
  53566. * Xbind-lazy: VxWorks Options. (line 26)
  53567. * Xbind-now: VxWorks Options. (line 30)
  53568. * Xlinker: Link Options. (line 317)
  53569. * Xpreprocessor: Preprocessor Options.
  53570. (line 474)
  53571. * Ym: System V Options. (line 26)
  53572. * YP: System V Options. (line 22)
  53573. * z: Link Options. (line 348)
  53574. 
  53575. File: gcc.info, Node: Keyword Index, Prev: Option Index, Up: Top
  53576. Keyword Index
  53577. *************
  53578. �[index�]
  53579. * Menu:
  53580. * #pragma: Pragmas. (line 6)
  53581. * #pragma implementation: C++ Interface. (line 36)
  53582. * #pragma implementation, implied: C++ Interface. (line 43)
  53583. * #pragma interface: C++ Interface. (line 17)
  53584. * $: Dollar Signs. (line 6)
  53585. * % in constraint: Modifiers. (line 52)
  53586. * %include: Spec Files. (line 26)
  53587. * %include_noerr: Spec Files. (line 30)
  53588. * %rename: Spec Files. (line 34)
  53589. * & in constraint: Modifiers. (line 25)
  53590. * ': Incompatibilities. (line 116)
  53591. * *__builtin_alloca: Other Builtins. (line 129)
  53592. * *__builtin_alloca_with_align: Other Builtins. (line 166)
  53593. * *__builtin_alloca_with_align_and_max: Other Builtins. (line 211)
  53594. * + in constraint: Modifiers. (line 12)
  53595. * -lgcc, use with -nodefaultlibs: Link Options. (line 154)
  53596. * -lgcc, use with -nostdlib: Link Options. (line 154)
  53597. * -march feature modifiers: AArch64 Options. (line 307)
  53598. * -mcpu feature modifiers: AArch64 Options. (line 307)
  53599. * -nodefaultlibs and unresolved references: Link Options. (line 154)
  53600. * -nostdlib and unresolved references: Link Options. (line 154)
  53601. * .sdata/.sdata2 references (PowerPC): RS/6000 and PowerPC Options.
  53602. (line 714)
  53603. * //: C++ Comments. (line 6)
  53604. * 0 in constraint: Simple Constraints. (line 125)
  53605. * < in constraint: Simple Constraints. (line 47)
  53606. * = in constraint: Modifiers. (line 8)
  53607. * > in constraint: Simple Constraints. (line 59)
  53608. * ?: extensions: Conditionals. (line 6)
  53609. * ?: side effect: Conditionals. (line 20)
  53610. * _ in variables in macros: Typeof. (line 46)
  53611. * _Accum data type: Fixed-Point. (line 6)
  53612. * _Complex keyword: Complex. (line 6)
  53613. * _Decimal128 data type: Decimal Float. (line 6)
  53614. * _Decimal32 data type: Decimal Float. (line 6)
  53615. * _Decimal64 data type: Decimal Float. (line 6)
  53616. * _Exit: Other Builtins. (line 6)
  53617. * _exit: Other Builtins. (line 6)
  53618. * _FloatN data types: Floating Types. (line 6)
  53619. * _FloatNx data types: Floating Types. (line 6)
  53620. * _Fract data type: Fixed-Point. (line 6)
  53621. * _get_ssp: x86 control-flow protection intrinsics.
  53622. (line 6)
  53623. * _HTM_FIRST_USER_ABORT_CODE: S/390 System z Built-in Functions.
  53624. (line 44)
  53625. * _inc_ssp: x86 control-flow protection intrinsics.
  53626. (line 12)
  53627. * _Sat data type: Fixed-Point. (line 6)
  53628. * _xabort: x86 transactional memory intrinsics.
  53629. (line 57)
  53630. * _xbegin: x86 transactional memory intrinsics.
  53631. (line 19)
  53632. * _xend: x86 transactional memory intrinsics.
  53633. (line 48)
  53634. * _xtest: x86 transactional memory intrinsics.
  53635. (line 53)
  53636. * __atomic_add_fetch: __atomic Builtins. (line 179)
  53637. * __atomic_always_lock_free: __atomic Builtins. (line 267)
  53638. * __atomic_and_fetch: __atomic Builtins. (line 183)
  53639. * __atomic_clear: __atomic Builtins. (line 241)
  53640. * __atomic_compare_exchange: __atomic Builtins. (line 171)
  53641. * __atomic_compare_exchange_n: __atomic Builtins. (line 147)
  53642. * __atomic_exchange: __atomic Builtins. (line 141)
  53643. * __atomic_exchange_n: __atomic Builtins. (line 131)
  53644. * __atomic_fetch_add: __atomic Builtins. (line 204)
  53645. * __atomic_fetch_and: __atomic Builtins. (line 208)
  53646. * __atomic_fetch_nand: __atomic Builtins. (line 214)
  53647. * __atomic_fetch_or: __atomic Builtins. (line 212)
  53648. * __atomic_fetch_sub: __atomic Builtins. (line 206)
  53649. * __atomic_fetch_xor: __atomic Builtins. (line 210)
  53650. * __atomic_is_lock_free: __atomic Builtins. (line 281)
  53651. * __atomic_load: __atomic Builtins. (line 113)
  53652. * __atomic_load_n: __atomic Builtins. (line 106)
  53653. * __atomic_nand_fetch: __atomic Builtins. (line 189)
  53654. * __atomic_or_fetch: __atomic Builtins. (line 187)
  53655. * __atomic_signal_fence: __atomic Builtins. (line 260)
  53656. * __atomic_store: __atomic Builtins. (line 126)
  53657. * __atomic_store_n: __atomic Builtins. (line 118)
  53658. * __atomic_sub_fetch: __atomic Builtins. (line 181)
  53659. * __atomic_test_and_set: __atomic Builtins. (line 229)
  53660. * __atomic_thread_fence: __atomic Builtins. (line 253)
  53661. * __atomic_xor_fetch: __atomic Builtins. (line 185)
  53662. * __builtin_addf128_round_to_odd: Basic PowerPC Built-in Functions Available on ISA 3.0.
  53663. (line 17)
  53664. * __builtin_add_overflow: Integer Overflow Builtins.
  53665. (line 9)
  53666. * __builtin_add_overflow_p: Integer Overflow Builtins.
  53667. (line 86)
  53668. * __builtin_alloca: Other Builtins. (line 6)
  53669. * __builtin_alloca_with_align: Other Builtins. (line 6)
  53670. * __builtin_alloca_with_align_and_max: Other Builtins. (line 6)
  53671. * __builtin_apply: Constructing Calls. (line 29)
  53672. * __builtin_apply_args: Constructing Calls. (line 19)
  53673. * __builtin_arc_aligned: ARC Built-in Functions.
  53674. (line 18)
  53675. * __builtin_arc_brk: ARC Built-in Functions.
  53676. (line 28)
  53677. * __builtin_arc_core_read: ARC Built-in Functions.
  53678. (line 32)
  53679. * __builtin_arc_core_write: ARC Built-in Functions.
  53680. (line 39)
  53681. * __builtin_arc_divaw: ARC Built-in Functions.
  53682. (line 46)
  53683. * __builtin_arc_flag: ARC Built-in Functions.
  53684. (line 53)
  53685. * __builtin_arc_lr: ARC Built-in Functions.
  53686. (line 57)
  53687. * __builtin_arc_mul64: ARC Built-in Functions.
  53688. (line 64)
  53689. * __builtin_arc_mulu64: ARC Built-in Functions.
  53690. (line 68)
  53691. * __builtin_arc_nop: ARC Built-in Functions.
  53692. (line 73)
  53693. * __builtin_arc_norm: ARC Built-in Functions.
  53694. (line 77)
  53695. * __builtin_arc_normw: ARC Built-in Functions.
  53696. (line 84)
  53697. * __builtin_arc_rtie: ARC Built-in Functions.
  53698. (line 91)
  53699. * __builtin_arc_sleep: ARC Built-in Functions.
  53700. (line 95)
  53701. * __builtin_arc_sr: ARC Built-in Functions.
  53702. (line 99)
  53703. * __builtin_arc_swap: ARC Built-in Functions.
  53704. (line 106)
  53705. * __builtin_arc_swi: ARC Built-in Functions.
  53706. (line 112)
  53707. * __builtin_arc_sync: ARC Built-in Functions.
  53708. (line 116)
  53709. * __builtin_arc_trap_s: ARC Built-in Functions.
  53710. (line 120)
  53711. * __builtin_arc_unimp_s: ARC Built-in Functions.
  53712. (line 124)
  53713. * __builtin_assume_aligned: Other Builtins. (line 690)
  53714. * __builtin_bit_cast: Other Builtins. (line 576)
  53715. * __builtin_bswap128: Other Builtins. (line 1035)
  53716. * __builtin_bswap16: Other Builtins. (line 1023)
  53717. * __builtin_bswap32: Other Builtins. (line 1027)
  53718. * __builtin_bswap64: Other Builtins. (line 1031)
  53719. * __builtin_call_with_static_chain: Other Builtins. (line 6)
  53720. * __builtin_call_with_static_chain <1>: Other Builtins. (line 385)
  53721. * __builtin_cfuged: Basic PowerPC Built-in Functions Available on ISA 3.1.
  53722. (line 18)
  53723. * __builtin_choose_expr: Other Builtins. (line 396)
  53724. * __builtin_clear_padding: Other Builtins. (line 562)
  53725. * __builtin_clrsb: Other Builtins. (line 953)
  53726. * __builtin_clrsbl: Other Builtins. (line 975)
  53727. * __builtin_clrsbll: Other Builtins. (line 998)
  53728. * __builtin_clz: Other Builtins. (line 945)
  53729. * __builtin_clzl: Other Builtins. (line 967)
  53730. * __builtin_clzll: Other Builtins. (line 990)
  53731. * __builtin_cntlzdm: Basic PowerPC Built-in Functions Available on ISA 3.1.
  53732. (line 23)
  53733. * __builtin_cnttzdm: Basic PowerPC Built-in Functions Available on ISA 3.1.
  53734. (line 28)
  53735. * __builtin_complex: Other Builtins. (line 490)
  53736. * __builtin_constant_p: Other Builtins. (line 499)
  53737. * __builtin_convertvector: Vector Extensions. (line 165)
  53738. * __builtin_cpu_init: Basic PowerPC Built-in Functions Available on all Configurations.
  53739. (line 6)
  53740. * __builtin_cpu_init <1>: x86 Built-in Functions.
  53741. (line 68)
  53742. * __builtin_cpu_is: Basic PowerPC Built-in Functions Available on all Configurations.
  53743. (line 10)
  53744. * __builtin_cpu_is <1>: x86 Built-in Functions.
  53745. (line 96)
  53746. * __builtin_cpu_supports: Basic PowerPC Built-in Functions Available on all Configurations.
  53747. (line 70)
  53748. * __builtin_cpu_supports <1>: x86 Built-in Functions.
  53749. (line 249)
  53750. * __builtin_ctz: Other Builtins. (line 949)
  53751. * __builtin_ctzl: Other Builtins. (line 971)
  53752. * __builtin_ctzll: Other Builtins. (line 994)
  53753. * __builtin_divf128_round_to_odd: Basic PowerPC Built-in Functions Available on ISA 3.0.
  53754. (line 29)
  53755. * __builtin_expect: Other Builtins. (line 590)
  53756. * __builtin_expect_with_probability: Other Builtins. (line 625)
  53757. * __builtin_extend_pointer: Other Builtins. (line 6)
  53758. * __builtin_extend_pointer <1>: Other Builtins. (line 1040)
  53759. * __builtin_extract_return_addr: Return Address. (line 50)
  53760. * __builtin_ffs: Other Builtins. (line 941)
  53761. * __builtin_ffsl: Other Builtins. (line 964)
  53762. * __builtin_ffsll: Other Builtins. (line 986)
  53763. * __builtin_FILE: Other Builtins. (line 723)
  53764. * __builtin_fmaf128_round_to_odd: Basic PowerPC Built-in Functions Available on ISA 3.0.
  53765. (line 37)
  53766. * __builtin_fpclassify: Other Builtins. (line 6)
  53767. * __builtin_fpclassify <1>: Other Builtins. (line 825)
  53768. * __builtin_frame_address: Return Address. (line 62)
  53769. * __builtin_frob_return_addr: Return Address. (line 59)
  53770. * __builtin_FUNCTION: Other Builtins. (line 715)
  53771. * __builtin_goacc_parlevel_id: Other Builtins. (line 1047)
  53772. * __builtin_goacc_parlevel_size: Other Builtins. (line 1051)
  53773. * __builtin_has_attribute: Other Builtins. (line 6)
  53774. * __builtin_has_attribute <1>: Other Builtins. (line 220)
  53775. * __builtin_huge_val: Other Builtins. (line 805)
  53776. * __builtin_huge_valf: Other Builtins. (line 810)
  53777. * __builtin_huge_valfN: Other Builtins. (line 817)
  53778. * __builtin_huge_valfNx: Other Builtins. (line 821)
  53779. * __builtin_huge_vall: Other Builtins. (line 813)
  53780. * __builtin_huge_valq: x86 Built-in Functions.
  53781. (line 50)
  53782. * __builtin_inf: Other Builtins. (line 836)
  53783. * __builtin_infd128: Other Builtins. (line 846)
  53784. * __builtin_infd32: Other Builtins. (line 840)
  53785. * __builtin_infd64: Other Builtins. (line 843)
  53786. * __builtin_inff: Other Builtins. (line 850)
  53787. * __builtin_inffN: Other Builtins. (line 859)
  53788. * __builtin_inffNx: Other Builtins. (line 862)
  53789. * __builtin_infl: Other Builtins. (line 855)
  53790. * __builtin_infq: x86 Built-in Functions.
  53791. (line 47)
  53792. * __builtin_isfinite: Other Builtins. (line 6)
  53793. * __builtin_isgreater: Other Builtins. (line 6)
  53794. * __builtin_isgreaterequal: Other Builtins. (line 6)
  53795. * __builtin_isinf_sign: Other Builtins. (line 6)
  53796. * __builtin_isinf_sign <1>: Other Builtins. (line 865)
  53797. * __builtin_isless: Other Builtins. (line 6)
  53798. * __builtin_islessequal: Other Builtins. (line 6)
  53799. * __builtin_islessgreater: Other Builtins. (line 6)
  53800. * __builtin_isnormal: Other Builtins. (line 6)
  53801. * __builtin_isunordered: Other Builtins. (line 6)
  53802. * __builtin_is_constant_evaluated: Other Builtins. (line 544)
  53803. * __builtin_LINE: Other Builtins. (line 708)
  53804. * __builtin_longjmp: Nonlocal Gotos. (line 37)
  53805. * __builtin_mulf128_round_to_odd: Basic PowerPC Built-in Functions Available on ISA 3.0.
  53806. (line 25)
  53807. * __builtin_mul_overflow: Integer Overflow Builtins.
  53808. (line 63)
  53809. * __builtin_mul_overflow_p: Integer Overflow Builtins.
  53810. (line 90)
  53811. * __builtin_nan: Other Builtins. (line 873)
  53812. * __builtin_nand128: Other Builtins. (line 895)
  53813. * __builtin_nand32: Other Builtins. (line 889)
  53814. * __builtin_nand64: Other Builtins. (line 892)
  53815. * __builtin_nanf: Other Builtins. (line 899)
  53816. * __builtin_nanfN: Other Builtins. (line 906)
  53817. * __builtin_nanfNx: Other Builtins. (line 909)
  53818. * __builtin_nanl: Other Builtins. (line 902)
  53819. * __builtin_nanq: x86 Built-in Functions.
  53820. (line 54)
  53821. * __builtin_nans: Other Builtins. (line 912)
  53822. * __builtin_nansd128: Other Builtins. (line 924)
  53823. * __builtin_nansd32: Other Builtins. (line 916)
  53824. * __builtin_nansd64: Other Builtins. (line 920)
  53825. * __builtin_nansf: Other Builtins. (line 928)
  53826. * __builtin_nansfN: Other Builtins. (line 935)
  53827. * __builtin_nansfNx: Other Builtins. (line 938)
  53828. * __builtin_nansl: Other Builtins. (line 931)
  53829. * __builtin_nansq: x86 Built-in Functions.
  53830. (line 57)
  53831. * __builtin_nds32_isb: NDS32 Built-in Functions.
  53832. (line 12)
  53833. * __builtin_nds32_isync: NDS32 Built-in Functions.
  53834. (line 8)
  53835. * __builtin_nds32_mfsr: NDS32 Built-in Functions.
  53836. (line 15)
  53837. * __builtin_nds32_mfusr: NDS32 Built-in Functions.
  53838. (line 18)
  53839. * __builtin_nds32_mtsr: NDS32 Built-in Functions.
  53840. (line 21)
  53841. * __builtin_nds32_mtusr: NDS32 Built-in Functions.
  53842. (line 24)
  53843. * __builtin_nds32_setgie_dis: NDS32 Built-in Functions.
  53844. (line 30)
  53845. * __builtin_nds32_setgie_en: NDS32 Built-in Functions.
  53846. (line 27)
  53847. * __builtin_non_tx_store: S/390 System z Built-in Functions.
  53848. (line 98)
  53849. * __builtin_object_size: Object Size Checking.
  53850. (line 6)
  53851. * __builtin_object_size <1>: Object Size Checking.
  53852. (line 16)
  53853. * __builtin_object_size <2>: Other Builtins. (line 6)
  53854. * __builtin_object_size <3>: Other Builtins. (line 800)
  53855. * __builtin_offsetof: Offsetof. (line 6)
  53856. * __builtin_parity: Other Builtins. (line 961)
  53857. * __builtin_parityl: Other Builtins. (line 982)
  53858. * __builtin_parityll: Other Builtins. (line 1006)
  53859. * __builtin_pdepd: Basic PowerPC Built-in Functions Available on ISA 3.1.
  53860. (line 33)
  53861. * __builtin_pextd: Basic PowerPC Built-in Functions Available on ISA 3.1.
  53862. (line 38)
  53863. * __builtin_popcount: Other Builtins. (line 958)
  53864. * __builtin_popcountl: Other Builtins. (line 978)
  53865. * __builtin_popcountll: Other Builtins. (line 1002)
  53866. * __builtin_powi: Other Builtins. (line 6)
  53867. * __builtin_powi <1>: Other Builtins. (line 1010)
  53868. * __builtin_powif: Other Builtins. (line 6)
  53869. * __builtin_powif <1>: Other Builtins. (line 1015)
  53870. * __builtin_powil: Other Builtins. (line 6)
  53871. * __builtin_powil <1>: Other Builtins. (line 1019)
  53872. * __builtin_prefetch: Other Builtins. (line 761)
  53873. * __builtin_return: Constructing Calls. (line 47)
  53874. * __builtin_return_address: Return Address. (line 9)
  53875. * __builtin_rx_brk: RX Built-in Functions.
  53876. (line 10)
  53877. * __builtin_rx_clrpsw: RX Built-in Functions.
  53878. (line 13)
  53879. * __builtin_rx_int: RX Built-in Functions.
  53880. (line 17)
  53881. * __builtin_rx_machi: RX Built-in Functions.
  53882. (line 21)
  53883. * __builtin_rx_maclo: RX Built-in Functions.
  53884. (line 26)
  53885. * __builtin_rx_mulhi: RX Built-in Functions.
  53886. (line 31)
  53887. * __builtin_rx_mullo: RX Built-in Functions.
  53888. (line 36)
  53889. * __builtin_rx_mvfachi: RX Built-in Functions.
  53890. (line 41)
  53891. * __builtin_rx_mvfacmi: RX Built-in Functions.
  53892. (line 45)
  53893. * __builtin_rx_mvfc: RX Built-in Functions.
  53894. (line 49)
  53895. * __builtin_rx_mvtachi: RX Built-in Functions.
  53896. (line 53)
  53897. * __builtin_rx_mvtaclo: RX Built-in Functions.
  53898. (line 57)
  53899. * __builtin_rx_mvtc: RX Built-in Functions.
  53900. (line 61)
  53901. * __builtin_rx_mvtipl: RX Built-in Functions.
  53902. (line 65)
  53903. * __builtin_rx_racw: RX Built-in Functions.
  53904. (line 69)
  53905. * __builtin_rx_revw: RX Built-in Functions.
  53906. (line 73)
  53907. * __builtin_rx_rmpa: RX Built-in Functions.
  53908. (line 78)
  53909. * __builtin_rx_round: RX Built-in Functions.
  53910. (line 82)
  53911. * __builtin_rx_sat: RX Built-in Functions.
  53912. (line 87)
  53913. * __builtin_rx_setpsw: RX Built-in Functions.
  53914. (line 91)
  53915. * __builtin_rx_wait: RX Built-in Functions.
  53916. (line 95)
  53917. * __builtin_saddll_overflow: Integer Overflow Builtins.
  53918. (line 15)
  53919. * __builtin_saddl_overflow: Integer Overflow Builtins.
  53920. (line 13)
  53921. * __builtin_sadd_overflow: Integer Overflow Builtins.
  53922. (line 11)
  53923. * __builtin_setjmp: Nonlocal Gotos. (line 32)
  53924. * __builtin_set_thread_pointer: SH Built-in Functions.
  53925. (line 9)
  53926. * __builtin_shuffle: Vector Extensions. (line 127)
  53927. * __builtin_sh_get_fpscr: SH Built-in Functions.
  53928. (line 35)
  53929. * __builtin_sh_set_fpscr: SH Built-in Functions.
  53930. (line 38)
  53931. * __builtin_smulll_overflow: Integer Overflow Builtins.
  53932. (line 69)
  53933. * __builtin_smull_overflow: Integer Overflow Builtins.
  53934. (line 67)
  53935. * __builtin_smul_overflow: Integer Overflow Builtins.
  53936. (line 65)
  53937. * __builtin_speculation_safe_value: Other Builtins. (line 6)
  53938. * __builtin_speculation_safe_value <1>: Other Builtins. (line 261)
  53939. * __builtin_sqrtf128_round_to_odd: Basic PowerPC Built-in Functions Available on ISA 3.0.
  53940. (line 33)
  53941. * __builtin_ssubll_overflow: Integer Overflow Builtins.
  53942. (line 49)
  53943. * __builtin_ssubl_overflow: Integer Overflow Builtins.
  53944. (line 47)
  53945. * __builtin_ssub_overflow: Integer Overflow Builtins.
  53946. (line 45)
  53947. * __builtin_subf128_round_to_odd: Basic PowerPC Built-in Functions Available on ISA 3.0.
  53948. (line 21)
  53949. * __builtin_sub_overflow: Integer Overflow Builtins.
  53950. (line 43)
  53951. * __builtin_sub_overflow_p: Integer Overflow Builtins.
  53952. (line 88)
  53953. * __builtin_tabort: S/390 System z Built-in Functions.
  53954. (line 82)
  53955. * __builtin_tbegin: S/390 System z Built-in Functions.
  53956. (line 6)
  53957. * __builtin_tbeginc: S/390 System z Built-in Functions.
  53958. (line 73)
  53959. * __builtin_tbegin_nofloat: S/390 System z Built-in Functions.
  53960. (line 54)
  53961. * __builtin_tbegin_retry: S/390 System z Built-in Functions.
  53962. (line 60)
  53963. * __builtin_tbegin_retry_nofloat: S/390 System z Built-in Functions.
  53964. (line 67)
  53965. * __builtin_tend: S/390 System z Built-in Functions.
  53966. (line 77)
  53967. * __builtin_tgmath: Other Builtins. (line 436)
  53968. * __builtin_thread_pointer: RISC-V Built-in Functions.
  53969. (line 9)
  53970. * __builtin_thread_pointer <1>: SH Built-in Functions.
  53971. (line 18)
  53972. * __builtin_trap: Other Builtins. (line 634)
  53973. * __builtin_truncf128_round_to_odd: Basic PowerPC Built-in Functions Available on ISA 3.0.
  53974. (line 41)
  53975. * __builtin_tx_assist: S/390 System z Built-in Functions.
  53976. (line 87)
  53977. * __builtin_tx_nesting_depth: S/390 System z Built-in Functions.
  53978. (line 93)
  53979. * __builtin_types_compatible_p: Other Builtins. (line 340)
  53980. * __builtin_uaddll_overflow: Integer Overflow Builtins.
  53981. (line 21)
  53982. * __builtin_uaddl_overflow: Integer Overflow Builtins.
  53983. (line 19)
  53984. * __builtin_uadd_overflow: Integer Overflow Builtins.
  53985. (line 17)
  53986. * __builtin_umulll_overflow: Integer Overflow Builtins.
  53987. (line 75)
  53988. * __builtin_umull_overflow: Integer Overflow Builtins.
  53989. (line 73)
  53990. * __builtin_umul_overflow: Integer Overflow Builtins.
  53991. (line 71)
  53992. * __builtin_unreachable: Other Builtins. (line 641)
  53993. * __builtin_usubll_overflow: Integer Overflow Builtins.
  53994. (line 55)
  53995. * __builtin_usubl_overflow: Integer Overflow Builtins.
  53996. (line 53)
  53997. * __builtin_usub_overflow: Integer Overflow Builtins.
  53998. (line 51)
  53999. * __builtin_va_arg_pack: Constructing Calls. (line 52)
  54000. * __builtin_va_arg_pack_len: Constructing Calls. (line 75)
  54001. * __builtin___clear_cache: Other Builtins. (line 748)
  54002. * __builtin___fprintf_chk: Object Size Checking.
  54003. (line 6)
  54004. * __builtin___memcpy_chk: Object Size Checking.
  54005. (line 6)
  54006. * __builtin___memmove_chk: Object Size Checking.
  54007. (line 6)
  54008. * __builtin___mempcpy_chk: Object Size Checking.
  54009. (line 6)
  54010. * __builtin___memset_chk: Object Size Checking.
  54011. (line 6)
  54012. * __builtin___printf_chk: Object Size Checking.
  54013. (line 6)
  54014. * __builtin___snprintf_chk: Object Size Checking.
  54015. (line 6)
  54016. * __builtin___sprintf_chk: Object Size Checking.
  54017. (line 6)
  54018. * __builtin___stpcpy_chk: Object Size Checking.
  54019. (line 6)
  54020. * __builtin___strcat_chk: Object Size Checking.
  54021. (line 6)
  54022. * __builtin___strcpy_chk: Object Size Checking.
  54023. (line 6)
  54024. * __builtin___strncat_chk: Object Size Checking.
  54025. (line 6)
  54026. * __builtin___strncpy_chk: Object Size Checking.
  54027. (line 6)
  54028. * __builtin___vfprintf_chk: Object Size Checking.
  54029. (line 6)
  54030. * __builtin___vprintf_chk: Object Size Checking.
  54031. (line 6)
  54032. * __builtin___vsnprintf_chk: Object Size Checking.
  54033. (line 6)
  54034. * __builtin___vsprintf_chk: Object Size Checking.
  54035. (line 6)
  54036. * __complex__ keyword: Complex. (line 6)
  54037. * __declspec(dllexport): Microsoft Windows Function Attributes.
  54038. (line 10)
  54039. * __declspec(dllimport): Microsoft Windows Function Attributes.
  54040. (line 42)
  54041. * __extension__: Alternate Keywords. (line 30)
  54042. * __far M32C Named Address Spaces: Named Address Spaces.
  54043. (line 153)
  54044. * __far RL78 Named Address Spaces: Named Address Spaces.
  54045. (line 161)
  54046. * __flash AVR Named Address Spaces: Named Address Spaces.
  54047. (line 44)
  54048. * __flash1 AVR Named Address Spaces: Named Address Spaces.
  54049. (line 53)
  54050. * __flash2 AVR Named Address Spaces: Named Address Spaces.
  54051. (line 53)
  54052. * __flash3 AVR Named Address Spaces: Named Address Spaces.
  54053. (line 53)
  54054. * __flash4 AVR Named Address Spaces: Named Address Spaces.
  54055. (line 53)
  54056. * __flash5 AVR Named Address Spaces: Named Address Spaces.
  54057. (line 53)
  54058. * __float128 data type: Floating Types. (line 6)
  54059. * __float80 data type: Floating Types. (line 6)
  54060. * __fp16 data type: Half-Precision. (line 6)
  54061. * __FUNCTION__ identifier: Function Names. (line 6)
  54062. * __func__ identifier: Function Names. (line 6)
  54063. * __ibm128 data type: Floating Types. (line 6)
  54064. * __imag__ keyword: Complex. (line 31)
  54065. * __int128 data types: __int128. (line 6)
  54066. * __memx AVR Named Address Spaces: Named Address Spaces.
  54067. (line 59)
  54068. * __PRETTY_FUNCTION__ identifier: Function Names. (line 6)
  54069. * __real__ keyword: Complex. (line 31)
  54070. * __seg_fs x86 named address space: Named Address Spaces.
  54071. (line 174)
  54072. * __seg_gs x86 named address space: Named Address Spaces.
  54073. (line 174)
  54074. * __STDC_HOSTED__: Standards. (line 13)
  54075. * __sync_add_and_fetch: __sync Builtins. (line 72)
  54076. * __sync_and_and_fetch: __sync Builtins. (line 72)
  54077. * __sync_bool_compare_and_swap: __sync Builtins. (line 88)
  54078. * __sync_fetch_and_add: __sync Builtins. (line 50)
  54079. * __sync_fetch_and_and: __sync Builtins. (line 50)
  54080. * __sync_fetch_and_nand: __sync Builtins. (line 50)
  54081. * __sync_fetch_and_or: __sync Builtins. (line 50)
  54082. * __sync_fetch_and_sub: __sync Builtins. (line 50)
  54083. * __sync_fetch_and_xor: __sync Builtins. (line 50)
  54084. * __sync_lock_release: __sync Builtins. (line 118)
  54085. * __sync_lock_test_and_set: __sync Builtins. (line 100)
  54086. * __sync_nand_and_fetch: __sync Builtins. (line 72)
  54087. * __sync_or_and_fetch: __sync Builtins. (line 72)
  54088. * __sync_sub_and_fetch: __sync Builtins. (line 72)
  54089. * __sync_synchronize: __sync Builtins. (line 97)
  54090. * __sync_val_compare_and_swap: __sync Builtins. (line 88)
  54091. * __sync_xor_and_fetch: __sync Builtins. (line 72)
  54092. * __thread: Thread-Local. (line 6)
  54093. * AArch64 Options: AArch64 Options. (line 6)
  54094. * ABI: Compatibility. (line 6)
  54095. * abi_tag function attribute: C++ Attributes. (line 9)
  54096. * abi_tag type attribute: C++ Attributes. (line 9)
  54097. * abi_tag variable attribute: C++ Attributes. (line 9)
  54098. * abort: Other Builtins. (line 6)
  54099. * abs: Other Builtins. (line 6)
  54100. * absdata variable attribute, AVR: AVR Variable Attributes.
  54101. (line 104)
  54102. * accessing volatiles: Volatiles. (line 6)
  54103. * accessing volatiles <1>: C++ Volatiles. (line 6)
  54104. * acos: Other Builtins. (line 6)
  54105. * acosf: Other Builtins. (line 6)
  54106. * acosh: Other Builtins. (line 6)
  54107. * acoshf: Other Builtins. (line 6)
  54108. * acoshl: Other Builtins. (line 6)
  54109. * acosl: Other Builtins. (line 6)
  54110. * Ada: G++ and GCC. (line 6)
  54111. * Ada <1>: G++ and GCC. (line 29)
  54112. * additional floating types: Floating Types. (line 6)
  54113. * address constraints: Simple Constraints. (line 152)
  54114. * address of a label: Labels as Values. (line 6)
  54115. * address variable attribute, AVR: AVR Variable Attributes.
  54116. (line 97)
  54117. * address_operand: Simple Constraints. (line 156)
  54118. * alias function attribute: Common Function Attributes.
  54119. (line 84)
  54120. * alias variable attribute: Common Variable Attributes.
  54121. (line 9)
  54122. * aligned function attribute: Common Function Attributes.
  54123. (line 103)
  54124. * aligned type attribute: Common Type Attributes.
  54125. (line 8)
  54126. * aligned variable attribute: Common Variable Attributes.
  54127. (line 31)
  54128. * alignment: Alignment. (line 6)
  54129. * alloca: Other Builtins. (line 6)
  54130. * alloca vs variable-length arrays: Variable Length. (line 35)
  54131. * alloc_align function attribute: Common Function Attributes.
  54132. (line 131)
  54133. * alloc_size function attribute: Common Function Attributes.
  54134. (line 151)
  54135. * alloc_size type attribute: Common Type Attributes.
  54136. (line 136)
  54137. * alloc_size variable attribute: Common Variable Attributes.
  54138. (line 137)
  54139. * Allow nesting in an interrupt handler on the Blackfin processor: Blackfin Function Attributes.
  54140. (line 45)
  54141. * Altera Nios II options: Nios II Options. (line 6)
  54142. * alternate keywords: Alternate Keywords. (line 6)
  54143. * altivec type attribute, PowerPC: PowerPC Type Attributes.
  54144. (line 12)
  54145. * altivec variable attribute, PowerPC: PowerPC Variable Attributes.
  54146. (line 12)
  54147. * always_inline function attribute: Common Function Attributes.
  54148. (line 177)
  54149. * AMD GCN Options: AMD GCN Options. (line 6)
  54150. * AMD1: Standards. (line 13)
  54151. * amdgpu_hsa_kernel function attribute, AMD GCN: AMD GCN Function Attributes.
  54152. (line 9)
  54153. * ANSI C: Standards. (line 13)
  54154. * ANSI C standard: Standards. (line 13)
  54155. * ANSI C89: Standards. (line 13)
  54156. * ANSI support: C Dialect Options. (line 10)
  54157. * ANSI X3.159-1989: Standards. (line 13)
  54158. * apostrophes: Incompatibilities. (line 116)
  54159. * application binary interface: Compatibility. (line 6)
  54160. * ARC options: ARC Options. (line 6)
  54161. * arch= function attribute, AArch64: AArch64 Function Attributes.
  54162. (line 53)
  54163. * arch= function attribute, ARM: ARM Function Attributes.
  54164. (line 98)
  54165. * ARM options: ARM Options. (line 6)
  54166. * ARM [Annotated C++ Reference Manual]: Backwards Compatibility.
  54167. (line 6)
  54168. * arrays of length zero: Zero Length. (line 6)
  54169. * arrays of variable length: Variable Length. (line 6)
  54170. * arrays, non-lvalue: Subscripting. (line 6)
  54171. * artificial function attribute: Common Function Attributes.
  54172. (line 187)
  54173. * asin: Other Builtins. (line 6)
  54174. * asinf: Other Builtins. (line 6)
  54175. * asinh: Other Builtins. (line 6)
  54176. * asinhf: Other Builtins. (line 6)
  54177. * asinhl: Other Builtins. (line 6)
  54178. * asinl: Other Builtins. (line 6)
  54179. * asm assembler template: Extended Asm. (line 226)
  54180. * asm clobbers: Extended Asm. (line 693)
  54181. * asm constraints: Constraints. (line 6)
  54182. * asm expressions: Extended Asm. (line 598)
  54183. * asm flag output operands: Extended Asm. (line 488)
  54184. * asm goto labels: Extended Asm. (line 880)
  54185. * asm inline: Size of an asm. (line 25)
  54186. * asm input operands: Extended Asm. (line 598)
  54187. * asm keyword: Using Assembly Language with C.
  54188. (line 6)
  54189. * asm output operands: Extended Asm. (line 329)
  54190. * asm scratch registers: Extended Asm. (line 693)
  54191. * asm volatile: Extended Asm. (line 116)
  54192. * assembler names for identifiers: Asm Labels. (line 6)
  54193. * assembly code, invalid: Bug Criteria. (line 12)
  54194. * assembly language in C: Using Assembly Language with C.
  54195. (line 6)
  54196. * assembly language in C, basic: Basic Asm. (line 6)
  54197. * assembly language in C, extended: Extended Asm. (line 6)
  54198. * assume_aligned function attribute: Common Function Attributes.
  54199. (line 195)
  54200. * atan: Other Builtins. (line 6)
  54201. * atan2: Other Builtins. (line 6)
  54202. * atan2f: Other Builtins. (line 6)
  54203. * atan2l: Other Builtins. (line 6)
  54204. * atanf: Other Builtins. (line 6)
  54205. * atanh: Other Builtins. (line 6)
  54206. * atanhf: Other Builtins. (line 6)
  54207. * atanhl: Other Builtins. (line 6)
  54208. * atanl: Other Builtins. (line 6)
  54209. * attribute of types: Type Attributes. (line 6)
  54210. * attribute of variables: Variable Attributes.
  54211. (line 6)
  54212. * attribute syntax: Attribute Syntax. (line 6)
  54213. * autoincrement/decrement addressing: Simple Constraints. (line 30)
  54214. * automatic inline for C++ member fns: Inline. (line 68)
  54215. * aux variable attribute, ARC: ARC Variable Attributes.
  54216. (line 7)
  54217. * AVR Options: AVR Options. (line 6)
  54218. * Backwards Compatibility: Backwards Compatibility.
  54219. (line 6)
  54220. * bank_switch function attribute, M32C: M32C Function Attributes.
  54221. (line 9)
  54222. * base class members: Name lookup. (line 6)
  54223. * based type attribute, MeP: MeP Type Attributes.
  54224. (line 6)
  54225. * based variable attribute, MeP: MeP Variable Attributes.
  54226. (line 16)
  54227. * basic asm: Basic Asm. (line 6)
  54228. * bcmp: Other Builtins. (line 6)
  54229. * below100 variable attribute, Xstormy16: Xstormy16 Variable Attributes.
  54230. (line 10)
  54231. * binary compatibility: Compatibility. (line 6)
  54232. * Binary constants using the 0b prefix: Binary constants. (line 6)
  54233. * Blackfin Options: Blackfin Options. (line 6)
  54234. * bound pointer to member function: Bound member functions.
  54235. (line 6)
  54236. * branch-protection function attribute, AArch64: AArch64 Function Attributes.
  54237. (line 76)
  54238. * break handler functions: MicroBlaze Function Attributes.
  54239. (line 17)
  54240. * break_handler function attribute, MicroBlaze: MicroBlaze Function Attributes.
  54241. (line 17)
  54242. * brk_interrupt function attribute, RL78: RL78 Function Attributes.
  54243. (line 10)
  54244. * bug criteria: Bug Criteria. (line 6)
  54245. * bugs: Bugs. (line 6)
  54246. * bugs, known: Trouble. (line 6)
  54247. * built-in functions: C Dialect Options. (line 278)
  54248. * built-in functions <1>: Other Builtins. (line 6)
  54249. * bzero: Other Builtins. (line 6)
  54250. * C compilation options: Invoking GCC. (line 18)
  54251. * C intermediate output, nonexistent: G++ and GCC. (line 34)
  54252. * C language extensions: C Extensions. (line 6)
  54253. * C language, traditional: Preprocessor Options.
  54254. (line 373)
  54255. * C standard: Standards. (line 13)
  54256. * C standards: Standards. (line 13)
  54257. * c++: Invoking G++. (line 14)
  54258. * C++: G++ and GCC. (line 29)
  54259. * C++ comments: C++ Comments. (line 6)
  54260. * C++ Compiled Module Interface: C++ Compiled Module Interface.
  54261. (line 6)
  54262. * C++ interface and implementation headers: C++ Interface. (line 6)
  54263. * C++ language extensions: C++ Extensions. (line 6)
  54264. * C++ member fns, automatically inline: Inline. (line 68)
  54265. * C++ misunderstandings: C++ Misunderstandings.
  54266. (line 6)
  54267. * C++ Module Mapper: C++ Module Mapper. (line 6)
  54268. * C++ Module Preprocessing: C++ Module Preprocessing.
  54269. (line 6)
  54270. * C++ options, command-line: C++ Dialect Options.
  54271. (line 6)
  54272. * C++ pragmas, effect on inlining: C++ Interface. (line 57)
  54273. * C++ source file suffixes: Invoking G++. (line 6)
  54274. * C++ static data, declaring and defining: Static Definitions.
  54275. (line 6)
  54276. * C-SKY Options: C-SKY Options. (line 6)
  54277. * C11: Standards. (line 13)
  54278. * C17: Standards. (line 13)
  54279. * C1X: Standards. (line 13)
  54280. * C2X: Standards. (line 13)
  54281. * C6X Options: C6X Options. (line 6)
  54282. * C89: Standards. (line 13)
  54283. * C90: Standards. (line 13)
  54284. * C94: Standards. (line 13)
  54285. * C95: Standards. (line 13)
  54286. * C99: Standards. (line 13)
  54287. * C9X: Standards. (line 13)
  54288. * cabs: Other Builtins. (line 6)
  54289. * cabsf: Other Builtins. (line 6)
  54290. * cabsl: Other Builtins. (line 6)
  54291. * cacos: Other Builtins. (line 6)
  54292. * cacosf: Other Builtins. (line 6)
  54293. * cacosh: Other Builtins. (line 6)
  54294. * cacoshf: Other Builtins. (line 6)
  54295. * cacoshl: Other Builtins. (line 6)
  54296. * cacosl: Other Builtins. (line 6)
  54297. * callee_pop_aggregate_return function attribute, x86: x86 Function Attributes.
  54298. (line 47)
  54299. * calling functions through the function vector on SH2A: SH Function Attributes.
  54300. (line 9)
  54301. * calloc: Other Builtins. (line 6)
  54302. * carg: Other Builtins. (line 6)
  54303. * cargf: Other Builtins. (line 6)
  54304. * cargl: Other Builtins. (line 6)
  54305. * case labels in initializers: Designated Inits. (line 6)
  54306. * case ranges: Case Ranges. (line 6)
  54307. * casin: Other Builtins. (line 6)
  54308. * casinf: Other Builtins. (line 6)
  54309. * casinh: Other Builtins. (line 6)
  54310. * casinhf: Other Builtins. (line 6)
  54311. * casinhl: Other Builtins. (line 6)
  54312. * casinl: Other Builtins. (line 6)
  54313. * cast to a union: Cast to Union. (line 6)
  54314. * catan: Other Builtins. (line 6)
  54315. * catanf: Other Builtins. (line 6)
  54316. * catanh: Other Builtins. (line 6)
  54317. * catanhf: Other Builtins. (line 6)
  54318. * catanhl: Other Builtins. (line 6)
  54319. * catanl: Other Builtins. (line 6)
  54320. * cb variable attribute, MeP: MeP Variable Attributes.
  54321. (line 46)
  54322. * cbrt: Other Builtins. (line 6)
  54323. * cbrtf: Other Builtins. (line 6)
  54324. * cbrtl: Other Builtins. (line 6)
  54325. * ccos: Other Builtins. (line 6)
  54326. * ccosf: Other Builtins. (line 6)
  54327. * ccosh: Other Builtins. (line 6)
  54328. * ccoshf: Other Builtins. (line 6)
  54329. * ccoshl: Other Builtins. (line 6)
  54330. * ccosl: Other Builtins. (line 6)
  54331. * cdecl function attribute, x86-32: x86 Function Attributes.
  54332. (line 9)
  54333. * ceil: Other Builtins. (line 6)
  54334. * ceilf: Other Builtins. (line 6)
  54335. * ceill: Other Builtins. (line 6)
  54336. * cexp: Other Builtins. (line 6)
  54337. * cexpf: Other Builtins. (line 6)
  54338. * cexpl: Other Builtins. (line 6)
  54339. * cf_check function attribute, x86: x86 Function Attributes.
  54340. (line 684)
  54341. * character set, execution: Preprocessor Options.
  54342. (line 273)
  54343. * character set, input: Preprocessor Options.
  54344. (line 286)
  54345. * character set, input normalization: Warning Options. (line 2797)
  54346. * character set, wide execution: Preprocessor Options.
  54347. (line 278)
  54348. * cimag: Other Builtins. (line 6)
  54349. * cimagf: Other Builtins. (line 6)
  54350. * cimagl: Other Builtins. (line 6)
  54351. * cleanup variable attribute: Common Variable Attributes.
  54352. (line 161)
  54353. * clog: Other Builtins. (line 6)
  54354. * clog10: Other Builtins. (line 6)
  54355. * clog10f: Other Builtins. (line 6)
  54356. * clog10l: Other Builtins. (line 6)
  54357. * clogf: Other Builtins. (line 6)
  54358. * clogl: Other Builtins. (line 6)
  54359. * cmodel= function attribute, AArch64: AArch64 Function Attributes.
  54360. (line 27)
  54361. * COBOL: G++ and GCC. (line 23)
  54362. * code generation conventions: Code Gen Options. (line 6)
  54363. * code, mixed with declarations: Mixed Labels and Declarations.
  54364. (line 6)
  54365. * cold function attribute: Common Function Attributes.
  54366. (line 211)
  54367. * cold label attribute: Label Attributes. (line 46)
  54368. * command options: Invoking GCC. (line 6)
  54369. * comments, C++ style: C++ Comments. (line 6)
  54370. * common variable attribute: Common Variable Attributes.
  54371. (line 176)
  54372. * comparison of signed and unsigned values, warning: Warning Options.
  54373. (line 2541)
  54374. * compilation statistics: Developer Options. (line 6)
  54375. * compiler bugs, reporting: Bug Reporting. (line 6)
  54376. * compiler compared to C++ preprocessor: G++ and GCC. (line 34)
  54377. * compiler options, C++: C++ Dialect Options.
  54378. (line 6)
  54379. * compiler options, Objective-C and Objective-C++: Objective-C and Objective-C++ Dialect Options.
  54380. (line 6)
  54381. * compiler version, specifying: Invoking GCC. (line 24)
  54382. * COMPILER_PATH: Environment Variables.
  54383. (line 91)
  54384. * complex conjugation: Complex. (line 38)
  54385. * complex numbers: Complex. (line 6)
  54386. * compound literals: Compound Literals. (line 6)
  54387. * computed gotos: Labels as Values. (line 6)
  54388. * conditional expressions, extensions: Conditionals. (line 6)
  54389. * conflicting types: Disappointments. (line 21)
  54390. * conj: Other Builtins. (line 6)
  54391. * conjf: Other Builtins. (line 6)
  54392. * conjl: Other Builtins. (line 6)
  54393. * const applied to function: Function Attributes.
  54394. (line 6)
  54395. * const function attribute: Common Function Attributes.
  54396. (line 227)
  54397. * const qualifier: Pointers to Arrays. (line 6)
  54398. * constants in constraints: Simple Constraints. (line 68)
  54399. * constraint modifier characters: Modifiers. (line 6)
  54400. * constraint, matching: Simple Constraints. (line 137)
  54401. * constraints, asm: Constraints. (line 6)
  54402. * constraints, machine specific: Machine Constraints.
  54403. (line 6)
  54404. * constructing calls: Constructing Calls. (line 6)
  54405. * constructor expressions: Compound Literals. (line 6)
  54406. * constructor function attribute: Common Function Attributes.
  54407. (line 268)
  54408. * contributors: Contributors. (line 6)
  54409. * copy function attribute: Common Function Attributes.
  54410. (line 296)
  54411. * copy type attribute: Common Type Attributes.
  54412. (line 161)
  54413. * copy variable attribute: Common Variable Attributes.
  54414. (line 185)
  54415. * copysign: Other Builtins. (line 6)
  54416. * copysignf: Other Builtins. (line 6)
  54417. * copysignl: Other Builtins. (line 6)
  54418. * core dump: Bug Criteria. (line 9)
  54419. * cos: Other Builtins. (line 6)
  54420. * cosf: Other Builtins. (line 6)
  54421. * cosh: Other Builtins. (line 6)
  54422. * coshf: Other Builtins. (line 6)
  54423. * coshl: Other Builtins. (line 6)
  54424. * cosl: Other Builtins. (line 6)
  54425. * CPATH: Environment Variables.
  54426. (line 144)
  54427. * CPLUS_INCLUDE_PATH: Environment Variables.
  54428. (line 146)
  54429. * cpow: Other Builtins. (line 6)
  54430. * cpowf: Other Builtins. (line 6)
  54431. * cpowl: Other Builtins. (line 6)
  54432. * cproj: Other Builtins. (line 6)
  54433. * cprojf: Other Builtins. (line 6)
  54434. * cprojl: Other Builtins. (line 6)
  54435. * cpu= function attribute, AArch64: AArch64 Function Attributes.
  54436. (line 63)
  54437. * CR16 Options: CR16 Options. (line 6)
  54438. * creal: Other Builtins. (line 6)
  54439. * crealf: Other Builtins. (line 6)
  54440. * creall: Other Builtins. (line 6)
  54441. * CRIS Options: CRIS Options. (line 6)
  54442. * critical function attribute, MSP430: MSP430 Function Attributes.
  54443. (line 9)
  54444. * cross compiling: Invoking GCC. (line 24)
  54445. * csin: Other Builtins. (line 6)
  54446. * csinf: Other Builtins. (line 6)
  54447. * csinh: Other Builtins. (line 6)
  54448. * csinhf: Other Builtins. (line 6)
  54449. * csinhl: Other Builtins. (line 6)
  54450. * csinl: Other Builtins. (line 6)
  54451. * csqrt: Other Builtins. (line 6)
  54452. * csqrtf: Other Builtins. (line 6)
  54453. * csqrtl: Other Builtins. (line 6)
  54454. * ctan: Other Builtins. (line 6)
  54455. * ctanf: Other Builtins. (line 6)
  54456. * ctanh: Other Builtins. (line 6)
  54457. * ctanhf: Other Builtins. (line 6)
  54458. * ctanhl: Other Builtins. (line 6)
  54459. * ctanl: Other Builtins. (line 6)
  54460. * CXX_MODULE_MAPPER environment variable: C++ Dialect Options.
  54461. (line 315)
  54462. * C_INCLUDE_PATH: Environment Variables.
  54463. (line 145)
  54464. * D: G++ and GCC. (line 6)
  54465. * Darwin options: Darwin Options. (line 6)
  54466. * dcgettext: Other Builtins. (line 6)
  54467. * dd integer suffix: Decimal Float. (line 6)
  54468. * DD integer suffix: Decimal Float. (line 6)
  54469. * deallocating variable length arrays: Variable Length. (line 22)
  54470. * debug dump options: Developer Options. (line 6)
  54471. * debugging GCC: Developer Options. (line 6)
  54472. * debugging information options: Debugging Options. (line 6)
  54473. * decimal floating types: Decimal Float. (line 6)
  54474. * declaration scope: Incompatibilities. (line 80)
  54475. * declarations inside expressions: Statement Exprs. (line 6)
  54476. * declarations, mixed with code: Mixed Labels and Declarations.
  54477. (line 6)
  54478. * declaring attributes of functions: Function Attributes.
  54479. (line 6)
  54480. * declaring static data in C++: Static Definitions. (line 6)
  54481. * defining static data in C++: Static Definitions. (line 6)
  54482. * dependencies for make as output: Environment Variables.
  54483. (line 172)
  54484. * dependencies for make as output <1>: Environment Variables.
  54485. (line 188)
  54486. * dependencies, make: Preprocessor Options.
  54487. (line 77)
  54488. * DEPENDENCIES_OUTPUT: Environment Variables.
  54489. (line 171)
  54490. * dependent name lookup: Name lookup. (line 6)
  54491. * deprecated enumerator attribute: Enumerator Attributes.
  54492. (line 28)
  54493. * deprecated function attribute: Common Function Attributes.
  54494. (line 328)
  54495. * deprecated type attribute: Common Type Attributes.
  54496. (line 189)
  54497. * deprecated variable attribute: Common Variable Attributes.
  54498. (line 201)
  54499. * designated initializers: Designated Inits. (line 6)
  54500. * designated_init type attribute: Common Type Attributes.
  54501. (line 223)
  54502. * designator lists: Designated Inits. (line 96)
  54503. * designators: Designated Inits. (line 64)
  54504. * destructor function attribute: Common Function Attributes.
  54505. (line 268)
  54506. * developer options: Developer Options. (line 6)
  54507. * df integer suffix: Decimal Float. (line 6)
  54508. * DF integer suffix: Decimal Float. (line 6)
  54509. * dgettext: Other Builtins. (line 6)
  54510. * diagnostic messages: Diagnostic Message Formatting Options.
  54511. (line 6)
  54512. * dialect options: C Dialect Options. (line 6)
  54513. * diff-delete GCC_COLORS capability: Diagnostic Message Formatting Options.
  54514. (line 134)
  54515. * diff-filename GCC_COLORS capability: Diagnostic Message Formatting Options.
  54516. (line 127)
  54517. * diff-hunk GCC_COLORS capability: Diagnostic Message Formatting Options.
  54518. (line 130)
  54519. * diff-insert GCC_COLORS capability: Diagnostic Message Formatting Options.
  54520. (line 137)
  54521. * digits in constraint: Simple Constraints. (line 125)
  54522. * directory options: Directory Options. (line 6)
  54523. * disinterrupt function attribute, Epiphany: Epiphany Function Attributes.
  54524. (line 9)
  54525. * disinterrupt function attribute, MeP: MeP Function Attributes.
  54526. (line 9)
  54527. * dl integer suffix: Decimal Float. (line 6)
  54528. * DL integer suffix: Decimal Float. (line 6)
  54529. * dllexport function attribute: Microsoft Windows Function Attributes.
  54530. (line 10)
  54531. * dllexport variable attribute: Microsoft Windows Variable Attributes.
  54532. (line 12)
  54533. * dllimport function attribute: Microsoft Windows Function Attributes.
  54534. (line 42)
  54535. * dllimport variable attribute: Microsoft Windows Variable Attributes.
  54536. (line 12)
  54537. * dollar signs in identifier names: Dollar Signs. (line 6)
  54538. * double-word arithmetic: Long Long. (line 6)
  54539. * downward funargs: Nested Functions. (line 6)
  54540. * drem: Other Builtins. (line 6)
  54541. * dremf: Other Builtins. (line 6)
  54542. * dreml: Other Builtins. (line 6)
  54543. * dump options: Developer Options. (line 6)
  54544. * E in constraint: Simple Constraints. (line 87)
  54545. * earlyclobber operand: Modifiers. (line 25)
  54546. * eBPF Options: eBPF Options. (line 6)
  54547. * eight-bit data on the H8/300, H8/300H, and H8S: H8/300 Variable Attributes.
  54548. (line 9)
  54549. * eightbit_data variable attribute, H8/300: H8/300 Variable Attributes.
  54550. (line 9)
  54551. * EIND: AVR Options. (line 317)
  54552. * either function attribute, MSP430: MSP430 Function Attributes.
  54553. (line 57)
  54554. * either variable attribute, MSP430: MSP430 Variable Attributes.
  54555. (line 8)
  54556. * empty structures: Empty Structures. (line 6)
  54557. * Enumerator Attributes: Enumerator Attributes.
  54558. (line 6)
  54559. * environment variables: Environment Variables.
  54560. (line 6)
  54561. * erf: Other Builtins. (line 6)
  54562. * erfc: Other Builtins. (line 6)
  54563. * erfcf: Other Builtins. (line 6)
  54564. * erfcl: Other Builtins. (line 6)
  54565. * erff: Other Builtins. (line 6)
  54566. * erfl: Other Builtins. (line 6)
  54567. * error function attribute: Common Function Attributes.
  54568. (line 352)
  54569. * error GCC_COLORS capability: Diagnostic Message Formatting Options.
  54570. (line 92)
  54571. * error messages: Warnings and Errors.
  54572. (line 6)
  54573. * escaped newlines: Escaped Newlines. (line 6)
  54574. * exception function attribute: NDS32 Function Attributes.
  54575. (line 9)
  54576. * exception handler functions, Blackfin: Blackfin Function Attributes.
  54577. (line 9)
  54578. * exception handler functions, NDS32: NDS32 Function Attributes.
  54579. (line 9)
  54580. * exception_handler function attribute: Blackfin Function Attributes.
  54581. (line 9)
  54582. * exit: Other Builtins. (line 6)
  54583. * exp: Other Builtins. (line 6)
  54584. * exp10: Other Builtins. (line 6)
  54585. * exp10f: Other Builtins. (line 6)
  54586. * exp10l: Other Builtins. (line 6)
  54587. * exp2: Other Builtins. (line 6)
  54588. * exp2f: Other Builtins. (line 6)
  54589. * exp2l: Other Builtins. (line 6)
  54590. * expf: Other Builtins. (line 6)
  54591. * expl: Other Builtins. (line 6)
  54592. * explicit register variables: Explicit Register Variables.
  54593. (line 6)
  54594. * expm1: Other Builtins. (line 6)
  54595. * expm1f: Other Builtins. (line 6)
  54596. * expm1l: Other Builtins. (line 6)
  54597. * expressions containing statements: Statement Exprs. (line 6)
  54598. * expressions, constructor: Compound Literals. (line 6)
  54599. * extended asm: Extended Asm. (line 6)
  54600. * extensible constraints: Simple Constraints. (line 161)
  54601. * extensions, ?:: Conditionals. (line 6)
  54602. * extensions, C language: C Extensions. (line 6)
  54603. * extensions, C++ language: C++ Extensions. (line 6)
  54604. * external declaration scope: Incompatibilities. (line 80)
  54605. * externally_visible function attribute: Common Function Attributes.
  54606. (line 369)
  54607. * extra NOP instructions at the function entry point: Common Function Attributes.
  54608. (line 1007)
  54609. * F in constraint: Simple Constraints. (line 92)
  54610. * fabs: Other Builtins. (line 6)
  54611. * fabsf: Other Builtins. (line 6)
  54612. * fabsl: Other Builtins. (line 6)
  54613. * fallthrough statement attribute: Statement Attributes.
  54614. (line 26)
  54615. * far function attribute, MeP: MeP Function Attributes.
  54616. (line 25)
  54617. * far function attribute, MIPS: MIPS Function Attributes.
  54618. (line 63)
  54619. * far type attribute, MeP: MeP Type Attributes.
  54620. (line 6)
  54621. * far variable attribute, MeP: MeP Variable Attributes.
  54622. (line 30)
  54623. * fastcall function attribute, x86-32: x86 Function Attributes.
  54624. (line 15)
  54625. * fast_interrupt function attribute, M32C: M32C Function Attributes.
  54626. (line 14)
  54627. * fast_interrupt function attribute, MicroBlaze: MicroBlaze Function Attributes.
  54628. (line 27)
  54629. * fast_interrupt function attribute, RX: RX Function Attributes.
  54630. (line 9)
  54631. * fatal signal: Bug Criteria. (line 9)
  54632. * fdim: Other Builtins. (line 6)
  54633. * fdimf: Other Builtins. (line 6)
  54634. * fdiml: Other Builtins. (line 6)
  54635. * FDL, GNU Free Documentation License: GNU Free Documentation License.
  54636. (line 6)
  54637. * fentry_name function attribute, x86: x86 Function Attributes.
  54638. (line 696)
  54639. * fentry_section function attribute, x86: x86 Function Attributes.
  54640. (line 702)
  54641. * ffs: Other Builtins. (line 6)
  54642. * file name suffix: Overall Options. (line 14)
  54643. * file names: Link Options. (line 10)
  54644. * fix-cortex-a53-835769 function attribute, AArch64: AArch64 Function Attributes.
  54645. (line 19)
  54646. * fixed-point types: Fixed-Point. (line 6)
  54647. * fixit-delete GCC_COLORS capability: Diagnostic Message Formatting Options.
  54648. (line 124)
  54649. * fixit-insert GCC_COLORS capability: Diagnostic Message Formatting Options.
  54650. (line 120)
  54651. * flatten function attribute: Common Function Attributes.
  54652. (line 382)
  54653. * flexible array members: Zero Length. (line 6)
  54654. * float as function value type: Incompatibilities. (line 141)
  54655. * floating point precision: Disappointments. (line 68)
  54656. * floating-point precision: Optimize Options. (line 2238)
  54657. * floor: Other Builtins. (line 6)
  54658. * floorf: Other Builtins. (line 6)
  54659. * floorl: Other Builtins. (line 6)
  54660. * fma: Other Builtins. (line 6)
  54661. * fmaf: Other Builtins. (line 6)
  54662. * fmal: Other Builtins. (line 6)
  54663. * fmax: Other Builtins. (line 6)
  54664. * fmaxf: Other Builtins. (line 6)
  54665. * fmaxl: Other Builtins. (line 6)
  54666. * fmin: Other Builtins. (line 6)
  54667. * fminf: Other Builtins. (line 6)
  54668. * fminl: Other Builtins. (line 6)
  54669. * fmod: Other Builtins. (line 6)
  54670. * fmodf: Other Builtins. (line 6)
  54671. * fmodl: Other Builtins. (line 6)
  54672. * force_align_arg_pointer function attribute, x86: x86 Function Attributes.
  54673. (line 100)
  54674. * format function attribute: Common Function Attributes.
  54675. (line 390)
  54676. * format_arg function attribute: Common Function Attributes.
  54677. (line 455)
  54678. * Fortran: G++ and GCC. (line 6)
  54679. * forwarder_section function attribute, Epiphany: Epiphany Function Attributes.
  54680. (line 13)
  54681. * forwarding calls: Constructing Calls. (line 6)
  54682. * fprintf: Other Builtins. (line 6)
  54683. * fprintf_unlocked: Other Builtins. (line 6)
  54684. * fputs: Other Builtins. (line 6)
  54685. * fputs_unlocked: Other Builtins. (line 6)
  54686. * FR30 Options: FR30 Options. (line 6)
  54687. * free: Other Builtins. (line 6)
  54688. * freestanding environment: Standards. (line 13)
  54689. * freestanding implementation: Standards. (line 13)
  54690. * frexp: Other Builtins. (line 6)
  54691. * frexpf: Other Builtins. (line 6)
  54692. * frexpl: Other Builtins. (line 6)
  54693. * FRV Options: FRV Options. (line 6)
  54694. * fscanf: Other Builtins. (line 6)
  54695. * fscanf, and constant strings: Incompatibilities. (line 17)
  54696. * FT32 Options: FT32 Options. (line 6)
  54697. * function addressability on the M32R/D: M32R/D Function Attributes.
  54698. (line 15)
  54699. * function attributes: Function Attributes.
  54700. (line 6)
  54701. * function pointers, arithmetic: Pointer Arith. (line 6)
  54702. * function prototype declarations: Function Prototypes.
  54703. (line 6)
  54704. * function versions: Function Multiversioning.
  54705. (line 6)
  54706. * function, size of pointer to: Pointer Arith. (line 6)
  54707. * functions in arbitrary sections: Common Function Attributes.
  54708. (line 1091)
  54709. * functions that are dynamically resolved: Common Function Attributes.
  54710. (line 556)
  54711. * functions that are passed arguments in registers on x86-32: x86 Function Attributes.
  54712. (line 76)
  54713. * functions that behave like malloc: Common Function Attributes.
  54714. (line 685)
  54715. * functions that have no side effects: Common Function Attributes.
  54716. (line 227)
  54717. * functions that have no side effects <1>: Common Function Attributes.
  54718. (line 1025)
  54719. * functions that never return: Common Function Attributes.
  54720. (line 939)
  54721. * functions that pop the argument stack on x86-32: x86 Function Attributes.
  54722. (line 9)
  54723. * functions that pop the argument stack on x86-32 <1>: x86 Function Attributes.
  54724. (line 15)
  54725. * functions that pop the argument stack on x86-32 <2>: x86 Function Attributes.
  54726. (line 23)
  54727. * functions that pop the argument stack on x86-32 <3>: x86 Function Attributes.
  54728. (line 108)
  54729. * functions that return more than once: Common Function Attributes.
  54730. (line 1082)
  54731. * functions with non-null pointer arguments: Common Function Attributes.
  54732. (line 885)
  54733. * functions with printf, scanf, strftime or strfmon style arguments: Common Function Attributes.
  54734. (line 390)
  54735. * function_return function attribute, x86: x86 Function Attributes.
  54736. (line 623)
  54737. * function_vector function attribute, H8/300: H8/300 Function Attributes.
  54738. (line 9)
  54739. * function_vector function attribute, M16C/M32C: M32C Function Attributes.
  54740. (line 20)
  54741. * function_vector function attribute, SH: SH Function Attributes.
  54742. (line 9)
  54743. * G in constraint: Simple Constraints. (line 96)
  54744. * g in constraint: Simple Constraints. (line 118)
  54745. * g++: Invoking G++. (line 14)
  54746. * G++: G++ and GCC. (line 29)
  54747. * gamma: Other Builtins. (line 6)
  54748. * gammaf: Other Builtins. (line 6)
  54749. * gammaf_r: Other Builtins. (line 6)
  54750. * gammal: Other Builtins. (line 6)
  54751. * gammal_r: Other Builtins. (line 6)
  54752. * gamma_r: Other Builtins. (line 6)
  54753. * GCC: G++ and GCC. (line 6)
  54754. * GCC command options: Invoking GCC. (line 6)
  54755. * GCC_COLORS environment variable: Diagnostic Message Formatting Options.
  54756. (line 55)
  54757. * GCC_COMPARE_DEBUG: Environment Variables.
  54758. (line 52)
  54759. * GCC_EXEC_PREFIX: Environment Variables.
  54760. (line 57)
  54761. * GCC_EXTRA_DIAGNOSTIC_OUTPUT: Environment Variables.
  54762. (line 125)
  54763. * gcc_struct type attribute, PowerPC: PowerPC Type Attributes.
  54764. (line 9)
  54765. * gcc_struct type attribute, x86: x86 Type Attributes.
  54766. (line 11)
  54767. * gcc_struct variable attribute, PowerPC: PowerPC Variable Attributes.
  54768. (line 9)
  54769. * gcc_struct variable attribute, x86: x86 Variable Attributes.
  54770. (line 11)
  54771. * GCC_URLS environment variable: Diagnostic Message Formatting Options.
  54772. (line 144)
  54773. * gcov: Instrumentation Options.
  54774. (line 49)
  54775. * general-regs-only function attribute, AArch64: AArch64 Function Attributes.
  54776. (line 12)
  54777. * general-regs-only function attribute, ARM: ARM Function Attributes.
  54778. (line 9)
  54779. * gettext: Other Builtins. (line 6)
  54780. * global offset table: Code Gen Options. (line 353)
  54781. * global register after longjmp: Global Register Variables.
  54782. (line 92)
  54783. * global register variables: Global Register Variables.
  54784. (line 6)
  54785. * GNAT: G++ and GCC. (line 29)
  54786. * GNU C Compiler: G++ and GCC. (line 6)
  54787. * GNU Compiler Collection: G++ and GCC. (line 6)
  54788. * gnu_inline function attribute: Common Function Attributes.
  54789. (line 510)
  54790. * Go: G++ and GCC. (line 6)
  54791. * goto with computed label: Labels as Values. (line 6)
  54792. * gprof: Instrumentation Options.
  54793. (line 18)
  54794. * grouping options: Invoking GCC. (line 31)
  54795. * H in constraint: Simple Constraints. (line 96)
  54796. * half-precision floating point: Half-Precision. (line 6)
  54797. * hardware models and configurations, specifying: Submodel Options.
  54798. (line 6)
  54799. * hex floats: Hex Floats. (line 6)
  54800. * highlight, color: Diagnostic Message Formatting Options.
  54801. (line 55)
  54802. * hk fixed-suffix: Fixed-Point. (line 6)
  54803. * HK fixed-suffix: Fixed-Point. (line 6)
  54804. * hosted environment: Standards. (line 13)
  54805. * hosted environment <1>: C Dialect Options. (line 318)
  54806. * hosted environment <2>: C Dialect Options. (line 326)
  54807. * hosted implementation: Standards. (line 13)
  54808. * hot function attribute: Common Function Attributes.
  54809. (line 546)
  54810. * hot label attribute: Label Attributes. (line 39)
  54811. * hotpatch function attribute, S/390: S/390 Function Attributes.
  54812. (line 9)
  54813. * HPPA Options: HPPA Options. (line 6)
  54814. * hr fixed-suffix: Fixed-Point. (line 6)
  54815. * HR fixed-suffix: Fixed-Point. (line 6)
  54816. * hypot: Other Builtins. (line 6)
  54817. * hypotf: Other Builtins. (line 6)
  54818. * hypotl: Other Builtins. (line 6)
  54819. * i in constraint: Simple Constraints. (line 68)
  54820. * I in constraint: Simple Constraints. (line 79)
  54821. * IA-64 Options: IA-64 Options. (line 6)
  54822. * IBM RS/6000 and PowerPC Options: RS/6000 and PowerPC Options.
  54823. (line 6)
  54824. * identifier names, dollar signs in: Dollar Signs. (line 6)
  54825. * identifiers, names in assembler code: Asm Labels. (line 6)
  54826. * ifunc function attribute: Common Function Attributes.
  54827. (line 556)
  54828. * ilogb: Other Builtins. (line 6)
  54829. * ilogbf: Other Builtins. (line 6)
  54830. * ilogbl: Other Builtins. (line 6)
  54831. * imaxabs: Other Builtins. (line 6)
  54832. * implementation-defined behavior, C language: C Implementation.
  54833. (line 6)
  54834. * implementation-defined behavior, C++ language: C++ Implementation.
  54835. (line 6)
  54836. * implied #pragma implementation: C++ Interface. (line 43)
  54837. * incompatibilities of GCC: Incompatibilities. (line 6)
  54838. * increment operators: Bug Criteria. (line 17)
  54839. * index: Other Builtins. (line 6)
  54840. * indirect calls, ARC: ARC Function Attributes.
  54841. (line 26)
  54842. * indirect calls, ARM: ARM Function Attributes.
  54843. (line 38)
  54844. * indirect calls, Blackfin: Blackfin Function Attributes.
  54845. (line 38)
  54846. * indirect calls, Epiphany: Epiphany Function Attributes.
  54847. (line 57)
  54848. * indirect calls, MIPS: MIPS Function Attributes.
  54849. (line 63)
  54850. * indirect calls, PowerPC: PowerPC Function Attributes.
  54851. (line 10)
  54852. * indirect functions: Common Function Attributes.
  54853. (line 556)
  54854. * indirect_branch function attribute, x86: x86 Function Attributes.
  54855. (line 614)
  54856. * indirect_return function attribute, x86: x86 Function Attributes.
  54857. (line 690)
  54858. * initializations in expressions: Compound Literals. (line 6)
  54859. * initializers with labeled elements: Designated Inits. (line 6)
  54860. * initializers, non-constant: Initializers. (line 6)
  54861. * init_priority variable attribute: C++ Attributes. (line 50)
  54862. * inline assembly language: Using Assembly Language with C.
  54863. (line 6)
  54864. * inline automatic for C++ member fns: Inline. (line 68)
  54865. * inline functions: Inline. (line 6)
  54866. * inline functions, omission of: Inline. (line 51)
  54867. * inlining and C++ pragmas: C++ Interface. (line 57)
  54868. * installation trouble: Trouble. (line 6)
  54869. * instrumentation options: Instrumentation Options.
  54870. (line 6)
  54871. * integrating function code: Inline. (line 6)
  54872. * interface and implementation headers, C++: C++ Interface. (line 6)
  54873. * intermediate C version, nonexistent: G++ and GCC. (line 34)
  54874. * interrupt function attribute, ARC: ARC Function Attributes.
  54875. (line 9)
  54876. * interrupt function attribute, ARM: ARM Function Attributes.
  54877. (line 16)
  54878. * interrupt function attribute, AVR: AVR Function Attributes.
  54879. (line 9)
  54880. * interrupt function attribute, C-SKY: C-SKY Function Attributes.
  54881. (line 10)
  54882. * interrupt function attribute, CR16: CR16 Function Attributes.
  54883. (line 9)
  54884. * interrupt function attribute, Epiphany: Epiphany Function Attributes.
  54885. (line 20)
  54886. * interrupt function attribute, M32C: M32C Function Attributes.
  54887. (line 53)
  54888. * interrupt function attribute, M32R/D: M32R/D Function Attributes.
  54889. (line 9)
  54890. * interrupt function attribute, m68k: m68k Function Attributes.
  54891. (line 10)
  54892. * interrupt function attribute, MeP: MeP Function Attributes.
  54893. (line 14)
  54894. * interrupt function attribute, MIPS: MIPS Function Attributes.
  54895. (line 9)
  54896. * interrupt function attribute, MSP430: MSP430 Function Attributes.
  54897. (line 19)
  54898. * interrupt function attribute, NDS32: NDS32 Function Attributes.
  54899. (line 14)
  54900. * interrupt function attribute, RISC-V: RISC-V Function Attributes.
  54901. (line 19)
  54902. * interrupt function attribute, RL78: RL78 Function Attributes.
  54903. (line 10)
  54904. * interrupt function attribute, RX: RX Function Attributes.
  54905. (line 15)
  54906. * interrupt function attribute, V850: V850 Function Attributes.
  54907. (line 10)
  54908. * interrupt function attribute, Visium: Visium Function Attributes.
  54909. (line 9)
  54910. * interrupt function attribute, x86: x86 Function Attributes.
  54911. (line 124)
  54912. * interrupt function attribute, Xstormy16: Xstormy16 Function Attributes.
  54913. (line 9)
  54914. * interrupt_handler function attribute, Blackfin: Blackfin Function Attributes.
  54915. (line 15)
  54916. * interrupt_handler function attribute, H8/300: H8/300 Function Attributes.
  54917. (line 17)
  54918. * interrupt_handler function attribute, m68k: m68k Function Attributes.
  54919. (line 10)
  54920. * interrupt_handler function attribute, MicroBlaze: MicroBlaze Function Attributes.
  54921. (line 27)
  54922. * interrupt_handler function attribute, SH: SH Function Attributes.
  54923. (line 28)
  54924. * interrupt_handler function attribute, V850: V850 Function Attributes.
  54925. (line 10)
  54926. * interrupt_thread function attribute, fido: m68k Function Attributes.
  54927. (line 16)
  54928. * introduction: Top. (line 6)
  54929. * invalid assembly code: Bug Criteria. (line 12)
  54930. * invalid input: Bug Criteria. (line 42)
  54931. * invoking g++: Invoking G++. (line 22)
  54932. * io variable attribute, AVR: AVR Variable Attributes.
  54933. (line 73)
  54934. * io variable attribute, MeP: MeP Variable Attributes.
  54935. (line 36)
  54936. * io_low variable attribute, AVR: AVR Variable Attributes.
  54937. (line 91)
  54938. * isalnum: Other Builtins. (line 6)
  54939. * isalpha: Other Builtins. (line 6)
  54940. * isascii: Other Builtins. (line 6)
  54941. * isblank: Other Builtins. (line 6)
  54942. * iscntrl: Other Builtins. (line 6)
  54943. * isdigit: Other Builtins. (line 6)
  54944. * isgraph: Other Builtins. (line 6)
  54945. * islower: Other Builtins. (line 6)
  54946. * ISO 9899: Standards. (line 13)
  54947. * ISO C: Standards. (line 13)
  54948. * ISO C standard: Standards. (line 13)
  54949. * ISO C11: Standards. (line 13)
  54950. * ISO C17: Standards. (line 13)
  54951. * ISO C1X: Standards. (line 13)
  54952. * ISO C2X: Standards. (line 13)
  54953. * ISO C90: Standards. (line 13)
  54954. * ISO C94: Standards. (line 13)
  54955. * ISO C95: Standards. (line 13)
  54956. * ISO C99: Standards. (line 13)
  54957. * ISO C9X: Standards. (line 13)
  54958. * ISO support: C Dialect Options. (line 10)
  54959. * ISO/IEC 9899: Standards. (line 13)
  54960. * isprint: Other Builtins. (line 6)
  54961. * ispunct: Other Builtins. (line 6)
  54962. * isr function attribute, ARM: ARM Function Attributes.
  54963. (line 33)
  54964. * isr function attribute, C-SKY: C-SKY Function Attributes.
  54965. (line 10)
  54966. * isspace: Other Builtins. (line 6)
  54967. * isupper: Other Builtins. (line 6)
  54968. * iswalnum: Other Builtins. (line 6)
  54969. * iswalpha: Other Builtins. (line 6)
  54970. * iswblank: Other Builtins. (line 6)
  54971. * iswcntrl: Other Builtins. (line 6)
  54972. * iswdigit: Other Builtins. (line 6)
  54973. * iswgraph: Other Builtins. (line 6)
  54974. * iswlower: Other Builtins. (line 6)
  54975. * iswprint: Other Builtins. (line 6)
  54976. * iswpunct: Other Builtins. (line 6)
  54977. * iswspace: Other Builtins. (line 6)
  54978. * iswupper: Other Builtins. (line 6)
  54979. * iswxdigit: Other Builtins. (line 6)
  54980. * isxdigit: Other Builtins. (line 6)
  54981. * j0: Other Builtins. (line 6)
  54982. * j0f: Other Builtins. (line 6)
  54983. * j0l: Other Builtins. (line 6)
  54984. * j1: Other Builtins. (line 6)
  54985. * j1f: Other Builtins. (line 6)
  54986. * j1l: Other Builtins. (line 6)
  54987. * jli_always function attribute, ARC: ARC Function Attributes.
  54988. (line 43)
  54989. * jli_fixed function attribute, ARC: ARC Function Attributes.
  54990. (line 49)
  54991. * jn: Other Builtins. (line 6)
  54992. * jnf: Other Builtins. (line 6)
  54993. * jnl: Other Builtins. (line 6)
  54994. * k fixed-suffix: Fixed-Point. (line 6)
  54995. * K fixed-suffix: Fixed-Point. (line 6)
  54996. * keep_interrupts_masked function attribute, MIPS: MIPS Function Attributes.
  54997. (line 34)
  54998. * kernel attribute, Nvidia PTX: Nvidia PTX Function Attributes.
  54999. (line 9)
  55000. * kernel helper, function attribute, BPF: BPF Function Attributes.
  55001. (line 9)
  55002. * keywords, alternate: Alternate Keywords. (line 6)
  55003. * known causes of trouble: Trouble. (line 6)
  55004. * kspisusp function attribute, Blackfin: Blackfin Function Attributes.
  55005. (line 21)
  55006. * l1_data variable attribute, Blackfin: Blackfin Variable Attributes.
  55007. (line 11)
  55008. * l1_data_A variable attribute, Blackfin: Blackfin Variable Attributes.
  55009. (line 11)
  55010. * l1_data_B variable attribute, Blackfin: Blackfin Variable Attributes.
  55011. (line 11)
  55012. * l1_text function attribute, Blackfin: Blackfin Function Attributes.
  55013. (line 26)
  55014. * l2 function attribute, Blackfin: Blackfin Function Attributes.
  55015. (line 32)
  55016. * l2 variable attribute, Blackfin: Blackfin Variable Attributes.
  55017. (line 19)
  55018. * Label Attributes: Label Attributes. (line 6)
  55019. * labeled elements in initializers: Designated Inits. (line 6)
  55020. * labels as values: Labels as Values. (line 6)
  55021. * labs: Other Builtins. (line 6)
  55022. * LANG: Environment Variables.
  55023. (line 21)
  55024. * LANG <1>: Environment Variables.
  55025. (line 106)
  55026. * language dialect options: C Dialect Options. (line 6)
  55027. * LC_ALL: Environment Variables.
  55028. (line 21)
  55029. * LC_CTYPE: Environment Variables.
  55030. (line 21)
  55031. * LC_MESSAGES: Environment Variables.
  55032. (line 21)
  55033. * ldexp: Other Builtins. (line 6)
  55034. * ldexpf: Other Builtins. (line 6)
  55035. * ldexpl: Other Builtins. (line 6)
  55036. * leaf function attribute: Common Function Attributes.
  55037. (line 646)
  55038. * length-zero arrays: Zero Length. (line 6)
  55039. * lgamma: Other Builtins. (line 6)
  55040. * lgammaf: Other Builtins. (line 6)
  55041. * lgammaf_r: Other Builtins. (line 6)
  55042. * lgammal: Other Builtins. (line 6)
  55043. * lgammal_r: Other Builtins. (line 6)
  55044. * lgamma_r: Other Builtins. (line 6)
  55045. * Libraries: Link Options. (line 82)
  55046. * LIBRARY_PATH: Environment Variables.
  55047. (line 97)
  55048. * link options: Link Options. (line 6)
  55049. * linker script: Link Options. (line 311)
  55050. * lk fixed-suffix: Fixed-Point. (line 6)
  55051. * LK fixed-suffix: Fixed-Point. (line 6)
  55052. * LL integer suffix: Long Long. (line 6)
  55053. * llabs: Other Builtins. (line 6)
  55054. * llk fixed-suffix: Fixed-Point. (line 6)
  55055. * LLK fixed-suffix: Fixed-Point. (line 6)
  55056. * llr fixed-suffix: Fixed-Point. (line 6)
  55057. * LLR fixed-suffix: Fixed-Point. (line 6)
  55058. * llrint: Other Builtins. (line 6)
  55059. * llrintf: Other Builtins. (line 6)
  55060. * llrintl: Other Builtins. (line 6)
  55061. * llround: Other Builtins. (line 6)
  55062. * llroundf: Other Builtins. (line 6)
  55063. * llroundl: Other Builtins. (line 6)
  55064. * LM32 options: LM32 Options. (line 6)
  55065. * load address instruction: Simple Constraints. (line 152)
  55066. * local labels: Local Labels. (line 6)
  55067. * local variables in macros: Typeof. (line 46)
  55068. * local variables, specifying registers: Local Register Variables.
  55069. (line 6)
  55070. * locale: Environment Variables.
  55071. (line 21)
  55072. * locale definition: Environment Variables.
  55073. (line 106)
  55074. * locus GCC_COLORS capability: Diagnostic Message Formatting Options.
  55075. (line 113)
  55076. * log: Other Builtins. (line 6)
  55077. * log10: Other Builtins. (line 6)
  55078. * log10f: Other Builtins. (line 6)
  55079. * log10l: Other Builtins. (line 6)
  55080. * log1p: Other Builtins. (line 6)
  55081. * log1pf: Other Builtins. (line 6)
  55082. * log1pl: Other Builtins. (line 6)
  55083. * log2: Other Builtins. (line 6)
  55084. * log2f: Other Builtins. (line 6)
  55085. * log2l: Other Builtins. (line 6)
  55086. * logb: Other Builtins. (line 6)
  55087. * logbf: Other Builtins. (line 6)
  55088. * logbl: Other Builtins. (line 6)
  55089. * logf: Other Builtins. (line 6)
  55090. * logl: Other Builtins. (line 6)
  55091. * long: BPF Built-in Functions.
  55092. (line 8)
  55093. * long <1>: BPF Built-in Functions.
  55094. (line 13)
  55095. * long <2>: BPF Built-in Functions.
  55096. (line 18)
  55097. * long long data types: Long Long. (line 6)
  55098. * longcall function attribute, Blackfin: Blackfin Function Attributes.
  55099. (line 38)
  55100. * longcall function attribute, PowerPC: PowerPC Function Attributes.
  55101. (line 10)
  55102. * longjmp: Global Register Variables.
  55103. (line 92)
  55104. * longjmp incompatibilities: Incompatibilities. (line 39)
  55105. * longjmp warnings: Warning Options. (line 1334)
  55106. * long_call function attribute, ARC: ARC Function Attributes.
  55107. (line 26)
  55108. * long_call function attribute, ARM: ARM Function Attributes.
  55109. (line 38)
  55110. * long_call function attribute, Epiphany: Epiphany Function Attributes.
  55111. (line 57)
  55112. * long_call function attribute, MIPS: MIPS Function Attributes.
  55113. (line 63)
  55114. * lower function attribute, MSP430: MSP430 Function Attributes.
  55115. (line 57)
  55116. * lower variable attribute, MSP430: MSP430 Variable Attributes.
  55117. (line 12)
  55118. * lr fixed-suffix: Fixed-Point. (line 6)
  55119. * LR fixed-suffix: Fixed-Point. (line 6)
  55120. * lrint: Other Builtins. (line 6)
  55121. * lrintf: Other Builtins. (line 6)
  55122. * lrintl: Other Builtins. (line 6)
  55123. * lround: Other Builtins. (line 6)
  55124. * lroundf: Other Builtins. (line 6)
  55125. * lroundl: Other Builtins. (line 6)
  55126. * m in constraint: Simple Constraints. (line 17)
  55127. * M32C options: M32C Options. (line 6)
  55128. * M32R/D options: M32R/D Options. (line 6)
  55129. * M680x0 options: M680x0 Options. (line 6)
  55130. * machine specific constraints: Machine Constraints.
  55131. (line 6)
  55132. * machine-dependent options: Submodel Options. (line 6)
  55133. * macro with variable arguments: Variadic Macros. (line 6)
  55134. * macros, inline alternative: Inline. (line 6)
  55135. * macros, local labels: Local Labels. (line 6)
  55136. * macros, local variables in: Typeof. (line 46)
  55137. * macros, statements in expressions: Statement Exprs. (line 6)
  55138. * macros, types of arguments: Typeof. (line 6)
  55139. * make: Preprocessor Options.
  55140. (line 77)
  55141. * malloc: Other Builtins. (line 6)
  55142. * malloc function attribute: Common Function Attributes.
  55143. (line 685)
  55144. * matching constraint: Simple Constraints. (line 137)
  55145. * may_alias type attribute: Common Type Attributes.
  55146. (line 234)
  55147. * MCore options: MCore Options. (line 6)
  55148. * medium_call function attribute, ARC: ARC Function Attributes.
  55149. (line 26)
  55150. * member fns, automatically inline: Inline. (line 68)
  55151. * memchr: Other Builtins. (line 6)
  55152. * memcmp: Other Builtins. (line 6)
  55153. * memcpy: Other Builtins. (line 6)
  55154. * memory references in constraints: Simple Constraints. (line 17)
  55155. * mempcpy: Other Builtins. (line 6)
  55156. * memset: Other Builtins. (line 6)
  55157. * MeP options: MeP Options. (line 6)
  55158. * Mercury: G++ and GCC. (line 23)
  55159. * message formatting: Diagnostic Message Formatting Options.
  55160. (line 6)
  55161. * messages, warning: Warning Options. (line 6)
  55162. * messages, warning and error: Warnings and Errors.
  55163. (line 6)
  55164. * MicroBlaze Options: MicroBlaze Options. (line 6)
  55165. * micromips function attribute: MIPS Function Attributes.
  55166. (line 91)
  55167. * middle-operands, omitted: Conditionals. (line 6)
  55168. * MIPS options: MIPS Options. (line 6)
  55169. * mips16 function attribute, MIPS: MIPS Function Attributes.
  55170. (line 75)
  55171. * misunderstandings in C++: C++ Misunderstandings.
  55172. (line 6)
  55173. * mixed declarations and code: Mixed Labels and Declarations.
  55174. (line 6)
  55175. * mixing assembly language and C: Using Assembly Language with C.
  55176. (line 6)
  55177. * mktemp, and constant strings: Incompatibilities. (line 13)
  55178. * MMIX Options: MMIX Options. (line 6)
  55179. * MN10300 options: MN10300 Options. (line 6)
  55180. * mode type attribute: Common Type Attributes.
  55181. (line 270)
  55182. * mode variable attribute: Common Variable Attributes.
  55183. (line 225)
  55184. * model function attribute, M32R/D: M32R/D Function Attributes.
  55185. (line 15)
  55186. * model variable attribute, IA-64: IA-64 Variable Attributes.
  55187. (line 9)
  55188. * model-name variable attribute, M32R/D: M32R/D Variable Attributes.
  55189. (line 9)
  55190. * modf: Other Builtins. (line 6)
  55191. * modff: Other Builtins. (line 6)
  55192. * modfl: Other Builtins. (line 6)
  55193. * modifiers in constraints: Modifiers. (line 6)
  55194. * Moxie Options: Moxie Options. (line 6)
  55195. * MSP430 Options: MSP430 Options. (line 6)
  55196. * ms_abi function attribute, x86: x86 Function Attributes.
  55197. (line 34)
  55198. * ms_hook_prologue function attribute, x86: x86 Function Attributes.
  55199. (line 59)
  55200. * ms_struct type attribute, PowerPC: PowerPC Type Attributes.
  55201. (line 9)
  55202. * ms_struct type attribute, x86: x86 Type Attributes.
  55203. (line 11)
  55204. * ms_struct variable attribute, PowerPC: PowerPC Variable Attributes.
  55205. (line 9)
  55206. * ms_struct variable attribute, x86: x86 Variable Attributes.
  55207. (line 11)
  55208. * multiple alternative constraints: Multi-Alternative. (line 6)
  55209. * multiprecision arithmetic: Long Long. (line 6)
  55210. * n in constraint: Simple Constraints. (line 73)
  55211. * naked function attribute, ARC: ARC Function Attributes.
  55212. (line 58)
  55213. * naked function attribute, ARM: ARM Function Attributes.
  55214. (line 48)
  55215. * naked function attribute, AVR: AVR Function Attributes.
  55216. (line 23)
  55217. * naked function attribute, C-SKY: C-SKY Function Attributes.
  55218. (line 20)
  55219. * naked function attribute, MCORE: MCORE Function Attributes.
  55220. (line 9)
  55221. * naked function attribute, MSP430: MSP430 Function Attributes.
  55222. (line 34)
  55223. * naked function attribute, NDS32: NDS32 Function Attributes.
  55224. (line 35)
  55225. * naked function attribute, RISC-V: RISC-V Function Attributes.
  55226. (line 9)
  55227. * naked function attribute, RL78: RL78 Function Attributes.
  55228. (line 20)
  55229. * naked function attribute, RX: RX Function Attributes.
  55230. (line 39)
  55231. * naked function attribute, x86: x86 Function Attributes.
  55232. (line 66)
  55233. * Named Address Spaces: Named Address Spaces.
  55234. (line 6)
  55235. * names used in assembler code: Asm Labels. (line 6)
  55236. * naming convention, implementation headers: C++ Interface. (line 43)
  55237. * NDS32 Options: NDS32 Options. (line 6)
  55238. * near function attribute, MeP: MeP Function Attributes.
  55239. (line 20)
  55240. * near function attribute, MIPS: MIPS Function Attributes.
  55241. (line 63)
  55242. * near type attribute, MeP: MeP Type Attributes.
  55243. (line 6)
  55244. * near variable attribute, MeP: MeP Variable Attributes.
  55245. (line 24)
  55246. * nearbyint: Other Builtins. (line 6)
  55247. * nearbyintf: Other Builtins. (line 6)
  55248. * nearbyintl: Other Builtins. (line 6)
  55249. * nested function attribute, NDS32: NDS32 Function Attributes.
  55250. (line 19)
  55251. * nested functions: Nested Functions. (line 6)
  55252. * nested_ready function attribute, NDS32: NDS32 Function Attributes.
  55253. (line 23)
  55254. * nesting function attribute, Blackfin: Blackfin Function Attributes.
  55255. (line 45)
  55256. * newlines (escaped): Escaped Newlines. (line 6)
  55257. * nextafter: Other Builtins. (line 6)
  55258. * nextafterf: Other Builtins. (line 6)
  55259. * nextafterl: Other Builtins. (line 6)
  55260. * nexttoward: Other Builtins. (line 6)
  55261. * nexttowardf: Other Builtins. (line 6)
  55262. * nexttowardl: Other Builtins. (line 6)
  55263. * NFC: Warning Options. (line 2797)
  55264. * NFKC: Warning Options. (line 2797)
  55265. * Nios II options: Nios II Options. (line 6)
  55266. * nmi function attribute, NDS32: NDS32 Function Attributes.
  55267. (line 50)
  55268. * NMI handler functions on the Blackfin processor: Blackfin Function Attributes.
  55269. (line 50)
  55270. * nmi_handler function attribute, Blackfin: Blackfin Function Attributes.
  55271. (line 50)
  55272. * nocf_check function attribute: x86 Function Attributes.
  55273. (line 631)
  55274. * noclone function attribute: Common Function Attributes.
  55275. (line 854)
  55276. * nocommon variable attribute: Common Variable Attributes.
  55277. (line 176)
  55278. * nocompression function attribute, MIPS: MIPS Function Attributes.
  55279. (line 108)
  55280. * noinit variable attribute: Common Variable Attributes.
  55281. (line 407)
  55282. * noinline function attribute: Common Function Attributes.
  55283. (line 860)
  55284. * noipa function attribute: Common Function Attributes.
  55285. (line 871)
  55286. * nomicromips function attribute: MIPS Function Attributes.
  55287. (line 91)
  55288. * nomips16 function attribute, MIPS: MIPS Function Attributes.
  55289. (line 75)
  55290. * non-constant initializers: Initializers. (line 6)
  55291. * non-static inline function: Inline. (line 82)
  55292. * nonlocal gotos: Nonlocal Gotos. (line 6)
  55293. * nonnull function attribute: Common Function Attributes.
  55294. (line 885)
  55295. * nonstring variable attribute: Common Variable Attributes.
  55296. (line 237)
  55297. * noplt function attribute: Common Function Attributes.
  55298. (line 915)
  55299. * noreturn function attribute: Common Function Attributes.
  55300. (line 939)
  55301. * nosave_low_regs function attribute, SH: SH Function Attributes.
  55302. (line 34)
  55303. * note GCC_COLORS capability: Diagnostic Message Formatting Options.
  55304. (line 98)
  55305. * nothrow function attribute: Common Function Attributes.
  55306. (line 973)
  55307. * notshared type attribute, ARM: ARM Type Attributes.
  55308. (line 6)
  55309. * not_nested function attribute, NDS32: NDS32 Function Attributes.
  55310. (line 21)
  55311. * no_caller_saved_registers function attribute, x86: x86 Function Attributes.
  55312. (line 113)
  55313. * no_gccisr function attribute, AVR: AVR Function Attributes.
  55314. (line 33)
  55315. * no_icf function attribute: Common Function Attributes.
  55316. (line 789)
  55317. * no_instrument_function function attribute: Common Function Attributes.
  55318. (line 793)
  55319. * no_profile_instrument_function function attribute: Common Function Attributes.
  55320. (line 799)
  55321. * no_reorder function attribute: Common Function Attributes.
  55322. (line 804)
  55323. * no_sanitize function attribute: Common Function Attributes.
  55324. (line 812)
  55325. * no_sanitize_address function attribute: Common Function Attributes.
  55326. (line 824)
  55327. * no_sanitize_thread function attribute: Common Function Attributes.
  55328. (line 832)
  55329. * no_sanitize_undefined function attribute: Common Function Attributes.
  55330. (line 837)
  55331. * no_split_stack function attribute: Common Function Attributes.
  55332. (line 843)
  55333. * no_stack_limit function attribute: Common Function Attributes.
  55334. (line 849)
  55335. * no_stack_protector function attribute: Common Function Attributes.
  55336. (line 1159)
  55337. * Nvidia PTX options: Nvidia PTX Options. (line 6)
  55338. * nvptx options: Nvidia PTX Options. (line 6)
  55339. * o in constraint: Simple Constraints. (line 23)
  55340. * OBJC_INCLUDE_PATH: Environment Variables.
  55341. (line 147)
  55342. * objc_nullability variable attribute: Common Variable Attributes.
  55343. (line 427)
  55344. * objc_root_class type attribute: Common Type Attributes.
  55345. (line 460)
  55346. * Objective-C: G++ and GCC. (line 6)
  55347. * Objective-C <1>: Standards. (line 197)
  55348. * Objective-C and Objective-C++ options, command-line: Objective-C and Objective-C++ Dialect Options.
  55349. (line 6)
  55350. * Objective-C++: G++ and GCC. (line 6)
  55351. * Objective-C++ <1>: Standards. (line 197)
  55352. * offsettable address: Simple Constraints. (line 23)
  55353. * old-style function definitions: Function Prototypes.
  55354. (line 6)
  55355. * omit-leaf-frame-pointer function attribute, AArch64: AArch64 Function Attributes.
  55356. (line 41)
  55357. * omitted middle-operands: Conditionals. (line 6)
  55358. * open coding: Inline. (line 6)
  55359. * OpenACC accelerator programming: C Dialect Options. (line 337)
  55360. * OpenACC accelerator programming <1>: C Dialect Options. (line 345)
  55361. * OpenMP parallel: C Dialect Options. (line 351)
  55362. * OpenMP SIMD: C Dialect Options. (line 359)
  55363. * OpenRISC Options: OpenRISC Options. (line 6)
  55364. * operand constraints, asm: Constraints. (line 6)
  55365. * optimize function attribute: Common Function Attributes.
  55366. (line 981)
  55367. * optimize options: Optimize Options. (line 6)
  55368. * options to control diagnostics formatting: Diagnostic Message Formatting Options.
  55369. (line 6)
  55370. * options to control warnings: Warning Options. (line 6)
  55371. * options, C++: C++ Dialect Options.
  55372. (line 6)
  55373. * options, code generation: Code Gen Options. (line 6)
  55374. * options, debugging: Debugging Options. (line 6)
  55375. * options, dialect: C Dialect Options. (line 6)
  55376. * options, directory search: Directory Options. (line 6)
  55377. * options, GCC command: Invoking GCC. (line 6)
  55378. * options, grouping: Invoking GCC. (line 31)
  55379. * options, linking: Link Options. (line 6)
  55380. * options, Objective-C and Objective-C++: Objective-C and Objective-C++ Dialect Options.
  55381. (line 6)
  55382. * options, optimization: Optimize Options. (line 6)
  55383. * options, order: Invoking GCC. (line 35)
  55384. * options, preprocessor: Preprocessor Options.
  55385. (line 6)
  55386. * options, profiling: Instrumentation Options.
  55387. (line 6)
  55388. * options, program instrumentation: Instrumentation Options.
  55389. (line 6)
  55390. * options, run-time error checking: Instrumentation Options.
  55391. (line 6)
  55392. * order of evaluation, side effects: Non-bugs. (line 196)
  55393. * order of options: Invoking GCC. (line 35)
  55394. * OS_main function attribute, AVR: AVR Function Attributes.
  55395. (line 56)
  55396. * OS_task function attribute, AVR: AVR Function Attributes.
  55397. (line 56)
  55398. * other register constraints: Simple Constraints. (line 161)
  55399. * outline-atomics function attribute, AArch64: AArch64 Function Attributes.
  55400. (line 82)
  55401. * output file option: Overall Options. (line 196)
  55402. * overloaded virtual function, warning: C++ Dialect Options.
  55403. (line 972)
  55404. * p in constraint: Simple Constraints. (line 152)
  55405. * packed type attribute: Common Type Attributes.
  55406. (line 282)
  55407. * packed variable attribute: Common Variable Attributes.
  55408. (line 270)
  55409. * parameter forward declaration: Variable Length. (line 66)
  55410. * partial_save function attribute, NDS32: NDS32 Function Attributes.
  55411. (line 31)
  55412. * patchable_function_entry function attribute: Common Function Attributes.
  55413. (line 1007)
  55414. * path GCC_COLORS capability: Diagnostic Message Formatting Options.
  55415. (line 101)
  55416. * pcs function attribute, ARM: ARM Function Attributes.
  55417. (line 58)
  55418. * PDP-11 Options: PDP-11 Options. (line 6)
  55419. * persistent variable attribute: Common Variable Attributes.
  55420. (line 416)
  55421. * PIC: Code Gen Options. (line 353)
  55422. * picoChip options: picoChip Options. (line 6)
  55423. * pmf: Bound member functions.
  55424. (line 6)
  55425. * pointer arguments: Common Function Attributes.
  55426. (line 256)
  55427. * pointer arguments in variadic functions: Variadic Pointer Args.
  55428. (line 6)
  55429. * pointer to member function: Bound member functions.
  55430. (line 6)
  55431. * pointers to arrays: Pointers to Arrays. (line 6)
  55432. * portions of temporary objects, pointers to: Temporaries. (line 6)
  55433. * pow: Other Builtins. (line 6)
  55434. * pow10: Other Builtins. (line 6)
  55435. * pow10f: Other Builtins. (line 6)
  55436. * pow10l: Other Builtins. (line 6)
  55437. * PowerPC options: PowerPC Options. (line 6)
  55438. * powf: Other Builtins. (line 6)
  55439. * powl: Other Builtins. (line 6)
  55440. * pragma GCC ivdep: Loop-Specific Pragmas.
  55441. (line 7)
  55442. * pragma GCC optimize: Function Specific Option Pragmas.
  55443. (line 21)
  55444. * pragma GCC pop_options: Function Specific Option Pragmas.
  55445. (line 33)
  55446. * pragma GCC push_options: Function Specific Option Pragmas.
  55447. (line 33)
  55448. * pragma GCC reset_options: Function Specific Option Pragmas.
  55449. (line 41)
  55450. * pragma GCC target: Function Specific Option Pragmas.
  55451. (line 7)
  55452. * pragma GCC unroll N: Loop-Specific Pragmas.
  55453. (line 37)
  55454. * pragma, address: M32C Pragmas. (line 15)
  55455. * pragma, align: Solaris Pragmas. (line 11)
  55456. * pragma, call: MeP Pragmas. (line 48)
  55457. * pragma, coprocessor available: MeP Pragmas. (line 13)
  55458. * pragma, coprocessor call_saved: MeP Pragmas. (line 20)
  55459. * pragma, coprocessor subclass: MeP Pragmas. (line 28)
  55460. * pragma, ctable_entry: PRU Pragmas. (line 7)
  55461. * pragma, custom io_volatile: MeP Pragmas. (line 7)
  55462. * pragma, diagnostic: Diagnostic Pragmas. (line 14)
  55463. * pragma, diagnostic <1>: Diagnostic Pragmas. (line 57)
  55464. * pragma, diagnostic <2>: Diagnostic Pragmas. (line 77)
  55465. * pragma, diagnostic <3>: Diagnostic Pragmas. (line 99)
  55466. * pragma, disinterrupt: MeP Pragmas. (line 38)
  55467. * pragma, fini: Solaris Pragmas. (line 20)
  55468. * pragma, init: Solaris Pragmas. (line 26)
  55469. * pragma, longcall: RS/6000 and PowerPC Pragmas.
  55470. (line 14)
  55471. * pragma, long_calls: ARM Pragmas. (line 11)
  55472. * pragma, long_calls_off: ARM Pragmas. (line 17)
  55473. * pragma, mark: Darwin Pragmas. (line 11)
  55474. * pragma, memregs: M32C Pragmas. (line 7)
  55475. * pragma, no_long_calls: ARM Pragmas. (line 14)
  55476. * pragma, options align: Darwin Pragmas. (line 14)
  55477. * pragma, pop_macro: Push/Pop Macro Pragmas.
  55478. (line 15)
  55479. * pragma, push_macro: Push/Pop Macro Pragmas.
  55480. (line 11)
  55481. * pragma, redefine_extname: Symbol-Renaming Pragmas.
  55482. (line 13)
  55483. * pragma, segment: Darwin Pragmas. (line 21)
  55484. * pragma, unused: Darwin Pragmas. (line 24)
  55485. * pragma, visibility: Visibility Pragmas. (line 8)
  55486. * pragma, weak: Weak Pragmas. (line 10)
  55487. * pragmas: Pragmas. (line 6)
  55488. * pragmas in C++, effect on inlining: C++ Interface. (line 57)
  55489. * pragmas, interface and implementation: C++ Interface. (line 6)
  55490. * pragmas, warning of unknown: Warning Options. (line 1349)
  55491. * precompiled headers: Precompiled Headers.
  55492. (line 6)
  55493. * prefer-vector-width function attribute, x86: x86 Function Attributes.
  55494. (line 587)
  55495. * preprocessing numbers: Incompatibilities. (line 173)
  55496. * preprocessing tokens: Incompatibilities. (line 173)
  55497. * preprocessor options: Preprocessor Options.
  55498. (line 6)
  55499. * printf: Other Builtins. (line 6)
  55500. * printf_unlocked: Other Builtins. (line 6)
  55501. * prof: Instrumentation Options.
  55502. (line 18)
  55503. * profiling options: Instrumentation Options.
  55504. (line 6)
  55505. * progmem variable attribute, AVR: AVR Variable Attributes.
  55506. (line 7)
  55507. * program instrumentation options: Instrumentation Options.
  55508. (line 6)
  55509. * promotion of formal parameters: Function Prototypes.
  55510. (line 6)
  55511. * PRU Options: PRU Options. (line 6)
  55512. * pure function attribute: Common Function Attributes.
  55513. (line 1025)
  55514. * push address instruction: Simple Constraints. (line 152)
  55515. * putchar: Other Builtins. (line 6)
  55516. * puts: Other Builtins. (line 6)
  55517. * q floating point suffix: Floating Types. (line 6)
  55518. * Q floating point suffix: Floating Types. (line 6)
  55519. * qsort, and global register variables: Global Register Variables.
  55520. (line 75)
  55521. * quote GCC_COLORS capability: Diagnostic Message Formatting Options.
  55522. (line 117)
  55523. * r fixed-suffix: Fixed-Point. (line 6)
  55524. * R fixed-suffix: Fixed-Point. (line 6)
  55525. * r in constraint: Simple Constraints. (line 64)
  55526. * RAMPD: AVR Options. (line 428)
  55527. * RAMPX: AVR Options. (line 428)
  55528. * RAMPY: AVR Options. (line 428)
  55529. * RAMPZ: AVR Options. (line 428)
  55530. * range1 GCC_COLORS capability: Diagnostic Message Formatting Options.
  55531. (line 107)
  55532. * range2 GCC_COLORS capability: Diagnostic Message Formatting Options.
  55533. (line 110)
  55534. * ranges in case statements: Case Ranges. (line 6)
  55535. * read-only strings: Incompatibilities. (line 9)
  55536. * realloc: Other Builtins. (line 6)
  55537. * reentrant function attribute, MSP430: MSP430 Function Attributes.
  55538. (line 44)
  55539. * register variable after longjmp: Global Register Variables.
  55540. (line 92)
  55541. * registers for local variables: Local Register Variables.
  55542. (line 6)
  55543. * registers in constraints: Simple Constraints. (line 64)
  55544. * registers, global allocation: Global Register Variables.
  55545. (line 6)
  55546. * registers, global variables in: Global Register Variables.
  55547. (line 6)
  55548. * regparm function attribute, x86: x86 Function Attributes.
  55549. (line 76)
  55550. * relocation truncated to fit (ColdFire): M680x0 Options. (line 322)
  55551. * relocation truncated to fit (MIPS): MIPS Options. (line 237)
  55552. * remainder: Other Builtins. (line 6)
  55553. * remainderf: Other Builtins. (line 6)
  55554. * remainderl: Other Builtins. (line 6)
  55555. * remquo: Other Builtins. (line 6)
  55556. * remquof: Other Builtins. (line 6)
  55557. * remquol: Other Builtins. (line 6)
  55558. * renesas function attribute, SH: SH Function Attributes.
  55559. (line 40)
  55560. * reordering, warning: C++ Dialect Options.
  55561. (line 786)
  55562. * reporting bugs: Bugs. (line 6)
  55563. * resbank function attribute, SH: SH Function Attributes.
  55564. (line 44)
  55565. * reset function attribute, NDS32: NDS32 Function Attributes.
  55566. (line 45)
  55567. * reset handler functions: NDS32 Function Attributes.
  55568. (line 45)
  55569. * rest argument (in macro): Variadic Macros. (line 6)
  55570. * restricted pointers: Restricted Pointers.
  55571. (line 6)
  55572. * restricted references: Restricted Pointers.
  55573. (line 6)
  55574. * restricted this pointer: Restricted Pointers.
  55575. (line 6)
  55576. * retain function attribute: Common Function Attributes.
  55577. (line 1287)
  55578. * retain variable attribute: Common Variable Attributes.
  55579. (line 360)
  55580. * returns_nonnull function attribute: Common Function Attributes.
  55581. (line 1072)
  55582. * returns_twice function attribute: Common Function Attributes.
  55583. (line 1082)
  55584. * rindex: Other Builtins. (line 6)
  55585. * rint: Other Builtins. (line 6)
  55586. * rintf: Other Builtins. (line 6)
  55587. * rintl: Other Builtins. (line 6)
  55588. * RISC-V Options: RISC-V Options. (line 6)
  55589. * RL78 Options: RL78 Options. (line 6)
  55590. * round: Other Builtins. (line 6)
  55591. * roundf: Other Builtins. (line 6)
  55592. * roundl: Other Builtins. (line 6)
  55593. * RS/6000 and PowerPC Options: RS/6000 and PowerPC Options.
  55594. (line 6)
  55595. * RTTI: Vague Linkage. (line 42)
  55596. * run-time error checking options: Instrumentation Options.
  55597. (line 6)
  55598. * run-time options: Code Gen Options. (line 6)
  55599. * RX Options: RX Options. (line 6)
  55600. * s in constraint: Simple Constraints. (line 100)
  55601. * S/390 and zSeries Options: S/390 and zSeries Options.
  55602. (line 6)
  55603. * saddr variable attribute, RL78: RL78 Variable Attributes.
  55604. (line 6)
  55605. * save all registers on the Blackfin: Blackfin Function Attributes.
  55606. (line 56)
  55607. * save all registers on the H8/300, H8/300H, and H8S: H8/300 Function Attributes.
  55608. (line 23)
  55609. * saveall function attribute, Blackfin: Blackfin Function Attributes.
  55610. (line 56)
  55611. * saveall function attribute, H8/300: H8/300 Function Attributes.
  55612. (line 23)
  55613. * save_all function attribute, NDS32: NDS32 Function Attributes.
  55614. (line 28)
  55615. * save_volatiles function attribute, MicroBlaze: MicroBlaze Function Attributes.
  55616. (line 9)
  55617. * scalar_storage_order type attribute: Common Type Attributes.
  55618. (line 317)
  55619. * scalb: Other Builtins. (line 6)
  55620. * scalbf: Other Builtins. (line 6)
  55621. * scalbl: Other Builtins. (line 6)
  55622. * scalbln: Other Builtins. (line 6)
  55623. * scalblnf: Other Builtins. (line 6)
  55624. * scalblnf <1>: Other Builtins. (line 6)
  55625. * scalbn: Other Builtins. (line 6)
  55626. * scalbnf: Other Builtins. (line 6)
  55627. * scanf, and constant strings: Incompatibilities. (line 17)
  55628. * scanfnl: Other Builtins. (line 6)
  55629. * scope of a variable length array: Variable Length. (line 22)
  55630. * scope of declaration: Disappointments. (line 21)
  55631. * scope of external declarations: Incompatibilities. (line 80)
  55632. * Score Options: Score Options. (line 6)
  55633. * sda variable attribute, V850: V850 Variable Attributes.
  55634. (line 9)
  55635. * search path: Directory Options. (line 6)
  55636. * section function attribute: Common Function Attributes.
  55637. (line 1091)
  55638. * section variable attribute: Common Variable Attributes.
  55639. (line 292)
  55640. * secure_call function attribute, ARC: ARC Function Attributes.
  55641. (line 53)
  55642. * selectany variable attribute: Microsoft Windows Variable Attributes.
  55643. (line 16)
  55644. * sentinel function attribute: Common Function Attributes.
  55645. (line 1108)
  55646. * setjmp: Global Register Variables.
  55647. (line 92)
  55648. * setjmp incompatibilities: Incompatibilities. (line 39)
  55649. * shared attribute, Nvidia PTX: Nvidia PTX Variable Attributes.
  55650. (line 9)
  55651. * shared strings: Incompatibilities. (line 9)
  55652. * shared variable attribute: Microsoft Windows Variable Attributes.
  55653. (line 37)
  55654. * shortcall function attribute, Blackfin: Blackfin Function Attributes.
  55655. (line 38)
  55656. * shortcall function attribute, PowerPC: PowerPC Function Attributes.
  55657. (line 10)
  55658. * short_call function attribute, ARC: ARC Function Attributes.
  55659. (line 26)
  55660. * short_call function attribute, ARM: ARM Function Attributes.
  55661. (line 38)
  55662. * short_call function attribute, Epiphany: Epiphany Function Attributes.
  55663. (line 57)
  55664. * short_call function attribute, MIPS: MIPS Function Attributes.
  55665. (line 63)
  55666. * side effect in ?:: Conditionals. (line 20)
  55667. * side effects, macro argument: Statement Exprs. (line 35)
  55668. * side effects, order of evaluation: Non-bugs. (line 196)
  55669. * sign-return-address function attribute, AArch64: AArch64 Function Attributes.
  55670. (line 69)
  55671. * signal function attribute, AVR: AVR Function Attributes.
  55672. (line 80)
  55673. * signbit: Other Builtins. (line 6)
  55674. * signbitd128: Other Builtins. (line 6)
  55675. * signbitd32: Other Builtins. (line 6)
  55676. * signbitd64: Other Builtins. (line 6)
  55677. * signbitf: Other Builtins. (line 6)
  55678. * signbitl: Other Builtins. (line 6)
  55679. * signed and unsigned values, comparison warning: Warning Options.
  55680. (line 2541)
  55681. * significand: Other Builtins. (line 6)
  55682. * significandf: Other Builtins. (line 6)
  55683. * significandl: Other Builtins. (line 6)
  55684. * SIMD: C Dialect Options. (line 359)
  55685. * simd function attribute: Common Function Attributes.
  55686. (line 1135)
  55687. * simple constraints: Simple Constraints. (line 6)
  55688. * sin: Other Builtins. (line 6)
  55689. * sincos: Other Builtins. (line 6)
  55690. * sincosf: Other Builtins. (line 6)
  55691. * sincosl: Other Builtins. (line 6)
  55692. * sinf: Other Builtins. (line 6)
  55693. * sinh: Other Builtins. (line 6)
  55694. * sinhf: Other Builtins. (line 6)
  55695. * sinhl: Other Builtins. (line 6)
  55696. * sinl: Other Builtins. (line 6)
  55697. * sizeof: Typeof. (line 6)
  55698. * smaller data references: M32R/D Options. (line 57)
  55699. * smaller data references <1>: Nios II Options. (line 9)
  55700. * smaller data references (PowerPC): RS/6000 and PowerPC Options.
  55701. (line 714)
  55702. * snprintf: Other Builtins. (line 6)
  55703. * Solaris 2 options: Solaris 2 Options. (line 6)
  55704. * SOURCE_DATE_EPOCH: Environment Variables.
  55705. (line 193)
  55706. * SPARC options: SPARC Options. (line 6)
  55707. * Spec Files: Spec Files. (line 6)
  55708. * specified registers: Explicit Register Variables.
  55709. (line 6)
  55710. * specifying compiler version and target machine: Invoking GCC.
  55711. (line 24)
  55712. * specifying hardware config: Submodel Options. (line 6)
  55713. * specifying machine version: Invoking GCC. (line 24)
  55714. * specifying registers for local variables: Local Register Variables.
  55715. (line 6)
  55716. * speed of compilation: Precompiled Headers.
  55717. (line 6)
  55718. * speed of compilation <1>: C++ Modules. (line 6)
  55719. * sprintf: Other Builtins. (line 6)
  55720. * sp_switch function attribute, SH: SH Function Attributes.
  55721. (line 58)
  55722. * sqrt: Other Builtins. (line 6)
  55723. * sqrtf: Other Builtins. (line 6)
  55724. * sqrtl: Other Builtins. (line 6)
  55725. * sscanf: Other Builtins. (line 6)
  55726. * sscanf, and constant strings: Incompatibilities. (line 17)
  55727. * sseregparm function attribute, x86: x86 Function Attributes.
  55728. (line 93)
  55729. * stack_protect function attribute: Common Function Attributes.
  55730. (line 1154)
  55731. * Statement Attributes: Statement Attributes.
  55732. (line 6)
  55733. * statements inside expressions: Statement Exprs. (line 6)
  55734. * static data in C++, declaring and defining: Static Definitions.
  55735. (line 6)
  55736. * stdcall function attribute, x86-32: x86 Function Attributes.
  55737. (line 108)
  55738. * stpcpy: Other Builtins. (line 6)
  55739. * stpncpy: Other Builtins. (line 6)
  55740. * strcasecmp: Other Builtins. (line 6)
  55741. * strcat: Other Builtins. (line 6)
  55742. * strchr: Other Builtins. (line 6)
  55743. * strcmp: Other Builtins. (line 6)
  55744. * strcpy: Other Builtins. (line 6)
  55745. * strcspn: Other Builtins. (line 6)
  55746. * strdup: Other Builtins. (line 6)
  55747. * strfmon: Other Builtins. (line 6)
  55748. * strftime: Other Builtins. (line 6)
  55749. * strict-align function attribute, AArch64: AArch64 Function Attributes.
  55750. (line 33)
  55751. * string constants: Incompatibilities. (line 9)
  55752. * strlen: Other Builtins. (line 6)
  55753. * strncasecmp: Other Builtins. (line 6)
  55754. * strncat: Other Builtins. (line 6)
  55755. * strncmp: Other Builtins. (line 6)
  55756. * strncpy: Other Builtins. (line 6)
  55757. * strndup: Other Builtins. (line 6)
  55758. * strnlen: Other Builtins. (line 6)
  55759. * strpbrk: Other Builtins. (line 6)
  55760. * strrchr: Other Builtins. (line 6)
  55761. * strspn: Other Builtins. (line 6)
  55762. * strstr: Other Builtins. (line 6)
  55763. * struct: Unnamed Fields. (line 6)
  55764. * struct __htm_tdb: S/390 System z Built-in Functions.
  55765. (line 49)
  55766. * structures: Incompatibilities. (line 146)
  55767. * structures, constructor expression: Compound Literals. (line 6)
  55768. * submodel options: Submodel Options. (line 6)
  55769. * subscripting: Subscripting. (line 6)
  55770. * subscripting and function values: Subscripting. (line 6)
  55771. * suffixes for C++ source: Invoking G++. (line 6)
  55772. * SUNPRO_DEPENDENCIES: Environment Variables.
  55773. (line 187)
  55774. * suppressing warnings: Warning Options. (line 6)
  55775. * surprises in C++: C++ Misunderstandings.
  55776. (line 6)
  55777. * symver function attribute: Common Function Attributes.
  55778. (line 1201)
  55779. * syntax checking: Warning Options. (line 13)
  55780. * syscall_linkage function attribute, IA-64: IA-64 Function Attributes.
  55781. (line 9)
  55782. * system headers, warnings from: Warning Options. (line 1957)
  55783. * sysv_abi function attribute, x86: x86 Function Attributes.
  55784. (line 34)
  55785. * tan: Other Builtins. (line 6)
  55786. * tanf: Other Builtins. (line 6)
  55787. * tanh: Other Builtins. (line 6)
  55788. * tanhf: Other Builtins. (line 6)
  55789. * tanhl: Other Builtins. (line 6)
  55790. * tanl: Other Builtins. (line 6)
  55791. * target function attribute: Common Function Attributes.
  55792. (line 1162)
  55793. * target function attribute <1>: ARM Function Attributes.
  55794. (line 77)
  55795. * target function attribute <2>: Nios II Function Attributes.
  55796. (line 9)
  55797. * target function attribute <3>: PowerPC Function Attributes.
  55798. (line 21)
  55799. * target function attribute <4>: S/390 Function Attributes.
  55800. (line 22)
  55801. * target function attribute <5>: x86 Function Attributes.
  55802. (line 180)
  55803. * target machine, specifying: Invoking GCC. (line 24)
  55804. * target("3dnow") function attribute, x86: x86 Function Attributes.
  55805. (line 186)
  55806. * target("3dnowa") function attribute, x86: x86 Function Attributes.
  55807. (line 190)
  55808. * target("abm") function attribute, x86: x86 Function Attributes.
  55809. (line 195)
  55810. * target("adx") function attribute, x86: x86 Function Attributes.
  55811. (line 200)
  55812. * target("aes") function attribute, x86: x86 Function Attributes.
  55813. (line 204)
  55814. * target("align-stringops") function attribute, x86: x86 Function Attributes.
  55815. (line 561)
  55816. * target("altivec") function attribute, PowerPC: PowerPC Function Attributes.
  55817. (line 28)
  55818. * target("amx-bf16") function attribute, x86: x86 Function Attributes.
  55819. (line 513)
  55820. * target("amx-int8") function attribute, x86: x86 Function Attributes.
  55821. (line 509)
  55822. * target("amx-tile") function attribute, x86: x86 Function Attributes.
  55823. (line 505)
  55824. * target("arch=ARCH") function attribute, x86: x86 Function Attributes.
  55825. (line 573)
  55826. * target("arm") function attribute, ARM: ARM Function Attributes.
  55827. (line 87)
  55828. * target("avoid-indexed-addresses") function attribute, PowerPC: PowerPC Function Attributes.
  55829. (line 142)
  55830. * target("avx") function attribute, x86: x86 Function Attributes.
  55831. (line 208)
  55832. * target("avx2") function attribute, x86: x86 Function Attributes.
  55833. (line 212)
  55834. * target("avx5124fmaps") function attribute, x86: x86 Function Attributes.
  55835. (line 216)
  55836. * target("avx5124vnniw") function attribute, x86: x86 Function Attributes.
  55837. (line 221)
  55838. * target("avx512bitalg") function attribute, x86: x86 Function Attributes.
  55839. (line 226)
  55840. * target("avx512bw") function attribute, x86: x86 Function Attributes.
  55841. (line 231)
  55842. * target("avx512cd") function attribute, x86: x86 Function Attributes.
  55843. (line 235)
  55844. * target("avx512dq") function attribute, x86: x86 Function Attributes.
  55845. (line 239)
  55846. * target("avx512er") function attribute, x86: x86 Function Attributes.
  55847. (line 243)
  55848. * target("avx512f") function attribute, x86: x86 Function Attributes.
  55849. (line 247)
  55850. * target("avx512ifma") function attribute, x86: x86 Function Attributes.
  55851. (line 251)
  55852. * target("avx512pf") function attribute, x86: x86 Function Attributes.
  55853. (line 255)
  55854. * target("avx512vbmi") function attribute, x86: x86 Function Attributes.
  55855. (line 259)
  55856. * target("avx512vbmi2") function attribute, x86: x86 Function Attributes.
  55857. (line 263)
  55858. * target("avx512vl") function attribute, x86: x86 Function Attributes.
  55859. (line 267)
  55860. * target("avx512vnni") function attribute, x86: x86 Function Attributes.
  55861. (line 271)
  55862. * target("avx512vpopcntdq") function attribute, x86: x86 Function Attributes.
  55863. (line 275)
  55864. * target("avxvnni") function attribute, x86: x86 Function Attributes.
  55865. (line 533)
  55866. * target("bmi") function attribute, x86: x86 Function Attributes.
  55867. (line 280)
  55868. * target("bmi2") function attribute, x86: x86 Function Attributes.
  55869. (line 284)
  55870. * target("cld") function attribute, x86: x86 Function Attributes.
  55871. (line 537)
  55872. * target("cldemote") function attribute, x86: x86 Function Attributes.
  55873. (line 288)
  55874. * target("clflushopt") function attribute, x86: x86 Function Attributes.
  55875. (line 292)
  55876. * target("clwb") function attribute, x86: x86 Function Attributes.
  55877. (line 296)
  55878. * target("clzero") function attribute, x86: x86 Function Attributes.
  55879. (line 300)
  55880. * target("cmpb") function attribute, PowerPC: PowerPC Function Attributes.
  55881. (line 34)
  55882. * target("cpu=CPU") function attribute, PowerPC: PowerPC Function Attributes.
  55883. (line 157)
  55884. * target("crc32") function attribute, x86: x86 Function Attributes.
  55885. (line 304)
  55886. * target("custom-fpu-cfg=NAME") function attribute, Nios II: Nios II Function Attributes.
  55887. (line 25)
  55888. * target("custom-INSN=N") function attribute, Nios II: Nios II Function Attributes.
  55889. (line 16)
  55890. * target("cx16") function attribute, x86: x86 Function Attributes.
  55891. (line 308)
  55892. * target("default") function attribute, x86: x86 Function Attributes.
  55893. (line 311)
  55894. * target("dlmzb") function attribute, PowerPC: PowerPC Function Attributes.
  55895. (line 40)
  55896. * target("f16c") function attribute, x86: x86 Function Attributes.
  55897. (line 316)
  55898. * target("fancy-math-387") function attribute, x86: x86 Function Attributes.
  55899. (line 541)
  55900. * target("fma") function attribute, x86: x86 Function Attributes.
  55901. (line 320)
  55902. * target("fma4") function attribute, x86: x86 Function Attributes.
  55903. (line 324)
  55904. * target("fpmath=FPMATH") function attribute, x86: x86 Function Attributes.
  55905. (line 581)
  55906. * target("fprnd") function attribute, PowerPC: PowerPC Function Attributes.
  55907. (line 47)
  55908. * target("fpu=") function attribute, ARM: ARM Function Attributes.
  55909. (line 93)
  55910. * target("friz") function attribute, PowerPC: PowerPC Function Attributes.
  55911. (line 133)
  55912. * target("fsgsbase") function attribute, x86: x86 Function Attributes.
  55913. (line 328)
  55914. * target("fxsr") function attribute, x86: x86 Function Attributes.
  55915. (line 332)
  55916. * target("general-regs-only") function attribute, x86: x86 Function Attributes.
  55917. (line 570)
  55918. * target("gfni") function attribute, x86: x86 Function Attributes.
  55919. (line 336)
  55920. * target("hard-dfp") function attribute, PowerPC: PowerPC Function Attributes.
  55921. (line 53)
  55922. * target("hle") function attribute, x86: x86 Function Attributes.
  55923. (line 340)
  55924. * target("hreset") function attribute, x86: x86 Function Attributes.
  55925. (line 521)
  55926. * target("ieee-fp") function attribute, x86: x86 Function Attributes.
  55927. (line 546)
  55928. * target("inline-all-stringops") function attribute, x86: x86 Function Attributes.
  55929. (line 551)
  55930. * target("inline-stringops-dynamically") function attribute, x86: x86 Function Attributes.
  55931. (line 555)
  55932. * target("isel") function attribute, PowerPC: PowerPC Function Attributes.
  55933. (line 59)
  55934. * target("kl") function attribute, x86: x86 Function Attributes.
  55935. (line 525)
  55936. * target("longcall") function attribute, PowerPC: PowerPC Function Attributes.
  55937. (line 152)
  55938. * target("lwp") function attribute, x86: x86 Function Attributes.
  55939. (line 344)
  55940. * target("lzcnt") function attribute, x86: x86 Function Attributes.
  55941. (line 348)
  55942. * target("mfcrf") function attribute, PowerPC: PowerPC Function Attributes.
  55943. (line 63)
  55944. * target("mmx") function attribute, x86: x86 Function Attributes.
  55945. (line 352)
  55946. * target("movbe") function attribute, x86: x86 Function Attributes.
  55947. (line 356)
  55948. * target("movdir64b") function attribute, x86: x86 Function Attributes.
  55949. (line 360)
  55950. * target("movdiri") function attribute, x86: x86 Function Attributes.
  55951. (line 364)
  55952. * target("mulhw") function attribute, PowerPC: PowerPC Function Attributes.
  55953. (line 70)
  55954. * target("multiple") function attribute, PowerPC: PowerPC Function Attributes.
  55955. (line 77)
  55956. * target("mwaitx") function attribute, x86: x86 Function Attributes.
  55957. (line 368)
  55958. * target("no-custom-INSN") function attribute, Nios II: Nios II Function Attributes.
  55959. (line 16)
  55960. * target("paired") function attribute, PowerPC: PowerPC Function Attributes.
  55961. (line 147)
  55962. * target("pclmul") function attribute, x86: x86 Function Attributes.
  55963. (line 372)
  55964. * target("pconfig") function attribute, x86: x86 Function Attributes.
  55965. (line 376)
  55966. * target("pku") function attribute, x86: x86 Function Attributes.
  55967. (line 380)
  55968. * target("popcnt") function attribute, x86: x86 Function Attributes.
  55969. (line 384)
  55970. * target("popcntb") function attribute, PowerPC: PowerPC Function Attributes.
  55971. (line 88)
  55972. * target("popcntd") function attribute, PowerPC: PowerPC Function Attributes.
  55973. (line 95)
  55974. * target("powerpc-gfxopt") function attribute, PowerPC: PowerPC Function Attributes.
  55975. (line 101)
  55976. * target("powerpc-gpopt") function attribute, PowerPC: PowerPC Function Attributes.
  55977. (line 107)
  55978. * target("prefetchwt1") function attribute, x86: x86 Function Attributes.
  55979. (line 388)
  55980. * target("prfchw") function attribute, x86: x86 Function Attributes.
  55981. (line 392)
  55982. * target("ptwrite") function attribute, x86: x86 Function Attributes.
  55983. (line 396)
  55984. * target("rdpid") function attribute, x86: x86 Function Attributes.
  55985. (line 400)
  55986. * target("rdrnd") function attribute, x86: x86 Function Attributes.
  55987. (line 404)
  55988. * target("rdseed") function attribute, x86: x86 Function Attributes.
  55989. (line 408)
  55990. * target("recip") function attribute, x86: x86 Function Attributes.
  55991. (line 565)
  55992. * target("recip-precision") function attribute, PowerPC: PowerPC Function Attributes.
  55993. (line 113)
  55994. * target("rtm") function attribute, x86: x86 Function Attributes.
  55995. (line 412)
  55996. * target("sahf") function attribute, x86: x86 Function Attributes.
  55997. (line 416)
  55998. * target("sgx") function attribute, x86: x86 Function Attributes.
  55999. (line 420)
  56000. * target("sha") function attribute, x86: x86 Function Attributes.
  56001. (line 424)
  56002. * target("shstk") function attribute, x86: x86 Function Attributes.
  56003. (line 428)
  56004. * target("sse") function attribute, x86: x86 Function Attributes.
  56005. (line 432)
  56006. * target("sse2") function attribute, x86: x86 Function Attributes.
  56007. (line 436)
  56008. * target("sse3") function attribute, x86: x86 Function Attributes.
  56009. (line 440)
  56010. * target("sse4") function attribute, x86: x86 Function Attributes.
  56011. (line 444)
  56012. * target("sse4.1") function attribute, x86: x86 Function Attributes.
  56013. (line 449)
  56014. * target("sse4.2") function attribute, x86: x86 Function Attributes.
  56015. (line 453)
  56016. * target("sse4a") function attribute, x86: x86 Function Attributes.
  56017. (line 457)
  56018. * target("ssse3") function attribute, x86: x86 Function Attributes.
  56019. (line 461)
  56020. * target("string") function attribute, PowerPC: PowerPC Function Attributes.
  56021. (line 119)
  56022. * target("tbm") function attribute, x86: x86 Function Attributes.
  56023. (line 465)
  56024. * target("thumb") function attribute, ARM: ARM Function Attributes.
  56025. (line 83)
  56026. * target("tune=TUNE") function attribute, PowerPC: PowerPC Function Attributes.
  56027. (line 164)
  56028. * target("tune=TUNE") function attribute, x86: x86 Function Attributes.
  56029. (line 577)
  56030. * target("uintr") function attribute, x86: x86 Function Attributes.
  56031. (line 517)
  56032. * target("update") function attribute, PowerPC: PowerPC Function Attributes.
  56033. (line 82)
  56034. * target("vaes") function attribute, x86: x86 Function Attributes.
  56035. (line 469)
  56036. * target("vpclmulqdq") function attribute, x86: x86 Function Attributes.
  56037. (line 473)
  56038. * target("vsx") function attribute, PowerPC: PowerPC Function Attributes.
  56039. (line 125)
  56040. * target("waitpkg") function attribute, x86: x86 Function Attributes.
  56041. (line 477)
  56042. * target("wbnoinvd") function attribute, x86: x86 Function Attributes.
  56043. (line 481)
  56044. * target("widekl") function attribute, x86: x86 Function Attributes.
  56045. (line 529)
  56046. * target("xop") function attribute, x86: x86 Function Attributes.
  56047. (line 485)
  56048. * target("xsave") function attribute, x86: x86 Function Attributes.
  56049. (line 489)
  56050. * target("xsavec") function attribute, x86: x86 Function Attributes.
  56051. (line 493)
  56052. * target("xsaveopt") function attribute, x86: x86 Function Attributes.
  56053. (line 497)
  56054. * target("xsaves") function attribute, x86: x86 Function Attributes.
  56055. (line 501)
  56056. * target-dependent options: Submodel Options. (line 6)
  56057. * target_clones function attribute: Common Function Attributes.
  56058. (line 1245)
  56059. * TC1: Standards. (line 13)
  56060. * TC2: Standards. (line 13)
  56061. * TC3: Standards. (line 13)
  56062. * tda variable attribute, V850: V850 Variable Attributes.
  56063. (line 13)
  56064. * Technical Corrigenda: Standards. (line 13)
  56065. * Technical Corrigendum 1: Standards. (line 13)
  56066. * Technical Corrigendum 2: Standards. (line 13)
  56067. * Technical Corrigendum 3: Standards. (line 13)
  56068. * template instantiation: Template Instantiation.
  56069. (line 6)
  56070. * temporaries, lifetime of: Temporaries. (line 6)
  56071. * tentative definitions: Code Gen Options. (line 231)
  56072. * TERM_URLS environment variable: Diagnostic Message Formatting Options.
  56073. (line 144)
  56074. * tgamma: Other Builtins. (line 6)
  56075. * tgammaf: Other Builtins. (line 6)
  56076. * tgammal: Other Builtins. (line 6)
  56077. * thiscall function attribute, x86-32: x86 Function Attributes.
  56078. (line 23)
  56079. * Thread-Local Storage: Thread-Local. (line 6)
  56080. * thunks: Nested Functions. (line 6)
  56081. * TILE-Gx options: TILE-Gx Options. (line 6)
  56082. * TILEPro options: TILEPro Options. (line 6)
  56083. * tiny data section on the H8/300H and H8S: H8/300 Variable Attributes.
  56084. (line 19)
  56085. * tiny type attribute, MeP: MeP Type Attributes.
  56086. (line 6)
  56087. * tiny variable attribute, MeP: MeP Variable Attributes.
  56088. (line 20)
  56089. * tiny_data variable attribute, H8/300: H8/300 Variable Attributes.
  56090. (line 19)
  56091. * TLS: Thread-Local. (line 6)
  56092. * tls-dialect= function attribute, AArch64: AArch64 Function Attributes.
  56093. (line 48)
  56094. * tls_model variable attribute: Common Variable Attributes.
  56095. (line 337)
  56096. * TMPDIR: Environment Variables.
  56097. (line 45)
  56098. * toascii: Other Builtins. (line 6)
  56099. * tolower: Other Builtins. (line 6)
  56100. * toupper: Other Builtins. (line 6)
  56101. * towlower: Other Builtins. (line 6)
  56102. * towupper: Other Builtins. (line 6)
  56103. * traditional C language: Preprocessor Options.
  56104. (line 373)
  56105. * transparent_union type attribute: Common Type Attributes.
  56106. (line 357)
  56107. * trapa_handler function attribute, SH: SH Function Attributes.
  56108. (line 73)
  56109. * trap_exit function attribute, SH: SH Function Attributes.
  56110. (line 68)
  56111. * trunc: Other Builtins. (line 6)
  56112. * truncf: Other Builtins. (line 6)
  56113. * truncl: Other Builtins. (line 6)
  56114. * tune= function attribute, AArch64: AArch64 Function Attributes.
  56115. (line 58)
  56116. * two-stage name lookup: Name lookup. (line 6)
  56117. * type alignment: Alignment. (line 6)
  56118. * type attributes: Type Attributes. (line 6)
  56119. * type-diff GCC_COLORS capability: Diagnostic Message Formatting Options.
  56120. (line 140)
  56121. * typedef names as function parameters: Incompatibilities. (line 97)
  56122. * typeof: Typeof. (line 6)
  56123. * type_info: Vague Linkage. (line 42)
  56124. * uhk fixed-suffix: Fixed-Point. (line 6)
  56125. * UHK fixed-suffix: Fixed-Point. (line 6)
  56126. * uhr fixed-suffix: Fixed-Point. (line 6)
  56127. * UHR fixed-suffix: Fixed-Point. (line 6)
  56128. * uk fixed-suffix: Fixed-Point. (line 6)
  56129. * UK fixed-suffix: Fixed-Point. (line 6)
  56130. * ulk fixed-suffix: Fixed-Point. (line 6)
  56131. * ULK fixed-suffix: Fixed-Point. (line 6)
  56132. * ULL integer suffix: Long Long. (line 6)
  56133. * ullk fixed-suffix: Fixed-Point. (line 6)
  56134. * ULLK fixed-suffix: Fixed-Point. (line 6)
  56135. * ullr fixed-suffix: Fixed-Point. (line 6)
  56136. * ULLR fixed-suffix: Fixed-Point. (line 6)
  56137. * ulr fixed-suffix: Fixed-Point. (line 6)
  56138. * ULR fixed-suffix: Fixed-Point. (line 6)
  56139. * uncached type attribute, ARC: ARC Type Attributes.
  56140. (line 6)
  56141. * undefined behavior: Bug Criteria. (line 17)
  56142. * undefined function value: Bug Criteria. (line 17)
  56143. * underscores in variables in macros: Typeof. (line 46)
  56144. * union: Unnamed Fields. (line 6)
  56145. * union, casting to a: Cast to Union. (line 6)
  56146. * unions: Incompatibilities. (line 146)
  56147. * unknown pragmas, warning: Warning Options. (line 1349)
  56148. * unresolved references and -nodefaultlibs: Link Options. (line 154)
  56149. * unresolved references and -nostdlib: Link Options. (line 154)
  56150. * unused function attribute: Common Function Attributes.
  56151. (line 1272)
  56152. * unused label attribute: Label Attributes. (line 32)
  56153. * unused type attribute: Common Type Attributes.
  56154. (line 410)
  56155. * unused variable attribute: Common Variable Attributes.
  56156. (line 346)
  56157. * upper function attribute, MSP430: MSP430 Function Attributes.
  56158. (line 57)
  56159. * upper variable attribute, MSP430: MSP430 Variable Attributes.
  56160. (line 8)
  56161. * ur fixed-suffix: Fixed-Point. (line 6)
  56162. * UR fixed-suffix: Fixed-Point. (line 6)
  56163. * urls: Diagnostic Message Formatting Options.
  56164. (line 144)
  56165. * used function attribute: Common Function Attributes.
  56166. (line 1277)
  56167. * used variable attribute: Common Variable Attributes.
  56168. (line 351)
  56169. * User stack pointer in interrupts on the Blackfin: Blackfin Function Attributes.
  56170. (line 21)
  56171. * use_debug_exception_return function attribute, MIPS: MIPS Function Attributes.
  56172. (line 39)
  56173. * use_shadow_register_set function attribute, MIPS: MIPS Function Attributes.
  56174. (line 28)
  56175. * V in constraint: Simple Constraints. (line 43)
  56176. * V850 Options: V850 Options. (line 6)
  56177. * vague linkage: Vague Linkage. (line 6)
  56178. * value after longjmp: Global Register Variables.
  56179. (line 92)
  56180. * variable addressability on the M32R/D: M32R/D Variable Attributes.
  56181. (line 9)
  56182. * variable alignment: Alignment. (line 6)
  56183. * variable attributes: Variable Attributes.
  56184. (line 6)
  56185. * variable number of arguments: Variadic Macros. (line 6)
  56186. * variable-length array in a structure: Variable Length. (line 26)
  56187. * variable-length array scope: Variable Length. (line 22)
  56188. * variable-length arrays: Variable Length. (line 6)
  56189. * variables in specified registers: Explicit Register Variables.
  56190. (line 6)
  56191. * variables, local, in macros: Typeof. (line 46)
  56192. * variadic functions, pointer arguments: Variadic Pointer Args.
  56193. (line 6)
  56194. * variadic macros: Variadic Macros. (line 6)
  56195. * VAX options: VAX Options. (line 6)
  56196. * vector function attribute, RX: RX Function Attributes.
  56197. (line 49)
  56198. * vector types, using with x86 intrinsics: Vector Extensions.
  56199. (line 188)
  56200. * vector_size type attribute: Common Type Attributes.
  56201. (line 419)
  56202. * vector_size variable attribute: Common Variable Attributes.
  56203. (line 370)
  56204. * vec_blendv: PowerPC AltiVec Built-in Functions Available on ISA 3.1.
  56205. (line 308)
  56206. * vec_cfuge: PowerPC AltiVec Built-in Functions Available on ISA 3.1.
  56207. (line 12)
  56208. * vec_clrl: PowerPC AltiVec Built-in Functions Available on ISA 3.1.
  56209. (line 31)
  56210. * vec_clrr: PowerPC AltiVec Built-in Functions Available on ISA 3.1.
  56211. (line 40)
  56212. * vec_cntlzm: PowerPC AltiVec Built-in Functions Available on ISA 3.1.
  56213. (line 17)
  56214. * vec_cnttzm: PowerPC AltiVec Built-in Functions Available on ISA 3.1.
  56215. (line 22)
  56216. * vec_extracth: PowerPC AltiVec Built-in Functions Available on ISA 3.1.
  56217. (line 101)
  56218. * vec_extractl: PowerPC AltiVec Built-in Functions Available on ISA 3.1.
  56219. (line 72)
  56220. * vec_genpcvm: PowerPC AltiVec Built-in Functions Available on ISA 3.1.
  56221. (line 514)
  56222. * vec_gnb: PowerPC AltiVec Built-in Functions Available on ISA 3.1.
  56223. (line 46)
  56224. * vec_inserth: PowerPC AltiVec Built-in Functions Available on ISA 3.1.
  56225. (line 168)
  56226. * vec_insertl: PowerPC AltiVec Built-in Functions Available on ISA 3.1.
  56227. (line 137)
  56228. * vec_pdep: PowerPC AltiVec Built-in Functions Available on ISA 3.1.
  56229. (line 105)
  56230. * vec_permx: PowerPC AltiVec Built-in Functions Available on ISA 3.1.
  56231. (line 335)
  56232. * vec_pext: PowerPC AltiVec Built-in Functions Available on ISA 3.1.
  56233. (line 340)
  56234. * vec_replace_element: PowerPC AltiVec Built-in Functions Available on ISA 3.1.
  56235. (line 189)
  56236. * vec_replace_unaligned: PowerPC AltiVec Built-in Functions Available on ISA 3.1.
  56237. (line 211)
  56238. * vec_sldb: PowerPC AltiVec Built-in Functions Available on ISA 3.1.
  56239. (line 235)
  56240. * vec_splati: PowerPC AltiVec Built-in Functions Available on ISA 3.1.
  56241. (line 265)
  56242. * vec_splatid: PowerPC AltiVec Built-in Functions Available on ISA 3.1.
  56243. (line 270)
  56244. * vec_splati_ins: PowerPC AltiVec Built-in Functions Available on ISA 3.1.
  56245. (line 281)
  56246. * vec_srdb: PowerPC AltiVec Built-in Functions Available on ISA 3.1.
  56247. (line 258)
  56248. * vec_stril: PowerPC AltiVec Built-in Functions Available on ISA 3.1.
  56249. (line 350)
  56250. * vec_stril_p: PowerPC AltiVec Built-in Functions Available on ISA 3.1.
  56251. (line 361)
  56252. * vec_strir: PowerPC AltiVec Built-in Functions Available on ISA 3.1.
  56253. (line 371)
  56254. * vec_strir_p: PowerPC AltiVec Built-in Functions Available on ISA 3.1.
  56255. (line 382)
  56256. * vec_ternarylogic: PowerPC AltiVec Built-in Functions Available on ISA 3.1.
  56257. (line 401)
  56258. * vec_xst_trunc: Basic PowerPC Built-in Functions Available on ISA 3.1.
  56259. (line 62)
  56260. * version_id function attribute, IA-64: IA-64 Function Attributes.
  56261. (line 16)
  56262. * vfprintf: Other Builtins. (line 6)
  56263. * vfscanf: Other Builtins. (line 6)
  56264. * visibility function attribute: Common Function Attributes.
  56265. (line 1298)
  56266. * visibility type attribute: Common Type Attributes.
  56267. (line 446)
  56268. * visibility variable attribute: Common Variable Attributes.
  56269. (line 398)
  56270. * Visium options: Visium Options. (line 6)
  56271. * VLAs: Variable Length. (line 6)
  56272. * vliw function attribute, MeP: MeP Function Attributes.
  56273. (line 30)
  56274. * void pointers, arithmetic: Pointer Arith. (line 6)
  56275. * void, size of pointer to: Pointer Arith. (line 6)
  56276. * volatile access: Volatiles. (line 6)
  56277. * volatile access <1>: C++ Volatiles. (line 6)
  56278. * volatile applied to function: Function Attributes.
  56279. (line 6)
  56280. * volatile asm: Extended Asm. (line 116)
  56281. * volatile read: Volatiles. (line 6)
  56282. * volatile read <1>: C++ Volatiles. (line 6)
  56283. * volatile write: Volatiles. (line 6)
  56284. * volatile write <1>: C++ Volatiles. (line 6)
  56285. * vprintf: Other Builtins. (line 6)
  56286. * vscanf: Other Builtins. (line 6)
  56287. * vsnprintf: Other Builtins. (line 6)
  56288. * vsprintf: Other Builtins. (line 6)
  56289. * vsscanf: Other Builtins. (line 6)
  56290. * vsx_xl_sext: Basic PowerPC Built-in Functions Available on ISA 3.1.
  56291. (line 50)
  56292. * vsx_xl_zext: Basic PowerPC Built-in Functions Available on ISA 3.1.
  56293. (line 50)
  56294. * vtable: Vague Linkage. (line 27)
  56295. * VxWorks Options: VxWorks Options. (line 6)
  56296. * w floating point suffix: Floating Types. (line 6)
  56297. * W floating point suffix: Floating Types. (line 6)
  56298. * wakeup function attribute, MSP430: MSP430 Function Attributes.
  56299. (line 49)
  56300. * warm function attribute, NDS32: NDS32 Function Attributes.
  56301. (line 52)
  56302. * warning for comparison of signed and unsigned values: Warning Options.
  56303. (line 2541)
  56304. * warning for overloaded virtual function: C++ Dialect Options.
  56305. (line 972)
  56306. * warning for reordering of member initializers: C++ Dialect Options.
  56307. (line 786)
  56308. * warning for unknown pragmas: Warning Options. (line 1349)
  56309. * warning function attribute: Common Function Attributes.
  56310. (line 352)
  56311. * warning GCC_COLORS capability: Diagnostic Message Formatting Options.
  56312. (line 95)
  56313. * warning messages: Warning Options. (line 6)
  56314. * warnings from system headers: Warning Options. (line 1957)
  56315. * warnings vs errors: Warnings and Errors.
  56316. (line 6)
  56317. * warn_if_not_aligned type attribute: Common Type Attributes.
  56318. (line 91)
  56319. * warn_if_not_aligned variable attribute: Common Variable Attributes.
  56320. (line 106)
  56321. * warn_unused type attribute: C++ Attributes. (line 71)
  56322. * warn_unused_result function attribute: Common Function Attributes.
  56323. (line 1398)
  56324. * weak function attribute: Common Function Attributes.
  56325. (line 1415)
  56326. * weak variable attribute: Common Variable Attributes.
  56327. (line 403)
  56328. * weakref function attribute: Common Function Attributes.
  56329. (line 1427)
  56330. * whitespace: Incompatibilities. (line 112)
  56331. * Windows Options for x86: x86 Windows Options.
  56332. (line 6)
  56333. * X in constraint: Simple Constraints. (line 122)
  56334. * X3.159-1989: Standards. (line 13)
  56335. * x86 named address spaces: Named Address Spaces.
  56336. (line 169)
  56337. * x86 Options: x86 Options. (line 6)
  56338. * x86 Windows Options: x86 Windows Options.
  56339. (line 6)
  56340. * Xstormy16 Options: Xstormy16 Options. (line 6)
  56341. * Xtensa Options: Xtensa Options. (line 6)
  56342. * y0: Other Builtins. (line 6)
  56343. * y0f: Other Builtins. (line 6)
  56344. * y0l: Other Builtins. (line 6)
  56345. * y1: Other Builtins. (line 6)
  56346. * y1f: Other Builtins. (line 6)
  56347. * y1l: Other Builtins. (line 6)
  56348. * yn: Other Builtins. (line 6)
  56349. * ynf: Other Builtins. (line 6)
  56350. * ynl: Other Builtins. (line 6)
  56351. * zda variable attribute, V850: V850 Variable Attributes.
  56352. (line 17)
  56353. * zero-length arrays: Zero Length. (line 6)
  56354. * zero-size structures: Empty Structures. (line 6)
  56355. * zero_call_used_regs function attribute: Common Function Attributes.
  56356. (line 1469)
  56357. * zSeries options: zSeries Options. (line 6)
  56358. 
  56359. Tag Table:
  56360. Node: Top2135
  56361. Node: G++ and GCC4103
  56362. Node: Standards6163
  56363. Node: Invoking GCC20219
  56364. Node: Option Summary25446
  56365. Node: Overall Options82436
  56366. Node: Invoking G++109951
  56367. Node: C Dialect Options111474
  56368. Node: C++ Dialect Options131132
  56369. Node: Objective-C and Objective-C++ Dialect Options189152
  56370. Node: Diagnostic Message Formatting Options200899
  56371. Node: Warning Options229684
  56372. Ref: Wtrigraphs331174
  56373. Node: Static Analyzer Options368761
  56374. Node: Debugging Options385542
  56375. Node: Optimize Options405490
  56376. Ref: Type-punning475829
  56377. Node: Instrumentation Options591235
  56378. Node: Preprocessor Options634648
  56379. Ref: dashMF639495
  56380. Ref: fdollars-in-identifiers644157
  56381. Node: Assembler Options657362
  56382. Node: Link Options658053
  56383. Ref: Link Options-Footnote-1674929
  56384. Node: Directory Options675265
  56385. Node: Code Gen Options683668
  56386. Node: Developer Options712180
  56387. Node: Submodel Options753565
  56388. Node: AArch64 Options755375
  56389. Ref: aarch64-feature-modifiers769525
  56390. Node: Adapteva Epiphany Options774761
  56391. Node: AMD GCN Options780713
  56392. Node: ARC Options781607
  56393. Node: ARM Options802833
  56394. Node: AVR Options843626
  56395. Node: Blackfin Options870149
  56396. Node: C6X Options878041
  56397. Node: CRIS Options879584
  56398. Node: CR16 Options883323
  56399. Node: C-SKY Options884235
  56400. Node: Darwin Options889962
  56401. Node: DEC Alpha Options897403
  56402. Node: eBPF Options909019
  56403. Node: FR30 Options910301
  56404. Node: FT32 Options910861
  56405. Node: FRV Options911807
  56406. Node: GNU/Linux Options918571
  56407. Node: H8/300 Options919952
  56408. Node: HPPA Options921404
  56409. Node: IA-64 Options930936
  56410. Node: LM32 Options939064
  56411. Node: M32C Options939587
  56412. Node: M32R/D Options940860
  56413. Node: M680x0 Options944405
  56414. Node: MCore Options958480
  56415. Node: MeP Options959982
  56416. Node: MicroBlaze Options963942
  56417. Node: MIPS Options967032
  56418. Node: MMIX Options1003571
  56419. Node: MN10300 Options1006048
  56420. Node: Moxie Options1008591
  56421. Node: MSP430 Options1009078
  56422. Node: NDS32 Options1016839
  56423. Node: Nios II Options1019009
  56424. Node: Nvidia PTX Options1032225
  56425. Node: OpenRISC Options1034734
  56426. Node: PDP-11 Options1037254
  56427. Node: picoChip Options1038503
  56428. Node: PowerPC Options1040641
  56429. Node: PRU Options1040861
  56430. Node: RISC-V Options1043070
  56431. Node: RL78 Options1050722
  56432. Node: RS/6000 and PowerPC Options1054497
  56433. Node: RX Options1095673
  56434. Node: S/390 and zSeries Options1104275
  56435. Node: Score Options1115054
  56436. Node: SH Options1115903
  56437. Node: Solaris 2 Options1131043
  56438. Node: SPARC Options1132281
  56439. Node: System V Options1147907
  56440. Node: TILE-Gx Options1148735
  56441. Node: TILEPro Options1149753
  56442. Node: V850 Options1150257
  56443. Node: VAX Options1156944
  56444. Node: Visium Options1157482
  56445. Node: VMS Options1159790
  56446. Node: VxWorks Options1160606
  56447. Node: x86 Options1161758
  56448. Node: x86 Windows Options1227181
  56449. Node: Xstormy16 Options1229986
  56450. Node: Xtensa Options1230280
  56451. Node: zSeries Options1236416
  56452. Node: Spec Files1236612
  56453. Node: Environment Variables1262700
  56454. Node: Precompiled Headers1272133
  56455. Node: C++ Modules1278342
  56456. Ref: C++ Modules-Footnote-11284481
  56457. Node: C++ Module Mapper1284734
  56458. Node: C++ Module Preprocessing1289887
  56459. Node: C++ Compiled Module Interface1291716
  56460. Ref: C++ Compiled Module Interface-Footnote-11295100
  56461. Ref: C++ Compiled Module Interface-Footnote-21295189
  56462. Node: C Implementation1295245
  56463. Node: Translation implementation1296935
  56464. Node: Environment implementation1297526
  56465. Node: Identifiers implementation1298080
  56466. Node: Characters implementation1299166
  56467. Node: Integers implementation1302816
  56468. Node: Floating point implementation1304865
  56469. Node: Arrays and pointers implementation1307928
  56470. Ref: Arrays and pointers implementation-Footnote-11309388
  56471. Node: Hints implementation1309514
  56472. Node: Structures unions enumerations and bit-fields implementation1311009
  56473. Node: Qualifiers implementation1313233
  56474. Node: Declarators implementation1315294
  56475. Node: Statements implementation1315635
  56476. Node: Preprocessing directives implementation1315961
  56477. Node: Library functions implementation1318282
  56478. Node: Architecture implementation1318931
  56479. Node: Locale-specific behavior implementation1320576
  56480. Node: C++ Implementation1320881
  56481. Node: Conditionally-supported behavior1322164
  56482. Node: Exception handling1322781
  56483. Node: C Extensions1323248
  56484. Node: Statement Exprs1328471
  56485. Node: Local Labels1333843
  56486. Node: Labels as Values1336816
  56487. Ref: Labels as Values-Footnote-11339343
  56488. Node: Nested Functions1339528
  56489. Node: Nonlocal Gotos1343482
  56490. Node: Constructing Calls1345748
  56491. Node: Typeof1350463
  56492. Node: Conditionals1354392
  56493. Node: __int1281355281
  56494. Node: Long Long1355806
  56495. Node: Complex1357297
  56496. Node: Floating Types1360065
  56497. Node: Half-Precision1363532
  56498. Node: Decimal Float1365943
  56499. Node: Hex Floats1367797
  56500. Node: Fixed-Point1368871
  56501. Node: Named Address Spaces1372129
  56502. Ref: AVR Named Address Spaces1372810
  56503. Node: Zero Length1379422
  56504. Node: Empty Structures1383603
  56505. Node: Variable Length1384009
  56506. Node: Variadic Macros1386727
  56507. Node: Escaped Newlines1389105
  56508. Node: Subscripting1389966
  56509. Node: Pointer Arith1390691
  56510. Node: Variadic Pointer Args1391268
  56511. Node: Pointers to Arrays1391993
  56512. Node: Initializers1392746
  56513. Node: Compound Literals1393247
  56514. Node: Designated Inits1396814
  56515. Node: Case Ranges1400738
  56516. Node: Cast to Union1401419
  56517. Node: Mixed Labels and Declarations1403153
  56518. Node: Function Attributes1403790
  56519. Node: Common Function Attributes1408257
  56520. Ref: Common Function Attributes-Footnote-11481999
  56521. Node: AArch64 Function Attributes1482316
  56522. Node: AMD GCN Function Attributes1488510
  56523. Node: ARC Function Attributes1491563
  56524. Node: ARM Function Attributes1494500
  56525. Node: AVR Function Attributes1499639
  56526. Node: Blackfin Function Attributes1504174
  56527. Node: BPF Function Attributes1506671
  56528. Node: CR16 Function Attributes1507259
  56529. Node: C-SKY Function Attributes1507778
  56530. Node: Epiphany Function Attributes1509077
  56531. Node: H8/300 Function Attributes1511832
  56532. Node: IA-64 Function Attributes1513030
  56533. Node: M32C Function Attributes1514072
  56534. Node: M32R/D Function Attributes1516410
  56535. Node: m68k Function Attributes1517884
  56536. Node: MCORE Function Attributes1518828
  56537. Node: MeP Function Attributes1519639
  56538. Node: MicroBlaze Function Attributes1520940
  56539. Node: Microsoft Windows Function Attributes1522447
  56540. Node: MIPS Function Attributes1527016
  56541. Node: MSP430 Function Attributes1532634
  56542. Node: NDS32 Function Attributes1536713
  56543. Node: Nios II Function Attributes1539137
  56544. Node: Nvidia PTX Function Attributes1540434
  56545. Node: PowerPC Function Attributes1541049
  56546. Node: RISC-V Function Attributes1547823
  56547. Node: RL78 Function Attributes1549239
  56548. Node: RX Function Attributes1550478
  56549. Node: S/390 Function Attributes1553025
  56550. Node: SH Function Attributes1554853
  56551. Node: Symbian OS Function Attributes1558281
  56552. Node: V850 Function Attributes1558617
  56553. Node: Visium Function Attributes1559162
  56554. Node: x86 Function Attributes1559690
  56555. Node: Xstormy16 Function Attributes1583373
  56556. Node: Variable Attributes1583880
  56557. Node: Common Variable Attributes1585413
  56558. Node: ARC Variable Attributes1605878
  56559. Node: AVR Variable Attributes1606260
  56560. Node: Blackfin Variable Attributes1611422
  56561. Node: H8/300 Variable Attributes1612280
  56562. Node: IA-64 Variable Attributes1613353
  56563. Node: M32R/D Variable Attributes1614104
  56564. Node: MeP Variable Attributes1614887
  56565. Node: Microsoft Windows Variable Attributes1616980
  56566. Node: MSP430 Variable Attributes1619433
  56567. Node: Nvidia PTX Variable Attributes1620647
  56568. Node: PowerPC Variable Attributes1621264
  56569. Node: RL78 Variable Attributes1621821
  56570. Node: V850 Variable Attributes1622240
  56571. Node: x86 Variable Attributes1622873
  56572. Node: Xstormy16 Variable Attributes1623929
  56573. Node: Type Attributes1624499
  56574. Node: Common Type Attributes1626163
  56575. Node: ARC Type Attributes1647920
  56576. Node: ARM Type Attributes1648392
  56577. Node: MeP Type Attributes1649174
  56578. Node: PowerPC Type Attributes1649576
  56579. Node: x86 Type Attributes1650565
  56580. Node: Label Attributes1651557
  56581. Node: Enumerator Attributes1653584
  56582. Node: Statement Attributes1654903
  56583. Node: Attribute Syntax1656386
  56584. Node: Function Prototypes1667644
  56585. Node: C++ Comments1669424
  56586. Node: Dollar Signs1669943
  56587. Node: Character Escapes1670408
  56588. Node: Alignment1670692
  56589. Node: Inline1672345
  56590. Node: Volatiles1677162
  56591. Node: Using Assembly Language with C1680061
  56592. Node: Basic Asm1681298
  56593. Node: Extended Asm1686748
  56594. Ref: Volatile1690862
  56595. Ref: AssemblerTemplate1694975
  56596. Ref: OutputOperands1699215
  56597. Ref: FlagOutputOperands1706178
  56598. Ref: InputOperands1709125
  56599. Ref: Clobbers and Scratch Registers1713393
  56600. Ref: GotoLabels1722034
  56601. Ref: x86Operandmodifiers1725657
  56602. Ref: x86floatingpointasmoperands1730473
  56603. Ref: msp430Operandmodifiers1733802
  56604. Node: Constraints1735460
  56605. Node: Simple Constraints1736566
  56606. Node: Multi-Alternative1743880
  56607. Node: Modifiers1745555
  56608. Node: Machine Constraints1748354
  56609. Node: Asm Labels1804579
  56610. Node: Explicit Register Variables1806199
  56611. Ref: Explicit Reg Vars1806413
  56612. Node: Global Register Variables1807022
  56613. Ref: Global Reg Vars1807230
  56614. Node: Local Register Variables1812012
  56615. Ref: Local Reg Vars1812232
  56616. Node: Size of an asm1815860
  56617. Node: Alternate Keywords1817338
  56618. Node: Incomplete Enums1818843
  56619. Node: Function Names1819600
  56620. Node: Return Address1821504
  56621. Node: Vector Extensions1826091
  56622. Node: Offsetof1835856
  56623. Node: __sync Builtins1836689
  56624. Node: __atomic Builtins1843132
  56625. Node: Integer Overflow Builtins1856757
  56626. Node: x86 specific memory model extensions for transactional memory1863240
  56627. Node: Object Size Checking1864506
  56628. Node: Other Builtins1870762
  56629. Node: Target Builtins1922410
  56630. Node: AArch64 Built-in Functions1924185
  56631. Node: Alpha Built-in Functions1924873
  56632. Node: Altera Nios II Built-in Functions1927921
  56633. Node: ARC Built-in Functions1932290
  56634. Node: ARC SIMD Built-in Functions1937502
  56635. Node: ARM iWMMXt Built-in Functions1946398
  56636. Node: ARM C Language Extensions (ACLE)1953394
  56637. Node: ARM Floating Point Status and Control Intrinsics1954671
  56638. Node: ARM ARMv8-M Security Extensions1955156
  56639. Node: AVR Built-in Functions1956436
  56640. Node: Blackfin Built-in Functions1960197
  56641. Node: BPF Built-in Functions1960815
  56642. Node: FR-V Built-in Functions1961715
  56643. Node: Argument Types1962578
  56644. Node: Directly-mapped Integer Functions1964332
  56645. Node: Directly-mapped Media Functions1965416
  56646. Node: Raw read/write Functions1973622
  56647. Node: Other Built-in Functions1974530
  56648. Node: MIPS DSP Built-in Functions1975716
  56649. Node: MIPS Paired-Single Support1988213
  56650. Node: MIPS Loongson Built-in Functions1989712
  56651. Node: Paired-Single Arithmetic1996234
  56652. Node: Paired-Single Built-in Functions1997182
  56653. Node: MIPS-3D Built-in Functions1999849
  56654. Node: MIPS SIMD Architecture (MSA) Support2005243
  56655. Node: MIPS SIMD Architecture Built-in Functions2008083
  56656. Node: Other MIPS Built-in Functions2034937
  56657. Node: MSP430 Built-in Functions2035946
  56658. Node: NDS32 Built-in Functions2037347
  56659. Node: picoChip Built-in Functions2038640
  56660. Node: Basic PowerPC Built-in Functions2039989
  56661. Node: Basic PowerPC Built-in Functions Available on all Configurations2040847
  56662. Node: Basic PowerPC Built-in Functions Available on ISA 2.052049356
  56663. Node: Basic PowerPC Built-in Functions Available on ISA 2.062054191
  56664. Node: Basic PowerPC Built-in Functions Available on ISA 2.072056271
  56665. Node: Basic PowerPC Built-in Functions Available on ISA 3.02057125
  56666. Node: Basic PowerPC Built-in Functions Available on ISA 3.12064103
  56667. Node: PowerPC AltiVec/VSX Built-in Functions2067316
  56668. Node: PowerPC AltiVec Built-in Functions on ISA 2.052075385
  56669. Node: PowerPC AltiVec Built-in Functions Available on ISA 2.062100785
  56670. Node: PowerPC AltiVec Built-in Functions Available on ISA 2.072107851
  56671. Node: PowerPC AltiVec Built-in Functions Available on ISA 3.02117661
  56672. Node: PowerPC AltiVec Built-in Functions Available on ISA 3.12132633
  56673. Node: PowerPC Hardware Transactional Memory Built-in Functions2157227
  56674. Node: PowerPC Atomic Memory Operation Functions2165742
  56675. Node: PowerPC Matrix-Multiply Assist Built-in Functions2168305
  56676. Node: PRU Built-in Functions2174298
  56677. Node: RISC-V Built-in Functions2175486
  56678. Node: RX Built-in Functions2175897
  56679. Node: S/390 System z Built-in Functions2179899
  56680. Node: SH Built-in Functions2185129
  56681. Node: SPARC VIS Built-in Functions2186857
  56682. Node: TI C6X Built-in Functions2195388
  56683. Node: TILE-Gx Built-in Functions2196419
  56684. Node: TILEPro Built-in Functions2197538
  56685. Node: x86 Built-in Functions2198638
  56686. Node: x86 transactional memory intrinsics2262718
  56687. Node: x86 control-flow protection intrinsics2265985
  56688. Node: Target Format Checks2267756
  56689. Node: Solaris Format Checks2268188
  56690. Node: Darwin Format Checks2268614
  56691. Node: Pragmas2269577
  56692. Node: AArch64 Pragmas2270518
  56693. Node: ARM Pragmas2270975
  56694. Node: M32C Pragmas2271602
  56695. Node: MeP Pragmas2272674
  56696. Node: PRU Pragmas2274726
  56697. Node: RS/6000 and PowerPC Pragmas2275304
  56698. Node: S/390 Pragmas2276044
  56699. Node: Darwin Pragmas2276610
  56700. Node: Solaris Pragmas2277663
  56701. Node: Symbol-Renaming Pragmas2278827
  56702. Node: Structure-Layout Pragmas2280464
  56703. Node: Weak Pragmas2282744
  56704. Node: Diagnostic Pragmas2283479
  56705. Node: Visibility Pragmas2287670
  56706. Node: Push/Pop Macro Pragmas2288355
  56707. Node: Function Specific Option Pragmas2289328
  56708. Node: Loop-Specific Pragmas2291294
  56709. Node: Unnamed Fields2292894
  56710. Node: Thread-Local2295091
  56711. Node: C99 Thread-Local Edits2297197
  56712. Node: C++98 Thread-Local Edits2299195
  56713. Node: Binary constants2302640
  56714. Node: C++ Extensions2303311
  56715. Node: C++ Volatiles2304941
  56716. Node: Restricted Pointers2307289
  56717. Node: Vague Linkage2308880
  56718. Node: C++ Interface2312503
  56719. Ref: C++ Interface-Footnote-12316300
  56720. Node: Template Instantiation2316438
  56721. Node: Bound member functions2322529
  56722. Node: C++ Attributes2324061
  56723. Node: Function Multiversioning2328133
  56724. Node: Type Traits2329940
  56725. Node: C++ Concepts2336890
  56726. Node: Deprecated Features2338396
  56727. Node: Backwards Compatibility2340221
  56728. Node: Objective-C2341293
  56729. Node: GNU Objective-C runtime API2341900
  56730. Node: Modern GNU Objective-C runtime API2342907
  56731. Node: Traditional GNU Objective-C runtime API2345343
  56732. Node: Executing code before main2346070
  56733. Node: What you can and what you cannot do in +load2348814
  56734. Node: Type encoding2351184
  56735. Node: Legacy type encoding2356325
  56736. Node: @encode2357415
  56737. Node: Method signatures2357960
  56738. Node: Garbage Collection2359952
  56739. Node: Constant string objects2362642
  56740. Node: compatibility_alias2365151
  56741. Node: Exceptions2365876
  56742. Node: Synchronization2368586
  56743. Node: Fast enumeration2369770
  56744. Node: Using fast enumeration2370082
  56745. Node: c99-like fast enumeration syntax2371293
  56746. Node: Fast enumeration details2371996
  56747. Node: Fast enumeration protocol2374336
  56748. Node: Messaging with the GNU Objective-C runtime2377488
  56749. Node: Dynamically registering methods2378860
  56750. Node: Forwarding hook2380551
  56751. Node: Compatibility2383591
  56752. Node: Gcov2390147
  56753. Node: Gcov Intro2390682
  56754. Node: Invoking Gcov2393400
  56755. Node: Gcov and Optimization2416266
  56756. Node: Gcov Data Files2420009
  56757. Node: Cross-profiling2421418
  56758. Node: Gcov-tool2423272
  56759. Node: Gcov-tool Intro2423697
  56760. Node: Invoking Gcov-tool2425667
  56761. Node: Gcov-dump2428245
  56762. Node: Gcov-dump Intro2428568
  56763. Node: Invoking Gcov-dump2428835
  56764. Node: lto-dump2429492
  56765. Node: lto-dump Intro2429791
  56766. Node: Invoking lto-dump2430041
  56767. Node: Trouble2431137
  56768. Node: Actual Bugs2432554
  56769. Node: Interoperation2433001
  56770. Node: Incompatibilities2439892
  56771. Node: Fixed Headers2448044
  56772. Node: Standard Libraries2449702
  56773. Node: Disappointments2451074
  56774. Node: C++ Misunderstandings2455433
  56775. Node: Static Definitions2456244
  56776. Node: Name lookup2457297
  56777. Ref: Name lookup-Footnote-12462078
  56778. Node: Temporaries2462267
  56779. Node: Copy Assignment2464243
  56780. Node: Non-bugs2466050
  56781. Node: Warnings and Errors2476556
  56782. Node: Bugs2478318
  56783. Node: Bug Criteria2478785
  56784. Node: Bug Reporting2480995
  56785. Node: Service2481213
  56786. Node: Contributing2482033
  56787. Node: Funding2482774
  56788. Node: GNU Project2485264
  56789. Node: Copying2485910
  56790. Node: GNU Free Documentation License2523418
  56791. Node: Contributors2548536
  56792. Node: Option Index2589509
  56793. Node: Keyword Index2878795
  56794. 
  56795. End Tag Table
  56796. 
  56797. Local Variables:
  56798. coding: utf-8
  56799. End: